/* warren: Space page styles (v3). Local fonts only; no network requests. */

@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */

:root {
  --font: "Instrument Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1200px;
  --gutter: 40px;
  --gap: 24px;

  /* dark (default) */
  --bg: #10241E;
  --bg-deep: #0C1D18;
  --surface: #132A23;
  --line: #294A3D;
  --line-soft: #1E3A30;
  --rule: #3B6152;
  --text: #E8F3EC;
  --text-2: #C4D7CC;
  --muted: #9BB5AA;
  --faint: #86A396;
  --accent: #B8E0C8;
  --accent-hi: #D2EEDD;
  --on-accent: #10241E;
  --sand: #E4C48E;
  --sand-soft: rgba(228, 196, 142, 0.12);
  --rust: #F0A39A;
  --rust-soft: rgba(240, 163, 154, 0.12);
  --mint-soft: rgba(184, 224, 200, 0.09);
  --nav-bg: rgba(16, 36, 30, 0.9);

  /* drawings */
  --hollow: #0A1914;
  --box: #122822;
  --wall: #6E9C86;
  --wall-dim: #2E5144;
  --earth: #2F5345;
  --hatch: #4D7A67;
  --ground: #8FAEA0;
  --lumen: #2F5447;
  --chip-bg: #0B1B16;

  --show-dark: inline-block;
  --show-light: none;

  /* terminal: dark in both themes */
  --t-bg: #07130F;
  --t-bar: #0B1A15;
  --t-line: #1C352C;
  --t-text: #D8E9DF;
  --t-bright: #F1F8F4;
  --t-dim: #86A094;
  --t-key: #A3BFB3;
  --t-green: #8FD6AB;
  --t-yellow: #E4C48E;
  --t-red: #F0A39A;
  --t-prompt: #B8E0C8;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F8F5;
    --bg-deep: #E8EFEA;
    --surface: #FFFFFF;
    --line: #CBDDD1;
    --line-soft: #DCE7E0;
    --rule: #9DBBAA;
    --text: #10241E;
    --text-2: #2B463B;
    --muted: #46604F;
    --faint: #53695F;
    --accent: #1D5C48;
    --accent-hi: #164A3A;
    --on-accent: #F4F8F5;
    --sand: #80540F;
    --sand-soft: rgba(128, 84, 15, 0.09);
    --rust: #9C3A2C;
    --rust-soft: rgba(156, 58, 44, 0.08);
    --mint-soft: rgba(29, 92, 72, 0.07);
    --nav-bg: rgba(244, 248, 245, 0.92);
    --hollow: #FFFFFF;
    --box: #FFFFFF;
    --wall: #5E927B;
    --wall-dim: #B4CBBE;
    --earth: #B9CFC2;
    --hatch: #8DAF9D;
    --ground: #4F6E60;
    --lumen: #C4D7CB;
    --chip-bg: #FFFFFF;
    --show-dark: none;
    --show-light: inline-block;
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #F4F8F5;
  --bg-deep: #E8EFEA;
  --surface: #FFFFFF;
  --line: #CBDDD1;
  --line-soft: #DCE7E0;
  --rule: #9DBBAA;
  --text: #10241E;
  --text-2: #2B463B;
  --muted: #46604F;
  --faint: #53695F;
  --accent: #1D5C48;
  --accent-hi: #164A3A;
  --on-accent: #F4F8F5;
  --sand: #80540F;
  --sand-soft: rgba(128, 84, 15, 0.09);
  --rust: #9C3A2C;
  --rust-soft: rgba(156, 58, 44, 0.08);
  --mint-soft: rgba(29, 92, 72, 0.07);
  --nav-bg: rgba(244, 248, 245, 0.92);
  --hollow: #FFFFFF;
  --box: #FFFFFF;
  --wall: #5E927B;
  --wall-dim: #B4CBBE;
  --earth: #B9CFC2;
  --hatch: #8DAF9D;
  --ground: #4F6E60;
  --lumen: #C4D7CB;
  --chip-bg: #FFFFFF;
  --show-dark: none;
  --show-light: inline-block;
  color-scheme: light;
}

.on-dark { display: var(--show-dark) !important; }
.on-light { display: var(--show-light) !important; }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

/* scroll-padding keeps anything scrolled into view (keyboard focus, the footnote target) clear of
   the sticky nav; the negative scroll-margins below keep section anchors where they were. */
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
ul, ol { padding: 0; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.1em 0.36em;
  border-radius: 5px;
  background: var(--mint-soft);
  color: var(--text-2);
  overflow-wrap: anywhere;
}

