/* ytr landing. The look is the dashboard's own: the edit bay. Dark like every editing suite, one signal
   colour, the on-air red, kept for what's live or working. Everything else is lightness.
   Tokens match the dashboard's stylesheet (this folder's README says which file). */

@font-face {
  font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-opsz-normal.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono Variable"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
}

:root {
  color-scheme: dark;
  --stage: #050506;
  --bg: #09090a;
  --panel: #0e0e10;
  --raise: #141417;
  --raise-2: #1a1a1e;
  --hover: #1d1d21;
  --press: #24242a;
  --line: rgb(255 255 255 / 0.07);
  --line-2: rgb(255 255 255 / 0.12);
  --text: #ededee;
  --text-2: #b4b4ba;
  --text-3: #9a9aa1;
  --text-dim: #7d7d85;
  --text-4: #64646b;
  --rec: #f0503c;
  --rec-text: #ff7a69;
  --warn: #e3a44c;
  --go: #8fd19e;
  --focus: rgb(255 255 255 / 0.55);
  --sans: "Inter Variable", "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono Variable", "JetBrains Mono", "Cascadia Code", "SF Mono", ui-monospace, Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --w: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --top: 60px;
  --act: clamp(104px, 13vw, 184px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg); -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.12) transparent;
  scroll-padding-top: calc(var(--top) + 16px);   /* focus and anchor jumps clear the fixed header */
}
body {
  margin: 0; position: relative; isolation: isolate; overflow-x: clip;
  font: 16px/1.6 var(--sans); color: var(--text-2); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in oklch, var(--rec) 38%, transparent); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, pre, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--top) + 24px); }
section[tabindex="-1"]:focus { outline: none; }   /* a section takes focus after a nav jump; it isn't a control */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-variant-ligatures: none; }
.dim { color: var(--text-dim); }
.wrap { width: min(100% - 2 * var(--gutter), var(--w)); margin-inline: auto; }
svg.i { width: 15px; height: 15px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 8px 12px; border-radius: 8px;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 550;
}
.skip:focus { top: 12px; }

/* ---- the shader layer: one canvas under the whole page -------------------------------------- */
.gl-layer { position: absolute; inset: 0; z-index: 0; overflow: clip; pointer-events: none; }
#gl { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; will-change: transform; }
html:not(.gl) #gl { display: none; }
.gl-slot { display: block; }
main, .foot { position: relative; z-index: 1; }

