/* The homepage. The ledger: ruled paper, ledger-green ink, a red double rule for totals and margins, navy
   for the dark bands (palette: white, navy, light blue; Scott 2026-11-24). One family (Libre Franklin, American business-form gothic). Phone first.
   No inline styles anywhere (CSP style-src 'self'). */

@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/libre-franklin-52e605852c.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* white ground, navy for weight, a lighter tech blue for accents (Scott, 2026-11-24) */
  --paper: #ffffff;
  --paper-2: #f3f6fb;
  --sheet: #ffffff;
  --rule: #dbe3ee;
  --rule-strong: #a6b6cc;
  --ink: #0b1b33;
  --pencil: #4a5a70;
  --accent: #1f5fd1;
  --accent-deep: #173f86;
  --accent-wash: #e8f0fd;
  --rule-accent: #2f6fdc;
  --raw-wash: #fde3df;
  --raw-line: #c9473a;
  /* navy bands */
  --navy: #0d2342;
  --navy-2: #13305a;
  --navy-3: #0a1c36;
  --navy-rule: #2a4c7a;
  --navy-ink: #eef3fb;
  --navy-pencil: #b3c3db;
  --sky: #8ab8ff;
  --sky-hi: #b3d0ff;
  --warn-on-navy: #f29b8f;

  --font: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --gap: 2rem;
  --bar: 3.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--rule-strong) var(--paper);
  accent-color: var(--accent);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; }

