/* Landing v4: "Caught in the act" (C5). Loaded after style.css on the landing page only.
   One sticky 3D stage (a hacker at his desk, seen over his shoulder) behind the hero and 8 chapters; all copy is DOM text over it.
   Tiers: live canvas (html.js + .stage.is-live) · posters (html.is-posters) · no JS (landing3d-nojs.css, via <noscript>).
   Strict CSP: no inline styles; JS only sets custom properties / transforms through CSSOM. */

/* ================================================================ audience switch: one page, two sides */
html[data-aud="builder"] [data-show="client"],
html[data-aud="client"] [data-show="builder"],
html:not([data-aud]) [data-show="client"] { display: none !important; }

.l3d { --gutter: max(24px, (100vw - var(--wrap)) / 2); }
.l3d .topbar { background: rgba(7, 9, 12, .86); border-bottom-color: rgba(37, 48, 64, .7); }
.l3d .nav { gap: 20px; }
.l3d .nav-cta { gap: 0; }
.nav-cta-x { white-space: pre; }
@media (max-width: 1080px) { .nav-cta-x { display: none; } }

/* ================================================================ the stage */
.story { position: relative; }
.stage {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100lvh;
  margin-bottom: -100vh; margin-bottom: -100lvh;
  overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 90% at 70% 45%, #0B0F14 0%, var(--bg) 60%);
  contain: strict;
  opacity: calc(1 - var(--stage-out, 0));
}
.stage-posters { position: absolute; inset: 0; transition: opacity .7s var(--ease); }
.poster { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); }
.poster img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.poster.is-on { opacity: 1; }
/* only the hero poster loads up front; in the poster tier the current chapter's and its neighbours' load */
.poster:not([data-i="0"]) { display: none; }
.is-posters .poster.is-on, .is-posters .poster.is-near { display: block; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s var(--ease); }
.stage.is-live .stage-canvas { opacity: 1; }
.stage.is-live .stage-posters { opacity: 0; }

/* keeps copy readable over the scene: left column on wide screens, bottom sheet on phones */
.stage-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, .9) 0%, rgba(7, 9, 12, .78) calc(var(--gutter) + 360px), rgba(7, 9, 12, 0) calc(var(--gutter) + 640px)),
    linear-gradient(0deg, rgba(7, 9, 12, .85) 0%, rgba(7, 9, 12, 0) 22%),
    linear-gradient(180deg, rgba(7, 9, 12, .55) 0%, rgba(7, 9, 12, 0) 16%);
}
html[data-ch="0"] .stage-shade { background:
    linear-gradient(90deg, rgba(7, 9, 12, .82) 0%, rgba(7, 9, 12, .6) calc(var(--gutter) + 420px), rgba(7, 9, 12, 0) calc(var(--gutter) + 700px)),
    linear-gradient(0deg, rgba(7, 9, 12, .7) 0%, rgba(7, 9, 12, 0) 18%); }

