/* The home page's own parts, loaded by index.html after brand.css.
   The hero is a photograph from the film, with a decision landing on each agent's action, and the film itself
   behind one button. The checkpoint is one drawing of the whole product, under the statement. */

/* ---------- THE FLOOR. The film's floor of desks, full width, with the words low on the left. ---------- */
.hero.floor { background: #1b1409; color: #fff; overflow: hidden; isolation: isolate; }
/* The picture is one box at the photograph's own shape, so a label keeps its place over the desks at any window size.
   Its warmth and depth are in the file itself: nothing is filtered while the page is drawn. */
.floor .plate { position: absolute; z-index: 0; left: 50%; top: 50%; height: max(100%, 56.25vw); aspect-ratio: 16 / 9; transform: translate(-50%, -50%) scale(1.04); animation: floor-drift 46s ease-in-out infinite alternate; will-change: transform; }
.floor .plate img { width: 100%; height: 100%; object-fit: cover; }
@keyframes floor-drift { to { transform: translate(-51.2%, -50.8%) scale(1.1); } }
/* Three shadows: one under the menu, a pool low on the left for the words, and the way into the dark page below. */
.floor .shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(180deg, rgba(24, 16, 6, .5) 0, rgba(24, 16, 6, 0) 17%),
  radial-gradient(92% 124% at 0% 100%, rgba(15, 10, 4, .95) 0, rgba(15, 10, 4, .88) 28%, rgba(15, 10, 4, .64) 50%, rgba(15, 10, 4, .22) 66%, rgba(15, 10, 4, 0) 80%),
  linear-gradient(180deg, rgba(7, 8, 10, 0) 66%, rgba(7, 8, 10, .82) 91%, var(--ink) 100%); }
.hero.floor > .wrap { position: relative; z-index: 3; justify-content: flex-end; padding: 118px 0 44px; }
.floor .eyebrow { color: rgba(255, 255, 255, .62); }
.floor h1 { max-width: 11.6em; text-shadow: 0 2px 40px rgba(15, 10, 4, .5); }
.floor .lede { color: rgba(255, 255, 255, .84); }
.floor .row { align-items: center; gap: 10px; }
.floor .works { z-index: 3; }

/* The third way in: the film. A white disc with one slow ring leaving it, so it is not passed over. */
.floor .watch { display: inline-flex; align-items: center; gap: 12px; height: 46px; margin-left: 12px; padding: 0 6px 0 4px; font: 500 15.5px/1 var(--sans); letter-spacing: -.01em; color: inherit; }
.floor .watch i { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #1b1409; box-shadow: 0 6px 18px rgba(15, 10, 4, .35); transition: transform .25s var(--ease); }
.floor .watch i::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .75); pointer-events: none; animation: watch-ring 2.8s var(--ease) infinite; }
.floor .watch i::after { content: ""; position: absolute; left: 14.5px; top: 12px; border: 6px solid transparent; border-left: 10px solid currentColor; border-right: 0; }
.floor .watch:hover i { transform: scale(1.08); }
@keyframes watch-ring { 0% { transform: scale(1); opacity: .75; } 75%, 100% { transform: scale(1.6); opacity: 0; } }
.floor .watch small { font: 400 12px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; opacity: .6; }

/* A label over the floor: who, what it tried, and the decision. The film's own white label.
   Each has a place of its own in the open part of the picture (--x and --y, in hundredths of the hero),
   so no two ever touch and none sits on the words. */
.floor .chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.floor .chip { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1% - 36px); display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 12px 0 8px; border-radius: 10px; background: #fff; color: #0a0b0d; font: 500 14.5px/1 var(--sans); letter-spacing: -.012em; white-space: nowrap; box-shadow: 0 16px 34px rgba(20, 14, 6, .3), 0 2px 4px rgba(20, 14, 6, .2); transform-origin: 18px 100%; opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .35s ease, transform .5s var(--ease); }
.floor .chip.r { left: auto; right: calc((100 - var(--x)) * 1%); transform-origin: calc(100% - 18px) 100%; }
/* The ones that stand above the words keep clear of them in a short window: --k counts rows up from the lowest,
   and each row is held at least its own height above the next. */
