/* Self-hosted fonts (OFL): Geist, Geist Mono, Departure Mono. */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 101.9%; ascent-override: 98.6%; descent-override: 28.9%; line-gap-override: 0%; }
@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url("/fonts/Geist-100-900-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url("/fonts/Geist-100-900-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url("/fonts/Geist-100-900-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url("/fonts/GeistMono-100-900-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url("/fonts/GeistMono-100-900-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url("/fonts/GeistMono-100-900-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Departure Mono"; font-weight: 400; font-display: swap; src: url("/fonts/DepartureMono-Regular.woff2") format("woff2"); }

:root {
  --bg: #0b0d14;
  --bg2: #0f121b;
  --bg3: #131826;
  --border: #1d2334;
  --border-h: #ffffff40;
  --tp: #fff;
  --ts: #dadbdf;
  --tt: #8d9196;
  --ac: #8f8df9;
  --ac-soft: #c5c7ff;
  --ac-dim: #8f8df91a;
  --sel: #4338ca;
  --btn: linear-gradient(180deg, #b7b9ff, #8482f3);
  --btn-ink: #0e0c33;
  --glow: rgba(132, 130, 243, 0.3);
  --hover: #ffffff0a;
  --hdr-bg: #0b0d14eb;
  --glass: linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04) 60%);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 16px 40px rgba(0, 0, 0, 0.35);
  --pill: linear-gradient(#ffffff14, #ffffff05);
  --pill-line: #ffffff1a;
  --pill-edge: inset 0 1px 0.5px #ffffff38, inset 0 -2px 5px #00000059, 0 2px 8px #0006;
  --scan: #ffffff0a;
  --sky: 0.34;

  --sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-pixel: "Departure Mono", var(--mono);

  --hdr-h: 64px;
  --pad-x: clamp(28px, 5vw, 56px);
  --content-x: calc(2 * var(--pad-x) + 1px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
/* Departure Mono has no Vietnamese marks */
:root[lang="vi"] { --font-pixel: var(--mono); }

[data-theme="light"] {
  --bg: #f4f1ea;
  --bg2: #ebe7dd;
  --bg3: #e4dfd3;
  --border: #d9d3c5;
  --border-h: #00000040;
  --tp: #14130f;
  --ts: #3a382f;
  --tt: #6b675b;
  --ac: #4a42c8;
  --ac-soft: #332c9c;
  --ac-dim: #4a42c81a;
  --sel: #8482f3;
  --hover: #0000000a;
  --hdr-bg: #f4f1eaeb;
  --glass: linear-gradient(150deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.42) 60%);
  --glass-edge: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(70, 55, 20, 0.14);
  --pill: linear-gradient(#ffffffd9, #ffffff73);
  --pill-line: #0000001f;
  --pill-edge: inset 0 1px 0.5px #fff, 0 2px 8px #4637141f;
  --scan: #0000000a;
  --sky: 0.2;
  color-scheme: light;
}

*, :before, :after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
[id] { scroll-margin-top: var(--hdr-h); }
::selection { background: var(--sel); color: #fff; }
body { background: var(--bg); color: var(--tp); font-family: var(--sans); min-height: 100vh; margin: 0; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
p { color: var(--ts); margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--tp); outline-offset: 2px; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 2px; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.skip-link { z-index: 200; background: var(--tp); color: var(--bg); border-radius: 0 0 8px; padding: 10px 16px; font-size: 14px; text-decoration: none; position: absolute; top: 0; left: -9999px; }
.skip-link:focus-visible { left: 0; }

/* colour far behind everything: violet, blue, cyan */
.g-sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.g-sky i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(100px); opacity: var(--sky); animation: g-drift 28s ease-in-out infinite alternate; }
.g-sky i:nth-child(1) { background: #7b6cf6; top: -22vmax; left: -14vmax; }
.g-sky i:nth-child(2) { background: #2f7fe0; top: 30vh; right: -20vmax; animation-delay: -9s; }
.g-sky i:nth-child(3) { background: #19b6c9; top: 120vh; left: 4vw; animation-delay: -16s; }
@keyframes g-drift { to { transform: translate3d(6vmax, 5vmax, 0) scale(1.12); } }

/* header */
.lab-body { min-height: 100vh; padding-top: var(--hdr-h); }
.hdr { z-index: 100; height: var(--hdr-h); background: var(--hdr-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); align-items: center; gap: 24px; padding: 0 var(--content-x); display: flex; position: fixed; top: 0; left: 0; right: 0; }
.g-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--tp); text-decoration: none; font-family: "Departure Mono", var(--mono); text-transform: uppercase; letter-spacing: 0.04em; font-size: 16px; margin-right: auto; }
.g-brand img { border-radius: 6px; }
.hdr-right { align-items: center; gap: 8px; display: flex; }
.hdr-cmd, .hdr-terminal { height: 40px; color: var(--ts); -webkit-backdrop-filter: blur(8px) saturate(1.4); backdrop-filter: blur(8px) saturate(1.4); cursor: pointer; background: var(--pill); border: 1px solid var(--pill-line); border-radius: 9999px; flex-shrink: 0; align-items: center; text-decoration: none; transition: border-color 0.15s, color 0.15s; display: inline-flex; box-shadow: var(--pill-edge); }
.hdr-cmd { gap: 9px; padding: 0 16px; font-size: 13px; letter-spacing: 0.01em; }
.hdr-cmd:hover, .hdr-terminal:hover { color: var(--tp); border-color: color-mix(in srgb, var(--ac) 55%, transparent); }
.hdr-seg { padding: 0 5px; gap: 2px; }
.hdr-seg button { height: 28px; padding: 0 10px; border: 0; border-radius: 9999px; background: none; cursor: pointer; font: 11px var(--mono); letter-spacing: 0.06em; color: var(--tt); }
.hdr-seg button[aria-pressed="true"] { color: var(--tp); background: var(--hover); box-shadow: inset 0 0 0 1px var(--pill-line); }
.hdr-terminal { width: 40px; justify-content: center; padding: 0; font: 500 13px var(--mono); color: var(--ac); }
.hdr-terminal svg { width: 16px; height: 16px; }
.gh { fill: currentColor; stroke: none; }
.hdr-terminal.is-plain { color: var(--ts); }
.hdr-terminal-cursor { animation: 1.1s step-end infinite blink; }
@keyframes blink { 50% { opacity: 0; } }

/* intro */
.lab-intro { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; padding: clamp(40px, 6vh, 64px) var(--content-x); }
.lab-intro:after { content: ""; pointer-events: none; background: repeating-linear-gradient(var(--scan) 0 1px, #0000 1px 3px); position: absolute; inset: 0; }
.lab-intro > * { position: relative; z-index: 1; }
.lab-intro-main { display: flex; flex-direction: column; min-width: 0; }
.sr-only { clip-path: inset(50%); white-space: nowrap; border: 0; width: 1px; height: 1px; margin: -1px; padding: 0; position: absolute; overflow: hidden; }
.lab-intro-lede { letter-spacing: -0.02em; color: color-mix(in srgb, var(--tp) 55%, transparent); text-wrap: pretty; max-width: 23em; margin: 0 0 24px; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.2; }
.lab-intro-key { color: var(--tp); }
.lab-intro-name { font-family: "Departure Mono", var(--mono); text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.68em; }
.lab-intro-lede a { color: var(--tp); text-decoration: underline; text-decoration-color: var(--border-h); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.lab-intro-lede a:hover { text-decoration-color: var(--tp); }
.lab-intro-note { color: var(--ts); max-width: 50ch; margin: 0; font-size: 14px; line-height: 1.55; }
.lab-intro-w { display: inline-block; animation: w-in 0.7s var(--ease-out) var(--d, 0ms) backwards; }
.no-anim .lab-intro-w { animation: none; }
@keyframes w-in { from { opacity: 0; transform: translateY(0.35em); filter: blur(4px); } }

.lab-intro-readout { text-align: right; flex-direction: column; align-items: flex-end; gap: 7px; display: flex; min-width: 190px; }
.lab-intro-meta { font-family: var(--mono); color: var(--tt); letter-spacing: 0.04em; text-transform: uppercase; margin: 0; font-size: 11px; line-height: 1.5; }
.lab-intro-meta b { color: var(--ts); font-weight: 400; }
.lab-intro-meta i { font-style: normal; margin: 0 0.4em; animation: 1s ease-in-out infinite pulse; }
@keyframes pulse { 50% { opacity: 0.25; } }
.lab-intro-controls { border-top: 1px solid var(--border); flex-direction: column; align-self: stretch; margin: 4px 0 2px; padding-top: 9px; display: flex; }
.lab-intro-hi { font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--tt); align-items: center; min-height: 32px; padding: 5px 0; font-size: 11px; line-height: 1.5; text-decoration: none; transition: color 0.15s; display: flex; }
.lab-intro-hi span:first-child { margin-right: auto; padding-right: 18px; }
.lab-intro-hi span:last-child { color: var(--ac); transition: transform 0.15s; }
.lab-intro-hi:hover { color: var(--ts); }
.lab-intro-hi:hover span:last-child { transform: translate(2px, -2px); }
.lab-intro-signoff { color: var(--ts); margin-top: auto; padding-top: 24px; }
.lab-intro-signoff svg { display: block; overflow: visible; stroke-width: 1.6; }
.lab-intro-signoff path { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: sig-draw 1.1s cubic-bezier(0.45, 0.05, 0.3, 1) forwards; animation-delay: calc(var(--i) * 0.9s + 1.4s); }
.lab-intro-signoff path:nth-child(1) { --i: 0; }
.lab-intro-signoff path:nth-child(2) { --i: 1; }
.lab-intro-signoff path:nth-child(3) { --i: 2; stroke-width: 1; }
@keyframes sig-draw { to { stroke-dashoffset: 0; } }

/* glass command bar and the lead button */
.g-cmd { display: flex; align-items: center; gap: 12px; width: min(640px, 100%); padding: 9px 9px 9px 16px; border-radius: 14px; background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: var(--glass-edge); }
.g-cmd > span { font: 12px "Departure Mono", var(--mono); color: var(--ac); }
.g-cmd code { flex: 1; font: 13.5px var(--mono); color: var(--tp); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 13px var(--sans); border: 0; border-radius: 9px; padding: 8px 16px; cursor: pointer; color: var(--btn-ink); text-decoration: none; white-space: nowrap; background: var(--btn); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 16px var(--glow); transition: transform 0.2s var(--ease-out), filter 0.2s; }
.g-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.g-btn svg { width: 15px; height: 15px; stroke-width: 2.2; }
.g-btn.is-quiet { color: var(--tp); background: var(--pill); box-shadow: var(--pill-edge), inset 0 0 0 1px var(--pill-line); font-weight: 500; }
.g-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; animation: g-rise 0.9s 1.3s var(--ease-out) backwards; }
.g-top-link { font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ts); text-decoration: none; border-bottom: 1px solid var(--border-h); padding-bottom: 3px; white-space: nowrap; }
.g-top-link:hover { color: var(--ac-soft); border-color: var(--ac); }
.g-top-link span { color: var(--ac); }
@keyframes g-rise { from { opacity: 0; transform: translateY(10px); } }
.g-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.g-tags > span { font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--tt); margin-right: 4px; }
.g-tag { font: 11px/1 var(--mono); color: var(--tt); background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 7px 12px; }
.g-fine { font: 11px/1.6 var(--mono); color: var(--tt); margin: 18px 0 0; }

.on-phone, .on-phone-inline { display: none; }
.on-phone p { font-size: 14px; margin-bottom: 12px; }
.on-phone .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* the screen on the stage */
.lab-stage { position: relative; overflow: hidden; height: clamp(300px, 62vw, 680px); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(var(--border) 1px, #0000 1px) 0 0 / 100% 56px, linear-gradient(90deg, var(--border) 1px, #0000 1px) 0 0 / 56px 100%; }
.lab-stage:before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, #0000 0%, var(--bg) 100%); }
.g-device { position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; width: min(900px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 0 7px 7px; border-radius: 18px; background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: var(--glass-edge), 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(132, 130, 243, 0.16); }
.g-device figcaption { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; font: 10px var(--font-pixel); text-transform: uppercase; letter-spacing: 0.1em; color: var(--tt); white-space: nowrap; overflow: hidden; }
.g-device figcaption i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-h); flex: none; }
.g-device figcaption span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; }
.g-device figcaption b { margin-left: auto; font-weight: 400; color: var(--ac); animation: g-rec 1.6s steps(2) infinite; }
@keyframes g-rec { 50% { opacity: 0.25; } }
.g-device video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #0b0d14; }
.lab-stage.is-plain { height: auto; padding: clamp(28px, 5vw, 56px) 14px; }
.lab-stage.is-plain .g-device { position: relative; left: auto; top: auto; translate: none; margin: 0 auto; max-height: none; }

/* threads of light behind the screen (WebGL); the grid stays as the fallback */
.bd-threads { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: #0b0d14; opacity: 0; visibility: hidden; }
.bd-threads.is-on { opacity: 1; visibility: visible; }
.bd-threads-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* figures */
.g-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-inline: var(--pad-x); border-inline: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.g-stats > div { padding: 28px var(--pad-x); display: flex; flex-direction: column; gap: 6px; }
.g-stats > div + div { border-left: 1px solid var(--border); }
.g-stats b { font: 500 clamp(30px, 4vw, 46px)/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.g-stats span { font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--tt); }

/* grid of cells */
.lab-grid { margin-inline: var(--pad-x); grid-template-columns: 1fr 1fr; display: grid; border-left: 1px solid var(--border); }
.garage-cell { position: relative; min-height: 330px; padding: var(--pad-x); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-direction: column; transition: background 0.15s; display: flex; }
.garage-cell:hover { background: var(--hover); }
.garage-kicker { font: 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tt); margin-bottom: clamp(20px, 4vh, 36px); }
.garage-title { letter-spacing: -0.02em; color: var(--tp); margin: 0 0 20px; font-size: clamp(28px, 3.5vw, 40px); font-weight: 500; line-height: 1.1; }
.garage-desc { color: var(--ts); max-width: 420px; margin: 0; font-size: 15px; line-height: 1.55; }
.garage-cell-foot { justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: auto; padding-top: clamp(24px, 6vh, 48px); display: flex; }
.garage-tags { flex-wrap: wrap; gap: 8px; display: flex; }
.garage-arrow { font: 18px/1 var(--mono); color: var(--tt); transition: color 0.15s, transform 0.15s; }
.garage-cell:hover .garage-arrow { color: var(--tp); transform: translate(3px); }
.garage-cell--soon { grid-column: 1 / -1; min-height: 200px; gap: 16px; align-items: flex-start; background: radial-gradient(60% 120% at 50% 50%, var(--ac-dim), #0000 75%); }
.garage-cell--soon:hover { background: radial-gradient(60% 120% at 50% 50%, var(--ac-dim), #0000 75%); }
.garage-slot-num { font: 11px var(--mono); color: var(--tt); letter-spacing: 0.04em; }
.garage-slot-rule { background: var(--border-h); width: 28px; height: 1px; }
.garage-slot-text { font: 12px/1.65 var(--mono); color: var(--tt); margin: 0; }

/* timeline */
.tl { padding: 18px 0 26px; border-bottom: 1px solid var(--border); }
.tl-scroll { overflow-x: auto; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; --tl-fade: clamp(40px, 7vw, 96px); -webkit-mask-image: linear-gradient(to right, #0000 0, #000 var(--tl-fade), #000 calc(100% - var(--tl-fade)), #0000 100%); mask-image: linear-gradient(to right, #0000 0, #000 var(--tl-fade), #000 calc(100% - var(--tl-fade)), #0000 100%); }
.tl-scroll::-webkit-scrollbar { display: none; }
.tl-scroll.is-drag { cursor: grabbing; user-select: none; }
.tl-track { position: relative; margin: 0 auto; }
.tl-tick { font: 500 11px/1 var(--sans); letter-spacing: 0.04em; color: var(--tt); position: absolute; top: 6px; transform: translate(-50%); }
.tl-tick.is-future { opacity: 0.55; }
.tl-grid { background: var(--border); opacity: 0.6; width: 1px; position: absolute; top: 32px; bottom: 0; }
.tl-grid--q { opacity: 0.25; top: 46px; bottom: 10px; }
.tl-future { background: repeating-linear-gradient(-45deg, var(--scan) 0, var(--scan) 6px, #0000 6px, #0000 12px); pointer-events: none; position: absolute; top: 32px; bottom: 0; right: 0; }
.tl-now { background: linear-gradient(var(--ac), color-mix(in srgb, var(--ac) 12%, transparent)); width: 1px; position: absolute; top: 28px; bottom: 0; }
.tl-now i { background: var(--ac-soft); border-radius: 999px; width: 8px; height: 14px; position: absolute; top: -2px; left: -3.5px; }
.tl-bar { height: 38px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--border); min-width: max-content; color: inherit; align-items: center; gap: 9px; padding: 0 14px; text-decoration: none; white-space: nowrap; transition: border-color 0.18s, opacity 0.18s; display: flex; position: absolute; }
.tl-bar:before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 1px var(--border-h); flex: none; }
.tl-bar b { font: 500 12px/1 var(--sans); color: var(--tp); }
.tl-bar span { font: 12px/1 var(--sans); color: var(--tt); }
.tl-bar.is-current { border-color: color-mix(in srgb, var(--ac) 30%, transparent); background: linear-gradient(to top, color-mix(in srgb, var(--ac) 38%, var(--bg2)) 0%, color-mix(in srgb, var(--ac) 12%, var(--bg2)) 40%, var(--bg2) 85%); box-shadow: inset 0 -6px 12px -6px color-mix(in srgb, var(--ac) 55%, transparent), 0 10px 26px -8px color-mix(in srgb, var(--ac) 45%, transparent); }
.tl-bar.is-current:before { background: var(--ac); box-shadow: none; }
.tl-bar.is-muted { background: repeating-linear-gradient(-45deg, var(--bg2) 0, var(--bg2) 6px, #0000 6px, #0000 12px); }
.tl-bar.is-faint { opacity: 0.6; }
.tl-bar.is-future { border-style: dashed; border-color: color-mix(in srgb, var(--tt) 60%, transparent); background: none; opacity: 0.72; }
a.tl-bar:hover { border-color: var(--border-h); opacity: 1; }
.tl-hint { margin: 10px var(--content-x) 0; font: 11px var(--mono); letter-spacing: 0.04em; color: var(--tt); }

/* jump palette */
.hdr-cmd kbd { min-width: 21px; height: 22px; font: 650 11px/1 var(--sans); color: var(--tt); background: var(--hover); border: 1px solid var(--pill-line); border-radius: 6px; justify-content: center; align-items: center; padding: 0 5px; display: inline-flex; }
.hdr-cmd-keys { gap: 3px; display: inline-flex; }
button.hdr-cmd { font-family: var(--sans); padding-right: 10px; }
.jump { width: min(560px, calc(100vw - 32px)); margin: 14vh auto auto; padding: 0; border: 0; border-radius: 16px; color: var(--tp); background: var(--bg2); box-shadow: var(--glass-edge), 0 40px 100px rgba(0, 0, 0, 0.5); overflow: hidden; }
.jump::backdrop { background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.jump input { width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--tp); font: 16px var(--sans); outline: none; }
.jump ul { list-style: none; margin: 0; padding: 6px; max-height: min(52vh, 420px); overflow-y: auto; }
.jump li { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--ts); }
.jump li span { margin-left: auto; font: 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tt); }
.jump li[aria-selected="true"] { background: var(--hover); color: var(--tp); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 45%, transparent); }
.jump li[aria-selected="true"] span { color: var(--ac); }

/* feedback */
.g-form { display: grid; gap: 10px; max-width: 640px; margin-top: 18px; }
.g-form textarea, .g-form input { width: 100%; padding: 12px 14px; border-radius: 12px; font: 15px/1.5 var(--sans); color: var(--tp); background: var(--hover); border: 1px solid var(--border); resize: vertical; }
.g-form textarea:focus, .g-form input:focus { outline: none; border-color: var(--ac); }
.g-form ::placeholder { color: var(--tt); }
.g-form-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.g-form-row .g-btn { padding: 10px 22px; border-radius: 99px; }
.g-form-row .g-btn:disabled { opacity: 0.6; cursor: default; }
.g-form-row .g-fine { margin: 0; }

/* bands */
.g-band { padding: clamp(48px, 8vh, 84px) var(--content-x); border-top: 1px solid var(--border); }
.lab-grid + .g-band { border-top: 0; }
.g-kicker { font: 11px var(--font-pixel); text-transform: uppercase; letter-spacing: 0.1em; color: var(--tt); margin: 0 0 22px; }
.g-title { font: 500 clamp(26px, 3vw, 38px)/1.1 var(--sans); letter-spacing: -0.03em; color: var(--tp); margin: 0 0 26px; }
.g-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 8px; }
.g-three article { border-top: 1px solid var(--border); padding-top: 18px; }
.g-three .num { font: 11px "Departure Mono", var(--mono); letter-spacing: 0.1em; color: var(--ac); }
.g-three h3 { font: 500 20px/1.2 var(--sans); letter-spacing: -0.02em; margin: 14px 0 8px; }
.g-three p { font-size: 14px; line-height: 1.55; }
.g-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; max-width: 900px; }
.g-two p { margin: 0; font-size: 14px; line-height: 1.55; }
.g-two b { color: var(--tp); font-weight: 500; }
.g-two a { color: var(--tp); text-decoration: underline; text-decoration-color: var(--ac); text-underline-offset: 0.2em; }
.g-two a:hover { color: var(--ac-soft); }

.g-faq { max-width: 820px; }
.g-faq details { border-top: 1px solid var(--border); }
.g-faq details:last-child { border-bottom: 1px solid var(--border); }
.g-faq summary { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; cursor: pointer; list-style: none; font: 500 17px/1.3 var(--sans); letter-spacing: -0.01em; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary:after { content: "+"; margin-left: auto; font: 16px var(--mono); color: var(--ac); transition: transform 0.2s var(--ease-out); }
.g-faq details[open] summary:after { transform: rotate(45deg); }
.g-faq details p { max-width: 62ch; padding: 0 0 18px; font-size: 15px; line-height: 1.55; }

.g-foot { padding: 28px var(--content-x) 70px; border-top: 1px solid var(--border); font-size: 13px; color: var(--tt); }
.g-foot p { margin: 0 0 12px; max-width: 70ch; color: var(--tt); }
.g-foot a { color: var(--ts); text-decoration-color: var(--border-h); text-underline-offset: 0.2em; }
.g-foot a:hover { color: var(--ac-soft); }
.g-foot .g-kicker { margin: 0; }

/* sections ease in as they arrive */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 880px) {
  :root { --pad-x: 24px; }
  .hdr { gap: 12px; padding: 0 16px; }
  .hide-sm { display: none; }
  .hdr-cmd, .hdr-terminal { height: 44px; }
  .hdr-terminal { width: 44px; }
  .hdr-seg button { height: 34px; }
  .lab-intro { grid-template-columns: 1fr; padding-inline: 24px; }
  .lab-intro-readout { text-align: left; align-items: flex-start; min-width: 0; }
  .lab-intro-hi { min-height: 44px; }
  .desk-only { display: none; }
  .on-phone { display: block; margin-top: 24px; }
  .on-phone-inline { display: inline-flex; }
  .g-btn { min-height: 44px; }
  .g-cmd { flex-wrap: wrap; }
  .g-cmd code { flex-basis: calc(100% - 60px); }
  .g-cmd .g-btn { width: 100%; }
  .g-device figcaption span { display: none; }
  .g-stats, .lab-grid { margin-inline: 0; border-inline: 0; }
  .g-stats > div { padding: 22px 16px; }
  .lab-grid { grid-template-columns: 1fr; }
  .garage-cell { min-height: 240px; padding: 36px 24px; border-right: 0; }
  .g-band, .g-foot { padding-inline: 24px; }
  .g-three, .g-two { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-sky i, .g-device figcaption b, .hdr-terminal-cursor, .lab-intro-meta i, .lab-intro-w, .g-top { animation: none; }
  .lab-intro-signoff path { stroke-dashoffset: 0; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