/* labels pinned to the scene (JS sets transform + opacity) */
.stage-labels { position: absolute; inset: 0; }
.stage-label { position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; will-change: transform, opacity; }
.node-label {
  translate: 0 -100%;
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px;
  font: 500 13px/1 var(--font-mono); color: var(--text);
  background: rgba(7, 9, 12, .72); border: 1px solid rgba(255, 210, 63, .45); border-radius: 999px;
}
.nl-tag { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--signal-ink); background: var(--signal); padding: 3px 6px; border-radius: 999px; }
.nl-name { max-width: 34ch; overflow: hidden; text-overflow: ellipsis; }
.node-label .nl-ex, .node-label .nl-demo { display: none; }
.node-label[data-mode="example"] .nl-ex, .node-label[data-mode="example"] .nl-demo { display: inline; }
.node-label[data-mode="example"] .nl-live, .node-label[data-mode="example"] .nl-yours { display: none; }
.node-label[data-mode="example"] { border-color: var(--border-strong); }
.nl-ex { color: var(--text) !important; background: var(--raised) !important; border: 1px solid var(--border-strong); }
.dl-ex { grid-column: 1 / -1; font-style: normal; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.door-label {
  translate: 26px -50%;
  display: inline-grid; grid-template-columns: auto auto; gap: 2px 8px; align-items: baseline; padding: 7px 10px;
  font: 500 12px/1.2 var(--font-mono); color: var(--text-2);
  background: rgba(7, 9, 12, .8); border: 1px solid var(--border); border-radius: var(--r-md);
}
.door-label[data-side="l"] { translate: calc(-100% - 26px) -50%; }
.door-label[data-side="t"] { translate: -50% calc(-100% - 30px); }
.door-label[data-side="b"] { translate: -50% 30px; }
.door-label b { color: var(--text); font-weight: 600; font-size: 13px; }
.dl-what { color: var(--muted); }
.dl-what::before { content: "→ "; color: var(--faint); }
.dl-s { grid-column: 1 / -1; font-style: normal; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.dl-s::before { content: "untested"; }
.door-label[data-state="probing"] { border-color: var(--crit-line); }
.door-label[data-state="probing"] .dl-s { color: var(--crit); }
.door-label[data-state="probing"] .dl-s::before { content: "■ hackers trying"; }
.door-label[data-state="open"] { border-color: var(--crit-line); background: rgba(48, 26, 33, .85); }
.door-label[data-state="open"] .dl-s { color: var(--crit); }
.door-label[data-state="open"] .dl-s::before { content: "■ open"; }
.door-label[data-label="door-git"][data-state="open"] { border-color: var(--high-line); background: rgba(48, 35, 28, .85); }
.door-label[data-label="door-git"][data-state="open"] .dl-s { color: var(--high); }
.door-label[data-state="flagged"] { border-color: rgba(255, 210, 63, .5); }
.door-label[data-state="flagged"] .dl-s { color: var(--signal); }
.door-label[data-state="flagged"] .dl-s::before { content: "! found by our check"; }
.door-label[data-state="closed"] { border-color: var(--pass-line); }
.door-label[data-state="closed"] .dl-s { color: var(--pass); }
.door-label[data-state="closed"] .dl-s::before { content: "✓ locked · 404"; }
.door-label[data-state="fixed"] { border-color: var(--pass-line); background: rgba(21, 45, 39, .85); }
.door-label[data-state="fixed"] .dl-s { color: var(--pass); }
.door-label[data-state="fixed"] .dl-s::before { content: "✓ fixed"; }
.door-label[data-state="untested"] { border-color: var(--border-strong); }
.door-label[data-state="untested"] .dl-s { color: var(--text-2); }
.door-label[data-state="untested"] .dl-s::before { content: "deep check only"; }
.app-label { translate: -50% calc(-100% - 6px); padding: 4px 9px; font: 500 12px/1 var(--font-mono); color: var(--text); background: rgba(7, 9, 12, .78); border: 1px solid var(--border-strong); border-radius: 999px; }
.app-label--client { border-color: rgba(255, 210, 63, .5); }
.app-label--received { border-color: var(--low-line); }
.stage-debug { position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 6px 8px; font: 11px var(--font-mono); color: var(--pass); background: rgba(0, 0, 0, .6); }

/* poster tier / before the canvas is live: only the hero's app label, at the poster's spot */
.is-posters .stage-label { opacity: 0 !important; transform: none !important; }
html.is-posters[data-ch="0"] .node-label, html.is-posters[data-ch="8"] .node-label,
html.js .stage:not(.is-live) .node-label { opacity: 1 !important; left: 54%; top: 41%; transform: none !important; }
html.is-posters[data-ch="8"] .node-label { left: 44%; top: 31%; }
html.js:not([data-ch="0"]) .stage:not(.is-live) .node-label { opacity: 0 !important; }

/* ================================================================ hero */
.hero { position: relative; z-index: 1; min-height: calc(100vh - 61px); min-height: calc(100svh - 61px); display: flex; flex-direction: column; justify-content: center; padding: 36px 0 76px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero-main { min-width: 0; display: flex; flex-direction: column; }
.hero-main > .aud { order: -2; align-self: flex-start; }
.hero-main > .hero-slot { order: -1; }
.hero-slot { display: none; }
.hero h1 { font-size: clamp(2.5rem, 1.3rem + 3.5vw, 4.5rem); line-height: 1.0; letter-spacing: -0.045em; margin: 0 0 20px; color: var(--text); font-weight: 650; }
.hero h1 em { font-style: normal; color: var(--text); }
.hero h1 em::after { content: ""; display: inline-block; width: .07em; height: .78em; margin-left: .06em; vertical-align: -.04em; background: var(--signal); animation: blink 1.1s steps(1) infinite; }
.hero .lead { max-width: 33em; margin-bottom: 22px; font-size: clamp(16.5px, 1.1vw + 4px, 19px); color: var(--text-2); }
.hero-eyebrow { margin-bottom: 14px; }

.aud { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 22px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: rgba(14, 18, 23, .8); }
.aud-btn { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 600 14px/1 var(--font-sans); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.aud-btn:hover { color: var(--text); }
.aud-btn[aria-checked="true"] { background: var(--text); color: var(--signal-ink); }
.aud-btn:focus-visible { box-shadow: var(--focus); border-radius: 999px; }

.l3d .wizard { max-width: 600px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 210, 63, .06); }
.l3d .wizard[data-step="1"] { border-color: rgba(255, 210, 63, .55); }
.l3d .url-row .btn-xl { padding: 0 20px; }
.url-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.url-note b { color: var(--text); font-weight: 600; }
.hero-foot { margin: 14px 0 0; max-width: 600px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hero-switch { color: var(--text); font-weight: 500; text-decoration-color: rgba(255, 210, 63, .6); }
.hero-watch { margin: 12px 0 0; }
.hero-watch[hidden] { display: none; }
.watch-btn { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 4px; border: 0; background: none; color: var(--text); font: 500 15px/1 var(--font-sans); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255, 210, 63, .6); text-underline-offset: 4px; }
.watch-btn i { width: 26px; height: 26px; border-radius: 50%; background: var(--signal); position: relative; flex: none; }
.watch-btn i::after { content: ""; position: absolute; left: 10px; top: 8px; border-left: 8px solid var(--signal-ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.watch-btn:focus-visible { box-shadow: var(--focus); border-radius: var(--r-sm); }
.video-dialog { width: min(960px, 100% - 32px); padding: 0; border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--surface); color: var(--text); }
.video-dialog::backdrop { background: rgba(7, 9, 12, .82); }
.video-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--border); }
.video-dialog-bar h2 { margin: 0; font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.video-dialog-bar form { margin: 0; }
.video-close { width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-md); background: transparent; color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.video-close:hover { background: var(--raised); }
.video-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.l3d .trust { margin-top: 12px; }
/* small mono text on this page: one step brighter than --faint so it passes WCAG AA */
.l3d .wiz-progress li[data-state="todo"] .wiz-step, .l3d .plan li.no, .l3d .plan li.no::before, .l3d .footer-scope { color: #7D8A9B; }

/* simulated bot log */
.ticker { align-self: start; justify-self: end; width: min(410px, 100%); padding: 14px 16px 12px; background: rgba(10, 13, 17, .82); border: 1px solid var(--border); border-radius: var(--r-lg); }
.ticker-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 500 11px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--crit); flex: none; box-shadow: 0 0 0 3px rgba(255, 77, 94, .18); }
.ticker-sim { margin-left: auto; padding: 2px 6px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); color: var(--text-2); }
.ticker-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font: 400 12.5px/1.5 var(--font-mono); min-height: calc(4 * 1.5em + 12px); }
.ticker-list li { display: grid; grid-template-columns: 8ch 3.5ch minmax(0, 1fr); gap: 8px; align-items: baseline; min-width: 0; }
.ticker-list li.is-new { animation: tk-in .5s var(--ease) both; }
@keyframes tk-in { from { opacity: 0; transform: translateY(6px); } }
.tk-t { color: #7D8A9B; }
.tk-m { color: var(--crit); font-weight: 500; }
.tk-p { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-p [data-domain] { color: var(--text); }
.ticker-src { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.scroll-cue { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-cue i { width: 1px; height: 28px; background: linear-gradient(var(--signal), transparent); }
.scroll-cue:hover { color: var(--text); }

/* footnote markers + source links */
.fn { margin-left: 2px; vertical-align: super; font: 500 10px/1 var(--font-mono); color: var(--muted); text-decoration: none; }
.fn:hover, .fn:focus-visible { color: var(--text); text-decoration: underline; }
.src { font: 500 11.5px/1.4 var(--font-mono); color: var(--muted); text-decoration-color: var(--border-strong); white-space: nowrap; }
.src:hover { color: var(--text); }

/* ================================================================ chapters */
.chapter { position: relative; z-index: 1; }
.chapter--hold { min-height: 150vh; }
.chapter--hold .ch-inner { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 84px 0 56px; }
.chapter--hold .ch-inner > .wrap { width: min(var(--wrap), 100% - 48px); }
.chapter--flow .ch-inner { padding: 24vh 0 14vh; }
#ch-launch { min-height: 140vh; }
#checks { min-height: 200vh; }
#ch-damage { min-height: 160vh; }
#ch-cta { min-height: 130vh; }
.ch-copy { max-width: 480px; position: relative; }
.ch-n { margin: 0 0 18px; font: 500 11.5px/1 var(--font-mono); letter-spacing: .18em; color: #7D8A9B; }
.ch-n::after { content: ""; display: inline-block; width: 40px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--border-strong); }
.ch-title { font-size: clamp(2.05rem, 1.15rem + 2.5vw, 3.35rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 20px; }
.ch-title--xl { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.4rem); }
.ch-title .w { display: inline-block; }
.ch-body { font-size: 18px; line-height: 1.55; color: var(--text-2); margin: 0 0 26px; max-width: 30em; }
.ch-body b { color: var(--text); }
.ch-small { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.ch-small b { color: var(--text-2); }
.ch-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 0 0 30px; }
.ch-alt { font-weight: 600; color: var(--text); text-decoration-color: rgba(255, 210, 63, .6); min-height: var(--tap); display: inline-flex; align-items: center; }
.ch-fig { display: none; margin: 0; }
.example-note { display: flex; align-items: center; gap: 10px; margin: -10px 0 18px; font-size: 14px; color: var(--text-2); }
.ex-tag { flex: none; padding: 3px 7px; font: 600 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); background: var(--raised); border: 1px solid var(--border-strong); border-radius: 999px; }

.stat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: baseline; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--border); }
.stat-n { font: 600 34px/1 var(--font-mono); letter-spacing: -0.05em; color: var(--text); white-space: nowrap; }
.stat-t { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.stat-t b { color: var(--text); }
.stat--sm { display: block; padding-top: 12px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.stats li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.stats .stat-n { font-size: 24px; color: var(--text); }

/* chapter 3: the doors, as a list (phones + posters + no JS; the 3D labels them on wide screens) */
.doors { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.doors li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-left: 2px solid var(--crit); border-radius: var(--r-md); background: rgba(14, 18, 23, .85); font: 500 13px/1.3 var(--font-mono); }
.doors li[data-sev="high"] { border-left-color: var(--high); }
.doors li[data-sev="pass"] { border-left-color: var(--slate, var(--border-strong)); }
.doors b { color: var(--text); font-weight: 600; }
.doors span { color: var(--muted); }
@media (min-width: 761px) and (min-aspect-ratio: 1/1) { html.js:not(.is-posters) .chapter--doors .doors { display: none; } }

/* chapter 5: the sample report */
.report { margin-top: 6px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 80px -40px #000; }
.report-band { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px dashed var(--border); font: 500 11px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.report-host { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.report-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 20px 18px 6px 24px; }
.report .stamp { width: 88px; }
.report .stamp__letter { font-size: 48px; }
.report .stamp__label { font-size: 8.5px; }
.report-verdict { margin: 0 0 12px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.report-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--border); }
.report-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.rl-t { font-size: 14.5px; font-weight: 500; color: var(--text); }
.rl-e { grid-column: 2; justify-self: start; font-size: 11.5px; color: var(--muted); background: var(--inset); }
.report-note { margin: 0; padding: 10px 16px; font-size: 12.5px; color: var(--muted); }
.rl-untested .rl-t { color: var(--text-2); font-weight: 400; }

/* chapter 6 */
.grade-move { display: flex; align-items: center; gap: 12px; margin: -6px 0 22px; }
.gm { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid; border-radius: var(--r-md); font: 700 24px/1 var(--font-mono); }
.gm--d { color: var(--grade-d); border-color: var(--high-line); }
.gm--b { color: var(--grade-b); border-color: #4C6A2C; }
.gm-arrow { width: 44px; height: 1px; background: linear-gradient(90deg, var(--high), var(--grade-b)); position: relative; }
.gm-arrow::after { content: ""; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 6px solid var(--grade-b); border-right: 0; }
.gm-t { font: 500 12px/1.3 var(--font-mono); letter-spacing: .06em; color: var(--muted); }
.l3d .prompt-body { max-height: 360px; font-size: 12.5px; }

/* chapter 7: two doors out */
.sides { display: flex; flex-direction: column; gap: 16px; }
.side { padding: 24px; background: rgba(14, 18, 23, .94); border: 1px solid var(--border); border-radius: var(--r-lg); }
.side .eyebrow { margin-bottom: 12px; }
.side-t { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 10px; }
.side > p { color: var(--text-2); font-size: 15.5px; }
.side .fine { margin: 12px 0 16px; }
.side .stat--sm { border-top: 1px solid var(--border); margin: 0 0 18px; }
html[data-aud="client"] .side--client { order: -1; border-color: rgba(255, 210, 63, .5); }
html[data-aud="builder"] .side--builder { border-color: rgba(255, 210, 63, .32); }
.seal-card { display: flex; align-items: center; gap: 16px; margin: 6px 0 0; padding: 14px; border: 1px dashed var(--pass-line); border-radius: var(--r-md); background: var(--inset); }
.seal-ring { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--signal);
  background: repeating-conic-gradient(from -2deg, var(--pass) 0 4deg, transparent 4deg 15deg); -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%, #000 78%, transparent 80%); mask: radial-gradient(circle, transparent 58%, #000 60%, #000 78%, transparent 80%); }
.seal-txt { display: grid; gap: 4px; }
.seal-txt b { font-size: 16px; }
.seal-txt > span { font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pass); }

/* ================================================================ scroll reveals (typography arrives with the scene) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html.js:not(.motion-paused) .chapter { view-timeline-name: --ch; view-timeline-axis: block; }
    html.js:not(.motion-paused) .ch-title .w {
      animation: rv-word linear both; animation-timeline: --ch;
      animation-range: cover calc(var(--rv, 40vh) + var(--i) * 2.2vh) cover calc(var(--rv, 40vh) + 22vh + var(--i) * 2.2vh);
    }
    html.js:not(.motion-paused) .chapter .eyebrow,
    html.js:not(.motion-paused) .chapter .ch-n,
    html.js:not(.motion-paused) .ch-body,
    html.js:not(.motion-paused) .chapter .stat,
    html.js:not(.motion-paused) .stats li,
    html.js:not(.motion-paused) .doors li,
    html.js:not(.motion-paused) .grade-move {
      animation: rv-up linear both; animation-timeline: --ch;
      animation-range: cover calc(var(--rv, 40vh) + 10vh) cover calc(var(--rv, 40vh) + 34vh);
    }
    html.js:not(.motion-paused) .chapter .stat, html.js:not(.motion-paused) .stats li, html.js:not(.motion-paused) .doors li { animation-range: cover calc(var(--rv, 40vh) + 18vh) cover calc(var(--rv, 40vh) + 44vh); }
    html.js:not(.motion-paused) .rv-card { animation: rv-card linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .chapter--flow { --rv: 18vh; }
  }
  html.no-sda.js:not(.motion-paused) .ch-title .w { opacity: 0; filter: blur(6px); transform: translateY(.3em); transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 55ms); }
  html.no-sda.js:not(.motion-paused) .chapter.is-in .ch-title .w { opacity: 1; filter: none; transform: none; }
  html.no-sda.js:not(.motion-paused) .chapter .ch-body, html.no-sda.js:not(.motion-paused) .chapter .stat { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease) .25s, transform .8s var(--ease) .25s; }
  html.no-sda.js:not(.motion-paused) .chapter.is-in .ch-body, html.no-sda.js:not(.motion-paused) .chapter.is-in .stat { opacity: 1; transform: none; }
}
@keyframes rv-word { from { opacity: 0; filter: blur(7px); transform: translateY(.32em); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes rv-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rv-card { from { opacity: 0; transform: translateY(40px) scale(.985); } to { opacity: 1; transform: none; } }

/* ================================================================ orientation: rail (wide) + line (phones) */
.rail, .story-ctl { position: fixed; z-index: 15; opacity: 0; visibility: hidden; transition: opacity var(--t-med), visibility var(--t-med); }
.rail { left: 22px; top: 50%; translate: 0 -50%; }
.story-ctl { right: 22px; bottom: 18px; display: flex; align-items: center; gap: 14px; }
html.in-story .rail, html.in-story .story-ctl { opacity: 1; visibility: visible; }
.rail ol { list-style: none; margin: 0; padding: 0 0 0 1px; display: grid; gap: 2px; position: relative; }
.rail ol::before, .rail ol::after { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 1px; background: var(--border); }
.rail ol::after { background: var(--signal); transform-origin: top; transform: scaleY(var(--story, 0)); }
.rail a[data-rail] { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 24px; padding: 0; color: var(--faint); text-decoration: none; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.rail a[data-rail]::before { content: ""; width: 7px; height: 7px; margin-left: 3px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border-strong); flex: none; transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.rail a[data-rail] span { opacity: 0; transform: translateX(-4px); transition: opacity var(--t-fast), transform var(--t-fast); background: rgba(7, 9, 12, .85); padding: 4px 6px; border-radius: var(--r-sm); }
.rail a[data-rail] span { position: absolute; left: 22px; pointer-events: none; color: var(--text); }
.rail a[data-rail]:hover span, .rail a[data-rail]:focus-visible span { opacity: 1; transform: none; }
.rail a[aria-current] { color: var(--text); }
.rail a[aria-current]::before { background: var(--signal); border-color: var(--signal); transform: scale(1.25); }
.rail-skip, .motion-toggle { font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.rail-skip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 999px; background: rgba(7, 9, 12, .7); }
.rail-skip:hover { color: var(--text); }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(7, 9, 12, .85); cursor: pointer; }
.motion-toggle:hover { color: var(--text); border-color: var(--text-2); }
.motion-toggle i { width: 8px; height: 9px; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.motion-toggle[aria-pressed="true"] i { width: 0; height: 0; border: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.motion-reduced .motion-toggle { display: none; }
.story-line { display: none; }
@media (max-width: 1279px) {
  .rail { display: none; }
  .story-ctl { right: 12px; bottom: auto; top: 72px; }
  .motion-toggle { width: 40px; height: 40px; min-height: 0; padding: 0; justify-content: center; }
  .motion-toggle .mt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rail-skip { display: none; }
  .story-line { display: block; position: fixed; left: 0; right: 0; top: 60px; z-index: 21; height: 2px; opacity: 0; transition: opacity var(--t-med); }
  html.in-story .story-line { opacity: 1; }
  .story-line i { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--story, 0)); }
}

/* ================================================================ sticky CTA (phones) */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25;
    padding: 8px 8px 8px 14px; background: rgba(14, 18, 23, .96); border: 1px solid var(--border-strong); border-radius: 14px;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .9);
    transform: translateY(calc(100% + 24px)); transition: transform .35s var(--ease); visibility: hidden;
  }
  .sticky-cta.is-on { transform: none; visibility: visible; }
  .sticky-cta p { margin: 0; flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.3; color: var(--text-2); }
  .sticky-cta .btn { flex: none; min-height: 46px; padding: 0 16px; }
}

/* ================================================================ pricing, faq, sources (re-skinned) */
.l3d .section { position: relative; z-index: 2; background: var(--bg); }
.plans--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: none; }
.plans--4 .plan { padding: 24px 22px; }
.plans--4 .price { font-size: 40px; }
.plans--4 .plan-tag { font-size: 15.5px; line-height: 1.4; }
.plans--4 .plan ul { margin: 18px 0 24px; }
.plans--4 .plan li { font-size: 14.5px; }
.plan--fix { border-color: var(--low-line); }
.plan--fix .price { font-size: 32px; }
.plan--fix .plan-tag { flex: 1; margin-bottom: 24px; font-weight: 500; color: var(--text-2); }
.client-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-top: 20px; padding: 20px 24px; border-color: var(--low-line); }
.client-strip .plan-k { margin-bottom: 6px; }
.client-strip-t { margin: 0; color: var(--text-2); font-size: 16px; }
.client-strip-t b { color: var(--text); }
.pricing-fine { margin-top: 18px; max-width: 60em; }
.l3d .faq { display: flex; flex-direction: column; }
html[data-aud="client"] .faq > [data-faq="client"] { order: -1; border-color: rgba(255, 210, 63, .45); }
.sources { padding: 56px 0 72px; }
.fn-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; max-width: 64em; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.fn-list li::marker { font-family: var(--font-mono); color: var(--faint); }
.fn-list a { color: var(--text-2); }
.fn-list li:target { color: var(--text); }
.fn-list li:target::marker { color: var(--signal); }
.l3d .footer { position: relative; z-index: 2; }

