/* Layout: a full-screen scan, a neural network of what shapes me, seven rooms (instrument | notes), reading pages on film.
   One deliberate visual world: deep navy for instruments, cool film for reading. Smooth type: Unbounded, Onest, DM Mono. */
:root {
  --navy-950: #040A1F; --navy-900: #091538; --navy-800: #0E1E4D; --navy-700: #142B6F; --blue: #2E57D6; --ice: #9FDBFF;
  --bone: #EAD9B5; --film: #EEF1F7; --film-2: #E2E7F1; --paper: #F7F9FC; --ink: #0B1433; --slate: #4A5675; --line: #C7CFE0;
  --amber: #E2A85A; --amber-ink: #8A5A1C; --on-dark: #EEF1F7; --on-dark-2: #A9B7D6; --line-dark: rgba(159, 219, 255, .18);
  --f-num: 'Unbounded', 'Arial Black', Arial, sans-serif; --f-disp: 'Onest', 'Segoe UI', Arial, sans-serif;
  --f-text: 'Onest', 'Segoe UI', Arial, sans-serif; --f-mono: 'DM Mono', Consolas, 'Courier New', monospace;
  --hdr: 60px; --gut-l: max(16px, env(safe-area-inset-left, 0px)); --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--navy-950); color: var(--on-dark); font-family: var(--f-text); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy-900); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p, ul, ol { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
h1[tabindex]:focus, h1[tabindex]:focus-visible { outline: none; }
.page :focus-visible, .notes :focus-visible, .network :focus-visible, .more :focus-visible { outline-color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: calc(var(--hdr) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gut-r) 0 var(--gut-l); display: flex; align-items: center; gap: 20px;
  color: var(--on-dark); transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.hdr.solid { background: rgba(9, 21, 56, .94); border-bottom-color: var(--line-dark); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; padding-left: max(0px, calc(28px - var(--gut-l))); }
.brand .mk { font-family: var(--f-num); font-weight: 700; font-size: 18px; letter-spacing: .02em; color: var(--ice); }
.brand .nm { font-family: var(--f-disp); font-weight: 600; font-size: 15px; color: var(--on-dark); }
.nav { margin-left: auto; display: flex; gap: 18px; font-family: var(--f-mono); font-size: 13px; }
.nav a { text-decoration: none; color: var(--on-dark-2); padding: 4px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a.on { color: var(--on-dark); border-bottom-color: var(--ice); }
.lang { display: flex; border: 1.5px solid var(--line-dark); }
.lang button { background: none; border: 0; color: var(--on-dark-2); font-family: var(--f-mono); font-size: 12px; padding: 4px 8px; cursor: pointer; }
.lang button.on { background: var(--ice); color: var(--navy-950); }
.passport { display: flex; gap: 6px; align-items: center; flex-shrink: 0; padding-right: max(0px, calc(28px - var(--gut-r))); }
.passport .lbl { font-family: var(--f-mono); font-size: 11px; color: var(--on-dark-2); }
.passport .dots { display: flex; align-items: center; }
.passport .dots a, .passport .sum i { display: flex; align-items: center; justify-content: center; }
.passport .dots a { width: 17px; height: 22px; }
.passport .dots a::before, .passport .sum i::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--ice); transform: rotate(45deg); }
.passport .dots a.done::before, .passport .sum.done i::before { background: var(--ice); }
.passport .dots a:hover::before { box-shadow: 0 0 0 2px rgba(159, 219, 255, .35); }
.passport .sum { display: none; gap: 7px; align-items: center; text-decoration: none; font-family: var(--f-mono); font-size: 12px; color: var(--on-dark); padding: 4px 2px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line-dark); color: var(--on-dark); font-family: var(--f-mono); font-size: 13px; padding: 6px 12px; cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 70; background: var(--navy-900); padding: calc(var(--hdr) + env(safe-area-inset-top, 0px) + 12px) var(--gut-r) 32px var(--gut-l); display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.menu a { font-family: var(--f-disp); font-weight: 700; font-size: 26px; text-decoration: none; color: var(--on-dark); padding: 7px 0; border-bottom: 1px solid var(--line-dark); }
.menu .close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: var(--gut-r); background: none; border: 1.5px solid var(--line-dark); color: var(--on-dark); font-family: var(--f-mono); padding: 6px 12px; cursor: pointer; }

/* ---------- 1 · the scan ---------- */
.scan { position: relative; height: 250vh; background: radial-gradient(ellipse 60% 55% at 52% 55%, #10235A 0%, var(--navy-900) 60%, var(--navy-950) 100%); }
.scan-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scan-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(159, 219, 255, .10) 1px, transparent 1.3px); background-size: 18px 18px; pointer-events: none; }
.scan-gl { position: absolute; inset: 0; }
.scan-gl canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.word { position: absolute; font-family: var(--f-num); font-weight: 800; line-height: 1; letter-spacing: -.01em; white-space: nowrap;
  font-size: min(128px, calc((100vw - 64px) / 10.6)); pointer-events: none; user-select: none; }
