@font-face { font-family: "Inter"; src: url("../fonts/Inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Tokens: dark is the default tone, light is the alternate. The .paper band takes the opposite tone. */
:root,
:root[data-theme="light"] .paper,
:root[data-theme="light"] .paper-lite {
  --bg: #000;
  --bg-2: #0a0a0b;
  --surface: #0b0b0c;
  --surface-2: #121214;
  --ink: #f0f0f0;
  --ink-2: #a1a4a8;
  --muted: #6b6f76;
  --line: rgb(255 255 255 / 8%);
  --line-2: rgb(255 255 255 / 14%);
  --guide: rgb(255 255 255 / 4%);
  --accent: #f0f0f0;
  --accent-ink: #000;
  --accent-soft: rgb(255 255 255 / 7%);
  --hl: #93b2ff;
  --signal: #ff7b47;
  --signal-soft: rgb(255 123 71 / 15%);
  --high: #ffb547;
  --high-soft: rgb(255 181 71 / 13%);
  --yes: #3ee6b8;
  --part: #ffb547;
  --no: #5b6375;
  --code-bg: rgb(255 255 255 / 6%);
  --plane: rgb(255 255 255 / 2.5%);
  --plane-line: rgb(255 255 255 / 24%);
  --plane-grid: rgb(255 255 255 / 5%);
  --slab-l: rgb(255 255 255 / 5%);
  --slab-r: rgb(255 255 255 / 2.5%);
  --shadow: 0 40px 90px -40px rgb(0 0 0 / 90%), 0 0 0 1px rgb(255 255 255 / 5%);
  color-scheme: dark;
}

:root[data-theme="light"],
:root:not([data-theme="light"]) .paper,
:root:not([data-theme="light"]) .paper-lite {
  --bg: #fff;
  --bg-2: #eceef2;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --ink: #070a12;
  --ink-2: #3b4353;
  --muted: #6a7385;
  --line: rgb(7 10 18 / 9%);
  --line-2: rgb(7 10 18 / 16%);
  --guide: rgb(7 10 18 / 5%);
  --accent: #0b0b0c;
  --accent-ink: #ffffff;
  --accent-soft: rgb(0 0 0 / 5%);
  --hl: #3451d1;
  --signal: #c43f0a;
  --signal-soft: rgb(196 63 10 / 10%);
  --high: #9a5800;
  --high-soft: rgb(154 88 0 / 10%);
  --yes: #078a6b;
  --part: #9a5800;
  --no: #a1a9b8;
  --code-bg: rgb(7 10 18 / 5.5%);
  --plane: rgb(7 10 18 / 2.5%);
  --plane-line: rgb(7 10 18 / 30%);
  --plane-grid: rgb(7 10 18 / 6%);
  --slab-l: rgb(7 10 18 / 7%);
  --slab-r: rgb(7 10 18 / 4%);
  --shadow: 0 40px 80px -40px rgb(7 10 18 / 35%), 0 0 0 1px rgb(7 10 18 / 6%);
  color-scheme: light;
}

:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: 32px;
}
@media (max-width: 640px) { :root { --pad: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 4.1vw, 3.7rem); line-height: 1.04; letter-spacing: -0.042em; font-weight: 600; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.04; letter-spacing: -0.04em; }
h3 { font-size: 1.14rem; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
strong { color: var(--ink); font-weight: 600; }
code { font-family: var(--mono); font-size: 0.82em; background: var(--code-bg); padding: 0.12em 0.38em; border-radius: 4px; overflow-wrap: anywhere; color: var(--ink); }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(4 6 11 / 72%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; font-size: 1.02rem; }
.brand-mark { width: 24px; height: 24px; color: var(--accent); flex: none; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; font-weight: 450; transition: color 160ms ease; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; transition: color 160ms, border-color 160ms; }
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); }
.theme-toggle svg { width: 17px; height: 17px; }
.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }
@media (max-width: 1000px) { .nav { display: none; } .header-actions { margin-left: auto; } }
@media (max-width: 420px) { .brand span { font-size: 0.94rem; } .eyebrow { font-size: 0.62rem; letter-spacing: 0.04em; gap: 8px; padding: 6px 10px; } }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent;
  font-family: var(--font); font-size: 0.97rem; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color 240ms var(--ease-out), border-color 240ms var(--ease-out), transform 160ms ease;
}
.btn > span { display: inline-block; transition: translate 280ms var(--ease-out); }
.btn:hover > span { translate: 4px 0; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 380ms var(--ease-out); }
.btn-primary:hover { color: var(--bg); }
.btn-primary:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
@media (max-width: 420px) { .btn-sm { padding: 0 12px; } }
@media (forced-colors: active) { .btn-primary::before { display: none; } }