/* ---- small parts ----------------------------------------------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px; font: 500 12px/1.3 var(--mono); letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-3);
}
.tally { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 3px rgb(240 80 60 / 0.14); flex: none; }
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; flex: none;
  font: 500 11px/1 var(--mono); letter-spacing: 0; color: var(--text-3); white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line-2); text-transform: none;
}
code.inline {
  font: 0.86em var(--mono); color: var(--text); padding: 2px 6px; border-radius: 5px;
  background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap;
}
kbd {
  font: 10.5px/1 var(--mono); color: var(--text-3); padding: 3px 5px; border-radius: 4px; vertical-align: 1px;
  box-shadow: inset 0 0 0 1px var(--line-2); background: rgb(255 255 255 / 0.02);
}
.fine { font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.on-air {
  display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px 0 6px; border-radius: 4px;
  background: rgb(9 9 10 / 0.82); color: #fff; font: 600 10.5px/1 var(--sans); letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1px var(--line);
}
.on-air::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); }

/* A citation. The page follows the product's rule: a claim points to where it comes from. */
.cite {
  position: relative; display: inline; margin-left: 4px; padding: 2px 4px 1px; border-radius: 4px;
  font: 500 10px/1 var(--mono); letter-spacing: 0; color: var(--text-3); vertical-align: 0.55em;
  box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap;
}
.h2 .cite { vertical-align: 2.3em; margin-left: 6px; }
.cite::before { content: ""; position: absolute; inset: -9px -7px; }   /* a finger-sized target around a small chip */
.cite:hover, .cite:focus-visible { color: var(--text); box-shadow: inset 0 0 0 1px var(--focus); }
/* the source appears at once and only exists while asked for, so it can never widen the page */
.cite:hover::after, .cite:focus-visible::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: max-content; max-width: 240px; padding: 6px 9px; border-radius: 6px; background: var(--raise-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 24px rgb(0 0 0 / 0.5); color: var(--text-2);
  font: 450 11.5px/1.4 var(--mono); text-align: left; white-space: normal; pointer-events: none; z-index: 60;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px;
  border-radius: 9px; border: 0; cursor: pointer; white-space: nowrap; font-size: 14.5px; font-weight: 520;
  letter-spacing: -0.008em; color: var(--text); background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgb(255 255 255 / 0.03);
  transition: transform 160ms var(--ease-out), background 150ms;
}
.btn:hover { background: rgb(255 255 255 / 0.09); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: #e8e8ea; color: #0e0e10; box-shadow: none; font-weight: 560; }
.btn.primary:hover { background: #fff; }
.btn.ghost { background: none; box-shadow: none; color: var(--text-3); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn svg.i { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover svg.i { transform: translateX(2px); } }

.cmd {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 6px 0 14px; border: 0;
  border-radius: 9px; cursor: pointer; background: rgb(5 5 6 / 0.6); color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-2); font: 13.5px var(--mono); min-width: 0;
  transition: transform 160ms var(--ease-out);
}
.cmd:active { transform: scale(0.98); }
.cmd code { font: inherit; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd .prompt { color: var(--text-4); }
.cmd .copy-label {
  margin-left: 4px; height: 30px; min-width: 62px; display: inline-grid; place-items: center; padding: 0 10px;
  border-radius: 6px; font: 500 12.5px var(--sans); color: var(--text-3); background: rgb(255 255 255 / 0.05);
}
.cmd:hover .copy-label { color: var(--text); background: rgb(255 255 255 / 0.09); }

.code {
  margin-top: 20px; padding: 16px 18px; border-radius: 10px; background: var(--stage); overflow-x: auto;
  box-shadow: inset 0 0 0 1px var(--line); font: 13px/1.75 var(--mono); color: var(--text-2); tab-size: 2;
}
.code code { font: inherit; }
.c-p { color: var(--text-4); user-select: none; }
.c-c { color: var(--text-dim); }
.c-k { color: var(--text); }
.c-s { color: #d2d2d7; }
.c-n { color: var(--rec-text); }

/* ---- header ---------------------------------------------------------------------------------- */
/* Solid by default. It only goes clear over the hero once main.js is there to bring it back on scroll. */
.top {
  position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 50; border-bottom: 1px solid var(--line);
  background: rgb(9 9 10 / 0.78); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transition: background 160ms, border-color 160ms;
}
html.pin .top:not(.scrolled), html.js:not(.ready) .top { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.top-in { width: min(100% - 2 * var(--gutter), var(--w)); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.brand b { font-weight: 640; letter-spacing: -0.02em; font-size: 16px; }
.brand .dot, .d-brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 3px rgb(240 80 60 / 0.14); }
.top-nav { display: flex; gap: 2px; }
.top-nav a { padding: 6px 10px; border-radius: 6px; font-size: 13.5px; color: var(--text-3); transition: color 150ms; }
.top-nav a:hover { color: var(--text); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.transport {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 8px; border: 0;
  border-radius: 7px; background: none; color: var(--text-3); cursor: pointer;
}
.transport:hover { background: var(--hover); color: var(--text); }
.transport .i { width: 13px; height: 13px; }
.transport .i-play { display: none; fill: currentColor; stroke-width: 0; }
.transport[aria-pressed="true"] .i-play { display: block; }
.transport[aria-pressed="true"] .i-pause { display: none; }
.tc { font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.playline { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
.playline i { display: block; height: 100%; background: rgb(255 255 255 / 0.34); transform-origin: 0 50%; transform: scaleX(0); }

/* ---- hero ------------------------------------------------------------------------------------ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: clamp(100px, 13.5vh, 160px); }
/* one line where it fits, and it wraps between the two halves where it doesn't */
.display {
  margin-top: 22px; font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -0.04em;
  font-weight: 560; color: var(--text); margin-left: -0.03em;
}
.display .ln { display: inline-block; vertical-align: top; overflow: hidden; padding: 0 0.04em 0.14em; margin: 0 -0.04em -0.14em; }
.display .ln > span { display: block; }
.display.sm { font-size: clamp(2.5rem, 1.2rem + 4.3vw, 4.5rem); margin-left: 0; }
.lede {
  margin-top: 28px; max-width: 50ch; font-size: clamp(1.0625rem, 0.96rem + 0.42vw, 1.3125rem); line-height: 1.5;
  letter-spacing: -0.012em; color: var(--text-3); text-wrap: pretty;
}
.lede b { color: var(--text); font-weight: 520; }
.lede.center { margin-inline: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta.center { justify-content: center; }

/* the field takes whatever is left of the first screen, so the bars stand on its bottom edge */
.field {
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px;
  padding-top: clamp(36px, 6vh, 64px); --edge: max(var(--gutter), calc((100vw - var(--w)) / 2));
}
.field-stage { position: relative; flex: 1 1 auto; min-height: 220px; max-height: 470px; border-bottom: 1px solid var(--line); }
.field-stage .gl-slot { position: absolute; inset: 0; }
/* without WebGL2 the field has nothing to measure, so it becomes a quiet strip of unlit cells */
html.no-gl .field { min-height: 120px; }
html.no-gl .field-stage { min-height: 96px; max-height: 150px; }
html.no-gl .field-stage .gl-slot {
  background: radial-gradient(circle at 50% 50%, rgb(255 255 255 / 0.09) 1.6px, transparent 2.2px) 0 0 / 9px 9px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent);
}
html.no-gl .field-ui, html.no-gl .field-note { display: none; }
.field-ui { position: absolute; inset: 0; pointer-events: none; }
.axis { position: absolute; left: 0; right: 0; bottom: var(--y, 50%); height: 0; border-top: 1px dashed rgb(255 255 255 / 0.17); }
/* labels are solid tags laid over the chart, so a bar passing behind one is covered cleanly */
.axis span, .axis em {
  position: absolute; bottom: 7px; padding: 3px 7px; border-radius: 5px; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 11.5px; line-height: 1.2; white-space: nowrap; font-style: normal;
}
.axis span { right: var(--edge); color: var(--text); }
.axis em { left: var(--edge); color: var(--text-3); font-family: var(--sans); font-size: 12.5px; }
.field-tag { position: absolute; left: var(--edge); top: 0; background: var(--bg); }
.axis-base { --y: 30.3%; }
.axis-thr { --y: 60.6%; border-top-color: rgb(240 80 60 / 0.5); }
.axis-thr span { color: var(--rec-text); }
.probe {
  position: absolute; left: var(--px, 50%); top: 10px; transform: translateX(-50%); display: flex; gap: 8px;
  align-items: center; padding: 5px 9px; border-radius: 6px; background: var(--raise-2); font-size: 11.5px;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 24px rgb(0 0 0 / 0.5); white-space: nowrap; color: var(--text-3);
}
.probe b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.probe.hot b { color: var(--rec-text); }
.field-note { position: relative; z-index: 1; padding-top: 16px; font-size: 13px; line-height: 1.5; color: var(--text-dim); }

/* hero entrance: hidden only while the script that reveals it is on its way */
html.js:not(.ready) [data-in], html.js:not(.ready) .display .ln > span { opacity: 0; }

/* ---- sections -------------------------------------------------------------------------------- */
.section { padding-top: var(--act); }
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.h2 {
  margin-top: 18px; max-width: 25ch; font-size: clamp(1.875rem, 1.1rem + 2.45vw, 3.25rem); line-height: 1.06;
  letter-spacing: -0.035em; font-weight: 540; color: var(--text); text-wrap: balance;
}
.sec-lede { margin-top: 22px; max-width: 56ch; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); color: var(--text-3); text-wrap: pretty; }

/* two questions */
.statement {
  max-width: 27ch; font-size: clamp(1.625rem, 1rem + 2.2vw, 2.875rem); line-height: 1.14; letter-spacing: -0.032em;
  font-weight: 530; color: var(--text); text-wrap: balance;
}
.q-list { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.q-list li { padding: 28px clamp(20px, 4vw, 56px) 0 0; }
.q-list li + li { padding-left: clamp(20px, 4vw, 56px); border-left: 1px solid var(--line); }
.q-n { font-size: 12px; color: var(--text-dim); letter-spacing: 0.04em; }
.q { margin: 14px 0 12px; max-width: 17ch; font-size: clamp(1.375rem, 1rem + 1.25vw, 2rem); line-height: 1.14; letter-spacing: -0.028em; font-weight: 540; color: var(--text); text-wrap: balance; }
.q-list p { max-width: 42ch; font-size: 15.5px; color: var(--text-3); }

/* ---- how it works: a pinned display --------------------------------------------------------- */
/* Pinned only once main.js has set html.pin. Without it this is a plain list with every step open. */
.how { padding-top: var(--act); }
.how-track { position: relative; }
html.pin .how .sec-head { margin-bottom: 0; }
html.pin .how-track { height: 430vh; }
html.pin .how-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: var(--top); }
.how-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5.5vw, 80px); align-items: start; }
html:not(.pin) .how-grid { grid-template-columns: minmax(0, 640px); }
html:not(.pin) .monitor { display: none; }
.steps { border-top: 1px solid var(--line); }
.step { position: relative; border-bottom: 1px solid var(--line); }
.step::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--text);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); opacity: 0;
}
.step.on::after { opacity: 1; }
.step-head {
  all: unset; box-sizing: border-box; display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 17px 0;
  cursor: pointer; color: var(--text-dim); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); letter-spacing: -0.022em;
  transition: color 200ms;
}
.step-head:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.step-head .mono { font-size: 12px; letter-spacing: 0.04em; width: 22px; }
.step-head b { font-weight: 540; }
.step-head:hover, .step.on .step-head { color: var(--text); }
html:not(.pin) .step-head { color: var(--text); cursor: default; }
.step-body { display: grid; grid-template-rows: 1fr; }
.step-body > div { overflow: hidden; min-height: 0; padding-left: 40px; }
/* a closed step is out of the tab order and out of the reading order, not just out of sight */
html.pin .step-body {
  grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows 520ms var(--ease-out), opacity 260ms, visibility 0s linear 520ms;
}
html.pin .step.on .step-body { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
.step-body p { max-width: 46ch; font-size: 15.5px; color: var(--text-3); }
.step-body .tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 20px; }
.step-body p:last-child:not(.tags) { padding-bottom: 20px; }

.monitor { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px #000; }
.monitor-bar, .monitor-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; padding: 0 16px;
  background: var(--panel); font-size: 12px; color: var(--text-3);
}
.monitor-bar { border-bottom: 1px solid var(--line); }
.monitor-foot { border-top: 1px solid var(--line); padding-block: 10px; line-height: 1.45; }
.m-label { color: var(--text); letter-spacing: 0.02em; }
/* the display fills the body; the labels sit over its unlit left columns, which scenes.js keeps clear */
.monitor-body { position: relative; aspect-ratio: 16 / 10; --axis-w: 104px; }   /* no background: the canvas is underneath */
.monitor-body .gl-slot { position: absolute; inset: 0; }
html.no-gl .monitor { display: none; }
html.no-gl .how-grid { grid-template-columns: minmax(0, 640px); }
.m-axis { position: absolute; left: 0; top: 0; bottom: 0; width: var(--axis-w); z-index: 1; font-size: 11px; color: var(--text-3); }
.m-ax { position: absolute; inset: 0; opacity: 0; transition: opacity 240ms; }
.m-ax span { position: absolute; right: 10px; top: var(--y, 50%); transform: translateY(-50%); white-space: nowrap; }
.monitor[data-frame="1"] .m-ax-bars, .monitor[data-frame="2"] .m-ax-bars, .monitor[data-frame="3"] .m-ax-gates { opacity: 1; }

/* ---- gates ----------------------------------------------------------------------------------- */
.gate-board { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.gate-list, .verdict-col, .cell, .term { border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / 0.03); }
.gate h3, .stage h3, .feats h3, .cell h3 { line-height: 1.3; }
.gate { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: center; padding: 22px 24px; }
.gate + .gate { border-top: 1px solid var(--line); }
.gate h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 16px; font-weight: 560; letter-spacing: -0.012em; color: var(--text); }
.gate p { margin-top: 6px; max-width: 60ch; font-size: 14px; line-height: 1.55; color: var(--text-3); }
/* the third choice is the wide one ("No evidence" or "Unknown"), so every control is the same width */
.seg { display: inline-grid; grid-template-columns: auto auto 100px; padding: 3px; border: 0; border-radius: 9px; background: var(--stage); box-shadow: inset 0 0 0 1px var(--line); }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 11px; border-radius: 6px; font-size: 13px; line-height: 1.3; white-space: nowrap; text-align: center; color: var(--text-3); }
.seg label:hover span { color: var(--text); }
.seg input:checked + span { background: var(--raise-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg input[value="pass"]:checked + span { color: var(--go); }
.seg input[value="fail"]:checked + span { color: var(--rec-text); }
.seg input[value="unknown"]:checked + span, .seg input[value="needs_data"]:checked + span { color: var(--warn); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.verdict-col { position: sticky; top: calc(var(--top) + 24px); padding: 26px 26px 22px; }
.verdict-word { margin-top: 22px; font-size: clamp(3rem, 2rem + 3.2vw, 4.75rem); line-height: 1; letter-spacing: -0.048em; font-weight: 580; color: var(--text); }
.verdict-col[data-v="go"] .verdict-word { color: var(--go); }
.verdict-col[data-v="watch"] .verdict-word { color: var(--warn); }
.verdict-col[data-v="no_go"] .verdict-word { color: var(--rec-text); }
.verdict-col[data-v="needs_data"] .verdict-word { color: var(--text-3); }
.verdict-why { margin-top: 12px; min-height: 3em; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.rules { margin-top: 18px; }
.rules li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-dim); }
.rules b { font-weight: 520; }
.rules li.on { color: var(--text); }
.rules li.on b::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: 2px; }
.rules-card .fine { margin-top: 0; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---- pipeline -------------------------------------------------------------------------------- */
.pipeline .sec-head { margin-bottom: clamp(32px, 4vw, 48px); }
.tl-frame { position: relative; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.tl-frame .gl-slot { height: clamp(190px, 24vw, 280px); }
html.no-gl .tl-frame .gl-slot { background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.06) 0 1px, transparent 1px 16.666%); }
.tl-clips { position: absolute; left: 8px; right: 8px; top: 32px; height: 34%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tl-clips li { display: flex; align-items: center; padding-left: clamp(8px, 1.2vw, 16px); font-size: clamp(10px, 0.9vw, 12px); letter-spacing: 0.02em; color: var(--text-dim); transition: color 200ms; overflow: hidden; }
.tl-clips li.done, .tl-clips li.now { color: var(--text); }
.tl-clips .on-air { background: none; box-shadow: none; padding: 0; color: inherit; font: inherit; letter-spacing: 0.06em; }
.tl-clips .on-air::before { background: var(--text-4); transition: background 200ms; }
.tl-clips li.now .on-air::before { background: #fff; }
.stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-inline: 8px; }
/* a stage the playhead hasn't reached is quieter, never unreadable */
.stage { padding: 22px clamp(8px, 1.2vw, 16px) 0; }
.stage h3 { display: flex; align-items: baseline; gap: 10px; font-size: 16px; font-weight: 560; letter-spacing: -0.014em; color: var(--text-dim); transition: color 300ms; }
.stage h3 .mono { font-size: 11.5px; font-weight: 450; color: var(--text-dim); letter-spacing: 0.04em; }
.stage p { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); transition: color 300ms; }
.stage .files { margin-top: 12px; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.stage.done h3, .stage.now h3 { color: var(--text); }
.stage.done p, .stage.now p { color: var(--text-2); }
.stage.done .files, .stage.now .files { color: var(--text-3); }

/* ---- dashboard replica: the app's own tokens and class shapes ------------------------------- */
.replica-stage { perspective: 2200px; }
.replica-wrap {
  position: relative; height: calc(700px * var(--s, 1)); border-radius: 14px; overflow: hidden; transform-origin: 50% 0;
  background: #0e0e10; box-shadow: 0 0 0 1px var(--line-2), 0 50px 100px -40px #000;
  -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent);
}
/* too narrow to show whole: it drops the rail and runs off the right edge instead of shrinking past reading size */
.replica-wrap.cropped .replica { transform: translateX(calc(-240px * var(--s, 1))) scale(var(--s, 1)); }
.replica-wrap.cropped {
  -webkit-mask-image: linear-gradient(#000 80%, transparent), linear-gradient(90deg, #000 78%, transparent);
  mask-image: linear-gradient(#000 80%, transparent), linear-gradient(90deg, #000 78%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.replica {
  width: 1200px; height: 700px; display: grid; grid-template-columns: 240px minmax(0, 1fr); transform: scale(var(--s, 1));
  transform-origin: 0 0; font: 13.5px/1.55 var(--sans); letter-spacing: -0.003em; color: var(--text); user-select: none;
}
.replica svg.i { width: 15px; height: 15px; stroke-width: 1.6; }
.replica .pip { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--text-4); display: inline-block; }
.replica .pip.live, .replica .pip.working { background: var(--rec); }
.replica .pip.ready { background: var(--text-2); }
.replica .pip.idle { background: transparent; box-shadow: inset 0 0 0 1px var(--text-4); }
.d-rail { background: #09090a; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 0 8px; min-height: 0; }
.d-brand { display: flex; align-items: center; gap: 8px; padding: 14px 6px 10px 8px; }
.d-brand b { font-weight: 640; letter-spacing: -0.02em; font-size: 14.5px; }
.d-find { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); }
.d-rail h4 { margin: 18px 8px 4px; font-size: 11.5px; font-weight: 550; color: var(--text-4); }
.d-nav > span { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 6px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.d-nav > span.on { background: var(--press); color: var(--text); }
.d-nav em { margin-left: auto; color: var(--text-4); font-size: 12px; font-style: normal; }
.d-sub span { display: block; height: 27px; line-height: 27px; padding: 0 8px 0 32px; color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-sub .pip { margin-right: 9px; vertical-align: 1px; }
.d-agents > span { height: auto; padding: 6px 8px; align-items: flex-start; }
.d-agents .pip { margin-top: 7px; }
.d-agents .who { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.d-agents .who b { font-weight: 450; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.d-agents .who small { font-size: 11.5px; color: var(--text-4); overflow: hidden; text-overflow: ellipsis; }
.d-quota { margin: auto -8px 0; padding: 10px 16px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-4); font-variant-numeric: tabular-nums; }
.d-quota .bar { height: 3px; border-radius: 3px; background: rgb(255 255 255 / 0.07); margin-top: 6px; overflow: hidden; }
.d-quota .bar i { display: block; height: 100%; background: var(--text-3); border-radius: 3px; }
.d-main { min-width: 0; display: flex; flex-direction: column; }
.d-tabs { display: flex; height: 40px; background: #09090a; border-bottom: 1px solid var(--line); flex: none; }
.d-tabs span { display: flex; align-items: center; padding: 0 16px 0 12px; max-width: 230px; color: var(--text-3); border-right: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; }
.d-tabs span.on { background: #0e0e10; color: var(--text); box-shadow: 0 1px 0 #0e0e10; }
.d-page { padding: 30px 36px 0; }
.d-date { color: var(--text-3); font-size: 12.5px; }
.d-lede { font-size: 22px; line-height: 1.35; letter-spacing: -0.018em; color: var(--text-3); font-weight: 450; max-width: 46ch; margin-top: 6px; text-wrap: balance; }
.d-lede b { color: var(--text); font-weight: 560; }
.d-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; margin-top: 8px; }
.d-split h5 { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 12px; font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.d-split h5 span { color: var(--text-3); font-weight: 400; font-size: 12.5px; }
.d-split h5 em { margin-left: auto; color: var(--text-4); font-weight: 400; font-size: 12.5px; font-style: normal; }
.d-card { border-radius: 10px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / 0.03); }
.d-row { display: flex; align-items: center; gap: 14px; padding: 11px 16px; min-height: 48px; border-top: 1px solid var(--line); }
.d-row:first-child { border-top: 0; }
.d-row .grow { flex: 1; min-width: 0; }
.d-row .grow b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-row .grow small { display: block; color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-row .when { width: 74px; flex: none; color: var(--text-2); font-size: 12.5px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.d-row .when small { display: block; color: var(--text-4); font-size: 11.5px; }
.d-row .thumb { width: 86px; aspect-ratio: 16 / 9; border-radius: 5px; flex: none; background: var(--raise-2); box-shadow: inset 0 0 0 1px var(--line); }
.d-row .thumb.t1 { background: linear-gradient(135deg, #2b2a26, #17171a 60%), var(--raise-2); }
.d-row .thumb.t2 { background: linear-gradient(200deg, #23262b, #151518 65%), var(--raise-2); }
.d-row .thumb.t3 { background: linear-gradient(160deg, #2a2423, #161618 60%), var(--raise-2); }
.track { display: inline-flex; gap: 2px; align-items: center; flex: none; }
.track i { width: 13px; height: 4px; border-radius: 1px; background: rgb(255 255 255 / 0.1); }
.track i.on { background: var(--text-2); }
.track i.on.live { background: var(--rec); }
.stage-label { font-size: 12px; color: var(--text-3); min-width: 52px; flex: none; }
.replica-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--text-dim); }
.replica-note code.inline { color: var(--text-2); }

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px); margin-top: clamp(56px, 7vw, 88px); }
.feats h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 560; letter-spacing: -0.014em; color: var(--text); }
.feats p { margin-top: 8px; max-width: 38ch; font-size: 14.5px; line-height: 1.55; color: var(--text-3); }
.feats li { padding-top: 20px; border-top: 1px solid var(--line); }
/* a specimen of the app's own controls above each feature */
.spec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 24px; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; line-height: 1; color: var(--text-2); white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line-2);
}
.chip.used { color: var(--text); background: rgb(255 255 255 / 0.09); }
.chip.quiet { color: var(--text-3); box-shadow: none; background: rgb(255 255 255 / 0.05); border-radius: 6px; }
.chip.warn { color: var(--warn); box-shadow: inset 0 0 0 1px rgb(227 164 76 / 0.3); }
.chip.go { color: var(--go); box-shadow: inset 0 0 0 1px rgb(143 209 158 / 0.3); }
.chip.nogo { color: var(--rec-text); box-shadow: inset 0 0 0 1px rgb(240 80 60 / 0.3); }
.chip .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--rec); }

/* ---- agents ---------------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.cell { padding: clamp(22px, 2.4vw, 30px); min-width: 0; }
.cell h3 { font-size: 18px; font-weight: 560; letter-spacing: -0.02em; color: var(--text); }
.cell > p { margin-top: 8px; max-width: 52ch; font-size: 14.5px; line-height: 1.55; color: var(--text-3); }
.cell-mcp { grid-column: span 7; grid-row: span 2; }
.cell-run, .cell-conn { grid-column: span 5; }
.cell-guard { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; align-items: center; }
.cell-guard h3 { grid-column: 1; }
.cell-guard > p { grid-column: 1; margin-top: 0; }
.cell-guard .code { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
.tools { margin-top: 6px; }
.tools dt { margin-top: 20px; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); }
.tools dd { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tools dd span { height: 26px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 6px; font-size: 12px; color: var(--text-2); background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.apps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.apps li { height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---- quota and terms ------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats > div { padding: 28px clamp(16px, 2.4vw, 32px) 0 0; }
.stats > div + div { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.num { display: block; font-size: clamp(2.75rem, 1.7rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -0.05em; font-weight: 560; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.num small { font-size: 0.3em; letter-spacing: -0.01em; font-weight: 450; color: var(--text-3); }
.stats dd { margin-top: 16px; max-width: 30ch; font-size: 14.5px; line-height: 1.5; color: var(--text-3); }
.stats dd b { color: var(--text); font-weight: 520; }
.aside-note { margin-top: clamp(40px, 5vw, 64px); max-width: 60ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.5; letter-spacing: -0.012em; color: var(--text-3); }
.expired { font-size: 0.82em; color: var(--warn); padding: 2px 7px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgb(227 164 76 / 0.3); white-space: nowrap; }

/* ---- finale ---------------------------------------------------------------------------------- */
.finale { position: relative; margin-top: var(--act); padding-bottom: clamp(96px, 12vw, 160px); text-align: center; overflow: clip; }
.finale .gl-slot { position: absolute; inset: 0 0 auto 0; height: min(620px, 100%); }
.finale-in { position: relative; padding-top: clamp(120px, 15vw, 190px); }
.finale .on-air { height: 26px; padding: 0 10px 0 9px; font-size: 11.5px; background: rgb(9 9 10 / 0.9); box-shadow: inset 0 0 0 1px var(--line-2); }
.finale .on-air::before { width: 7px; height: 7px; background: var(--text-4); transition: background 400ms, box-shadow 400ms; }
.finale .on-air span { opacity: 0.55; transition: opacity 400ms; }
.finale .on-air.lit::before { background: var(--rec); box-shadow: 0 0 0 3px rgb(240 80 60 / 0.2), 0 0 14px 2px rgb(240 80 60 / 0.7); }
.finale .on-air.lit span { opacity: 1; }
.finale .display { margin-top: 30px; }
.finale .lede { max-width: 48ch; margin-top: 22px; }
.term { max-width: 740px; margin: clamp(40px, 5vw, 56px) auto 0; text-align: left; overflow: hidden; }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 8px 0 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.term-bar .btn { font-family: var(--sans); }
.term .code { margin: 0; padding: 18px; border-radius: 0; background: var(--stage); box-shadow: none; }
.finale .fine { margin-top: 20px; }
.fine.center { text-align: center; }

/* ---- footer ---------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 72px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 6fr); gap: 40px clamp(24px, 4vw, 64px); }
.foot-brand p { margin-top: 14px; max-width: 36ch; font-size: 14px; line-height: 1.55; color: var(--text-3); }
.foot h2 { font-size: 13px; font-weight: 560; color: var(--text); letter-spacing: -0.005em; line-height: 1.5; }
.src-note { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-3); }
.foot-col h2 { margin-bottom: 6px; }
.foot-col a:hover { color: var(--text); }
.sources { margin-top: 14px; counter-reset: s; font-size: 12px; line-height: 1.5; color: var(--text-dim); }
.sources li { counter-increment: s; display: block; position: relative; padding: 5px 8px 5px 34px; border-radius: 6px; }
.sources li::before { content: counter(s); position: absolute; left: 8px; top: 5px; color: var(--text-3); }
.sources b { font-weight: inherit; color: var(--text-2); }
.sources li:target { background: rgb(255 255 255 / 0.05); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---- the not-found page (404.html) ------------------------------------------------------------ */
.lost { min-height: 100svh; display: flex; align-items: center; padding: 96px 0; }

/* ---- smaller screens ------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .top-nav { display: none; }
  /* pinned on a small screen: the display on top, sized to the height that's left, one step open under it */
  html.pin .how-track { height: 340vh; }
  html.pin .how-pin { align-items: flex-start; }
  .how-grid, html:not(.pin) .how-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  html.pin .how-grid { padding-top: 14px; }
  html.pin .how-copy { order: 2; }
  html.pin .steps { border-top: 0; }
  html.pin .step { display: none; border-bottom: 0; }
  html.pin .step.on { display: block; }
  html.pin .step::after { bottom: auto; top: 0; }
  html.pin .step-head { padding: 14px 0 6px; cursor: default; }
  html.pin .step-body { transition: none; }
  .step-body > div { padding-left: 0; }
  .monitor-body { aspect-ratio: auto; height: clamp(190px, calc(100svh - 400px), min(92vw, 560px)); --axis-w: 86px; }
  .m-axis { font-size: 10px; }
  /* the caption gives way to a thin strip, which keeps the display's square corners off the frame's round ones */
  .monitor-foot { min-height: 12px; padding: 0; border-top: 0; background: var(--stage); }
  .monitor-foot span { display: none; }
  /* the verdict rides along above the gates, so a tap on a gate shows its result at once */
  .gate-board { display: flex; flex-direction: column; gap: 12px; }
  .verdict-col { display: contents; }
  .verdict, .rules-card { border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / 0.03); }
  .verdict {
    order: -1; position: sticky; top: calc(var(--top) + 8px); z-index: 4; display: grid; grid-template-columns: auto minmax(0, 1fr);
    column-gap: 18px; align-items: center; padding: 14px 18px; background: var(--raise);
    box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 32px -12px #000;
  }
  .verdict .eyebrow { display: none; }
  .verdict-word { margin-top: 0; font-size: 2.125rem; }
  .verdict-why { margin-top: 0; min-height: 0; font-size: 13px; line-height: 1.4; }
  .rules-card { order: 2; padding: 8px 20px 18px; }
  .rules { margin-top: 0; }
  .rules li:first-child { border-top: 0; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-mcp, .cell-run, .cell-conn { grid-column: span 12; grid-row: auto; }
  .cell-guard { grid-template-columns: 1fr; }
  .cell-guard .code { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding-bottom: 28px; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-src { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .tc { display: none; }
  .transport { padding: 0 8px; }
  .hero { padding-top: 104px; }
  .cta .btn, .cta .cmd { flex: 1 1 100%; }
  .cmd { justify-content: space-between; }
  .axis em { display: none; }
  .q-list { grid-template-columns: 1fr; }
  .q-list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
  .gate { grid-template-columns: 1fr; padding: 20px 18px; }
  .seg { justify-self: start; }
  .stages { grid-template-columns: 1fr 1fr; }
  .stage { padding-inline: 0 14px; }
  .tl-clips li { padding-left: 6px; font-size: 9px; letter-spacing: 0; }
  .feats { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr; }
  .term .code { font-size: 12px; }
  .term-bar > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .c-c { display: none; }
  /* on a phone a source shows as a line along the bottom of the screen */
  .cite:hover::after, .cite:focus-visible::after {
    position: fixed; left: 16px; right: 16px; bottom: 16px; transform: none; width: auto; max-width: none; padding: 10px 12px;
  }
}
@media (max-height: 620px) and (max-width: 1000px) {
  .monitor-bar { min-height: 34px; }
  .step-body p { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .step-body, .stage, .btn, .cmd { transition: none; }
}

/* the hidden attribute wins over any display set above */
[hidden] { display: none !important; }