code .nw, code.nw1 { white-space: nowrap; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { flex: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.term :focus-visible, .code :focus-visible { outline-color: var(--t-prompt); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15.5px; font-weight: 700; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-secondary { border-color: var(--rule); color: var(--text); background: transparent; }
.btn-secondary:hover { background: var(--mint-soft); border-color: var(--accent); }
.btn-quiet { border-color: var(--line); color: var(--text-2); background: transparent; font-weight: 400; }
.btn-quiet:hover { border-color: var(--rule); color: var(--text); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 14px; gap: 6px; }
.btn-sm svg { width: 14px; height: 14px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--rule); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:disabled { opacity: 0.4; cursor: default; }
#theme-toggle .i-sun { display: var(--show-dark); }
#theme-toggle .i-moon { display: var(--show-light); }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { width: 112px; height: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14.5px; text-decoration: none; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- shared editorial parts ---------- */

.eyebrow {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.sec-no { color: var(--accent); letter-spacing: 0.04em; }

h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.04; letter-spacing: -0.036em; font-weight: 700; text-wrap: balance; }
.sec-lede { margin-top: 16px; max-width: 46em; font-size: 17.5px; line-height: 1.58; color: var(--text-2); text-wrap: pretty; }

.section { padding: 64px 0; scroll-margin-top: -56px; }
.section-alt { background: var(--bg-deep); }

.sec-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-top: 20px; border-top: 1px solid var(--rule); margin-bottom: 40px;
}
.sec-head .eyebrow { grid-column: 1 / 4; padding-top: 12px; }
.sec-main { grid-column: 4 / 13; }
#download, #start { scroll-margin-top: -8px; }

.fig { margin: 0; }
.fig-cap { font-size: 14px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.fig-no { margin-right: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }

/* ---------- hero ---------- */

.hero { padding: 44px 0 0; }

.kicker {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.kicker:hover { color: var(--text); }
.k-ver { color: var(--accent); }
.k-sep { width: 18px; height: 1px; background: var(--rule); }
.k-go { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.kicker svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.kicker:hover svg { transform: translateX(2px); }

h1 {
  margin-top: 20px;
  font-size: clamp(46px, 6.95vw, 100px);
  line-height: 0.96; letter-spacing: -0.048em; font-weight: 700;
  margin-left: -0.05em;
}

.hero-sub {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr;
  column-gap: var(--gap); margin-top: 28px;
}
.standfirst {
  grid-column: 1 / 7; grid-row: 1;
  font-size: clamp(24px, 2.3vw, 33px); line-height: 1.14; letter-spacing: -0.028em; font-weight: 700;
  color: var(--muted); text-wrap: balance;
}
.lede { grid-column: 7 / 13; grid-row: 1 / 3; font-size: 17.5px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.hero-cta { grid-column: 1 / 7; grid-row: 2; align-self: end; margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-meta { margin-top: 12px; font-size: 14px; color: var(--faint); }
.cta-meta a { color: var(--muted); }

/* ---------- Fig. 1: the warren ---------- */

.warren { margin-top: 30px; }
.warren-draw { --gy: 108px; position: relative; min-height: 120px; }
.warren-draw::before {
  /* The ground and the earth run edge to edge; the SVG draws stations and tunnels on top. */
  content: "";
  position: absolute;
  left: calc(50% - 50vw); width: 100vw;
  top: var(--gy); bottom: -10px;
  border-top: 1.5px solid var(--ground);
  background:
    repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 7px) 0 0 / 100% 9px no-repeat,
    radial-gradient(circle, var(--earth) 1.05px, transparent 1.5px) 0 14px / 12px 12px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%);
  pointer-events: none;
}
.warren-draw > svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.noscript { padding: 20px 0; font-size: 14px; color: var(--muted); }

/* stations */
.w-name { font-family: var(--mono); font-size: 15px; font-weight: 500; fill: var(--text); }
.w-name .dot { font-size: 0.8em; }
.w-name .stt { font-weight: 400; fill: var(--muted); }
.w-name .stt.on { fill: var(--accent); }
.w-name .stt.bad { fill: var(--rust); }
.w-det { font-family: var(--mono); font-size: 12.5px; fill: var(--muted); }
.w-det.hl { fill: var(--text-2); }
.w-det.ok { fill: var(--accent); }
.w-det.warn { fill: var(--rust); }
.w-det.pub { fill: var(--sand); }
.dot { fill: var(--faint); }
.dot.on { fill: var(--accent); }
.dot.bad { fill: var(--rust); }
.dot.pub { fill: var(--sand); }
.w-ico { fill: var(--bg); stroke: var(--text-2); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s ease; }
.w-led { fill: var(--faint); }
.w-station.live .w-led { fill: var(--accent); }
.w-station.ghost .w-ico { stroke: var(--faint); stroke-dasharray: 3 3; }
.w-station.ghost .w-name { fill: var(--muted); }
.w-station.revoked .w-ico { stroke: var(--rust); }
.w-station.pub .w-ico { stroke: var(--sand); }
.w-hit { fill: transparent; }

/* iPhone and iPad: coming. Outlined devices on the outer ground and a tunnel that is only begun.
   Static: never lit, never animated, never part of the recorded run. */
.w-coming .w-ico { stroke: var(--faint); stroke-dasharray: 3 3; }
.w-coming .w-ico-in { stroke-dasharray: none; }
.w-coming .w-name { fill: var(--muted); }
.w-coming .w-name .dot { fill: var(--faint); }
.w-coming-tag rect { fill: var(--chip-bg); stroke: var(--faint); stroke-width: 1.1; stroke-dasharray: 3 2.5; }
.w-coming-tag text { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; fill: var(--muted); }
.w-bore { fill: none; stroke: var(--wall); stroke-width: 1.5; stroke-dasharray: 5 5; stroke-linecap: butt; }
.w-bore-face { stroke-dasharray: 3 3.5; }
/* sparse dots keep the planned line lighter than the walls; full --wall keeps it at 3:1 or better */
.w-bore-plan { fill: none; stroke: var(--wall); stroke-width: 1.5; stroke-dasharray: 1.5 7; stroke-linecap: round; }

/* the same, as a row under narrower drawings */
/* Same columns as the numbered notes, so the text lines up with theirs. */
.fig-coming {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; row-gap: 3px; align-items: center;
  margin-top: 20px; font-size: 14px; line-height: 1.5; color: var(--muted);
}
.warren[data-coming="svg"] .fig-coming { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fc-ico { grid-column: 1; grid-row: 1; width: 26px; height: 20px; margin-left: -1px; overflow: visible; fill: var(--bg); stroke: var(--faint); stroke-width: 1.25; stroke-dasharray: 2.2 2; stroke-linecap: round; }
.fc-ico .in { stroke-dasharray: none; }
.fc-t { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.fc-t strong { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.fc-note { grid-column: 2; grid-row: 2; text-wrap: pretty; }

/* tunnels */
.w-guide { fill: none; stroke: var(--wall-dim); stroke-width: 1.5; stroke-dasharray: 1.5 7; stroke-linecap: round; }
.w-wall { fill: none; stroke: var(--wall); stroke-linejoin: round; stroke-linecap: butt; }
.w-hollow { fill: none; stroke: var(--hollow); stroke-linejoin: round; stroke-linecap: butt; }
.w-chamber-wall { fill: var(--wall); }
.w-chamber-in { fill: var(--hollow); }
.w-lumen { fill: none; stroke: var(--lumen); stroke-width: 2.5; stroke-linecap: round; transition: stroke 0.35s ease, opacity 0.35s ease; }
.w-lumen.on { stroke: var(--accent); }
.w-lumen.open { stroke: var(--sand); }
.w-lumen.dead { stroke: var(--rust); opacity: 0.7; stroke-dasharray: 3 6; }
.w-hum { fill: none; stroke: var(--hollow); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 3 13; opacity: 0; }
.w-hum.on { opacity: 1; }

.w-client-path { fill: none; stroke: var(--sand); stroke-width: 1.75; stroke-dasharray: 4 5; stroke-linecap: round; }
.w-client { opacity: 0; transition: opacity 0.4s ease; }
.w-client.on { opacity: 1; }
.w-client .w-ico { stroke: var(--sand); }
.w-client-t { font-family: var(--mono); font-size: 12.5px; fill: var(--sand); }

.w-gate { opacity: 0; transition: opacity 0.3s ease; }
.w-gate.on { opacity: 1; }
.w-gate rect { fill: var(--chip-bg); stroke: var(--wall); stroke-width: 1.25; }
.w-gate text { font-family: var(--mono); font-size: 12px; fill: var(--text-2); }
.w-gate.open rect { stroke: var(--accent); }
.w-gate.shut rect { stroke: var(--rust); }
.w-gate.shut text { fill: var(--rust); }

.w-seal { opacity: 0; }
.w-seal.on { opacity: 1; }
.w-seal circle { fill: var(--chip-bg); stroke: var(--rust); stroke-width: 1.6; }
.w-seal path { fill: none; stroke: var(--rust); stroke-width: 2; stroke-linecap: round; }
.w-seal rect { fill: var(--chip-bg); stroke: color-mix(in srgb, var(--rust) 60%, transparent); stroke-width: 1.2; }
.w-seal text { font-family: var(--mono); font-size: 12px; fill: var(--rust); }

.w-sign rect { fill: var(--chip-bg); stroke: var(--rust); stroke-width: 1.2; }
.w-sign path { fill: none; stroke: var(--rust); stroke-width: 1.7; stroke-linecap: round; }
.w-sign text { font-family: var(--mono); font-size: 12px; fill: var(--rust); }

.w-mark circle { fill: var(--bg); stroke: var(--accent); stroke-width: 1.25; }
.w-mark text { font-family: var(--mono); font-size: 12px; font-weight: 500; fill: var(--accent); }
/* A halo in the page colour keeps the stippled ground from touching the letters. */
.w-ann text { font-family: var(--font); font-size: 14px; fill: var(--muted); paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }
.w-ann .b { fill: var(--text); font-weight: 700; }

/* packets */
.w-pkt { opacity: 0; }
.w-pkt.show { opacity: 1; }
.w-pkt-dot { fill: var(--accent); stroke: var(--hollow); stroke-width: 2; }
.w-pkt.open .w-pkt-dot { fill: var(--sand); }
.w-pkt.bad .w-pkt-dot { fill: var(--rust); }
.w-pkt.hs .w-pkt-dot { fill: var(--accent-hi); }
.w-pkt-chip { fill: var(--chip-bg); stroke: color-mix(in srgb, var(--accent) 60%, transparent); stroke-width: 1.2; }
.w-pkt.open .w-pkt-chip { stroke: color-mix(in srgb, var(--sand) 70%, transparent); }
.w-pkt.cipher .w-pkt-chip { stroke: var(--wall); stroke-dasharray: 3 3; }
.w-pkt.bad .w-pkt-chip { stroke: color-mix(in srgb, var(--rust) 65%, transparent); }
.w-pkt-text { font-family: var(--mono); font-size: 12px; fill: var(--text); }
.w-pkt.cipher .w-pkt-text { fill: var(--muted); letter-spacing: 0.04em; }
.w-pkt.open .w-pkt-text { fill: var(--sand); }
.w-pkt-ico { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.w-pkt.cipher .w-pkt-ico { stroke: var(--muted); }
.w-pkt.open .w-pkt-ico { stroke: var(--sand); }

.warren[data-layout="narrow"] .w-name { font-size: 13px; }
.warren[data-layout="narrow"] .w-det { font-size: 11.5px; }
.warren[data-layout="narrow"] .w-pkt-text,
.warren[data-layout="narrow"] .w-gate text,
.warren[data-layout="narrow"] .w-seal text,
.warren[data-layout="narrow"] .w-sign text,
.warren[data-layout="narrow"] .w-client-t { font-size: 11px; }
.warren[data-layout="narrow"] .w-mark text { font-size: 11px; }

@media (prefers-reduced-motion: no-preference) {
  .w-hum.on { animation: hum 1.4s linear infinite; }
  .warren[data-state="paused"] .w-hum.on,
  .warren[data-state="ended"] .w-hum.on { animation-play-state: paused; }
  .w-client-path { animation: march 1.6s linear infinite; }
  .warren[data-state="paused"] .w-client-path,
  .warren[data-state="ended"] .w-client-path { animation-play-state: paused; }
}
@keyframes hum { to { stroke-dashoffset: -32; } }
@keyframes march { to { stroke-dashoffset: -18; } }

/* numbered notes: drawn inside the figure on wide screens, listed here otherwise */
.fig-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap);
  margin-top: 26px; list-style: none;
}
/* When the notes are drawn inside the figure, the list stays for screen readers (the drawing's
   copies are aria-hidden). */
.warren:not([data-notes="list"]) .fig-notes { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fig-notes li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding-right: 16px; }
.mk {
  display: inline-grid; place-items: center;
  width: 23px; height: 23px; margin-top: 1px;
  border-radius: 50%; border: 1.25px solid var(--accent);
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--accent);
}
.fig-notes h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.fig-notes p { margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* the bar under the drawing: what is happening, and who can read it */
.figbar {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 20px 56px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule);
}
.now { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.mini-play {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%; border: 0;
  background: var(--accent); color: var(--on-accent); cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.mini-play:hover { background: var(--accent-hi); }
.mini-play:active { transform: scale(0.96); }
.mini-play svg { grid-area: 1 / 1; width: 18px; height: 18px; }
.mini-play .i-play, .mini-play .i-pause { fill: currentColor; }
.mini-play .i-play { transform: translateX(1px); }
.mini-play .i-replay { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mini-play .i-pause, .mini-play .i-replay { display: none; }
.warren[data-state="playing"] .mini-play .i-play { display: none; }
.warren[data-state="playing"] .mini-play .i-pause { display: block; }
.warren[data-state="ended"] .mini-play .i-play { display: none; }
.warren[data-state="ended"] .mini-play .i-replay { display: block; }
.now-text { min-width: 0; padding-top: 1px; }
.now-title { display: flex; align-items: baseline; gap: 12px; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.016em; }
.now-num { flex: none; font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--faint); letter-spacing: 0.02em; }
.now-text .verdict { margin-top: 8px; }
/* inline-block with an inline arrow, so when the link wraps the arrow follows its last word */
.now-link { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.now-link svg { display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.verdict { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.verdict .vk { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1.25px solid var(--line); }
.verdict .vk svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.verdict[data-tone="none"] .vk { visibility: hidden; }
.verdict[data-tone="ok"] .vk, .verdict[data-tone="sealed"] .vk, .verdict[data-tone="info"] .vk, .verdict[data-tone="key"] .vk { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.verdict[data-tone="deny"] .vk { color: var(--rust); border-color: color-mix(in srgb, var(--rust) 60%, transparent); background: var(--rust-soft); }
.verdict[data-tone="public"] .vk { color: var(--sand); border-color: color-mix(in srgb, var(--sand) 60%, transparent); background: var(--sand-soft); }
.verdict .vt { min-width: 0; }

.seen { min-width: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.seg button {
  height: 32px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--muted);
  font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.warren[data-view="relay"] .seg button[data-view="relay"][aria-pressed="true"] { background: var(--sand); color: var(--bg); }
.seen-h { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.warren[data-view="relay"] .seen-h { color: var(--sand); }
.seen-list { list-style: none; margin-top: 6px; min-height: calc(3 * 1.62em); font-family: var(--mono); font-size: 12.5px; line-height: 1.62; }
.seen-list li { display: flex; gap: 12px; color: var(--muted); }
.seen-list li:first-child { color: var(--text); }
.seen-list time { flex: none; min-width: 8ch; color: var(--faint); }
.warren[data-view="machines"] .seen-list time { display: none; }
.seen-list li:first-child time { color: var(--muted); }
.seen-list .s { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.warren .fig-cap { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.key { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.key-i { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 26px; flex: none; }
.sw-e2e, .sw-open, .sw-bad { height: 3px; border-radius: 3px; }
.sw-e2e { background: var(--accent); }
.sw-open { background: var(--sand); }
.sw-bad { background: repeating-linear-gradient(90deg, var(--rust) 0 4px, transparent 4px 7px); }
.sw-tube { height: 12px; border-top: 1.75px solid var(--wall); border-bottom: 1.75px solid var(--wall); }
.sw-coming { height: 12px; background: linear-gradient(90deg, var(--wall) 50%, transparent 0) 0 0 / 8px 1.5px repeat-x, linear-gradient(90deg, var(--wall) 50%, transparent 0) 0 100% / 8px 1.5px repeat-x; }

/* ---------- numbers ---------- */

.stats { padding: 56px 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; border-top: 1px solid var(--rule); }
.stat { padding: 26px 28px 0; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-num {
  display: flex; align-items: baseline;
  font-size: clamp(60px, 7vw, 104px); line-height: 0.86; letter-spacing: -0.06em; font-weight: 700;
  margin-left: -0.04em; font-variant-numeric: tabular-nums;
}
.unit { margin-left: 0.14em; font-size: 0.3em; letter-spacing: -0.01em; font-weight: 400; color: var(--muted); }
.stat-label { margin-top: 16px; font-size: 18px; font-weight: 700; letter-spacing: -0.012em; line-height: 1.3; }
.stat-label .fn { margin-left: 2px; text-decoration: none; color: var(--accent); }
.stat-note { margin-top: 6px; max-width: 30em; font-size: 14.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.stats-foot { margin-top: 24px; font-size: 13px; line-height: 1.55; color: var(--faint); }
.stats-foot .fn { margin-right: 6px; color: var(--accent); }
.field { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); max-width: 50em; }
.field-h { font-size: 18px; font-weight: 700; letter-spacing: -0.012em; line-height: 1.3; }
.field-p { margin-top: 10px; font-size: 15px; line-height: 1.58; color: var(--text-2); text-wrap: pretty; }
.field-t { margin-top: 18px; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.field-t th, .field-t td { padding: 8px 0 8px 28px; text-align: right; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.field-t th:first-child { padding-left: 0; text-align: left; }
.field-t thead th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field-t tbody th { font-weight: 700; }
.field-fine { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--faint); text-wrap: pretty; }
.field-fine a { color: var(--muted); }
@media (max-width: 480px) { .field-t th, .field-t td { padding-left: 16px; } .field-p { font-size: 14.5px; } }

/* ---------- the run (film band, dark in both themes) ---------- */

.film {
  --bg: #0A1813;
  --text: #E8F3EC;
  --text-2: #C4D7CC;
  --muted: #9BB5AA;
  --faint: #86A396;
  --accent: #B8E0C8;
  --accent-hi: #D2EEDD;
  --on-accent: #10241E;
  --line: #294A3D;
  --line-soft: #1E3A30;
  --rule: #3B6152;
  --sand: #E4C48E;
  --sand-soft: rgba(228, 196, 142, 0.12);
  --rust: #F0A39A;
  --rust-soft: rgba(240, 163, 154, 0.12);
  --mint-soft: rgba(184, 224, 200, 0.09);
  margin-top: 56px;
  padding: 60px 0;
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
  scroll-margin-top: -80px;
}

.film-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto;
  column-gap: var(--gap);
}
.film-head { grid-column: 1 / 5; grid-row: 1; }
.film-head h2 { margin-top: 20px; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.05; }
.film-lede { margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.scenes { grid-column: 1 / 5; grid-row: 2; margin-top: 28px; min-width: 0; }
.player { grid-column: 5 / 13; grid-row: 1 / 4; min-width: 0; }
.player-foot { grid-column: 1 / 5; grid-row: 3; align-self: end; margin-top: 24px; font-size: 13.5px; line-height: 1.6; color: var(--faint); }
.player-foot a { color: var(--muted); }

/* scene list */
.scenes-d > summary { display: none; }
.scenes-d > summary::-webkit-details-marker { display: none; }
.rail { list-style: none; border-top: 1px solid var(--line); }
.rail li { position: relative; border-bottom: 1px solid var(--line-soft); }
.rail button {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: baseline; gap: 10px;
  width: 100%; padding: 8px 0 9px;
  border: 0; background: none; text-align: left; cursor: pointer; color: var(--muted);
}
.rail .num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.rail .ttl { font-size: 15px; line-height: 1.35; transition: color 0.15s ease; }
.rail .time { font-family: var(--mono); font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.rail .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; opacity: 0; }
.rail .bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.rail li.is-current .bar { opacity: 1; }
.rail li.is-done .ttl { color: var(--text-2); }
.rail li.is-current .ttl { color: var(--text); font-weight: 700; }
.rail li.is-current .num { color: var(--accent); }
.rail button:hover .ttl { color: var(--text); }
.rail button:focus-visible { outline-offset: -2px; border-radius: 4px; }

/* screen */
.term {
  position: relative;
  border-radius: 16px;
  background: var(--t-bg);
  border: 1px solid var(--t-line);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  color: var(--t-text);
}
.term-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 42px; padding: 0 18px;
  background: var(--t-bar); border-bottom: 1px solid var(--t-line);
  font-family: var(--mono); font-size: 12px; color: var(--t-dim); white-space: nowrap;
}
.term-title { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--t-bright); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11.5px; }
.term-dim { color: var(--t-dim); font-weight: 400; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; font-size: 12px; }
.term-meta { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.dotsep { width: 3px; height: 3px; border-radius: 50%; background: var(--t-dim); opacity: 0.7; }
.rec { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--t-green); box-shadow: 0 0 0 3px rgba(143, 214, 171, 0.14); }
.player[data-state="playing"] .rec { animation: rec 1.8s ease-in-out infinite; }
@keyframes rec { 50% { box-shadow: 0 0 0 5px rgba(143, 214, 171, 0.03); opacity: 0.7; } }

.term-tabs { display: flex; gap: 2px; padding: 0 8px; background: var(--t-bar); border-bottom: 1px solid var(--t-line); }
.term-tabs button {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 9px;
  height: 42px; padding: 12px 12px 0;
  border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: none; color: var(--t-dim);
  font-family: var(--mono); font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.term-tabs button:hover { color: var(--t-text); }
.tab-name { position: relative; }
.tab-role { font-size: 11.5px; }
.term-tabs button[aria-selected="true"] { color: var(--t-bright); border-bottom-color: var(--t-prompt); }
.term-tabs button[aria-selected="true"] .tab-role { color: var(--t-key); }
.term-tabs button:focus-visible { outline-offset: -4px; }
.unread { position: absolute; top: -2px; right: -8px; width: 6px; height: 6px; border-radius: 50%; background: var(--t-yellow); opacity: 0; transition: opacity 0.2s ease; }
.term-tabs button.has-unread .unread { opacity: 1; }

/* a small map of the three machines, following the run */
.strip {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 18px;
  border-bottom: 1px solid var(--t-line);
  font-family: var(--mono); font-size: 12px; color: var(--t-dim); white-space: nowrap;
}
.sn { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.sn b { font-weight: 500; color: var(--t-text); }
.sn em { font-style: normal; color: var(--t-dim); }
.sd { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--t-dim); }
.sn.on .sd { background: var(--t-green); box-shadow: none; }
.sn.bad .sd { background: var(--t-red); box-shadow: none; }
.sn.bad em { color: var(--t-red); }
.sn.pub .sd { background: var(--t-green); box-shadow: 0 0 0 2px rgba(228, 196, 142, 0.55); }
.sn.pub em { color: var(--t-yellow); }
.sl { position: relative; flex: 1 1 auto; min-width: 18px; height: 0; border-top: 1.5px dashed var(--t-line); }
.sl.on { border-top: 2px solid var(--t-green); }
.sl.dead { border-top: 1.5px dashed var(--t-red); }
.sl.pub { border-top: 2px solid var(--t-yellow); }
.sx { position: absolute; left: 50%; top: -8px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--t-bg); display: none; }
.sl.dead .sx, .sl.deny .sx { display: block; box-shadow: inset 0 0 0 1.5px var(--t-red); }
.sl.dead .sx::before, .sl.deny .sx::before, .sl.dead .sx::after, .sl.deny .sx::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6.25px; height: 1.5px; background: var(--t-red); transform: rotate(45deg); }
.sl.dead .sx::after, .sl.deny .sx::after { transform: rotate(-45deg); }
.sl.deny .sx { left: auto; right: -2px; }

.panes { position: relative; }
.pane { display: none; min-width: 0; }
.panes[data-focus="relay"] .pane[data-pane="relay"],
.panes[data-focus="laptop"] .pane[data-pane="laptop"],
.panes[data-focus="desktop"] .pane[data-pane="desktop"] { display: block; }
.pane.cut .pane-body { animation: cut 0.28s ease-out; }
@keyframes cut { from { opacity: 0.25; } to { opacity: 1; } }

.pane-body {
  --rows: 16;
  height: calc(var(--rows) * 1.62em + 28px);
  padding: 14px 20px 14px;
  overflow-x: hidden; overflow-y: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.62;
  white-space: pre-wrap; overflow-wrap: anywhere;
  scrollbar-width: thin; scrollbar-color: var(--t-line) transparent;
  font-variant-ligatures: none;
}
.pane-body:focus-visible { outline-offset: -2px; border-radius: 0; }
.pane-body.is-scrolled { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 2.2em); mask-image: linear-gradient(to bottom, transparent 0, #000 2.2em); }
.pane-body::-webkit-scrollbar { width: 8px; height: 8px; }
.pane-body::-webkit-scrollbar-thumb { background: var(--t-line); border-radius: 8px; }

.l { display: block; min-height: 1.62em; padding-left: 2ch; text-indent: -2ch; }
.l.cmd { color: var(--t-bright); margin-top: 0.45em; }
.l.cmd:first-child, .l.idle:first-child { margin-top: 0; }
.l.idle { margin-top: 0.45em; }
.ps { color: var(--t-prompt); margin-right: 1ch; user-select: none; -webkit-user-select: none; }
.cmt { color: var(--t-dim); }
.tk { white-space: nowrap; }
.l.tbl {
  padding-left: 0; text-indent: 0;
  white-space: pre; overflow-x: auto; overflow-wrap: normal;
  scrollbar-width: thin; scrollbar-color: var(--t-line) transparent;
}
.l.tbl::-webkit-scrollbar { height: 6px; }
.l.tbl::-webkit-scrollbar-thumb { background: var(--t-line); border-radius: 6px; }
.l.tbl.overflows { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), rgba(0, 0, 0, 0.35)); mask-image: linear-gradient(to right, #000 calc(100% - 28px), rgba(0, 0, 0, 0.35)); }
.l.tbl.overflows.at-end { -webkit-mask-image: none; mask-image: none; }
.l.tbl:focus-visible { outline-offset: 0; border-radius: 4px; }
.l.fresh { animation: fresh 0.45s ease-out; }
@keyframes fresh { from { opacity: 0; } to { opacity: 1; } }
.a-dim { color: var(--t-dim); }
.a-it { font-style: italic; color: var(--t-key); }
.a-b { font-weight: 500; }
.a-g { color: var(--t-green); }
.a-y { color: var(--t-yellow); }
.a-r { color: var(--t-red); }
.a-b.a-dim { font-weight: 400; }

/* highlighted recorded lines (the text itself is untouched) */
.l.hl { margin-left: -20px; margin-right: -20px; padding-left: calc(20px + 2ch); padding-right: 20px; box-shadow: inset 3px 0 0 var(--hl); background: var(--hl-bg); transition: background-color 0.4s ease, box-shadow 0.4s ease; }
.l.tbl.hl { padding-left: 20px; }
.l.hl.tone-ok, .l.hl.tone-sealed, .l.hl.tone-key, .l.hl.tone-info { --hl: var(--t-green); --hl-bg: rgba(143, 214, 171, 0.1); }
.l.hl.tone-deny { --hl: var(--t-red); --hl-bg: rgba(240, 163, 154, 0.12); }
.l.hl.tone-public { --hl: var(--t-yellow); --hl-bg: rgba(228, 196, 142, 0.11); }
.l.hl.past { --hl: #2A4A3E; --hl-bg: transparent; }
.cur { display: inline-block; width: 0.62em; height: 1.2em; margin-left: 1px; vertical-align: -0.22em; background: var(--t-prompt); animation: blink 1.05s steps(1) infinite; text-indent: 0; }
@keyframes blink { 50% { opacity: 0; } }
.cur-idle { background: transparent; box-shadow: inset 0 0 0 1px var(--t-dim); opacity: 0.6; animation: none; }
.l.idle .ps { color: var(--t-dim); }

/* transport */
.term-ctl {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--t-bar); border-top: 1px solid var(--t-line);
}
.play {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%; border: 0;
  background: var(--t-prompt); color: #10241E; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.play:hover { background: #D2EEDD; }
.play:active { transform: scale(0.96); }
.play svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.play .i-play, .play .i-pause { fill: currentColor; }
.play .i-play { transform: translateX(1px); }
.play .i-replay { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.play .i-pause, .play .i-replay { display: none; }
.player[data-state="playing"] .play .i-play { display: none; }
.player[data-state="playing"] .play .i-pause { display: block; }
.player[data-state="ended"] .play .i-play { display: none; }
.player[data-state="ended"] .play .i-replay { display: block; }

.scrub { position: relative; height: 40px; min-width: 0; margin: 0 4px; }
.scrub-track { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: #1E382F; overflow: hidden; }
.scrub-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--t-prompt); border-radius: 6px; }
.scrub-ticks { position: absolute; inset: 0; }
.scrub-ticks i { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--t-bar); }
.scrub input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.scrub input:focus-visible { outline: 2px solid var(--t-prompt); outline-offset: 2px; border-radius: 8px; }
.scrub input::-webkit-slider-runnable-track { height: 40px; background: transparent; }
.scrub input::-moz-range-track { height: 40px; background: transparent; }
.scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: 12px; border-radius: 50%; background: var(--t-bright); border: 3px solid var(--t-prompt); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
.scrub input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--t-bright); border: 3px solid var(--t-prompt); }
.tc { font-family: var(--mono); font-size: 12px; color: var(--t-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip-btn {
  height: 34px; min-width: 44px; padding: 0 9px;
  border-radius: 999px; border: 1px solid var(--t-line);
  background: transparent; color: var(--t-dim);
  font-family: var(--mono); font-size: 12px; cursor: pointer;
}
.chip-btn:hover { color: var(--t-bright); border-color: #2E5446; }
.t-btn { width: 34px; height: 34px; border-color: var(--t-line); color: var(--t-dim); }
.t-btn:hover { color: var(--t-bright); border-color: #2E5446; }

/* caption under the screen */
.caption { position: relative; margin-top: 20px; }
.cap-title { display: flex; align-items: baseline; gap: 12px; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.014em; color: var(--text); }
.cap-num { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--faint); letter-spacing: 0.02em; }
.cap-note { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.caption .verdict { margin-top: 10px; font-weight: 700; color: var(--text); }

/* ---------- Fig. 2: security ---------- */

.sec { padding-top: 64px; }
.fig-sec { margin-top: 4px; }
.sec-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sec-tall { display: none; max-width: 440px; margin: 0 auto; }

.s-block { fill: var(--box); stroke: var(--line); stroke-width: 1; }
.s-box { fill: var(--box); stroke: var(--line); stroke-width: 1; }
.s-box-open { stroke-dasharray: 5 5; stroke: var(--rule); }
.s-div { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; fill: none; }
.s-tag { font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.s-tag-e2e { fill: var(--accent); }
.s-tag-open { fill: var(--sand); }
.s-name { font-family: var(--font); font-size: 17px; font-weight: 700; fill: var(--text); letter-spacing: -0.01em; }
.s-sub { font-family: var(--mono); font-size: 13.5px; fill: var(--faint); }
.s-code { font-family: var(--mono); font-size: 13.5px; fill: var(--text-2); }
.s-text { font-family: var(--font); font-size: 14.5px; fill: var(--muted); }
.s-note { font-family: var(--font); font-size: 14.5px; fill: var(--muted); }
.s-strong { fill: var(--text); font-weight: 700; }
.s-tube path { fill: none; stroke: var(--wall); stroke-width: 26; }
.s-tube-in path { fill: none; stroke: var(--hollow); stroke-width: 22.5; }
.s-line { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.s-line.s-e2e { stroke: var(--accent); }
.s-line.s-open { stroke: var(--sand); }
.s-flow { fill: none; stroke: var(--hollow); stroke-width: 3; stroke-dasharray: 3 14; opacity: 0; }
.s-lbl { font-family: var(--mono); font-size: 13.5px; fill: var(--faint); }
.s-lbl-e2e { fill: var(--accent); }
.s-lbl-open { fill: var(--sand); }
.s-chip rect { fill: var(--box); stroke-width: 1.4; }
.s-chip text { font-family: var(--mono); font-size: 13.5px; font-weight: 500; }
.s-ico { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.s-chip-e2e rect, .s-chip-e2e .s-ico { stroke: var(--accent); }
.s-chip-e2e text { fill: var(--accent); }
.s-chip-open rect, .s-chip-open .s-ico { stroke: var(--sand); }
.s-chip-open text { fill: var(--sand); }
.s-cmd rect { fill: var(--chip-bg); stroke: var(--line); stroke-width: 1; }
.s-cmd text { font-family: var(--mono); font-size: 13.5px; fill: var(--text-2); }
.s-cmd-open rect { stroke: color-mix(in srgb, var(--sand) 55%, var(--line)); }
.sec-tall .s-tag { font-size: 14px; letter-spacing: 0.08em; }
.sec-tall .s-lbl, .sec-tall .s-code, .sec-tall .s-sub, .sec-tall .s-cmd text, .sec-tall .s-chip text { font-size: 14px; }
.sec-tall .s-note { font-size: 14.5px; }

@media (prefers-reduced-motion: no-preference) {
  .s-flow { opacity: 0.9; animation: sflow 1.3s linear infinite; }
}
@keyframes sflow { to { stroke-dashoffset: -34; } }

.fig-foot { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 30px; list-style: none; font-size: 13.5px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 10px; }
.fig-foot .fig-cap { margin-top: 10px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 40px; }
.fact { padding-top: 16px; border-top: 1px solid var(--rule); padding-right: 16px; }
.fact h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.018em; }
.fact ul { list-style: none; margin-top: 10px; display: grid; gap: 7px; }
.fact li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.fact li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1.5px; background: var(--accent); border-radius: 2px; }
.fact li code { font-size: 0.84em; }

/* ---------- sidehead sections (commands, limits) ---------- */

.section-side { padding-top: 24px; }
.side-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.side-head { grid-column: 1 / 4; position: sticky; top: 96px; padding-top: 20px; border-top: 1px solid var(--rule); }
.side-head h2 { margin-top: 18px; font-size: clamp(28px, 2.3vw, 33px); line-height: 1.08; letter-spacing: -0.028em; }
.side-lede { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.side-fine { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--faint); text-wrap: pretty; }
.side-fine a { color: var(--muted); }
.side-body { grid-column: 4 / 13; min-width: 0; }

/* commands */
.verbs { border-top: 1px solid var(--rule); }
.verb {
  display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline;
  padding: 14px 0 13px; border-bottom: 1px solid var(--line-soft);
}
.verb-top { display: contents; }
.verb h3 { grid-column: 1 / 3; font-size: 27px; line-height: 1.05; letter-spacing: -0.034em; font-weight: 700; }
.vcmd {
  grid-column: 3 / 6; justify-self: start; max-width: 100%;
  padding: 0; background: none; color: var(--text); font-size: 13.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal;
}
.vcmd::before { content: "$ "; color: var(--accent); }
.verb p { grid-column: 6 / 10; font-size: 14.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ---------- download and quick start ---------- */

.section-alt { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line-soft); }
.dl { position: relative; min-width: 0; padding: 22px 28px 24px; border-left: 1px solid var(--line-soft); }
.dl:first-child { padding-left: 0; border-left: 0; }
.dl:last-child { padding-right: 0; }
.dl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 48px; }
.dl-os h3 { font-size: 28px; line-height: 1.05; letter-spacing: -0.034em; font-weight: 700; }
.dl-arch { margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.dl-target { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.dl-target code { padding: 0; background: none; font-size: 13.5px; color: var(--text); }
.dl-size { color: var(--muted); }
.dl-note { margin-top: 6px; max-width: 48em; font-size: 14.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.dl-note code { font-size: 0.86em; }
.dl-source .code { margin-top: 16px; }
.dl-source .code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.dl-source .code pre > .ln { padding-left: 2ch; text-indent: -2ch; }
.dl-source .dl-note { margin-top: 10px; }
.yours {
  display: inline-block; padding: 2px 9px; align-self: center;
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
}
.dl-win { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; padding: 16px 0 0; font-size: 14.5px; color: var(--muted); }
.dl-win strong { color: var(--text); }
.dl-win-t { flex: 1 1 320px; }
.dl-soon .dl-win + .dl-win { padding-top: 10px; }
/* On phones each coming row wraps into a small stack; more air keeps the two stacks apart. */
@media (max-width: 640px) { .dl-soon .dl-win + .dl-win { padding-top: 22px; } }
.dl-win a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.dl-win svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.sub-head { margin-top: 48px; }
.qs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 16px; }
.qs-row .sec-lede { margin-top: 0; max-width: 36em; }

.code {
  position: relative; min-width: 0;
  border-radius: 12px; background: var(--t-bg); border: 1px solid var(--t-line); color: var(--t-text);
}
.code pre {
  padding: 13px 56px 13px 18px;
  font-family: var(--mono); font-size: 13px; line-height: 1.62;
  /* Wrap at every width, with a hanging indent, so no line ever runs under the copy button. */
  white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: var(--t-line) transparent;
  font-variant-ligatures: none;
}
.code pre > span { display: block; }
.code pre > .ln, .code pre > .cm, .code pre > .plain { padding-left: 2ch; text-indent: -2ch; }
.code pre > .ln.cont { text-indent: 0; }
.code .ln { color: var(--t-bright); }
.code .ln::before { content: "$ "; color: var(--t-prompt); user-select: none; -webkit-user-select: none; }
.code .ln.cont::before { content: none; }
.code .cm { color: var(--t-dim); }
.code .nw { white-space: nowrap; }
.code .plain { color: var(--t-text); }
.code-inline pre { padding: 12px 50px 12px 16px; font-size: 13px; line-height: 1.6; }

.copy {
  position: absolute; top: 9px; right: 9px;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px; border: 1px solid var(--t-line);
  background: var(--t-bar); color: var(--t-dim); cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.code-inline .copy { top: 6px; right: 6px; }
.copy:hover { color: var(--t-bright); border-color: #2E5446; }
.copy svg { width: 15px; height: 15px; grid-area: 1 / 1; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.copy .i-check { display: none; }
.copy.copied { color: var(--t-green); }
.copy.copied .i-copy { display: none; }
.copy.copied .i-check { display: block; }

.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.tabs [role="tab"] {
  height: 38px; padding: 0 16px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--muted);
  font-size: 14.5px; cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }

.steps { list-style: none; counter-reset: step; border-top: 1px solid var(--rule); }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 0; }
.step-text { grid-column: 1 / 5; display: grid; grid-template-columns: 40px minmax(0, 1fr); padding-top: 2px; }
.step-text h3 { grid-column: 2; font-size: 17.5px; font-weight: 700; letter-spacing: -0.014em; line-height: 1.3; }
.step-text h3::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; margin-left: -40px; margin-top: 3px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--accent);
}
.step-text p { grid-column: 2; margin-top: 5px; font-size: 14.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.step > .code { grid-column: 5 / 13; }

/* limits */
.limits { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--rule); }
.limits li { padding: 12px 0 11px; border-bottom: 1px solid var(--line-soft); }
.limits .lim-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.limits h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.012em; }
.limits p { margin-top: 4px; font-size: 14.5px; line-height: 1.52; color: var(--muted); text-wrap: pretty; }
.st {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.st-ok { color: var(--accent); }
.st-ok::before { background: var(--accent); }
.st-part { color: var(--sand); }
.st-part::before { background: var(--sand); }
.st-no { color: var(--faint); }
.st-no::before { box-shadow: inset 0 0 0 1.5px var(--faint); }
.st-design { color: var(--text-2); }
.st-design::before { box-shadow: inset 0 0 0 1.5px var(--text-2); }

/* ---------- footer ---------- */

.foot { position: relative; padding: 48px 0 36px; margin-top: 16px; }
.foot-ground {
  position: absolute; left: 0; right: 0; top: 0; height: 26px;
  border-top: 1.5px solid var(--ground);
  background:
    repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 7px) 0 0 / 100% 9px no-repeat,
    radial-gradient(circle, var(--earth) 1.05px, transparent 1.5px) 0 14px / 12px 12px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, transparent 100%);
  pointer-events: none;
}
.foot-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand img { width: 120px; height: auto; }
.foot-brand p { margin-top: 14px; max-width: 30em; font-size: 14px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-fine { margin-top: 28px; font-size: 12.5px; color: var(--faint); }
.foot-fine a { color: var(--muted); }

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
  .term-tabs .tab-role { display: none; }
}

@media (max-width: 1180px) {
  .sec-wide { display: none; }
  .sec-tall { display: block; }
}

@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl:nth-child(2) { padding-right: 0; }
  .dl-source { grid-column: 1 / -1; padding: 20px 0 22px; border-left: 0; border-top: 1px solid var(--line-soft); }
  .dl-source .code { max-width: 640px; }
  .nav-links { gap: 22px; }
  .film-grid { grid-template-rows: auto; }
  .film-head { grid-column: 1 / 13; grid-row: 1; max-width: 640px; }
  .player { grid-column: 1 / 13; grid-row: 2; margin-top: 36px; }
  .scenes { grid-column: 1 / 13; grid-row: 3; margin-top: 26px; }
  .player-foot { grid-column: 1 / 13; grid-row: 4; }
  .rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); border-top: 0; }
  .rail li { border-bottom: 0; border-top: 1px solid var(--line-soft); }
  .term-tabs .tab-role { display: inline; }
  .figbar { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 20px 32px; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .nav-links { display: none; }
  .side-head { grid-column: 1 / -1; position: static; }
  .side-body { grid-column: 1 / -1; margin-top: 30px; }
  .side-head h2 { font-size: clamp(30px, 5vw, 40px); max-width: 16em; }
  .side-lede, .side-fine { max-width: 40em; }
  .sec-head .eyebrow { grid-column: 1 / -1; padding-top: 0; }
  .sec-main { grid-column: 1 / -1; margin-top: 20px; }
  .hero-sub { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: 16px; }
  .standfirst, .lede, .hero-cta { grid-column: 1 / -1; grid-row: auto; max-width: 640px; }
  .hero-cta { margin-top: 6px; }
  .figbar { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .stat { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); column-gap: var(--gap); align-items: end; padding: 24px 0 26px; border-left: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; padding-bottom: 0; }
  .stat-label { margin-top: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .verb { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 8px; }
  .verb h3 { grid-column: 1 / 4; grid-row: 1 / 3; }
  .vcmd { grid-column: 4 / 13; }
  .verb p { grid-column: 4 / 13; }
  .step-text { grid-column: 1 / -1; }
  .step > .code { grid-column: 1 / -1; margin: 12px 0 0 40px; }
}

@media (max-width: 720px) {
  .fig-notes { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .limits { grid-template-columns: minmax(0, 1fr); }
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .dl, .dl:first-child, .dl:last-child { padding: 18px 0 20px; border-left: 0; }
  .dl + .dl { border-top: 1px solid var(--line-soft); }
  .dl-head { min-height: 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --gap: 16px; }
  .nav-inner { height: 58px; gap: 12px; }
  .brand img { width: 100px; }
  .hero { padding-top: 22px; }
  .kicker { font-size: 11.5px; gap: 6px 10px; }
  .k-sep { width: 12px; }
  .k-sep2 { display: none; }
  .k-go-t { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  h1 { margin-top: 14px; font-size: clamp(38px, 11.6vw, 54px); line-height: 0.98; letter-spacing: -0.045em; }
  .hero-sub { margin-top: 12px; row-gap: 10px; }
  .standfirst { font-size: clamp(19px, 5.6vw, 23px); }
  .lede { font-size: 16px; line-height: 1.55; }
  .hero-cta { margin-top: 4px; }
  .cta-row { gap: 10px; }
  .cta-row .btn { flex: 1 1 auto; height: 46px; padding: 0 16px; font-size: 15px; }
  .cta-meta { margin-top: 10px; font-size: 13.5px; }

  .warren { margin-top: 18px; }
  .fig-notes { margin-top: 18px; }
  .fig-notes li { padding-right: 0; }
  .figbar { margin-top: 18px; padding-top: 16px; gap: 18px; }
  .now { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .mini-play { width: 40px; height: 40px; }
  .now-title { font-size: 17px; gap: 10px; }
  .verdict { font-size: 15px; }
  .seen-list { font-size: 12px; }
  .seen-list time { min-width: 7ch; }
  .key { gap: 6px 16px; }

  .stats { padding-top: 56px; }
  .stats { padding-top: 44px; }
  .stat-note.opt { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
  .stat { display: block; padding: 16px 0 18px; }
  .stat:nth-child(2) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .stat-num { font-size: clamp(50px, 14vw, 58px); }
  .stat-label { margin-top: 10px; font-size: 16.5px; }
  .stat-note { margin-top: 4px; font-size: 14px; line-height: 1.5; }
  .stats-foot { margin-top: 16px; }

  .film { margin-top: 48px; padding: 48px 0 40px; }
  .film-head h2 { margin-top: 16px; }
  .player { margin-top: 26px; }
  .term { border-radius: 12px; margin: 0 -4px; }
  .term-bar { height: 40px; padding: 0 14px; }
  .term-meta { display: none; }
  .term-tabs { padding: 0 4px; }
  .term-tabs button { padding: 12px 10px 0; }
  .term-tabs .tab-role { display: none; }
  .strip { gap: 6px; padding: 0 12px; font-size: 11px; }
  .sn em { display: none; }
  .pane-body { --rows: 15; font-size: 11.5px; padding: 12px 14px; }
  .l.hl { margin-left: -14px; margin-right: -14px; padding-left: calc(14px + 2ch); padding-right: 14px; }
  .l.tbl.hl { padding-left: 14px; }
  .term-ctl { grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 8px; padding: 10px; }
  .term-ctl .tc { display: none; }
  .caption { margin-top: 16px; }
  .cap-title { font-size: 17px; gap: 10px; }
  .cap-note { font-size: 14.5px; }
  .scenes { margin-top: 18px; }
  .scenes-d > summary { display: flex; align-items: center; gap: 10px; padding: 13px 0; list-style: none; cursor: pointer; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-soft); font-size: 15px; font-weight: 700; color: var(--text); }
  .scenes-d > summary:focus-visible { outline-offset: 2px; }
  .sum-now { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--faint); }
  .scenes-d > summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
  .scenes-d[open] > summary svg { transform: rotate(180deg); }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .rail li:first-child { border-top: 0; }
  .rail button { padding: 7px 0 8px; }
  .rail .ttl { font-size: 14.5px; }
  .player-foot { margin-top: 16px; }

  .section { padding: 46px 0; }
  .section-side { padding-top: 12px; }
  .sec { padding-top: 56px; }
  .sec-head { margin-bottom: 24px; padding-top: 14px; }
  .sec-lede { font-size: 16.5px; }
  .fact h3 { font-size: 17.5px; }
  .facts { margin-top: 30px; row-gap: 22px; }
  .fact ul { gap: 4px; margin-top: 8px; }
  .fact li { font-size: 14px; line-height: 1.48; }

  .verb { padding: 14px 0; row-gap: 4px; }
  .verb-top { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; grid-column: 1 / -1; }
  .verb p { grid-column: 1 / -1; grid-row: auto; }
  .verb h3 { font-size: 22px; }
  .verb p { font-size: 14px; line-height: 1.5; }
  .vcmd { font-size: 12.5px; white-space: normal; overflow-wrap: anywhere; }

  .sub-head { margin-top: 48px; }
  .dl-os h3 { font-size: 25px; }
  .dl-head .btn { height: 42px; padding: 0 16px; font-size: 14.5px; }
  .dl-src .dl-os, .dl-src-body { grid-column: 1 / -1; }
  .dl-src .dl-os { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
  .dl-src .dl-arch { margin-top: 0; }

  .tabs { display: flex; width: 100%; }
  .tabs [role="tab"] { flex: 1 1 0; padding: 0 8px; font-size: 14px; }
  .step { padding: 14px 0 16px; }
  .step-text { grid-template-columns: 34px minmax(0, 1fr); }
  .step-text h3::before { margin-left: -34px; margin-top: 3px; }
  .step > .code { margin-left: 0; }
  .code pre, .code-inline pre { font-size: 11.5px; line-height: 1.6; padding: 12px 52px 12px 13px; }
  .step-text p { font-size: 14px; line-height: 1.5; }
  .step > .code { margin-top: 10px; }

  .limits li { padding: 10px 0 9px; }
  .limits h3 { font-size: 16px; }
  .limits p { font-size: 14px; line-height: 1.45; margin-top: 2px; }
  .side-head { padding-top: 14px; }
  .side-head h2 { margin-top: 14px; font-size: clamp(27px, 7.6vw, 30px); }
  .side-body { margin-top: 22px; }

  .foot { padding: 40px 0 28px; }
  .foot-inner { flex-direction: column; gap: 20px; }
  .foot-links { gap: 8px 20px; }
  .foot-fine { margin-top: 20px; }
  .film-lede { font-size: 15px; }
  .key { gap: 4px 16px; }
}

@media (max-width: 360px) {
  .lede { font-size: 15.5px; }
  .cta-row { gap: 8px; }
  .cta-row .btn { padding: 0 12px; font-size: 14.5px; }
  .cta-row .btn .i-dl { display: none; }
  .term-ctl { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .term-ctl .chip-btn { display: none; }
  .strip b { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