.word .ghost { color: rgba(159, 219, 255, .2); }
.word .solid { position: absolute; inset: 0; color: var(--bone); clip-path: inset(100% 0 0 0); }
.w1 { left: max(28px, calc(env(safe-area-inset-left, 0px) + 16px)); top: calc(var(--hdr) + 4vh); }
.w2 { right: max(28px, calc(env(safe-area-inset-right, 0px) + 16px)); bottom: 10vh; }
.tagline { position: absolute; right: max(28px, calc(env(safe-area-inset-right, 0px) + 16px)); top: calc(var(--hdr) + 5vh); max-width: 430px; text-align: right;
  font-family: var(--f-disp); font-weight: 400; font-size: 23px; line-height: 1.35; color: var(--on-dark); }
.tagline em { font-style: normal; color: var(--ice); }
.scanline { position: absolute; left: 0; right: 0; top: 44%; height: 1px; background: var(--ice); box-shadow: 0 0 18px 2px rgba(159, 219, 255, .55); pointer-events: none; }
.scanlab { position: absolute; font-family: var(--f-mono); font-size: 12px; color: var(--ice); pointer-events: none; white-space: nowrap; }
.scanlab.l { left: max(28px, calc(env(safe-area-inset-left, 0px) + 16px)); }
.scanlab.r { right: max(52px, calc(env(safe-area-inset-right, 0px) + 40px)); }
.corner { position: absolute; font-family: var(--f-mono); font-size: 13px; color: rgba(238, 241, 247, .78); bottom: 28px; }
.corner.l { left: max(28px, calc(env(safe-area-inset-left, 0px) + 16px)); }
.corner.r { right: max(200px, calc(env(safe-area-inset-right, 0px) + 188px)); text-align: right; }
.rail { position: absolute; right: max(28px, calc(env(safe-area-inset-right, 0px) + 16px)); top: 22vh; bottom: 30vh; width: 2px; background: rgba(159, 219, 255, .2); }
.rail i { position: absolute; left: -4px; width: 10px; height: 10px; background: var(--ice); top: 0; }
.scan-fallback { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font-family: var(--f-mono); font-size: 13px; color: var(--on-dark-2); text-align: center; max-width: 360px; }
.scan-go { position: absolute; left: 50%; bottom: 24vh; transform: translateX(-50%); font-family: var(--f-mono); font-size: 13px; color: var(--ice); opacity: 0; transition: opacity .3s; pointer-events: none; white-space: nowrap; }
.scan-go.on { opacity: 1; }

/* ---------- 2 · the network ---------- */
.network { position: relative; background: var(--film); color: var(--ink); min-height: max(100vh, 820px); overflow: hidden; }
.net-head { position: absolute; left: max(48px, var(--gut-l)); top: calc(var(--hdr) + 8px); display: flex; flex-direction: column; gap: 8px; z-index: 2; max-width: 640px; }
.k { font-family: var(--f-num); font-weight: 600; font-size: 13px; color: var(--navy-700); letter-spacing: .14em; text-transform: uppercase; }
.net-head h2 { font-family: var(--f-disp); font-weight: 800; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.02; color: var(--ink); letter-spacing: -.01em; }
.net-head p { font-size: 16.5px; color: var(--slate); max-width: 560px; }
.net-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.net-svg .e { fill: none; stroke: var(--navy-700); stroke-opacity: .16; stroke-width: 1.4; transition: stroke-opacity .2s, stroke-width .2s; }
.net-svg .e.skip { stroke: var(--amber); stroke-opacity: .55; stroke-dasharray: 5 5; }
.net-svg .e.on { stroke-opacity: .85; stroke-width: 2.2; }
.net-svg.dim .e:not(.on) { stroke-opacity: .06; }
.net-svg .nd { cursor: pointer; }
.net-svg .nd circle { transition: r .15s; }
.net-svg .nd.in circle { fill: var(--film); stroke: var(--navy-700); stroke-width: 2.5; }
.net-svg .nd.hid circle { fill: var(--navy-700); }
.net-svg .nd.hid.grow circle { fill: var(--film); stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 4 3; }
.net-svg .nd.room circle { fill: var(--blue); stroke: var(--film); stroke-width: 3; }
.net-svg .nd.out circle.core { fill: var(--navy-700); }
.net-svg .nd.out circle.ring { fill: none; stroke: var(--ice); stroke-width: 6; }
.net-svg.dim .nd:not(.on) { opacity: .3; }
.net-svg text { font-family: var(--f-text); fill: var(--ink); paint-order: stroke; stroke: var(--film); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.net-svg text.t1 { font-weight: 600; font-size: 14px; }
.net-svg text.t2 { font-family: var(--f-mono); font-size: 11px; fill: var(--slate); }
.net-svg text.hl { font-family: var(--f-mono); font-size: 12px; }
.net-svg text.lay { font-family: var(--f-num); font-size: 10.5px; letter-spacing: .14em; fill: var(--slate); text-transform: uppercase; }
.net-svg text.rn { font-family: var(--f-num); font-size: 11px; fill: var(--blue); }
.net-svg text.rt { font-weight: 700; font-size: 17px; }
.net-svg text.me { font-family: var(--f-num); font-weight: 700; font-size: 15px; }
.net-svg .pulse { fill: var(--blue); }
.net-svg .nd:focus-visible circle { stroke: var(--blue); stroke-width: 4; }
.net-svg .done-mark { font-family: var(--f-mono); font-size: 12px; fill: var(--blue); }
.net-info { position: absolute; left: max(48px, var(--gut-l)); bottom: 52px; max-width: 620px; font-size: 14.5px; color: var(--ink); min-height: 2.6em; z-index: 2; }
.net-info b { font-weight: 700; }
.net-legend { position: absolute; left: max(48px, var(--gut-l)); bottom: 22px; display: flex; gap: 18px; font-family: var(--f-mono); font-size: 12px; color: var(--slate); align-items: center; flex-wrap: wrap; z-index: 2; }
.dotk { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--navy-700); margin-right: 6px; vertical-align: -1px; }
.dotk.g { background: transparent; border: 2px dashed var(--amber); }
.dotk.r { background: var(--blue); }
.skipk { display: inline-block; width: 22px; border-top: 2px dashed var(--amber); margin-right: 6px; vertical-align: 3px; }
.rlist { display: none; }

