/* ================================================================
   praneelbhatia.com v2 - INSTRUMENT BENCH
   hand-coded, no framework. spec -> plan -> execute -> sign-off.
   ================================================================ */

:root, [data-theme="dark"] {
  --bg: #0B0D0C;
  --bg-panel: #111513;
  --bg-inset: #070908;
  --ink: #E8EDE9;
  --muted: #8A938C;
  --faint: #4D544F;
  --faint-ink: #767F78;
  --line: #1E2421;
  --grid: #161B18;
  --phosphor: #3ECF8E;
  --amber: #E9A653;
  --signal-red: #FF5C5C;
  --phosphor-soft: rgba(62, 207, 142, 0.08);
  --amber-soft: rgba(233, 166, 83, 0.08);
  --shadow: rgba(0, 0, 0, 0.5);
  --ease-settle: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-needle: cubic-bezier(0.34, 1.12, 0.64, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1200px;
}
[data-theme="light"] {
  --bg: #F4F2EC;
  --bg-panel: #FBFAF5;
  --bg-inset: #EEEBE1;
  --ink: #16140F;
  --muted: #5C594E;
  --faint: #B7B2A2;
  --faint-ink: #7C7769;
  --line: #D8D3C4;
  --grid: #E6E2D6;
  --phosphor: #0E7A4E;
  --amber: #B5651D;
  --signal-red: #C0392B;
  --phosphor-soft: rgba(14, 122, 78, 0.07);
  --amber-soft: rgba(181, 101, 29, 0.07);
  --shadow: rgba(22, 20, 15, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--phosphor); color: #0B0D0C; }
[data-theme="light"] ::selection { background: var(--phosphor); color: #F4F2EC; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 36px); } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--phosphor); color: var(--bg);
  padding: 10px 16px; font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 3px; border-radius: 2px; }

/* ---------- mono label voice ---------- */
.mono-label, .ch-no, .ch-note, .eyebrow, .cred-strip, .stack-line, .bin-meta,
.chan-id, .chan-name, .chan-status, .step-no, .t-date, .io-btn, .recorder-cap,
.contact-meta, .foot-l, .foot-r, .bench-cap, .log-venue, .log-role, .log-ref, .log-head {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kbd {
  font: 500 0.66rem var(--mono);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px;
  padding: 1px 5px; color: var(--muted);
}

/* ================= boot overlay ================= */
.boot {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.28s var(--ease-settle);
}
.boot[hidden] { display: none; }
.boot.fade { opacity: 0; pointer-events: none; }
.boot-inner { display: flex; align-items: center; gap: 12px; }
.boot-led { width: 8px; height: 8px; border-radius: 50%; background: var(--phosphor); animation: boot-blink 0.42s steps(2, start) infinite; }
.boot-text { font: 500 0.7rem var(--mono); letter-spacing: 0.22em; color: var(--muted); }
@keyframes boot-blink { 50% { opacity: 0.15; } }

/* power-on choreography: stages get .on from JS */
.js .boot-stage { opacity: 0; transform: translateY(10px); }
.js .boot-stage.on { opacity: 1; transform: none; transition: opacity 0.45s var(--ease-settle), transform 0.45s var(--ease-settle); }

/* ================= chart-recorder spine ================= */
.spine {
  position: fixed; left: 14px; top: 50%; transform: translateY(-50%); z-index: 40;
}
.spine-track { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 14px; }
.spine-track::before { content: ""; position: absolute; left: 4px; top: 2px; bottom: 2px; width: 1px; background: var(--line); }
.spine-head {
  position: absolute; left: 1.5px; top: 0; width: 6px; height: 14px; border-radius: 2px;
  background: var(--phosphor);
  transition: top 0.12s linear;
}
.spine a {
  position: relative; font: 500 0.58rem var(--mono); letter-spacing: 0.1em; color: var(--faint-ink);
  text-decoration: none; line-height: 1; padding: 2px 0;
}
.spine a i { font-style: normal; position: absolute; left: 22px; top: 0; padding: 2px 7px; background: var(--bg-panel); border: 1px solid var(--line); border-radius: 3px; opacity: 0; transform: translateX(-4px); transition: opacity 0.16s, transform 0.16s; pointer-events: none; white-space: nowrap; text-transform: uppercase; color: var(--muted); }
.spine a:hover { color: var(--ink); }
.spine a:hover i, .spine a:focus-visible i { opacity: 1; transform: none; }
.spine a.active { color: var(--phosphor); }
@media (max-width: 1400px) { .spine { display: none; } }

/* ================= nav ================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; min-height: 56px; }
.mark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.mark-loop { align-self: center; }
.mk-a { stroke: var(--amber); }
.mk-p { stroke: var(--phosphor); }
.mk-d { fill: var(--phosphor); }
.mark-name { font: 500 0.74rem var(--mono); letter-spacing: 0.16em; color: var(--ink); }
.mark-sub { font: 400 0.58rem var(--mono); letter-spacing: 0.14em; color: var(--faint-ink); }
.nav-led { display: inline-flex; align-items: center; gap: 6px; font: 500 0.58rem var(--mono); letter-spacing: 0.16em; color: var(--muted); }
.nav-led i { width: 6px; height: 6px; border-radius: 50%; background: var(--phosphor); animation: led-pulse 2.6s ease-in-out infinite; }
@keyframes led-pulse { 50% { opacity: 0.3; } }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a {
  font: 500 0.66rem var(--mono); letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 6px 0;
  background-image: linear-gradient(var(--phosphor), var(--phosphor));
  background-repeat: no-repeat; background-size: 0% 1px; background-position: 0 100%;
  transition: color 0.14s, background-size 0.16s var(--ease-settle);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background-size: 100% 1px; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: 14px; }
.icon-btn {
  font: 500 0.66rem var(--mono); letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 2px;
  padding: 5px 9px; cursor: pointer; transition: color 0.14s, border-color 0.14s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--muted); }
@media (max-width: 1000px) { .nav-links, .nav-led { display: none; } }
@media (max-width: 560px) { .mark-sub { display: none; } }

/* SPDT slide switch */
.spdt { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 4px 2px; cursor: pointer; }
.spdt-lab { font: 500 0.55rem var(--mono); letter-spacing: 0.1em; color: var(--faint-ink); }
.spdt-track { fill: var(--bg-inset); stroke: var(--line); }
.spdt-knob { fill: var(--bg-panel); stroke: var(--muted); stroke-width: 1.2; }
.spdt-ridge { stroke: var(--faint); stroke-width: 1.2; }
.spdt-lever { transition: transform 0.18s var(--ease-settle); }
.spdt[aria-checked="false"] .spdt-lever { transform: translateX(22px); }
.spdt:hover .spdt-knob { stroke: var(--ink); }

/* ================= hero ================= */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, black 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr); gap: 48px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 0.66rem; font-weight: 500; color: var(--muted); margin: 0 0 22px; }
.led-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--phosphor); animation: led-pulse 2.6s ease-in-out infinite; flex: none; }
h1 {
  margin: 0;
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 1.04; letter-spacing: -0.015em;
  max-width: 19ch;
}
h1 .hl { color: var(--phosphor); font-style: italic; }
.hero-sub { max-width: 54ch; color: var(--muted); font-size: 1.02rem; margin: 22px 0 0; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn-solid {
  font: 500 0.72rem var(--mono); letter-spacing: 0.13em; text-transform: uppercase;
  background: var(--phosphor); color: #0B0D0C; text-decoration: none;
  padding: 12px 20px; border-radius: 2px;
  transition: transform 0.18s var(--ease-settle), background 0.18s var(--ease-settle);
}
[data-theme="light"] .btn-solid { color: #F4F2EC; }
.btn-solid:hover { transform: translateY(-1px); }
.btn-ghost {
  font: 500 0.72rem var(--mono); letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 12px 20px; border: 1px solid var(--line); border-radius: 2px;
  transition: border-color 0.16s, transform 0.18s var(--ease-settle);
}
.btn-ghost:hover { border-color: var(--phosphor); }
.btn-ghost .u-dim { color: var(--faint-ink); }
.cta-hint { font: 400 0.72rem var(--sans); color: var(--faint-ink); }
.cred-strip { font-size: 0.6rem; font-weight: 500; color: var(--faint-ink); margin: 30px 0 0; line-height: 2; }

/* winning line: his CV profile, said out loud */
.win-line { font: italic 500 1.14rem/1.5 var(--serif); color: var(--muted); margin: 16px 0 0; }
.win-line .wl-strong { color: var(--ink); }

/* hero specimen: the SO-101 floats free on the page, no frame, no video */
.hero-specimen { justify-self: center; width: 100%; max-width: 520px; }
.hero-specimen svg { display: block; width: 100%; height: auto; overflow: visible; }
.tt-frame { fill: none; stroke: var(--line); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.tt-arm { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tt-joint { fill: none; stroke: var(--phosphor); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tt-dot { fill: var(--phosphor); }
.tt-readout { font: 500 4px var(--mono); letter-spacing: 0.14em; fill: var(--faint-ink); }

/* the loop bench, promoted to its own full-width row under the intro */
.bench-row { margin-top: 60px; }
.bench-row .bench { max-width: 880px; margin: 0 auto; }

/* ---------- the loop bench ---------- */
.bench { margin: 0; min-width: 0; }
.bench svg { width: 100%; height: auto; display: block; }
.bench-cap { display: flex; justify-content: space-between; gap: 12px; font-size: 0.58rem; font-weight: 400; color: var(--faint-ink); margin-top: 10px; }

.b-frame { fill: var(--bg-panel); stroke: var(--line); stroke-width: 1; filter: drop-shadow(0 18px 36px var(--shadow)); }
.b-line { stroke: var(--line); stroke-width: 1; }
.b-label { font: 500 10px var(--mono); letter-spacing: 0.16em; fill: var(--muted); }
.b-amber { fill: var(--amber); }
.b-phos { fill: var(--phosphor); }
.b-dim { fill: var(--faint); }
.b-well { fill: var(--bg); stroke: var(--line); stroke-width: 1; }
.b-well-amber { stroke: color-mix(in srgb, var(--amber) 36%, var(--line)); }
.b-well-phos { stroke: color-mix(in srgb, var(--phosphor) 32%, var(--line)); }
.b-inset { fill: var(--bg-inset); stroke: var(--line); stroke-width: 1; }
.b-grid line { stroke: var(--grid); stroke-width: 1; }
.b-trace { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.b-chan { font: 500 8px var(--mono); letter-spacing: 0.14em; fill: var(--faint); }
.b-val { font: 500 9.5px var(--mono); letter-spacing: 0.06em; fill: var(--muted); font-variant-numeric: tabular-nums; }
.nch-spark { fill: none; stroke: var(--muted); stroke-width: 1.1; stroke-linejoin: round; opacity: 0.85; }
.nch-red .nch-spark { stroke: var(--signal-red); opacity: 0.7; }
.nch-red .b-chan { fill: color-mix(in srgb, var(--signal-red) 60%, var(--faint)); }
.bench .err-flash .b-val { fill: var(--signal-red); }
.b-wire { fill: none; stroke: var(--muted); stroke-width: 1.3; color: var(--muted); }
.b-wire-fb { stroke: var(--faint); stroke-dasharray: 4 5; color: var(--faint-ink); }
.b-pulse { fill: var(--phosphor); }
.b-rdot { fill: var(--faint); transition: fill 0.2s; }
.b-rdot.think { fill: var(--amber); }
.b-hint-label { font: 500 8px var(--mono); letter-spacing: 0.18em; fill: var(--faint); }
.b-hint { font: 500 11px var(--mono); letter-spacing: 0.04em; fill: var(--amber); }
.b-cap { font: 400 8.5px var(--mono); letter-spacing: 0.12em; fill: var(--faint); }
.b-status { font: 500 9.5px var(--mono); letter-spacing: 0.16em; fill: var(--phosphor); }
.b-status.err { fill: var(--signal-red); }
.b-led { fill: var(--phosphor); }
.b-led.blink { animation: led-blink 0.5s steps(2, start) 2; }
@keyframes led-blink { 50% { opacity: 0.15; } }
.b-ground { stroke: var(--line); stroke-width: 1.4; }
.b-tray { stroke: #5B8DD9; stroke-width: 1.6; fill: none; }
.b-block { fill: var(--phosphor); opacity: 0.92; transition: opacity 0.22s; }
.b-block.gone { opacity: 0; }
.b-arm { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.b-arm-thin { stroke-width: 2; }
.b-arm-base { fill: var(--ink); opacity: 0.85; }
.b-joint { fill: var(--bg-panel); stroke: var(--ink); stroke-width: 1.6; }
#arm g { transition: none; }
.bench.err .b-well-phos { stroke: color-mix(in srgb, var(--signal-red) 45%, var(--line)); }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-specimen { max-width: 380px; }
  .bench-row { margin-top: 44px; }
  h1 { max-width: 22ch; }
}

/* ================= proof gauges ================= */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-panel); }
.gauges { display: grid; grid-template-columns: repeat(6, 1fr); }
.gauge {
  padding: 26px 18px 24px; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.gauge:first-child { border-left: none; }
.gauge svg { width: 56px; height: 38px; margin-bottom: 8px; overflow: visible; }
.gauge b { font: 500 1.55rem var(--mono); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.gauge b em, .gauge b .pre { font-style: normal; font-size: 0.62em; color: var(--muted); }
.gauge > span:last-child { font-size: 0.74rem; color: var(--muted); line-height: 1.45; }
.g-bar-bg { fill: var(--bg-inset); }
.g-bar-before { fill: var(--faint); }
.g-bar-after { fill: var(--phosphor); }
.g-dots circle { fill: var(--bg-inset); stroke: var(--line); stroke-width: 1; transition: fill 0.3s var(--ease-settle); }
.gauge.lit .g-dots circle { fill: var(--phosphor); stroke: var(--phosphor); }
.gauge.lit .g-dots circle:nth-child(1) { transition-delay: 0.05s; }
.gauge.lit .g-dots circle:nth-child(2) { transition-delay: 0.16s; }
.gauge.lit .g-dots circle:nth-child(3) { transition-delay: 0.27s; }
.gauge.lit .g-dots circle:nth-child(4) { transition-delay: 0.38s; }
.g-scope { fill: none; stroke: var(--phosphor); stroke-width: 1.5; stroke-linejoin: round;
  stroke-dasharray: 120; stroke-dashoffset: 120; }
.gauge.lit .g-scope { animation: dash-in 0.9s var(--ease-settle) forwards; }
@keyframes dash-in { to { stroke-dashoffset: 0; } }
.g-dial-track { stroke: var(--line); stroke-width: 2.5; }
.g-needle { stroke: var(--amber); stroke-width: 2; transform-origin: 32px 38px; transform: rotate(-78deg); transition: transform 0.6s var(--ease-needle); }
.gauge.lit .g-needle { transform: rotate(44deg); }
.g-hub { fill: var(--muted); }
.g-stack rect { fill: var(--bg-inset); stroke: var(--line); stroke-width: 1; transition: fill 0.3s; }
.gauge.lit .g-stack rect { fill: var(--faint); }
.gauge.lit .g-stack .g-stack-hot { fill: var(--phosphor); stroke: var(--phosphor); transition-delay: 0.3s; }
.g-arc { stroke: var(--line); stroke-width: 1.3; stroke-dasharray: 3 4; }
.g-dots-sm circle { transition-delay: 0s; }
@media (max-width: 1020px) { .gauges { grid-template-columns: repeat(3, 1fr); } .gauge:nth-child(4) { border-left: none; } .gauge { border-top: 1px solid var(--line); } .gauge:nth-child(-n+3) { border-top: none; } }
@media (max-width: 640px) { .gauges { grid-template-columns: repeat(2, 1fr); } .gauge:nth-child(odd) { border-left: none; } .gauge:nth-child(even) { border-left: 1px solid var(--line); } .gauge:nth-child(-n+2) { border-top: none; } .gauge:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ================= sections ================= */
.sec { padding: 96px 0; }
.sec-alt { background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ch-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 48px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.ch-no { font-size: 0.62rem; font-weight: 500; color: var(--phosphor); }
.ch-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.01em; line-height: 1.1; }
.ch-note { margin-left: auto; font-size: 0.58rem; font-weight: 400; color: var(--faint-ink); }
@media (max-width: 700px) { .ch-note { display: none; } }
.sec-lead { max-width: 68ch; color: var(--muted); font-size: 1.02rem; margin: -18px 0 42px; }

/* ================= channels (case studies) ================= */
.channel {
  display: grid; grid-template-columns: 168px 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-panel);
  margin-bottom: 28px; overflow: hidden;
  transition: border-color 0.2s var(--ease-settle);
}
.sec-alt .channel { background: var(--bg); }
.channel:hover { border-color: color-mix(in srgb, var(--phosphor) 36%, var(--line)); }
.chan-rail {
  display: flex; flex-direction: column; gap: 12px; padding: 22px 18px;
  border-right: 1px solid var(--line); background: var(--bg-inset);
}
.chan-id { font-size: 0.6rem; font-weight: 500; color: var(--phosphor); }
.chan-name { font-size: 0.6rem; font-weight: 500; color: var(--muted); line-height: 1.8; }
.chan-status { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 0.52rem; color: var(--faint-ink); line-height: 1.7; }
.chan-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--phosphor); flex: none; }
.chan-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; padding: 30px 32px 34px; }
.chan-text { min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 16px; }
.tag {
  font: 500 0.6rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.tag:not(:last-child)::after { content: "\00B7"; margin-left: 10px; color: var(--faint); }
.tag-hot { color: var(--phosphor); }
.channel h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.18; letter-spacing: -0.01em; }
.channel p { color: var(--muted); margin: 0 0 16px; }
.outcomes { margin: 0 0 18px; padding: 0; list-style: none; }
.outcomes li { position: relative; padding: 5px 0 5px 22px; color: var(--muted); font-size: 0.92rem; }
.outcomes li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 9px; height: 9px;
  border: 1.5px solid var(--phosphor); border-left: none; border-top: none;
  transform: rotate(-45deg) translateY(-2px);
}
.stack-line { font-size: 0.6rem; font-weight: 400; color: var(--faint-ink); margin: 0; line-height: 1.9; overflow-wrap: break-word; }
.inline-link { color: var(--phosphor); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.inline-link:hover { border-color: var(--phosphor); }
.chan-media { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.capture { margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg-inset); }
.capture-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px; border-bottom: 1px solid var(--line);
  font: 500 0.55rem var(--mono); letter-spacing: 0.16em; color: var(--faint-ink);
}
.cap-ticks { width: 30px; height: 6px; background-image: repeating-linear-gradient(90deg, var(--faint) 0 1px, transparent 1px 5px); opacity: 0.6; }
.capture img { width: 100%; }
.capture figcaption { padding: 8px 12px; font: 400 0.62rem var(--mono); letter-spacing: 0.08em; color: var(--muted); border-top: 1px solid var(--line); }
.capture-svg .viz { display: block; width: 100%; height: auto; background: var(--bg-inset); }

/* case-study viz primitives */
.v-label { font: 500 9px var(--mono); letter-spacing: 0.14em; fill: var(--faint); }
.v-dim { fill: var(--faint); opacity: 0.7; }
.v-phos { fill: var(--phosphor); }
.v-cap { font: 400 8.5px var(--mono); letter-spacing: 0.1em; fill: var(--faint); }
.v-bar-bg { fill: var(--bg); stroke: var(--line); stroke-width: 1; }
.v-bar-amber { fill: var(--amber); opacity: 0.65; }
.v-bar-phos { fill: var(--phosphor); }
.lab circle { fill: var(--bg); stroke: var(--faint); stroke-width: 1.2; transition: fill 0.3s, stroke 0.3s; }
.lab text { font: 500 8px var(--mono); letter-spacing: 0.12em; fill: var(--faint); }
.lab-link { stroke: var(--line); stroke-width: 1; }
.in-view .lab circle { fill: var(--phosphor); stroke: var(--phosphor); }
.in-view .lab:nth-of-type(1) circle { transition-delay: 0.5s; }
.in-view .lab:nth-of-type(2) circle { transition-delay: 0.68s; }
.in-view .lab:nth-of-type(3) circle { transition-delay: 0.86s; }
.in-view .lab:nth-of-type(4) circle { transition-delay: 1.04s; }
#pipe-before { transition: width 1s var(--ease-settle) 0.1s; }
.v-session { fill: var(--phosphor-soft); stroke: var(--phosphor); stroke-width: 1; stroke-dasharray: 4 4; }
.v-headset { fill: var(--bg); stroke: var(--muted); stroke-width: 1.3; }
.xr-node text { font: 500 9px var(--mono); letter-spacing: 0.12em; fill: var(--faint); }
.xr-link { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 2 4; }
.in-view .xr-link { animation: link-flow 1.4s linear infinite; }
@keyframes link-flow { to { stroke-dashoffset: -12; } }
.v-node { fill: var(--bg); stroke: var(--muted); stroke-width: 1.2; }
.v-node-amber { stroke: var(--amber); }
.v-wire { fill: none; stroke: var(--muted); stroke-width: 1.2; color: var(--muted); }
.v-gate-bar { stroke: var(--amber); stroke-width: 2; }
.v-db { fill: var(--phosphor-soft); stroke: var(--phosphor); stroke-width: 1.2; }
.v-db-lid { fill: none; stroke: var(--phosphor); stroke-width: 1.2; }
.v-token { fill: var(--amber); }

/* motion study */
.motion-study { margin: 6px 0 20px; }
.motion-study svg { width: 100%; height: auto; display: block; }
.ms-frame rect:first-child { fill: var(--bg-inset); stroke: var(--line); stroke-width: 1; transition: stroke 0.25s; }
.ms-frame text { font: 400 8.5px var(--mono); letter-spacing: 0.1em; fill: var(--faint); }
.ms-ground { stroke: var(--line); stroke-width: 1.2; }
.ms-arm line { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.ms-arm circle { fill: var(--bg-panel); stroke: var(--muted); stroke-width: 1.2; }
.ms-block { fill: var(--phosphor); opacity: 0.85; }
.ms-block-held { fill: var(--amber); opacity: 1; }
.ms-err { stroke: var(--signal-red); stroke-width: 1.6; stroke-linecap: round; }
.ms-hint { stroke: var(--amber); stroke-width: 1.4; stroke-dasharray: 3 3; }
.ms-tray { stroke: #5B8DD9; stroke-width: 1.3; }
.ms-frame.lit rect:first-child { stroke: var(--muted); }
.ms-frame.lit text { fill: var(--ink); }

@media (max-width: 1020px) {
  .channel { grid-template-columns: 1fr; }
  .chan-rail { flex-direction: row; align-items: center; border-right: none; border-bottom: 1px solid var(--line); padding: 14px 22px; }
  .chan-status { margin-top: 0; margin-left: auto; }
  .chan-body { grid-template-columns: 1fr; gap: 26px; padding: 26px 22px 30px; }
}

/* ================= components bin ================= */
.bin { margin-top: 72px; }
.bin-head { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 28px; }
.bin-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; }
.bin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bin-item {
  display: block; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-panel);
  padding: 0 0 18px; text-decoration: none; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s var(--ease-settle);
}
.bin-item:hover { border-color: color-mix(in srgb, var(--phosphor) 40%, var(--line)); transform: translateY(-2px); }
.bin-media { height: 150px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-inset); }
.bin-media img { width: 100%; height: 100%; object-fit: cover; filter: url(#duo); transition: filter 0.25s var(--ease-settle), transform 0.4s var(--ease-settle); }
.bin-item:hover .bin-media img, .bin-item:focus-visible .bin-media img { filter: none; transform: scale(1.03); }
.bin-media-svg { display: flex; align-items: center; justify-content: center; }
.bin-media-svg svg { width: 72%; height: 78%; }
.bn-stroke path, .bn-stroke rect, .bn-stroke circle, .bn-stroke line { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.25s; }
.bn-dash { stroke-dasharray: 3 4; }
.bn-check { stroke: var(--phosphor); }
.bn-dots circle { fill: var(--phosphor); }
.bin-item:hover .bn-stroke path, .bin-item:hover .bn-stroke rect, .bin-item:hover .bn-stroke circle, .bin-item:hover .bn-stroke line { stroke: var(--ink); }
.bin-item h4 { margin: 16px 18px 6px; font: 600 0.95rem var(--sans); color: var(--ink); }
.bin-item p { margin: 0 18px 12px; font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.bin-meta { display: block; margin: 0 18px; font-size: 0.55rem; font-weight: 500; color: var(--faint-ink); }
@media (max-width: 920px) { .bin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bin-grid { grid-template-columns: 1fr; } }

/* ================= method ================= */
.schematic { margin: 0 0 48px; overflow-x: auto; }
.schematic svg { width: 100%; min-width: 700px; height: auto; display: block; }
.s-wire { stroke: var(--muted); stroke-width: 1.3; fill: none; }
.s-branch { stroke: var(--faint); stroke-width: 1; fill: none; color: var(--faint-ink); }
.s-dash { stroke-dasharray: 4 4; }
.s-block rect { fill: var(--bg); stroke: var(--muted); stroke-width: 1.2; }
.sec-alt .s-block rect { fill: var(--bg-panel); }
.s-block text { font: 500 10.5px var(--mono); letter-spacing: 0.14em; fill: var(--ink); }
.s-block-hot rect { stroke: var(--phosphor); fill: var(--phosphor-soft); }
.s-block-hot text { fill: var(--phosphor); }
.s-junction { fill: var(--muted); }
.s-tag { font: 500 8px var(--mono); letter-spacing: 0.12em; fill: var(--faint); }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 48px; }
.step { border: 1px solid var(--line); border-radius: 6px; padding: 20px; background: var(--bg); }
.sec-alt .step { background: var(--bg-panel); }
.step-no { font-size: 0.56rem; font-weight: 500; color: var(--phosphor); }
.step h4 { margin: 10px 0 8px; font: 600 1rem var(--sans); }
.step p { margin: 0; font-size: 0.84rem; color: var(--muted); }
@media (max-width: 920px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .method-grid { grid-template-columns: 1fr; } }
.callout { border-left: 2px solid var(--phosphor); padding: 8px 0 8px 28px; max-width: 76ch; }
.callout-lead { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; margin: 0 0 14px; letter-spacing: -0.01em; }
.callout p:not(.callout-lead) { color: var(--muted); margin: 0 0 12px; }
.callout-note { font-size: 0.84rem; color: var(--faint) !important; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.principle { padding: 24px 26px 6px; border-left: 1px solid var(--line); }
.principle:first-child { border-left: none; padding-left: 0; }
.pr-label { font: 500 0.6rem var(--mono); letter-spacing: 0.16em; color: var(--phosphor); }
.principle p { margin: 10px 0 0; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } .principle { border-left: none; border-top: 1px solid var(--line); padding-left: 0; } .principle:first-child { border-top: none; } }

.contact-meta-sub { margin-top: 10px; opacity: 0.75; }

/* ================= experience ================= */
.recorder { margin: 0 0 52px; overflow-x: auto; }
.recorder svg { width: 100%; min-width: 700px; height: auto; display: block; }
.recorder-cap { font-size: 0.56rem; color: var(--faint-ink); margin-top: 8px; }
.r-grid line { stroke: var(--line); stroke-width: 1; }
.r-ticks text { font: 500 9px var(--mono); letter-spacing: 0.1em; fill: var(--faint); }
.r-line { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.r-marks circle { fill: var(--bg); stroke: var(--muted); stroke-width: 1.4; }
.r-marks text { font: 500 8px var(--mono); letter-spacing: 0.12em; fill: var(--muted); }
.r-now circle { fill: var(--phosphor); stroke: var(--phosphor); }
.r-now .r-ring { fill: none; stroke: var(--phosphor); opacity: 0.5; animation: ring-pulse 2.4s ease-out infinite; }
@keyframes ring-pulse { 0% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
.r-now { transform-box: fill-box; }
.r-now .r-ring { transform-origin: center; }
.r-now text { fill: var(--phosphor); }
.r-playhead { fill: var(--phosphor); opacity: 0.85; animation: led-pulse 1.6s ease-in-out infinite; }

.timeline { border-left: 1px solid var(--line); padding-left: 0; }
.t-item { display: grid; grid-template-columns: 150px 1fr; gap: 26px; padding: 22px 0 22px 28px; position: relative; border-bottom: 1px solid var(--line); }
.t-item:last-child { border-bottom: none; }
.t-item::before {
  content: ""; position: absolute; left: -4.5px; top: 31px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg); border: 1.4px solid var(--muted);
}
.t-now::before { background: var(--phosphor); border-color: var(--phosphor); }
.t-date { font-size: 0.6rem; font-weight: 500; color: var(--faint-ink); padding-top: 5px; }
.t-now .t-date { color: var(--phosphor); }
.t-body h4 { margin: 0 0 8px; font: 600 1.04rem var(--sans); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.t-org { font: 500 0.62rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.t-body p { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 78ch; }
@media (max-width: 700px) { .t-item { grid-template-columns: 1fr; gap: 6px; } }

/* ================= papers ================= */
.logbook { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.log-row {
  display: grid; grid-template-columns: 64px 1fr 170px 120px; gap: 18px; align-items: baseline;
  padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.sec-alt .log-row { background: var(--bg-panel); }
.log-row:last-child { border-bottom: none; }
.log-head { padding: 10px 22px; font-size: 0.56rem; color: var(--faint-ink); background: var(--bg-inset) !important; }
.log-head span { font-weight: 500; }
.log-ref { font-size: 0.62rem; font-weight: 500; color: var(--faint-ink); }
.log-title { font-size: 0.95rem; color: var(--ink); line-height: 1.45; }
.log-title em { display: block; font-style: normal; font: 400 0.68rem var(--mono); letter-spacing: 0.04em; color: var(--faint-ink); margin-top: 5px; }
.log-venue { font-size: 0.62rem; font-weight: 500; color: var(--muted); }
.log-role { font-size: 0.6rem; color: var(--faint-ink); }
.log-role b { color: var(--phosphor); font-weight: 500; }
.log-hot { position: relative; }
.log-hot::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--phosphor); }
@media (max-width: 860px) {
  .log-row { grid-template-columns: 48px 1fr; }
  .log-venue, .log-role { grid-column: 2; }
  .log-head { display: none; }
}
.patent-row { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.stamp { width: 58px; height: 58px; flex: none; transform: rotate(-7deg); }
.stamp circle { stroke: var(--amber); stroke-width: 1.6; opacity: 0.85; }
.stamp text { font: 600 13px var(--mono); letter-spacing: 0.14em; fill: var(--amber); }
.stamp .stamp-sub { font-size: 8px; letter-spacing: 0.3em; }
.patent-row p { margin: 0; color: var(--muted); max-width: 56ch; }
.patent-row b { color: var(--ink); font-weight: 600; }
.log-link {
  margin-left: auto; font: 500 0.66rem var(--mono); letter-spacing: 0.14em; color: var(--phosphor);
  text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s;
}
.log-link:hover { border-color: var(--phosphor); }
@media (max-width: 700px) { .log-link { margin-left: 0; } }

/* ================= capabilities ================= */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cap { border: 1px solid var(--line); border-radius: 6px; padding: 22px; background: var(--bg-panel); }
.cap-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cap-head svg { width: 22px; height: 22px; flex: none; }
.pin rect, .pin line { fill: none; stroke: var(--phosphor); stroke-width: 1.4; }
.pin circle { fill: var(--phosphor); }
.cap h4 { margin: 0; font: 600 0.95rem var(--sans); }
.cap ul { margin: 0; padding: 0; list-style: none; }
.cap li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 1020px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

/* ================= lens selector ================= */
.lens-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lens-card { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 32px 28px; background: var(--bg); transition: border-color 0.2s, transform 0.2s; }
.lens-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.lens-eyebrow { display: block; font-size: 0.58rem; font-weight: 500; color: var(--phosphor); font-family: var(--mono); margin-bottom: 14px; letter-spacing: 0.05em; }
.lens-title { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: var(--ink); }
.lens-desc { margin: 0 0 28px; font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.lens-link { font-size: 0.68rem; font-family: var(--mono); color: var(--phosphor); font-weight: 500; letter-spacing: 0.06em; }
@media (max-width: 640px) { .lens-row { grid-template-columns: 1fr; } }

/* ================= contact ================= */
.sec-contact { position: relative; padding-bottom: 120px; overflow: hidden; }
.loop-echo { position: absolute; left: 50%; transform: translateX(-50%); bottom: -8px; width: min(720px, 92%); height: auto; pointer-events: none; }
#echo-path { stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 5 6; }
#echo-pulse { fill: var(--phosphor); }
.contact-block { text-align: center; padding-top: 22px; }
.contact-block h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 0 0 14px; letter-spacing: -0.015em; }
.contact-block h3 em { color: var(--phosphor); }
.contact-line { color: var(--muted); margin: 0 auto 30px; max-width: 52ch; }
.big-mail {
  display: inline-block; font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  color: var(--ink); text-decoration: none;
  background-image: linear-gradient(var(--phosphor), var(--phosphor));
  background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 100%;
  padding-bottom: 4px; transition: color 0.16s;
}
.big-mail:hover { color: var(--phosphor); }
.io-block { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.io-btn {
  font-size: 0.62rem; font-weight: 500; color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); border-radius: 2px; padding: 10px 16px; background: none; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, transform 0.15s var(--ease-settle);
}
.io-btn:hover { color: var(--ink); border-color: var(--muted); transform: translateY(-1px); }
.io-btn-hot { color: var(--phosphor); border-color: color-mix(in srgb, var(--phosphor) 50%, var(--line)); }
.io-btn-hot:hover { color: var(--phosphor); border-color: var(--phosphor); }
.contact-meta { display: flex; flex-wrap: wrap; row-gap: 4px; align-items: center; justify-content: center; gap: 9px; font-size: 0.6rem; color: var(--faint-ink); margin-top: 36px; }

/* ================= footer ================= */
.footer { border-top: 1px solid var(--line); background: var(--bg-inset); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; flex-wrap: wrap; }
.foot-l, .foot-r { font-size: 0.56rem; font-weight: 400; color: var(--faint-ink); display: inline-flex; align-items: center; gap: 8px; }
.foot-r a { color: var(--muted); }
.led-standby { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); opacity: 0.7; animation: led-pulse 4s ease-in-out infinite; }

/* ================= command palette ================= */
.palette-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg-inset);
  background: color-mix(in srgb, var(--bg-inset) 72%, transparent);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 14vh;
}
.palette-overlay[hidden] { display: none; }
.palette {
  width: min(560px, calc(100% - 40px)); background: var(--bg-panel);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  box-shadow: 0 24px 60px var(--shadow);
}
.palette-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); font: 500 0.56rem var(--mono); letter-spacing: 0.18em; color: var(--faint-ink); }
#palette-input {
  width: 100%; border: none; background: none; color: var(--ink);
  font: 400 1rem var(--sans); padding: 14px 16px; outline: none;
}
#palette-input::placeholder { color: var(--faint-ink); }
.palette-list { max-height: min(320px, 48dvh); overflow-y: auto; border-top: 1px solid var(--line); }
.p-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; }
.p-item.sel { background: var(--phosphor-soft); }
.p-ic { font: 500 0.55rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--phosphor); min-width: 30px; }
.p-item span:last-child { font-size: 0.9rem; color: var(--ink); }
.p-empty { padding: 18px 16px; color: var(--faint-ink); font-size: 0.85rem; }

