:root {
  --white: #ffffff;
  --zinc-50: oklch(98.5% 0 0);
  --zinc-100: oklch(96.7% 0.001 286.375);
  --zinc-200: oklch(92% 0.004 286.32);
  --zinc-300: oklch(87.1% 0.006 286.286);
  --zinc-400: oklch(70.5% 0.015 286.067);
  --zinc-500: oklch(55.2% 0.016 285.938);
  --zinc-600: oklch(44.2% 0.017 285.786);
  --zinc-950: oklch(14.1% 0.005 285.823);
  --brand-50: oklch(0.970 0.014 267.1);
  --brand-100: oklch(0.923 0.035 267.1);
  --brand-500: oklch(0.545 0.233 267.1);
  --brand-600: oklch(0.486 0.267 267.1);
  --emerald-50: oklch(97.9% 0.021 166.113);
  --emerald-500: oklch(69.6% 0.17 162.48);
  --emerald-700: oklch(50.8% 0.118 165.612);
  --badge: #2563eb;

  --bg: var(--white);
  --ink: var(--zinc-950);
  --ink-2: var(--zinc-600);
  --ink-3: var(--zinc-500);
  --line: var(--zinc-200);
  --chip-line: #d7dde2;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --gutter: 32px;
  --film-inset: 12px;   /* narrower than the gutter: the film runs wider than the nav's logo and buttons */
  --measure: 1240px;
  --rhythm: 160px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: pretty; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, video { display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--measure) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* The type scale: the mission statement is the H1 style; every other section
   title is this H2, the same voice a clear step smaller. */
h2 {
  font-size: clamp(28px, 3.3vw, 48px); line-height: 1.12; letter-spacing: -0.035em;
}
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding-inline: 17px; border-radius: 10px; border: 1px solid transparent;
  font: 500 14.5px/1 var(--font-body); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn--primary { background: var(--brand-500); color: var(--white); }
.btn--primary:hover { background: var(--brand-600); }
.btn--ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--zinc-50); border-color: var(--zinc-300); }
.btn--sm { height: 36px; padding-inline: 15px; font-size: 14px; }
.btn--lg { height: 52px; padding-inline: 24px; font-size: 16px; }
.btn:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; padding-inline: var(--gutter); }
.nav__logo svg { width: 186px; height: 40px; color: var(--ink); transition: filter 280ms ease; }
/* Over the film (v2.js sets data-over): a white logo and frosted outline buttons. */
.nav[data-over] .nav__logo svg { filter: brightness(0) invert(1); }
.nav[data-over] .btn--ghost { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.32); color: var(--white); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav[data-over] .btn--ghost:hover { background: rgb(255 255 255 / 0.18); border-color: rgb(255 255 255 / 0.5); }
.nav[data-over] .btn:focus-visible { outline-color: var(--white); }
.nav__cta { display: flex; gap: 8px; }

/* Hero film: the story card's content (below). */
.hero__frame {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background: #1b1d22 url('media/hero-poster.jpg') center / cover;
  display: grid; place-items: center;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1200ms ease; }
.hero__video.is-on { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse 70% 60% at 50% 50%, rgb(0 0 0 / 0.38), rgb(0 0 0 / 0.18) 70%),
  linear-gradient(to bottom, rgb(0 0 0 / 0.18), rgb(0 0 0 / 0.32)); }
.hero__lines { position: relative; display: grid; width: 100%; padding-inline: 24px; text-align: center; }
.hero__line {
  grid-area: 1 / 1; align-self: center;
  color: var(--white);
  font-size: clamp(26px, 2.9vw, 44px); line-height: 1.22; letter-spacing: -0.02em;
  text-wrap: pretty; text-shadow: 0 1px 24px rgb(0 0 0 / 0.25);
  opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity 650ms var(--ease-out), transform 800ms var(--ease-out), filter 650ms var(--ease-out);
}
.hero__line.is-on { opacity: 1; transform: none; filter: none; }
.hero__line.is-off { opacity: 0; transform: translateY(-14px); filter: blur(6px); transition-duration: 420ms; }
/* Transitions live on the end state only, so arriving fades and leaving
   (Replay) is instant. */
