/* ==========================================================================
   VOLT project page — style.css
   Dark "reading-room" aesthetic: near-black canvas, hairline grid, viewfinder
   corners, electric-lime accent (VOLT), cyan for latent/data.
   ========================================================================== */

:root {
  --bg: #07090c;
  --bg-1: #0a0e13;
  --panel: #0f141b;
  --panel-2: #141b24;
  --panel-3: #1a2330;
  --line: #1c2530;
  --line-2: #2a3644;
  --text: #e8edf3;
  --text-2: #a6b1be;
  --text-3: #8a96a5;
  --volt: #d4ff3a;
  --volt-2: #b9e61f;
  --volt-ink: #0a0d06;
  --cyan: #5bd3ff;
  --rose: #ff6b8b;
  --amber: #ffb35c;
  --data: #3aa6e0;
  --data-muted: #2c3846;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --pad: clamp(18px, 4vw, 40px);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--text); text-decoration-color: rgba(212, 255, 58, .45); text-underline-offset: 3px; }
a:hover { color: var(--volt); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(212, 255, 58, .28); color: #fff; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px;
  background: var(--volt); color: var(--volt-ink); border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--font-mono); }

/* ---------- reading progress + nav ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none;
  background: var(--volt); transform-origin: 0 50%; transform: scaleX(0);
}
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(7, 9, 12, .72);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7, 9, 12, .86); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; }
.brand img { width: 26px; height: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-size: 14px; color: var(--text-2); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--panel-2); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--panel); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform .25s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; order: 3; margin-left: 10px; }
  .nav-cta { order: 2; margin-left: auto; }
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(7, 9, 12, .97); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 16px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 12px 8px; font-size: 16px; border-radius: 10px; }
}

/* ---------- buttons, chips, segmented controls ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2);
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--text-3); color: var(--text); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); font-weight: 600; }
.btn-primary:hover { background: #e2ff6e; border-color: #e2ff6e; color: var(--volt-ink); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .62; cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; border-color: var(--line-2); }
.soon {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; background: var(--panel-3); color: var(--text-2);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  letter-spacing: .04em; background: rgba(15, 20, 27, .6);
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--volt); display: inline-block; }

.seg {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
}
.seg button {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.seg.seg-volt button[aria-pressed="true"] { background: var(--volt); color: var(--volt-ink); }
.seg-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; margin-right: 10px; }

/* viewfinder corners */
.corners { position: absolute; inset: 0; pointer-events: none; z-index: 3;
  --c: rgba(212, 255, 58, .9); --l: 16px; --w: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat;
}
.corners.dim { --c: rgba(232, 237, 243, .35); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 108px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(25px, 2.9vw, 38px); line-height: 1.16; margin: 0 0 24px; max-width: 22ch;
}
.hero h1 .acr { color: var(--volt); }
.authors { margin: 0 0 6px; font-size: 16.5px; line-height: 1.75; color: var(--text); }
.authors span { white-space: nowrap; }
.authors sup, .affils sup { font-size: .68em; color: var(--text-2); margin-left: 1px; }
.affils { margin: 0 0 4px; font-size: 15px; color: var(--text-2); }
.notes { margin: 0 0 26px; font-size: 13.5px; color: var(--text-3); }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
/* wordmark: "VOLUMETRIC LATENT TOKENIZATION" compresses into VOLT (see wordmark.js) */
.wordmark { position: relative; display: inline-block; margin: 6px 0 22px -3px; font-family: var(--font-display); font-weight: 700; font-size: clamp(92px, 11.5vw, 168px); line-height: .82; letter-spacing: -.035em; color: var(--text); user-select: none; -webkit-user-select: none; cursor: pointer; }
.wm-word { display: block; padding-bottom: .04em; white-space: nowrap; }
.wm-l { display: inline-block; transform-origin: 0 0; will-change: transform; }
.wm-phrase { position: absolute; left: 4px; top: 0; white-space: nowrap; font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; line-height: .82; color: var(--text-2); pointer-events: none; }
.wm-phrase span { display: inline-block; }
.wm-phrase .key { color: var(--volt); }
.labs { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.labs img { height: 34px; width: auto; }
.labs .lab { display: inline-flex; align-items: center; gap: 10px; }
.labs .lab-text { font-family: var(--font-display); font-size: 13.5px; line-height: 1.2; color: var(--text); font-weight: 500; }
.labs .lab-group { display: inline-flex; align-items: center; gap: 16px; }
.labs .lab-sep { width: 1px; height: 30px; background: var(--line-2); margin: 0 4px; }
.labs img.lg-ill { height: 30px; }
.labs img.lg-plan { height: 27px; }
@media (max-width: 560px) { .labs .lab-sep { display: none; } .labs img { height: 30px; } }

.viewport {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(55% 50% at 50% 55%, rgba(91, 211, 255, .08), transparent 72%),
    #05070a;
  border: 1px solid var(--line);
  aspect-ratio: 1.06 / 1; width: 100%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.viewport.dragging { cursor: grabbing; }
.viewport canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.viewport .tag-l, .viewport .tag-r { top: 14px; transition: opacity .2s; }
.viewport .tag-l { left: 14px; } .viewport .tag-r { right: 14px; }
.viewport .handle { z-index: 5; }
.viewport .handle::before { opacity: .9; }
.viewport:not(.ready)::after { content: "Loading 3D view…"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.hud { position: absolute; z-index: 4; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); pointer-events: none; }
.hud-bl { bottom: 18px; left: 18px; }
.hud-br { bottom: 18px; right: 18px; display: flex; align-items: center; gap: 8px; }
@media (max-width: 600px) { .hud-bl { display: none; } }
.viewport-cap { margin: 12px 2px 0; font-size: 13.5px; color: var(--text-3); }
.viewport-cap b { color: var(--text-2); font-weight: 500; }
.drag-hint svg { width: 16px; height: 16px; }

.tldr { margin-top: 56px; display: grid; grid-template-columns: auto 1fr; gap: 18px 28px; align-items: baseline; padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15, 20, 27, .7); }
.tldr .label { font-family: var(--font-mono); color: var(--volt); font-size: 13px; letter-spacing: .12em; }
.tldr p { margin: 0; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; font-family: var(--font-display); font-weight: 400; color: var(--text); }
.tldr strong { color: var(--volt); font-weight: 500; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 92px; }
  .viewport { aspect-ratio: 1 / 1; max-width: 620px; margin: 0 auto; }
  .viewport-cap { max-width: 620px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .tldr { grid-template-columns: 1fr; padding: 22px; }
  .authors { font-size: 15.5px; }
  .labs img { height: 28px; }
  .links .btn { flex: 1 1 calc(50% - 10px); justify-content: center; }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0 0; position: relative; }
.sec-head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 24px; padding-top: 26px; margin-bottom: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line-2); position: relative; }
.sec-head::before { content: ""; position: absolute; left: 0; top: -1px; width: 120px; height: 2px; background: var(--volt); }
.sec-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; color: var(--text-3); padding-top: 12px; }
.sec-num b { color: var(--volt); font-weight: 500; }
.sec-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: end; }
.sec-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.025em; margin: 0; grid-column: 1; }
.sec-sub { grid-column: 1; margin: 8px 0 0; font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 70ch; }
.sec-title .arch-btn { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
@media (max-width: 760px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head::before { width: 64px; }
  .sec-num { padding-top: 0; }
  .sec-title { grid-template-columns: 1fr; }
  .sec-title .arch-btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}
.subsec { margin-top: clamp(28px, 4vw, 44px); }
.subsec + .subsec { margin-top: clamp(64px, 8vw, 96px); }
.sub-head { margin: 0 0 20px; max-width: 860px; }
.sub-head > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: baseline; }
.sub-num { font-family: var(--font-mono); font-size: 13px; color: var(--volt); letter-spacing: .06em; padding: 3px 9px; border: 1px solid rgba(212, 255, 58, .4); border-radius: 999px; align-self: center; }
.sub-head h3 { font-size: clamp(24px, 2.6vw, 30px); margin: 0; letter-spacing: -.01em; }
.sub-head p { grid-column: 2; margin: 4px 0 0; color: var(--text-2); font-size: 16px; max-width: 72ch; }
@media (max-width: 560px) { .sub-head > div { grid-template-columns: 1fr; } .sub-head p { grid-column: 1; } .sub-num { justify-self: start; } }
h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.005em; }
.sub-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 8px; }
.stage-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.note { font-size: 13px; color: var(--text-3); margin: 12px 0 0; }
.note b { color: var(--text-2); font-weight: 500; }