/* ---------- more of the lab ---------- */
.more { background: var(--film-2); color: var(--ink); padding-block: 72px 80px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.more .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 28px; }
.card-link { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1.5px solid var(--ink); text-decoration: none; color: var(--ink); background: transparent; transition: background .2s, color .2s; min-width: 0; }
.card-link:hover { background: var(--navy-700); color: var(--film); }
.card-link .ct { font-family: var(--f-disp); font-weight: 700; font-size: 22px; }
.card-link .cd { font-size: 15px; opacity: .85; }
.card-link .ca { font-family: var(--f-mono); font-size: 12px; margin-top: auto; padding-top: 6px; }
.sec-h { display: flex; flex-direction: column; gap: 8px; }
.sec-h h2 { font-family: var(--f-disp); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -.01em; }
.sec-h p { font-size: 17px; color: var(--slate); max-width: 62ch; }
.foot { background: var(--navy-950); color: var(--on-dark-2); padding-block: 28px 36px; font-size: 13px; }
.foot .wrap { display: flex; flex-direction: column; gap: 6px; }
.foot a { color: var(--ice); }

/* ---------- 3 · rooms ---------- */
.room { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(380px, 1fr); height: 100vh; height: 100dvh; padding-top: calc(var(--hdr) + env(safe-area-inset-top, 0px)); background: var(--navy-950); }
.inst { position: relative; background: var(--navy-950); overflow: hidden; min-height: 0; }
.inst::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(159, 219, 255, .07) 1px, transparent 1.3px); background-size: 20px 20px; pointer-events: none; }
.inst canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.inst.flat canvas { touch-action: auto; }
.hud { position: absolute; font-family: var(--f-mono); font-size: 12.5px; color: var(--ice); line-height: 1.55; pointer-events: none; z-index: 3; }
.hud-tl { top: 18px; left: max(22px, calc(env(safe-area-inset-left, 0px) + 16px)); display: flex; flex-direction: column; max-width: 46%; }
.hud-tl .hk { color: var(--on-dark-2); }
.hud-bl { bottom: 18px; left: max(22px, calc(env(safe-area-inset-left, 0px) + 16px)); color: var(--on-dark-2); max-width: 70%; }
.hud-br { top: 18px; right: 22px; text-align: right; color: var(--on-dark-2); max-width: 46%; }
.inst-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--f-mono); font-size: 13px; color: var(--on-dark-2); text-align: center; z-index: 3; max-width: 80%; }
.lbl3 { position: absolute; transform: translate(-50%, -130%); font-family: var(--f-mono); font-size: 12px; color: var(--navy-950); background: var(--ice); padding: 2px 7px; white-space: nowrap; pointer-events: none; z-index: 4; }
.lbl3.alt { background: var(--bone); }
.readout { position: absolute; background: rgba(9, 21, 56, .9); border: 1px solid rgba(159, 219, 255, .35); padding: 8px 11px; font-family: var(--f-mono); font-size: 12.5px; color: var(--on-dark); line-height: 1.6; pointer-events: none; z-index: 4; white-space: nowrap; }
.pip { position: absolute; border: 1px solid rgba(159, 219, 255, .35); pointer-events: none; z-index: 3; }
.pip span { position: absolute; left: 8px; top: 6px; font-family: var(--f-mono); font-size: 11px; color: var(--on-dark-2); }