.hero__shade::after { content: ''; position: absolute; inset: 0; background: #000; opacity: 0; }
.hero__frame.is-end .hero__shade::after { opacity: 1; transition: opacity 1400ms ease; }
.hero__frame.is-end .hero__ticks { opacity: 0; }
/* The end screen is staged by v2.js: is-mark brings the mark up alone, is-open
   slides it left as the wordmark is uncovered beside it, is-replay adds the
   link, and is-leaving fades the lot back onto the video before a restart.
   One unit, --u, is a unit of the lockup's own 188x40 artwork. */
.hero__end { --u: clamp(0.95px, 0.095vw, 1.4px); position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; }
.hero__frame.is-end .hero__end { opacity: 1; visibility: visible; }
.hero__brand { display: flex; align-items: center; color: var(--white); }
.hero__mark { width: calc(28.6 * var(--u)); height: calc(40 * var(--u)); flex: none; opacity: 0; transform: scale(0.88); }
.hero__word { display: block; overflow: hidden; max-width: 0; }
.hero__word svg { display: block; width: calc(150.6 * var(--u)); height: calc(13.5 * var(--u)); margin-left: calc(5.3 * var(--u)); opacity: 0; transform: translateX(calc(-18 * var(--u))); }
.hero__frame.is-mark .hero__mark { opacity: 1; transform: none; transition: opacity 700ms ease, transform 900ms var(--ease-out); }
.hero__frame.is-open .hero__word { max-width: calc(156 * var(--u)); transition: max-width 1100ms cubic-bezier(0.65, 0, 0.25, 1); }
.hero__frame.is-open .hero__word svg { opacity: 1; transform: none; transition: opacity 700ms ease 250ms, transform 1000ms var(--ease-out) 150ms; }
/* Hung below the centred logo rather than stacked with it, so the logo sits on
   the frame's true centre. */
.hero__after { position: absolute; left: 50%; top: calc(50% + clamp(44px, 4.4vw, 64px)); width: max-content; max-width: calc(100% - 32px); display: grid; justify-items: center; gap: 28px; transform: translate(-50%, 6px); opacity: 0; pointer-events: none; }
.hero__frame.is-replay .hero__after { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; transition: opacity 600ms ease, transform 800ms var(--ease-out); }
.hero__tag { color: rgb(255 255 255 / 0.82); font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.01em; text-align: center; }
.hero__frame.is-end.is-leaving .hero__end { opacity: 0; transition: opacity 600ms ease; }
.hero__frame.is-end.is-leaving .hero__shade::after { opacity: 0; transition: opacity 900ms ease 300ms; }
.hero__replay {
  padding: 6px 4px; border: 0; background: none; cursor: pointer;
  color: rgb(255 255 255 / 0.6); font: 500 15px/1 var(--font-body); letter-spacing: 0.01em;
}
.hero__replay:hover { color: var(--white); }
.hero__replay:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.hero__ticks { transition: opacity 600ms ease; position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 6px; }
.hero__ticks i { width: 22px; height: 2px; border-radius: 2px; background: rgb(255 255 255 / 0.28); overflow: hidden; position: relative; }
.hero__ticks i::after { content: ''; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.hero__ticks i.is-done::after { transform: scaleX(1); }
.hero__ticks i.is-run::after { transform: scaleX(1); transition: transform var(--hold, 3s) linear; }

/* Story: the film, then the network under it. Without v2.js (or with reduced
   motion) it is a framed film above the diagram. With it, .is-scrolly lays the
   network under the film's foot and v2.js places both: the film gains its
   frame on the way in, and the Passport slides out from under it (--slide). */
.story__stage { display: flex; flex-direction: column; }
.story__card { order: -1; position: relative; width: calc(100% - var(--film-inset) * 2); max-width: var(--measure); margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 24px; }
.hero__over { position: absolute; inset: 0; display: grid; place-items: center; }

.story.is-scrolly .story__stage { position: relative; }
.story.is-scrolly .story__card { position: absolute; left: 0; top: 0; z-index: 2; margin: 0; max-width: none; aspect-ratio: auto; box-shadow: 0 30px 50px -30px rgb(15 23 42 / 0.35); }
.story.is-scrolly .network { position: absolute; z-index: 1; margin: 0; }
.story.is-scrolly .network__lines { opacity: var(--lines, 0); }
.story.is-scrolly .badge__card { transform: translateY(calc(var(--slide, 0px) * -1)); }
/* The 3D card waits hidden until v2.js has placed it behind the film. */
.story.is-scrolly .network.is-3d:not(.is-driven) .badge3d { opacity: 0; }
/* Until the card lands the pulses and the chips wait; landing sends them out. */
.story.is-scrolly .network:not(.is-landed) .network__pulse { visibility: hidden; }
.story.is-scrolly .chip { opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 420ms ease, transform 560ms var(--ease-out); }
.story.is-scrolly .network.is-landed .chip { opacity: 1; transform: none; }
.story.is-scrolly .network.is-landed .chip:nth-child(2) { transition-delay: 70ms; }
.story.is-scrolly .network.is-landed .chip:nth-child(3) { transition-delay: 140ms; }
.story.is-scrolly .network.is-landed .chip:nth-child(4) { transition-delay: 210ms; }
.story.is-scrolly .network.is-landed .chip:nth-child(5) { transition-delay: 280ms; }
.story.is-scrolly .network.is-landed .chip:nth-child(6) { transition-delay: 350ms; }

/* Proof: one quote at a time between two laurel branches, no card. The quotes
   share one grid cell so the tallest sets the height and none of them jumps
   the layout as they rotate; v2.js marks the front one. The branch is one
   file, drawn as a mask so it takes the ink colour, and mirrored on the right. */
.proof { padding-block: var(--rhythm) calc(var(--rhythm) * 1.5); }
.proof__line { margin-bottom: 32px; text-align: center; font-size: 15px; font-weight: 500; letter-spacing: 0.01em; color: var(--ink-3); }
.laurels { max-width: 880px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.laurels__frame { display: grid; grid-template-columns: auto minmax(0, 560px) auto; justify-content: center; align-items: center; gap: 32px; width: 100%; }
.laurels__frame::before, .laurels__frame::after {
  content: ""; width: 50px; height: 96px; background: var(--ink);
  -webkit-mask: url(img/laurel.svg) center / contain no-repeat; mask: url(img/laurel.svg) center / contain no-repeat;
}
.laurels__frame::after { transform: scaleX(-1); }
.laurels__view { display: grid; }
.laurels__quote {
  grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  text-align: center; opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
/* The outgoing quote clears before the incoming one arrives, so two are never
   legible on top of each other. */
.laurels__quote[data-front] {
  opacity: 1; transform: none; pointer-events: auto; cursor: pointer;
  transition: opacity 420ms ease 200ms, transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1) 200ms;
}
.laurels__quote blockquote { margin: 0; font-size: 24px; line-height: 1.5; letter-spacing: -0.01em; text-wrap: balance; }
.laurels__quote figcaption { font-size: 14px; color: var(--ink-3); }
.laurels__dots { display: flex; align-items: center; gap: 8px; }
.laurels__dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: var(--zinc-200); cursor: pointer; transition: background-color 150ms ease, width 150ms ease; }
.laurels__dots button[data-on] { width: 22px; background: var(--ink); }

/* Mission + network */
.mission { padding-block: calc(72px + var(--rhythm) * 0.8) calc(var(--rhythm) * 0.75); }
.mission__title {
  text-align: center;
  font-size: clamp(34px, 4.6vw, 72px); line-height: 1.12; letter-spacing: -0.035em;
}
.mission__lede { margin: 32px auto 0; text-align: center; max-width: 780px; text-wrap: balance; }
.network { position: relative; width: 100%; max-width: 1258px; margin: 96px auto 0; aspect-ratio: 1258 / 898; container-type: inline-size; }
.network__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.network__dots use { fill: none; stroke: var(--brand-500); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.1 7; opacity: 0.75; }
.network__pulse use {
  fill: none; stroke: var(--brand-500); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 26 calc(var(--len, 420) * 1px); stroke-dashoffset: 26; opacity: 0;
  animation: pulse 3.3s var(--d, 0s) cubic-bezier(0.45, 0, 0.2, 1) infinite;
}
@keyframes pulse {
  0% { stroke-dashoffset: 26; opacity: 0; }
  10% { opacity: 1; }
  70% { opacity: 1; }
  85%, 100% { stroke-dashoffset: calc(var(--len, 420) * -1px); opacity: 0; }
}
.network__ends rect { fill: var(--brand-500); }

/* Coordinates below are the Figma frame's, as fractions of its 1258 wide box
   cut to the 898 rows from y=150 down. */
.badge { position: absolute; inset: 0; pointer-events: none; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(4px); } }
.badge > * { position: absolute; }
.badge__card {
  left: calc(481 / 1258 * 100%); top: calc(183 / 898 * 100%); width: calc(327 / 1258 * 100%); height: calc(472 / 898 * 100%);
  border-radius: calc(32 / 1258 * 100cqi); background: var(--badge); overflow: hidden;
  box-shadow: 0 30px 60px -20px rgb(37 99 235 / 0.45), 0 12px 24px -12px rgb(15 23 42 / 0.25);
  color: var(--white); display: grid; justify-items: center; align-content: start;
}
/* The Figma "Gloss" shader is a static elliptical highlight; a radial gradient
   renders the same thing without WebGPU. It follows the pointer (v2.js). */
.badge__gloss {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 18% at var(--gx, 30%) var(--gy, 25%), rgb(255 255 255 / 0.55), rgb(255 255 255 / 0) 70%);
  transform: rotate(30deg) scale(1.6); transform-origin: var(--gx, 30%) var(--gy, 25%);
}
.badge__mark { position: relative; margin-top: calc(147.3 / 472 * 100%); width: calc(50.1 / 327 * 100%); height: auto; aspect-ratio: 28.6 / 40; }
.badge__title { position: relative; margin-top: calc(38 / 327 * 100%); font-family: var(--font-display); font-weight: 400; font-size: calc(31.5 / 1258 * 100cqi); line-height: 1.2; text-align: center; }
.badge__word { position: absolute; left: 50%; bottom: calc(31 / 472 * 100%); transform: translateX(-50%); width: calc(104 / 327 * 100%); height: auto; }

