/* ============================================================
   OSC RECORDINGS — phosphor on near-black, hardware drawn in CSS
   type: Unbounded (display) / Fragment Mono (everything else)
   ============================================================ */

:root {
  --bg: #060907;
  --bg-deep: #030504;
  --panel: #0c120d;
  --panel-2: #101812;
  --line: #1d2c20;
  --line-bright: #2c4431;
  --phos: #48ff7a;
  --phos-soft: #8fd9a4;
  --phos-dim: #35704a;
  --ink: #dfeee2;
  --muted: #7f987f;
  --red: #ff4438;
  --yel: #ffcc33;
  --blu: #4d84ff;
  --org: #ff8a2a;
  --pnk: #ff5fa8;
  --glow: 0 0 6px rgba(72, 255, 122, 0.55), 0 0 22px rgba(72, 255, 122, 0.18);
  --mono: "Fragment Mono", "SFMono-Regular", Menlo, monospace;
  --disp: "Unbounded", var(--mono);
  --pulse: 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--phos); color: var(--bg-deep); }

a { color: var(--phos); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button { font-family: var(--mono); cursor: pointer; color: inherit; }

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.pwr {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.led {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--phos-dim);
  box-shadow: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.led.lit { background: var(--phos); box-shadow: var(--glow); }
.led.red { background: #571d19; }
.led.red.lit { background: var(--red); box-shadow: 0 0 6px rgba(255,68,56,.6), 0 0 18px rgba(255,68,56,.25); }

.site-nav { display: flex; gap: 26px; font-size: 12px; letter-spacing: 0.16em; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--phos); text-decoration: none; }

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

.hero { padding: 64px 0 30px; }

.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--phos-dim);
  margin-bottom: 22px;
}
.hero-kicker b { color: var(--phos); font-weight: 400; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}

h1 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 .ph { color: var(--phos); text-shadow: var(--glow); }

.hero-copy {
  color: var(--muted);
  font-size: 14px;
  max-width: 46ch;
}
.hero-copy strong { color: var(--ink); font-weight: 400; }

/* ---------- logo mark ---------- */

.mark {
  display: block;
  width: 92px;
  height: 92px;
  transform: scale(calc(1 + var(--pulse) * 0.09));
  filter: drop-shadow(0 0 calc(4px + var(--pulse) * 14px) rgba(72, 255, 122, calc(0.25 + var(--pulse) * 0.6)));
}

/* ============================================================
   THE MODULE — OSC-SEQ mk2
   ============================================================ */

.module {
  position: relative;
  background:
    linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 55%, #0a0f0b 100%);
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 30px 80px rgba(0,0,0,0.55);
  padding: 26px 30px 30px;
}

/* rack screws */
.module::before, .module::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a4a3e, #0b0f0c 70%);
  border: 1px solid #223126;
}
.module::before { left: 12px; }
.module::after { right: 12px; }
.screw-b, .screw-c {
  position: absolute;
  bottom: 12px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a4a3e, #0b0f0c 70%);
  border: 1px solid #223126;
}
.screw-b { left: 12px; }
.screw-c { right: 12px; }

.module-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.module-title {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--ink);
}
.module-title em { font-style: normal; color: var(--phos); }
.module-sub { font-size: 11px; letter-spacing: 0.18em; color: var(--muted); }

.module-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: stretch;
}

/* ---------- step grid ---------- */

