/* Handsight homepage v2.
   Look: docs/design/v2-art-direction.md (tokens, components, sections).
   Motion modes: docs/design/v2-motion.md §9. The page's resting state is the static, unpinned
   layout with every end state visible: that is what phones, reduced motion and no-JS get.
   Pins exist only under html[data-motion="desktop"], which main.js confirms at runtime.

   1 Fonts · 2 Tokens · 3 Base · 4 Type · 5 Components · 6 Hero · 7 01 · 8 02 · 9 03
   10 04 · 11 05 · 12 06 · 13 07 · 14 Footer · 15 Motion modes · 16 Responsive · 17 Reduced motion */

/* ---------- 1. Fonts (self-hosted, Fontsource 5.3.0, OFL) ---------- */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-serif-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/geist-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/geist-mono-latin-wght-normal.woff2) format('woff2'); }

/* ---------- 2. Tokens ---------- */
:root {
  color-scheme: light;
  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* fluid scale, 360 → 1440 px (every step reaches its max exactly at 1440) */
  --step-hero: clamp(2.75rem, 1.8333rem + 4.0741vw, 5.5rem);
  --step-h2: clamp(2.25rem, 1.5833rem + 2.963vw, 4.25rem);
  --step-step: clamp(2.25rem, 1.8333rem + 1.8519vw, 3.5rem);
  --step-h3: clamp(1.75rem, 1.4167rem + 1.4815vw, 2.75rem);
  --step-title: clamp(1.25rem, 1.1667rem + .3704vw, 1.5rem);
  --step-lead: clamp(1.125rem, 1.0417rem + .3704vw, 1.375rem);
  --step-body: clamp(1rem, .9792rem + .0926vw, 1.0625rem);
  --step-small: .875rem;
  --step-caption: .8125rem;
  --step-micro: .75rem;

  /* colour, light */
  --paper: #f5f2eb; --raised: #fbfaf7; --sunk: #ebe7de; --stone: #e2ded5;
  --ink: #14252a; --ink-2: #44545a; --ink-3: #5b6769;
  --hairline: rgb(20 37 42 / .11); --hairline-2: rgb(20 37 42 / .20);
  --teal: #0f4c5c; --teal-deep: #0c3a45; --burnt: #9c4027; --saffron: #e9a23b; --rec: #c2412d;
  --status-built: #1c6352; --status-planned: #9c4027;
  --btn-bg: var(--teal); --btn-fg: var(--paper);   /* brand teal on the primary action: docs/design/theme-decision.md */
  --stage-ground: radial-gradient(120% 90% at 50% 38%, #f3f0ea 0%, #e9e5dd 55%, #dfdbd2 100%);
  --cloud-ground: radial-gradient(120% 90% at 50% 38%, #eef2f1 0%, #e3eae9 60%, #d8e1e0 100%);
  --studio: radial-gradient(90% 70% at 50% 42%, #f1eee8 0%, #e4e0d8 60%, #d7d2c8 100%);
  --studio-mid: #e6e2da;
  --studio-edge: #dbd6cc;   /* the studio ground's bottom edge (03 phone, under the pinned stage) */
  --clip-ground: linear-gradient(160deg, #1b2528 0%, #121a1c 70%);
  --shadow-float: 0 1px 1px rgb(20 37 42 / .04), 0 10px 24px -10px rgb(20 37 42 / .16), 0 40px 80px -32px rgb(20 37 42 / .28);
  --shadow-plate: 0 1px 1px rgb(20 37 42 / .05), 0 14px 30px -18px rgb(20 37 42 / .30);
  --ring: 0 0 0 1px var(--hairline);
  /* app UI inside mockups (follows the page theme) */
  --app-bg: #f7f6f3; --app-card: #ffffff; --app-ink: #15191a; --app-line: rgb(20 37 42 / .1);
  --app-tint: rgb(15 76 92 / .08); --app-accent: #0f4c5c; --app-on-accent: #f7f6f3; --app-accent-text: #0f4c5c;
  --lane: #cfd6d6; --wave: #9fb3b4;

  /* space */
  --page-max: 82.5rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --col-gap: clamp(1rem, 2vw, 2rem);
  --section-y: clamp(6rem, 4rem + 8vw, 11rem);
  --radius-l: 24px; --radius-m: 14px; --radius-s: 10px;
  --header: 64px;

  /* motion tokens (v2-motion §2.2) */
  --ease-enter: cubic-bezier(.16, 1, .3, 1); --ease-move: cubic-bezier(.76, 0, .24, 1);
  --ease-camera: cubic-bezier(.65, 0, .35, 1); --ease-exit: cubic-bezier(.32, 0, .67, 0);
  --ease-press: cubic-bezier(.33, 1, .68, 1); --ease-detent: cubic-bezier(.34, 1.56, .64, 1);
  --ease-fade: cubic-bezier(.5, 1, .89, 1);
  --dur-xs: 160ms; --dur-s: 320ms; --dur-detent: 420ms; --dur-m: 560ms; --dur-l: 900ms; --dur-xl: 1100ms;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1517; --raised: #172022; --sunk: #0a0e10; --stone: #141b1d;
  --ink: #ebe8e1; --ink-2: #a6b1b2; --ink-3: #828d8e;
  --hairline: rgb(235 232 225 / .10); --hairline-2: rgb(235 232 225 / .18);
  --teal: #7fc4bd; --teal-deep: #0b2f37; --burnt: #e8956a; --saffron: #f0b25a; --rec: #ef7a62;
  --status-built: #82cbb6; --status-planned: #ee9f74;
  --btn-bg: #1a6b7d; --btn-fg: #ebe8e1;   /* deep brand teal (the portal's --brand-mid), not the mint --teal */
  --stage-ground: radial-gradient(120% 90% at 50% 38%, #1d2629 0%, #141b1d 55%, #0c1113 100%);
  --cloud-ground: radial-gradient(120% 90% at 50% 38%, #18282b 0%, #11201f 60%, #0b1415 100%);
  --studio: radial-gradient(90% 70% at 50% 42%, #1c2427 0%, #11181a 60%, #090d0f 100%);
  --studio-mid: #131a1c;
  --studio-edge: #0b1012;
  --shadow-float: 0 0 0 1px rgb(255 255 255 / .06), 0 24px 60px -24px rgb(0 0 0 / .7);
  --shadow-plate: 0 0 0 1px rgb(255 255 255 / .05), 0 18px 36px -20px rgb(0 0 0 / .75);
  --app-bg: #15191b; --app-card: #1e2427; --app-ink: #e9e7e2; --app-line: rgb(235 232 225 / .1);
  --app-tint: rgb(127 196 189 / .12); --app-accent: #7fc4bd; --app-on-accent: #0f1517; --app-accent-text: #a9dcd6;
  --lane: #36403f; --wave: #5f7778;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); }
html.lenis { scroll-behavior: auto; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-body)/1.6 var(--font-sans); font-synthesis: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a:not([class]) { text-decoration: underline 1px var(--hairline-2); text-underline-offset: .2em; transition: text-decoration-color .2s; }
a:not([class]):hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 2 * var(--gutter), var(--page-max)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .7rem 1rem; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font: 500 var(--step-small)/1 var(--font-sans); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: .75rem; }
.mono { font-family: var(--font-mono); font-feature-settings: 'zero'; letter-spacing: 0; }
.no-js-only { display: none; }
html:not(.js) .no-js-only { display: inline; }
.theme-switching, .theme-switching * { transition: background-color .3s, color .3s, border-color .3s, fill .3s, stroke .3s !important; }

/* ---------- 4. Type roles ---------- */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.012em; line-height: 1.02; text-wrap: balance; }
/* No italics anywhere: one upright face, and emphasis is carried by colour alone */
em { font-style: normal; }
.display em, .compare em { color: var(--burnt); }
.h-hero { font-size: var(--step-hero); line-height: .98; }
.h2 { font-size: var(--step-h2); }
.h3 { font-size: var(--step-h3); line-height: 1.05; letter-spacing: -.01em; }
.h-step { font-size: var(--step-step); line-height: 1; letter-spacing: -.01em; }
.lead { font-size: var(--step-lead); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; max-width: 46ch; }
.caption { font: 400 var(--step-caption)/1.45 var(--font-sans); color: var(--ink-3); }
.eyebrow { font: 500 var(--step-small)/1.2 var(--font-sans); color: var(--ink-2); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow__n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.eyebrow__dash { width: 18px; height: 1px; background: var(--hairline-2); transform-origin: left; }
.split-line-mask { padding-bottom: .12em; margin-bottom: -.12em; }

/* ---------- 5. Components ---------- */
/* nav */
.nav { position: sticky; top: 0; z-index: 30; height: var(--header); background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--hairline); }
.nav__row { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__mark { display: flex; align-items: center; gap: 2.5px; height: 22px; }
.brand__mark i { width: 3px; border-radius: 2px; background: var(--teal); height: 11px; }
.brand__mark i:nth-child(2) { height: 21px; }
.brand__mark i:nth-child(3) { height: 16px; background: var(--burnt); }
.brand__mark i:nth-child(4) { height: 8px; }
.brand__name { font: 600 1.0625rem/1 var(--font-sans); letter-spacing: -.01em; }
.brand__by { font: 400 var(--step-caption)/1 var(--font-sans); color: var(--ink-3); padding-left: .75rem; margin-left: .15rem; border-left: 1px solid var(--hairline-2); }
.nav__nav { margin-left: auto; }
.nav__links { display: flex; gap: 1.75rem; white-space: nowrap; }
.nav__links a { position: relative; display: inline-block; padding: .5rem 0; font: 450 var(--step-small)/1 var(--font-sans); color: var(--ink-2); text-decoration: none; transition: color var(--dur-xs); }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--hairline-2); transform: scaleX(0); transform-origin: var(--from, left); transition: transform var(--dur-s) var(--ease-move); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__links a[aria-current]::after { transform: scaleX(1); background: color-mix(in srgb, var(--ink) 35%, transparent); }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; position: relative; transition: background-color var(--dur-xs), color var(--dur-xs), transform .1s var(--ease-press); }
.icon-btn::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; }   /* a 44 px tap target round the 36 px button */
.icon-btn:hover { background: var(--hairline); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 16px; height: 16px; grid-area: 1 / 1; transition: transform .4s var(--ease-move), opacity .4s var(--ease-move); }
.theme-toggle__sun { opacity: 0; transform: rotate(-90deg); }
[data-theme="dark"] .theme-toggle__sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle__moon { opacity: 0; transform: rotate(90deg); }
.menu-toggle { display: none; }
.menu-toggle__close { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { opacity: 1; }
.nav-sheet { position: fixed; inset: var(--header) 0 0; z-index: 29; background: var(--paper); padding-top: 2rem; overflow: auto; }
.nav-sheet[hidden] { display: none; }
.nav-sheet li + li { border-top: 1px solid var(--hairline); }
.nav-sheet a { display: block; padding: .9rem 0; font: 400 2.25rem/1.1 var(--font-display); letter-spacing: -.01em; color: var(--ink); text-decoration: none; }

/* buttons */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; height: var(--h); padding: 0 1.35rem; border-radius: 999px; border: 0; font: 500 .9375rem/1 var(--font-sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-xs), color var(--dur-xs), box-shadow var(--dur-xs), transform .3s var(--ease-enter); }
.btn:active { transform: scale(.98); transition-duration: .1s; }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: color-mix(in srgb, var(--btn-bg) 86%, var(--paper)); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline-2); }
.btn--text { background: none; padding: 0 .25rem; color: var(--ink); }
.btn--text .btn__label { text-decoration: underline 1px var(--hairline-2); text-underline-offset: 5px; transition: text-decoration-color .2s; }
.btn--text:hover .btn__label { text-decoration-color: currentColor; }
.btn--sm { --h: 36px; padding: 0 1rem; font-size: var(--step-small); }
.btn--block { width: 100%; }
/* the arrow swap: the arrow leaves on its own axis while a twin enters behind it */
.btn__icon { position: relative; width: 14px; height: 14px; overflow: clip; flex: none; }
.btn__icon svg { position: absolute; inset: 0; width: 14px; height: 14px; transition: transform .45s var(--ease-enter); }
.btn__icon svg + svg { transform: translate(-110%, 110%); }
.btn:hover .btn__icon svg:first-child, .btn:focus-visible .btn__icon svg:first-child { transform: translate(110%, -110%); }
.btn:hover .btn__icon svg + svg, .btn:focus-visible .btn__icon svg + svg { transform: none; }
.btn--down .btn__icon svg + svg { transform: translateY(-110%); }
.btn--down:hover .btn__icon svg:first-child, .btn--down:focus-visible .btn__icon svg:first-child { transform: translateY(110%); }
.btn--down:hover .btn__icon svg + svg, .btn--down:focus-visible .btn__icon svg + svg { transform: none; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--hairline-2); color: var(--ink); display: grid; place-items: center; transition: box-shadow var(--dur-xs), background-color var(--dur-xs), transform .1s var(--ease-press); }
.round-btn svg { width: 14px; height: 14px; }
.round-btn:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink-3); }
.round-btn:active:not(:disabled) { transform: scale(.94); }
.round-btn:disabled { opacity: .35; cursor: default; }