/* badge3d.js draws the badge in WebGL over the same frame and, once its
   first frame is up, hides the CSS badge underneath. */
.badge3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms ease; }
.network.is-3d .badge3d { opacity: 1; }
.network.is-3d .badge { visibility: hidden; }
.network__chips { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute; left: calc(var(--x) / 1258 * 100%); top: calc((var(--y) - 150) / 898 * 100%);
  padding: 8px 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--chip-line);
  box-shadow: 0 8px 10px rgb(0 0 0 / 0.08); font-size: clamp(14px, 1.43cqi, 18px); line-height: 1.3; white-space: nowrap;
}

.audiences {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 120px;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white);
}
.aud { padding: 34px 34px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.aud:nth-child(3n) { border-right: 0; }
.aud:nth-child(n + 4) { border-bottom: 0; }
.aud__icon { display: block; margin-bottom: 18px; color: var(--tone); }
.aud__icon svg { width: 28px; height: 28px; }
.aud:nth-child(1) { --tone: oklch(0.546 0.215 262.9); }
.aud:nth-child(2) { --tone: oklch(0.596 0.145 163.2); }
.aud:nth-child(3) { --tone: oklch(0.541 0.247 293); }
.aud:nth-child(4) { --tone: oklch(0.666 0.179 58.3); }
.aud:nth-child(5) { --tone: oklch(0.586 0.222 17.6); }
.aud:nth-child(6) { --tone: oklch(0.609 0.126 221.7); }
.aud h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 12px; }
.aud__new { color: var(--ink-2); font-size: 17px; }

/* Up to 120 days, down to minutes: the wait, what it costs, how it goes.
   Clipped sideways because the live card's dragged files start outside it. */
.minutes { background: var(--white); padding-block: var(--rhythm); overflow-x: clip; }
.minutes__head { display: grid; gap: 24px; justify-items: center; text-align: center; max-width: 1080px; margin-inline: auto; }
.minutes__title em { font-style: normal; color: var(--brand-500); }
.minutes__head .lede { max-width: 640px; text-wrap: balance; }
/* The prototype's stage: a soft field with the card floating at its centre. */
.minutes__stage { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; margin-top: 88px; padding: clamp(40px, 7vw, 96px) 20px; border-radius: 36px; background: var(--zinc-100); }
.minutes__stage .live { width: 100%; max-width: 520px; min-width: 0; }

/* The comparison: both columns share the rows, and the Credentiable column is
   one tinted strip from its header down to the blue total. */
.vs { width: 100%; margin-top: 120px; border-collapse: collapse; }
.vs th, .vs td { padding: 26px 24px 28px; text-align: left; vertical-align: top; font-weight: 400; }
.vs tbody th, .vs tfoot th { width: 200px; padding-left: 0; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.vs tbody tr, .vs tfoot tr { border-top: 1px solid var(--line); }
.vs tfoot tr { border-top-color: var(--ink); }
.vs thead th { padding-block: 28px 18px; font: 500 12.5px var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.vs thead th.vs__new { color: var(--brand-500); border-radius: 18px 18px 0 0; padding-top: 34px; }
.vs .vs__new { width: 38%; background: var(--brand-50); padding-inline: 34px; }
.vs .vs__old { width: 38%; }
.vs__when { display: block; margin-bottom: 8px; font: 400 13px var(--font-mono); color: var(--ink-3); }
.vs__new .vs__when { color: var(--brand-500); }
.vs td p { font-size: 20px; line-height: 1.45; letter-spacing: -0.01em; max-width: 30ch; }
.vs tfoot th { font: 500 12.5px var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); padding-top: 34px; }
.vs tfoot td { padding-block: 26px; font-weight: 650; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -0.04em; }
.vs tfoot td.vs__new { background: var(--brand-500); color: var(--white); border-radius: 0 0 18px 18px; }
/* Filled on arrival: the packet stalls at a tenth, the pre-filled one runs full. */
.vs__bar { display: flex; align-items: center; gap: 14px; margin-top: 18px; max-width: 460px; font: 500 12px var(--font-mono); }
.vs__bar i { flex: 1; height: 5px; border-radius: 5px; background: var(--zinc-200); position: relative; overflow: hidden; }
.vs__bar i::after { content: ''; position: absolute; inset: 0; background: var(--ink); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 1200ms var(--ease-out) 300ms; }
.vs__new .vs__bar { color: var(--brand-500); }
.vs__new .vs__bar i { background: var(--white); }
.vs__new .vs__bar i::after { background: var(--brand-500); }
.vs.is-in .vs__bar i::after { transform: scaleX(var(--to)); }
.vs__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.vs__chips li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 14px; background: var(--white); color: var(--brand-600); }
.vs__chips li svg { width: 13px; height: 13px; }
.vs__chips--old li { background: none; border: 1px dashed var(--zinc-300); color: var(--ink-2); }