/* ================================================================ phones / narrow */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ticker { justify-self: start; width: 100%; max-width: 600px; }
  .plans--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
}
@media (max-width: 760px) {
  .l3d { --gutter: 16px; }
  .node-label { font-size: 11.5px; padding: 4px 8px 4px 5px; gap: 6px; }
  .nl-tag { font-size: 9px; padding: 2px 5px; }
  .nl-name { max-width: 22ch; }

  .hero { min-height: 0; padding: 10px 0 40px; justify-content: flex-start; }
  .aud { margin-bottom: 0; }
  .aud-btn { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
  .hero-eyebrow { display: none; }
  .hero h1 { font-size: 32px; letter-spacing: -0.04em; line-height: 1.04; margin-bottom: 10px; }
  .hero .lead { font-size: 15.5px; line-height: 1.45; margin-bottom: 14px; }
  .url-note { font-size: 12.5px; margin-top: 10px; }
  .url-note-x { display: block; }
  .hero-foot { font-size: 13px; }
  .l3d .trust { gap: 0 12px; }
  .l3d .trust li { font-size: 10px; }
  .l3d .trust a { min-height: 24px; }
  .ticker { padding: 12px 12px 10px; }
  .ticker-list { font-size: 11.5px; min-height: 0; }
  .ticker-list li:nth-child(n+4) { display: none; }
  .ticker-list li { grid-template-columns: 8ch minmax(0, 1fr); }
  .tk-m { display: none; }
  .ticker-head { font-size: 10px; }
  .l3d .nav { gap: 10px; }
  .nav a.nav-signin { white-space: nowrap; font-size: 14px; }
  .scroll-cue { display: none; }

  .ch-n { margin-bottom: 12px; font-size: 10.5px; }
  .ch-title { font-size: 30px; margin-bottom: 12px; }
  .ch-title--xl { font-size: 36px; }
  .ch-body { font-size: 16px; margin-bottom: 16px; }
  .stat { padding-top: 12px; gap: 2px 12px; }
  .stat-n { font-size: 26px; }
  .stat-t { font-size: 13.5px; }
  .stats li { padding: 10px 0; background: rgba(7, 9, 12, .7); }
  .stats .stat-n { font-size: 19px; }
  .doors { margin-bottom: 14px; gap: 6px; }
  .doors li { flex-direction: row; flex-wrap: wrap; gap: 0 6px; padding: 7px 9px; font-size: 11.5px; }
  .ch-cta { margin-bottom: 22px; }
  .ch-cta .btn { width: 100%; }
  .report-top { gap: 16px; padding: 16px 14px 4px 18px; }
  .report .stamp { width: 72px; }
  .report .stamp__letter { font-size: 38px; }
  .report-verdict { font-size: 15.5px; }
  .report-list li { padding: 10px 14px; }
  .rl-t { font-size: 14px; }
  .side { padding: 18px; }
  .chapter--flow .ch-copy > .eyebrow, .chapter--flow .ch-title, .chapter--flow .ch-body, .chapter--flow .grade-move, .chapter--flow .ch-n { position: relative; }
  .client-strip { padding: 18px; }
  .plans--4 { grid-template-columns: minmax(0, 1fr); }
  .plans--4 .plan .btn { align-self: stretch; }
  .client-strip .btn { width: 100%; }
}
/* portrait screens (phones and tablets), where the camera uses the tall framing: the copy becomes a sheet
   at the bottom and the scene plays above it. Must match TALL in scene.js. */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .stage-shade { background: linear-gradient(0deg, rgba(7, 9, 12, .97) 0%, rgba(7, 9, 12, .9) 34%, rgba(7, 9, 12, 0) 60%), linear-gradient(180deg, rgba(7, 9, 12, .5) 0%, rgba(7, 9, 12, 0) 14%); }
  html[data-ch="0"] .stage-shade { background: linear-gradient(180deg, rgba(7, 9, 12, 0) 0%, rgba(7, 9, 12, 0) 24%, rgba(7, 9, 12, .78) 40%, rgba(7, 9, 12, .93) 100%); }
  /* the long chapters (5–7) scroll their cards over the scene: calm it down behind them */
  html[data-ch="5"] .stage-shade, html[data-ch="6"] .stage-shade, html[data-ch="7"] .stage-shade { background: linear-gradient(0deg, rgba(7, 9, 12, .97) 0%, rgba(7, 9, 12, .9) 34%, rgba(7, 9, 12, .5) 60%), linear-gradient(180deg, rgba(7, 9, 12, .5) 0%, rgba(7, 9, 12, 0) 14%); }
  /* phones: the poster shows the address on the screen itself; the floating label would cover the hero */
  html.js .stage:not(.is-live) .node-label, html.is-posters .node-label { opacity: 0 !important; }
  .poster img { object-position: 50% 0; }
  .hero-slot { display: block; height: clamp(140px, calc(100svh - 552px), 250px); margin-top: 4px; }
  .chapter--hold { min-height: 125vh; }
  #ch-launch { min-height: 115vh; }
  #checks { min-height: 160vh; }
  #ch-damage { min-height: 0; }
  #ch-cta { min-height: 110vh; }
  /* the copy sheet enters with its chapter and stays pinned to the bottom while the scene plays above it */
  .chapter--hold { display: flex; flex-direction: column; justify-content: flex-end; }
  .chapter--hold .ch-inner { position: sticky; top: auto; bottom: 0; min-height: 0; display: block; padding: 28px 0 calc(88px + env(safe-area-inset-bottom)); }
  #ch-damage .ch-inner { position: static; min-height: 0; padding: 40vh 0 8vh; }
  .chapter--flow .ch-inner { padding: 40vh 0 8vh; }
  .ch-copy { max-width: none; }
  .ch-copy > .eyebrow, .ch-title, .ch-body { text-shadow: 0 1px 14px rgba(7, 9, 12, .95); }
  .ch-copy { max-width: 640px; }
  .chapter--hold .ch-copy, .chapter--flow .ch-copy { isolation: isolate; }
  .chapter--hold .ch-copy::before { content: ""; position: absolute; z-index: -1; inset: -56px -16px -24px; background: linear-gradient(180deg, rgba(7, 9, 12, 0) 0, rgba(7, 9, 12, .82) 56px, rgba(7, 9, 12, .9) 100%); pointer-events: none; }
}
@media (max-width: 760px) {
  .ch-copy { max-width: none; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 31px; }
  .ch-title { font-size: 27px; }
}