/* status labels: quiet, persistent, never animated (the guard below is load-bearing) */
.status { display: inline-flex; align-items: center; gap: .45em; height: 22px; padding: 0 .6rem 0 .5rem; border-radius: 999px; font: 500 var(--step-micro)/1 var(--font-sans); letter-spacing: .01em; white-space: nowrap; vertical-align: middle; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.status::before { content: ''; width: 6px; height: 6px; flex: none; }
.status--built { --c: var(--status-built); }
.status--built::before { border-radius: 50%; background: currentColor; }
.status--planned { --c: var(--status-planned); background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 38%, transparent); }
.status--planned::before { border-radius: 50%; border: 1.25px solid currentColor; }
.status { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
.tag { font: 450 var(--step-micro)/1 var(--font-sans); color: var(--ink-3); }
.figcap { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* section headers */
.section { padding-block: var(--section-y); }
.band { background: var(--sunk); }
.sec-head { margin-bottom: clamp(3.5rem, 2rem + 4vw, 6rem); }
.sec-head .eyebrow { margin-bottom: 1.5rem; }
.sec-head--statement .h2 { max-width: 16ch; }
.sec-head--statement .lead { margin-top: 1.5rem; }
.sec-head--split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 1.75rem; align-items: end; }
.sec-head--split .sec-head__title { grid-column: 1 / span 7; }
.sec-head--split .sec-head__aside { grid-column: 9 / span 4; display: grid; gap: 1.25rem; justify-items: start; }
.sec-head__intro { font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.legend { display: grid; gap: .6rem; }
.legend p { display: flex; align-items: center; gap: .75rem; font-size: var(--step-small); color: var(--ink-2); }
.legend .status { min-width: 76px; }

/* small chips used inside mockups */
.chip { display: inline-flex; align-items: center; gap: .35em; height: 2.1em; padding: 0 .7em; border-radius: 999px; font-weight: 500; background: var(--app-tint); color: var(--app-accent-text); white-space: nowrap; }
.chip svg { width: 1em; height: 1em; }
.chip--teal { background: var(--app-accent); color: var(--app-on-accent); }
.ep-chip { display: inline-flex; align-items: center; gap: .5rem; height: 26px; padding: 0 .7rem; border-radius: 999px; background: var(--raised); box-shadow: var(--ring), 0 1px 2px rgb(0 0 0 / .05); font-size: var(--step-micro); font-weight: 500; color: var(--ink); white-space: nowrap; }
.ep-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rec) 18%, transparent); }
.file-chip { display: inline-flex; align-items: center; gap: .45rem; height: 28px; padding: 0 .75rem; border-radius: 999px; background: var(--raised); box-shadow: var(--ring), 0 6px 14px -8px rgb(20 37 42 / .25); font-size: var(--step-micro); font-weight: 450; color: var(--ink); white-space: nowrap; }
.file-chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.file-chip--meta::before { background: var(--teal); }

/* ---------- 6. Hero ---------- */
.hero { padding-top: clamp(2rem, 1rem + 2.5vw, 2.75rem); text-align: center; overflow: clip; }
.hero__eyebrow { margin-bottom: 1.35rem; overflow: clip; padding-block: .15em; }
.hero__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--burnt); }
.hero .h-hero { margin-inline: auto; max-width: 26ch; }
.hero__lead { margin: 1.35rem auto 0; }
.hero__ctas { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero__figure { position: relative; width: min(100%, 980px); margin: clamp(.25rem, 1vw, .75rem) auto 0; }
/* The whole unit in the first view on a laptop: the frame gives up height (down to 260 px) when the
   viewport is too short for it under the headline, rather than ending at the fold mid-knob. The
   frame's top is ~365 px plus the headline's two lines (1.96 × --step-hero), and the unit fills 92 %
   of the frame's height (1200 / 470). Tall screens keep the full 980 px. */
@media (min-width: 861px) {
  .hero__figure { width: min(100%, 980px, max(664px, calc((100svh - 381px - 1.96 * var(--step-hero)) / .92 * 1200 / 470))); }
}
/* A short viewport (a 13" laptop under the browser's bars is ~790 px tall) gives the headline a
   little less size and air, so the unit can stay large: the frame's top moves up ~45 px. Up to
   906 px tall, where the rule above reaches the full 980 px, so the unit never shrinks as the
   window grows. */
@media (min-width: 861px) and (max-height: 906px) {
  .hero { --step-hero: clamp(2.75rem, 1.8333rem + 4.0741vw, 4.75rem); }
  .hero__eyebrow { margin-bottom: 1rem; }
  .hero__lead { margin-top: 1rem; }
  .hero__ctas { margin-top: 1.25rem; }
  .hero__figure { width: min(100%, 980px, max(664px, calc((100svh - 361px - 1.96 * var(--step-hero)) / .92 * 1200 / 470))); }
}
.hero__frame { --ar: 1200 / 470; pointer-events: none; }
/* frame 3 of the turntable, cropped exactly as hero.js heroCrop() crops the canvas: the union box
   (assets/renders/seq/seq.json) grown by 1 % and widened to 1200 / 470 = x −280, y 169.34,
   2000 × 783.32 frame px. Re-derive these three numbers if the renders change. */
.frame-3d.hero__frame > .poster img { position: absolute; left: 14%; top: -21.618%; width: 72%; height: auto; object-fit: fill; }
/* the cropped image reaches above the frame, over the CTAs: it must never take a click or a drag */
.hero__frame > .poster { pointer-events: none; }
.hero__frame.can-turn { pointer-events: auto; cursor: grab; touch-action: pan-y; }
.hero__frame.is-turning { cursor: grabbing; }
.hero__frame:focus-visible { outline-offset: -2px; border-radius: var(--radius-l); }
.hero__figcap { position: absolute; left: 77.5%; top: 24%; flex-direction: column; align-items: flex-start; gap: .5rem; max-width: 15ch; text-align: left; }
.hero__figcap .caption { text-wrap: balance; }
.hero__hint { display: inline-flex; align-items: center; gap: .4rem; font: 400 var(--step-caption)/1.3 var(--font-sans); color: var(--ink-3); opacity: 0; transition: opacity var(--dur-m) var(--ease-fade); }
.hero__hint svg { width: 16px; height: 16px; flex: none; }
.hero__figure.can-turn .hero__hint { opacity: 1; }
.proof { display: flex; justify-content: center; margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) auto 0; padding: 1.35rem 0; border-top: 1px solid var(--hairline); }
.proof li { position: relative; font: 450 var(--step-small)/1.3 var(--font-sans); color: var(--ink-2); padding: 0 clamp(1rem, 3vw, 2.75rem); }
.proof li + li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--hairline); transform-origin: top; }

/* 3D frames: the poster and the live canvas share one fixed box, so WebGL never shifts layout */
.frame-3d { position: relative; aspect-ratio: var(--ar, 16 / 10); }
.frame-3d > .poster, .frame-3d > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame-3d > .poster img { width: 100%; height: 100%; object-fit: contain; }
.frame-3d > canvas { display: block; }
.frame-3d > .poster { transition: opacity .4s var(--ease-fade); }
.frame-3d.is-live > .poster { opacity: 0; }
.frame-3d:not(.is-live) > canvas { visibility: hidden; }
/* frame sequences (frames.js): the canvas fills its frame; the scene places the render */
.seq-canvas { pointer-events: none; }
/* the engraving on the lid is too small to read on screen, so the caption says it */
.hero__origin { display: block; margin-top: .3em; color: var(--ink-2); }