.floor .chip.up { top: min(calc(var(--y) * 1% - 36px), calc(100% - 548px - var(--k) * 44px)); }
.floor .chip.on { opacity: 1; transform: none; }
.floor .chip .bl { width: 19px; height: 19px; }
.floor .chip .av { width: 22px; height: 22px; flex: none; border-radius: 6px; display: grid; place-items: center; color: #fff; font: 600 9.5px/1 var(--sans); letter-spacing: 0; }
.floor .chip .t { display: inline-flex; align-items: center; gap: 9px; }
.floor .chip .t > b { font-weight: 500; }
.floor .chip code { font: 500 13px/1 var(--mono); font-feature-settings: "liga" 0; letter-spacing: 0; color: #54565e; }
.floor .chip code b { font-weight: 600; color: #0a0b0d; }
/* The decision opens at the end of the label once it is made. */
.floor .chip .v { display: inline-grid; grid-template-columns: 0fr; transition: grid-template-columns .5s var(--ease); margin-left: -9px; }
.floor .chip .v > span { overflow: hidden; display: inline-flex; align-items: center; min-width: 0; }
.floor .chip .v em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; height: 24px; margin-left: 9px; padding: 0 8px 0 7px; border-radius: 6px; font: 500 12px/1 var(--mono); letter-spacing: .01em; }
.floor .chip .v em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.floor .chip.decided .v { grid-template-columns: 1fr; }
.floor .chip[data-v="ok"] .v em { color: #0b7a45; background: rgba(47, 191, 113, .16); }
.floor .chip[data-v="ask"] .v em { color: #8a5a00; background: rgba(226, 161, 0, .2); }
.floor .chip[data-v="no"] .v em { color: #b3261c; background: rgba(239, 90, 76, .16); }
/* Waiting on the decision: three dots where it will be. */
.floor .chip .dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.floor .chip .dots i { width: 4px; height: 4px; border-radius: 50%; background: #9a9ca3; animation: floor-dot 1s ease-in-out infinite; }
.floor .chip .dots i:nth-child(2) { animation-delay: .15s; } .floor .chip .dots i:nth-child(3) { animation-delay: .3s; }
.floor .chip.decided .dots { display: none; }
@keyframes floor-dot { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* The film, over the whole window. It is in the page from the start and kept out of sight, not out of the page:
   the film is asked to play in the same tap that shows it. */
.cinema { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #000; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s .35s; }
.cinema.on { visibility: visible; opacity: 1; transition-delay: 0s; }
/* The height is said outright: the video's own height attribute would otherwise stretch its box down the screen on a phone,
   and its controls would sit far below the picture. */
.cinema video { width: min(100%, 100dvh * 16 / 9); height: auto; max-height: 100dvh; aspect-ratio: 16 / 9; background: #000; }
.cinema video::cue { font: 400 20px/1.35 var(--sans); background: rgba(7, 8, 10, .78); color: #fff; }
.cinema .shut { position: absolute; z-index: 2; right: max(var(--pad), env(safe-area-inset-right)); top: max(18px, env(safe-area-inset-top)); height: 38px; padding: 0 15px; border-radius: 8px; background: rgba(255, 255, 255, .16); color: #fff; font: 500 14px/1 var(--sans); transition: background-color .2s; }
.cinema .shut:hover { background: rgba(255, 255, 255, .3); }

@media (min-width: 701px) and (max-width: 1299px) {
  /* A tablet or a small laptop. Three labels stay, each on a row of its own above the words. */
  .floor .chip { display: none; }
  .floor .chip.m { display: inline-flex; }
  .floor .chip.m:nth-of-type(1) { left: 8%; top: min(15%, calc(100% - 636px)); }
  .floor .chip.m:nth-of-type(2) { left: auto; right: 7%; top: min(25%, calc(100% - 592px)); }
  .floor .chip.m:nth-of-type(3) { left: 16%; top: min(35%, calc(100% - 548px)); }
}
/* A short window has room for two rows above the words, then one, then none. The labels beside the words stay. */
@media (max-height: 799px) and (min-width: 701px) { .floor .chips .chip.k2 { display: none; } }
@media (max-height: 719px) and (min-width: 701px) { .floor .chips .chip.k1 { display: none; } }
@media (max-height: 627px) and (min-width: 701px) { .floor .chips .chip.k0 { display: none; } }
@media (max-width: 1100px) {
  .floor .shade { background: linear-gradient(180deg, rgba(24, 16, 6, .5) 0, rgba(24, 16, 6, 0) 16%), linear-gradient(180deg, rgba(15, 10, 4, 0) 30%, rgba(15, 10, 4, .88) 60%, var(--ink) 100%); }
  .floor .watch { margin-left: 0; }
}
@media (max-width: 700px) {
  /* A phone. The picture takes the top of the hero and holds still, two labels stand in it one above the other,
     each with its action on a second line, and the words come under them on the dark. */
  .hero.floor { min-height: 0; }
  .floor .plate { left: 50%; top: 0; height: 380px; transform: translateX(-46%); animation: none; will-change: auto; }
  .floor .shade { background: linear-gradient(180deg, rgba(24, 16, 6, .55) 0, rgba(24, 16, 6, 0) 80px), linear-gradient(180deg, rgba(13, 9, 4, 0) 130px, rgba(13, 9, 4, .74) 222px, #0b0906 350px, var(--ink) 100%); }
  .hero.floor > .wrap { justify-content: flex-start; padding: 198px 0 34px; }
  .floor h1 { margin-top: 14px; font-size: clamp(38px, 10.7vw, 42px); }
  .floor .lede { margin-top: 14px; }
  .floor .row { margin-top: 22px; }
  .floor .row .btn { flex: 1; }
  .floor .watch { flex: 0 0 100%; margin-top: 4px; }
  .floor .chip, .floor .chip.r { display: none; left: auto; right: auto; top: auto; height: 48px; padding: 0 10px 0 9px; gap: 10px; }
  .floor .chip.s0, .floor .chip.s1 { display: inline-flex; }
  .floor .chip.s0 { left: var(--pad); top: 80px; transform-origin: 18px 100%; }
  .floor .chip.s1 { right: var(--pad); top: 134px; transform-origin: calc(100% - 18px) 100%; }
  .floor .chip .t { display: grid; gap: 4px; }
  .floor .chip code { font-size: 12px; }
  .floor .chip .dots { margin-left: 4px; }
  .cinema video::cue { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .floor .plate { animation: none; } .floor .watch i::before { animation: none; opacity: 0; } }

/* ---------- THE CHECKPOINT. The statement, and under it one drawing in three stations, each under its product's
   name: the agents (Passport), the check and its three answers (Rules), and the record (Audit). Both stand on
   paper. The drawing is laid out at a fixed size and scaled as one piece to the width it is given (--k, set by the
   script): 1320 by 346 on a wide screen, and a second, upright drawing of 358 by 738 on a narrow one.
   Nothing here casts a shadow but the check and what moves. Colour is kept for a decision and for the line its
   receipt travels. ---------- */
.tooth { position: relative; isolation: isolate; }
.tooth::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: multiply; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .42 0 0 0 0 .36 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.say.lead { padding-bottom: clamp(56px, 6vw, 100px); }
.checkpoint { padding: 0 0 clamp(88px, 9.4vw, 156px); overflow: hidden; }
.checkpoint .draw { position: relative; width: 100%; height: calc(346px * var(--k, 1)); margin-inline: auto; --ok: #12915a; --ask: #b87900; --no: #d43a2c; --rule: rgba(10, 11, 13, .2); --edge: 0 0 0 1px rgba(10, 11, 13, .11); }
.checkpoint .dsheet { position: absolute; left: 0; top: 0; width: 1320px; height: 346px; transform: scale(var(--k, 1)); transform-origin: 0 0; font: 500 15px/1 var(--sans); letter-spacing: -.012em; color: var(--on-l); }
.checkpoint .dsheet > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.checkpoint .rose path { stroke: rgba(10, 11, 13, .06); stroke-width: .7; }
.checkpoint .lines path { stroke: var(--rule); stroke-width: 1; }
.checkpoint .lines .rec { stroke: var(--sig); stroke-width: 1.25; stroke-opacity: .6; }

/* A station's name: the product's lockup, as on its card further down the page, and one line under it. */
.checkpoint .st { position: absolute; margin: 0; white-space: nowrap; }
.checkpoint .st .lockup { font-size: 19px; }
.checkpoint .st .lockup .mark { height: 14px; top: 1.5px; }
.checkpoint .st small { display: block; margin-top: 10px; font: 400 13.5px/1.35 var(--sans); letter-spacing: -.008em; color: var(--mute-l); }
.checkpoint .st.mid { transform: translateX(-50%); text-align: center; }
/* An answer's name, over the place it leads to. */
.checkpoint .lane { position: absolute; display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px/1 var(--sans); letter-spacing: -.005em; color: var(--mute-l); white-space: nowrap; }
.checkpoint .lane::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.checkpoint .lane.ok::before { color: var(--ok); } .checkpoint .lane.ask::before { color: var(--ask); } .checkpoint .lane.no::before { color: var(--no); }
.checkpoint .lane.mid { transform: translateX(-50%); }
.checkpoint .lane.end { transform: translateX(-100%); }

/* An agent: a white label with its maker's mark. */
.checkpoint .node { position: absolute; display: flex; align-items: center; gap: 11px; height: 44px; padding: 0 14px 0 12px; border-radius: 10px; background: #fff; box-shadow: var(--edge); white-space: nowrap; transition: box-shadow .35s ease, transform .35s var(--ease); }
.checkpoint .node .bl { width: 20px; height: 20px; }
.checkpoint .node .av { width: 22px; height: 22px; flex: none; border-radius: 6px; display: grid; place-items: center; color: #fff; font: 600 9.5px/1 var(--sans); letter-spacing: 0; }
.checkpoint .node .sl { margin-left: auto; padding-left: 6px; display: grid; }
.checkpoint .node .sl svg { width: 14px; height: 14px; stroke: rgba(10, 11, 13, .34); stroke-width: 1.5; stroke-linecap: square; fill: none; }
.checkpoint .node.send { transform: translateX(3px); box-shadow: 0 0 0 1px rgba(10, 11, 13, .46); }

/* The check: the mark on ink. Its ring turns while an action is being decided. */
.checkpoint .gate { position: absolute; width: 150px; height: 96px; border-radius: 20px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 18px 44px rgba(20, 16, 8, .26), 0 0 0 6px rgba(10, 11, 13, .05); }
.checkpoint .gate svg { width: 50px; height: 39px; fill: currentColor; }
.checkpoint .gate::after { content: ""; position: absolute; inset: -11px; border-radius: 28px; border: 1.5px solid transparent; background: conic-gradient(from var(--cp-a, 0deg), rgba(48, 80, 255, 0) 0 62%, var(--sig) 88%, rgba(48, 80, 255, 0) 100%) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); mask-composite: exclude; opacity: 0; transition: opacity .25s; }
.checkpoint .gate.busy::after { opacity: 1; animation: cp-spin .9s linear infinite; }
@property --cp-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes cp-spin { to { --cp-a: 360deg; } }

/* Where each answer leads: the person a held action waits for, the way on, and the stop. */
.checkpoint .person { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--edge); font: 600 12.5px/1 var(--sans); letter-spacing: 0; color: var(--on-l); transition: box-shadow .4s; }
.checkpoint .person.asked { box-shadow: 0 0 0 2px var(--ask); }
.checkpoint .person.signed { box-shadow: 0 0 0 2px var(--ok); }
.checkpoint .person svg { position: absolute; right: -9px; bottom: -7px; width: 20px; height: 20px; padding: 3px; border-radius: 6px; background: var(--ink); stroke: #fff; stroke-width: 1.8; stroke-linecap: square; fill: none; }
.checkpoint .person svg .k2 { opacity: .3; transform: translate(2.5px, -2.5px); transition: opacity .3s, transform .5s var(--ease); }
.checkpoint .person.signed svg .k2 { opacity: 1; transform: none; }
.checkpoint .term { position: absolute; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--edge); color: var(--mute-l); transition: box-shadow .3s, color .3s, transform .3s var(--ease); }
.checkpoint .term svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.checkpoint .pass.hit { color: var(--ok); box-shadow: 0 0 0 2px var(--ok); transform: scale(1.1); }
.checkpoint .stop.hit { color: var(--no); box-shadow: 0 0 0 2px var(--no); transform: scale(1.1); }

/* An action on its way, as a dot. It takes its answer's colour once the check has given it, and what it is
   stands in one place under the check, where it can always be read. */
.checkpoint .dot { position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(245, 244, 240, .92), 0 4px 10px rgba(20, 16, 8, .3); offset-rotate: 0deg; offset-anchor: 50% 50%; z-index: 3; transition: background-color .3s; }
.checkpoint .dot[data-v="ok"] { background: var(--ok); } .checkpoint .dot[data-v="ask"] { background: var(--ask); } .checkpoint .dot[data-v="no"] { background: var(--no); }
.checkpoint .readout { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px 0 10px; border-radius: 8px; background: var(--ink); color: #fff; font: 500 12.5px/1 var(--mono); font-style: normal; font-feature-settings: "liga" 0; letter-spacing: 0; white-space: nowrap; box-shadow: 0 8px 18px rgba(20, 16, 8, .24); opacity: 0; transform: translate(-50%, -50%) scale(.94); transition: opacity .25s ease, transform .35s var(--ease), background-color .3s; }
.checkpoint .readout.on { opacity: 1; transform: translate(-50%, -50%); }
.checkpoint .readout b { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: background-color .3s; }
.checkpoint .readout[data-v="ok"] b { background: #3ddc84; } .checkpoint .readout[data-v="ask"] b { background: #f5b62e; } .checkpoint .readout[data-v="no"] b { background: #ff6b5e; }
.checkpoint .readout[data-v="no"] { background: #7d241c; }

/* The record: one white sheet, a receipt to a row, each a point on one line. The newest is at the top. */
.checkpoint .ledger { position: absolute; border-radius: 12px; background: #fff; box-shadow: var(--edge); overflow: hidden; }
.checkpoint .ledger::before { content: ""; position: absolute; left: 21.75px; top: 24px; bottom: 0; width: 1.5px; background: var(--sig); opacity: .26; }
.checkpoint .rc { position: relative; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px 0 18px; font: 500 12.5px/1 var(--mono); font-style: normal; font-feature-settings: "liga" 0; letter-spacing: 0; color: var(--on-l); white-space: nowrap; }
.checkpoint .rc b { flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.checkpoint .rc[data-v="ok"] b { background: var(--ok); } .checkpoint .rc[data-v="ask"] b { background: var(--ask); } .checkpoint .rc[data-v="no"] b { background: var(--no); }
.checkpoint .rc span:first-of-type { font-weight: 400; color: var(--mute-l); }
.checkpoint .rc em { margin-left: auto; font: 500 12.5px/1 var(--sans); font-style: normal; letter-spacing: -.005em; color: var(--mute-l); }

/* The upright drawing, for a narrow screen. */
.checkpoint .draw.tall .dsheet { font-size: 14px; }
.checkpoint .draw.tall .node { height: 40px; gap: 8px; padding: 0 10px 0 9px; }
.checkpoint .draw.tall .node.send { transform: translateY(2px); }
.checkpoint .draw.tall .gate { width: 132px; height: 84px; border-radius: 18px; }
.checkpoint .draw.tall .gate svg { width: 44px; height: 34px; }
.checkpoint .draw.tall .st .lockup { font-size: 18px; }
.checkpoint .draw.tall .st small { margin-top: 8px; font-size: 13px; }
.checkpoint .draw.tall .st.wrap small { white-space: normal; text-wrap: balance; }
.checkpoint .draw.tall .readout { font-size: 12px; }
.checkpoint .draw.tall .rc { height: 44px; }
.checkpoint .draw.tall .ledger::before { top: 22px; }
@media (prefers-reduced-motion: reduce) { .checkpoint .gate.busy::after { animation: none; } }