.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: clamp(20px, 3vw, 32px); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- overview hub ---------- */
.hub { position: relative; padding: clamp(18px, 3vw, 34px); }
.hub-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, .9fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 64px); align-items: center; }
.hub-col { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 2; }
.hub-col h4 { margin: 0 0 6px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.node {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel-2); text-align: left; cursor: pointer; text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.node:hover, .node.hot { border-color: var(--volt); background: #17202b; color: var(--text); }
.hub-col.tasks .node { cursor: default; }
.node img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: none; background: #000; }
.node .ico { width: 42px; height: 42px; border-radius: 10px; flex: none; display: grid; place-items: center; background: #0b1016; border: 1px solid var(--line-2); color: var(--volt); }
.node .ico svg { width: 22px; height: 22px; }
.node b { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; }
.node small { display: block; color: var(--text-3); font-size: 12.5px; font-family: var(--font-mono); letter-spacing: .02em; }
.hub-core { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.core-box { position: relative; width: min(100%, 240px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 28px; background: radial-gradient(closest-side, rgba(212, 255, 58, .09), transparent), #0b1016; border: 1px solid var(--line-2); }
.core-box img { width: 44%; height: auto; filter: drop-shadow(0 10px 30px rgba(43, 200, 214, .25)); position: relative; z-index: 2; }
.core-bits { position: absolute; inset: 14px; border-radius: 18px; opacity: .9; }
.core-label b { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: .02em; }
.core-label small { color: var(--text-3); font-size: 13px; font-family: var(--font-mono); }
.hub-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.hub-wires path { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.hub-wires path.flow { stroke: var(--volt); stroke-width: 1.4; stroke-dasharray: 3 10; opacity: .0; transition: opacity .3s; animation: flow 1.2s linear infinite; }
.hub-wires path.flow.on { opacity: .95; }
.hub-wires path.flow.idle { opacity: .28; }
@keyframes flow { to { stroke-dashoffset: -26; } }
@media (prefers-reduced-motion: reduce) { .hub-wires path.flow { animation: none; } }
.hub-readout { margin-top: 18px; min-height: 26px; font-family: var(--font-mono); font-size: 13px; color: var(--text-2); text-align: center; }
.hub-readout b { color: var(--volt); font-weight: 500; }
@media (max-width: 900px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-wires { display: none; }
  .hub-col.inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-col.inputs h4 { grid-column: 1 / -1; }
  .hub-col.tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-col.tasks h4 { grid-column: 1 / -1; }
  .core-box { width: 180px; }
}
@media (max-width: 440px) {
  .hub-col.inputs, .hub-col.tasks { grid-template-columns: 1fr; }
}

details.abstract { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15, 20, 27, .6); }
details.abstract summary { cursor: pointer; list-style: none; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
details.abstract summary::-webkit-details-marker { display: none; }
details.abstract summary .plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .3s var(--ease); flex: none; }
details.abstract[open] summary .plus { transform: rotate(45deg); }
details.abstract .abstract-body { padding: 0 22px 22px; color: var(--text-2); font-size: 16px; line-height: 1.7; }
details.abstract .abstract-body p { margin: 0; max-width: 92ch; }

/* why cards */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.why-card:hover { border-color: var(--line-2); transform: translateY(-2px); color: var(--text); }
.why-card .why-idx { font-family: var(--font-mono); font-size: 12px; color: var(--rose); letter-spacing: .12em; text-transform: uppercase; }
.why-card h3 { font-size: 19px; margin: 0; }
.why-card p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; flex: 1; }
.why-card .fix { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.why-card .fix span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--text-3); text-transform: uppercase; white-space: nowrap; }
.why-card .fix b { color: var(--volt); font-weight: 600; }
.why-card .fix svg { margin-left: auto; width: 18px; height: 18px; color: var(--text-3); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* ---------- method ---------- */
.stage { margin-top: 24px; }
.stage + .stage { margin-top: 64px; }
.stage-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; margin-bottom: 20px; }
.stage-intro p { margin: 0; color: var(--text-2); max-width: 70ch; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.demo { padding: clamp(18px, 2.6vw, 28px); display: flex; flex-direction: column; gap: 16px; }
.demo-head { display: flex; flex-direction: column; gap: 6px; }
.demo-head p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.demo-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--volt); }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 980px) { .demo-grid { grid-template-columns: 1fr; } .stage-intro { grid-template-columns: 1fr; } }

/* depth shuffle */
.shuffle { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
.shuffle-gutter { position: relative; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.shuffle-gutter span { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding-right: 2px; }
.shuffle-stage { position: relative; width: 100%; aspect-ratio: 555 / 408; border-radius: 10px; overflow: hidden; background: #000; }
.slab {
  position: absolute; left: 0; right: 0; padding: 0; margin: 0; border: 0; cursor: pointer;
  background-repeat: no-repeat; background-color: #000;
  transition: transform .7s var(--ease), filter .2s, box-shadow .2s;
  will-change: transform;
}
.slab::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -1px 0 rgba(7, 9, 12, .9); pointer-events: none; }
.slab:hover { filter: brightness(1.18); }
.slab.picked { box-shadow: inset 0 0 0 2px var(--volt); z-index: 3; filter: brightness(1.25); }
.slab .tag { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: rgba(7, 9, 12, .78); color: var(--text-2); pointer-events: none; }
.slab.wrong .tag { color: var(--rose); }
.slab.right .tag { color: var(--volt); }
.scanline { position: absolute; left: 0; right: 0; height: 2px; background: var(--volt); box-shadow: 0 0 18px 4px rgba(212, 255, 58, .55); top: 0; opacity: 0; z-index: 4; pointer-events: none; }
.status { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); min-height: 22px; }
.status b { color: var(--volt); font-weight: 500; }
.status .bad { color: var(--rose); }

/* ABSQ */
.k-lime { color: var(--volt); font-weight: 600; }
.absq2 { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: 12px; align-items: start; }
.absq-plot { position: relative; width: 100%; aspect-ratio: 1; border-radius: 12px; background: #070a0e; border: 1px solid var(--line); overflow: hidden; }
.absq-plot canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.absq-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.absq-side-h { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 0 6px; }
.absq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.absq-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr) 28px 28px; gap: 6px; align-items: center; padding: 5px 6px; border-radius: 7px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); opacity: .35; transition: opacity .25s, background .25s; }
.absq-list li.on { opacity: 1; color: var(--text-2); }
.absq-list li.cur { background: var(--panel-3); color: var(--text); }
.absq-list li i { width: 8px; height: 8px; border-radius: 2px; }
.absq-list li b { font-weight: 600; text-align: center; border-radius: 4px; padding: 1px 0; font-size: 11px; }
.absq-list li b.p { background: rgba(212, 255, 58, .16); color: var(--volt); }
.absq-list li b.m { background: rgba(91, 211, 255, .12); color: var(--cyan); }
.absq-list li .er { display: none; }
.absq-stats { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.absq-stats .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: .04em; white-space: nowrap; }
.absq-stats b { font-size: 15px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.absq-stats .lbl:nth-of-type(2) { margin-left: 8px; }
.absq-stats .meter i { background: var(--rose); }
.absq-controls { display: grid; grid-template-columns: 44px auto minmax(0, 1fr); gap: 10px; align-items: center; }
.absq-controls .seg-label { margin: 0; }
@media (max-width: 560px) { .absq2 { grid-template-columns: 1fr; } .absq-side-h { display: none; } .absq-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; } .absq-stats { grid-template-columns: auto minmax(0, 1fr) 40px; } .absq-controls { grid-template-columns: 44px minmax(0, 1fr); } .absq-controls .seg-label { display: none; } }
.stages { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.stages button { min-height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-3); font-family: var(--font-mono); font-size: 11px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; padding: 0; }
.stages button.on { background: rgba(212, 255, 58, .14); border-color: rgba(212, 255, 58, .55); color: var(--volt); }
.stages button.cur { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }
@media (max-width: 600px) { .stages { gap: 4px; } .stages .pfx { display: none; } .stages button { font-size: 12px; } }
.meter { height: 8px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--cyan); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.meter-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }

/* stage 2 */
.s2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.s2-anim svg { margin: auto 0; }
.s2 .tsne { flex: 1 1 auto; aspect-ratio: auto; min-height: 260px; }
.s2-anim svg { width: 100%; height: auto; }
.s2-anim text { font-family: var(--font-mono); font-size: 11px; fill: var(--text-2); letter-spacing: .04em; }
.s2-anim .t-strong { fill: var(--text); font-size: 12.5px; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tsne { position: relative; aspect-ratio: 760 / 620; border-radius: 10px; background: #070a0e; border: 1px solid var(--line); overflow: hidden; }
.tsne img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s var(--ease); }
.tsne img.on { opacity: 1; }
@media (max-width: 980px) { .s2 { grid-template-columns: 1fr; } .s2 .tsne { flex: none; aspect-ratio: 760 / 620; min-height: 0; } }
.arch-link { margin-top: 18px; }

/* ---------- compare / swipe ---------- */
.compare { position: relative; overflow: hidden; border-radius: 12px; background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare img { width: 100%; height: auto; display: block; pointer-events: none; }
.compare .after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 0 var(--pos, 50%)); }
.handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 44px; margin-left: -22px; cursor: ew-resize; z-index: 5; display: flex; justify-content: center; }
.handle::before { content: ""; width: 2px; height: 100%; background: var(--volt); box-shadow: 0 0 0 1px rgba(7, 9, 12, .5); }
.handle .knob { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--volt); color: var(--volt-ink); display: grid; place-items: center; box-shadow: 0 4px 18px rgba(0, 0, 0, .5); }
.handle .knob svg { width: 18px; height: 18px; }
.handle:focus-visible { outline: none; }
.handle:focus-visible .knob { outline: 2px solid #fff; outline-offset: 2px; }
.tag-l, .tag-r { position: absolute; top: 10px; z-index: 4; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: rgba(7, 9, 12, .78); color: var(--text); pointer-events: none; }
.tag-l { left: 10px; } .tag-r { right: 10px; color: var(--volt); }

/* ---------- reconstruction ---------- */
.recon { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.viewer { padding: 14px; }
.viewer-top { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.screen { position: relative; border-radius: 10px; overflow: hidden; background: #000; }
.screen canvas { width: 100%; height: auto; display: block; }
.screen .loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: .12em; text-transform: uppercase; z-index: 2; pointer-events: none; }
.screen.ready .loading { display: none; }
.transport { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--text-3); }
.icon-btn svg { width: 18px; height: 18px; }
.slice-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); min-width: 92px; text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(var(--volt), var(--volt)) 0 / var(--fill, 0%) 100% no-repeat, var(--panel-3); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--panel-3); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--volt); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--text); border: 3px solid var(--volt); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 3px solid var(--volt); }
.side-notes { display: flex; flex-direction: column; gap: 12px; }
.side-notes .card { padding: 20px; }
.side-notes h3 { font-size: 17px; margin-bottom: 6px; }
.side-notes p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13.5px; margin-top: 10px; }
.kv dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--text-3); text-transform: uppercase; padding-top: 2px; }
.kv dd { margin: 0; color: var(--text-2); }
@media (max-width: 980px) { .recon { grid-template-columns: 1fr; } }