.notes { background: var(--film); color: var(--ink); overflow-y: auto; padding: 26px max(28px, calc(env(safe-area-inset-right, 0px) + 16px)) 96px 30px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.notes-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.big { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.big .n { font-family: var(--f-num); font-weight: 800; font-size: 64px; line-height: .9; color: var(--navy-700); }
.big .t { font-family: var(--f-disp); font-weight: 800; font-size: 38px; line-height: 1; letter-spacing: -.01em; }
.fieldtag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-top: 10px; }
.mini { width: 112px; height: 66px; flex: none; }
.stepper { position: sticky; top: -26px; z-index: 5; background: var(--film); display: flex; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.stepper button { font-family: var(--f-mono); font-size: 12px; padding: 6px 8px; border: 1.5px solid transparent; background: none; color: var(--slate); cursor: pointer; }
.stepper button.on { background: var(--navy-700); color: var(--film); }
.stepper button:hover:not(.on) { border-color: var(--line); }
.step { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 64px; }
.step-h { font-family: var(--f-disp); font-weight: 800; font-size: 21px; display: flex; gap: 10px; align-items: baseline; color: var(--ink); }
.step-h span { font-family: var(--f-num); font-weight: 700; font-size: 15px; color: var(--blue); }
.hook { font-family: var(--f-disp); font-size: 21px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.step p { font-size: 16px; color: var(--slate); }
.step p.hook { color: var(--ink); }
.challenge { border: 1.5px solid var(--navy-700); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.ch-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ch-k { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-700); }
.ch-state { font-family: var(--f-mono); font-size: 11.5px; padding: 2px 9px; border: 1.5px solid var(--navy-700); color: var(--navy-700); }
.challenge h3 { font-family: var(--f-disp); font-weight: 700; font-size: 20px; color: var(--ink); }
.challenge p { font-size: 15px; color: var(--slate); }
.challenge .ch-live { font-family: var(--f-mono); font-size: 13px; color: var(--blue); min-height: 1.5em; white-space: pre-line; }
.challenge .ch-win { color: var(--ink); font-size: 15px; border-top: 1px solid var(--line); padding-top: 8px; }
.challenge.won { border-color: var(--blue); background: #E6EEFF; }
.challenge.won .ch-state { background: var(--blue); border-color: var(--blue); color: var(--film); }
.ch-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ctl { display: flex; flex-direction: column; gap: 12px; }
.ctl-h, .step .ctl-h { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-top: 4px; }
.row { display: grid; grid-template-columns: 124px minmax(0, 1fr) 82px; gap: 12px; align-items: center; font-size: 15px; color: var(--ink); }
.row .v { font-family: var(--f-mono); font-size: 12.5px; color: var(--slate); text-align: right; }
.seg { display: inline-flex; border: 1.5px solid var(--navy-700); flex-wrap: wrap; max-width: 100%; }
.seg button { font-family: var(--f-mono); font-size: 12.5px; padding: 6px 11px; color: var(--navy-700); background: none; border: 0; cursor: pointer; }
.seg button.on { background: var(--navy-700); color: var(--film); }
.seg-row { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 15px; }
.tog { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; color: var(--ink); }
.tog input { appearance: none; -webkit-appearance: none; width: 34px; height: 18px; border: 1.5px solid var(--navy-700); border-radius: 0; position: relative; cursor: pointer; margin: 0; background: var(--paper); flex: none; }
.tog input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; background: var(--navy-700); transition: left .15s; }
.tog input:checked { background: var(--navy-700); }
.tog input:checked::after { left: 17px; background: var(--film); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-mono); font-size: 13px; padding: 9px 15px; border: 1.5px solid var(--navy-700);
  background: var(--navy-700); color: var(--film); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--navy-700); }
.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--film); }
.btn:disabled { opacity: .45; cursor: default; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats div { background: var(--paper); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stats b { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.stats span { font-family: var(--f-mono); font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.slices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slices figure { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.slices canvas { width: 100%; aspect-ratio: 1 / 0.86; background: #070D24; display: block; cursor: crosshair; }
.slices figcaption { font-family: var(--f-mono); font-size: 11.5px; color: var(--slate); }
.probe { font-family: var(--f-mono); font-size: 13px; color: var(--ink); min-height: 1.5em; }
.legend2 { display: flex; gap: 16px; font-family: var(--f-mono); font-size: 12px; color: var(--slate); flex-wrap: wrap; }
.sw { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; }
.ev { list-style: none; padding: 0; display: flex; flex-direction: column; }
.ev li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ev .kk { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-700); padding-top: 3px; }
.ev .tt { font-size: 15.5px; color: var(--ink); }
.ev .ss { display: block; font-size: 13.5px; color: var(--slate); margin-top: 2px; }
.bring { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bring li { font-family: var(--f-disp); font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--ink); display: grid; grid-template-columns: 24px minmax(0, 1fr); }
.bring li::before { content: "+"; font-family: var(--f-num); font-weight: 700; color: var(--blue); }
.cta { display: flex; gap: 8px; flex-wrap: wrap; }
.pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.pager a { color: var(--navy-700); text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.pipe { display: flex; flex-direction: column; }
.pipe button { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: var(--ink); }
.pipe button .pn { font-family: var(--f-num); font-weight: 700; font-size: 14px; color: var(--navy-700); }
.pipe button .pt { font-family: var(--f-disp); font-weight: 600; font-size: 16px; }
.pipe button .ps { font-family: var(--f-mono); font-size: 11px; padding: 2px 8px; border: 1.5px solid var(--navy-700); color: var(--navy-700); }
.pipe button .ps.b { border: 1.5px dashed var(--amber); color: var(--amber-ink); }
.pipe button.on { background: var(--film-2); }
.pipe .pd { font-size: 14.5px; color: var(--slate); padding: 0 0 12px 40px; }
.tests { list-style: none; padding: 0; display: flex; flex-direction: column; font-family: var(--f-mono); font-size: 12.5px; }
.tests li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.tests .ok { color: #1F7A4D; } .tests .bad { color: #B3261E; }
.steps3 { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-mono); font-size: 13px; }
.steps3 span.ok { color: var(--blue); }

/* software bench, drawn in 2D */
.sw-stage { position: absolute; inset: 0; }
.sw-pipe { position: absolute; left: 0; right: 0; top: 70px; display: flex; justify-content: center; padding: 0 24px; z-index: 2; }
.pipe-flow { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; max-width: 860px; row-gap: 26px; }
.pf { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; }
.pf .dot { width: 20px; height: 20px; border: 2px solid var(--ice); transform: rotate(45deg); background: var(--navy-950); }
.pf.res .dot { background: var(--ice); }
.pf.bld .dot { border: 2px dashed var(--amber); }
.pf.on .dot { box-shadow: 0 0 0 6px rgba(159, 219, 255, .22); }
.pf span { font-family: var(--f-mono); font-size: 12px; color: var(--on-dark); text-align: center; }
.pf::after { content: ""; position: absolute; top: 9px; left: calc(50% + 15px); width: calc(104px - 30px); height: 2px; background: rgba(159, 219, 255, .35); }
.pf:last-child::after { display: none; }
.term { position: absolute; left: 50%; transform: translateX(-50%); top: 210px; width: min(720px, calc(100% - 48px)); background: rgba(9, 21, 56, .85); border: 1px solid var(--line-dark);
  padding: 14px 16px; font-family: var(--f-mono); font-size: 12.5px; color: var(--on-dark); line-height: 1.7; max-height: calc(100% - 260px); overflow: auto; z-index: 2; }
.term .ok { color: #7FE0A8; } .term .bad { color: #FF8A80; } .term .dim { color: var(--on-dark-2); }

/* agent inspector */
.inst.flat { overflow-y: auto; }
.ag { position: relative; z-index: 2; padding: 64px max(22px, calc(env(safe-area-inset-left, 0px) + 16px)) 28px; display: flex; flex-direction: column; gap: 14px; }
.ag-ask { display: flex; gap: 8px; }
.ag-ask input { flex: 1; min-width: 0; font-family: var(--f-text); font-size: 16px; padding: 11px 13px; background: var(--navy-900); color: var(--on-dark); border: 1px solid rgba(159, 219, 255, .35); }
.ag-ask button { background: var(--ice); color: var(--navy-950); border: 0; font-family: var(--f-mono); font-size: 13px; padding: 0 16px; cursor: pointer; }
.ag-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ag-chips button { font-family: var(--f-mono); font-size: 12px; padding: 5px 9px; border: 1px solid var(--line-dark); background: none; color: var(--on-dark-2); cursor: pointer; }
.ag-chips button:hover { color: var(--on-dark); border-color: var(--ice); }
.ag-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ag-st { background: rgba(14, 30, 77, .7); border: 1px solid var(--line-dark); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ag-st h4 { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); display: flex; gap: 8px; }
.ag-st h4 span { font-family: var(--f-num); color: var(--on-dark); letter-spacing: 0; }
.ag-tok { display: flex; flex-wrap: wrap; gap: 5px; }
.ag-tok span { font-family: var(--f-mono); font-size: 12px; padding: 2px 7px; background: var(--navy-700); color: var(--on-dark); }
.ag-rank { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ag-rank li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 44px; gap: 8px; align-items: center; font-size: 13.5px; color: var(--on-dark); }
.ag-rank li.top { color: var(--ice); font-weight: 600; }
.ag-rank .b { height: 6px; background: rgba(159, 219, 255, .15); position: relative; }
.ag-rank .b i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ice); }
.ag-rank .s { font-family: var(--f-mono); font-size: 11.5px; color: var(--on-dark-2); text-align: right; }
.ag-rules { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; font-family: var(--f-mono); font-size: 12.5px; color: var(--on-dark-2); }
.ag-rules li.on { color: var(--ice); }
.ag-tool { font-family: var(--f-mono); font-size: 12.5px; color: var(--bone); background: var(--navy-950); border: 1px solid var(--line-dark); padding: 10px 12px; white-space: pre-wrap; margin: 0; }
.ag-ans { font-size: 15px; color: var(--on-dark); line-height: 1.5; }
.ag-cites { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--on-dark-2); }
.ag-cites b { font-family: var(--f-mono); color: var(--ice); font-weight: 400; margin-right: 6px; }

/* range inputs */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(var(--navy-700), var(--navy-700)) 0 / var(--fill, 50%) 100% no-repeat, var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -6px; background: var(--paper); border: 2.5px solid var(--navy-700); transform: rotate(45deg); }
input[type=range]::-moz-range-track { height: 3px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 3px; background: var(--navy-700); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 0; background: var(--paper); border: 2.5px solid var(--navy-700); transform: rotate(45deg); }

/* ---------- pages ---------- */
.page { background: var(--film); color: var(--ink); min-height: 100vh; padding-top: calc(var(--hdr) + env(safe-area-inset-top, 0px) + 44px); padding-bottom: 88px; }
.page-h { display: flex; flex-direction: column; gap: 10px; margin-bottom: 34px; }
.page-h h1 { font-family: var(--f-disp); font-weight: 800; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.015em; color: var(--ink); }
.page-h .lead { font-size: 18px; color: var(--slate); max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--f-mono); font-size: 12.5px; padding: 6px 11px; border: 1.5px solid var(--navy-700); background: none; color: var(--navy-700); cursor: pointer; }
.chip.on { background: var(--navy-700); color: var(--film); }
.pill { font-family: var(--f-disp); font-weight: 600; font-size: 13px; padding: 3px 10px; border-radius: 20px; align-self: flex-start; white-space: nowrap; }
.pill.pub { background: var(--navy-700); color: var(--film); }
.pill.rev { background: var(--bone); color: var(--ink); }
.pill.pg { border: 1.5px solid var(--ink); color: var(--ink); }
.pill.grow { border: 1.5px dashed var(--amber); color: var(--amber-ink); }

/* path: a timeline drawn as roots; text never sits on a line */
.pt { max-width: 860px; --tx: 38px; --pl: 112px; --nx: calc(var(--pl) - 18px); --hy: 37px; --rh: 26px; }
/* --tx trunk centre, --pl text start, --nx node centre (x); --hy node centre (y) inside each heading, level with the title */
.pt-top { position: relative; padding: 0 0 6px var(--pl); }
.pt-top::before { content: ""; position: absolute; left: calc(var(--tx) - 1.5px); top: calc(var(--hy) - 1.5px); bottom: -17px; width: calc(var(--nx) - var(--tx) + 1.5px);
  border-left: 3px dashed var(--amber); border-top: 3px dashed var(--amber); border-top-left-radius: 22px; }
.pt-ground { position: relative; height: 34px; margin-left: 0; }
.pt-ground::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; border-top: 1.5px dotted var(--ink); }
.pt-ground span { position: absolute; left: var(--pl); top: 0; font-family: var(--f-mono); font-size: 12px; color: var(--slate); background: var(--film); padding-right: 8px; }
.pt-list { list-style: none; padding: 0; margin: 0; }
.pt-item { position: relative; padding: 8px 0 18px var(--pl); min-height: 92px; }
.pt-item::before { content: ""; position: absolute; left: var(--tx); top: 0; bottom: 0; width: var(--w, 10px); transform: translateX(-50%); background: var(--navy-700); border-radius: 0 0 3px 3px; }
.pt-item:first-child::before { top: -17px; }
.pt-root { position: absolute; left: calc(var(--tx) - var(--rw, 3px) / 2); top: calc(8px + var(--hy) + var(--rw, 3px) / 2 - var(--rh)); width: calc(var(--nx) - var(--tx) + var(--rw, 3px) / 2); height: var(--rh);
  border: 0 solid var(--navy-700); border-left-width: var(--rw, 3px); border-bottom-width: var(--rw, 3px); border-bottom-left-radius: var(--rh); pointer-events: none; }
.pt-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; width: 100%; text-align: left; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink); position: relative; }
.pt-node { position: absolute; left: calc(var(--nx) - var(--pl)); top: var(--hy); width: 16px; height: 16px; border-radius: 50%; background: var(--film); border: 3px solid var(--navy-700); transform: translate(-50%, -50%); z-index: 1; }
.pt-item.open .pt-node, .pt-top.open .pt-node { background: var(--navy-700); }
.pt-top .pt-node { border-color: var(--amber); border-style: dashed; }
.pt-top.open .pt-node { background: var(--amber); }
.pt-y { font-family: var(--f-mono); font-size: 12.5px; line-height: 18px; color: var(--slate); grid-column: 1; }
.pt-t { font-family: var(--f-disp); font-weight: 700; font-size: 22px; line-height: 26px; grid-column: 1; }
.pt-p { font-size: 15px; color: var(--navy-700); grid-column: 1; }
.pt-x { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-family: var(--f-mono); font-size: 18px; color: var(--navy-700); }
.pt-body { padding: 10px 0 6px; display: flex; flex-direction: column; gap: 10px; max-width: 62ch; }
.pt-body p { font-size: 16px; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; padding: 3px 9px; background: var(--film-2); color: var(--ink); border: 1px solid var(--line); }
.side { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 40px; }
.side div { border-top: 2px solid var(--ink); padding-top: 10px; font-size: 15px; color: var(--ink); }
.side b { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-700); margin-bottom: 4px; }

