/* Hallmark · macrostructure: Marquee field (bespoke, canvas carried through two sections) · tone: utilitarian, night shift
 * theme: custom (vibe: "control room at night, one warm lamp" · paper oklch(16.5% 0.022 220) · accent oklch(81% 0.15 82)
 * · Archivo (width axis) + Spline Sans Mono) · axes: dark / wide grotesk / warm amber
 * nav: N5 pill bar · footer: Ft5 statement · enrichment: live canvas, hand-built SVG
 * pre-emit critique: P5 H4 E4 S5 R4 V5
 */
@font-face { font-family: "Archivo"; src: url("fonts/archivo_latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url("fonts/spline-sans-mono_latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ground: oklch(16.5% 0.022 220);
  --ground-2: oklch(19.5% 0.025 220);
  --panel: oklch(22% 0.027 220);
  --panel-2: oklch(26% 0.03 220);
  --edge: oklch(96% 0.01 200 / 0.1);
  --edge-2: oklch(96% 0.01 200 / 0.2);
  --text: oklch(95% 0.012 200);
  --text-2: oklch(79% 0.02 215);
  --text-3: oklch(66% 0.022 215);
  --amber: oklch(81% 0.15 82);
  --amber-2: oklch(87% 0.13 88);
  --amber-ink: oklch(21% 0.04 80);
  --amber-wash: oklch(81% 0.15 82 / 0.14);
  --red: oklch(70% 0.18 28);
  --green: oklch(79% 0.14 160);
  --focus: oklch(87% 0.13 88);
  /* role colours, read by the canvas */
  --r0: oklch(74% 0.12 240);
  --r1: oklch(78% 0.1 195);
  --r2: oklch(72% 0.13 300);
  --r3: oklch(80% 0.1 135);
  --r4: oklch(90% 0.02 220);
  --r5: oklch(76% 0.13 350);
  --r6: oklch(72% 0.1 168);
  --r7: oklch(72% 0.1 50);
  --neutral: oklch(74% 0.015 215);

  --font-display: "Archivo", "Arial", sans-serif;
  --font-body: "Archivo", "Arial", sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;
  --text-xs: 0.78125rem; --text-sm: 0.90625rem; --text-md: 1.03125rem; --text-lg: 1.1875rem;
  --text-h2: clamp(1.9rem, 1.1rem + 2.4vw, 3rem); --text-h1: clamp(2.1rem, 1rem + 3vw, 3.25rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 200ms;
  --radius: 10px; --radius-s: 5px;
  --wrap: 1328px; --gutter: clamp(18px, 4vw, 56px);
  --shadow: 0 1px 0 oklch(100% 0 0 / 0.04) inset, 0 30px 60px -30px oklch(8% 0.02 220 / 0.9), 0 8px 18px -8px oklch(8% 0.02 220 / 0.6);
  --bar-h: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; overflow-x: clip; background: var(--ground); color: var(--text); font: 400 var(--text-md)/1.55 var(--font-body); font-stretch: 100%; -webkit-font-smoothing: antialiased; caret-color: var(--amber); }
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, p, ol, ul, dl, dd, figure, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2 { font-family: var(--font-display); font-stretch: 116%; font-weight: 640; letter-spacing: -0.022em; line-height: 1.02; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font: 620 1.1875rem/1.2 var(--font-display); font-stretch: 108%; letter-spacing: -0.01em; }
.skip { position: absolute; left: var(--s4); top: -60px; background: var(--amber); color: var(--amber-ink); padding: var(--s2) var(--s4); z-index: 60; border-radius: var(--radius-s); }
.skip:focus { top: var(--s3); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s5); border: 1px solid transparent; border-radius: var(--radius-s); font-weight: 620; font-size: var(--text-sm); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), translate var(--dur) var(--ease-out); }
.btn:active { translate: 0 1px; }
.btn--amber { background: var(--amber); color: var(--amber-ink); }
.btn--amber:hover { background: var(--amber-2); }
.btn--amber[data-state="done"] { background: var(--green); }
.btn--line { border-color: var(--edge-2); background: var(--panel); }
.btn--line:hover { border-color: var(--text-2); }
.btn--quiet { background: none; color: var(--text-2); padding-inline: var(--s3); }
.btn--quiet:hover { color: var(--text); background: var(--panel); }
.btn--big { min-height: 54px; padding-inline: var(--s6); font-size: var(--text-md); }