.gains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 110px; padding-top: 56px; border-top: 1px solid var(--line); }
.gains p { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.42; letter-spacing: -0.015em; }
.gains b { font-weight: 650; color: var(--brand-500); }
.gains span { color: var(--ink-3); }

/* Live verification card */
.live {
  position: relative; margin: 0; background: var(--white); border-radius: 18px; padding: 22px 22px 20px;
  box-shadow: 0 24px 48px -24px rgb(15 23 42 / 0.2), 0 0 0 1px rgb(15 23 42 / 0.04);
}
.live__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--zinc-100); }
.live__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); font-weight: 600; font-size: 14px; flex: none; }
.live__who { display: grid; line-height: 1.3; min-width: 0; }
.live__who strong { font-weight: 600; font-size: 15.5px; }
.live__who span { font-size: 13.5px; color: var(--ink-3); }
.live__pill { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding-inline: 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.live__pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: live-dot 1.4s ease-in-out infinite; }
@keyframes live-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.75); } }
.live[data-done] .live__pill { background: var(--emerald-50); color: var(--emerald-700); }
.live[data-done] .live__pill i { animation: none; }

/* Three panes in one grid cell, so the card keeps the height of the tallest
   (the source list) and nothing jumps as the phase changes. */
.live__body { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
.live__pane { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 400ms ease, visibility 0s 400ms; }
.live[data-phase='drop'] .live__pane--drop,
.live[data-phase='read'] .live__pane--read,
.live[data-phase='verify'] .live__pane--verify { opacity: 1; visibility: visible; transition: opacity 500ms ease 150ms, visibility 0s; }

.live__initials { opacity: 0; transition: opacity 400ms ease; }
.live[data-named] .live__initials { opacity: 1; }
.live:not([data-named]) .live__avatar { background: var(--zinc-100); }
.live__who strong, .live__who span { transition: color 300ms ease; }
.live:not([data-named]) .live__who strong { color: var(--ink-3); }

.drop {
  height: 100%; margin-top: 10px; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
  border: 1.5px dashed var(--zinc-300); border-radius: 14px; background: var(--zinc-50);
  transition: border-color 250ms ease, background-color 250ms ease, transform 300ms var(--ease-out);
}
.drop__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--white); color: var(--brand-500); box-shadow: 0 1px 2px rgb(15 23 42 / 0.08); margin-bottom: 8px; }
.drop__icon svg { width: 22px; height: 22px; }
.drop__title { font-weight: 600; font-size: 16px; }
.drop__hint { font-size: 13.5px; color: var(--ink-3); }
.drop.is-over { border-color: var(--brand-500); background: var(--brand-50); transform: scale(1.015); }
.drop.is-in { border-style: solid; border-color: var(--brand-100); background: var(--brand-50); }