.planes { margin-top: 16px; padding: clamp(16px, 2.4vw, 26px); }
.planes-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px 32px; align-items: end; margin-bottom: 18px; }
.planes-head h3 { margin: 6px 0 0; }
.planes-head p { margin: 0; color: var(--text-2); font-size: 15px; }
.planes-views { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 14px; }
.pview { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pscreen { position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pscreen canvas { display: block; width: 100%; height: 100%; cursor: row-resize; }
.pscreen .tag-l, .pscreen .tag-r { top: 8px; }
.pscreen .tag-l { left: 8px; } .pscreen .tag-r { right: 8px; }
.pview figcaption { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 760px) { .planes-head { grid-template-columns: 1fr; } }

/* ---------- tasks ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); cursor: pointer; font-size: 15px; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.tab svg { width: 18px; height: 18px; }
.tab:hover { color: var(--text); border-color: var(--text-3); }
.tab[aria-selected="true"] { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }
.tabpanel[hidden] { display: none; }
.task { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(18px, 3vw, 36px); align-items: start; padding: clamp(18px, 3vw, 32px); }
.task-copy p { color: var(--text-2); margin: 0 0 14px; }
.task-copy .demo-kicker { display: block; margin-bottom: 10px; }
.task-copy h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 12px; }
.task-media { display: flex; flex-direction: column; gap: 12px; }
.case-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.organ-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.organ-legend span { display: inline-flex; align-items: center; gap: 6px; }
.organ-legend i { width: 10px; height: 10px; border-radius: 3px; }
@media (max-width: 900px) { .task { grid-template-columns: 1fr; } }

/* slice stack (hover to scrub) */
.stack { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #000; touch-action: pan-y; }
.stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.stack img.on { opacity: 1; }
.stack .tick { position: absolute; left: 8px; bottom: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-2); background: rgba(7, 9, 12, .75); padding: 2px 7px; border-radius: 6px; pointer-events: none; }
.stack .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); pointer-events: none; }
.stack .bar i { display: block; height: 100%; background: var(--volt); width: 0; }