.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.qcard { background: var(--paper); border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.qcard svg { width: 100%; height: auto; aspect-ratio: 2 / 1; background: var(--film-2); display: block; }
.qcard svg .gl { font-family: var(--f-mono); font-size: 10.5px; fill: var(--slate); }
.qcard svg .gw { font-family: var(--f-mono); font-size: 10px; fill: var(--navy-950); }
.qcard svg .gs { font-family: var(--f-mono); font-size: 9px; fill: var(--slate); }
.qcard svg .gs.gi { fill: var(--on-dark-2); }
.qcard svg .gs.ga { fill: var(--amber-ink); }
.qcard h3 { font-family: var(--f-disp); font-weight: 700; font-size: 20px; }
.qcard p { font-size: 15.5px; color: var(--ink); }
.qcard .row2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.qcard a { font-family: var(--f-mono); font-size: 12.5px; color: var(--blue); text-decoration: none; }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kcol h2 { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); border-bottom: 2px solid var(--ink); padding-bottom: 8px; display: flex; justify-content: space-between; }
.kcard { border: 1.5px dashed var(--line); padding: 16px; display: flex; flex-direction: column; gap: 8px; background: transparent; }
.kcard.solid { border: 1px solid var(--line); background: var(--paper); }
.kcard h3 { font-family: var(--f-disp); font-weight: 700; font-size: 19px; line-height: 1.2; }
.kcard p { font-size: 14.5px; color: var(--slate); }
.kcard .stack { font-family: var(--f-mono); font-size: 11.5px; color: var(--slate); }
.prog { height: 6px; background: var(--film-2); position: relative; }
.prog i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy-700); }
.prog-t { font-family: var(--f-mono); font-size: 11.5px; color: var(--slate); }
.kcard details summary { font-family: var(--f-mono); font-size: 12.5px; color: var(--navy-700); cursor: pointer; }
.kcard ul { list-style: none; padding: 6px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.kcard li::before { content: "◇ "; color: var(--amber-ink); }
.kcard li.d::before { content: "◆ "; color: var(--navy-700); }

.tb-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.tb-box { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tb-box h2 { font-family: var(--f-disp); font-weight: 700; font-size: 26px; }
.tb-box textarea { width: 100%; min-height: 180px; resize: vertical; font-family: var(--f-text); font-size: 15px; padding: 12px; border: 1.5px solid var(--navy-700); background: var(--paper); color: var(--ink); }
.tb-box input[type=search] { width: 100%; font-family: var(--f-text); font-size: 15px; padding: 10px 12px; border: 1.5px solid var(--navy-700); background: var(--paper); color: var(--ink); }
.match-sum { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.match-sum .pct { font-family: var(--f-num); font-weight: 800; font-size: 54px; line-height: .9; color: var(--navy-700); }
.match-sum .lbl { font-size: 16px; color: var(--ink); max-width: 38ch; }
.mlist { list-style: none; padding: 0; display: flex; flex-direction: column; }
.mlist li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; align-items: baseline; }
.mlist .st { font-family: var(--f-mono); font-size: 11.5px; color: var(--slate); }
.mlist .ic { color: var(--navy-700); }
.mlist .ic.b { color: var(--amber-ink); }
.mlist .sub { display: block; font-size: 13px; color: var(--slate); }
.mlist a { color: var(--blue); font-family: var(--f-mono); font-size: 12px; text-decoration: none; }

.plist { list-style: none; padding: 0; }
.plist li { display: grid; grid-template-columns: 74px minmax(0, 1fr) 170px; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.plist .yr { font-family: var(--f-num); font-weight: 700; font-size: 17px; color: var(--navy-700); }
.plist .pt2 { font-size: 17px; color: var(--ink); }
.plist .pv { display: block; font-size: 14px; color: var(--slate); margin-top: 2px; }
.plist .pr { justify-self: end; }

.pod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1.5px solid var(--ink); }
.pod .l { background: var(--navy-900); color: var(--on-dark); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.pod .l .nm { font-family: var(--f-num); font-weight: 800; font-size: 60px; line-height: .95; color: var(--ice); }
.pod .l p { font-size: 17px; color: var(--on-dark-2); }
.pod .r { padding: 28px 32px; background: var(--paper); display: flex; flex-direction: column; }
.pod .ep { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; }
.pod .ep b { font-family: var(--f-num); font-weight: 600; font-size: 13px; color: var(--navy-700); }
.pod .ep.soon { color: var(--slate); }
.wave { display: flex; align-items: center; gap: 3px; height: 44px; }
.wave i { width: 4px; background: var(--ice); border-radius: 2px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.links { display: flex; flex-direction: column; }
.links a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; border-top: 1.5px solid var(--ink); text-decoration: none; color: var(--ink); }
.links a .t { font-family: var(--f-disp); font-weight: 700; font-size: 28px; }
.links a .u { font-family: var(--f-mono); font-size: 12.5px; color: var(--slate); overflow-wrap: anywhere; text-align: right; }
.links a:hover .t { color: var(--blue); }
.composer { border: 1.5px solid var(--navy-700); background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.composer label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); display: flex; flex-direction: column; gap: 6px; }
.composer input, .composer textarea { font-family: var(--f-text); font-size: 15px; padding: 9px 11px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-transform: none; letter-spacing: 0; }
.composer textarea { min-height: 150px; resize: vertical; }
.emailbox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-family: var(--f-mono); font-size: 15px; }

/* ---------- lab guide ---------- */
.guide-btn { position: fixed; right: max(18px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px)); z-index: 55;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; background: var(--ice); color: var(--navy-950); border: 0; cursor: pointer; font-family: var(--f-mono); font-size: 13px; box-shadow: 0 6px 24px rgba(4, 10, 31, .35); }
.guide-btn b { font-family: var(--f-num); font-weight: 700; font-size: 16px; line-height: 1; }
.guide { position: fixed; right: max(18px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px)); z-index: 56; width: 390px; max-width: calc(100vw - 24px);
  height: min(580px, 76vh); background: var(--navy-900); color: var(--on-dark); border: 1px solid var(--line-dark); display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(4, 10, 31, .5); }