/* Story: hero and how-it-works share one sticky scene */
.story { position: relative; }
.story-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; }
.hero-copy { min-height: calc(100svh - 68px); display: flex; flex-direction: column; justify-content: center; padding: 48px 0 64px; }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 0.9rem; font-weight: 450; color: var(--muted); }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0.4; }
.hero-status { margin-top: 22px; font-size: 0.9rem; color: var(--muted); }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); margin-top: 26px; max-width: 28em; }
.sublead { font-size: 1rem; color: var(--ink-2); margin-top: 14px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-points { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: "+"; color: var(--accent); }

.steps-head { padding: 10vh 0 2vh; }
.label { font-size: 0.9rem; font-weight: 500; color: var(--accent); margin-bottom: 14px; }
.steps { list-style: none; margin: 0; padding: 0 0 18vh; }
.step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; transition: opacity 600ms var(--ease-out); }
.step-num { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.step h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.04em; line-height: 1.05; }
.step p { color: var(--ink-2); margin-top: 14px; max-width: 24em; font-size: 1.12rem; line-height: 1.5; }
.step-human .step-num { color: var(--accent); }
.mini { display: none; }

.story-stage { position: relative; }
.stage-sticky { position: sticky; top: 68px; height: calc(100svh - 68px); display: flex; flex-direction: column; justify-content: center; }
.scene-caption { margin-top: 12px; display: flex; justify-content: flex-end; align-items: center; gap: 16px; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.scene-toggle { white-space: nowrap; font: inherit; color: var(--ink-2); background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px; cursor: pointer; transition: color 160ms, border-color 160ms; }
.scene-toggle:hover { color: var(--ink); border-color: var(--ink-2); }

@media (min-width: 1001px) {
  .js .step h3, .js .step p, .js .step .step-num { transition: color 500ms var(--ease-out); }
  .js .step:not(.is-active) h3 { color: var(--muted); }
  .js .step:not(.is-active) p { color: color-mix(in srgb, var(--ink-2) 72%, var(--bg)); }
  .js .step:not(.is-active) .step-num { color: var(--muted); }
}

/* Scene */
.scene { position: relative; width: 100%; aspect-ratio: 640 / 600; --mx: 0; --my: 0; }
.scene-layers { position: absolute; inset: 0; }
.stack { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.layer, .node, .chip, .thread, .thread-pulse { transform: translate(calc(var(--mx) * var(--d, 2) * 2.2px), calc(var(--my) * var(--d, 2) * 1.6px)); transition: transform 120ms linear, translate 900ms var(--ease-io), opacity 500ms ease; }
.node-web { --d: 3; } .node-cms { --d: 2; } .node-server { --d: 1; }
.thread, .thread-pulse { --d: 2; }

.plane { fill: var(--plane); stroke: var(--plane-line); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke 600ms ease; }
.slab-l { fill: var(--slab-l); }
.slab-r { fill: var(--slab-r); }
.pl-grid { stroke: var(--plane-grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pl-detail { fill: none; stroke: var(--plane-line); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.7; }
.pl-fill { fill: var(--plane-line); opacity: 0.55; }
.pl-tile { fill: var(--plane-grid); stroke: var(--plane-line); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.6; }
.pl-hot { fill: var(--plane-grid); stroke: var(--plane-line); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill 500ms ease, stroke 500ms ease; }
.pl-text { font-family: var(--mono); font-size: 9px; fill: var(--muted); letter-spacing: 0.04em; }
.pl-name { font-family: var(--mono); font-size: 11.5px; fill: var(--ink-2); letter-spacing: 0.18em; }

.beam { stroke-width: 2; color: var(--signal); opacity: 0; transition: opacity 500ms ease; }
.node-ring { fill: none; stroke: var(--signal); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.node-dot { fill: var(--bg); stroke: var(--muted); stroke-width: 1.5; transition: fill 500ms ease, stroke 500ms ease; }
.thread { fill: none; stroke: url(#thread-grad); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.9; transition: stroke-dashoffset 1200ms var(--ease-io), opacity 600ms ease; }
.thread-pulse { fill: none; stroke: var(--hl); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.12 0.88; stroke-dashoffset: 1; opacity: 0; transition: opacity 400ms ease; }

.chip {
  position: absolute; margin: 0; right: calc(100% - 34.84% + 18px); translate: 0 -50%;
  font-family: var(--mono); font-size: 0.7rem; line-height: 1; white-space: nowrap;
  opacity: 0; transition: opacity 500ms ease, transform 120ms linear;
}
.chip-web { top: 23.5%; } .chip-cms { top: 44.83%; } .chip-server { top: 78.5%; }
.chip { transition: opacity 500ms ease, transform 120ms linear, translate 900ms var(--ease-io); }
.chip > span { display: inline-block; padding: 6px 9px; border-radius: 3px; border: 1px solid; }
.chip-alert { color: var(--signal); background: var(--bg); border-color: rgb(255 123 71 / 35%); border-color: color-mix(in srgb, var(--signal) 40%, transparent); }
.chip-ok { display: none !important; color: var(--accent); background: var(--bg); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* Scene card */
.card {
  position: absolute; left: 46%; top: 4%; width: 54%;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--shadow);
  padding: 16px 16px 14px; font-size: 0.82rem; color: var(--ink-2);
  opacity: 0; scale: 0.94; translate: -14px 12px; transform-origin: 0 20%;
  transform: translate(calc(var(--mx) * 11px), calc(var(--my) * 8px));
  transition: opacity 600ms var(--ease-out), scale 700ms var(--ease-out), translate 700ms var(--ease-out), transform 120ms linear;
}
.card::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--signal); transition: background 500ms ease; }
.card-bar { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.card-time { margin-left: auto; }
.card-title { margin: 10px 0 2px; font-size: 1rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.card-label { font-family: var(--mono); font-size: 0.64rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 12px 0 6px; }
.card-text { line-height: 1.5; }
.card-text code { font-size: 0.78em; }
.card-evidence, .card-report { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 1px; font-family: var(--mono); font-size: 0.68rem; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.card-evidence li, .card-report li { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; padding: 6px 9px; background: var(--surface); color: var(--ink-2); }
.card-evidence span, .card-report span { color: var(--muted); }
.card-report em { font-style: normal; color: var(--accent); }
.card-buttons { display: flex; gap: 6px; margin-top: 10px; }
.fake-btn { position: relative; display: inline-grid; place-items: center; height: 28px; padding: 0 10px; border-radius: 2px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.fake-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.fake-btn-primary > span { grid-area: 1 / 1; transition: opacity 300ms ease; }
.fb-done { opacity: 0; }
.ai-tag { color: var(--accent); display: flex; align-items: center; gap: 7px; }
.ai-tag::before { content: ""; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); flex: none; }
.panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 700ms var(--ease-out), opacity 450ms ease; }
.panel > div { overflow: hidden; min-height: 0; }

/* Scene states */
.scene:is([data-state="signals"], [data-state="explain"], [data-state="confirm"]) .chip { opacity: 1; }
.scene:is([data-state="signals"], [data-state="explain"]) .node-dot { fill: var(--signal); stroke: var(--signal); }
.scene:is([data-state="signals"], [data-state="explain"]) .beam { opacity: 0.85; }
.scene:is([data-state="signals"], [data-state="explain"]) .pl-hot { fill: var(--signal-soft); stroke: var(--signal); }
.scene[data-state="signals"] .node-ring { animation: ping 1.8s ease-out infinite; }
.scene[data-state="signals"] .chip-cms, .scene[data-state="signals"] .node-cms * , .scene[data-state="signals"] .layer-cms .pl-hot { transition-delay: 450ms; }
.scene[data-state="signals"] .chip-server, .scene[data-state="signals"] .node-server *, .scene[data-state="signals"] .layer-server .pl-hot { transition-delay: 900ms; }
.scene[data-state="signals"] .node-cms .node-ring { animation-delay: 450ms; }
.scene[data-state="signals"] .node-server .node-ring { animation-delay: 900ms; }
@keyframes ping { 0% { scale: 0.6; opacity: 0.9; } 100% { scale: 2.8; opacity: 0; } }

.scene:is([data-state="explain"], [data-state="confirm"]) .thread { stroke-dashoffset: 0; }
.scene[data-state="explain"] .thread-pulse { opacity: 1; animation: travel 1.6s linear infinite; }
@keyframes travel { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.scene:is([data-state="explain"], [data-state="confirm"], [data-state="report"]) .card { opacity: 1; scale: 1; translate: 0 0; }
.scene[data-state="explain"] .panel-ai,
.scene[data-state="confirm"] .panel-action,
.scene[data-state="report"] .panel-report { grid-template-rows: 1fr; opacity: 1; }

.scene[data-state="confirm"] .thread { opacity: 0.25; }
.scene[data-state="confirm"] .node-dot { fill: var(--accent); stroke: var(--accent); transition-delay: 1100ms; }
.scene[data-state="confirm"] .node-web .node-dot { fill: var(--bg); stroke: var(--muted); }
.scene[data-state="confirm"] .chip-web { opacity: 0.35; }
.scene[data-state="confirm"] :is(.chip-cms, .chip-server) .chip-alert { display: none; }
.scene[data-state="confirm"] :is(.chip-cms, .chip-server) .chip-ok { display: inline-block !important; animation: chip-in 500ms var(--ease-out) 1100ms both; }
.scene[data-state="confirm"] :is(.layer-cms, .layer-server) .pl-hot { fill: var(--accent-soft); stroke: var(--accent); transition-delay: 1100ms; }
.scene[data-state="confirm"] .fake-btn-primary { animation: press 600ms var(--ease-out) 600ms both; }
.scene[data-state="confirm"] .fb-idle { opacity: 0; transition-delay: 900ms; }
.scene[data-state="confirm"] .fb-done { opacity: 1; transition-delay: 900ms; }
.scene:is([data-state="confirm"], [data-state="report"]) .card::before { background: var(--accent); transition-delay: 900ms; }
.scene[data-state="report"] .node-dot { fill: var(--accent-soft); stroke: var(--accent); }
@keyframes press { 0%, 100% { scale: 1; } 45% { scale: 0.92; box-shadow: 0 0 0 6px var(--accent-soft); } }
@keyframes chip-in { from { opacity: 0; translate: 6px 0; } to { opacity: 1; translate: 0 0; } }

/* Idle float, applied with the individual translate property so it composes with parallax */
/* Report: the stack collapses and the incident card becomes the report */
.scene[data-state="report"] :is(.layer-web, .node-web) { translate: 0 70px; }
.scene[data-state="report"] :is(.layer-server, .node-server) { translate: 0 -70px; }
.scene[data-state="report"] .chip-web { translate: 0 calc(-50% + 70px); }
.scene[data-state="report"] .chip-server { translate: 0 calc(-50% - 70px); }
.scene[data-state="report"] .plane { opacity: 0.45; }
.scene[data-state="report"] :is(.thread, .thread-pulse) { opacity: 0; }
.plane { transition: stroke 600ms ease, opacity 900ms var(--ease-io); }
.sev-ok { display: none; background: var(--code-bg); color: var(--muted); }
.sev-watch { display: none; background: var(--code-bg); color: var(--ink-2); }
.t-report, .t-signals { display: none; }
.panel-signals { display: none; }
.layer-label { display: none; }
.stack { transition: translate 900ms var(--ease-io); }
.scene[data-state="report"] .stack { translate: 0 -35px; }
.scene[data-state="report"] .sev-critical, .scene[data-state="report"] .t-incident { display: none; }
.scene[data-state="report"] .sev-ok, .scene[data-state="report"] .t-report { display: inline; }
@media (min-width: 1001px) {
  .card { transition: opacity 600ms var(--ease-out), scale 700ms var(--ease-out), translate 700ms var(--ease-out), transform 120ms linear, left 900ms var(--ease-io), top 900ms var(--ease-io); }
  .scene[data-state="report"] .card {
    left: 26%; top: 50%; width: 48%;
    transition: transform 120ms linear, left 0s 620ms, top 0s 620ms, width 0s 620ms;
    animation: card-swap 1400ms var(--ease-out) both;
  }
  @keyframes card-swap { 0% { opacity: 1; translate: 0 0; } 38% { opacity: 0; translate: 0 0; } 46% { opacity: 0; translate: 0 16px; } 100% { opacity: 1; translate: 0 0; } }
}

/* Hero headline reveal */
.js .reveal-words .w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js .reveal-words .w > span { display: inline-block; translate: 0 108%; transition: translate 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + 80ms); }
.ready .reveal-words .w > span { translate: 0 0; }
.js .hero-copy > :not(h1) { opacity: 0; translate: 0 14px; transition: opacity 800ms var(--ease-out), translate 800ms var(--ease-out); transition-delay: 520ms; }
.js .hero-copy > .eyebrow { transition-delay: 0ms; }
.ready .hero-copy > :not(h1) { opacity: 1; translate: 0 0; }
.js .story-stage .scene { opacity: 0; transition: opacity 600ms var(--ease-out); }
.ready .story-stage .scene { opacity: 1; }

/* Section reveals */
.js [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity 900ms var(--ease-out), translate 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* Sections */
.section { position: relative; padding: 136px 0; }
.section + .section { border-top: 1px solid var(--line); }
@media (max-width: 640px) { .section { padding: 80px 0; } }
.section h2 { max-width: 16em; }
.section-lead { font-size: 1.12rem; line-height: 1.5; color: var(--ink-2); margin-top: 18px; max-width: 30em; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 64px; }
.section-head .section-lead { margin-top: 0; justify-self: end; }
@media (max-width: 900px) { .section-head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 40px; } .section-head .section-lead { justify-self: start; } }
.muted { color: var(--muted); }

/* Paper band */
.paper, .paper-lite { position: relative; z-index: 1; background: var(--bg); color: var(--ink); }
.section.paper-lite + .section { border-top: 0; }
.paper .section:first-child { border-top: 0; }
.layers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.layer-col-posture .layer-name::before { transform: none; border-radius: 50%; width: 8px; height: 8px; }
.layer-name { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.layer-name::before { content: ""; width: 12px; height: 7px; border: 1px solid currentColor; transform: skewX(-30deg); flex: none; }
.sig-list { list-style: none; margin: 0; padding: 0; }
.sig-list li { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.sig-list strong { display: block; font-size: 1.02rem; font-weight: 600; letter-spacing: -0.015em; }
.sig-list p { margin-top: 6px; color: var(--ink-2); font-size: 0.94rem; line-height: 1.5; }
.sig-list .log { margin-top: 12px; font-family: var(--mono); font-size: 0.72rem; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.sig-list .log em { display: inline-block; white-space: nowrap; }
.log-add { color: var(--signal); margin-right: 8px; font-weight: 600; }
.log em { font-style: normal; color: var(--muted); margin-left: 10px; }
@media (max-width: 1200px) { .layers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; } }
@media (max-width: 700px) { .layers-grid { grid-template-columns: minmax(0, 1fr); } }

/* Supported stacks */
.support { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); overflow: hidden; }
.support-core { padding: 24px 28px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.support-k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 0.9rem; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); background: var(--bg); }
.chips li.later { color: var(--muted); border-style: dashed; background: transparent; }
.support-core .chips li { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.support-note { margin-top: 14px; font-size: 0.92rem; color: var(--ink-2); }
.support-grid { margin: 0; display: grid; }
.support-grid > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.support-grid dt { font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; }
.support-grid dd { margin: 0; }
.support-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 16px 28px; font-size: 0.86rem; color: var(--muted); }
.lg-pilot, .lg-later { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.lg-pilot::before, .lg-later::before { content: ""; width: 18px; height: 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); }
.lg-later::before { border-style: dashed; background: transparent; }
.custom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.custom-card { padding: 24px 28px 28px; border: 1px solid var(--line-2); border-radius: 14px; }
.custom-card h3 { font-size: 1.15rem; }
.custom-card p:not(.support-k) { margin-top: 8px; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 760px) {
  .support-grid > div { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 20px; }
  .support-core, .support-legend { padding-left: 20px; padding-right: 20px; }
  .custom-grid { grid-template-columns: minmax(0, 1fr); }
  .custom-card { padding: 20px; }
}

/* Patching and response */
.fix-flow { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line-2); counter-reset: f; }
.fix-flow li { position: relative; padding: 18px 16px 0 0; font-size: 0.9rem; color: var(--ink-2); line-height: 1.4; }
.fix-flow li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink-2); }
.fix-flow span { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.fix-flow li:first-child::before { background: var(--signal); border-color: var(--signal); }
.fix-flow .fix-flow-end::before { border-style: dashed; }
.fix-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.fix-item { padding-top: 18px; border-top: 1px solid var(--line); }
.fix-item h3 { font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fix-item p { margin-top: 8px; color: var(--ink-2); font-size: 0.94rem; line-height: 1.55; }
.tag { font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--high); background: var(--high-soft); padding: 3px 7px; border-radius: 4px; }
.fix-note { margin-top: 40px; padding: 14px 16px; border: 1px solid var(--line-2); border-left: 2px solid var(--high); border-radius: 8px; font-size: 0.94rem; color: var(--ink-2); max-width: 760px; }
.fix-note strong { color: var(--ink); }
@media (max-width: 1000px) {
  .fix-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .fix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .fix-flow { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--line-2); padding-left: 20px; row-gap: 16px; }
  .fix-flow li { padding: 0; }
  .fix-flow li::before { top: 4px; left: -25px; }
  .fix-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* Pricing teaser */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { display: grid; align-content: start; gap: 18px; padding: 28px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.plan-main { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan h3 { font-size: 1.3rem; letter-spacing: -0.03em; }
.plan-desc { color: var(--ink-2); font-size: 0.95rem; margin-top: -10px; }
.plan-price { margin: 0; display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-price div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan-price dt { font-size: 0.9rem; color: var(--muted); }
.plan-price dd { margin: 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.94rem; color: var(--ink-2); }
.plan-feats li { position: relative; padding-left: 18px; }
.plan-feats li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 4px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.price-note { margin-top: 16px; font-size: 0.92rem; color: var(--ink-2); }
.pricing-foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.pricing-foot p { color: var(--ink-2); }
.pricing-foot strong { color: var(--ink); }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Pricing page */
.price-page { padding-top: 64px; padding-bottom: 120px; max-width: 1080px; }
.price-head { max-width: 760px; border-bottom: 0; padding-bottom: 32px; }
.pilot-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-soft); }
.pilot-banner p { color: var(--ink); }
.pilot-banner-end { margin-top: 64px; }
.price-section { padding-top: 64px; }
.price-section h2 { font-size: 1.7rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.price-section .doc-table { margin-top: 16px; }
.price-table-wrap { margin-top: 20px; }
.price-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.94rem; }
.price-table th, .price-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: 1.05rem; font-weight: 600; padding-top: 18px; padding-bottom: 18px; }
.price-table tbody th { font-weight: 450; color: var(--ink-2); width: 40%; }
.price-table td { color: var(--ink-2); }
.pt-prices td { font-size: 1.25rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pt-prices tr:last-child th, .pt-prices tr:last-child td { border-bottom: 1px solid var(--line-2); }
.price-table .pt-main { background: var(--accent-soft); }
.price-table thead .pt-main { color: var(--accent); box-shadow: inset 0 2px 0 var(--accent); }
.pt-yes { color: var(--ink) !important; }
.pt-no { color: var(--muted) !important; }
.price-table tbody:last-child tr:last-child th, .price-table tbody:last-child tr:last-child td { border-bottom: 0; }

/* Compare */
.table-wrap { margin-top: 0; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 0.95rem; }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 0.92rem; font-weight: 600; }
.compare thead small, .compare td small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.compare tbody th { font-weight: 450; color: var(--ink-2); }
.compare thead .ours { color: var(--ink); box-shadow: inset 0 2px 0 var(--accent); }
.mark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.mark::before { content: ""; width: 8px; height: 8px; flex: none; }
.mark.yes { color: var(--yes); } .mark.yes::before { background: var(--yes); }
.mark.part { color: var(--part); } .mark.part::before { border: 1.5px solid var(--part); }
.mark.no { color: var(--no); } .mark.no::before { background: var(--no); opacity: 0.6; }
.mark.plan { color: var(--accent); } .mark.plan::before { border: 1.5px solid var(--accent); border-radius: 50%; }
.footnote { margin-top: 16px; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 640px) {
  .table-wrap { border: 0; overflow: visible; background: none; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tr { border: 1px solid var(--line-2); border-radius: 6px; margin-bottom: 12px; overflow: hidden; background: var(--surface); }
  .compare tbody th { padding: 16px 16px 8px; border: 0; font-weight: 600; color: var(--ink); }
  .compare td { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 10px 16px; border-bottom: 0; border-top: 1px solid var(--line); }
  .compare td::before { content: attr(data-label); color: var(--muted); font-size: 0.86rem; }
  .compare td small { grid-column: 1 / -1; margin-top: 0; }
  .compare td.ours::before { color: var(--ink); font-weight: 600; }
  .compare tbody tr:last-child td { border-top: 1px solid var(--line); }
}

/* ZInfV */
.zinfv-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 72px; align-items: start; }
.zinfv-grid > div > p:not(.kicker):not(.section-lead) { margin-top: 18px; color: var(--ink-2); max-width: 38em; }
.source { font-size: 0.88rem; }
.deadline { border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); overflow: hidden; }
.deadline-head { padding: 28px; border-bottom: 1px solid var(--line); }
.zinfv-grid .source { margin-top: 22px; }
.date-title { font-size: clamp(3rem, 6vw, 5rem) !important; font-weight: 600; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zinfv-grid .deadline-left { margin-top: 14px; }
.zinfv-grid { align-items: end; }
.deadline-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.deadline-date { font-family: var(--mono); font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 500; letter-spacing: -0.05em; color: var(--ink); margin-top: 8px; line-height: 1; font-variant-numeric: tabular-nums; }
.deadline-left { font-family: var(--mono); font-size: 0.8rem; color: var(--signal); margin-top: 10px; }
.timeline { padding: 4px 28px; }
.tl-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-when { font-family: var(--mono); font-size: 0.95rem; font-weight: 500; color: var(--signal); }
.tl-what { color: var(--ink-2); }
.tl-note { padding: 18px 28px 24px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
@media (max-width: 960px) { .zinfv-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 640px) { .deadline-head, .timeline, .tl-note { padding-left: 20px; padding-right: 20px; } }

/* Pilot */
.pilot-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.pilot-copy .muted { margin-top: 24px; font-size: 0.95rem; }
.trust-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.trust-list li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.97rem; }
.trust-list strong { color: var(--ink); font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.checks li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); color: var(--ink-2); position: relative; }
.checks li::before { content: "+"; position: absolute; left: 4px; top: 13px; font-family: var(--mono); color: var(--accent); }
@media (max-width: 1000px) { .pilot-grid { grid-template-columns: 1fr; gap: 40px; } }
.pilot-form { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 18px; min-width: 0; }
@media (max-width: 640px) { .pilot-form { padding: 20px; } }
.form-note { font-size: 0.86rem; color: var(--high); background: var(--high-soft); border: 1px solid color-mix(in srgb, var(--high) 30%, transparent); border-radius: 3px; padding: 10px 14px; }
.form-note strong { color: inherit; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-size: 0.88rem; font-weight: 500; color: var(--ink-2); padding: 0; }
.field legend { margin-bottom: 8px; }
.optional { color: var(--muted); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 11px 13px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23747d90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
select option { background: var(--surface); color: var(--ink); }
textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
[aria-invalid="true"] { border-color: var(--signal) !important; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: center; gap: 9px; font-size: 0.95rem; color: var(--ink-2); cursor: pointer; }
.choices .choice { border: 1px solid var(--line-2); background: var(--bg); border-radius: 8px; padding: 9px 14px; transition: border-color 160ms, background-color 160ms; }
.choices .choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex: none; }
.consent { align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { margin-top: 3px; }
.form-status { font-size: 0.92rem; min-height: 1.4em; }
.form-status.error { color: var(--signal); }
.form-status.ok { color: var(--ink); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 3px; padding: 12px 14px; }

/* FAQ */
.faq-wrap { display: grid; gap: 40px; }
.faq-wrap .faq { max-width: 860px; }
.faq-more { margin-top: 16px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 500; font-size: 1.06rem; letter-spacing: -0.015em; transition: color 160ms; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.2rem; font-weight: 300; color: var(--accent); transition: transform 240ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 44em; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 420ms var(--ease-out), content-visibility 420ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { .faq { interpolate-size: allow-keywords; } }


/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.86rem; color: var(--muted); background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.foot-legal { flex-basis: 100%; max-width: 70ch; }
.sep { margin: 0 10px; }

/* Mobile story: scene follows the hero, steps carry their own mini state */
@media (max-width: 1000px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-text { display: contents; }
  .hero-copy { min-height: 0; padding: 40px 0 32px; order: 1; }
  .story-stage { order: 2; margin: 0 calc(var(--pad) * -0.5); }
  .stage-sticky { position: static; height: auto; }
  .steps-head { order: 3; padding: 72px 0 8px; }
  .steps { order: 4; padding-bottom: 56px; }
  .step { min-height: 0; padding: 32px 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .mini { display: block; margin-top: 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; padding: 14px 16px; font-size: 0.86rem; color: var(--ink-2); }
  .step .mini p { margin: 0; max-width: none; font-size: 0.86rem; color: var(--ink-2); }
  .step .mini p + p { margin-top: 8px; }
  .step .mini .mini-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .step .mini .mini-row { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); }
  .step .mini .mini-label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .step .mini .mini-ok { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); }
  .mini-ok::before { content: "✓ "; }
  .mini .sev { min-width: 84px; text-align: center; flex: none; }
  .card { position: relative; left: auto; top: auto; width: auto; margin: -8% calc(var(--pad) * 0.5) 0; }
  .scene { aspect-ratio: auto; }
  .scene-layers { position: relative; aspect-ratio: 640 / 600; }
  .card { min-height: 304px; }
  .scene:is([data-state="idle"], [data-state="signals"]) .card { opacity: 1; scale: 1; translate: 0 0; }
  .scene:is([data-state="idle"], [data-state="signals"]) :is(.sev-critical, .t-incident) { display: none; }
  .scene:is([data-state="idle"], [data-state="signals"]) :is(.sev-watch, .t-signals) { display: inline; }
  .scene:is([data-state="idle"], [data-state="signals"]) .panel-signals { display: grid; grid-template-rows: 1fr; opacity: 1; }
  .scene:is([data-state="idle"], [data-state="signals"]) .card::before { background: var(--line-2); }
  .card-signals li { opacity: 0.35; transition: opacity 500ms ease, color 500ms ease; }
  .scene[data-state="signals"] .card-signals li { opacity: 1; color: var(--signal); }
  .scene[data-state="signals"] .card-signals li:nth-child(2) { transition-delay: 450ms; }
  .scene[data-state="signals"] .card-signals li:nth-child(3) { transition-delay: 900ms; }
  .scene-caption { justify-content: space-between; padding: 0 calc(var(--pad) * 0.5); }
  .chip { right: auto; left: calc(34.84% + 14px); font-size: 0.66rem; }
  .chip > span { padding: 5px 7px; }
}

.sev { font-family: var(--mono); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; white-space: nowrap; }
.sev-critical { background: var(--signal-soft); color: var(--signal); }
.sev-high { background: var(--high-soft); color: var(--high); }

@media (max-width: 640px) {
  .pl-name { display: none; }
  .layer-label { display: block; position: absolute; left: 2%; margin: 0; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); transform: translate(calc(var(--mx) * 2px), 0); }
  .ll-web { top: 13%; } .ll-cms { top: 39%; } .ll-server { top: 65%; }
}
@media (max-width: 420px) { .st-obj { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

@media (prefers-reduced-motion: reduce) {
  .scene *, .scene { transition-duration: 0ms !important; animation: none !important; }
  .btn, .btn::before, .btn > span, .faq summary::after { transition: none; }
  .faq details::details-content { transition: none; }
}
@media (forced-colors: active) {
  .thread-pulse, .beam { display: none; }
  .plane, .pl-detail, .pl-hot, .pl-tile, .pl-grid { stroke: CanvasText; }
  .slab-l, .slab-r { fill: Canvas; stroke: CanvasText; }
  .pl-name, .pl-text { fill: CanvasText; }
  .thread { stroke: Highlight; }
  .card, .chip > span { border: 1px solid CanvasText; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Documentation page */
.brand-sub { color: var(--muted); font-weight: 450; padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.docs-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; padding-top: 64px; padding-bottom: 120px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 0.9rem; }
.toc-title { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; list-style: none; }
.toc-title::-webkit-details-marker { display: none; }
.doc-kv tbody th { width: 170px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-2); text-decoration: none; transition: color 160ms, border-color 160ms; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink); border-left-color: var(--accent); }
.doc { max-width: 760px; min-width: 0; }
.doc-head { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.04em; }
.doc-lead { font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); margin-top: 18px; }
.callout { margin-top: 28px; padding: 14px 16px; border: 1px solid var(--line-2); border-left: 2px solid var(--high); border-radius: 8px; background: var(--surface); font-size: 0.94rem; color: var(--ink-2); }
.doc-section { padding: 56px 0 8px; scroll-margin-top: 80px; }
.doc-section h2 { font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.15; }
.doc-section h3 { font-size: 1.12rem; margin-top: 32px; }
.doc-section > p { color: var(--ink-2); margin-top: 16px; }
.doc-section strong { color: var(--ink); font-weight: 600; }
.doc-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.doc-list li { position: relative; padding-left: 18px; color: var(--ink-2); }
.doc-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1px; background: var(--muted); }
.doc-steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.doc-steps li { counter-increment: s; position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.doc-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 17px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.doc-steps li:last-child::before { color: var(--accent); }
.doc-table { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: 0.93rem; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.doc-table thead th { font-size: 0.82rem; font-weight: 500; color: var(--muted); border-bottom-color: var(--line-2); }
.doc-table td { color: var(--ink-2); }
.doc-table tbody th { font-weight: 500; color: var(--ink); width: 140px; }
.doc-table td:first-child { color: var(--ink); }
.code { margin: 22px 0 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; overflow-x: auto; font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; color: var(--ink); }
.code code { background: none; padding: 0; font-size: inherit; }
.c-mute { color: var(--muted); }
.doc-note { font-size: 0.86rem; color: var(--muted); margin-top: 10px !important; }
.flow { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface); }
.flow li { position: relative; display: grid; align-content: start; gap: 4px; padding: 18px 16px 20px; }
.flow li + li { border-left: 1px solid var(--line); }
.flow li + li::before { content: ""; position: absolute; left: -5px; top: 26px; width: 9px; height: 9px; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: rotate(45deg); background: var(--surface); }
.flow-k { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.flow strong { font-size: 0.96rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.flow em { font-style: normal; font-size: 0.82rem; color: var(--ink-2); line-height: 1.4; }
.flow-human { background: var(--accent-soft); }
.flow-human .flow-k { color: var(--accent); }
.phases { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.phases li { display: grid; gap: 4px; padding: 16px 16px 0 0; position: relative; }
.phases li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink-2); }
.phases li.is-now::before { background: var(--accent); border-color: var(--accent); }
.phases span { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); padding-top: 8px; }
.phases strong { font-size: 1rem; }
.phases em { font-style: normal; font-size: 0.88rem; color: var(--ink-2); }
.doc-cta { margin-top: 40px !important; }
@media (max-width: 1000px) {
  .docs-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; }
  .toc { position: static; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 16px; }
  .toc-title { margin: 0; padding: 14px 0; cursor: pointer; font-size: 0.92rem; color: var(--ink); display: flex; justify-content: space-between; }
  .toc-title::after { content: "+"; font-family: var(--mono); color: var(--accent); }
  .toc-details[open] .toc-title::after { content: "−"; }
  .toc ol { padding-bottom: 12px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li + li { border-left: 0; border-top: 1px solid var(--line); }
  .flow li + li::before { left: 22px; top: -5px; transform: rotate(135deg); }
}
@media (max-width: 640px) {
  .brand-sub { display: none; }
  .doc-table { font-size: 0.86rem; }
  .doc-table thead { display: none; }
  .doc-table tr { display: grid; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .doc-table th, .doc-table td { border: 0; padding: 2px 0; }
  .doc-table tbody th { width: auto; }
  .phases { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--line-2); padding-left: 20px; gap: 18px; }
  .phases li { padding: 0; }
  .phases li::before { top: 4px; left: -25px; }
  .phases span { padding-top: 0; }
}
@media (max-width: 640px) {
  .price-table-wrap { overflow-x: auto !important; border: 1px solid var(--line-2) !important; background: var(--surface) !important; }
  .price-table { min-width: 560px; font-size: 0.86rem; }
  .price-table th, .price-table td { padding: 11px 12px; }
  .price-table tbody th, .price-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); width: 150px; min-width: 150px; }
  .pilot-banner { padding: 18px; }
}

/* Documentation: phases in five steps and FAQ */
.phases-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.phases-5 em { font-size: 0.84rem; }
@media (max-width: 1100px) and (min-width: 641px) { .phases-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } }
.doc-faq { margin-top: 20px; border-top: 1px solid var(--line-2); }
.doc-faq details { border-bottom: 1px solid var(--line); }
.doc-faq summary { list-style: none; cursor: pointer; padding: 16px 36px 16px 0; position: relative; font-weight: 500; color: var(--ink); }
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; font-weight: 300; color: var(--muted); transition: transform 200ms ease; }
.doc-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.doc-faq p { padding: 0 0 18px; color: var(--ink-2); }
.doc-section h3 { margin-top: 36px; }
.doc-section > .doc-table + p, .doc-section > .doc-table + h3 { margin-top: 20px; }
@media (max-width: 640px) {
  .phases-5 { grid-template-columns: minmax(0, 1fr); }
  .doc-scroll { overflow-x: auto; margin-top: 22px; }
  .doc-scroll .doc-table { margin-top: 0; min-width: 480px; }
  .doc-table.keep thead { display: table-header-group; }
  .doc-table.keep tr { display: table-row; padding: 0; }
  .doc-table.keep th, .doc-table.keep td { display: table-cell; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
}
.zinfv-table td:first-child { white-space: nowrap; }
@media (max-width: 640px) { .zinfv-table { min-width: 620px; } .zinfv-table td:first-child { white-space: normal; min-width: 150px; } }
.doc-section h3[id] { scroll-margin-top: 90px; }