::selection { background: #cfe0fb; color: var(--ink); }
.band--navy ::selection, .footer ::selection { background: var(--sky); color: var(--navy); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.band--navy a, .footer a { color: var(--sky); }
.band--navy a:hover, .footer a:hover { color: var(--sky-hi); }
.band--navy :focus-visible, .footer :focus-visible { outline-color: var(--sky); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 4px; text-decoration: none; font-weight: 650;
}
.skip:focus { top: 0.75rem; color: var(--paper); }
.skip:hover { color: var(--paper); background: var(--navy); }

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ------------------------------------------------------------------ type */
.display {
  font-size: clamp(2.2rem, 1.35rem + 4.1vw, 4.35rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.9vw, 3.05rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 24ch;
}
.h2--small { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.3rem); }
/* Running text avoids a single word alone on its last line (the design detector's straggler advisories at 390 and
   1280 px, audit round 2 triage); browsers without text-wrap: pretty wrap as before. */
p, li, dd, figcaption, summary, td { text-wrap: pretty; }
.h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.tone-2 { color: var(--accent); }
.band--navy .tone-2 { color: var(--sky); }
.lead {
  font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  max-width: 40ch;
}
.small-print { font-size: 0.875rem; color: var(--pencil); max-width: 70ch; }
.band--navy .small-print { color: var(--navy-pencil); }
.num, .strip__num, .journal__num, .ledger__ref, .statement__ref, .questions li::before {
  font-variant-numeric: tabular-nums lining-nums;
}

/* ------------------------------------------------------------------ bands */
.band { padding-block: clamp(3.75rem, 2.6rem + 5vw, 7rem); }
.band--paper { background: var(--paper); }
.band--ledger { background: var(--paper-2); }
.band--navy { background: var(--navy); color: var(--navy-ink); }
section[id], div[id] { scroll-margin-top: calc(var(--bar) + 0.75rem); }

/* the account tab: names the section exactly as the top bar does, sitting on the section's top rule */
.tab {
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
.tab span {
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--accent);
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  padding: 0.3rem 0.85rem 0.35rem;
  margin-bottom: -1px;
}
.band--ledger .tab span { background: var(--paper-2); }
.band--navy .tab { border-bottom-color: var(--navy-rule); }
.band--navy .tab span { color: var(--sky); background: var(--navy-2); border-color: var(--navy-rule); }

.band__cta { margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.4rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
/* Hover: the button stays where it is (nothing slides out from under the pointer); its shadow deepens, as if lifted,
   and its arrow moves on. A press sinks it a little. */
.btn .icon { width: 1.15rem; height: 1.15rem; transition: transform 0.3s var(--ease-out); }
.btn:hover .icon { transform: translateX(5px); }
.btn:active { transform: translateY(1px) scale(0.985); transition-duration: 0.08s; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; box-shadow: 0 14px 24px -14px rgb(13 35 66 / 0.6); }
.btn--small { min-height: 2.5rem; padding: 0.45rem 0.85rem; font-size: 0.9375rem; background: var(--navy); color: #fff; white-space: nowrap; }
.btn--small:hover { background: var(--accent-deep); color: #fff; box-shadow: 0 10px 18px -12px rgb(13 35 66 / 0.6); }
.btn--small .icon { display: none; }
.band--navy .btn--on-navy { background: var(--sky); color: var(--navy); }
.band--navy .btn--on-navy:hover { background: var(--sky-hi); color: var(--navy); box-shadow: 0 16px 28px -14px rgb(138 184 255 / 0.55); }
.textlink { font-weight: 650; }

.icon { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ preview-only */
.preview-bar { background: #fff2b8; color: #3b2f00; border-bottom: 1px solid #e2c86a; font-size: 0.8125rem; line-height: 1.45; padding-block: 0.5rem; }
mark.pending {
  background: #ffe27a; color: #2a2200; font-weight: 700; font-size: 0.78em;
  padding: 0.08em 0.4em; border-radius: 3px; outline: 1px dashed #8a6d00; outline-offset: 1px;
}
.pending-note { margin-top: 0.75rem; max-width: 44ch; }

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.topbar__row { display: flex; align-items: center; gap: 0.75rem; min-height: var(--bar); }
.wordmark {
  position: relative;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 5px;
  line-height: 1.1;
}
.wordmark::after { /* the ledger's double total rule */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  border-top: 1px solid var(--rule-accent); border-bottom: 1px solid var(--rule-accent);
}
a.wordmark:hover { color: var(--ink); }
/* The logo with the name (B47, Scott's file): the image is the wordmark, so no ledger rule under it */
.wordmark--logo { padding-bottom: 0; line-height: 0; }
.wordmark--logo::after { content: none; }
.wordmark__logo { display: block; height: 1.9rem; width: auto; }
@media (max-width: 599px) { .wordmark__logo { height: 1.6rem; } }
.wordmark a { color: inherit; text-decoration: none; }
.topnav { margin-left: auto; }
/* The details page's bar has no section links: the button keeps to the right (B29). */
.wordmark + .btn { margin-left: auto; }
.topnav__inline { display: none; list-style: none; gap: 1.6rem; }
.topnav__inline a, .topnav__list a, .topbar__login { color: var(--pencil); text-decoration: none; font-weight: 550; font-size: 0.9688rem; }
.topnav__list a:hover { color: var(--ink); text-decoration: underline; }
/* the inline nav's hover and current marks are ruled under the link (motion block below), not a text underline */
.topnav__inline a:hover, .topbar__login:hover { color: var(--ink); }
/* The portal's "Log in" (B50): a quiet text link just before the button, like the section links, never a second
   button. On the homepage below 900px it is in the Sections menu instead; the details and glossary bars have no menu,
   so there it stays in the bar (pushing the button right, as the wordmark did there), a 44px tap target. */
.topbar__login { white-space: nowrap; }
.wordmark + .topbar__login { margin-left: auto; }
@media (max-width: 899px) {
  .topnav + .topbar__login { display: none; }
  .wordmark + .topbar__login { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .wordmark + .topbar__login::before { bottom: 0.3rem; }
}
.topnav__menu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 2.5rem; padding: 0.4rem 0.55rem;
  font-weight: 600; font-size: 0.9375rem; color: var(--ink);
  border-radius: 4px;
}
.topnav__menu > summary::-webkit-details-marker { display: none; }
.topnav__menu > summary .icon { width: 1rem; height: 1rem; transition: transform 0.2s var(--ease-out); }
.topnav__menu[open] > summary .icon { transform: rotate(180deg); }
.topnav__list {
  position: absolute; left: 0; right: 0; top: 100%;
  list-style: none; background: var(--sheet);
  border-bottom: 1px solid var(--rule-strong);
  box-shadow: 0 14px 24px -18px rgb(13 35 66 / 0.2);
  padding: 0.25rem clamp(1.25rem, 4vw, 2.5rem) 0.75rem;
}
.topnav__list li { border-bottom: 1px solid var(--rule); }
.topnav__list li:last-child { border-bottom: 0; }
.topnav__list a { display: block; padding: 0.8rem 0; font-size: 1.0625rem; color: var(--ink); }
/* Phones: the wordmark, the Sections menu and the button fit inside the page's side margins (at 360px they ran 10px
   past the window, at 375px to its edge), each tap target 44px tall. 430px and wider are unchanged. */
@media (max-width: 429px) {
  .topbar__row { gap: 0.5rem; }
  .topbar .wordmark { font-size: 1.125rem; }
  .topnav__menu > summary { min-height: 2.75rem; padding-inline: 0.4rem; font-size: 0.875rem; }
  .topbar .btn--small { min-height: 2.75rem; padding-inline: 0.6rem; font-size: 0.875rem; }
  .wordmark + .topbar__login { padding-inline: 0.25rem; font-size: 0.875rem; }
}
@media (max-width: 359px) {
  .topnav__menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .topnav__menu > summary { min-width: 2.75rem; justify-content: center; }
  /* the details and glossary bars with "Log in" (B50): measured from the font, about 10px too wide at 320px otherwise */
  .wordmark + .topbar__login { padding-inline: 0; }
  .wordmark + .topbar__login + .btn--small { padding-inline: 0.45rem; }
}
@media (min-width: 900px) {
  .topnav__inline { display: flex; }
  .topnav__menu { display: none; }
  .topbar__row { gap: 2rem; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding-top: clamp(1.75rem, 1rem + 4vw, 5rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: start; }
.hero .lead { margin-top: 1.25rem; }
/* The thin rules above the why-now line, the figure and the press strip are a 1px background line in the place of the
   old 1px top border (same height, same place), so the hero can rule them across (motion block). */
.hero__why, .figure, .press { background: linear-gradient(var(--rule), var(--rule)) 0 0 / 100% 1px no-repeat; }
.hero__why {
  margin-top: 1.1rem; padding-top: calc(0.9rem + 1px); max-width: 44ch;
  color: var(--pencil);
}
.figure { margin-top: 1.1rem; padding-top: calc(0.9rem + 1px); max-width: 46ch; }
.figure__line { font-size: 1.125rem; font-weight: 650; line-height: 1.45; }
.figure__qualifier { margin-top: 0.4rem; font-size: 0.9375rem; line-height: 1.5; color: var(--pencil); }
.hero__cta { margin-top: 1.6rem; }
.hero__cta .btn { width: 100%; }
.chips { list-style: none; margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.45rem 1.25rem; }
.chips li { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9375rem; color: var(--pencil); font-weight: 550; }
.chips .icon { width: 1rem; height: 1rem; color: var(--accent); stroke-width: 2.25; }
@media (min-width: 480px) { .hero__cta .btn { width: auto; } }
/* The hero's artwork video (B41, Scott's hero video brief 2026-12-02; made large and laid under the words, Scott
   2026-12-02). On a wide window the artwork is a big layer behind the hero: it fills most of the width, runs to the
   window's right edge and fades in under the heading, and every word sits above it. On a tablet it rises under the
   text and reaches in under the stage list; on a phone it fills the column after the button. (Each a little smaller,
   Scott 2026-12-02, B46: 64% of the width on a wide window.) The video is cut from
   the approved master with no website text in it (all the words are the HTML around it); its edges are masked into
   the white page, so no rectangle shows. Its box keeps the cut's shape from first paint, so nothing shifts when the
   poster or the video arrives. */
.hero__grid { grid-template-areas: "copy" "art" "stages"; row-gap: 1.5rem; }
.hero__copy { grid-area: copy; }
.hero__copy, .stages { position: relative; z-index: 1; }
.hero__art {
  --edge: clamp(1.25rem, 4vw, 2.5rem); /* the page margin (.wrap's padding) */
  grid-area: art; position: relative; z-index: 0; aspect-ratio: 1240 / 1260;
  width: 100%; max-width: 30rem; justify-self: center; margin-top: -3rem;
}
.stages { grid-area: stages; }
/* Eased fades on all four sides (longest on the left, where the light paths run in toward the words) and rounded
   corners, so the artwork's haze ends in the page the way a glow does: no box, no disc. */
.hero__video {
  --fade-x: linear-gradient(to right, transparent, rgb(0 0 0 / 0.3) 7%, rgb(0 0 0 / 0.7) 14%, #000 22%, #000 84%, rgb(0 0 0 / 0.6) 92%, transparent);
  --fade-y: linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.5) 6%, #000 15%, #000 80%, rgb(0 0 0 / 0.55) 90%, transparent);
  --round: radial-gradient(ellipse 70% 70% at 50% 48%, #000 70%, transparent 100%);
  display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: var(--fade-x), var(--fade-y), var(--round);
  -webkit-mask-composite: source-in, source-in;
  mask-image: var(--fade-x), var(--fade-y), var(--round);
  mask-composite: intersect, intersect;
}
@media (min-width: 600px) and (max-width: 959px) {
  /* the artwork takes the right of the row under the text and reaches left under the stage list and up under the
     button's row; the stage list stays on top */
  .hero__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-areas: "copy copy" "stages art"; align-items: center; }
  .hero__art { width: calc(100% + 18% + var(--edge)); max-width: none; justify-self: end; margin: -4.5rem calc(-1 * var(--edge)) 0 0; }
  .stages { align-self: center; }
  .hero__art .hero__toggle { right: var(--edge); bottom: 12%; }
}
@media (min-width: 960px) {
  /* one column of words; the artwork is a layer behind the whole hero, right-aligned to the window's edge (the wrap's
     outer edge on a very wide one), as tall as the hero, its faded left side under the heading */
  .hero { overflow-x: clip; }
  .hero__grid { position: relative; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stages"; }
  .hero__copy { max-width: min(40rem, 60%); }
  .stages { max-width: min(34rem, 60%); }
  .hero__art {
    --out: clamp(0px, (100vw - 76rem) / 2, 3rem); /* past the wrap to the window's edge, at most 3rem on a wide screen */
    position: absolute; right: calc(-1 * var(--out)); top: 50%; translate: 0 -50%;
    width: 64%; max-width: none; margin: 0;
  }
  /* under the words the artwork comes up slowly (a long, partial fade on its left), so every line reads on it */
  .hero__video { --fade-x: linear-gradient(to right, transparent, rgb(0 0 0 / 0.18) 10%, rgb(0 0 0 / 0.42) 22%, rgb(0 0 0 / 0.72) 34%, #000 46%, #000 86%, rgb(0 0 0 / 0.6) 93%, transparent); }
  .hero__art .hero__toggle { right: calc(var(--edge) + var(--out)); bottom: 15%; }
}

/* The stage list: real text. Listed in full by default (reduced motion, no script); with motion the four share one
   cell, so its height is the tallest stage's and the swap never moves the page, and only the stage the video is in
   shows. Only the number, the title and the line change: the heading, the lines and the button above never do. */
.stages {
  list-style: none; display: grid; gap: 1rem; max-width: 34rem;
  padding-top: calc(1.1rem + 1px);
  background: linear-gradient(var(--rule), var(--rule)) 0 0 / 100% 1px no-repeat;
}
.stage { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 0.9rem; align-items: center; }
.stage__num {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1.0625rem;
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.stage__title { display: block; font-size: 1.1875rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.stage__text { display: block; margin-top: 0.15rem; font-size: 0.9375rem; line-height: 1.45; color: var(--pencil); }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .stages { gap: 0; }
  .stages > .stage {
    grid-area: 1 / 1; opacity: 0; transform: translateY(0.55rem);
    transition: opacity 0.34s var(--ease-out), transform 0.34s var(--ease-out);
  }
  .stages > .stage.is-on { opacity: 1; transform: none; }
  .stages > .stage.is-off { transform: translateY(-0.55rem); }
}
@media (min-width: 600px) and (max-width: 959px) { .stages { padding-top: 0; background: none; } }

/* Pause/Play (WCAG 2.2.2): on the artwork's faded lower corner, put in the page by site.js once the video can play */
.hero__toggle {
  position: absolute; right: var(--edge, 0.25rem); bottom: 0.25rem;
  appearance: none; display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2.25rem; padding: 0.35rem 0.75rem; border-radius: 4px;
  background: rgb(255 255 255 / 0.88); border: 1px solid var(--rule); color: var(--ink);
  font: 600 0.8125rem/1 var(--font); cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.hero__toggle:hover { border-color: var(--rule-strong); background-color: #fff; }
/* Unseen while the video plays (Scott 2026-12-02): clicking or tapping the artwork pauses it, and the button then
   shows as Play. Still in the tab order, and it shows when the keyboard reaches it. */
.hero__toggle { transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.25s ease; }
.hero__toggle:not(.is-paused):not(:focus-visible) { opacity: 0; pointer-events: none; }
.hero__toggle[hidden] { display: none; }
.hero__toggle-icon { width: 0.6rem; height: 0.7rem; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero__toggle.is-paused .hero__toggle-icon { width: 0; height: 0; border-style: solid; border-width: 0.36rem 0 0.36rem 0.6rem; border-color: transparent transparent transparent currentColor; }

/* Stage four: a slow breathing light behind the Written Offer card, which sits at about (49%, 44%) of the cut. Screen
   blending only lightens, so it reads as the card's own glow growing, never as a coloured shape over the art. */
.hero__art::after {
  content: ""; position: absolute; left: 14%; right: 16%; top: 8%; bottom: 20%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(186 214 255 / 0.75), rgb(186 214 255 / 0.3) 55%, rgb(186 214 255 / 0));
  mix-blend-mode: screen; opacity: 0; transition: opacity 0.7s ease;
}
.hero__art[data-stage="4"]::after { opacity: 1; }

.press {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.25rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-top: calc(1.1rem + 1px);
}
.press__label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; color: var(--pencil); }
.press__list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.press__list a, .press__list span { font-weight: 750; font-size: 1.0625rem; color: var(--ink); }
.press__note { font-size: 0.875rem; color: var(--pencil); flex-basis: 100%; }
@media (min-width: 900px) { .press__note { flex-basis: auto; margin-left: auto; } }

/* ------------------------------------------------------------------ how it works: the walkthrough
   A numbered list that advances by itself beside a scene that plays each step out (motion reference: Mercor /data
   "Scope, Connect, Process, Payout"). Open and close move rows with transforms inside a reserved height, so nothing
   on the page shifts. Base styles are each scene's END state: no JavaScript or reduced motion shows the finished
   scene; the keyframes only describe how it gets there. */
#how .lead { margin-top: 1rem; color: var(--navy-pencil); }
.walk { margin-top: clamp(2.25rem, 1.75rem + 2vw, 3.25rem); --dur: 5600ms; }
.walk__panel {
  display: grid;
  background: var(--sheet); color: var(--ink);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 28px 56px -30px rgb(0 0 0 / 0.7), 0 1px 0 rgb(255 255 255 / 0.04);
}
.walk__steps { list-style: none; padding: 0.75rem clamp(1.25rem, 3vw, 2.25rem) 1rem; position: relative; }
.walk__step { position: relative; border-top: 1px solid var(--rule); }
.walk__step:first-child { border-top: 0; }
.walk__title { font: inherit; }
.walk__head {
  appearance: none; background: none; border: 0; margin: 0; width: 100%;
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.05rem 0 1rem; cursor: pointer; text-align: left;
  font-family: inherit; color: var(--ink);
}
.walk__head:focus-visible { outline-offset: -2px; }
.walk__num { flex: none; width: 1.75rem; font-size: 1.125rem; font-weight: 450; color: #5f6e84; font-variant-numeric: tabular-nums lining-nums; transition: color 0.3s var(--ease-out); }
.walk__label { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; }
.walk__step.is-active .walk__num { color: var(--accent); font-weight: 650; }
.walk__head:hover .walk__label { color: var(--accent-deep); }
.walk__desc { padding: 0 0 1.15rem 2.75rem; }
.walk__text { color: var(--pencil); max-width: 34ch; line-height: 1.55; }
.walk__note { margin-top: 0.45rem; font-size: 0.875rem; color: var(--pencil); max-width: 36ch; line-height: 1.5; }
.walk__progress { display: block; height: 2px; width: min(100%, 16rem); margin-top: 1rem; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.walk:not(.is-live) .walk__progress { display: none; }

/* live: fixed row heights, the open step's text laid over the gap the rows below slide away from */
.walk.is-live .walk__steps { --row: 3.55rem; height: calc(var(--row) * 4 + var(--max-open, 9rem) + 1.75rem); }
.walk.is-live .walk__step { height: var(--row); transition: transform 0.5s var(--ease-out); }
.walk.is-live .walk__step:last-child { border-bottom: 1px solid var(--rule); }
.walk.is-live .walk__step.is-active ~ .walk__step { transform: translateY(var(--open, 0px)); }
.walk.is-live .walk__desc {
  position: absolute; left: 0; right: 0; top: var(--row);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.walk.is-live .walk__step.is-active .walk__desc {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.4s var(--ease-out) 0.12s, transform 0.4s var(--ease-out) 0.12s, visibility 0s;
}
.walk.is-live .walk__step.is-active .walk__progress.run { animation: walk-progress var(--dur) linear forwards; }
@keyframes walk-progress { to { transform: scaleX(1); } }

.walk__controls { margin-top: 0.85rem; display: flex; justify-content: flex-end; }
.walk__toggle {
  appearance: none; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.5rem; padding: 0.4rem 0.8rem; border-radius: 4px;
  background: transparent; border: 1px solid var(--navy-rule); color: var(--navy-ink);
  font: 600 0.875rem/1 var(--font); cursor: pointer;
}
.walk__toggle { transition: border-color 0.2s ease, background-color 0.2s ease; }
.walk__toggle:hover { border-color: var(--sky); background-color: rgb(138 184 255 / 0.1); }
.walk__toggle[hidden] { display: none; }
.walk__toggle-icon { width: 0.7rem; height: 0.8rem; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.walk__toggle.is-paused .walk__toggle-icon { width: 0; height: 0; border-style: solid; border-width: 0.42rem 0 0.42rem 0.7rem; border-color: transparent transparent transparent currentColor; }

/* the stage */
.walk__stage { position: relative; order: -1; min-height: 31rem; background: var(--paper-2); border-bottom: 1px solid var(--rule); overflow: hidden; }
.walk__tag { position: absolute; top: 0.7rem; right: 0.85rem; z-index: 3; font-size: 0.75rem; font-weight: 600; color: var(--pencil); }
.scene { position: absolute; inset: 2.5rem 1rem 1.1rem; display: grid; align-content: center; justify-items: center; }
.walk:not(.is-live) .scene:not(.scene--1) { display: none; }
.walk.is-live .scene { opacity: 0; visibility: hidden; transform: scale(0.985); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s; }
.walk.is-live .scene.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s var(--ease-out) 0.08s, transform 0.45s var(--ease-out) 0.08s, visibility 0s; }
@media (min-width: 900px) {
  .walk__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .walk__stage { order: 0; min-height: 28.5rem; border-bottom: 0; border-left: 1px solid var(--rule); }
  .walk__steps { padding-block: 1.25rem; align-self: center; }
  .scene { inset: 2.75rem 1.75rem 1.5rem; }
}

/* shared scene parts */
.glyph { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cursor { position: absolute; width: 1.35rem; height: 1.35rem; right: 14%; bottom: -0.55rem; z-index: 2; fill: var(--ink); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; pointer-events: none; }
.stamp {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.55rem; border-radius: 999px; border: 1px solid #b9cff3;
  color: var(--accent-deep); background: var(--accent-wash); font-size: 0.75rem; font-weight: 650; white-space: nowrap;
}
.pill { position: relative; display: inline-grid; flex: none; font-size: 0.75rem; font-weight: 650; }
.pill > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.pill__wait { color: var(--pencil); background: #eef2f7; border: 1px solid var(--rule); opacity: 0; }
.pill__done, .pill--static { color: var(--accent-deep); background: var(--accent-wash); border: 1px solid #b9cff3; }
.pill--static { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.55rem; border-radius: 999px; }
.pill .icon, .pill--static .icon { width: 0.8rem; height: 0.8rem; stroke-width: 2.4; }
.spin { width: 0.65rem; height: 0.65rem; border-radius: 50%; border: 1.5px solid var(--rule-strong); border-top-color: var(--accent); }
.walk.is-live .scene.is-playing .spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* tool tiles: each company's own mark (scripts/lib/brand-icons.mjs) */
.ticon { display: grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 6px; }
.ticon--mark { background: #fff; box-shadow: inset 0 0 0 1px var(--rule); }
.bmark { width: 62%; height: 62%; display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* scene 1, Scope: the fit check's tools question; a cursor picks five tiles and the count climbs */
.picker { width: min(100%, 25rem); }
.picker__q { text-align: center; font-weight: 700; font-size: 0.9375rem; margin-bottom: 0.85rem; }
.picker__board { position: relative; }
.picker__grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
.tile { position: relative; display: flex; align-items: center; gap: 0.45rem; min-width: 0; padding: 0.45rem 0.5rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; font-size: 0.75rem; font-weight: 600; }
.tile__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile > .icon { position: absolute; top: -0.4rem; right: -0.4rem; width: 1.05rem; height: 1.05rem; padding: 0.14rem; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 3; opacity: 0; }
.tile--pick { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-wash); }
.tile--pick > .icon { opacity: 1; }
.picker__count { margin-top: 0.75rem; text-align: center; font-size: 0.8125rem; color: var(--pencil); font-weight: 600; }
.count { display: inline-block; height: 1.25em; overflow: hidden; vertical-align: bottom; color: var(--ink); font-variant-numeric: tabular-nums; }
.count__strip { display: grid; line-height: 1.25em; transform: translateY(-6.25em); }
.cursorlayer { position: absolute; inset: 0; pointer-events: none; }
.cursorlayer__move { position: absolute; inset: 0; opacity: 0; }
.cursorlayer__move .cursor { left: 0; top: 0; right: auto; bottom: auto; }
.tile--p1 { --at: 0.13; } .tile--p2 { --at: 0.25; } .tile--p3 { --at: 0.37; } .tile--p4 { --at: 0.49; } .tile--p5 { --at: 0.61; }
.walk.is-live .scene--1.is-playing .cursorlayer__move { animation: cur-pick var(--dur) cubic-bezier(0.45, 0, 0.2, 1) both; }
/* round 2: the question settles, then the nine tiles are laid out in reading order before the cursor reaches the first
   (the picked tiles' own animation takes over once each cascade step ends: fill backwards only) */
.picker__grid .tile:nth-child(2) { --n: 1; } .picker__grid .tile:nth-child(3) { --n: 2; } .picker__grid .tile:nth-child(4) { --n: 3; }
.picker__grid .tile:nth-child(5) { --n: 4; } .picker__grid .tile:nth-child(6) { --n: 5; } .picker__grid .tile:nth-child(7) { --n: 6; }
.picker__grid .tile:nth-child(8) { --n: 7; } .picker__grid .tile:nth-child(9) { --n: 8; }
.walk.is-live .scene--1.is-playing .picker__q, .walk.is-live .scene--1.is-playing .picker__count { animation: in-up 0.4s var(--ease-out) both; }
.walk.is-live .scene--1.is-playing .tile { animation: tile-in 0.35s var(--ease-out) calc(0.08s + var(--n, 0) * 35ms) backwards; }
.walk.is-live .scene--1.is-playing .tile--pick { animation: tile-pick 0.22s ease calc(var(--dur) * var(--at)) both, tile-in 0.35s var(--ease-out) calc(0.08s + var(--n, 0) * 35ms) backwards; }
.walk.is-live .scene--1.is-playing .tile--pick > .icon { animation: in-fade 0.2s ease calc(var(--dur) * var(--at)) both; }
.walk.is-live .scene--1.is-playing .count__strip { animation: count-up var(--dur) linear both; }
@keyframes cur-pick {
  0% { opacity: 0; transform: translate(60%, 105%); }
  5% { opacity: 1; }
  12% { transform: translate(16.7%, 16.7%); }
  24% { transform: translate(83.3%, 16.7%); }
  36% { transform: translate(50%, 50%); }
  48% { transform: translate(83.3%, 50%); }
  60% { opacity: 1; transform: translate(83.3%, 83.3%); }
  70%, 100% { opacity: 0; transform: translate(96%, 106%); }
}
@keyframes tile-pick { from { border-color: var(--rule); box-shadow: none; background: var(--sheet); transform: scale(0.96); } }
@keyframes count-up {
  0%, 12.9% { transform: translateY(0); }
  13%, 24.9% { transform: translateY(-1.25em); }
  25%, 36.9% { transform: translateY(-2.5em); }
  37%, 48.9% { transform: translateY(-3.75em); }
  49%, 60.9% { transform: translateY(-5em); }
  61%, 100% { transform: translateY(-6.25em); }
}

/* scene 2, the picks listed one by one (Mercor's "connect" rows; ours say Listed: no data moves at step 2) */
.scene--2 { gap: 0.7rem; }
.agree { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(100%, 24rem); padding: 0.55rem 0.85rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; font-size: 0.8125rem; font-weight: 650; }
.agree__doc { display: inline-flex; align-items: center; gap: 0.5rem; }
.agree__doc .glyph { color: var(--accent); }
/* D19: the exclusivity and its 60-day release beside the signed agreement (audit round 1, H-06) */
.agree__terms { width: min(100%, 24rem); margin-top: -0.35rem; padding-inline: 0.85rem; font-size: 0.71875rem; line-height: 1.35; color: var(--pencil); }
.inv { width: min(100%, 24rem); background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 12px 26px -20px rgb(13 35 66 / 0.35); overflow: hidden; }
.inv__rows { list-style: none; }
.inv__row { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--rule); }
.inv__text { display: grid; min-width: 0; flex: 1; }
.inv__name { font-size: 0.8125rem; font-weight: 700; line-height: 1.2; }
.inv__detail { font-size: 0.71875rem; color: var(--pencil); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv__foot { font-size: 0.75rem; font-weight: 650; color: var(--accent-deep); padding: 0.45rem 0.85rem; }
.inv__row:nth-child(1) { --t: 1.75s; --d: 0.35s; --off: 2; }
.inv__row:nth-child(2) { --t: 2.3s; --d: 0.47s; --off: 1; }
.inv__row:nth-child(3) { --t: 2.85s; --d: 0.59s; --off: 0; }
.inv__row:nth-child(4) { --t: 3.4s; --d: 0.71s; --off: -1; }
.inv__row:nth-child(5) { --t: 3.95s; --d: 0.83s; --off: -2; }
.walk.is-live .scene--2.is-playing .agree { animation: in-up 0.4s var(--ease-out) both; }
.walk.is-live .scene--2.is-playing .agree .stamp { animation: stamp-in 0.35s var(--ease-out) 0.55s both; }
.walk.is-live .scene--2.is-playing .agree__terms { animation: in-up 0.4s var(--ease-out) 0.75s both; }
.walk.is-live .scene--2.is-playing .inv__row { animation: in-right 0.4s var(--ease-out) var(--d) both; }
.walk.is-live .scene--2.is-playing .inv__row .pill__wait { animation: show-until var(--t) step-end both; }
.walk.is-live .scene--2.is-playing .inv__row .pill__done { animation: hide-until var(--t) step-end both, pop 0.3s var(--ease-out) var(--t) both; }
.walk.is-live .scene--2.is-playing .inv__foot { animation: in-up 0.4s var(--ease-out) 4.3s both; }

/* scene 3, Process: the five tools feed one counter; then the buyers' answers */
.scene--3 { gap: 0; }
.flow__icons { list-style: none; width: min(100%, 20rem); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); justify-items: center; position: relative; z-index: 1; }
.flow__icons li:nth-child(1) { --k: 1; } .flow__icons li:nth-child(2) { --k: 2; } .flow__icons li:nth-child(3) { --k: 3; }
.flow__icons li:nth-child(4) { --k: 4; } .flow__icons li:nth-child(5) { --k: 5; }
.flow__icons .ticon { width: 2.15rem; height: 2.15rem; border-radius: 50%; box-shadow: 0 0 0 4px var(--paper-2); }
.flow__lines { display: block; width: min(100%, 20rem); height: 5.25rem; margin-top: -0.25rem; overflow: visible; }
.flow__lines path { fill: none; vector-effect: non-scaling-stroke; }
.flow__track { stroke: var(--rule-strong); stroke-width: 1.25; }
.flow__ink { stroke: var(--accent); stroke-width: 1.8; }
.counter { position: relative; z-index: 1; margin-top: -0.1rem; padding: 0.65rem 1.5rem 0.6rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; text-align: center; box-shadow: 0 12px 26px -20px rgb(13 35 66 / 0.35); }
.counter__num { min-width: 9.5ch; font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.counter__label { font-size: 0.75rem; color: var(--pencil); }
.buyers { list-style: none; width: min(100%, 21rem); margin-top: 0.85rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
.buyer { display: grid; justify-items: center; gap: 0.3rem; padding: 0.45rem 0.3rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; text-align: center; }
.buyer__name { font-size: 0.75rem; font-weight: 700; }
.buyer__reply { font-size: 0.6875rem; font-weight: 700; padding: 0.12rem 0.45rem; border-radius: 999px; white-space: nowrap; }
.buyer--1 .buyer__reply { color: var(--accent-deep); background: var(--accent-wash); border: 1px solid #b9cff3; }
.buyer--2 .buyer__reply { color: var(--pencil); background: var(--sheet); border: 1px dashed var(--rule-strong); }
.buyer--3 .buyer__reply { color: var(--pencil); background: #eef2f7; border: 1px solid var(--rule); }
.walk.is-live .scene--3.is-playing .flow__icons li { animation: spread 0.6s var(--ease-out) both; }
.walk.is-live .scene--3.is-playing .flow__track { animation: in-fade 0.3s ease 0.45s both; }
.walk.is-live .scene--3.is-playing .flow__ink { animation: pulse-down 0.85s linear 3 both; }
.walk.is-live .scene--3.is-playing .flow__ink--1 { animation-delay: 0.85s; } .walk.is-live .scene--3.is-playing .flow__ink--2 { animation-delay: 0.95s; }
.walk.is-live .scene--3.is-playing .flow__ink--3 { animation-delay: 1.05s; } .walk.is-live .scene--3.is-playing .flow__ink--4 { animation-delay: 1.15s; }
.walk.is-live .scene--3.is-playing .flow__ink--5 { animation-delay: 1.25s; }
.walk.is-live .scene--3.is-playing .counter { animation: in-up 0.4s var(--ease-out) 0.45s both; }
.walk.is-live .scene--3.is-playing .buyer--1 { animation: pop-in 0.35s var(--ease-out) 3.85s both; }
.walk.is-live .scene--3.is-playing .buyer--2 { animation: pop-in 0.35s var(--ease-out) 4.05s both; }
.walk.is-live .scene--3.is-playing .buyer--3 { animation: pop-in 0.35s var(--ease-out) 4.25s both; }
@keyframes spread { from { transform: translateX(calc((3 - var(--k)) * 100%)) scale(0.85); } }
@keyframes pulse-down { from { stroke-dasharray: 16 84; stroke-dashoffset: 16; } to { stroke-dasharray: 16 84; stroke-dashoffset: -84; } }

/* scene 4, Payout: license signed, the data goes straight to the buyer, payment, our fee */
.deal { width: min(100%, 24rem); background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 12px 26px -20px rgb(13 35 66 / 0.35); padding: 0.75rem 0.95rem 0.85rem; }
.deal__title { font-weight: 700; font-size: 0.9375rem; }
.deal__sub { font-size: 0.75rem; color: var(--pencil); margin: 0.1rem 0 0.35rem; line-height: 1.4; }
.deal__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
.deal__label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 650; min-width: 0; }
.deal__label .glyph { color: var(--accent); }
.cluster { display: inline-flex; }
.cluster .ticon { width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid var(--sheet); margin-left: -0.4rem; }
.cluster .ticon:first-child { margin-left: 0; }
.cluster .ticon .glyph { width: 0.8rem; height: 0.8rem; color: #fff; }
.deal__bar { height: 3px; margin-top: -1px; background: var(--rule); overflow: hidden; }
.deal__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; }
.deal__fee { margin-top: 0.65rem; padding-top: 0.5rem; border-top: 3px double var(--rule-accent); font-size: 0.8125rem; font-weight: 650; }
.walk.is-live .scene--4.is-playing .deal { animation: deal-in 0.45s var(--ease-out) both; }
.walk.is-live .scene--4.is-playing .cluster { animation: cluster-in 0.6s var(--ease-out) both; }
.walk.is-live .scene--4.is-playing .deal__row--1 .stamp { animation: stamp-in 0.35s var(--ease-out) 0.45s both; }
.walk.is-live .scene--4.is-playing .deal__row--2 .pill__wait { animation: show-until 2.4s step-end both; }
.walk.is-live .scene--4.is-playing .deal__row--2 .pill__done { animation: hide-until 2.4s step-end both, pop 0.3s var(--ease-out) 2.4s both; }
.walk.is-live .scene--4.is-playing .deal__bar span { animation: grow 1.5s ease-in-out 0.85s both; }
/* scene 5 (B39, 2026-12-02): payment is its own step; the card comes in, the payment row lands, then the fee line */
.deal--pay .deal__row--3 { border-bottom: 0; }
.walk.is-live .scene--5.is-playing .deal { animation: deal-in 0.45s var(--ease-out) both; }
.walk.is-live .scene--5.is-playing .deal__row--3 { animation: in-up 0.4s var(--ease-out) 0.6s both; }
.walk.is-live .scene--5.is-playing .deal__row--3 .pill { animation: pop 0.3s var(--ease-out) 1.2s both; }
.walk.is-live .scene--5.is-playing .deal__fee { animation: in-up 0.4s var(--ease-out) 1.6s both; }
@keyframes cluster-in { from { opacity: 0.3; transform: translateY(-1.5rem) scale(1.6); } }

@keyframes in-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes in-right { from { opacity: 0; transform: translateX(14px); } }
@keyframes in-fade { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.8); } }
@keyframes tile-in { from { opacity: 0; transform: translateY(6px) scale(0.94); } }
@keyframes pop { 0% { transform: scale(0.85); } 60% { transform: scale(1.06); } 100% { transform: none; } }
@keyframes show-until { from { opacity: 1; } to { opacity: 0; } }
@keyframes hide-until { from { opacity: 0; } to { opacity: 1; } }
@keyframes stamp-in { from { opacity: 0; transform: scale(0.85); } }
@keyframes deal-in { from { opacity: 0; transform: scale(0.94); } }
@keyframes grow { from { transform: scaleX(0); } }

/* the morph, as on the reference: tiles become rows, rows stack and spread into the icon row, icons shrink into the
   payout card. The scene being left stays for 0.6 s while its key elements travel. */
.walk.is-live .scene.is-leaving { opacity: 1; visibility: visible; transform: none; transition: none; z-index: 1; }
.walk.is-live .scene.is-leaving > * { animation: leave-fade 0.35s ease forwards; }
.walk.is-live .scene--1.is-leaving .picker { animation: none; }
.walk.is-live .scene--1.is-leaving .picker__q, .walk.is-live .scene--1.is-leaving .picker__count, .walk.is-live .scene--1.is-leaving .tile:not(.tile--pick) { animation: leave-fade 0.25s ease forwards; }
.walk.is-live .scene--1.is-leaving .tile--pick { animation: morph-tiles 0.6s var(--ease-out) forwards; }
.walk.is-live .scene--2.is-leaving .inv { animation: none; }
.walk.is-live .scene--2.is-leaving .inv__row { animation: morph-rows 0.6s var(--ease-out) forwards; }
.walk.is-live .scene--2.is-leaving .inv__foot { animation: leave-fade 0.2s ease forwards; }
.walk.is-live .scene--3.is-leaving .flow__icons { animation: none; }
.walk.is-live .scene--3.is-leaving .flow__icons li { animation: morph-icons 0.6s var(--ease-out) forwards; }
@keyframes leave-fade { to { opacity: 0; } }
@keyframes morph-tiles { 50% { opacity: 1; } to { opacity: 0; transform: translateY(1.5rem) scale(1.25, 0.6); } }
@keyframes morph-rows { 55% { opacity: 1; } to { opacity: 0; transform: translateY(calc(var(--off) * 2.45rem)) scale(0.9); } }
@keyframes morph-icons { 55% { opacity: 1; } to { opacity: 0; transform: translateX(calc((3 - var(--k)) * 100%)) translateY(4.5rem) scale(0.55); } }

.walk.is-paused .walk__progress, .walk.is-paused .scene, .walk.is-paused .scene * { animation-play-state: paused !important; }
/* a step chosen while paused: its finished state at once (the scenes' resting styles are their end states) */
.walk .scene.is-still, .walk .scene.is-still * { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .walk.is-live .walk__step.is-active .walk__progress.run { animation: none; }
  .walk .scene, .walk .scene * { animation: none !important; }
  .walk.is-live .scene.is-leaving { opacity: 0; visibility: hidden; }
}

.fee-line {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.25rem); padding-top: 1.25rem;
  border-top: 1px solid var(--navy-rule); max-width: 62ch; color: var(--navy-ink);
}

/* ------------------------------------------------------------------ why buyers want it: the journal */
.journal { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.journal__rows { list-style: none; position: relative; border-top: 4px double var(--rule-accent); }
.journal__rows::before { /* the trace: one green line through every entry */
  content: ""; position: absolute; left: 0.9rem; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: 0.85;
}
.journal__row {
  position: relative;
  display: grid; grid-template-columns: 1.8rem 1fr; column-gap: 1rem; row-gap: 0.1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--rule);
}
.journal__num {
  grid-column: 1; grid-row: 1 / span 3; align-self: start; z-index: 1;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--accent); color: var(--accent);
  font-size: 0.8125rem; font-weight: 800;
}
.journal__step { grid-column: 2; grid-row: 1; font-weight: 750; }
.journal__tool { grid-column: 2; grid-row: 2; font-size: 0.875rem; color: var(--pencil); }
.journal__entry { grid-column: 2; grid-row: 3; }
@media (min-width: 760px) {
  .journal__row { grid-template-columns: 1.8rem 8rem 10rem 1fr; align-items: center; min-height: 3.5rem; padding: 0.6rem 0; }
  .journal__num { grid-row: 1; align-self: center; }
  .journal__step { grid-column: 2; grid-row: 1; }
  .journal__tool { grid-column: 3; grid-row: 1; }
  .journal__entry { grid-column: 4; grid-row: 1; }
}

.h3 { margin-top: clamp(3rem, 2.5rem + 2vw, 4.25rem); }
.kinds { list-style: none; display: grid; gap: 1.75rem; margin-top: 1.5rem; }
.kinds__label { font-size: 1.0625rem; font-weight: 750; padding-bottom: 0.5rem; margin-bottom: 0.6rem; border-bottom: 4px double var(--rule-accent); }
.kinds__tools { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--pencil); }
/* the three kinds are numbered (Roy, 2026-12-02: "people like simple steps") */
.kinds__label { display: flex; align-items: center; gap: 0.6rem; }
.kinds__num { flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.875rem; }
#why .small-print { margin-top: 1.75rem; }
@media (min-width: 860px) {
  .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .kinds__col { padding-inline: 1.75rem; border-left: 1px solid var(--rule); }
  .kinds__col:first-child { padding-left: 0; border-left: 0; }
}

/* ------------------------------------------------------------------ privacy: carbon slips and the ledger */
.slips { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.slips__row { display: grid; gap: 0.75rem; align-items: center; }
.slip {
  background: var(--sheet); color: var(--ink);
  border-radius: 4px; padding: 1.1rem 1.25rem 1.35rem;
  box-shadow: 0 16px 30px -18px rgb(0 0 0 / 0.6);
}
.slip__label { font-size: 0.875rem; font-weight: 700; color: var(--pencil); padding-bottom: 0.55rem; margin-bottom: 0.8rem; border-bottom: 4px double var(--rule-accent); }
.slip--after .slip__label { color: var(--accent); border-bottom-color: var(--accent); }
/* plain wrapping, not "pretty" (2026-12-02): pretty re-balances the last lines while the run types letter by letter, so
   the end of the sentence jumped and snapped back into place when the run finished */
.slip__text { font-size: 1.0625rem; line-height: 1.85; text-wrap: wrap; }
/* The highlight and its underline are two background layers, and the token's fill is one, so the privacy moment can
   draw them across (motion block below); at rest they look exactly as a plain background and border did. */
mark.raw {
  color: var(--ink); padding: 0 0.15em;
  background: linear-gradient(var(--raw-line), var(--raw-line)) 0 100% / 100% 2px no-repeat,
    linear-gradient(var(--raw-wash), var(--raw-wash)) 0 0 / 100% 100% no-repeat;
  transition: box-shadow 0.2s ease;
}
.token {
  display: inline-block; line-height: 1.35;
  font-size: 0.8125rem; font-weight: 750; letter-spacing: 0.045em;
  color: var(--accent-deep);
  background: linear-gradient(var(--accent-wash), var(--accent-wash)) 0 0 / 100% 100% no-repeat var(--sheet);
  border: 1px solid var(--accent); border-radius: 3px; padding: 0.05em 0.42em;
  transition: box-shadow 0.2s ease;
}
/* pointer over a detail or its token: the pair lights up together (site.js) */
mark.raw.is-pair { box-shadow: 0 0 0 2px var(--raw-line); }
.token.is-pair { box-shadow: 0 0 0 2px var(--accent); }
.carry { display: flex; align-items: center; justify-content: center; gap: 0.6rem; color: var(--sky); padding-block: 0.25rem; }
.carry__icon { width: 2.25rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
.carry__label { font-size: 0.875rem; font-weight: 650; color: var(--navy-pencil); }
.slips figcaption { margin-top: 1.25rem; max-width: 64ch; }
.privacy__lead { max-width: 64ch; margin-block: 1.25rem 2rem; }
.slips__note { margin-top: 0.4rem; font-size: 0.9375rem; color: var(--navy-pencil); }
.slips__more { margin-top: 1.5rem; }
@media (min-width: 900px) {
  .slips__row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
  .carry { flex-direction: column; max-width: 7.5rem; text-align: center; }
  .carry__icon { transform: none; width: 3.5rem; height: 1.25rem; }
}

.ledger { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.ledger__head { display: none; }
.ledger__rows { list-style: none; border-top: 4px double var(--warn-on-navy); }
.ledger__row { padding: 0.95rem 0; border-bottom: 1px solid var(--navy-rule); }
.ledger__text { color: var(--navy-ink); max-width: 62ch; }
.ledger__ref { margin-top: 0.3rem; font-size: 0.875rem; color: var(--navy-pencil); }
.ref-label { font-weight: 650; }
.h3--limits { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); color: var(--navy-ink); }
.ledger--limits { margin-top: 1rem; }
@media (min-width: 900px) {
  .ledger__head {
    display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 2.5rem;
    font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.03em; color: var(--navy-pencil); padding-bottom: 0.5rem;
  }
  .ledger__row { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 2.5rem; align-items: baseline; }
  .ledger__ref { margin-top: 0; }
  .ledger .ref-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ------------------------------------------------------------------ cost: the statement */
#cost .lead { margin-top: 1rem; }
.statement-wrap {
  margin-top: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px;
  box-shadow: 0 18px 36px -26px rgb(13 35 66 / 0.2);
}
.statement { width: 100%; border-collapse: collapse; }
.statement thead th {
  text-align: left; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.03em; color: var(--pencil);
  padding: 0.85rem 1.25rem 0.7rem; border-bottom: 4px double var(--rule-accent);
}
.statement tbody th, .statement td { text-align: left; vertical-align: top; padding: 0.95rem 1.25rem; border-bottom: 1px solid var(--rule); }
.statement tbody th { font-weight: 750; width: 13rem; }
.statement__ref { font-size: 0.875rem; color: var(--pencil); width: 14.5rem; }
.statement tbody tr:last-child > * { border-bottom: 4px double var(--rule-accent); }
@media (max-width: 719px) {
  .statement thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .statement tbody tr { display: block; padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--rule); }
  .statement tbody tr:last-child { border-bottom: 4px double var(--rule-accent); }
  .statement tbody th, .statement td { display: block; padding: 0; border: 0; width: auto; }
  .statement tbody tr:last-child > * { border-bottom: 0; }
  .statement td { margin-top: 0.25rem; }
  .statement__ref { margin-top: 0.35rem; }
}

/* ------------------------------------------------------------------ who it fits: the accounts register */
.criteria { list-style: none; display: grid; gap: 0.65rem; margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.criteria li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 1.0625rem; }
.criteria .icon { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; color: var(--sky); stroke-width: 2.25; }
#fits .small-print { margin-top: 0.85rem; }
@media (min-width: 900px) { .criteria { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; } }

.accounts { list-style: none; display: grid; gap: 0.85rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); align-items: start; }
@media (min-width: 900px) { .accounts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
.account {
  background: var(--navy-2); border: 1px solid var(--navy-rule); border-radius: 6px;
  transition: border-color 0.25s ease, box-shadow 0.3s var(--ease-out);
}
/* a card under the pointer: its edge lightens and its shadow deepens (the card itself does not move) */
.account:hover { border-color: #3d6499; box-shadow: 0 18px 32px -22px rgb(0 0 0 / 0.75); }
.account > summary {
  list-style: none; cursor: pointer; position: relative;
  display: grid; gap: 0.2rem; padding: 1.05rem 3.25rem 1.1rem 1.25rem;
  border-radius: 6px;
}
.account > summary::-webkit-details-marker { display: none; }
.account > summary:hover { background-color: #1a3a69; }
/* Industry photographs (B40, 2026-12-02; Roy: "the eye does not want to read" after all the motion above). Each card's
   photograph sits behind its heading, right-aligned, and fades into the card from the left so the words stay on plain
   navy; it stays at the top when the card opens. --wash is the card colour (it lightens under the pointer, as before). */
.account { --wash: 19 48 90; }
.account > summary:hover { --wash: 26 58 105; }
.account > summary { background-repeat: no-repeat; background-position: right center; background-size: cover; }
.account--law > summary { background-image: var(--fade), url("/assets/fit-law-9b40d11d19.webp"); }
.account--accounting > summary { background-image: var(--fade), url("/assets/fit-accounting-e530514960.webp"); }
.account--medical > summary { background-image: var(--fade), url("/assets/fit-medical-3130b2e469.webp"); }
.account--insurance > summary { background-image: var(--fade), url("/assets/fit-insurance-1338c1002c.webp"); }
.account--marketing > summary { background-image: var(--fade), url("/assets/fit-marketing-7a3d355c7d.webp"); }
.account--construction > summary { background-image: var(--fade), url("/assets/fit-construction-e54e72e0c4.webp"); }
.account--software > summary { background-image: var(--fade), url("/assets/fit-software-380bf7b609.webp"); }
.account > summary { --fade: linear-gradient(90deg, rgb(var(--wash)) 0%, rgb(var(--wash)) 36%, rgb(var(--wash) / 0.8) 60%, rgb(var(--wash) / 0.45) 84%, rgb(var(--wash) / 0.3)); }
.account > summary .icon { filter: drop-shadow(0 0 3px rgb(var(--wash))) drop-shadow(0 0 6px rgb(var(--wash))); }
/* phones: the words run the card's full width, so the photograph stays further back */
@media (max-width: 599px) {
  .account > summary { --fade: linear-gradient(90deg, rgb(var(--wash)) 0%, rgb(var(--wash) / 0.9) 40%, rgb(var(--wash) / 0.6) 75%, rgb(var(--wash) / 0.4)); }
}
.account__name { font-size: 1.125rem; font-weight: 750; color: var(--navy-ink); }
.account__records { color: var(--navy-pencil); font-size: 0.9688rem; line-height: 1.5; }
.account__size { margin-top: 0.35rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; color: var(--sky); }
.account > summary .icon { position: absolute; right: 1.1rem; top: 1.25rem; width: 1.25rem; height: 1.25rem; color: var(--sky); transition: transform 0.25s var(--ease-out), translate 0.25s var(--ease-out); }
/* the chevron leans toward what it opens */
.account > summary:hover .icon { translate: 0 2px; }
.account[open] > summary:hover .icon { translate: 0 -2px; }
.account[open] > summary .icon { transform: rotate(180deg); }
.account[open] > summary { border-bottom: 1px solid var(--navy-rule); border-radius: 6px 6px 0 0; }
.account__body { display: grid; gap: 1.1rem 1.75rem; padding: 1.1rem 1.25rem 1.35rem; }
.account__cell h3 { font-size: 0.8125rem; font-weight: 750; letter-spacing: 0.03em; color: var(--sky); margin-bottom: 0.35rem; }
.account__cell p, .account__cell li { font-size: 0.9688rem; line-height: 1.5; color: var(--navy-ink); }
.account__cell ul { list-style: none; display: grid; gap: 0.3rem; }
.account__cell ul li { position: relative; padding-left: 1rem; }
.account__cell ul li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.5rem; height: 2px; background: var(--sky); }
.account__cell:nth-child(4) ul li::before { background: var(--warn-on-navy); }
.account__cell ol { padding-left: 1.25rem; display: grid; gap: 0.3rem; }
.account__cell ol li::marker { color: var(--navy-pencil); font-variant-numeric: tabular-nums; }
@media (min-width: 600px) { .account__body { grid-template-columns: repeat(2, minmax(0, 1fr)); } .account__cell--wide { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ who we are + after you click */
.about__grid { display: grid; gap: clamp(3.5rem, 3rem + 3vw, 5rem); }
@media (min-width: 960px) { .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.about__entity { margin-top: 1.25rem; font-size: 1.125rem; max-width: 38ch; }
.people { margin-block: 1.5rem 1.25rem; border-top: 1px solid var(--rule); }
.people div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.people dt { font-weight: 750; }
.people dd { color: var(--pencil); }
#about > p:last-child { margin-top: 1.25rem; }
#after { padding-top: 0; }
@media (min-width: 960px) { #after { padding-top: 3.4rem; } }
#after > p { margin-top: 1rem; max-width: 52ch; }
.questions { list-style: none; counter-reset: q; margin-top: 1.25rem; border-top: 4px double var(--rule-accent); }
.questions li {
  counter-increment: q; display: grid; grid-template-columns: 2.25rem 1fr; align-items: baseline;
  padding: 0.6rem 0; border-bottom: 1px solid var(--rule);
}
.questions li::before { content: counter(q); color: var(--pencil); font-weight: 650; font-size: 0.875rem; }
.after__next { font-weight: 650; }

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 54rem; margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-top: 4px double var(--rule-accent); }
.qa { border-bottom: 1px solid var(--rule-strong); }
.qa > summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.05rem 2.75rem 1.05rem 0;
  font-weight: 700; font-size: 1.0625rem; line-height: 1.4;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary .icon { position: absolute; right: 0.35rem; top: 1.15rem; width: 1.2rem; height: 1.2rem; color: var(--accent); transition: transform 0.25s var(--ease-out), translate 0.25s var(--ease-out); }
.qa[open] > summary .icon { transform: rotate(180deg); }
.qa > summary:hover .icon { translate: 0 2px; }
.qa[open] > summary:hover .icon { translate: 0 -2px; }
.qa > summary:hover .qa__q { color: var(--accent-deep); }
.qa__a { padding: 0 2.75rem 1.25rem 0; }
.qa__a p { max-width: 66ch; }

/* ------------------------------------------------------------------ glossary (B31; cards B34, B35) */
/* A navy head with a drawing of business records on their way to training data (glossaryArt in render.mjs), then every
   term on a white card with a navy border, on the ledger ground, with a dot grid and a trail of nodes in the margins
   (Scott, 2026-12-01: "navy blue borders on all ... add some imagery ... around the outside"). Pointing at a card
   lifts it a little. */
.glossary__hero { padding-block: clamp(3rem, 2.2rem + 4vw, 5.5rem); }
.glossary__heroRow { display: grid; gap: 2.25rem; align-items: center; }
.glossary__hero .lead { max-width: 40rem; margin-top: 1rem; color: var(--navy-pencil); }
.gl-art { display: none; width: 100%; height: auto; overflow: visible; }
@media (min-width: 700px) { .gl-art { display: block; max-width: 26rem; } }
@media (min-width: 960px) {
  .glossary__heroRow { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 3.5rem; }
  .gl-art { justify-self: end; max-width: 30rem; }
}
.gl-sheet { fill: var(--navy-2); stroke: var(--navy-rule); stroke-width: 1.5; }
.gl-sheet--front { fill: var(--sheet); stroke: none; filter: drop-shadow(0 18px 22px rgb(0 0 0 / 0.45)); }
.gl-head { fill: none; stroke: var(--rule-strong); stroke-width: 8; stroke-linecap: round; }
.gl-line { fill: none; stroke: var(--rule); stroke-width: 6; stroke-linecap: round; }
.gl-token { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 1.5; }
.gl-trail { fill: none; stroke: var(--sky); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0.5 8.5; }
.gl-link { fill: none; stroke: rgb(138 184 255 / 0.38); stroke-width: 1.5; }
.gl-node { fill: var(--navy); stroke: var(--sky); stroke-width: 2; }
.gl-core { fill: var(--sky); }
.gl-spark { fill: var(--navy-pencil); opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) {
  /* the trail flows into the network, and its nodes take ink one after another */
  .gl-trail { animation: gl-flow 1.3s linear infinite; }
  .gl-node { animation: gl-ink 4.2s ease-in-out infinite; }
  .gl-node:nth-child(2) { animation-delay: 0.5s; }
  .gl-node:nth-child(3) { animation-delay: 1s; }
  .gl-node:nth-child(4) { animation-delay: 1.5s; }
  .gl-node:nth-child(5) { animation-delay: 2s; }
  .gl-node:nth-child(6) { animation-delay: 2.5s; }
  .gl-node:nth-child(7) { animation-delay: 3s; }
  .gl-node:nth-child(8) { animation-delay: 3.5s; }
}
@keyframes gl-flow { to { stroke-dashoffset: -18; } }
@keyframes gl-ink { 0%, 100% { fill: var(--navy); } 30% { fill: var(--accent); } 55% { fill: var(--navy); } }

/* the terms: white cards with navy borders; the margins carry a dot grid fading in from both edges and, where there
   is room on the right, a dotted trail of nodes */
.glossary__terms { position: relative; isolation: isolate; padding-top: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem); }
@media (min-width: 900px) {
  .glossary__terms::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgb(13 35 66 / 0.17) 1.1px, transparent 1.7px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 7%, transparent 80%, #000);
    mask-image: linear-gradient(90deg, #000, transparent 7%, transparent 80%, #000);
  }
}
@media (min-width: 1280px) {
  .glossary__terms::after {
    content: ""; position: absolute; top: 0; bottom: 0; right: 0.75rem; width: 180px; z-index: -1; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='960' viewBox='0 0 240 960' fill='none'%3E%3Cpath d='M120 0C40 130 200 230 120 360S40 600 120 720S200 900 120 960' stroke='%231f5fd1' stroke-opacity='.3' stroke-width='1.5' stroke-dasharray='1 9' stroke-linecap='round'/%3E%3Cpath d='M86 112L170 88M120 360L196 318M120 360L52 404M150 590L212 632M90 826L32 794' stroke='%231f5fd1' stroke-opacity='.2' stroke-width='1.2'/%3E%3Cg fill='%23ffffff' stroke='%231f5fd1' stroke-opacity='.55' stroke-width='1.5'%3E%3Ccircle cx='86' cy='112' r='6'/%3E%3Ccircle cx='170' cy='88' r='3.5'/%3E%3Ccircle cx='120' cy='360' r='8'/%3E%3Ccircle cx='196' cy='318' r='3.5'/%3E%3Ccircle cx='52' cy='404' r='4'/%3E%3Ccircle cx='150' cy='590' r='5'/%3E%3Ccircle cx='212' cy='632' r='3'/%3E%3Ccircle cx='90' cy='826' r='6'/%3E%3Ccircle cx='32' cy='794' r='3'/%3E%3C/g%3E%3Cg fill='%231f5fd1' fill-opacity='.3'%3E%3Ccircle cx='120' cy='360' r='3'/%3E%3Ccircle cx='86' cy='112' r='2'/%3E%3Ccircle cx='90' cy='826' r='2'/%3E%3C/g%3E%3C/svg%3E") repeat-y 0 3rem / 180px auto;
  }
}
.glossary__list { max-width: 62rem; display: grid; gap: clamp(0.75rem, 0.6rem + 0.5vw, 1rem); }
.term {
  position: relative;
  display: grid; gap: 0.4rem;
  padding: 1.2rem 1.3rem 1.3rem;
  border-radius: 10px;
  background: var(--sheet); border: 1.5px solid var(--navy);
  box-shadow: 0 12px 26px -22px rgb(13 35 66 / 0.5);
  scroll-margin-top: calc(var(--bar) + 1.25rem);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.25s ease;
}
/* the words carry the card's own colour, so they fade with it in step on hover (and the contrast check sees the pair) */
.term__name { font-weight: 750; font-size: 1.0625rem; line-height: 1.35; color: var(--ink); background-color: var(--sheet); transition: color 0.25s ease, background-color 0.25s ease; }
.term__text { margin: 0; color: var(--pencil); line-height: 1.6; max-width: 62ch; background-color: var(--sheet); transition: color 0.25s ease, background-color 0.25s ease; }
/* a link to one term (/glossary#dark-data) rings its card */
.term:target { outline: 3px solid var(--accent); outline-offset: 3px; }
/* under the pointer a card inverts: navy, its words white (Scott, 2026-12-01) */
@media (hover: hover) {
  .term:hover { z-index: 1; background-color: var(--navy); box-shadow: 0 28px 46px -24px rgb(0 0 0 / 0.5); }
  .term:hover .term__name { color: #fff; background-color: var(--navy); }
  .term:hover .term__text { color: var(--navy-ink); background-color: var(--navy); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .term:hover { transform: translateY(-4px) scale(1.015); }
}
@media (min-width: 760px) {
  .term {
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); column-gap: 2.25rem; align-items: baseline;
    padding: 1.35rem 1.75rem 1.45rem;
  }
}

/* ------------------------------------------------------------------ close + footer */
.close { padding-block: clamp(3.5rem, 2.75rem + 3vw, 5rem); }
.close__row { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 900px) { .close__row { grid-template-columns: minmax(0, 1fr) auto; } }
.footer { background: var(--navy-3); color: var(--navy-pencil); font-size: 0.9375rem; padding-block: 3rem 2.75rem; }
.footer__grid { display: grid; gap: 2rem; }
/* B29: the links to the details page and the legal pages sit in the bottom right. */
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr); }
  .footer__links { justify-items: end; text-align: right; }
}
.footer__who p + p { margin-top: 0.35rem; }
.wordmark--footer { display: inline-block; color: var(--navy-ink); margin-bottom: 0.9rem; }
.wordmark--footer::after { border-color: var(--warn-on-navy); }
.footer__links { list-style: none; display: grid; gap: 0.5rem; align-content: start; }
.footer__fine p + p { margin-top: 0.35rem; }
.footer__fine { font-size: 0.875rem; }

/* ------------------------------------------------------------------ 404 and placeholders */
.notfound { min-height: 70vh; }
.details-intro { padding-block: 3.5rem 2.5rem; }
.notfound .wordmark { display: inline-block; margin-bottom: 2.5rem; }
.notfound .lead { margin-block: 1rem 1.5rem; }
/* The privacy notice and terms (B48): a readable column of headings, paragraphs and lists */
.legal__body { max-width: 46rem; margin-block: 1.25rem 2rem; }
.legal__body > p { margin-top: 0.85rem; line-height: 1.6; }
.legal__body > p:first-child { margin-top: 0; color: var(--pencil); font-size: 0.9375rem; }
.legal__h { margin-top: 2rem; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.legal__list { margin-top: 0.75rem; padding-left: 1.25rem; display: grid; gap: 0.5rem; line-height: 1.55; }
.legal__list li::marker { color: var(--accent); }

/* ------------------------------------------------------------------ motion (2026-11-26, Scott: "we need animations to
   really lift this whole thing up")
   One material idea, the ledger's own: a rule is ruled, then the entries are written in. Section tabs are ruled left
   to right, headings and blocks settle onto the page, lists are entered row by row, numbered circles take ink in
   order, ticks are drawn. The focal moment is the privacy panel: each highlighted detail is found on the left slip and
   its token is written on the right one.
   Everything below is an enhancement over the finished page. The hero plays from first paint in CSS alone. The rest is
   primed by site.js (class `m` on <html>, `is-primed` on what is still below the window when the script runs), so no
   script, a failed script or reduced motion shows the page as it is, and nothing already in view is ever hidden.
   Opacity, transforms, clip-path and background size only: no property that moves layout, so nothing shifts. */

/* the top bar: a shadow once the page has moved, a reading-progress rule along its bottom edge, the current section
   underlined in the nav (all set by site.js, so the details page, which loads no script, shows none of them) */
.topbar { transition: box-shadow 0.3s ease; }
.topbar.is-scrolled { box-shadow: 0 10px 24px -20px rgb(13 35 66 / 0.45); }
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none;
}
/* Under each nav link, a rule in two layers: a pale track, ruled in on hover and kept under the section being read,
   and the blue fill over it, which follows the reader through that section (--sp, 0 to 1, set by site.js). */
.topnav__inline a, .topbar__login { position: relative; transition: color 0.2s ease; }
.topnav__inline a::before, .topnav__inline a::after, .topbar__login::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.4rem; height: 2px;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.35s var(--ease-out);
}
.topnav__inline a::before, .topbar__login::before { background: var(--rule-strong); }
.topnav__inline a::after { background: var(--accent); transition-duration: 0.25s; }
.topnav__inline a:hover::before, .topnav__inline a.is-current::before, .topbar__login:hover::before { transform: scaleX(1); }
.topnav__inline a.is-current { color: var(--ink); }
.topnav__inline a.is-current::after { transform: scaleX(var(--sp, 0)); }
.topnav__list a.is-current { color: var(--accent-deep); font-weight: 650; }

/* small state changes that were instant; a link's underline drops a little and thickens under the pointer */
a { transition: color 0.15s ease, text-decoration-color 0.15s ease, text-decoration-thickness 0.2s ease, text-underline-offset 0.25s var(--ease-out); }
a:hover { text-underline-offset: 0.3em; }
.account > summary { transition: background-color 0.2s ease; }
.qa__q { transition: color 0.2s ease; }

/* the walkthrough stage on ruled paper, and a phone swipe that stays the page's own (vertical scrolling untouched) */
.walk__stage {
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, #e7edf6 31px, #e7edf6 32px);
  touch-action: pan-y;
}

/* The navy bands are plain navy: no ruled lines behind them (Scott, 2026-11-26: "I don't want that grid that's inside
   of it"). They clip what moves inside them, so the walkthrough's depth on a wide window never spills past a band. */
.band--navy { position: relative; isolation: isolate; overflow: clip; }

/* rows of the details page's tables and the work trace light up under the pointer, as a finger runs down a ledger */
.journal__row, .ledger__row, .statement tbody tr { transition: background-color 0.2s ease; }
.journal__row:hover, .statement tbody tr:hover { background-color: var(--paper-2); }
.ledger__row:hover { background-color: rgb(138 184 255 / 0.06); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* keyboard focus: the ring arrives from a little further out and settles on its place (it is solid throughout) */
  :focus-visible { animation: ring-in 0.35s var(--ease-out); }

  /* the wordmark's double rule is ruled on arrival, and again under the pointer */
  .wordmark::after { animation: rule-x 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both; transform-origin: 0 50%; }
  a.wordmark:hover::after { animation: rule-x-again 0.5s cubic-bezier(0.65, 0, 0.35, 1) both; }

  /* ---- hero, from first paint: the heading stands (it is the page's largest paint); the lines under it settle in
     within 0.4 s, the button rises at full strength (a fading button reads as disabled), the chips' ticks are drawn.
     These play once, on arrival; the artwork video and its stage list (B41) are the only motion after that, and they
     never move the heading, the lines or the button. */
  /* Round 2 (Scott: "a lot more animation"): longer travel and timing you can see, the heading's second half taking
     its blue ink, the rules under the lines ruled across. */
  .hero .display .tone-2 { animation: ink-word 1s var(--ease-out) 0.15s both; }
  .hero .lead, .hero__why, .hero .figure, .chips li { animation: settle-far 0.75s var(--ease-out) both; }
  .hero .lead { animation-delay: 0.1s; }
  .hero__why, .hero .figure { animation: settle-far 0.75s var(--ease-out) 0.2s both, rule-bg 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.25s both; }
  .hero__cta { animation: solid-in 0.7s cubic-bezier(0.45, 0, 0.2, 1) 0.32s both; }
  .chips li:nth-child(1) { animation-delay: 0.4s; }
  .chips li:nth-child(2) { animation-delay: 0.48s; }
  .chips li:nth-child(3) { animation-delay: 0.56s; }
  .chips .icon path { stroke-dasharray: 17; animation: tick-draw 0.45s var(--ease-out) 0.6s both; }
  .chips li:nth-child(2) .icon path { animation-delay: 0.68s; }
  .chips li:nth-child(3) .icon path { animation-delay: 0.76s; }
  /* the artwork's poster fades up with the lines (the video then plays on from it), the stage list settles after the
     button, and on stage four the light behind the Written Offer card breathes (paused with the video) */
  .hero__art { animation: in-fade 0.9s var(--ease-out) 0.15s both; }
  .stages { animation: settle-far 0.75s var(--ease-out) 0.45s both, rule-bg 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.5s both; }
  .hero__art[data-stage="4"]::after { animation: offer-breathe 2.8s ease-in-out infinite; }
  .hero__art.is-paused::after { animation-play-state: paused; }
  .press.is-held, .press.is-held * { animation-play-state: paused !important; }
  /* the press strip: its rule is ruled across, then the label and the names are entered. --pd is how long it waits
     for the hero above it; on a phone, where it starts below the window, site.js holds it and it plays on arrival. */
  .press { --pd: 0.85s; animation: rule-bg 0.8s cubic-bezier(0.65, 0, 0.35, 1) var(--pd) both; }
  .press.is-late { --pd: 0s; }
  .press__label, .press__note { animation: settle 0.6s var(--ease-out) calc(var(--pd) + 0.2s) both; }
  .press__list li { animation: settle 0.6s var(--ease-out) both; }
  .press__list li:nth-child(1) { animation-delay: calc(var(--pd) + 0.3s); }
  .press__list li:nth-child(2) { animation-delay: calc(var(--pd) + 0.4s); }
  .press__list li:nth-child(3) { animation-delay: calc(var(--pd) + 0.5s); }
  .press__note { animation-delay: calc(var(--pd) + 0.5s); }
  /* keyboard focus inside the strip (a press link): everything in it shows at once */
  .press:focus-within, .press:focus-within * { animation: none !important; }

  /* ---- entrances on scroll (site.js adds rv, rv--KIND and is-primed just before each element reaches the window;
     --rv-d staggers what arrives together, in page order, 60 ms apart, at most 0.4 s). Round 2: each starts once it
     is 8% into the window and travels further (24px, 0.6 s), so the arrival is seen, not just finished; a section is
     open within about a second. */
  .m .rv { transition: opacity 0.5s var(--ease-out) var(--rv-d, 0ms), transform 0.6s var(--ease-out) var(--rv-d, 0ms); }
  .m .rv.is-primed { opacity: 0; transform: translateY(24px); }
  /* solid surfaces (buttons) are ruled in left to right at full strength, as the tabs are: a half-faded button reads
     as disabled, and one that only rises shows before its turn. They come after the heading they answer (site.js
     adds 120 ms), never before it. (The clip reaches 40px past each edge so a hover shadow or focus ring is never cut.) */
  .m .rv--solid { clip-path: inset(-40px); transition: clip-path 0.55s cubic-bezier(0.45, 0, 0.2, 1) var(--rv-d, 0ms), transform 0.6s var(--ease-out) var(--rv-d, 0ms); }
  .m .rv--solid.is-primed { opacity: 1; transform: translateY(12px); clip-path: inset(-40px calc(100% + 40px) -40px -40px); }
  /* A section heading is written down the page under its tab: a window opens over it top to bottom, so its lines
     appear in reading order, while it settles up into place; at full strength, never faded. */
  .m .rv--head { clip-path: inset(-0.4em -0.6em -0.4em -0.6em); transition: clip-path 0.5s cubic-bezier(0.25, 0, 0.1, 1) var(--rv-d, 0ms), transform 0.55s var(--ease-out) var(--rv-d, 0ms); }
  .m .rv--head.is-primed { opacity: 1; transform: translateY(18px); clip-path: inset(-0.4em -0.6em calc(100% + 0.4em) -0.6em); }
  /* the walkthrough panel is a white sheet on navy: it is ruled open top to bottom at full strength, never faded
     through grey; then its four steps are entered top to bottom, each number and label written in from the left */
  /* (the clip reaches 64px past each edge, so the panel's shadow is never cut, open or at rest) */
  .m .rv--panel { clip-path: inset(-64px -64px -64px -64px); transition: clip-path 0.75s cubic-bezier(0.65, 0, 0.35, 1) var(--rv-d, 0ms); }
  .m .rv--panel.is-primed { opacity: 1; transform: none; clip-path: inset(-64px -64px calc(100% + 64px) -64px); }
  .m .rv--panel .walk__head > * {
    --wd: calc(var(--rv-d, 0ms) + 0.3s + var(--i, 0) * 90ms);
    transition: opacity 0.5s ease var(--wd), translate 0.7s var(--ease-out) var(--wd), color 0.3s var(--ease-out);
  }
  .m .rv--panel .walk__head > .walk__label { --wd: calc(var(--rv-d, 0ms) + 0.36s + var(--i, 0) * 90ms); }
  .m .rv--panel.is-primed .walk__head > * { opacity: 0; translate: -20px 0; }
  /* keyboard focus inside the panel: its steps show at once (focus is never on an invisible label) */
  .m .rv--panel:focus-within .walk__head > * { --wd: 0s; }
  .m .rv--panel .walk__step:nth-child(2) .walk__head > * { --i: 1; }
  .m .rv--panel .walk__step:nth-child(3) .walk__head > * { --i: 2; }
  .m .rv--panel .walk__step:nth-child(4) .walk__head > * { --i: 3; }
  /* a section tab is ruled left to right, its label riding the rule */
  .m .rv--rule { clip-path: inset(0 0 0 0); transition: clip-path 0.55s cubic-bezier(0.45, 0, 0.2, 1) var(--rv-d, 0ms); }
  .m .rv--rule.is-primed { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); }
  /* A double rule over a list (the FAQ, the fit check's questions) or under a column label (the three kinds) is ruled
     left to right: an eraser the colour of the paper lies over it while it waits and is drawn off as it arrives. */
  .m .rv--line { transition: none; }
  .m .rv--line.is-primed { opacity: 1; transform: none; }
  .m .faq, .m .questions, .m .kinds__label, .m .journal__rows { position: relative; }
  .m .faq::after, .m .questions::after, .m .kinds__label::after, .m .journal__rows::after {
    content: ""; position: absolute; left: -1px; right: -1px; top: -4px; height: 4px; background: var(--paper); pointer-events: none;
    transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1) var(--rv-d, 0ms);
  }
  .m .faq::after { background: var(--paper-2); }
  .m .kinds__label::after { top: auto; bottom: -4px; transition-delay: calc(var(--rv-d, 0ms) + 0.2s); }
  .m .is-primed.faq::after, .m .is-primed.questions::after, .m .is-primed .kinds__label::after, .m .is-primed .journal__rows::after { transform: scaleX(1); }
  /* ticks beside the fit criteria are drawn as each line arrives */
  .m .criteria .icon path { stroke-dasharray: 17; transition: stroke-dashoffset 0.5s var(--ease-out) calc(var(--rv-d, 0ms) + 200ms); }
  .m .criteria .is-primed .icon path { stroke-dashoffset: 17; }
  /* the footer's wordmark: its double rule is ruled as the footer arrives (instead of at load) */
  .m .wordmark--footer::after { animation: none; transform-origin: 0 50%; transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--rv-d, 0ms) + 0.2s); }
  .m .is-primed .wordmark--footer::after { transform: scaleX(0); }
  /* keyboard focus is never inside something still waiting (site.js also reveals it at once) */
  .m .is-primed:focus-within { opacity: 1; transform: none; clip-path: none; }

  /* ---- the work trace (why buyers want it): the line runs down the entries, each is written in as it passes and
     its number takes ink. About 1.1 s. (The lead above it and the caption under it were removed, Scott 2026-12-01.) */
  .journal__rows::before { transform-origin: 50% 0; }
  .m .journal.is-primed .journal__rows::before { transform: scaleY(0); }
  .m .journal.is-primed .journal__row { opacity: 0; }
  /* round 2: the entries are written in from the left as the line reaches them, over about 1.6 s */
  .m .journal.is-playing .journal__rows::before { animation: trace-down 1.35s cubic-bezier(0.45, 0, 0.25, 1) both; }
  .m .journal.is-playing .journal__row { animation: settle-x 0.6s var(--ease-out) calc(var(--k, 0) * 150ms + 60ms) both; }
  .m .journal.is-playing .journal__num { animation: ink-ring 0.6s var(--ease-out) calc(var(--k, 0) * 150ms + 60ms) both; }

  /* ---- the work trace's spotlight (Scott, 2026-12-01): once the trace is written in, one entry at a time is lifted
     onto a sheet and its number filled while the others step back, then it settles and the next one comes up, 1 to 7
     and round again (site.js spotlight). Pointing at an entry holds the light on it. */
  .m .journal.is-cycling .journal__row {
    isolation: isolate;
    opacity: 0.45;
    transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), background-color 0.2s ease;
  }
  .m .journal.is-cycling .journal__row::after {
    content: ""; position: absolute; inset: -0.2rem -0.9rem; z-index: -1; border-radius: 10px;
    background: var(--sheet); box-shadow: 0 0 0 1px var(--rule), 0 18px 34px -20px rgb(13 35 66 / 0.55);
    opacity: 0; transform: scale(0.97);
    transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
  }
  .m .journal.is-cycling .journal__row:hover { background-color: transparent; }
  .m .journal.is-cycling .journal__row.is-lit { opacity: 1; transform: scale(1.025); z-index: 2; }
  .m .journal.is-cycling .journal__row.is-lit::after { opacity: 1; transform: none; }
  .m .journal.is-cycling .journal__num { transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.5s var(--ease-out); }
  .m .journal.is-cycling .is-lit .journal__num { background: var(--accent); color: #fff; box-shadow: 0 0 0 5px var(--accent-wash); }

  /* ---- the privacy panel, the focal moment (Scott, 2026-12-01): the left slip pops out and its sentence is typed in,
     fast, each detail's highlight drawn as its last letter lands (s-1); the slip settles while the buyer de-identifies:
     a bar fills under the arrow, a scan runs down the slip and the details pulse (s-2); the right slip pops out and is
     typed in, each token stamped as it is reached (s-3); the note comes in (s-4), then site.js hands back to the page
     at rest. Once, about 10 s (10.3 s measured, motion.test.mjs). site.js (scrub) splits the text into letters for the run and puts it back after. */
  .m .slips.is-primed .slip, .m .slips.is-primed .carry, .m .slips.is-primed figcaption { opacity: 0; }
  /* the loop (2026-12-02): between runs the slips, the arrow and the note fade out, then the run starts again */
  .m .slips.is-rewind .slip, .m .slips.is-rewind .carry, .m .slips.is-rewind figcaption { opacity: 0; transition: opacity 0.4s var(--ease-out); }
  .m .slips.is-scrub .slip {
    opacity: 0; transform: scale(0.93) translateY(12px);
    transition: opacity 0.4s var(--ease-out), transform 0.6s cubic-bezier(0.34, 1.5, 0.64, 1), box-shadow 0.6s var(--ease-out);
  }
  .m .slips.is-scrub .carry, .m .slips.is-scrub figcaption { opacity: 0; transition: opacity 0.45s var(--ease-out); }
  .m .slips.is-scrub.s-1 .slip--before,
  .m .slips.is-scrub.s-3 .slip--after { opacity: 1; transform: scale(1.035) translateY(-6px); box-shadow: 0 34px 60px -26px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(138 184 255 / 0.35); z-index: 1; }
  .m .slips.is-scrub.s-2 .slip--before,
  .m .slips.is-scrub.s-4 .slip--after { transform: none; box-shadow: 0 16px 30px -18px rgb(0 0 0 / 0.6); }
  .m .slips.is-scrub.s-2 .carry, .m .slips.is-scrub.s-4 figcaption { opacity: 1; }
  /* letters wait unseen (they keep their place, so nothing moves); the caret rides the last one typed */
  .m .slips.is-scrub .ch, .m .slips.is-scrub mark.raw, .m .slips.is-scrub .token { visibility: hidden; }
  .m .slips.is-scrub .ch.on { visibility: visible; }
  .m .slips.is-scrub .ch { position: relative; } /* every letter, all run long: the caret moving changes no layout */
  .m .slips.is-scrub .ch.at::after {
    content: ""; position: absolute; right: -2px; top: 0.2em; bottom: 0.1em; width: 2px; background: var(--accent);
  }
  .m .slips.is-scrub mark.raw.got { visibility: visible; animation: raw-find 0.35s cubic-bezier(0.65, 0, 0.35, 1) both; }
  .m .slips.is-scrub .token.on { visibility: visible; animation: token-write 0.4s var(--ease-out) both; }
  /* de-identifying: the bar under the arrow fills, a scan runs down the left slip, its details pulse */
  .carry__bar { display: block; position: relative; width: 4.5rem; height: 4px; border-radius: 2px; background: var(--navy-rule); overflow: hidden; }
  .carry__bar::after { content: ""; position: absolute; inset: 0; background: var(--sky); transform: scaleX(0); transform-origin: 0 50%; }
  .m .slips.is-scrub.s-2 .carry__bar::after { transform: scaleX(1); transition: transform 1.5s cubic-bezier(0.45, 0, 0.25, 1) 0.1s; }
  .m .slips.is-scrub.s-2:not(.s-3) .carry__icon { animation: carry 0.5s ease-in-out 3 both; }
  .m .slips.is-scrub .slip--before { position: relative; overflow: hidden; }
  .m .slips.is-scrub .slip--before::after {
    content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; pointer-events: none; opacity: 0;
    background: linear-gradient(rgb(31 95 209 / 0), rgb(31 95 209 / 0.14), rgb(31 95 209 / 0));
  }
  .m .slips.is-scrub.s-2:not(.s-3) .slip--before::after { animation: scan 0.8s ease-in-out 2; }
  .m .slips.is-scrub.s-2:not(.s-3) mark.raw { animation: raw-pulse 0.8s ease-in-out 2; }

  /* ---- industry cards and FAQ answers open and close by height (browsers that interpolate to auto; elsewhere they
     open at once, as before); the content fades in step with the height, all within 0.3 s */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .account::details-content, .qa::details-content {
      block-size: 0; overflow-y: clip;
      transition: block-size 0.3s var(--ease-out), content-visibility 0.3s allow-discrete;
    }
    .account[open]::details-content, .qa[open]::details-content { block-size: auto; }
  }
  /* round 2: an opened card's five cells are entered in reading order; an answer settles under its question */
  .account[open] .account__cell { animation: settle-near 0.4s var(--ease-out) both; }
  .account[open] .account__cell:nth-child(2) { animation-delay: 0.05s; }
  .account[open] .account__cell:nth-child(3) { animation-delay: 0.1s; }
  .account[open] .account__cell:nth-child(4) { animation-delay: 0.15s; }
  .account[open] .account__cell:nth-child(5) { animation-delay: 0.2s; }
  .qa[open] .qa__a { animation: settle-near 0.35s var(--ease-out) both; }
  .topnav__menu[open] .topnav__list { animation: settle-drop 0.25s var(--ease-out) both; }

  /* ---- motion that follows the reader's scrolling, on CSS scroll timelines only (elsewhere it stands still). It
     never moves the page: it only maps how far a band has scrolled to a small transform. */
  @supports (animation-timeline: view()) {
    /* depth on a wide window: the walkthrough rides a little slower than the band around it as it passes */
    @media (min-width: 900px) {
      .walk { animation: depth linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    }

    /* ---- the details page loads no script: its tabs are ruled, its headings rise and its rows are entered as they
       come into view, all tied to the scroll (anything already in view at load is already in place) */
    .ledger__row, .statement tbody tr { animation: settle-x linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    main:has(.details-intro) .tab { animation: rule-clip linear both; animation-timeline: view(); animation-range: entry 20% entry 100%; }
    main:has(.details-intro) section:not(.details-intro) .h2,
    main:has(.details-intro) .h3,
    main:has(.details-intro) section .lead,
    main:has(.details-intro) .ledger__head { animation: settle-far linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    main:has(.details-intro) .statement-wrap { animation: sheet-open linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}

@keyframes settle { from { opacity: 0; transform: translateY(12px); } }
@keyframes settle-near { from { opacity: 0; transform: translateY(8px); } }
@keyframes settle-far { from { opacity: 0; transform: translateY(20px); } }
@keyframes settle-drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes rise { from { transform: translateY(12px); } }
/* a sheet ruled in left to right; the clip reaches 40px past its edges so its shadow comes with it, uncut */
@keyframes rule-in { from { clip-path: inset(-40px calc(100% + 40px) -40px -40px); } to { clip-path: inset(-40px -40px -40px -40px); } }
@keyframes tick-draw { from { stroke-dashoffset: 17; } }
@keyframes rule-down { from { background-size: 100% 0%; } }
@keyframes ink-in { from { transform: scale(0.55); background-color: var(--sheet); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); } }
@keyframes ink-ring { from { transform: scale(0.6); border-color: var(--rule-strong); color: var(--pencil); } 55% { box-shadow: 0 0 0 5px var(--accent-wash); } }
@keyframes trace-down { from { transform: scaleY(0); } }
@keyframes raw-find { from { background-size: 0% 2px, 0% 100%; } }
@keyframes token-write {
  from { background-size: 0% 100%; color: var(--pencil); border-color: var(--rule-strong); transform: scale(0.94); }
  60% { transform: none; }
}
@keyframes carry { 50% { translate: var(--nudge, 0 5px); } }
@keyframes scan { from { opacity: 1; transform: translateY(0); } to { opacity: 1; transform: translateY(350%); } }
@keyframes raw-pulse { 50% { box-shadow: 0 0 0 3px rgb(201 71 58 / 0.35); } }
/* round 2 */
@keyframes settle-deep { from { opacity: 0; transform: translateY(32px); } }
@keyframes settle-x { from { opacity: 0; transform: translateX(-14px); } }
/* a white sheet ruled open top to bottom at full strength (the clip reaches 40px past its edges, so its shadow comes
   with it); a button ruled in left to right */
@keyframes sheet-open { from { clip-path: inset(-40px -40px calc(100% + 40px) -40px); transform: translateY(16px); } to { clip-path: inset(-40px); transform: none; } }
@keyframes solid-in { from { clip-path: inset(-40px calc(100% + 40px) -40px -40px); transform: translateY(10px); } to { clip-path: inset(-40px); transform: none; } }
@keyframes ink-word { from { color: var(--ink); } }
@keyframes rule-bg { from { background-size: 0% 1px; } }
@keyframes rule-x { from { transform: scaleX(0); } }
@keyframes rule-x-again { from { transform: scaleX(0); } }
@keyframes rule-clip { from { clip-path: inset(0 100% 0 0); } }
/* the Written Offer light brightens and dims; it never grows or shrinks (Scott 2026-12-02: nothing on the artwork
   should swell, B46) */
@keyframes offer-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes ring-in { from { outline-offset: 9px; } }
@keyframes depth { from { translate: 0 36px; } to { translate: 0 -36px; } }
.carry { --nudge: 0 5px; }
@media (min-width: 900px) { .carry { --nudge: 5px 0; } }

@media print {
  .m .is-primed, .m .is-primed * { opacity: 1 !important; transform: none !important; translate: none !important; clip-path: none !important; }
  .m .is-primed.faq::after, .m .is-primed.questions::after, .m .is-primed .kinds__label::after, .m .is-primed .journal__rows::after { transform: scaleX(0) !important; }
  .m .is-primed .wordmark--footer::after { transform: none !important; }
  .m .slips.is-scrub .slip, .m .slips.is-scrub .carry, .m .slips.is-scrub figcaption { opacity: 1 !important; transform: none !important; }
  .m .slips.is-scrub .ch, .m .slips.is-scrub mark.raw, .m .slips.is-scrub .token { visibility: visible !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (max-width: 899px) { .inv__detail { white-space: normal; } }