/* reduced motion: nothing moves (style.css also neutralises animations) */
@media (prefers-reduced-motion: reduce) {
  .hero h1 em::after { animation: none; }
  .poster, .stage-canvas, .stage-posters { transition-duration: .15s !important; }
}
.motion-paused .hero h1 em::after, .motion-paused .ticker-list li.is-new { animation: none; }


/* chapter 8 can carry the visitor's own domain ("Now check … for real →"): let it wrap */
.ch-cta .btn[data-final-cta] { white-space: normal; height: auto; min-height: 56px; padding-block: 12px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
/* two narrow columns (small laptops, landscape tablets): the simulated log would sit on the app */
@media (min-width: 981px) and (max-width: 1180px) { .ticker { display: none; } }

/* copy v2 bits */
.url-help { margin: 10px 0 0; font-size: 14px; color: var(--text-2); }
.ch-tech { display: block; margin-top: 6px; font: 500 12.5px/1.4 var(--font-mono); color: var(--muted); }
.scope { margin: 0 0 18px; display: grid; gap: 0; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: rgba(14, 18, 23, .92); }
.scope > div { display: grid; grid-template-columns: 12.5ch minmax(0, 1fr); gap: 4px 14px; padding: 10px 14px; }
.scope > div + div { border-top: 1px solid var(--border); }
.scope dt { font: 600 12.5px/1.4 var(--font-mono); color: var(--text); }
.dt-price { display: block; color: var(--signal); font-weight: 500; }
.scope dd { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.stats-lead .stat-n { font-size: 30px; }
.prompt-head { max-height: none; overflow: visible; padding-bottom: 8px; }
.prompt-more { border-top: 1px solid var(--border); }
.prompt-more > summary { display: flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 16px; cursor: pointer; list-style: none; font: 500 13px var(--font-mono); letter-spacing: .04em; color: var(--text); background: var(--surface); }
.prompt-more > summary::-webkit-details-marker { display: none; }
.prompt-more > summary::before { content: "+"; color: var(--signal); font-size: 16px; }
.prompt-more[open] > summary::before { content: "–"; }
.prompt-more > summary:focus-visible { box-shadow: inset var(--focus); }
.prompt-more > .prompt-body { padding-top: 12px; }
@media (max-width: 760px) {
  .scope > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .scope dd { font-size: 13.5px; }
  .aud-btn { padding: 0 11px; font-size: 13px; }
}
@media (max-width: 380px) { .aud-btn { padding: 0 9px; font-size: 12.5px; } }