/* ================= reveal system (JS-gated) ================= */
.js .reveal { opacity: 0; transform: perspective(900px) translateY(24px) rotateX(7deg); transform-origin: 50% 100%; }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-settle), transform 0.6s var(--ease-settle); }

/* ================= reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .spine-head { transition: none; }
}

@media (max-width: 600px) {
  .sec { padding: 64px 0; }
  .hero { padding: 40px 0 48px; }
  .cta-hint { display: none; }
}


/* ================= living line-art (in-view gated, reduced-motion safe) ================= */
.js .bin-item.in .bn-wave { stroke-dasharray: 7 9; animation: wave-flow 2.8s linear infinite; }
@keyframes wave-flow { to { stroke-dashoffset: -64; } }
.js .bin-item.in .bn-dots circle:first-child { animation: led-pulse 2.4s ease-in-out infinite; }
.js .bin-item.in .bn-dots circle:last-child { animation: led-pulse 2.4s ease-in-out 1.2s infinite; }
.gb-scan { fill: var(--phosphor); opacity: 0; }
.js .bin-item.in .gb-scan { animation: gb-scan 3.4s linear infinite; }
@keyframes gb-scan { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 0.5; } 86% { opacity: 0.5; } 100% { transform: translateY(33px); opacity: 0; } }
.hand-a, .hand-b { transform-box: fill-box; transform-origin: 50% 100%; }
.js .bin-item.in .hand-a { animation: hand-rock 3.6s ease-in-out infinite; }
.js .bin-item.in .hand-b { animation: hand-rock 3.6s ease-in-out 0.22s infinite; }
@keyframes hand-rock { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(-3deg); } 70% { transform: rotate(2.4deg); } }
.bn-trav { fill: var(--phosphor); opacity: 0; }
.bn-trav-a { offset-path: path("M54,32 H78 Q86,32 88,50"); }
.bn-trav-b { offset-path: path("M112,70 Q114,88 122,88 H146"); }
.js .bin-item.in .bn-trav-a { animation: trav 3s linear infinite; }
.js .bin-item.in .bn-trav-b { animation: trav 3s linear 1.5s infinite; }
@keyframes trav { 0% { offset-distance: 0%; opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.js .bin-item.in .bn-check { stroke-dasharray: 46; animation: check-draw 3.8s var(--ease-settle) infinite; }
@keyframes check-draw { 0% { stroke-dashoffset: 46; } 30% { stroke-dashoffset: 0; opacity: 1; } 80% { stroke-dashoffset: 0; opacity: 1; } 94% { opacity: 0; } 100% { stroke-dashoffset: 46; opacity: 0; } }

/* XR headsets float in the shared session */
.v-headset { transform-box: fill-box; transform-origin: center; }
.in-view .xr-node .v-headset { animation: bob 4.2s ease-in-out infinite; }
.in-view .xr-node:nth-of-type(2) .v-headset { animation-delay: 0.7s; }
.in-view .xr-node:nth-of-type(3) .v-headset { animation-delay: 1.4s; }
.in-view .xr-node:nth-of-type(4) .v-headset { animation-delay: 2.1s; }
.in-view .xr-node:nth-of-type(5) .v-headset { animation-delay: 2.8s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }

/* LINKedChat lab links carry signal once lit */
.in-view .lab-link { stroke-dasharray: 3 4; animation: link-flow 1.6s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .js .bin-item.in .bn-check { animation: none; stroke-dasharray: none; opacity: 1; }
  .js .bin-item.in .bn-wave { animation: none; stroke-dasharray: none; }
  .wreveal .w { opacity: 1 !important; }
  .js .patent-row.in .stamp circle:first-of-type { animation: none; stroke-dasharray: none; }
  .js .ch-head::after { transform: scaleX(1); }
}


/* ================= award pass: instrument depth + texture ================= */
.bench { position: relative; cursor: crosshair; transform-style: preserve-3d; will-change: transform; }
.probe {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  font: 500 0.56rem var(--mono); letter-spacing: 0.1em; color: var(--muted);
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 2px;
  padding: 3px 7px; white-space: nowrap;
}
.probe[hidden] { display: none; }
.hero-grid-bg, #well-sense, #well-reason, #well-act { will-change: transform; }

/* a key line develops word by word as it enters the read zone */
.wreveal .w { opacity: 0.13; transition: opacity 0.45s var(--ease-settle); }
.wreveal .w.on { opacity: 1; }

/* sensor grain on scope captures, static and faint */
.capture { position: relative; }
.capture::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] .capture::after { opacity: 0.035; }

/* the patent ring stamps itself on reveal */
.js .patent-row.in .stamp circle:first-of-type { stroke-dasharray: 176; stroke-dashoffset: 176; animation: ring-draw 1.1s var(--ease-settle) 0.25s forwards; }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }

/* section rules draw themselves in */
.js .ch-head { border-bottom: none; position: relative; }
.js .ch-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-settle) 0.15s;
}
.js .ch-head.in::after { transform: scaleX(1); }

/* quiet scrollbar */
html { scrollbar-color: var(--faint) transparent; scrollbar-width: thin; }

@media (pointer: coarse) { .bench { cursor: default; } .probe { display: none !important; } }


/* ================= dimension pass ================= */
.tilt { transition: transform 0.14s var(--ease-settle); will-change: transform; }
.bin-item:hover { transform: none; } /* tilt JS owns the hover transform now */


/* exploded-view captures: layers separate in Z under the cursor tilt */
.capture.tilt { transform-style: preserve-3d; }
.capture.tilt .capture-bar, .capture.tilt img, .capture.tilt .viz, .capture.tilt figcaption { transition: transform 0.45s var(--ease-settle); }
.capture.tilt:hover .capture-bar { transform: translateZ(34px); }
.capture.tilt:hover img, .capture.tilt:hover .viz { transform: translateZ(20px); }
.capture.tilt:hover figcaption { transform: translateZ(26px); }

/* 3D wireframe head: the human node of the loop */
.head-wrap { display: flex; justify-content: center; margin-bottom: 18px; }
.head-wrap svg { width: 190px; height: 190px; overflow: visible; }
.hd-ring { fill: none; stroke: var(--muted); stroke-width: 1; opacity: 0.55; }
.hd-el { fill: var(--amber); }
.hd-label { font: 500 7.5px var(--mono); letter-spacing: 0.12em; fill: var(--faint); }
.hd-nose { stroke: var(--muted); stroke-width: 1.2; fill: none; }
.head-cap { text-align: center; font: 500 0.56rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 0 0 26px; }