.guide header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line-dark); }
.guide header b { font-family: var(--f-disp); font-weight: 700; font-size: 17px; display: block; }
.guide header span { font-family: var(--f-mono); font-size: 11px; color: var(--on-dark-2); }
.guide header button { background: none; border: 1.5px solid var(--line-dark); color: var(--on-dark); font-family: var(--f-mono); font-size: 12px; padding: 4px 9px; cursor: pointer; }
.g-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; font-size: 14.5px; line-height: 1.45; padding: 9px 12px; }
.msg.me { align-self: flex-end; background: var(--navy-700); color: var(--film); }
.msg.bot { align-self: flex-start; background: var(--navy-800); border: 1px solid var(--line-dark); color: var(--on-dark); }
.msg.bot a, .msg.bot button.act { color: var(--ice); background: none; border: 0; padding: 0; font-family: var(--f-mono); font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.msg .acts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.msg .src { margin-top: 6px; font-family: var(--f-mono); font-size: 11.5px; color: var(--on-dark-2); }
.g-sugg { display: flex; gap: 6px; padding: 0 16px 10px; flex-wrap: wrap; }
.g-sugg button { font-family: var(--f-mono); font-size: 11.5px; padding: 5px 9px; border: 1px solid var(--line-dark); background: none; color: var(--on-dark-2); cursor: pointer; }
.g-sugg button:hover { color: var(--on-dark); border-color: var(--ice); }
.g-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line-dark); }
.g-form input { flex: 1; min-width: 0; font-family: var(--f-text); font-size: 15px; padding: 9px 11px; background: var(--navy-950); color: var(--on-dark); border: 1px solid var(--line-dark); }
.g-form button { background: var(--ice); color: var(--navy-950); border: 0; font-family: var(--f-mono); font-size: 13px; padding: 0 14px; cursor: pointer; }