.lic__file { display: flex; justify-content: space-between; margin-top: 10px; font: 400 12px var(--font-mono); color: var(--ink-3); }
.lic {
  position: relative; overflow: hidden; margin-top: 8px; padding: 18px 20px 22px; border-radius: 10px;
  background: linear-gradient(135deg, #fbfaf6, #f3f1ea); border: 1px solid #e6e2d6; box-shadow: 0 8px 20px -12px rgb(15 23 42 / 0.25);
  opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 400ms ease, transform 500ms var(--ease-out);
}
.live[data-phase='read'] .lic { opacity: 1; transform: none; }
.lic__mark { position: absolute; right: -34px; top: 18px; transform: rotate(35deg); padding: 3px 44px; background: rgb(168 70 27 / 0.1); color: #a8461b; font: 600 10px var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; }
.lic__top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e6e2d6; }
.lic__seal { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #c9c2ad; box-shadow: inset 0 0 0 4px #f3f1ea, inset 0 0 0 5px #c9c2ad; flex: none; }
.lic__top b { display: block; font: 600 11px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #6b6452; }
.lic__top i { display: block; font-style: normal; font-weight: 600; font-size: 15.5px; color: #2b2922; }
.lic__main { display: grid; grid-template-columns: 76px 1fr; gap: 18px; margin-top: 16px; }
.lic__photo { height: 96px; border-radius: 6px; background: linear-gradient(#e6e2d6, #d9d3c2); position: relative; overflow: hidden; }
.lic__photo::before { content: ''; position: absolute; left: 50%; top: 18px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: #c2baa4; }
.lic__photo::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: 56px; height: 40px; margin-left: -28px; border-radius: 50%; background: #c2baa4; }
.lic__grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.lic__f { padding: 3px 6px; margin: -3px 0 -3px -6px; border-radius: 5px; outline: 1.5px solid transparent; transition: outline-color 250ms ease, background-color 250ms ease; }
.lic__f--wide { grid-column: 1 / -1; }
.lic__f dt { font-size: 10.5px; color: #8a836f; text-transform: uppercase; letter-spacing: 0.06em; }
.lic__f dd { margin: 1px 0 0; font: 500 15px var(--font-mono); color: #2b2922; white-space: nowrap; }
.lic__f.is-hit { outline-color: var(--brand-500); background: rgb(53 91 245 / 0.08); }
.lic__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand-500); box-shadow: 0 0 14px 4px rgb(53 91 245 / 0.35); opacity: 0; }
.lic__scan::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 46px; background: linear-gradient(to top, rgb(53 91 245 / 0.14), transparent); }
.lic.is-scanning .lic__scan { animation: lic-scan 1800ms cubic-bezier(0.45, 0, 0.55, 1) forwards; }
@keyframes lic-scan { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.field--more dd { font-family: var(--font-body); color: var(--emerald-700); }
.docs__fields { margin-top: 16px; font: 500 11.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); opacity: 0; transition: opacity 400ms ease; }
.docs__fields.is-on { opacity: 1; }
.fields { margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.field { min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--zinc-50); opacity: 0; transform: translateY(6px); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.field.is-on { opacity: 1; transform: none; }
.field dt { font-size: 12px; color: var(--ink-3); }
.field dd { margin: 1px 0 0; font: 500 12.5px var(--font-mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The dragged stack of files, with a cursor. It flies in from outside the
   card's top-right corner and lands on the drop zone. */
.ghost {
  position: absolute; left: 50%; top: 42%; width: 120px; height: 96px; margin: -48px 0 0 -60px; z-index: 3; pointer-events: none;
  opacity: 0; transform: translate(230px, -230px) rotate(10deg);
}
.live[data-ghost='start'] .ghost { opacity: 1; transition: opacity 250ms ease; }
.live[data-ghost='over'] .ghost { opacity: 1; transform: translate(0, 0) rotate(-2deg); transition: transform 1100ms cubic-bezier(0.5, 0, 0.2, 1); }
.live[data-ghost='drop'] .ghost { opacity: 0; transform: translate(0, 12px) scale(0.7); transition: opacity 300ms ease, transform 350ms ease-in; }
.ghost__file {
  position: absolute; left: 28px; top: 4px; width: 60px; height: 76px; border-radius: 8px; background: var(--white);
  border: 1px solid var(--zinc-200); box-shadow: 0 10px 24px -8px rgb(15 23 42 / 0.3);
  display: grid; place-items: end center; padding-bottom: 8px; font: 600 10px var(--font-mono); color: var(--brand-600);
}
.ghost__file::before { content: ''; position: absolute; left: 10px; right: 10px; top: 12px; height: 26px; background: repeating-linear-gradient(var(--zinc-200) 0 2px, transparent 2px 7px); }
.ghost__file:nth-child(1) { transform: rotate(-10deg) translate(-10px, 4px); }
.ghost__file:nth-child(3) { transform: rotate(8deg) translate(10px, 2px); }
.ghost__count { position: absolute; left: 76px; top: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--brand-500); color: var(--white); font: 600 12px/22px var(--font-body); text-align: center; box-shadow: 0 0 0 2px var(--white); }
.ghost__cursor { position: absolute; left: 70px; top: 58px; width: 22px; height: 22px; }

.live__rows { margin: 6px 0 0; }
.live__row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--zinc-100); }
.live__row:last-child { border-bottom: 0; }
.live__state { grid-row: 1 / 3; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--zinc-200); position: relative; transition: background-color 250ms ease, border-color 250ms ease; }
.live__row[data-s='run'] .live__state { border-color: var(--brand-100); border-top-color: var(--brand-500); animation: live-spin 700ms linear infinite; }
@keyframes live-spin { to { transform: rotate(360deg); } }
.live__row[data-s='ok'] .live__state { border-color: var(--emerald-500); background: var(--emerald-500); animation: live-pop 380ms var(--ease-out); }
.live__row[data-s='ok'] .live__state::after { content: ''; position: absolute; left: 5.5px; top: 2.5px; width: 4px; height: 8px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes live-pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.live__src { font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live__what { grid-column: 2; font-size: 13px; color: var(--zinc-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live__row[data-s='run'] .live__what { color: var(--brand-500); }
.live__row[data-s='ok'] .live__what { color: var(--ink-3); animation: live-in 320ms var(--ease-out); }
@keyframes live-in { from { opacity: 0; transform: translateY(-3px); } }
.live__time { grid-column: 3; grid-row: 1 / 3; font: 400 12px var(--font-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }

.live__foot { margin-top: 14px; }
.live__bar { height: 4px; border-radius: 4px; background: var(--zinc-100); overflow: hidden; }
.live__bar i { display: block; height: 100%; width: 100%; background: var(--brand-500); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 300ms var(--ease-out), background-color 300ms ease; }
.live[data-done] .live__bar i { background: var(--emerald-500); }
.live__status { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.live[data-done] .live__label { color: var(--emerald-700); font-weight: 600; }
.live__clock { font: 500 13px var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }

/* Agentic AI: the headline on the left, the clinician's documents on the right. */
.ai { position: relative; isolation: isolate; overflow: hidden; background: var(--white); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 48px;
  padding: var(--rhythm) max(var(--gutter), calc((100% - var(--measure)) / 2)); }
.ai__copy { position: relative; z-index: 2; display: grid; justify-items: start; gap: 22px; }
.ai__copy h2 { display: grid; }
.ai__copy em { font-style: normal; color: var(--brand-500); }
.ai__copy .lede { max-width: 40ch; }

/* The credentials pile up in isometric: turned on the vertical axis and a
   little from above, with no perspective, so every card draws at one size.
   v2.js gives each card its place in the pile, --k: 0 is the front card, and
   each one after steps back by --dz along its own depth (which the turn draws
   up and to the right), plus --dx/--dy across the page. A new card slides down
   out of the fog at the top (data-in lifts it), the pile moves back a place,
   and the oldest fades into the fog. data-stack picks the shape; ?tune opens
   a panel to dial it (ai-tune.js). */
.ai__stack {
  --cw: 260px; --n: 6;
  --dz: 78px; --dx: 0px; --dy: 10px;
  /* How far the depth step draws across and up, for sizing the box. */
  --zx: calc(var(--dz) * 0.53); --zy: calc(var(--dz) * 0.23);
  position: relative; justify-self: center;
  width: calc(var(--cw) * 1.25 + var(--n) * (var(--dx) + var(--zx)));
  height: calc(var(--cw) * 1.95 + var(--n) * (var(--dy) + var(--zy)));
  --fog: linear-gradient(to bottom, transparent 0, #000 14%), linear-gradient(to top right, #000 42%, transparent 92%);
  -webkit-mask: var(--fog); -webkit-mask-composite: source-in; mask: var(--fog); mask-composite: intersect;
}
.ai__stack[data-stack='balanced'] { --dz: 48px; --dx: 6px; --dy: 26px; }
.ai__stack[data-stack='cascade'] {
  --dz: 0px; --dx: 30px; --dy: 44px;
  --fog: linear-gradient(to bottom, transparent 0, #000 16%, #000 58%, transparent 100%);
  -webkit-mask-composite: source-over; mask-composite: add;
}
.cred {
  position: absolute; left: 0; top: calc(var(--cw) * 0.52 + var(--n) * var(--zy)); width: var(--cw); aspect-ratio: 3 / 4;
  z-index: calc(20 - var(--k));
  transform: translate(calc(var(--k) * var(--dx)), calc(var(--k) * var(--dy) + var(--lift, 0px))) rotateX(-16deg) rotateY(-32deg) translateZ(calc(var(--k) * var(--dz) * -1));
  display: grid; grid-template-rows: auto auto 1fr auto; align-content: start;
  padding: 22px 22px 20px; border-radius: 20px;
  color: var(--ink); font-size: 15px; line-height: 1.35;
  background: linear-gradient(160deg, var(--white) 55%, color-mix(in oklab, var(--tint) 45%, var(--white)));
  box-shadow: inset 0 0 0 1px rgb(15 23 42 / 0.05), inset 0 1px 0 rgb(255 255 255 / 0.9),
    0 1px 2px rgb(15 23 42 / 0.04), 0 18px 40px -18px rgb(15 23 42 / 0.28);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity 700ms ease;
}
.cred[data-in] { --lift: calc(var(--cw) * -1.15); transition: none; }
/* The card pushed off the end of the pile fades as it goes. */
.cred[data-out] { opacity: 0; }
.cred__icon { width: 44px; aspect-ratio: 1; border-radius: 13px; display: grid; place-items: center; background: var(--tint); color: var(--ink-c); }
.cred__icon svg { width: 56%; height: 56%; }
.cred b { margin-top: 18px; font-weight: 600; font-size: 1.15em; letter-spacing: -0.015em; }
.cred__sub { margin-top: 4px; color: var(--ink-3); }
.cred__ok { justify-self: start; max-width: 100%; display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap; overflow: hidden; padding: 0.35em 0.8em; border-radius: 999px; background: var(--zinc-100); color: var(--ink-3); font-weight: 600; font-size: 0.88em; }
.cred[data-state='scan'] .cred__ok { background: var(--brand-50); color: var(--brand-600); }
.cred[data-state='scan'] .cred__ok::before { content: ''; width: 0.8em; height: 0.8em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: cred-spin 700ms linear infinite; }
.cred[data-state='ok'] .cred__ok { background: var(--emerald-50); color: var(--emerald-700); animation: cred-pop 420ms var(--ease-out); }
.cred[data-state='ok'] .cred__ok::before { content: '\2713'; }
@keyframes cred-spin { to { transform: rotate(1turn); } }
@keyframes cred-pop { 40% { transform: scale(1.1); } }
/* The scan: a band of light down the front card while its source is checked. */
.cred::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, rgb(53 91 245 / 0.14) 46%, rgb(255 255 255 / 0.85) 50%, transparent 54%) 0 0 / 100% 240% no-repeat; }
.cred[data-state='scan']::after { opacity: 1; animation: cred-scan 1100ms cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes cred-scan { from { background-position: 0 100%; } to { background-position: 0 0; } }
.cred--lic { --tint: var(--brand-50); --ink-c: var(--brand-600); }
.cred--dea { --tint: #f1edff; --ink-c: #6a4cf0; }
.cred--brd { --tint: #fff5e0; --ink-c: #b46b00; }
.cred--als { --tint: #ffeef0; --ink-c: #d0304a; }
.cred--vax { --tint: var(--emerald-50); --ink-c: var(--emerald-700); }
.cred--ins { --tint: var(--zinc-100); --ink-c: var(--zinc-600); }
.cred--npi { --tint: #e8f6ff; --ink-c: #0a78b5; }
.cred--edu { --tint: #f4eefb; --ink-c: #8a3fc2; }

/* Audit: who ran each check, when, and which source answered. */
.audit { padding-block: calc(var(--rhythm) * 1.4); overflow-x: clip; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__copy { display: grid; gap: 18px; }
.audit__bodies { font: 500 12px var(--font-mono); letter-spacing: 0.14em; color: var(--ink-3); }
.split__panel { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); box-shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 22px 48px -26px rgb(15 23 42 / 0.16); }
.trail__row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--zinc-100); font-size: 15px; color: var(--ink-2); }
.trail__row:last-child { border-bottom: 0; }
.trail__row > :first-child { font: 400 12px var(--font-mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.trail__row strong { color: var(--ink); font-weight: 600; }
/* The pencil lies across the log, tip below its bottom-left and eraser above
   its top-right. It is placed by its tip: the box's foot is the tip, and it
   turns about it. The shadow is offset in the pencil's own turned frame, so
   it falls downward on screen. */
.split__side { position: relative; }
.audit__pencil { position: absolute; right: 464px; bottom: -60px; width: auto; height: 460px; z-index: 1; pointer-events: none; transform-origin: 50% 100%; filter: drop-shadow(13px 20px 18px rgb(15 23 42 / 0.22)); animation: pencil-float 9s ease-in-out infinite; }
@keyframes pencil-float { 0%, 100% { transform: translate(0, 0) rotate(34deg); } 50% { transform: translate(-6px, -14px) rotate(37deg); } }

/* Book a demo + the wheel */
.demo { position: relative; overflow: hidden; }
.demo__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 24px; text-align: center; padding-block: 220px 140px; }
.demo .lede { max-width: 50ch; }
.demo__cta { margin-top: 8px; }

/* The booking dialog. A native <dialog>, so Esc, focus
   containment and the top layer come from the platform. Every step keeps the
   same footer, so it reads as one flow rather than three forms. */
.bk-modal { width: 100%; max-width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; background: none; overflow: visible; }
/* The dialog does not clip, so the panel's shadow survives; scrolling comes
   back only where the tallest step might not fit, as on a phone with its
   keyboard up, with padding that leaves the shadow room inside the scroller. */
@media (max-height: 720px), (max-width: 560px) {
  .bk-modal { max-width: 100vw; max-height: 100dvh; padding: 24px 16px 64px; overflow: auto; overscroll-behavior: contain; }
}
.bk-modal::backdrop { background: oklch(96.7% 0.001 286.375 / 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bk-modal[open]::backdrop { animation: bk-dim 180ms ease both; }
html:has(.bk-modal[open]) { overflow: hidden; }
.bk {
  --bk-inset: 28px; --bk-bad: oklch(50.5% 0.213 27.518);
  /* Wider than the panel, so even the narrow buttons clear its edge. */
  --bk-travel: 520px;
  position: relative; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 28px 60px -24px rgb(15 23 42 / 0.3);
  transition: height 100ms ease-out;
  animation: bk-rise 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes bk-rise { from { opacity: 0; transform: translateY(8px) scale(0.985); } }
@keyframes bk-dim { from { opacity: 0; } }
/* It closes the dialog, not the step, so it holds still while a step sweeps. */
.bk__close {
  position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center;
  width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
@media (hover: hover) { .bk__close:hover { background: var(--zinc-100); color: var(--ink); } }
/* Clipped only while a step sweeps, so the parts vanish at the panel edge. */
.bk[data-cascade] { overflow: hidden; }
/* The floor keeps every step the same height, so the footer never jumps. */
.bk, .bk form { display: flex; flex-direction: column; min-height: 404px; }
.bk form { flex: 1; }
/* Every part here sets its own display, which would otherwise beat `hidden`. */
.bk [hidden] { display: none !important; }
.bk__body { flex: 1; padding: 18px var(--bk-inset) 8px; }
.bk__head { padding: 28px 56px 0 var(--bk-inset); }
.bk__title { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.025em; }
.bk__lede { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.bk__step { display: grid; gap: 12px; }

/* The whole box is the label, so a click anywhere in it reaches the input. */
.bk__field { display: grid; gap: 7px; }
.bk__box {
  display: block; padding: 8px 14px 9px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); cursor: text; transition: border-color 120ms ease, box-shadow 120ms ease;
}
.bk__label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.01em; color: var(--ink-2); }
.bk__box input {
  width: 100%; height: 24px; margin-top: 2px; padding: 0; border: 0; background: none;
  font: 400 16px var(--font-body); color: var(--ink);
}
.bk__box input:focus { outline: none; }
.bk__box input::placeholder { color: var(--zinc-400); }
.bk__box:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-500) 18%, transparent); }
.bk__field[data-bad] .bk__box { border-color: var(--bk-bad); box-shadow: 0 0 0 3px color-mix(in oklab, var(--bk-bad) 14%, transparent); }
.bk__error { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--bk-bad); }
.bk__error svg { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.bk__error a { color: inherit; font-weight: 500; }

/* One tap is the answer and the step: asking for a second gesture to confirm
   it is what this flow exists to remove. */
.bk__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk__choice:last-child { grid-column: 1 / -1; }
.bk__choice {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  font: 500 15px var(--font-body); color: var(--ink); cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}
@media (hover: hover) { .bk__choice:hover { border-color: var(--zinc-300); } }
.bk__choice:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.bk__choice[aria-checked='true'] { border-color: var(--brand-500); background: var(--brand-50); }
/* The tick holds its space, so choosing does not shunt the label sideways. */
.bk__tick { display: grid; place-items: center; width: 16px; height: 16px; color: var(--brand-500); }
.bk__tick svg { width: 16px; height: 16px; opacity: 0; transition: opacity 120ms ease; }
.bk__choice[aria-checked='true'] .bk__tick svg { opacity: 1; }

.bk__foot { display: flex; align-items: center; gap: 12px; padding: 20px var(--bk-inset) 28px; }
.bk__back {
  display: flex; align-items: center; height: 40px; padding: 0 12px; border: 0; border-radius: 8px;
  background: none; font: 500 14px var(--font-body); color: var(--ink-2); cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
@media (hover: hover) { .bk__back:hover { background: var(--zinc-100); color: var(--ink); } }
.bk__go { margin-left: auto; gap: 0; height: 44px; padding-inline: 20px; font-size: 15px; }
.bk__go[aria-busy='true'] { opacity: 0.7; cursor: progress; }
/* Each chevron closes its own width, and its gap with it, where it means nothing:
   no Back behind step one, no "more" after the last. */
.bk__back-icon, .bk__go-icon { flex: none; overflow: hidden; transition: width 120ms ease, margin 120ms ease; }
.bk__back-icon { margin-right: 5px; }
.bk__go-icon { margin-left: 8px; }
.bk__back-icon[data-off] { width: 0; margin-right: 0; }
.bk__go-icon[data-off] { width: 0; margin-left: 0; }

.bk__done { flex: 1; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 48px 36px; text-align: center; }
.bk__done-tick { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--emerald-50); color: var(--emerald-700); }
.bk__done-tick svg { width: 28px; height: 28px; }
.bk__done h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.025em; }
.bk__done p { font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.bk__done strong { color: var(--ink); font-weight: 600; }
.bk__done .btn { margin-top: 6px; }

/* A step leaves in a cascade -- title, lede, fields, buttons, a beat apart --
   and the next arrives the same way from the far side. v2.js numbers the
   parts in --cascade. The fade finishes before the travel does. */
.bk__part { animation: 400ms ease-out both; animation-delay: calc(var(--cascade, 0) * 30ms); }
.bk[data-cascade='out'] .bk__part { animation-name: bk-out-left; }
.bk[data-cascade='in'] .bk__part { animation-name: bk-in-right; }
.bk[data-cascade='out-back'] .bk__part { animation-name: bk-out-right; }
.bk[data-cascade='in-back'] .bk__part { animation-name: bk-in-left; }
@keyframes bk-out-left { 60% { opacity: 0; } to { opacity: 0; transform: translateX(calc(var(--bk-travel) * -1)); } }
@keyframes bk-out-right { 60% { opacity: 0; } to { opacity: 0; transform: translateX(var(--bk-travel)); } }
@keyframes bk-in-right { from { opacity: 0; transform: translateX(var(--bk-travel)); } 45% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes bk-in-left { from { opacity: 0; transform: translateX(calc(var(--bk-travel) * -1)); } 45% { opacity: 1; } to { opacity: 1; transform: none; } }

.spin {
  --spin-size: 132px;
  --radius: 30px; --w: 19px; --h: 27px; --t: 0px; --br: 4px;
  --rx: 2deg; --ry: -35deg; --rz: 45deg; --dur: 60s;
  position: absolute; left: 50%; top: 100%;
  width: var(--spin-size); height: var(--spin-size);
  margin: calc(var(--spin-size) * -0.5) 0 0 calc(var(--spin-size) * -0.5);
  transform-style: preserve-3d; pointer-events: none;
  transform: translate(var(--spin-x, -26px), var(--spin-y, 410px)) scale(calc(var(--spin-scale, 15.1515) * var(--spin-near, 1)));
}
/* Only once v2.js has placed it, so the first placement is not animated. */
.spin[data-ready] { transition: transform 900ms var(--ease-out); }
.spin[data-near='true'] { --spin-near: 1.035; }
.spin__rig { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)); }
.spin__bar {
  position: absolute; width: var(--w); height: var(--h);
  left: calc(50% + var(--radius) - var(--w) / 2); top: calc(50% - var(--h) / 2);
  transform-origin: calc(var(--w) / 2 - var(--radius)) 50%;
  transform-style: preserve-3d; animation: spin-turn var(--dur) linear infinite;
}
@keyframes spin-turn { from { transform: rotate(0deg) rotateX(90deg); } to { transform: rotate(360deg) rotateX(90deg); } }
.spin__face { position: absolute; left: 50%; top: 50%; border-radius: var(--br); background: var(--fill, #476ff5); backface-visibility: hidden; }
.spin__face--front  { width: var(--w); height: var(--h); transform: translate(-50%,-50%) translateZ(calc(var(--t) / 2)); }
.spin__face--back   { width: var(--w); height: var(--h); transform: translate(-50%,-50%) translateZ(calc(var(--t) / -2)) rotateY(180deg); }
.spin__face--left   { width: var(--t); height: var(--h); transform: translate(-50%,-50%) translateX(calc(var(--w) / -2)) rotateY(-90deg); }
.spin__face--right  { width: var(--t); height: var(--h); transform: translate(-50%,-50%) translateX(calc(var(--w) / 2)) rotateY(90deg); }
.spin__face--top    { width: var(--w); height: var(--t); transform: translate(-50%,-50%) translateY(calc(var(--h) / -2)) rotateX(90deg); }
.spin__face--bottom { width: var(--w); height: var(--t); transform: translate(-50%,-50%) translateY(calc(var(--h) / 2)) rotateX(-90deg); }

.foot { border-top: 1px solid var(--line); }
.foot__row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding-block: 26px; font-size: 14px; color: var(--ink-3); }
.foot__links { display: flex; gap: 22px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.audiences .reveal:nth-child(3n + 2) { transition-delay: 80ms; }
.audiences .reveal:nth-child(3n) { transition-delay: 160ms; }

/* The opening cascade (v2.js numbers the parts). After america.gov's hero
   entrance: each part rises 12px out of an 8px blur, 70ms behind the last. */
.cascade { animation: cascade-in 900ms cubic-bezier(0.22, 1, 0.36, 1) calc(120ms + var(--i) * 70ms) both; }
.cascade__word { display: inline-block; }
@keyframes cascade-in { from { opacity: 0; filter: blur(8px); transform: translateY(12px); } to { opacity: 1; filter: none; transform: none; } }

@media (max-width: 1080px) {
  .ai { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  :root { --rhythm: 120px; }
  .audiences { grid-template-columns: 1fr 1fr; }
  .aud:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .aud:nth-child(2n) { border-right: 0; }
  .aud:nth-child(n + 5) { border-bottom: 0; }
  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --rhythm: 96px; --film-inset: 8px; }
  .nav__inner { height: 60px; }
  .nav__logo svg { width: 140px; height: 30px; }
  .nav__wide { display: none; }
  .br-wide { display: none; }
  h2 { font-size: 28px; }

  /* The diagram's geometry does not survive a phone width: the badge stands
     alone and the six audiences wrap beneath it. */
  .network { aspect-ratio: auto; margin-top: 56px; display: grid; justify-items: center; gap: 36px; container-type: normal; }
  .network__lines { display: none; }
  .badge3d { display: none; }
  .network.is-3d .badge { visibility: visible; }
  .badge { position: relative; inset: auto; width: 240px; height: 346px; }
  .badge__card { left: 0; top: 0; width: 240px; height: 346px; border-radius: 24px; }
  .badge__title { font-size: 24px; }
  .network__chips { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .chip { position: static; font-size: 15px; }

  .audiences { grid-template-columns: 1fr; margin-top: 72px; }
  .minutes__stage { margin-top: 56px; border-radius: 24px; padding: 28px 12px; }
  .vs { margin-top: 72px; }
  .vs, .vs tbody, .vs tfoot, .vs tr, .vs th, .vs td, .vs .vs__old, .vs .vs__new, .vs tbody th, .vs tfoot th { display: block; width: auto; }
  .vs thead { display: none; }
  .vs tbody tr, .vs tfoot tr { padding: 22px 0 6px; }
  .vs tbody th, .vs tfoot th { padding: 0 0 12px; }
  .vs td { padding: 14px 16px 16px; border-radius: 14px; }
  .vs .vs__new { margin-top: 8px; padding-inline: 16px; }
  .vs td::before { display: block; margin-bottom: 6px; font: 500 11px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
  .vs td.vs__old::before { content: 'The traditional way'; }
  .vs td.vs__new::before { content: 'With Credentiable'; color: var(--brand-500); }
  .vs tfoot td.vs__new { border-radius: 14px; }
  .vs tfoot td.vs__new::before { color: rgb(255 255 255 / 0.75); }
  .vs td p { font-size: 17px; }
  .gains { grid-template-columns: 1fr; gap: 28px; margin-top: 72px; padding-top: 36px; }
  .aud:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 22px 28px; }
  .aud:last-child { border-bottom: 0; }
  .demo__inner { padding-block: 140px 80px; }
  .ai__stack { --cw: 190px; --dz: 52px; --dy: 8px; }
  .ai__stack[data-stack='balanced'] { --dz: 34px; --dx: 4px; --dy: 18px; }
  .ai__stack[data-stack='cascade'] { --dz: 0px; --dx: 20px; --dy: 32px; }
  .cred { padding: 16px 16px 15px; border-radius: 16px; font-size: 12px; }
  .cred__icon { width: 36px; border-radius: 11px; }
  .cred b { margin-top: 12px; }
  .laurels__frame { gap: 14px; }
  .laurels__frame::before, .laurels__frame::after { width: 36px; height: 69px; }
  .laurels__quote blockquote { font-size: 18px; }
  .trail__row { grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; font-size: 14px; }
  .split__side { margin-top: 100px; }
  .audit__pencil { right: 288px; bottom: -37px; height: 285px; }
  .bk { --bk-inset: 20px; border-radius: 16px; }
  .bk__title, .bk__done h2 { font-size: 21px; }
  .bk__done { padding: 40px 22px; }
}

/* Two buttons and the wordmark only just fit a 390 phone; narrower ones take
   a smaller logo rather than lose a button. */
@media (max-width: 380px) {
  .nav__logo svg { width: 118px; height: 26px; }
  .nav__cta { gap: 6px; }
  .nav__cta .btn { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .badge, .spin__bar, .network__pulse use { animation: none; }
  .network__pulse { display: none; }
  .live__pill i, .live__row[data-s='run'] .live__state { animation: none; }
  .ghost { display: none; }
  .hero__line { transition: opacity 400ms linear; transform: none; filter: none; }
  .hero__mark, .hero__word svg { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .spin { transition: none; }
  .laurels__quote, .laurels__dots button { transition: none; }
  .vs__bar i::after { transition: none; }
  .audit__pencil { animation: none; transform: rotate(34deg); }
  .bk, .bk__box, .bk__choice, .bk__tick svg, .bk__back-icon, .bk__go-icon { transition: none; }
  .bk, .bk__part, .bk-modal[open]::backdrop { animation: none; }
}