.bar { position: sticky; top: 0; z-index: 40; height: var(--bar-h); display: flex; align-items: center; gap: var(--s6); padding: 0 var(--gutter); background: oklch(16.5% 0.022 220 / 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--edge); }
.brand { display: inline-flex; align-items: center; gap: var(--s2); font: 680 1.0625rem/1 var(--font-display); font-stretch: 112%; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand svg { width: 24px; height: 24px; }
.bar nav { display: flex; gap: var(--s5); margin-left: auto; font-size: var(--text-sm); }
.bar nav a { color: var(--text-2); text-decoration: none; white-space: nowrap; padding: var(--s2) 0; }
.bar nav a:hover { color: var(--text); }
.bar .btn { min-height: 36px; padding-inline: var(--s4); }

/* ---------- The field: one canvas carried through the hero and the rollout ---------- */
.fieldwrap { position: relative; }
.rail { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.field { position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h)); overflow: hidden; pointer-events: auto; }
.field canvas { display: block; width: 100%; height: 100%; }
.field__hud { position: absolute; left: var(--hud-x, 50%); bottom: var(--s5); translate: -50% 0; font: 500 var(--text-xs)/1.3 var(--font-mono); color: var(--text-2); background: oklch(16.5% 0.022 220 / 0.8); border: 1px solid var(--edge); border-radius: 20px; padding: 7px 14px; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.field__hud:empty { display: none; }

.hero { position: relative; z-index: 1; min-height: calc(100svh - var(--bar-h)); display: grid; grid-template-columns: minmax(0, 450px) minmax(0, 1fr) minmax(0, 348px); align-items: center; gap: var(--s6); padding: var(--s6) var(--gutter); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; pointer-events: none; }
.hero > * { pointer-events: auto; }
.hero__copy { grid-column: 1; }
.lede { margin-top: var(--s5); font-size: var(--text-lg); line-height: 1.45; color: var(--text-2); max-width: 34ch; }
.size { margin-top: var(--s6); }
.size label { font-size: var(--text-sm); color: var(--text-2); }
.size__slide { position: relative; padding-bottom: 34px; margin-top: var(--s1); }
input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: none; cursor: ew-resize; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--amber) 0 var(--p, 50%), var(--edge-2) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--edge-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--amber); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: var(--amber); border: 4px solid var(--ground); box-shadow: 0 0 0 1px var(--amber), 0 6px 14px -4px oklch(8% 0.02 220 / 0.9); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--amber); border: 4px solid var(--ground); box-shadow: 0 0 0 1px var(--amber); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--text); outline-offset: 3px; }
input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--text); outline-offset: 3px; }
.size__stops button { position: absolute; left: calc(15px + (100% - 30px) * var(--at)); bottom: 0; translate: -50% 0; min-width: 44px; min-height: 32px; padding: 0 var(--s2); border: 0; background: none; font: 500 var(--text-xs)/1 var(--font-mono); color: var(--text-2); cursor: pointer; border-radius: 3px; }
.size__stops button::before { content: ""; position: absolute; left: 50%; top: -8px; width: 1px; height: 8px; background: var(--edge-2); }
.size__stops button:hover { background: var(--panel); color: var(--text); }

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: var(--s5); border: 1px solid var(--edge-2); border-radius: var(--radius-s); padding: 3px; background: var(--ground-2); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 9px 16px; font-size: var(--text-sm); font-weight: 560; border-radius: 3px; white-space: nowrap; color: var(--text-2); transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.seg input:checked + span { background: var(--text); color: var(--ground); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.hero__mode { margin-top: var(--s3); font-size: var(--text-sm); color: var(--text-2); max-width: 40ch; min-height: 4.6em; }

.console { grid-column: 3; background: oklch(22% 0.027 220 / 0.94); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s5); }
.console__n { display: flex; align-items: baseline; gap: var(--s2); }
.console__n output { font: 640 4rem/0.9 var(--font-display); font-stretch: 112%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.console__n span { color: var(--text-3); font-size: var(--text-sm); }
.console__name { margin-top: var(--s4); font: 620 1.25rem/1.15 var(--font-display); font-stretch: 108%; letter-spacing: -0.01em; min-height: 2.3em; }
.console__plan { color: var(--text-3); font-size: var(--text-sm); }
.console__figs { margin-top: var(--s4); border-top: 1px solid var(--edge); }
.console__figs div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: 9px 0; border-bottom: 1px solid var(--edge); }
.console__figs dt { color: var(--text-2); font-size: var(--text-sm); }
.console__figs dd { font: 500 1.0625rem/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.console__figs div:nth-child(2) dd { color: var(--amber); }
.console__sub { margin-top: var(--s2); font-size: var(--text-xs); color: var(--text-3); min-height: 2.8em; }
.console__roles { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: 5px; min-height: 62px; align-content: start; }
.console__roles button { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 9px 0 7px; border: 1px solid var(--edge); border-radius: 14px; background: none; font-size: var(--text-xs); color: var(--text-2); cursor: pointer; white-space: nowrap; transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out), background-color 150ms var(--ease-out); }
.console__roles button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.console__roles button b { font: 500 0.71875rem/1 var(--font-mono); color: var(--text-3); }
.console__roles button:hover, .console__roles button[data-on="1"] { border-color: var(--c); color: var(--text); background: var(--panel-2); }
.console__shape { margin-top: var(--s3); font: 400 var(--text-xs)/1.5 var(--font-mono); color: var(--text-3); min-height: 3em; }
.console__foot { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--edge); display: grid; gap: var(--s2); font-size: var(--text-xs); color: var(--text-3); }
.console__foot p { min-height: 3em; }
.seg--cur { margin: 0; width: fit-content; }
.seg--cur span { padding: 6px 12px; font: 500 var(--text-xs)/1 var(--font-mono); }
.tag { display: inline-block; background: var(--amber); color: var(--amber-ink); font-weight: 640; padding: 1px 6px; border-radius: 3px; margin-right: 6px; }