/* ---------- 7. 01 The missing layer ---------- */
.compare { position: relative; max-width: 68rem; }
.compare table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare th { text-align: left; font: 500 var(--step-small)/1.3 var(--font-sans); color: var(--ink-3); padding: 0 0 1.25rem; }
.compare th + th, .compare td + td { padding-left: clamp(1.5rem, 4vw, 3.5rem); }
.compare th:first-child, .compare td:first-child { padding-right: clamp(1.5rem, 4vw, 3.5rem); }
/* both columns in one face and one ink; the only colour is the accent on the two verbs */
.compare td { padding: 1.1rem 0; border-top: 1px solid var(--hairline); font-size: var(--step-body); vertical-align: top; color: var(--ink); text-wrap: pretty; }
.compare .compare__title td { border-top: 0; padding-top: 0; padding-bottom: 1.4rem; font: 400 clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem)/1.1 var(--font-display); letter-spacing: -.01em; }
.compare .compare__sum td { padding-top: 1.6rem; font: 400 1.5rem/1.25 var(--font-display); }
.compare__rule { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--hairline-2); transform-origin: top; }
.compare__dot { position: absolute; left: -2.5px; top: .3rem; width: 6px; height: 6px; border-radius: 50%; background: var(--burnt); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin-top: clamp(4rem, 3rem + 4vw, 6rem); padding-top: 2.5rem; border-top: 1px solid var(--hairline); }
.principles h3 { font: 500 var(--step-title)/1.25 var(--font-sans); letter-spacing: -.01em; margin-bottom: .75rem; }
.principles p { color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.principles .principles__tag { margin-top: 1.25rem; font: 400 1.125rem/1.3 var(--font-display); color: var(--burnt); }

/* ---------- 8. 02 The episode ---------- */
.doc { background: var(--raised); border-radius: var(--radius-l); box-shadow: var(--ring), var(--shadow-float); padding: clamp(1.25rem, 3vw, 2.5rem); }
.doc__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.doc__title { display: flex; align-items: center; gap: .6rem; font: 500 var(--step-small)/1.2 var(--font-sans); }
.doc__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.doc__meta { font-size: var(--step-caption); color: var(--ink-3); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-bottom: 1.75rem; border-bottom: 1px solid var(--hairline); --node: 9px; }
.timeline__rule { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 15px; height: 1px; background: var(--hairline-2); }
.timeline__fill { position: absolute; inset: 0; background: var(--ink-3); transform-origin: left; transform: scaleX(var(--fill, 0)); transition: transform .5s var(--ease-move); }
.timeline__ring { position: absolute; top: 15px; left: 0; width: 19px; height: 19px; margin: -9.5px 0 0 -9.5px; border-radius: 50%; box-shadow: 0 0 0 1px var(--ink); pointer-events: none; transition: transform .5s var(--ease-move); }
.timeline__tab { position: relative; display: grid; justify-items: center; gap: .9rem; padding: 10px 0 0; border: 0; background: none; border-radius: 8px; }
.timeline__node { width: var(--node); height: var(--node); border-radius: 50%; background: var(--raised); box-shadow: inset 0 0 0 1.25px var(--ink-3); transition: background-color var(--dur-xs), box-shadow var(--dur-xs), transform var(--dur-s) var(--ease-enter); }
.timeline__tab.is-visited .timeline__node { background: var(--ink-3); }
.timeline__tab[aria-selected="true"] .timeline__node { background: var(--ink); box-shadow: inset 0 0 0 1.25px var(--ink); }
.timeline__tab.is-dead-end .timeline__node { box-shadow: inset 0 0 0 1.25px var(--burnt); }
.timeline__tab.is-dead-end.is-visited .timeline__node, .timeline__tab.is-dead-end[aria-selected="true"] .timeline__node { background: var(--burnt); }
.timeline__tab:hover .timeline__node { transform: scale(1.15); }
.timeline__label { font: 450 var(--step-small)/1.2 var(--font-sans); color: var(--ink-2); transition: color var(--dur-xs); }
.timeline__tab.is-dead-end .timeline__label { color: var(--burnt); }
.timeline__tab:hover .timeline__label, .timeline__tab[aria-selected="true"] .timeline__label { color: var(--ink); }
.timeline__tab[aria-selected="true"] .timeline__label { font-weight: 500; }
.timeline__tab.is-dead-end[aria-selected="true"] .timeline__label { color: var(--burnt); }
.doc__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: 2.5rem; border-bottom: 1px solid var(--hairline); }
.doc__panel:focus-visible { outline-offset: 6px; }
.doc__step { padding-right: clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; }
.doc__evidence { padding-left: clamp(1.5rem, 4vw, 3.5rem); border-left: 1px solid var(--hairline); display: flex; flex-direction: column; }
.doc__kind, .doc__label { font: 500 var(--step-small)/1.3 var(--font-sans); color: var(--ink-3); margin-bottom: 1rem; }
.doc__step-title { margin-bottom: 1.25rem; max-width: 16ch; }
.doc__copy { color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
.doc__nav { display: flex; align-items: center; gap: 1rem; margin-top: auto; padding-top: 2rem; }
.doc__count { font-size: var(--step-caption); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.doc__count-n { display: inline-block; overflow: clip; vertical-align: bottom; }
.doc__quote { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2rem); line-height: 1.15; margin-bottom: 1.25rem; max-width: 22ch; }
.doc__note { color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
.doc__illus { margin-top: auto; padding-top: 1.5rem; }
.doc__foot { display: flex; align-items: flex-start; gap: .6rem; padding-top: 1.5rem; font-size: var(--step-small); color: var(--ink-2); }
.doc__foot svg { width: 16px; height: 16px; flex: none; margin-top: .15em; color: var(--ink-3); }

/* ---------- 9. 03 The head unit ---------- */
.head-unit { padding-top: var(--section-y); }
.section-top .sec-head { margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); }
.hu-stage { position: relative; background: var(--studio); }
/* static layout: two blocks, teardown then tilt */
.hu-block { width: min(100% - 2 * var(--gutter), var(--page-max)); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.hu-block + .hu-block { padding-top: 0; }
.hu-block__inner { width: auto; margin: 0; grid-column: 1 / span 4; }
/* the boxes take the aspect of the renders' subject crop (below), so the stills fill them exactly */
.hu-visual { grid-column: 5 / span 8; --ar: 1482.84 / 1034.84; }
.hu-visual--tilt { --ar: 868.32 / 724.32; }
.hu-visual--worn { --ar: 1000 / 1250; width: min(100%, 31rem); justify-self: center; }
.hu-visual .poster--figure { display: none; }
.hu-visual--worn .poster--figure { display: block; }
/* the render frame cuts the bench: soften its bottom, left and right edges into the studio ground */
.poster--figure img { -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%), linear-gradient(to right, transparent 0%, #000 7%, #000 94%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000 90%, transparent 100%), linear-gradient(to right, transparent 0%, #000 7%, #000 94%, transparent 100%); mask-composite: intersect; }
.hu-worn-cap { margin-top: 1.5rem; max-width: 34ch; }
.hu-figcap__worn { display: none; }
.hu-visual .poster--front, .hu-visual .poster--tilt { display: none; }
.hu-visual--tilt .poster--tilt { display: block; }
/* Stills from the photoreal sequences, cropped to the subject exactly as head-unit.js crops the
   frames (frames.js rectOf: the union box in assets/renders/seq/seq.json grown by 4 %).
   explode: x 196.08, y 26.08, 1482.84 × 1034.84 of 1920 × 1080 · tilt: x 185.84, y 176.84,
   868.32 × 724.32 of 1080 × 1080. Re-derive if the renders change. */
.hu-visual > :is(.poster--front, .poster--exploded) img { position: absolute; left: -13.223%; top: -2.52%; width: 129.481%; height: auto; object-fit: fill; }
.hu-visual > .poster--tilt img { position: absolute; left: -21.402%; top: -24.414%; width: 124.378%; height: auto; object-fit: fill; }
.hu-visual > .poster:not(.poster--figure) { overflow: hidden; }
/* the frame canvases (worn beat, explode, tilt, in that order, so each lies over the one before),
   then the leader and the callout */
.hu-visual.frame-3d > canvas.seq-canvas { z-index: 2; visibility: visible; }
.hu-visual > .hu-overlay { z-index: 3; }
.hu-visual > .callout { z-index: 4; }
html[data-motion] .hu-visual.seq-ready[data-beat]:not([data-beat="worn"]) > .poster, .hu-visual--tilt.seq-ready > .poster { visibility: hidden; }
/* the figure still stands in for the worn frames until they have loaded */
html[data-motion="desktop"] .hu-visual.worn-ready[data-beat] > .poster--figure { visibility: hidden; }
html:not([data-motion="desktop"]):not([data-motion="phone"]) .seq-canvas { display: none; }
html[data-motion="phone"] .hu-visual[data-live="teardown"] { touch-action: pan-y; }
.hu-figcap { width: min(100% - 2 * var(--gutter), var(--page-max)); margin-inline: auto; padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.hu-panel__title { font: 500 var(--step-small)/1.3 var(--font-sans); color: var(--ink-2); margin-bottom: 1.25rem; }
.hu-panel__title span { color: var(--ink-3); font-weight: 400; }
.pills { display: grid; gap: .5rem; justify-items: start; contain: layout; }
.pills li { display: grid; }
.pill { display: inline-flex; align-items: center; gap: .65rem; height: 44px; padding: 0 1.15rem 0 .8rem; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--raised) 70%, transparent); box-shadow: inset 0 0 0 1px var(--hairline); font: 500 1rem/1 var(--font-sans); color: var(--ink); transition: box-shadow var(--dur-xs), background-color var(--dur-xs), transform .1s var(--ease-press); justify-self: start; }
.pill__icon { width: 18px; height: 18px; color: var(--ink-2); transition: transform var(--dur-s) var(--ease-move), color var(--dur-xs); }
.pill:hover { box-shadow: inset 0 0 0 1px var(--hairline-2); }
.pill:active { transform: scale(.97); }
.pill.is-active { background: var(--raised); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 55%, transparent), 0 6px 18px -10px rgb(20 37 42 / .3); }
.pill.is-active .pill__icon { color: var(--ink); }
.pill[aria-expanded="true"] .pill__icon { transform: rotate(45deg); }
.pill__desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-detent) var(--ease-move); }
.pill__desc > p { overflow: hidden; min-height: 0; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); max-width: 30ch; padding-left: 1rem; }
.pill[aria-expanded="true"] + .pill__desc { grid-template-rows: 1fr; }
.pill[aria-expanded="true"] + .pill__desc > p { padding-block: .5rem .35rem; }
html:not(.js) .pill__desc { grid-template-rows: 1fr; }
html:not(.js) .pill__desc > p { padding-block: .25rem .35rem; }
.hu-dims { margin-top: 1.5rem; max-width: 34ch; }
.hu-panel__h { margin-bottom: 1.1rem; max-width: 12ch; }
.hu-panel__body { color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.tilt-readout { display: flex; align-items: flex-end; gap: 1rem; margin: 1.75rem 0 1.25rem; }
.tilt-readout__num { display: flex; align-items: flex-start; font: 400 clamp(4rem, 3rem + 3vw, 6rem)/.9 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tilt-readout__digits { display: inline-block; overflow: clip; padding-bottom: .06em; }
.tilt-readout__roll { display: inline-block; }
.tilt-readout__deg { font-size: .6em; line-height: 1; margin-top: .08em; color: var(--ink-2); }
.tilt-readout__label { display: flex; align-items: center; gap: .6rem; padding-bottom: .55rem; font-size: var(--step-small); color: var(--ink-2); }
.you-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 .5rem; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 var(--step-micro)/1 var(--font-sans); opacity: 0; transform: translateY(4px); transition: opacity var(--dur-s), transform var(--dur-s) var(--ease-enter); }
.tilt-owned .you-tag { opacity: 1; transform: none; }
.seg { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: min(100%, 22rem); height: 40px; padding: 3px; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline); }
.seg__opt { position: relative; z-index: 1; border: 0; background: none; border-radius: 999px; font: 500 var(--step-small)/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink-2); transition: color var(--dur-xs); }
.seg__opt:hover { color: var(--ink); }
.seg__opt[aria-checked="true"] { color: var(--paper); }
.seg__thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 6); border-radius: 999px; background: var(--ink); transform: translateX(calc(var(--seg, 3) * 100%)); transition: transform var(--dur-detent) var(--ease-detent); }
html:not(.js) .seg { display: none; }
.hu-tilt-cap { margin-top: 1rem; }
/* overlay drawn over the frames: one callout + leader */
.hu-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.leader__line { fill: none; stroke: var(--ink-3); stroke-width: 1; }
.leader__dot { fill: var(--ink); stroke: var(--raised); stroke-width: 1.5; }
.leader { opacity: 0; }
.callout { position: absolute; left: 0; top: 0; display: grid; gap: .2rem; max-width: 19ch; pointer-events: none; opacity: 0; }
.callout__name, .callout__desc { overflow: clip; padding-bottom: .1em; }
.callout__name > span, .callout__desc > span { display: block; }
.callout__name { font: 500 var(--step-small)/1.3 var(--font-sans); color: var(--ink); }
.callout { text-shadow: 0 0 2px var(--studio-mid), 0 0 8px var(--studio-mid), 0 0 14px var(--studio-mid); }
html[data-motion="phone"] .callout, html[data-motion="phone"] .leader__line { display: none; }
html[data-motion="phone"] .leader__dot { stroke-width: 3; }
.callout__desc { font: 400 var(--step-caption)/1.4 var(--font-sans); color: var(--ink-2); }
html[data-motion] .hu-visual[data-beat] > .poster { display: block; visibility: hidden; }
html[data-motion] .hu-visual[data-beat="worn"] > .poster--figure, html[data-motion] .hu-visual[data-beat="front"] > .poster--front, html[data-motion] .hu-visual[data-beat="exploded"] > .poster--exploded, html[data-motion] .hu-visual[data-beat="tilt"] > .poster--tilt { visibility: visible; }
.hu-visual.is-grab { cursor: grab; }
.hu-visual.is-grabbing { cursor: grabbing; }