.toast { position: fixed; left: max(18px, calc(env(safe-area-inset-left, 0px) + 12px)); bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px)); z-index: 58; background: var(--navy-900); color: var(--on-dark);
  border: 1px solid var(--ice); padding: 12px 16px; font-size: 14.5px; max-width: min(420px, calc(100vw - 36px)); display: flex; gap: 12px; align-items: center; box-shadow: 0 8px 30px rgba(4, 10, 31, .45); }
.toast a { color: var(--ice); font-family: var(--f-mono); font-size: 12.5px; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .passport .lbl { display: none; }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .passport .dots { display: none; }
  .passport .sum { display: flex; }
}
@media (max-width: 900px) {
  .room { display: block; height: auto; }
  .inst { height: min(100vw, 64vh); }
  .inst.flat { height: auto; min-height: 60vh; overflow: visible; }
  #v-software .inst { height: min(132vw, 84vh); }
  .notes { overflow: visible; padding: 24px var(--gut-r) 96px var(--gut-l); }
  .stepper { top: calc(var(--hdr) + env(safe-area-inset-top, 0px)); }
  .tb-grid, .contact-grid, .pod { grid-template-columns: minmax(0, 1fr); }
  .hud { max-width: 80%; }
  .hud-br { display: none; }
  .ag-flow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .brand .nm { display: none; }
  .tagline { left: max(20px, calc(env(safe-area-inset-left, 0px) + 16px)); right: auto; text-align: left; top: calc(var(--hdr) + 4vh + min(128px, calc((100vw - 64px) / 10.6)) + 18px); font-size: 18px; max-width: 86vw; }
  .w1 { left: max(20px, calc(env(safe-area-inset-left, 0px) + 16px)); }
  .w2 { right: max(20px, calc(env(safe-area-inset-right, 0px) + 16px)); bottom: 13vh; }
  .corner.r, .rail, .scanlab.r { display: none; }
  .corner.l { left: max(20px, calc(env(safe-area-inset-left, 0px) + 16px)); right: 76px; }
  .network { min-height: 0; padding: calc(var(--hdr) + 20px) var(--gut-r) 40px var(--gut-l); }
  .net-head { position: static; margin-bottom: 24px; }
  .net-svg, .net-info, .net-legend { display: none; }
  .rlist { display: flex; flex-direction: column; gap: 10px; }
  .rlist a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 12px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
  .rlist .n { font-family: var(--f-num); font-weight: 800; font-size: 22px; color: var(--blue); grid-row: 1 / span 3; }
  .rlist .t { font-family: var(--f-disp); font-weight: 700; font-size: 21px; }
  .rlist .d { font-size: 14.5px; color: var(--slate); }
  .rlist .sk { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
  .rlist .sk span { font-family: var(--f-mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--navy-700); color: var(--navy-700); }
  .rlist .sk span.g { border: 1px dashed var(--amber); color: var(--amber-ink); }
  .rlist-legend { font-family: var(--f-mono); font-size: 12px; color: var(--slate); margin-top: 6px; }
  .big .n { font-size: 48px; }
  .big .t { font-size: 30px; }
  .row { grid-template-columns: 96px minmax(0, 1fr) 70px; }
  .seg-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ev li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kanban { grid-template-columns: minmax(0, 1fr); }
  .plist li { grid-template-columns: 60px minmax(0, 1fr); }
  .plist .pr { grid-column: 2; justify-self: start; }
  .pt { --tx: 28px; --pl: 84px; }
  .guide { right: 8px; left: 8px; width: auto; bottom: 8px; height: min(560px, 82vh); max-width: none; }
  .guide-btn { padding: 9px 13px; }
  .guide-btn span { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term { top: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