.run { position: relative; z-index: 1; padding: var(--s9) var(--gutter) 30vh; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; pointer-events: none; }
.run > * { pointer-events: auto; max-width: 440px; }
.run__intro p { margin-top: var(--s4); color: var(--text-2); }
.run__steps { margin-top: 30vh; counter-reset: step; }
.run__steps li { counter-increment: step; min-height: 78vh; }
.run__steps .card { background: oklch(19.5% 0.025 220 / 0.94); border: 1px solid var(--edge); border-radius: var(--radius); padding: var(--s5); transition: background-color 260ms var(--ease-out), border-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.run__steps li[data-on="1"] .card { background: oklch(24% 0.029 220 / 0.96); border-color: var(--amber); box-shadow: var(--shadow); }
.run__steps li:not([data-on="1"]) h3 { color: var(--text-2); }
.run__steps .when { display: flex; justify-content: space-between; font: 500 var(--text-xs)/1 var(--font-mono); color: var(--text-3); }
.run__steps .when::before { content: counter(step) " of 6"; color: var(--amber); }
.run__steps h3 { margin: var(--s3) 0 var(--s2); font-size: 1.375rem; }
.run__steps p { color: var(--text-2); font-size: var(--text-sm); }
.run__weeks { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: var(--s4); }
.run__weeks i { height: 5px; border-radius: 2px; background: var(--edge-2); }
.run__weeks i[data-on="1"] { background: var(--amber); }

/* ---------- Shared section frame ---------- */
main > section { padding: var(--s9) var(--gutter); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; position: relative; }
main > section::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--edge); }
.head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s7); align-items: end; margin-bottom: var(--s7); }
.head p { color: var(--text-2); max-width: 56ch; }