/* spec table (Apple specs pattern) */
.hu-more { padding-block: var(--section-y) 0; }
.spec { border-top: 1px solid var(--hairline-2); }
.spec__head { display: flex; align-items: center; gap: .9rem; padding-block: 2rem 1.5rem; }
.spec__title { font: 500 var(--step-title)/1.25 var(--font-sans); letter-spacing: -.01em; }
.spec__group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-block: 2.5rem; border-top: 1px solid var(--hairline); }
.spec__group h4 { grid-column: 1 / span 3; font: 400 var(--step-h3)/1.05 var(--font-display); letter-spacing: -.01em; }
.spec__rows { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem var(--col-gap); }
.spec dt { font: 450 var(--step-caption)/1.3 var(--font-sans); color: var(--ink-3); }
.spec dd { margin-top: .35rem; font: 400 1.0625rem/1.4 var(--font-sans); font-variant-numeric: tabular-nums; }
.spec dd small { display: block; color: var(--ink-2); font-size: var(--step-small); margin-top: .1rem; }
.spec__note { padding-top: 1.25rem; border-top: 1px solid var(--hairline); max-width: 80ch; }
.spec:focus { outline: none; }
/* the plain summary in view; the full list folds away under "Technical specs" */
.spec__sum { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.75rem var(--col-gap); padding-block: 1.75rem 2.25rem; border-top: 1px solid var(--hairline); }
.spec__sum li { display: grid; gap: .5rem; align-content: start; }
.spec__sum b { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1; font-weight: 400; }
.spec__sum span { font-size: var(--step-small); color: var(--ink-2); }
.spec__more { border-top: 1px solid var(--hairline); }
.spec__more > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; cursor: pointer; list-style: none; font: 500 var(--step-body)/1.3 var(--font-sans); border-radius: 6px; }
.spec__more > summary::-webkit-details-marker { display: none; }
.spec__more-icon { width: 20px; height: 20px; color: var(--ink-2); transition: transform var(--dur-s) var(--ease-enter), color var(--dur-xs); }
.spec__more[open] .spec__more-icon { transform: rotate(45deg); }
.spec__more > summary:hover .spec__more-icon { color: var(--ink); }
/* two layouts, same parts: hairline drawings at one scale on one baseline */
.layouts { margin-top: clamp(5rem, 4rem + 4vw, 8rem); }
.layouts__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.75rem; }
.layouts__title { font: 500 var(--step-title)/1.25 var(--font-sans); letter-spacing: -.01em; }
.layouts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.layouts__tile { --tile: #e9e5de; position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius-l); background: var(--studio); overflow: hidden; }
[data-theme="dark"] .layouts__tile { --tile: #161d20; }
.layouts__svg { position: absolute; left: 50%; bottom: 11%; height: 74%; width: auto; max-width: none; translate: -50% 0; overflow: visible; }
.ld > * { fill: var(--tile); stroke: var(--ink-2); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ld .ld-knob { stroke: #c86418; }
[data-theme="dark"] .ld .ld-knob { stroke: #e9914a; }
.layouts__item figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-top: 1rem; }
.layouts__name { font: 500 var(--step-body)/1.3 var(--font-sans); }

/* ---------- 10. 04 One recording, end to end ---------- */
.journey { padding-bottom: 0; }
.chapter { position: relative; }
.chapter + .chapter, .break + .chapter { margin-top: 0; }
.hud { padding-block: .75rem 1.25rem; background: var(--paper); }
.hud__row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.hud__name { font: 500 var(--step-small)/1 var(--font-sans); color: var(--ink); }
.hud__rule { flex: 1; height: 1px; background: var(--hairline); }
.hud__count { font-size: var(--step-caption); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hud__digits { display: inline-block; overflow: clip; vertical-align: bottom; }
.hud__n { display: inline-block; }
/* one segment per step (01–09), a tick between the two chapters */
.progress { display: grid; grid-template-columns: repeat(4, 1fr) 10px repeat(5, 1fr); gap: 4px; align-items: center; }
.progress i { position: relative; height: 2px; border-radius: 2px; background: var(--hairline-2); overflow: hidden; }
.progress i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--f, 0)); }
.progress b { width: 1px; height: 10px; background: var(--hairline-2); justify-self: center; }
/* static: every segment drawn */
.progress i { --f: 1; }
.progress i::after { background: var(--ink-3); }

.chapter__stage { display: none; }
.steps { counter-reset: none; }
.step { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.step + .step { border-top: 1px solid var(--hairline); }
.step__text { grid-column: 1 / span 4; padding-right: 1rem; }
.step > .stage { grid-column: 5 / span 8; }
.step__meta { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.step__n { font-size: var(--step-caption); color: var(--ink-3); }
.step__text h3 { margin-bottom: 1.1rem; }
.step__body { color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.6; text-wrap: pretty; }
.step__note { margin-top: 1.75rem; padding-top: 1.15rem; border-top: 1px solid var(--hairline); font-size: var(--step-small); color: var(--ink-2); line-height: 1.55; }
.step__note strong { font-weight: 500; color: var(--ink); }
.step__planned { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; color: var(--ink-2); }
.step__details { margin-top: 1.25rem; font-size: var(--step-small); color: var(--ink-2); }
.step__details summary { cursor: pointer; color: var(--ink); font-weight: 500; width: fit-content; text-decoration: underline 1px var(--hairline-2); text-underline-offset: 4px; }
.step__details summary:hover { text-decoration-color: currentColor; }
.six { list-style: decimal; padding-left: 1.25rem; margin-top: .75rem; display: grid; gap: .3rem; }

/* the stage (every mode) */
.stage { position: relative; aspect-ratio: 8 / 6.2; border-radius: var(--radius-l); background: var(--stage-ground); box-shadow: inset 0 0 0 1px var(--hairline); overflow: hidden; container-type: inline-size; isolation: isolate; }
.on-cloud .stage { background: var(--cloud-ground); }
.stage__bar, .stage__foot { position: absolute; inset-inline: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; pointer-events: none; }
.stage__bar { top: 0; }
.stage__foot { bottom: 0; }
.stage__facts { text-align: right; }
.stage__facts .f { display: inline; }
.stage__facts svg { display: inline; width: 1em; height: 1em; vertical-align: -.12em; }
.stage__facts .f--ok { color: var(--status-built); font-weight: 500; }
.stage__scene { position: absolute; inset: 0; perspective: 1400px; perspective-origin: 40% 45%; }

/* the episode object: a stack of plates, newest at the front */
.ep-anchor { position: absolute; left: 7%; top: 52%; width: 46%; aspect-ratio: 16 / 11; translate: 0 -50%; transform-style: preserve-3d; }
.ep-object { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-12deg) rotateY(-22deg); --gap: 22px; }
.ep-object > * { --k: 1; --n: 1; position: absolute; inset: 0; transform: translateZ(calc((var(--k) - var(--n)) * var(--gap))); }
.ep-object > :nth-child(2) { --k: 2; } .ep-object > :nth-child(3) { --k: 3; } .ep-object > :nth-child(4) { --k: 4; }
.ep-object[data-count="2"] > * { --n: 2; } .ep-object[data-count="3"] > * { --n: 3; } .ep-object[data-count="4"] > * { --n: 4; }
.plate { border-radius: var(--radius-m); background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-plate); padding: 7% 7.5%; display: flex; flex-direction: column; color: var(--ink); font-size: 2.15cqi; line-height: 1.3; backface-visibility: hidden; }
.plate--ghost { background: color-mix(in srgb, var(--raised) 88%, var(--stone)); }
.plate--quiet { }
.plate__row { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.plate__id { font-size: 1.25em; font-weight: 500; }
.plate__label { font-weight: 500; color: var(--ink-3); font-size: .92em; margin-bottom: .55em; display: flex; justify-content: space-between; }
.plate__title { font: 400 2.1em/1.05 var(--font-display); letter-spacing: -.01em; margin-bottom: auto; }
.plate__cap { font-size: .9em; color: var(--ink-3); }
.plate--job .plate__row { margin-top: .8em; }
.plate__pair { display: flex; align-items: center; gap: 4%; margin: auto 0; }
.plate__thumb { width: 46%; aspect-ratio: 1000 / 800; border-radius: .6em; background: var(--studio); overflow: hidden; }
.plate__thumb img { width: 100%; height: 100%; object-fit: cover; scale: 1.2; }
.plate__link { display: flex; gap: .45em; flex: 1; justify-content: center; }
.plate__link i { width: .45em; height: .45em; border-radius: 50%; background: var(--app-accent); opacity: .9; }
.plate__link i:nth-child(2) { opacity: .6; } .plate__link i:nth-child(3) { opacity: .35; }
.plate__phone { width: 9%; height: auto; color: var(--ink-2); }
.answers { display: grid; gap: 0; }
.answers li { display: flex; align-items: center; justify-content: space-between; gap: .5em; padding: .42em 0; border-top: 1px solid var(--hairline); }
.answers b { font-weight: 500; font-size: .86em; padding: .2em .55em; border-radius: 999px; background: var(--app-tint); color: var(--app-accent-text); }
.answers b.typed { font-family: var(--font-sans); background: transparent; box-shadow: inset 0 0 0 1px var(--hairline-2); color: var(--ink-2); }
.plate--answers { padding-block: 4.5%; font-size: 1.8cqi; }
.plate--answers .answers li { padding: .34em 0; }
.plate--answers .plate__label { margin-bottom: .3em; }
/* tracks: four thin plates in one slot, with a playhead */
.tracks { display: grid; grid-template-rows: 1.25fr 1.25fr .9fr .9fr; gap: 4.5%; padding: 4.5%; transform-style: preserve-3d; --l: 1; }
.tracks__bg { position: absolute; inset: 0; border-radius: var(--radius-m); background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-plate); }
.lane { position: relative; border-radius: .6em; box-shadow: inset 0 0 0 1px var(--hairline); background: color-mix(in srgb, var(--sunk) 55%, var(--raised)); overflow: hidden; display: flex; align-items: center; padding-left: 4%; font-size: 1.95cqi; }
.lane > span { position: relative; z-index: 2; font-size: .92em; color: var(--ink-2); }
.lane__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left; transform: scaleX(var(--l)); }
.lane--cam { background: linear-gradient(160deg, #1c2629, #11181a); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
.lane--cam > span { color: #c9d2d2; }
.lane--cam .lane__fill { background: repeating-linear-gradient(90deg, rgb(255 255 255 / .09) 0 1px, transparent 1px 7%); }
.lane--mics .lane__fill { left: 16%; width: 80%; background: repeating-linear-gradient(90deg, var(--wave) 0 2px, transparent 2px 5px); -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 12%, rgb(0 0 0 / .45) 12% 19%, #000 19% 27%, rgb(0 0 0 / .6) 27% 33%); mask-image: repeating-linear-gradient(90deg, #000 0 12%, rgb(0 0 0 / .45) 12% 19%, #000 19% 27%, rgb(0 0 0 / .6) 27% 33%); top: 32%; bottom: 32%; }
.lane--marks::after { content: ''; position: absolute; left: 16%; right: 4%; top: 50%; height: 1px; background: var(--hairline-2); }
.flag { position: absolute; z-index: 2; left: calc(16% + var(--at) * .8); top: 18%; bottom: 18%; width: 2px; border-radius: 1px; background: var(--teal); transform-origin: bottom; }
.flag--out { background: var(--burnt); }
.flag b { position: absolute; left: 5px; top: -2px; font-weight: 500; font-size: 1.6cqi; color: var(--ink-2); white-space: nowrap; }
.playhead { position: absolute; z-index: 3; left: calc(4.5% + 16% * .91); width: calc(80% * .91); top: -3%; bottom: -3%; border-right: 1.5px solid var(--rec); transform: translateX(calc((var(--l) - 1) * 100%)); opacity: 0; pointer-events: none; }

/* device: Android phone (AD §6.7) */
.phone { position: absolute; right: 7%; top: 53%; translate: 0 -50%; width: 30%; aspect-ratio: 9 / 19; border-radius: 13% / 6.2%; background: #0d1011; padding: 2.6%; box-shadow: inset 0 0 0 1.5px #2a2f31, inset 0 0 0 3px #0d1011, var(--shadow-float); z-index: 2; }
.phone::after { content: ''; position: absolute; left: 50%; top: 3.6%; width: 3.2%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: #050606; box-shadow: inset 0 0 0 1px #1d2224; z-index: 3; }
.phone__screens { position: relative; height: 100%; border-radius: 10.5% / 5%; overflow: hidden; }
.screen { position: relative; height: 100%; border-radius: 10.5% / 5%; overflow: hidden; background: var(--app-bg); color: var(--app-ink); display: flex; flex-direction: column; container-type: inline-size; font-size: 3.4cqi; line-height: 1.3; }
.phone__screens > .screen { position: absolute; inset: 0; border-radius: 0; }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 4.2cqi 7cqi 0; font: 500 3.6cqi/1 var(--font-sans); }
.sb i { width: 9cqi; height: 2.6cqi; border-radius: 1cqi; background: currentColor; opacity: .75; -webkit-mask: linear-gradient(90deg, #000 0 70%, transparent 70% 76%, #000 76%); mask: linear-gradient(90deg, #000 0 70%, transparent 70% 76%, #000 76%); }
.appbar { display: flex; align-items: center; gap: 3cqi; padding: 6cqi 6cqi 3cqi; }
.appbar svg { width: 4.5cqi; height: 4.5cqi; opacity: .7; flex: none; }
.appbar b { display: block; font: 600 4.8cqi/1.2 var(--font-sans); letter-spacing: -.01em; }
.appbar small { display: block; font: 400 3.3cqi/1.3 var(--font-sans); opacity: .62; margin-top: .6cqi; }
.field-label { margin: 5cqi 6cqi 2.2cqi; font: 500 3.2cqi/1.2 var(--font-sans); opacity: .62; }
.card { margin: 3cqi 5cqi 0; padding: 5cqi; border-radius: 5cqi; background: var(--app-card); box-shadow: 0 0 0 1px var(--app-line); }
.pair-card { display: grid; justify-items: center; gap: 1.5cqi; text-align: center; }
.pair-card__thumb { width: 70%; aspect-ratio: 1000 / 800; border-radius: 3cqi; background: var(--studio); overflow: hidden; }
.pair-card__thumb img { width: 100%; height: 100%; object-fit: cover; scale: 1.15; }
.pair-card__name { font: 600 4cqi/1.2 var(--font-sans); margin-top: 1cqi; }
.pair-card__sub { font-size: 3.1cqi; opacity: .6; }
.code-field { display: flex; justify-content: center; gap: 2cqi; margin: 0 5cqi; padding: 3.6cqi 0; border-radius: 3cqi; background: var(--app-card); box-shadow: 0 0 0 1px var(--app-line); font-size: 5cqi; letter-spacing: .08em; }
.code-field__dash { opacity: .4; }
.pair-state { position: relative; display: grid; margin: 5cqi 5cqi 0; height: 11cqi; }
.pair-state > span { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 1.6cqi; border-radius: 3cqi; font: 500 3.5cqi/1 var(--font-sans); }
.pair-state__pending { background: var(--app-tint); color: var(--app-accent-text); opacity: 0; }
.pair-state__done { background: var(--app-accent); color: var(--app-on-accent); }
.pair-state__done svg { width: 4cqi; height: 4cqi; }
.screen__hint { margin: auto 7cqi 9cqi; font-size: 3cqi; opacity: .55; text-align: center; }
.job-list { margin: 0 5cqi; border-radius: 4cqi; background: var(--app-card); box-shadow: 0 0 0 1px var(--app-line); overflow: hidden; }
.job-list li { display: flex; justify-content: space-between; align-items: center; padding: 3.2cqi 4.5cqi; font-size: 3.4cqi; }
.job-list li + li { border-top: 1px solid var(--app-line); }
.job-list i { width: 4cqi; height: 4cqi; border-radius: 50%; box-shadow: inset 0 0 0 .5cqi var(--app-line); }
.job-list li.is-on { font-weight: 500; }
.job-list li.is-on i { box-shadow: inset 0 0 0 1.3cqi var(--app-accent); }
.segm { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqi; margin: 0 5cqi; padding: 1cqi; border-radius: 3cqi; background: var(--app-tint); }
.segm span { display: grid; place-items: center; height: 8.5cqi; border-radius: 2.2cqi; font: 500 3.3cqi/1 var(--font-sans); color: var(--app-accent-text); }
.segm .is-on { background: var(--app-accent); color: var(--app-on-accent); }
.screen__cta { margin: auto 5cqi 8cqi; height: 11cqi; border-radius: 999px; display: grid; place-items: center; font: 500 3.6cqi/1 var(--font-sans); background: var(--app-tint); color: var(--app-accent-text); opacity: .55; }
.screen__cta.is-on { background: var(--app-accent); color: var(--app-on-accent); opacity: 1; }
.rec-block { margin: 3cqi 5cqi 0; padding: 5cqi; border-radius: 5cqi; background: var(--app-card); box-shadow: 0 0 0 1px var(--app-line); }
.rec-state { display: flex; align-items: center; gap: 2cqi; font: 500 3.3cqi/1 var(--font-sans); color: var(--rec); }
.rec-state::before { content: ''; width: 2.4cqi; height: 2.4cqi; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 1.2cqi color-mix(in srgb, var(--rec) 20%, transparent); }
.rec-time { font-size: 13cqi; line-height: 1; letter-spacing: -.02em; margin: 3cqi 0 4cqi; font-variant-numeric: tabular-nums; }
.mini-lanes { display: grid; grid-template-columns: 9cqi 1fr; gap: 2.2cqi 2.5cqi; align-items: center; font-size: 2.9cqi; }
.mini-lanes span { opacity: .6; }
.mini-lanes i { position: relative; height: 3.2cqi; border-radius: 1cqi; overflow: hidden; background: color-mix(in srgb, var(--lane) 35%, transparent); }
.mini-lanes i::after { content: ''; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--l, 1)); background: repeating-linear-gradient(90deg, var(--lane) 0 3.2cqi, transparent 3.2cqi 3.6cqi); border-right: 1.5px solid var(--rec); }
.mini-lanes i.w::after { background: repeating-linear-gradient(90deg, var(--wave) 0 .5cqi, transparent .5cqi 1.2cqi); }
.marks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqi; padding: 0 5cqi; }
.marks span { display: grid; place-items: center; height: 10cqi; border-radius: 3cqi; font: 500 3.2cqi/1 var(--font-sans); background: var(--app-tint); color: var(--app-accent-text); }
.marks span.is-pressed { background: var(--app-accent); color: var(--app-on-accent); }
.marks span.is-out.is-pressed { background: var(--burnt); color: var(--paper); }
.mark-log { margin: 4cqi 5cqi 0; font-size: 3.2cqi; }
.mark-log li { display: flex; align-items: center; gap: 2.4cqi; padding: 3cqi 1cqi; border-top: 1px solid var(--app-line); }
.mark-log i { width: 1.6cqi; height: 3.6cqi; border-radius: .6cqi; background: var(--app-accent); }
.mark-log i.out { background: var(--burnt); }
.mark-log span { margin-left: auto; opacity: .6; }
.stop { margin: auto auto 8cqi; display: grid; justify-items: center; gap: 2.2cqi; font: 500 3.1cqi/1 var(--font-sans); opacity: .9; }
.stop i { width: 16cqi; height: 16cqi; border-radius: 50%; display: grid; place-items: center; background: var(--rec); box-shadow: 0 0 0 1.2cqi color-mix(in srgb, var(--rec) 18%, transparent); }
.stop i::before { content: ''; width: 5cqi; height: 5cqi; border-radius: 1.2cqi; background: #fff; }
.qs { margin: 1cqi 5cqi 0; border-radius: 4cqi; background: var(--app-card); box-shadow: 0 0 0 1px var(--app-line); overflow: hidden; }
.qs li { display: flex; justify-content: space-between; align-items: center; gap: 3cqi; padding: 3.1cqi 4cqi; font-size: 3.15cqi; line-height: 1.25; }
.qs li + li { border-top: 1px solid var(--app-line); }
.qs b { flex: none; display: inline-flex; align-items: center; gap: 1cqi; padding: 1.2cqi 2.2cqi; border-radius: 999px; font-weight: 500; font-size: 2.9cqi; background: var(--app-tint); color: var(--app-accent-text); }
.qs b svg { width: 3cqi; height: 3cqi; }
.qs b.typed { background: transparent; box-shadow: inset 0 0 0 1px var(--app-line); color: inherit; opacity: .75; font-family: var(--font-sans); }

/* upload dock, audit plate (Planned: outline only, never filled, never faded) */
.dock { position: absolute; left: 57%; top: 50%; translate: 0 -50%; display: grid; gap: .55rem; justify-items: start; z-index: 3; }
.audit { display: inline-flex; align-items: center; padding: .55em .9em; border-radius: 9px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--status-planned) 60%, transparent); background: color-mix(in srgb, var(--raised) 55%, transparent); font-size: 1.55cqi; white-space: nowrap; }
.audit__name { display: flex; align-items: center; gap: .7em; font-weight: 500; color: var(--ink); }
.audit-gate { position: absolute; left: 7%; top: 19%; display: grid; justify-items: start; gap: .6rem; z-index: 3; }
.audit__note { font-size: var(--step-caption); color: var(--ink-2); max-width: 30ch; padding: .35rem .6rem; border-radius: 8px; background: color-mix(in srgb, var(--paper) 70%, transparent); }

/* review portal window (AD §6.7). No markers pane: the live portal doesn't show markers. */
.window { border-radius: var(--radius-m); background: var(--raised); box-shadow: var(--shadow-float); overflow: hidden; }
.portal { position: absolute; left: 5%; right: 5%; top: 12.5%; bottom: 11%; display: flex; flex-direction: column; container-type: inline-size; font-size: 1.55cqi; z-index: 2; }
.window__bar { flex: none; height: 40px; display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--hairline); font: 500 var(--step-caption)/1 var(--font-sans); color: var(--ink-2); }
.window__bar::before { content: ''; width: 34px; height: 8px; margin-right: 12px; background: radial-gradient(circle, var(--hairline-2) 3.2px, transparent 3.6px) 0 0 / 12px 8px repeat-x; }
.portal__banner { flex: none; display: flex; align-items: center; gap: 1em; margin: 1.6cqi 1.6cqi 0; }
.portal__banner .audit { font-size: 1em; }
.audit-slot { display: inline-block; flex: none; }
.portal__banner-note { color: var(--ink-2); font-size: .95em; }
.portal__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 21% minmax(0, 1fr) 31%; gap: 1.6cqi; padding: 1.6cqi; }
.portal__list li { display: grid; gap: .25em; padding: .8em .9em; border-radius: 8px; font-size: 1.05em; }
.portal__list li small { color: var(--ink-3); font-size: .9em; }
.portal__list li.is-on { background: var(--app-tint); box-shadow: inset 2px 0 0 var(--app-accent); }
.portal__media { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); gap: 1.2cqi; align-content: start; }   /* an explicit column: the auto track took the tile's aspect-ratio width and the tile covered the answers */
.tile { position: relative; border-radius: 8px; background: linear-gradient(160deg, #1c2629, #11181a); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .05); aspect-ratio: 16 / 9; }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 90% at 30% 25%, rgb(255 255 255 / .06), transparent 60%); }
.tile .mono { position: absolute; left: .8em; bottom: .6em; color: #c9d2d2; font-size: .95em; z-index: 1; }
.tile .tile__tc { left: auto; right: .8em; }
.tile--lg { width: 100%; }
.tile--sm { width: 48%; }
.wave { position: relative; display: flex; align-items: center; gap: .8em; height: 2.6em; padding: 0 .6em; border-radius: 6px; background: var(--app-tint); }
.wave .mono { color: var(--ink-3); font-size: .9em; }
.wave i { flex: 1; height: 55%; background: repeating-linear-gradient(90deg, var(--wave) 0 2px, transparent 2px 5px); -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 10%, rgb(0 0 0 / .4) 10% 16%, #000 16% 25%); mask-image: repeating-linear-gradient(90deg, #000 0 10%, rgb(0 0 0 / .4) 10% 16%, #000 16% 25%); }
.portal__side { display: grid; grid-template-rows: auto 1fr; gap: 1.4cqi; min-height: 0; }
.portal__h { font-weight: 500; color: var(--ink-3); margin-bottom: .5em; display: flex; justify-content: space-between; }
.portal__answers .answers li { padding: .38em 0; font-size: .98em; }
.portal__decide { border-top: 1px solid var(--hairline); padding-top: 1cqi; }
.portal__wait { color: var(--ink-3); }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: .5em; margin-bottom: .9em; }
.verdict span { display: grid; place-items: center; height: 2.6em; padding: 0 .9em; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.verdict__accept { background: var(--app-tint); color: var(--app-accent-text); }
.verdict__accept.is-on { background: var(--app-accent); color: var(--app-on-accent); }
.verdict__reject { box-shadow: inset 0 0 0 1px var(--hairline-2); color: var(--ink-2); font-size: .92em; }
.audit-log { display: grid; gap: .25em; font-size: .92em; color: var(--ink-2); }
.audit-log span { color: var(--ink-3); margin-right: .5em; }

/* sealed, accepted card */
.sealed { position: absolute; left: 50%; top: 52%; translate: -50% -50%; width: 50%; padding: 4.5cqi 4.5cqi 3.5cqi; border-radius: var(--radius-l); background: var(--raised); box-shadow: var(--ring), var(--shadow-float); font-size: 1.85cqi; z-index: 2; }
.sealed__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2em; }
.sealed__id { font-size: 1.2em; font-weight: 500; }
.sealed__ok { font-size: .95em; }
.sealed__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5em; }
.sealed__facts div { padding: .65em 0; border-top: 1px solid var(--hairline); }
.sealed__facts dt { font-size: .85em; color: var(--ink-3); }
.sealed__facts dd { font-weight: 500; }
.sealed__foot { margin-top: 1em; font-size: .8em; color: var(--ink-3); }

/* the chapter break */
.break { padding-block: clamp(4rem, 3rem + 4vw, 6rem); }
.break__rule { display: block; height: 1px; background: var(--hairline); }
.break__line { position: relative; display: grid; justify-items: center; gap: 1.25rem; padding-block: 2.5rem; }
.break__caption { display: inline-flex; align-items: center; gap: .5rem; font: 500 var(--step-small)/1.3 var(--font-sans); color: var(--ink-2); }
.break__caption svg { width: 14px; height: 14px; }
.break__unit { width: 40px; height: 26px; color: var(--ink-3); }
.break__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }

/* planned tail */
.tail { padding-block: clamp(4rem, 3rem + 4vw, 6rem) var(--section-y); }
.tail__name { font: 500 var(--step-small)/1 var(--font-sans); padding-bottom: 1.25rem; border-bottom: 1px solid var(--hairline); margin-bottom: 2rem; }
.tail__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.tail__list li { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; row-gap: .6rem; align-items: center; align-content: start; }
.tail__node { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.25px var(--status-planned); grid-row: 1; }
.tail__list h3 { font: 500 var(--step-title)/1.25 var(--font-sans); letter-spacing: -.01em; }
.tail__list .status { grid-column: 2; justify-self: start; }
.tail__list p { grid-column: 2; color: var(--ink-2); max-width: 34ch; }

/* ---------- 11. 05 From the shop floor ---------- */
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.clip__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-l); background: var(--clip-ground); overflow: hidden; display: grid; place-items: end start; }
.clip__media::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 60% at 18% 12%, rgb(255 255 255 / .10), transparent 65%); transition: opacity .9s var(--ease-enter); }
.clip__media::after { content: ''; position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.clip__pending { position: relative; z-index: 1; margin: 1.5rem; font: 450 var(--step-caption)/1.3 var(--font-sans); color: #b9c3c4; }
.clip video { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; }
.clip figcaption { display: grid; gap: .5rem; margin-top: 1.25rem; }
.clip__meta { font-size: var(--step-small); color: var(--ink-3); }
.clip__title { font-size: clamp(1.625rem, 1.35rem + 1vw, 2rem); line-height: 1.1; }
.clip__text { color: var(--ink-2); max-width: 34ch; }
.clips__foot { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); max-width: none; }
@media (hover: hover) { .clip:hover .clip__media::before { opacity: 1.6; } }

/* ---------- 12. 07 Pricing ---------- */
.price { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.price__card { display: flex; flex-direction: column; padding: clamp(1.5rem, 2.5vw, 2.25rem); border-radius: var(--radius-l); background: var(--raised); box-shadow: var(--ring); }
.price__card--key { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--burnt) 45%, transparent); }
.price__n { font-size: var(--step-caption); color: var(--ink-3); }
.price__title { margin-top: .9rem; font: 500 var(--step-title)/1.25 var(--font-sans); letter-spacing: -.01em; }
.price__big { margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem); font-size: clamp(3rem, 2.2rem + 2.6vw, 4.5rem); line-height: .95; font-variant-numeric: tabular-nums; }
.price__card--key .price__big { color: var(--burnt); }
.price__unit { margin-top: .5rem; font-size: var(--step-small); color: var(--ink-2); }
.price__text { margin-top: auto; padding-top: 1.75rem; color: var(--ink-2); text-wrap: pretty; }
.price__incl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--hairline); align-items: baseline; }
.price__incl-label { grid-column: 1 / span 3; font: 500 var(--step-small)/1.3 var(--font-sans); color: var(--ink-3); }
.price__incl ul { grid-column: 4 / -1; display: flex; flex-wrap: wrap; gap: .6rem 2rem; font-size: var(--step-small); color: var(--ink); }
.price__incl li { display: inline-flex; align-items: baseline; gap: .55rem; }
.price__incl li::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); transform: translateY(-.15em); }