/* ================= print ================= */
/* ================= redactable live scrub session ================= */
.cap-live { display: inline-flex; align-items: center; gap: 5px; color: var(--phosphor); }
.v-sub { font: 500 6.3px var(--mono); letter-spacing: 0.1em; fill: var(--faint-ink); }
#redact-viz .rv-line { font: 500 8.5px var(--mono); fill: var(--ink); }
#redact-viz .rv-dim { fill: var(--faint-ink); }
#redact-viz .rv-tag { font: 500 6.5px var(--mono); letter-spacing: 0.16em; fill: var(--faint-ink); }
#redact-viz .rv-tok { fill: var(--phosphor); }
#redact-viz .rv-mail { fill: var(--amber); }
#redact-viz .rv-caret { fill: var(--phosphor); }
#redact-viz .rv-pii { fill: var(--amber); fill-opacity: 0.14; stroke: var(--amber); stroke-width: 1; opacity: 0; transition: opacity 0.3s; }
#redact-viz .rv-pii.on { opacity: 1; }
#redact-viz g.lit rect { stroke: var(--amber); }
#redact-viz g.lit .v-label { fill: var(--ink); }

/* ================= responsive pass (audit 2026-06-12) ================= */
html { overflow-x: clip; }
.pb-short { display: none; }