/* ---------- Standard: the lamp board ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s6); align-items: start; }
.board__rows { background: var(--ground-2); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s3) var(--s5); }
.board__row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--s4); align-items: center; padding: 11px 0; border-bottom: 1px solid var(--edge); }
.board__row:last-child { border-bottom: 0; }
.board__row h3 { font: 560 var(--text-sm)/1.25 var(--font-body); font-stretch: 100%; letter-spacing: 0; color: var(--text-2); }
.board__row h3 b { font: 500 var(--text-xs)/1 var(--font-mono); color: var(--text-3); margin-right: 8px; }
.board__lamps { display: flex; flex-wrap: wrap; gap: 6px; }
.board__lamps button { position: relative; width: 44px; height: 34px; padding: 0; border: 1px solid var(--edge); border-radius: 4px; background: var(--panel); cursor: pointer; font: 500 0.625rem/1 var(--font-mono); color: var(--text-3); display: grid; place-items: end center; padding-bottom: 4px; transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out); }
.board__lamps button::before { content: ""; position: absolute; left: 50%; top: 6px; width: 16px; height: 5px; translate: -50% 0; border-radius: 3px; background: var(--text-2); }
.board__lamps button[data-c="1"]::before { background: var(--amber); }
.board__lamps button:hover { border-color: var(--text-2); }
.board__lamps button[aria-pressed="true"] { border-color: var(--text); background: var(--panel-2); color: var(--text); }
.board__inspect { position: sticky; top: 88px; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s5); min-height: 300px; }
.board__id { font: 500 var(--text-xs)/1 var(--font-mono); color: var(--text-3); display: flex; align-items: center; gap: var(--s2); }
.board__id[data-c="1"]::after { content: "critical"; background: var(--amber); color: var(--amber-ink); padding: 3px 7px; border-radius: 3px; font-weight: 600; }
.board__inspect h3 { margin: var(--s3) 0; font-size: 1.3125rem; }
.board__inspect p { font-size: var(--text-sm); color: var(--text); }
.board__why { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--edge); color: var(--text-2) !important; }

/* ---------- Proof ---------- */
.proof__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.org { background: var(--ground-2); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s5); }
.org svg { display: block; width: 100%; height: auto; }
.org svg .link { fill: none; stroke: var(--edge-2); stroke-width: 1.5; }
.org svg .seat { fill: var(--text-2); }
.org svg .seat--top { fill: var(--amber); }
.org svg .seat--lead { fill: var(--text); }
.org svg .seat--platform { fill: none; stroke: var(--text-2); stroke-width: 2; }
.org svg .seat--analyst { fill: var(--r1); }
.org svg text { font: 500 12.5px var(--font-body); fill: var(--text-2); }
.org svg .stop { fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.org svg .stop-t { fill: var(--amber); font-weight: 620; }
figcaption { margin-top: var(--s4); font-size: var(--text-sm); color: var(--text-2); max-width: 58ch; }
.guard { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s5); grid-row: span 2; }
.guard__cmds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s4); }
.guard__cmds button { min-height: 36px; padding: 0 var(--s3); border: 1px solid var(--edge-2); border-radius: 4px; background: none; font: 500 0.78125rem/1 var(--font-mono); cursor: pointer; transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out); }
.guard__cmds button:hover { border-color: var(--text-2); }
.guard__cmds button[aria-pressed="true"] { background: var(--text); color: var(--ground); border-color: var(--text); }
.guard__out { margin-top: var(--s4); padding: var(--s4); background: var(--ground); border: 1px solid var(--edge); border-radius: var(--radius-s); font: 400 0.8125rem/1.65 var(--font-mono); min-height: 7.6em; }
.guard__out .deny { color: var(--red); font-weight: 600; }
.guard__out .allow { color: var(--green); font-weight: 600; }
.guard__out .note { color: var(--text-2); font-family: var(--font-body); font-size: var(--text-sm); }
.guard__facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: var(--s5) 0 var(--s4); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.guard__facts div { padding: var(--s3) 0; }
.guard__facts dt { font-size: var(--text-xs); color: var(--text-3); }
.guard__facts dd { font: 500 1.375rem/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }
.guard > p { font-size: var(--text-sm); color: var(--text-2); }
.path ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.path li { position: relative; padding: var(--s4) var(--s2) 0 0; font-size: var(--text-sm); font-weight: 560; line-height: 1.2; border-top: 2px solid var(--edge-2); }
.path li::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--text-2); }
.path li:nth-child(2)::before { background: var(--amber); }
.path li:last-child::before { background: var(--green); }