/* wide task layout (copy on top) */
.task-stack { display: flex; flex-direction: column; gap: 20px; }
.task-copy-wide { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 10px 36px; align-items: end; }
.task-copy-wide h3 { margin: 0; }
.task-copy-wide p { margin: 0; color: var(--text-2); }
@media (max-width: 900px) { .task-copy-wide { grid-template-columns: 1fr; } }

/* VQA */
.qa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qa, .oe { padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--panel-2); }
.qa-top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }
.qa-top .stack { width: 96px; }
.qa-q { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.45; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: auto; }
.opt { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); text-align: left; cursor: pointer; font-size: 14px; line-height: 1.3; color: var(--text-2); transition: border-color .2s, background .2s, color .2s; }
.opt:hover:not(:disabled) { border-color: var(--text-3); color: var(--text); }
.opt:disabled { cursor: default; }
.opt.correct { border-color: var(--volt); color: var(--text); background: rgba(212, 255, 58, .08); }
.opt.correct::after { content: " ✓ VOLT"; display: block; font-family: var(--font-mono); font-size: 11px; color: var(--volt); letter-spacing: .06em; margin-top: 2px; }
.opt.wrong { border-color: var(--rose); color: var(--text); }
.qa-feedback { margin: 0; font-size: 12.5px; font-family: var(--font-mono); color: var(--text-3); min-height: 18px; line-height: 1.55; }
.qa-feedback b { color: var(--volt); font-weight: 500; }
.oe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bubble { position: relative; border-radius: 14px; padding: 12px 14px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.bubble.q { background: var(--panel-3); color: var(--text); font-weight: 500; padding: 10px 14px; }
.bubble.a { border: 1px solid rgba(212, 255, 58, .35); background: rgba(212, 255, 58, .05); }
.bubble.a.clamp { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.bubble .who { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--volt); margin-bottom: 4px; text-transform: uppercase; }
.bubble.gt { border: 1px dashed var(--line-2); }
.bubble.gt .who { color: var(--text-3); }
.oe-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: auto; }
.linklike { background: none; border: 0; padding: 0; color: var(--text-2); font-size: 13px; font-family: var(--font-mono); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }
.linklike:hover { color: var(--volt); }
@media (max-width: 1060px) { .qa-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .qa-grid, .oe-grid { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .opts { grid-template-columns: 1fr; } .qa-top { grid-template-columns: 80px minmax(0, 1fr); } .qa-top .stack { width: 80px; } }

/* reports */
.reports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report { padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--panel-2); }
.report-top { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.report-top .stack { width: 96px; }
.report-meta { display: flex; flex-direction: column; gap: 2px; }
.report-meta .mono { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.report-meta b { font-weight: 600; font-size: 15px; }
.report-body { min-height: 300px; font-size: 14px; line-height: 1.65; color: var(--text-2); background: #0b1016; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.report-body p { margin: 0 0 6px; }
.report-body .placeholder { color: var(--text-3); font-family: var(--font-mono); font-size: 12.5px; }
.report-body .k { color: var(--text); font-weight: 600; }
.report-body .caret { display: inline-block; width: 8px; height: 1.05em; vertical-align: text-bottom; background: var(--volt); animation: blink 1s steps(2) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 900px) { .reports { grid-template-columns: 1fr; } .report-body { min-height: 0; } }
@media (max-width: 420px) { .report-top { grid-template-columns: 80px minmax(0, 1fr); } .report-top .stack { width: 80px; } .report-top .btn { grid-column: 1 / -1; justify-content: center; } }

/* text -> region */
.prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #0b1016; border: 1px solid var(--line-2); }
.prompt .p-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-right: 4px; }
.prompt button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2); cursor: pointer; font-family: var(--font-mono); font-size: 13px; }
.prompt button[aria-pressed="true"] { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }
.cam-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cam-grid figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 1; }
.cam-grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.cam-scale { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.cam-scale i { flex: 1; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #00007f, #0050ff, #00d5ff, #7dff7a, #ffe600, #ff4400, #7f0000); }
@media (max-width: 560px) { .cam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.class-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 22px 24px; margin-top: 16px; }
.class-card .ico { width: 52px; height: 52px; border-radius: 14px; background: #0b1016; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--volt); }
.class-card .ico svg { width: 26px; height: 26px; }
.class-card p { margin: 0; color: var(--text-2); font-size: 15px; }
.class-card b { color: var(--text); }

/* ---------- data: body map ---------- */
.bodymap { padding: clamp(18px, 2.8vw, 32px); }
.bm-stats { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.bm-stat { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.bm-stat b { font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -.02em; }
.bm-stat span { font-size: 13.5px; color: var(--text-2); }
.bm-stat.bm-hero b { font-size: clamp(40px, 4.6vw, 60px); letter-spacing: -.035em; }
.bm-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); align-items: center; padding: 18px 0 6px; }
.bm-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.bm-wires path { fill: none; stroke: var(--line-2); stroke-width: 1.2; transition: stroke .25s; }
.bm-wires path.on { stroke: var(--volt); stroke-width: 1.6; stroke-dasharray: 3 7; animation: flow 1s linear infinite; }
.bm-col { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; }
.bm-left { align-items: flex-end; }
.bm-right { align-items: flex-start; }
.bm-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; width: min(100%, 290px); padding: 8px 12px 8px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.bm-card:hover, .bm-card.on { border-color: var(--volt); background: #17202b; }
.bm-card[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--volt); }
.bm-card img { width: 64px; height: 48px; border-radius: 9px; object-fit: cover; background: #000; }
.bm-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bm-txt b { font-size: 15px; font-weight: 600; line-height: 1.2; }
.bm-mod { display: flex; gap: 4px; }
.bm-mod i { font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.bm-vol { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
.bm-figure { position: relative; z-index: 2; justify-self: center; width: 100%; max-width: 300px; }
.bm-figure img { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 24px rgba(91, 211, 255, .12)); transition: filter .4s; }
.bm-figure.whole img { filter: drop-shadow(0 0 18px rgba(212, 255, 58, .45)); }
.bm-dots { position: absolute; inset: 0; }
.bm-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: rgba(7, 9, 12, .55); border: 2px solid rgba(232, 237, 243, .85); cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.bm-dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.bm-dot.on { background: var(--volt); border-color: var(--volt); transform: scale(1.25); box-shadow: 0 0 0 6px rgba(212, 255, 58, .18), 0 0 18px rgba(212, 255, 58, .6); }
.bm-detail { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); min-height: 44px; }
.bm-detail b { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .bm-wires path.on { animation: none; } }
@media (max-width: 900px) {
  .bm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bm-stats .bm-hero { grid-column: 1 / -1; }
  .bm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-wires { display: none; }
  .bm-figure { grid-column: 1 / -1; grid-row: 1; max-width: 220px; }
  .bm-col, .bm-left, .bm-right { align-items: stretch; }
  .bm-card { width: 100%; }
}
@media (max-width: 480px) { .bm-grid { grid-template-columns: 1fr; } .bm-stats { grid-template-columns: 1fr 1fr; } .bm-stats .bm-stat:last-child { grid-column: 1 / -1; } }

/* ---------- cite + footer ---------- */
.cite { position: relative; }
.bib { position: relative; margin: 0; padding: 22px 24px; border-radius: var(--radius); background: #0b1016; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; color: var(--text-2); overflow-x: auto; }
.bib .k { color: var(--volt); }
.copy-btn { position: absolute; top: 12px; right: 12px; z-index: 2; }
@media (max-width: 700px) { .bib { padding-top: 60px; font-size: 12.5px; } }
.footer { margin-top: clamp(80px, 10vw, 120px); padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: center; }
.footer p { margin: 0; font-size: 13.5px; color: var(--text-3); }
.footer .labs { margin-top: 0; }
.footer p { line-height: 1.6; }

/* ---------- lightbox ---------- */
dialog.lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); color: var(--text); }
dialog.lightbox::backdrop { background: rgba(3, 4, 6, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.lb-head h3 { margin: 0; font-size: 17px; }
.lb-body { padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 22px; }
.lb-body figure { margin: 0; }
.lb-body img { width: 100%; height: auto; border-radius: 10px; background: #fff; }
.lb-body figcaption { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.lb-body figcaption b { color: var(--text); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 80; padding: 10px 16px; border-radius: 999px; background: var(--volt); color: var(--volt-ink); font-weight: 600; font-size: 14px; transition: .3s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (forced-colors: active) {
  .corners, .scanline { display: none; }
  .bm-wires path { stroke: CanvasText; }
}