/* 01 Who it's for */
.who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.who__card { display: flex; flex-direction: column; gap: .75rem; padding: clamp(1.5rem, 2.5vw, 2.25rem); border-radius: var(--radius-l); background: var(--raised); box-shadow: var(--ring); }
.who__kicker { font: 500 var(--step-caption)/1.3 var(--font-sans); color: var(--burnt); }
.who__title { font: 400 var(--step-h3)/1.05 var(--font-display); letter-spacing: -.01em; text-wrap: balance; margin-bottom: .25rem; }
.who__text { color: var(--ink-2); text-wrap: pretty; }
.who__list { display: grid; gap: .55rem; margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--hairline); font-size: var(--step-small); }
.who__list li { display: flex; gap: .6rem; align-items: baseline; }
.who__list li::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); transform: translateY(-.15em); }
.who__list .who__next { color: var(--ink-2); }
.who__list .who__next::before { background: transparent; box-shadow: inset 0 0 0 1.25px var(--ink-3); }
.who__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.who__chips li { display: inline-flex; align-items: center; height: 2rem; padding: 0 .85rem; border-radius: 999px; background: var(--sunk); font: 450 var(--step-small)/1 var(--font-sans); color: var(--ink); }

/* ---------- 13. 07 Contact ---------- */
.contact { background: var(--teal-deep); color: #f3f0e8; padding-block: var(--section-y); --ink: #f3f0e8; --ink-2: #a9c6c8; --ink-3: #a9c6c8; --hairline: rgb(243 240 232 / .14); --hairline-2: rgb(243 240 232 / .24); --teal: #a9dcd6; }
[data-theme="dark"] .contact { background: #0b2f37; }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 3rem; align-items: start; }
.contact__copy { grid-column: 1 / span 6; }
.contact__copy .eyebrow { margin-bottom: 1.5rem; color: #a9c6c8; }
.contact .eyebrow__n { color: #a9c6c8; }
.contact .h2 em { color: var(--saffron); }
[data-theme="light"] .contact .h2 em { color: #f0b25a; }
.contact__lead { margin-top: 1.5rem; font-size: var(--step-lead); line-height: 1.5; color: #a9c6c8; max-width: 44ch; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; margin-top: 2.75rem; }
.facts dt { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); line-height: 1; color: #f3f0e8; }
.facts dd { margin-top: .5rem; font-size: var(--step-caption); color: #a9c6c8; }
.contact__email { display: flex; align-items: center; gap: .4rem; margin-top: 2.75rem; font-size: var(--step-lead); }
.contact__email a { color: #f3f0e8; text-decoration: underline 1px rgb(243 240 232 / .35); text-underline-offset: .22em; transition: text-decoration-color .2s; }
.contact__email a:hover { text-decoration-color: #f3f0e8; }
.contact__email svg { width: 14px; height: 14px; }
.contact__note { margin-top: 1rem; color: #a9c6c8; font-size: var(--step-small); }
.form-card { grid-column: 8 / span 5; background: var(--raised); color: var(--ink-0, #14252a); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-float); display: grid; gap: 1.25rem;
  --ink: #14252a; --ink-2: #44545a; --ink-3: #5b6769; --hairline: rgb(20 37 42 / .11); --hairline-2: rgb(20 37 42 / .2); --teal: #0f4c5c; --raised: #fbfaf7; --sunk: #ebe7de; --btn-bg: #0f4c5c; --btn-fg: #f5f2eb; --paper: #f5f2eb; }
[data-theme="dark"] .form-card { --ink: #ebe8e1; --ink-2: #a6b1b2; --ink-3: #828d8e; --hairline: rgb(235 232 225 / .1); --hairline-2: rgb(235 232 225 / .18); --teal: #7fc4bd; --raised: #172022; --sunk: #0f1517; --btn-bg: #1a6b7d; --btn-fg: #ebe8e1; --paper: #0f1517; color: var(--ink); }
.form-card { color: var(--ink); }
.form-card__title { font: 500 var(--step-title)/1.25 var(--font-sans); letter-spacing: -.01em; }
.field { position: relative; display: grid; gap: .45rem; }
.field label { font: 500 var(--step-caption)/1.2 var(--font-sans); color: var(--ink-2); transition: color var(--dur-xs); }
.field:focus-within label { color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; height: 48px; padding: 0 .9rem; border-radius: var(--radius-s); background: var(--sunk); border: 1px solid transparent; font: 400 1rem/1.4 var(--font-sans); color: var(--ink); transition: border-color var(--dur-xs), box-shadow var(--dur-xs); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { height: 120px; padding-block: .75rem; resize: vertical; }
.field ::placeholder { color: var(--ink-3); opacity: .8; }
.field :focus-visible { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 20%, transparent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--status-planned, #9c4027); }
.field__err { font-size: var(--step-caption); color: #9c4027; }
[data-theme="dark"] .field__err { color: #ee9f74; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card__note { font-size: var(--step-caption); color: var(--ink-3); }
.form-card__status { font-size: var(--step-small); color: var(--ink-2); }
.form-card__status a { color: var(--ink); }

/* ---------- 14. Footer ---------- */
.footer { background: var(--sunk); padding-block: 4rem; }
.footer__row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer__line { font-size: var(--step-small); color: var(--ink-2); }
.footer__cta { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font: 500 var(--step-small)/1 var(--font-sans); color: var(--ink); text-decoration: underline 1px var(--hairline-2); text-underline-offset: 5px; }
.footer__cta:hover { text-decoration-color: currentColor; }
.footer__cta svg { width: 12px; height: 12px; }
.footer__row--fine { justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); font-size: var(--step-caption); color: var(--ink-3); }

/* ---------- 15. Motion modes ---------- */
/* Hidden only while JS is alive and has not set initial states yet; html.motion-failed (head
   script, 3 s) or the calm mode show everything. */
html.js:is([data-motion="desktop"], [data-motion="phone"]):not(.motion-ready):not(.motion-failed) :is([data-split], [data-reveal], [data-hero], [data-reveal-block], [data-principles], [data-clips], [data-cards]) { visibility: hidden; }

/* 03 desktop: one sticky studio stage, pinned for 2.0 viewports */
html[data-motion="desktop"] {
  --stage-h: calc(100svh - var(--header));
}
html[data-motion="desktop"] .hu-scene { height: calc(var(--stage-h) + 238svh); }   /* worn beat 0.5 + teardown 1.88 */
html[data-motion="desktop"] .hu-stage { position: sticky; top: var(--header); height: var(--stage-h); overflow: clip; }
html[data-motion="desktop"] .hu-block { position: absolute; inset: 0; width: auto; display: block; padding: 0; margin: 0; }
html[data-motion="desktop"] .hu-block--tilt, html[data-motion="desktop"] .hu-block--worn { pointer-events: none; }
html[data-motion="desktop"] .hu-block__inner { position: relative; z-index: 3; width: min(100% - 2 * var(--gutter), var(--page-max)); margin-inline: auto; height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; pointer-events: none; }
html[data-motion="desktop"] .hu-panel { grid-column: 1 / span 4; pointer-events: auto; padding-bottom: 2.5rem; }
html[data-motion="desktop"] .hu-panel--a, html[data-motion="desktop"] .hu-panel--b { visibility: hidden; }
html[data-motion="desktop"] .hu-visual--worn, html[data-motion="desktop"] .hu-worn-cap { display: none; }
html[data-motion="desktop"] .hu-stage:not([data-cap="bare"]) .hu-figcap__worn { display: inline; padding: .15rem .5rem; margin-left: -.3rem; border-radius: 6px; background: color-mix(in srgb, var(--studio-mid) 90%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }   /* a studio-ground chip: legible where the bench crosses */
html[data-motion="desktop"] .hu-stage:not([data-cap="bare"]) .hu-figcap__bare { display: none; }
html[data-motion="desktop"] .hu-visual { position: absolute; inset: 0; aspect-ratio: auto; z-index: 1; }
html[data-motion="desktop"] .hu-visual > .poster { left: 30%; right: 17%; top: 8%; bottom: 10%; width: auto; height: auto; }
html[data-motion="desktop"] .hu-visual > .poster--figure { left: 34%; right: 4%; top: 3%; bottom: 3%; }
/* from the handover on, the photoreal frames own the stage; the stills are for calm and no JS
   (the [data-beat] form matches the specificity of the beat rules in section 9, and wins by order) */
html[data-motion="desktop"] .hu-visual > :is(.poster--front, .poster--exploded, .poster--tilt),
html[data-motion="desktop"] .hu-visual[data-beat] > :is(.poster--front, .poster--exploded, .poster--tilt) { display: none; }
html[data-motion="desktop"] .hu-visual--tilt { display: none; }
html[data-motion="desktop"] .hu-figcap { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; justify-content: flex-start; padding-bottom: 1.75rem; }   /* bottom-left: clear ground under the panel, never over the subject */
@media (max-width: 1100px) { html[data-motion="desktop"] .hu-panel { grid-column: 1 / span 5; } }

/* 03 phone: the same sticky stage and scroll choreography. Portrait: the frames fill the top of
   the screen and the panel (worn, parts, tilt) swaps in below them; landscape: side by side. */
html[data-motion="phone"] { --stage-h: calc(100svh - var(--header)); --hu-split: 57%; }
html[data-motion="phone"] .hu-scene { height: calc(var(--stage-h) + 238svh); }   /* worn beat 0.5 + teardown 1.88, as on desktop */
html[data-motion="phone"] .hu-stage { position: sticky; top: var(--header); height: var(--stage-h); overflow: clip; }
/* when Safari's bars collapse the viewport outgrows the svh stage (714 → 754 px on an iPhone 17 Pro):
   the band below it shows the scene, so the scene wears the studio ground's edge colour */
html[data-motion="phone"] .hu-scene { background: var(--studio-edge); }
html[data-motion="phone"] .hu-block { position: absolute; inset: 0; width: auto; display: block; padding: 0; margin: 0; pointer-events: none; }
html[data-motion="phone"] .hu-block__inner { position: absolute; z-index: 3; left: 0; right: 0; top: var(--hu-split); bottom: 0; width: auto; margin: 0; padding: 1rem var(--gutter) 3rem; }
html[data-motion="phone"] .hu-panel { pointer-events: auto; }
html[data-motion="phone"] .hu-panel--a, html[data-motion="phone"] .hu-panel--b { visibility: hidden; }
html[data-motion="phone"] :is(.hu-visual--worn, .hu-worn-cap, .hu-visual--tilt) { display: none; }
html[data-motion="phone"] .hu-visual { position: absolute; left: 0; right: 0; top: 0; height: var(--hu-split); aspect-ratio: auto; z-index: 1; }
html[data-motion="phone"] .hu-visual > .poster--figure { inset: 3% 0 0; }   /* stands in until the worn frames load */
html[data-motion="phone"] .hu-visual.worn-ready[data-beat] > .poster--figure { visibility: hidden; }
html[data-motion="phone"] .hu-visual > :is(.poster--front, .poster--exploded, .poster--tilt),
html[data-motion="phone"] .hu-visual[data-beat] > :is(.poster--front, .poster--exploded, .poster--tilt) { display: none; }
html[data-motion="phone"] .hu-figcap { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; justify-content: flex-start; padding: 0 var(--gutter) 1rem; }
html[data-motion="phone"] .hu-stage:not([data-cap="bare"]) .hu-figcap__worn { display: inline; padding: .15rem .5rem; margin-left: -.3rem; border-radius: 6px; background: color-mix(in srgb, var(--studio-mid) 90%, transparent); }   /* legible where the bench crosses (landscape) */
html[data-motion="phone"] .hu-stage:not([data-cap="bare"]) .hu-figcap__bare { display: none; }
html[data-motion="phone"] .hu-panel__h { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.25rem); max-width: none; margin-bottom: .55rem; }
html[data-motion="phone"] .hu-panel__title { margin-bottom: .75rem; }
/* the parts: one row of pills (the moving part's pill scrolls into view), its description under it */
html[data-motion="phone"] .hu-panel .pills { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .5rem; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; }
html[data-motion="phone"] .hu-panel .pills::-webkit-scrollbar { display: none; }
html[data-motion="phone"] .hu-panel .pills li { flex: none; }
html[data-motion="phone"] .hu-panel .pill { height: 40px; }
html[data-motion="phone"] .hu-panel .pill__desc { display: none; }
html[data-motion="phone"] .pill-desc-mobile { display: block; min-height: 2.9em; margin-top: .8rem; color: var(--ink-2); max-width: 40ch; }
html[data-motion="phone"] .hu-dims { margin-top: .6rem; }
/* the tilt: heading, angle and control; the body copy steps back on short screens */
html[data-motion="phone"] .tilt-readout { margin: .6rem 0 .7rem; }
html[data-motion="phone"] .tilt-readout__num { font-size: 3.25rem; }
@media (max-height: 760px) { html[data-motion="phone"] :is(.hu-panel--b .hu-panel__body, .hu-tilt-cap, .hu-dims) { display: none; } }
@media (orientation: landscape) {
  html[data-motion="phone"] .hu-visual { left: 38%; bottom: 0; height: auto; }
  html[data-motion="phone"] .hu-block__inner { top: 0; right: 62%; display: flex; flex-direction: column; justify-content: center; padding-block: 1rem 2.5rem; }
  html[data-motion="phone"] :is(.hu-panel--b .hu-panel__body, .hu-tilt-cap, .hu-dims) { display: none; }
}

/* 04 desktop: steps scroll, one sticky stage per chapter */
html[data-motion="desktop"] .chapter { --hud-h: 78px; --stage-top: calc(var(--header) + var(--hud-h) + 12px); --stage-h: min(calc(100svh - var(--stage-top) - 28px), 720px); --step-h: 34svh; --fade-h: 12svh; }
html[data-motion="desktop"] .hud { position: sticky; top: var(--header); z-index: 6; height: var(--hud-h); }
html[data-motion="desktop"] .chapter__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
html[data-motion="desktop"] .steps { grid-column: 1 / span 4; position: relative; padding-top: calc(55svh - var(--stage-top) - var(--step-h) / 2); }
html[data-motion="desktop"] #journey-workshop .steps { padding-bottom: calc(var(--stage-h) + 102svh - 4 * var(--step-h) - (55svh - var(--stage-top) - var(--step-h) / 2)); }
html[data-motion="desktop"] #journey-cloud .steps { padding-bottom: calc(var(--stage-h) + 136svh - 5 * var(--step-h) - (55svh - var(--stage-top) - var(--step-h) / 2)); }
html[data-motion="desktop"] .step { display: flex; align-items: center; min-height: var(--step-h); padding-block: .75rem; border-top: 0; }
/* status labels are never dimmed: the step meta row sits above the column fades */
html[data-motion="desktop"] .step__meta { position: relative; z-index: 3; }
html[data-motion="desktop"] .step__text { padding-right: 1.5rem; }
html[data-motion="desktop"] .step > .stage { display: none; }
html[data-motion="desktop"] .chapter__stage { display: block; grid-column: 5 / span 8; position: sticky; top: var(--stage-top); height: var(--stage-h); aspect-ratio: auto; }
/* "one step in focus": static fades in the page colour at the top and bottom of the column */
html[data-motion="desktop"] .steps::before, html[data-motion="desktop"] .steps::after { content: ''; position: sticky; z-index: 2; display: block; height: var(--fade-h); pointer-events: none; }
html[data-motion="desktop"] .steps::before { top: calc(var(--stage-top) - 12px); margin-bottom: calc(-1 * var(--fade-h)); background: linear-gradient(var(--paper), color-mix(in srgb, var(--paper) 0%, transparent)); }
html[data-motion="desktop"] .steps::after { bottom: 0; margin-top: calc(-1 * var(--fade-h)); background: linear-gradient(color-mix(in srgb, var(--paper) 0%, transparent), var(--paper)); }
html[data-motion="desktop"] .chapter__stage .stage__scene { perspective: 1600px; }
html[data-motion="desktop"] .progress i { --f: 0; }
html[data-motion="desktop"] .progress i::after { background: var(--ink); }
html[data-motion="desktop"] .progress i.done { --f: 1; }
html[data-motion="desktop"] .progress i.done::after { background: var(--ink-3); }
html[data-motion="desktop"] .tail { padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
html[data-motion="desktop"] .break { padding-block: 0; }
html[data-motion="desktop"] .break__line { min-height: 44svh; align-content: center; overflow: clip; }
html[data-motion="desktop"] .break__chips { position: absolute; left: 0; right: 0; top: calc(50% + 2.4rem); display: block; height: 28px; }
html[data-motion="desktop"] .break__chips .file-chip { position: absolute; left: 50%; top: 0; }
html[data-motion="desktop"] .break__unit { position: absolute; left: calc(50% - 34vw - 52px); top: calc(50% + 2.4rem); margin-top: 1px; }

/* 05 phone: the HUD and the chapter's one live stage stick at the top; the steps scroll under them
   and take over below the stage (journey.js), so the episode builds up as you read */
html[data-motion="phone"] .chapter { --hud-h: 66px; --stage-top: calc(var(--header) + var(--hud-h)); }
html[data-motion="phone"] .hud { position: sticky; top: var(--header); z-index: 6; height: var(--hud-h); padding-block: .65rem 0; }
html[data-motion="phone"] .hud__row { margin-bottom: .7rem; }
html[data-motion="phone"] .chapter__grid { display: flex; flex-direction: column; }
html[data-motion="phone"] .chapter__stage { display: block; order: -1; position: sticky; top: var(--stage-top); z-index: 5; padding-bottom: .9rem; background: var(--paper); }
html[data-motion="phone"] .chapter__stage::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 2rem; background: linear-gradient(var(--paper), color-mix(in srgb, var(--paper) 0%, transparent)); pointer-events: none; }
html[data-motion="phone"] .chapter__stage > .stage { width: min(100%, calc(40svh * 8 / 6.2)); height: auto; aspect-ratio: 8 / 6.2; margin-inline: auto; }
/* small phones: the live stage is a full-width landscape card with the desktop placements, scaled
   (a portrait card, 4 : 6.2 at 46 svh, was 250 px wide at 390 px: everything overlapped and its text
   was 6.5 px). The steps' own static stages keep the portrait composition (section 16). In 08 the
   verdict takes the answers' place in the side column, and in 09 the audit strip steps back
   (journey.js, `phone`). */
@media (max-width: 600px) {
  html[data-motion="phone"] .chapter__stage > .stage { width: 100%; aspect-ratio: 8 / 6.2; }
  html[data-motion="phone"] .stage--live .stage__bar { flex-wrap: nowrap; align-items: flex-start; padding: .7rem .9rem; }
  html[data-motion="phone"] .stage--live .stage__facts { flex-basis: auto; text-align: right; font-size: .6875rem; line-height: 1.35; }
  html[data-motion="phone"] .stage--live .ep-anchor { left: 5%; top: 54%; width: 46%; }
  html[data-motion="phone"] .stage--live .phone { right: 6%; top: 54%; bottom: auto; translate: 0 -50%; width: 30%; }
  html[data-motion="phone"] .stage--live .dock { left: auto; right: 6%; top: 54%; bottom: auto; translate: 0 -50%; justify-items: end; gap: .45rem; }
  html[data-motion="phone"] .stage--live .audit--live { left: 5%; top: 23%; font-size: max(9px, 2.3cqi); }
  html[data-motion="phone"] .stage--live .portal { top: 23%; bottom: 9%; left: 3%; right: 3%; font-size: 2.2cqi; }
  html[data-motion="phone"] .stage--live .window__bar { height: 28px; }
  html[data-motion="phone"] .stage--live .portal__banner { margin-top: 1.6cqi; }
  html[data-motion="phone"] .stage--live .portal__side { grid-template-rows: minmax(0, 1fr); }
  html[data-motion="phone"] .stage--live .portal__side > * { grid-area: 1 / 1; }
  html[data-motion="phone"] .stage--live .portal__decide { border-top: 0; padding-top: 0; }
  html[data-motion="phone"] .stage--live .sealed { width: 56%; font-size: 2.2cqi; top: 52%; padding: 3cqi 3.5cqi 2.5cqi; }
  html[data-motion="phone"] .stage--live .stage__foot { padding: .45rem .9rem; padding-right: 0; }
  html[data-motion="phone"] .stage--live .stage__foot .caption { font-size: .625rem; line-height: 1.3; }
  html[data-motion="phone"] .stage--live .plate { font-size: 2.7cqi; }
  html[data-motion="phone"] .stage--live .plate--answers { font-size: 2.3cqi; }
  html[data-motion="phone"] .stage--live .lane { font-size: 3cqi; }
  html[data-motion="phone"] .stage--live .plate__cap { display: none; }   /* "Head unit · code": the back plate's caption peeked out onto the honesty caption */
}
html[data-motion="phone"] .step > .stage { display: none; }
html[data-motion="phone"] .step { display: block; min-height: 52svh; padding-block: 2.25rem 1.5rem; }
html[data-motion="phone"] .step + .step { border-top: 0; }
html[data-motion="phone"] .steps { padding-bottom: 24svh; }
html[data-motion="phone"] .progress i { --f: 0; }
html[data-motion="phone"] .progress i::after { background: var(--ink); }
html[data-motion="phone"] .progress i.done { --f: 1; }
html[data-motion="phone"] .progress i.done::after { background: var(--ink-3); }
/* the stage built by journey.js */
.chapter__stage > .stage { height: 100%; aspect-ratio: auto; }
.stage--live .stage__facts .f { display: inline-block; }
.stage--live.is-near .ep-object > *, .stage--live.is-near .lane { will-change: transform; }
.stage--live .ep-anchor { left: 6%; width: 47%; }
.stage--live .audit--live { position: absolute; left: 6%; top: 21%; z-index: 4; font-size: 1.45cqi; }
.stage--live .dock { left: 58%; }
.ep-seal { position: absolute; inset: -5%; border-radius: calc(var(--radius-m) + 6px); box-shadow: inset 0 0 0 1px var(--hairline-2); transform: translateZ(-9px); pointer-events: none; }
.ep-seal__tab { position: absolute; right: -4%; bottom: -5.5%; font-size: max(11px, 1.3cqi); }
.chapter__stage .phone__screens > .screen { visibility: hidden; }
.chapter__stage .phone__screens > .screen.is-on { visibility: visible; }

/* ---------- 16. Responsive ---------- */
@media (max-width: 1280px) {
  .nav__links { gap: 1.25rem; }
}
/* the links need ~1220 px on one line (measured with seven, before Team came off); below that, the menu */
@media (max-width: 1240px) {
  .nav__nav { display: none; }
  .nav__actions { margin-left: auto; }
  .menu-toggle { display: grid; }
}
@media (max-width: 1080px) {
  .sec-head--split .sec-head__title { grid-column: 1 / span 7; }
  .sec-head--split .sec-head__aside { grid-column: 8 / span 5; }
  .contact__copy { grid-column: 1 / -1; }
  .form-card { grid-column: 1 / span 9; }
}
@media (max-width: 860px) {
  .sec-head--split .sec-head__title, .sec-head--split .sec-head__aside { grid-column: 1 / -1; }
  .hero__figcap { position: static; flex-direction: row; justify-content: center; max-width: none; margin-top: .75rem; text-align: center; }
  .compare th + th, .compare td + td { padding-left: 1.25rem; }
  .compare th:first-child, .compare td:first-child { padding-right: 1.25rem; }
  .principles { grid-template-columns: 1fr; gap: 2rem; }
  .doc__panel { grid-template-columns: 1fr; }
  .doc__step { padding-right: 0; }
  .doc__evidence { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline); margin-top: 2rem; padding-top: 2rem; }
  .doc__nav { order: 3; }
  .hu-block { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
  .hu-block__inner { min-width: 0; }
  .hu-block__inner, .hu-visual { grid-column: 1; }
  .hu-visual { order: -1; }
  .spec__group h4, .spec__rows { grid-column: 1 / -1; }
  .spec__group h4 { margin-bottom: 1.5rem; }
  .step { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .step__text, .step > .stage { grid-column: 1; }
  .step__text { padding-right: 0; }
  .tail__list { grid-template-columns: 1fr; gap: 1.75rem; }
  .clips { grid-template-columns: repeat(3, minmax(16rem, 80%)); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .clips::-webkit-scrollbar { display: none; }
  .clip { scroll-snap-align: start; }
  .who__grid, .price { grid-template-columns: 1fr; }
  .price__text { margin-top: 0; padding-top: 1.25rem; }
  .price__incl-label { grid-column: 1 / -1; margin-bottom: .75rem; }
  .price__incl ul { grid-column: 1 / -1; flex-direction: column; }
  .spec__sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-card { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --header: 60px; }
  .brand__by { display: none; }
  .nav__cta { display: none; }
  .hero { text-align: left; }
  .hero .h-hero { margin-inline: 0; }
  .hero__lead { margin-left: 0; }
  .hero__ctas { justify-content: flex-start; }
  .hero__ctas .btn--primary { flex: 1 0 100%; }
  .hero__figure { width: auto; margin-inline: calc(-1 * var(--gutter)); }
  .hero__frame { width: 180vw; margin-left: -40vw; }
  .hero__figcap { justify-content: flex-start; padding-inline: var(--gutter); text-align: left; }
  .proof { flex-direction: column; gap: .6rem; justify-content: flex-start; }
  .proof li { padding: 0; }
  .proof li + li::before { display: none; }
  .compare table, .compare tbody, .compare tr, .compare td, .compare th, .compare thead { display: block; }
  .compare thead { display: none; }
  .compare__rule { display: none; }
  .compare tbody { display: grid; grid-template-columns: 1fr; }
  .compare tr { display: contents; }
  .compare td + td, .compare td:first-child { padding-left: 0; padding-right: 0; }
  .compare tbody td:first-child { order: 1; }
  .compare tbody td:last-child { order: 2; }
  .compare .compare__title td:first-child::before { content: 'Captured today'; display: block; font: 500 var(--step-small)/1.3 var(--font-sans); color: var(--ink-3); margin-bottom: .75rem; }
  .compare .compare__title td:last-child::before { content: 'The missing layer'; display: block; font: 500 var(--step-small)/1.3 var(--font-sans); color: var(--ink-3); margin-bottom: .75rem; }
  .compare .compare__title td:last-child { margin-top: 2.5rem; }
  .compare tbody td { order: 1; }
  .compare tr:nth-child(1) td:first-child { order: 1; } .compare tr:nth-child(2) td:first-child { order: 2; } .compare tr:nth-child(3) td:first-child { order: 3; } .compare tr:nth-child(4) td:first-child { order: 4; } .compare tr:nth-child(5) td:first-child { order: 5; }
  .compare tr:nth-child(1) td:last-child { order: 6; } .compare tr:nth-child(2) td:last-child { order: 7; } .compare tr:nth-child(3) td:last-child { order: 8; } .compare tr:nth-child(4) td:last-child { order: 9; } .compare tr:nth-child(5) td:last-child { order: 10; }
  .doc { padding: 1.25rem; border-radius: 20px; }
  .timeline { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.25rem; margin-inline: -1.25rem; padding-inline: 1.25rem; scrollbar-width: none; }
  .timeline::-webkit-scrollbar { display: none; }
  .timeline__rule, .timeline__ring { display: none; }
  .timeline__tab { flex: none; scroll-snap-align: center; display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1rem 0 .85rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hairline); }
  .timeline__tab[aria-selected="true"] { background: var(--ink); box-shadow: none; }
  .timeline__tab[aria-selected="true"] .timeline__label { color: var(--paper); }
  .timeline__tab[aria-selected="true"] .timeline__node { background: var(--paper); box-shadow: none; }
  .timeline__tab.is-dead-end[aria-selected="true"] { background: var(--burnt); }
  .timeline__tab.is-dead-end[aria-selected="true"] .timeline__label { color: var(--paper); }
  .hu-panel .pills { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .5rem; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scroll-padding-inline: var(--gutter); scroll-snap-type: x proximity; scrollbar-width: none; }
  .hu-panel .pills::-webkit-scrollbar { display: none; }
  .hu-panel .pills li { flex: none; scroll-snap-align: start; }
  .hu-panel .pill__desc { display: none; }
  .hu-panel .pill { height: 40px; }
  .pill-desc-mobile { margin-top: .9rem; color: var(--ink-2); }
  .pill-desc-mobile:empty { display: none; }
  .seg { width: 100%; }
  .spec__sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layouts__grid { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 4 / 6.2; }
  .ep-anchor { left: 6%; top: 38%; width: 66%; }
  .phone { right: 6%; top: auto; bottom: 8%; translate: none; width: 46%; }
  .stage__foot { padding-right: 52%; }
  .stage__bar { flex-wrap: wrap; align-items: flex-start; }
  .stage__facts { text-align: left; flex-basis: 100%; }
  .plate { font-size: 3cqi; padding: 6% 7%; }
  .plate--answers { font-size: 2.6cqi; }
  .plate__thumb { width: 40%; }
  .lane { font-size: 3.4cqi; }
  .flag b { font-size: 2.8cqi; }
  .dock { left: auto; right: 6%; top: auto; bottom: 14%; translate: none; justify-items: end; }
  .portal { top: 25%; bottom: 13%; left: 4%; right: 4%; font-size: 2.7cqi; }
  .portal__body { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); overflow: hidden; gap: 2.4cqi; padding: 2.4cqi; }
  .portal__media, .portal__side { min-width: 0; }
  .portal__banner { margin: 2.4cqi 2.4cqi 0; }
  .portal__answers .answers li { padding: .3em 0; }
  .verdict { grid-template-columns: 1fr; }
  .portal__list { display: none; }
  .portal__banner-note { display: none; }
  .sealed { width: 84%; font-size: 3.6cqi; }
  .audit { font-size: 3.4cqi; }
  .audit-gate { top: 14%; }
  .break__chips { gap: .4rem; }
  .field-row { grid-template-columns: 1fr; }
  .facts { gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__cta { margin-left: 0; }
  .footer__row--fine { flex-direction: column; align-items: flex-start; gap: .5rem; }
}
@media (min-width: 601px) { .pill-desc-mobile { display: none; } }

/* ---------- 17. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  :root { --dur-detent: 0ms; --dur-m: 0ms; --dur-l: 0ms; --dur-xl: 0ms; }
  html { scroll-behavior: auto; }
  .btn__icon svg, .seg__thumb, .timeline__ring, .timeline__fill, .pill__desc, .pill__icon, .icon-btn svg, .nav__links a::after, .timeline__node, .you-tag { transition-duration: 0s !important; }
}