/* ---------- Check ---------- */
.check__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.check__in { background: var(--ground-2); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s5); }
.check__copy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.check__copy details { flex: 1 1 100%; order: 3; }
.check__copy summary { cursor: pointer; font-size: var(--text-sm); color: var(--text-2); text-decoration: underline; text-underline-offset: 0.2em; width: fit-content; padding: var(--s1) 0; }
.check__copy pre { margin-top: var(--s3); max-height: 300px; overflow: auto; background: var(--ground); border: 1px solid var(--edge); border-radius: var(--radius-s); padding: var(--s4); font: 400 0.6875rem/1.6 var(--font-mono); white-space: pre-wrap; color: var(--text-2); }
.check__status { min-height: 1.5em; margin: var(--s2) 0; font-size: var(--text-sm); color: var(--green); }
.check__in > label { display: block; font-weight: 620; }
.check textarea { display: block; width: 100%; margin-top: var(--s2); padding: var(--s4); border: 1px solid var(--edge-2); border-radius: var(--radius-s); background: var(--ground); color: var(--text); font: 400 0.78125rem/1.55 var(--font-mono); resize: vertical; }
.check textarea::placeholder { color: var(--text-3); }
.check textarea:focus-visible { outline-offset: 0; }
.check__btns { display: flex; gap: var(--s2); margin-top: var(--s3); }
.meter__score { display: flex; align-items: baseline; gap: var(--s2); }
.meter__score output { font: 640 4.5rem/0.9 var(--font-display); font-stretch: 112%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.meter__score span { font: 500 1.125rem/1 var(--font-mono); color: var(--text-3); }
.meter__band { margin-top: var(--s2); font: 620 1.25rem/1.2 var(--font-display); font-stretch: 108%; }
[data-band="exposed"] .meter__band { color: var(--red); }
[data-band="workable"] .meter__band { color: var(--amber); }
[data-band="sound"] .meter__band { color: var(--green); }
.meter__bar { position: relative; display: grid; grid-template-columns: 12fr 8fr 5fr; gap: 3px; margin-top: var(--s4); height: 12px; }
.meter__bar i { border-radius: 2px; }
.m-exposed { background: var(--red); } .m-workable { background: var(--amber); } .m-sound { background: var(--green); }
.meter__bar b { position: absolute; top: -6px; left: calc(var(--at, 0) * 100%); width: 4px; height: 24px; translate: -50% 0; background: var(--text); border-radius: 2px; box-shadow: 0 0 0 3px var(--ground); transition: left 600ms var(--ease-out); }
.meter__scale { display: grid; grid-template-columns: 12fr 8fr 5fr; gap: 3px; margin-top: var(--s2); font-size: var(--text-xs); color: var(--text-3); }
.check__empty { margin-top: var(--s5); color: var(--text-2); }
.check__bandtext { margin-top: var(--s5); font-size: var(--text-lg); line-height: 1.4; }
.check__tally { margin-top: var(--s2); font: 400 var(--text-xs)/1.5 var(--font-mono); color: var(--text-3); }
.check__out h3 { margin-top: var(--s5); }
.check__fix { margin-top: var(--s2); counter-reset: f; }
.check__fix li { counter-increment: f; position: relative; padding: var(--s2) 0 var(--s2) var(--s6); border-top: 1px solid var(--edge); font-size: var(--text-sm); color: var(--text-2); }
.check__fix li strong { color: var(--text); }
.check__fix li::before { content: counter(f); position: absolute; left: 0; font: 500 1rem/1.5 var(--font-mono); color: var(--amber); }
.check__notes { margin-top: var(--s4); font-size: var(--text-xs); color: var(--text-3); display: grid; gap: 4px; }
.ck-note--bad { color: var(--red); font-weight: 600; }
.check__list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ck-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s3); padding: var(--s3); background: var(--ground-2); border: 1px solid var(--edge); border-radius: var(--radius-s); min-height: 78px; align-items: start; transition: border-color var(--dur) var(--ease-out); }
.ck-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--text-3); }
.ck-icon { width: 15px; height: 15px; }
.ck-head { display: flex; flex-wrap: wrap; gap: 2px var(--s2); align-items: baseline; font-size: var(--text-sm); }
.ck-id { font: 500 0.71875rem/1 var(--font-mono); color: var(--text-3); }
.ck-name { font-weight: 600; }
.ck-status { flex: 1 1 100%; font-size: var(--text-xs); font-weight: 600; color: var(--text-3); }
.ck-found { font-size: var(--text-xs); color: var(--text-2); margin-top: 3px; overflow-wrap: anywhere; }
.ck-row[data-status="ok"] { border-color: oklch(79% 0.14 160 / 0.4); }
.ck-row[data-status="ok"] .ck-mark { background: var(--green); color: var(--ground); }
.ck-row[data-status="ok"] .ck-status { color: var(--green); }
.ck-row[data-status="gap"] { border-color: oklch(70% 0.18 28 / 0.55); }
.ck-row[data-status="gap"] .ck-mark { background: var(--red); color: var(--ground); }
.ck-row[data-status="gap"] .ck-status { color: var(--red); }
.ck-row[data-status="unknown"] .ck-mark { background: var(--amber); color: var(--amber-ink); }
.ck-row[data-status="unknown"] .ck-status { color: var(--amber); }
.ck-row[data-status="missing"] .ck-mark { background: none; border: 1.5px dashed var(--text-3); }