.seq {
  display: grid;
  grid-template-columns: 64px repeat(8, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.voice-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.voice-label i {
  font-style: normal;
  width: 6px; height: 6px;
  border-radius: 50%;
  flex: none;
}
.vl-kck i { background: var(--red); }
.vl-hat i { background: var(--yel); }
.vl-osc i { background: var(--blu); }

.step {
  aspect-ratio: 1 / 1.15;
  min-width: 0;
  border-radius: 5px;
  border: 1px solid var(--line-bright);
  background: linear-gradient(180deg, #131b14, #0a0f0b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 4px rgba(0,0,0,0.4);
  position: relative;
  transition: transform 0.06s;
  padding: 0;
}
.step:active { transform: translateY(1px); }

.step::after { /* the LED window */
  content: "";
  position: absolute;
  inset: 22% 26%;
  border-radius: 3px;
  background: #0a120c;
  border: 1px solid #16221a;
  transition: background 0.12s, box-shadow 0.12s;
}
.step[aria-pressed="true"]::after {
  background: var(--phos);
  box-shadow: var(--glow);
}
.step.hit::after { background: #d6ffe2; box-shadow: 0 0 10px rgba(214,255,226,0.9), 0 0 26px rgba(72,255,122,0.5); }
.step.ph-col { border-color: var(--phos-dim); }
.step.beat-4 { border-bottom-color: #3d5c44; }

/* the number rail joins the parent grid so each digit sits
   exactly under its step column, and lights as the playhead passes */
.seq-foot {
  display: contents;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #54704f;
}
.seq-foot span {
  text-align: center;
  padding-top: 3px;
  transition: color 0.1s, text-shadow 0.1s;
}
.seq-foot .sf-lab { text-align: left; letter-spacing: 0.2em; }
.seq-foot span.on { color: var(--phos); text-shadow: var(--glow); }

/* ---------- right rail: scope + transport ---------- */

.rail { display: flex; flex-direction: column; gap: 18px; }

.scope-shell {
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: #040604;
  padding: 8px;
  box-shadow: inset 0 0 24px rgba(0,0,0,0.9);
  position: relative;
}
.scope-shell::after { /* scanlines, only on the CRT */
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.28) 3px
  );
  pointer-events: none;
}
.scope-shell canvas {
  display: block;
  width: 100%;
  height: 110px;
  border-radius: 4px;
}
.scope-tag {
  position: absolute;
  top: 13px; left: 14px;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--phos-dim);
  z-index: 1;
}

.transport { display: flex; flex-direction: column; gap: 16px; }

.run-row { display: flex; gap: 10px; }

.btn-run {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 10px;
  font-size: 13px;
  letter-spacing: 0.22em;
  border-radius: 6px;
  border: 1px solid var(--phos-dim);
  background: linear-gradient(180deg, #14241a, #0b130e);
  color: var(--phos);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.btn-run:hover { border-color: var(--phos); box-shadow: 0 0 18px rgba(72,255,122,0.15); }
.btn-run[aria-pressed="true"] {
  border-color: var(--phos);
  box-shadow: inset 0 0 18px rgba(72,255,122,0.18), 0 0 18px rgba(72,255,122,0.2);
}

.btn-util {
  padding: 13px 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  border-radius: 6px;
  border: 1px solid var(--line-bright);
  background: linear-gradient(180deg, #121a13, #0a0f0b);
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
.btn-util:hover { color: var(--ink); border-color: #3d5c44; }

.tempo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.bpm-read {
  color: var(--phos);
  font-size: 13px;
  min-width: 7ch;
  text-align: right;
  text-shadow: var(--glow);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(90deg, var(--phos-dim), var(--line-bright));
  border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 26px;
  margin-top: -11px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2c4431, #121a13);
  border: 1px solid var(--phos-dim);
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  cursor: ew-resize;
}
input[type="range"]::-moz-range-track {
  height: 4px;
  background: linear-gradient(90deg, var(--phos-dim), var(--line-bright));
  border-radius: 2px;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 26px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2c4431, #121a13);
  border: 1px solid var(--phos-dim);
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  cursor: ew-resize;
}

.patch-note {
  font-size: 11px;
  color: #587257;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* ---------- section chrome ---------- */

section { padding: 84px 0 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.sec-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0.01em;
}
.sec-note { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }

/* ============================================================
   CATALOG — spines that expand
   ============================================================ */

.shelf {
  display: flex;
  gap: 10px;
  min-height: 480px;
  align-items: stretch;
}

.spine {
  flex: 0 0 58px;
  min-width: 0;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  overflow: hidden;
  position: relative;
  transition: flex 0.5s cubic-bezier(0.32, 0.9, 0.28, 1), border-color 0.3s;
  display: flex;
}
.spine:hover { border-color: #3d5c44; }
.spine.open {
  flex: 1 1 560px;
  border-color: var(--phos-dim);
}

.spine-btn {
  flex: none;
  width: 56px;
  border: none;
  background: none;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-right: 1px solid transparent;
}
.spine.open .spine-btn { border-right-color: var(--line); }

.spine-cat {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--phos);
}
.spine-name {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 300px;
}
.spine-chip {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex: none;
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 0 1px var(--line-bright);
}

.spine-body {
  flex: 1;
  /* stable width even when the spine is closed: the text never rewraps
     into a sliver, so every spine (and the shelf) keeps a sane height */
  min-width: 520px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s 0.18s;
}
.spine.open .spine-body { opacity: 1; }

.cover {
  width: 200px;
  height: 200px;
  border-radius: 6px;
  border: 1px solid var(--line-bright);
  position: relative;
  overflow: hidden;
  flex: none;
}
.cover span {
  position: absolute;
  left: 10px; bottom: 8px;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(6, 9, 7, 0.85);
  background: rgba(223, 238, 226, 0.85);
  padding: 2px 6px;
  border-radius: 2px;
}

.rel-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.15;
  margin-bottom: 4px;
}
.rel-artist { font-size: 12px; letter-spacing: 0.2em; color: var(--phos); margin-bottom: 14px; }
.rel-blurb { font-size: 13px; color: var(--muted); max-width: 52ch; margin-bottom: 16px; }

.rel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #587257;
}
.rel-meta b { color: var(--ink); font-weight: 400; }

.tracks {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 12px;
  color: var(--muted);
  columns: 2;
  column-gap: 28px;
  list-style: none;
}
.tracks li {
  padding: 3px 0;
  break-inside: avoid;
  display: flex;
  gap: 10px;
}
.tracks .tno { color: var(--phos-dim); flex: none; }

/* per-release cover art, all CSS */
.cov-1 { background:
  repeating-linear-gradient(90deg, var(--red) 0 6px, #12100f 6px 22px),
  #12100f; }
.cov-2 { background:
  radial-gradient(circle at 50% 50%, transparent 0 32px, var(--yel) 32px 36px, transparent 36px 58px, var(--yel) 58px 62px, transparent 62px 88px, var(--yel) 88px 92px, transparent 92px),
  #131208; }
.cov-3 { background:
  linear-gradient(180deg, transparent 48%, var(--blu) 48% 52%, transparent 52%),
  repeating-linear-gradient(0deg, transparent 0 14px, rgba(77,132,255,0.35) 14px 15px),
  #0b0e16; }
.cov-4 { background:
  conic-gradient(from 0deg at 50% 50%, var(--org) 0 45deg, #16100a 45deg 90deg, var(--org) 90deg 135deg, #16100a 135deg 180deg, var(--org) 180deg 225deg, #16100a 225deg 270deg, var(--org) 270deg 315deg, #16100a 315deg); }
.cov-5 { background:
  radial-gradient(circle at 30% 30%, var(--pnk) 0 10px, transparent 11px),
  radial-gradient(circle at 70% 45%, var(--pnk) 0 6px, transparent 7px),
  radial-gradient(circle at 45% 70%, var(--pnk) 0 14px, transparent 15px),
  radial-gradient(circle at 80% 80%, var(--pnk) 0 5px, transparent 6px),
  #140b10; }
.cov-6 { background:
  repeating-conic-gradient(from 0deg at 50% 120%, var(--phos) 0 4deg, #0a120c 4deg 12deg); }

.chip-1 { background: var(--red); }
.chip-2 { background: var(--yel); }
.chip-3 { background: var(--blu); }
.chip-4 { background: var(--org); }
.chip-5 { background: var(--pnk); }
.chip-6 { background: var(--phos); }

/* ============================================================
   LINER NOTES
   ============================================================ */

.liner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
}
.liner-copy p { color: var(--muted); font-size: 14px; margin-bottom: 18px; max-width: 58ch; }
.liner-copy p strong { color: var(--ink); font-weight: 400; }
.liner-copy .sig { color: var(--phos); font-size: 12px; letter-spacing: 0.18em; }

.spec {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  align-self: start;
}
.spec-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 13px 18px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(odd) { background: rgba(18, 26, 19, 0.5); }
.spec-k { color: #587257; letter-spacing: 0.14em; }
.spec-v { color: var(--ink); }
.spec-v i { font-style: normal; color: var(--muted); }

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

.demo-strip {
  margin-top: 90px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 26, 19, 0.45), transparent);
}
.demo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 0;
  flex-wrap: wrap;
}
.demo-inner h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 26px);
}
.demo-inner p { color: var(--muted); font-size: 13px; max-width: 52ch; }

.btn-demo {
  display: inline-block;
  padding: 14px 26px;
  border: 1px solid var(--phos);
  border-radius: 6px;
  color: var(--phos);
  font-size: 12px;
  letter-spacing: 0.2em;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn-demo:hover {
  background: var(--phos);
  color: var(--bg-deep);
  text-decoration: none;
  box-shadow: 0 0 26px rgba(72, 255, 122, 0.35);
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #587257;
  flex-wrap: wrap;
}
.site-foot a { color: var(--muted); }

/* ============================================================
   GUIDE PAGE
   ============================================================ */

.guide-main { padding: 56px 0 90px; }
.guide-main .back { font-size: 12px; letter-spacing: 0.18em; }
.guide-main h1 { margin: 18px 0 10px; font-size: clamp(28px, 3.6vw, 44px); }
.guide-lead { color: var(--muted); max-width: 62ch; margin-bottom: 40px; }

.g-sec { margin-top: 54px; }
.g-sec h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 6px;
}
.g-sec .g-note { font-size: 11px; letter-spacing: 0.22em; color: var(--phos-dim); margin-bottom: 18px; }
.g-sec p { color: var(--muted); font-size: 14px; max-width: 66ch; margin-bottom: 14px; }
.g-sec p strong, .g-sec li strong { color: var(--ink); font-weight: 400; }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 6px; }
.sw {
  flex: 1 1 130px;
  min-width: 120px;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  overflow: hidden;
}
.sw i { display: block; height: 58px; }
.sw b {
  display: block;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 8px 10px;
  color: var(--muted);
  background: var(--panel);
}
.sw b em { font-style: normal; color: var(--ink); display: block; }

pre {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--phos-soft);
  overflow-x: auto;
  margin: 14px 0 22px;
}
pre .c { color: #587257; }
code { font-family: var(--mono); }

.g-passes { list-style: none; counter-reset: pass; }
.g-passes li {
  counter-increment: pass;
  border-left: 2px solid var(--phos-dim);
  padding: 4px 0 16px 20px;
  margin-left: 6px;
  position: relative;
  color: var(--muted);
  font-size: 14px;
  max-width: 64ch;
}
.g-passes li::before {
  content: "PASS " counter(pass);
  display: block;
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--phos);
  margin-bottom: 4px;
}

.g-recipe { list-style: none; }
.g-recipe li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  max-width: 72ch;
}
.g-recipe li:last-child { border-bottom: none; }
.g-recipe .n {
  font-size: 11px;
  color: var(--phos);
  letter-spacing: 0.1em;
  padding-top: 3px;
}

.type-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.tp {
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  padding: 20px;
  background: var(--panel);
}
.tp .tp-demo { font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
.tp.tp-disp .tp-demo { font-family: var(--disp); font-weight: 700; }
.tp small { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; display: block; line-height: 1.6; }
.tp small b { color: var(--ink); font-weight: 400; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .module-body { grid-template-columns: 1fr; }
  .rail { flex-direction: column; }
  .liner { grid-template-columns: 1fr; gap: 36px; }
  .spine-body { grid-template-columns: 1fr; min-width: 0; }
  .cover { width: 160px; height: 160px; }
}

@media (max-width: 980px) {
  .shelf { flex-direction: column; min-height: 0; }
  .spine { flex: none; }
  .spine.open { flex: none; }
  .spine-btn {
    width: 100%;
    flex-direction: row;
    padding: 0 16px;
    height: 56px;
    justify-content: flex-start;
    gap: 14px;
    border-right: none;
  }
  .spine.open .spine-btn { border-right: none; border-bottom: 1px solid var(--line); }
  .spine-cat, .spine-name { writing-mode: horizontal-tb; max-height: none; }
  .spine-name { flex: 1; }
  .spine { display: block; }
  .spine-wrap-inner { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(0.32,0.9,0.28,1); }
  .spine.open .spine-wrap-inner { grid-template-rows: 1fr; }
  .spine-body { overflow: hidden; padding: 0 16px; opacity: 0; }
  .spine.open .spine-body { padding: 20px 16px; opacity: 1; }
  .tracks { columns: 1; }
}

@media (max-width: 640px) {
  .site-head { flex-wrap: wrap; row-gap: 0; }
  .brand { order: 1; flex: 1 1 auto; }
  .pwr { order: 2; }
  .site-nav {
    order: 3;
    width: 100%;
    gap: 22px;
    padding-top: 12px;
    margin-top: 14px;
    border-top: 1px solid var(--line);
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .site-nav { gap: 16px; }
  .hero { padding: 44px 0 20px; }
  .module { padding: 20px 16px 24px; }
  .seq { grid-template-columns: 44px repeat(8, minmax(0, 1fr)); gap: 5px; }
  .voice-label span { display: none; }
  .mark { width: 68px; height: 68px; }
  .type-pair { grid-template-columns: 1fr; }
  .demo-inner { padding: 36px 0; }
  section { padding: 64px 0 0; }
  .cover { width: 100%; height: 180px; }
}

/* ============================================================
   MOTION
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .rise.d1 { animation-delay: 0.08s; }
  .rise.d2 { animation-delay: 0.18s; }
  .rise.d3 { animation-delay: 0.3s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spine, .spine-body, .spine-wrap-inner { transition: none !important; }
  .mark { transform: none !important; filter: drop-shadow(0 0 4px rgba(72,255,122,0.25)); }
  .step, .btn-run, .btn-util { transition: none; }
}