@media (max-width: 1100px) {
  /* tablet band: media column gets too narrow next to text, stack early */
  .chan-body { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 1020px) {
  .chan-rail { flex-wrap: wrap; }
  .hero-grid { gap: 28px; }
  .hero-specimen { max-width: 320px; }
  .bench-row { margin-top: 40px; }
}
@media (max-width: 1000px) {
  /* no keyboard on touch: the palette button becomes MENU */
  .pb-full { display: none; }
  .pb-short { display: inline; }
}
@media (max-width: 750px) {
  /* cue that the wide schematic scrolls; recorder starts at NOW instead */
  .schematic { mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
}
@media (max-width: 700px) {
  .t-date { padding-top: 0; }
}
@media (max-width: 640px) {
  /* the loop bench keeps a legible floor and scrolls instead of shrinking */
  .bench-row { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bench-row .bench { min-width: 640px; }
  .b-label { font-size: 11.5px; }
  .b-label.b-dim { display: none; }
  .b-chan { font-size: 9.5px; }
  .b-val { font-size: 11px; }
  .b-hint { font-size: 12px; }
  .b-hint-label { font-size: 9px; }
  .b-cap { font-size: 10px; }
  .b-status { font-size: 11px; }
  .foot-inner { gap: 8px; }
  .foot-r { font-size: 0.5rem; }
}
@media (max-width: 560px) {
  .motion-study { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .motion-study svg { min-width: 430px; }
  .ms-frame text { font-size: 11px; }
  .cred-strip { line-height: 1.6; letter-spacing: 0.07em; }
  .patent-row { align-items: flex-start; }
  .stamp { margin-top: 4px; }
  .caps { gap: 14px; }
  .cap li { font-size: 0.75rem; padding: 4px 0; }
}
@media (max-width: 480px) {
  .chan-status { display: none; }
  .head-wrap svg { width: 150px; height: 150px; }
}
@media (max-width: 400px) {
  .nav-actions { gap: 8px; margin-left: 8px; }
  .icon-btn { padding: 5px 7px; }
}
@media (max-width: 380px) {
  .cap-ticks { display: none; }
}

@media print {
  :root, [data-theme="dark"], [data-theme="light"] {
    --bg: #ffffff; --bg-panel: #ffffff; --bg-inset: #f3f3f0;
    --ink: #111111; --muted: #444444; --faint: #8a8a85; --faint-ink: #555550;
    --line: #cccccc; --grid: #e8e8e4;
    --phosphor: #0E7A4E; --amber: #8a5a1d; --signal-red: #a03030;
  }
  .nav, .spine, .boot, .palette-overlay, .cta-row, .footer { display: none !important; }
  .sec { padding: 24px 0; }
  body { background: #ffffff; color: #111111; }
}