/* ---------- Offer table ---------- */
.offer__scroll { border: 1px solid var(--edge); border-radius: var(--radius); background: var(--ground-2); box-shadow: var(--shadow); overflow-x: auto; }
.offer__table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: var(--text-sm); }
.offer__table th, .offer__table td { text-align: left; vertical-align: top; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--edge); }
.offer__table tr:last-child th, .offer__table tr:last-child td { border-bottom: 0; }
.offer__table thead th { font: 640 2.25rem/1 var(--font-display); font-stretch: 112%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; padding-top: var(--s5); }
.offer__table thead th small { display: block; font: 400 var(--text-xs)/1.4 var(--font-body); letter-spacing: 0; color: var(--text-3); margin-top: 6px; }
.offer__table tbody th { font-weight: 400; color: var(--text-3); width: 150px; white-space: nowrap; }
.offer__table td { color: var(--text-2); }
.offer__table td.num { font: 500 1.0625rem/1.3 var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.offer__table td.num small { display: block; font: 400 var(--text-xs)/1.4 var(--font-body); color: var(--text-3); white-space: normal; margin-top: 4px; }
.offer__table td strong { color: var(--text); font-weight: 620; display: block; }
.offer__table td.price { color: var(--amber); }
.offer__cards { display: none; }
.offer__note { margin-top: var(--s4); font-size: var(--text-sm); color: var(--text-2); max-width: 80ch; }

/* ---------- About ---------- */
main > .about { padding-bottom: var(--s10); }
.about h2 { font-size: clamp(2.6rem, 1rem + 6vw, 5rem); max-width: 14ch; }
.about__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); margin: var(--s6) 0 var(--s7); }
.about__cols p { max-width: 54ch; color: var(--text-2); }
.about__cols p:first-child { color: var(--text); font-size: var(--text-lg); line-height: 1.45; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); padding: var(--s5) var(--gutter); border-top: 1px solid var(--edge); font-size: var(--text-xs); color: var(--text-3); }

@media (max-width: 1100px) {
  .bar nav { display: none; }
  .bar .btn { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 348px); }
  .console { grid-column: 2; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .board__inspect { top: auto; bottom: var(--s3); min-height: 0; z-index: 5; }
  .board__why { display: none; }
  .check__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --bar-h: 54px; }
  /* On a phone the field is a window pinned under the bar; the words scroll beneath it. */
  .rail { position: sticky; inset: auto; top: var(--bar-h); z-index: 6; }
  .field { position: relative; top: 0; height: 44svh; background: var(--ground); border-bottom: 1px solid var(--edge-2); }
  .field__hud { bottom: var(--s2); }
  .hero { display: block; min-height: 0; padding-top: var(--s5); }
  .lede { font-size: var(--text-md); margin-top: var(--s3); }
  .console { margin-top: var(--s6); }
  .run { padding-top: var(--s8); padding-bottom: var(--s6); }
  .run > * { max-width: none; }
  .run__steps { margin-top: var(--s6); }
  .run__steps li { min-height: 52vh; }
  main > section { padding-block: var(--s8); }
  .head, .about__cols, .proof__grid, .check__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .head { margin-bottom: var(--s6); }
  .board__rows { padding: var(--s2) var(--s4); }
  .board__row { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .board__lamps button { width: 40px; }
  .guard { grid-row: auto; }
  .path ol { grid-template-columns: minmax(0, 1fr); }
  .path li { border-top: 0; border-left: 2px solid var(--edge-2); padding: 0 0 var(--s4) var(--s5); }
  .path li::before { left: -6px; top: 3px; }
  .path li:last-child { padding-bottom: 0; }
  .check__list { grid-template-columns: minmax(0, 1fr); }
  .org { padding: var(--s3); }
  .offer__scroll { display: none; }
  .offer__cards { display: grid; gap: var(--s3); }
  .offer__card { background: var(--ground-2); border: 1px solid var(--edge); border-radius: var(--radius); padding: var(--s4); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s1) var(--s4); align-items: baseline; }
  .offer__card h3 { font: 640 2.25rem/1 var(--font-display); font-stretch: 112%; letter-spacing: -0.02em; grid-row: span 2; min-width: 2.6ch; }
  .offer__card strong { font-weight: 620; }
  .offer__card span { font-size: var(--text-sm); color: var(--text-2); }
  .offer__card dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--edge); }
  .offer__card dt { font-size: var(--text-xs); color: var(--text-3); }
  .offer__card dd { font: 500 0.9375rem/1.3 var(--font-mono); font-variant-numeric: tabular-nums; }
  .offer__card dd.price { color: var(--amber); }
  .offer__card small { grid-column: 1 / -1; font-size: var(--text-xs); color: var(--text-3); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
