:root {
  --void:   oklch(15% 0.008 260);   /* graphite black */
  --void-2: oklch(11% 0.008 255);   /* deeper, for the 2D chapters */
  --bone:   oklch(94% 0.01 90);     /* bone white type */
  --signal: oklch(58% 0.24 30);     /* signal red-orange, THE accent */
  --grid:   oklch(60% 0.01 260 / 0.16);
  --radius: 22px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--void); }
body {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  color: var(--bone); background: var(--void);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mono, .kicker, .annotation, .scroll-cue, .chip, .idx, .spec-table th, .fr-labels {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}
::selection { background: var(--signal); color: var(--void); }

/* ---------- two-scale typography ---------- */
.display   { font-size: clamp(56px, 10vw, 150px); font-weight: 400; line-height: 0.98; letter-spacing: -0.03em; }
.display-2 { font-size: clamp(40px, 6.5vw, 96px); font-weight: 400; line-height: 1.0; letter-spacing: -0.025em; }
.kicker, .annotation, .pill, .scroll-cue, .nav-links a, .chip, .idx {
  font-size: 11px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase;
}
/* mono runs tighter than grotesque caps — pull tracking back in */
.kicker, .annotation, .scroll-cue, .chip, .idx { letter-spacing: 0.04em; }
.annotation { opacity: 0.6; line-height: 1.7; max-width: 34ch; }
.kicker { color: var(--signal); }
.sub { font-size: clamp(15px, 1.4vw, 19px); line-height: 1.55; max-width: 44ch; opacity: 0.82; }

/* ---------- z-layers ---------- */
.giant-layer { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
#stage       { position: fixed; inset: 0; z-index: 2; width: 100%; height: 100%; display: block; pointer-events: none; }
#blueprint   { position: fixed; z-index: 3; pointer-events: none; opacity: 0; }
.labels      { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.nav, .progress, .scroll-cue { z-index: 4; }
main         { position: relative; z-index: 3; }

/* ---------- giant text behind the object ---------- */
.giant {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(120px, 24vw, 400px);
  font-weight: 500; letter-spacing: -0.02em; white-space: nowrap;
  color: var(--bone); opacity: 0;
}

/* ---------- persistent UI ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px; mix-blend-mode: normal;
}
.wordmark { font-size: 19px; font-weight: 500; letter-spacing: 0.34em; color: var(--bone); text-decoration: none; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--bone); text-decoration: none; opacity: 0.6; padding-bottom: 3px; }
.nav-links a.active { opacity: 1; border-bottom: 1px dotted var(--signal); }
.pill {
  background: var(--bone); color: var(--void); border: 0; cursor: pointer;
  padding: 13px 20px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center;
  font-family: inherit;
}
.pill .dot { color: var(--signal); }
.pill.ghost { background: transparent; color: var(--bone); outline: 1px solid oklch(94% 0.01 90 / 0.35); }
.pill.ghost .dot { color: var(--signal); }
.pill.big { padding: 17px 28px; font-size: 13px; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: oklch(94% 0.01 90 / 0.08); }
#progress-bar { display: block; height: 100%; width: 0; background: var(--signal); }
/* scroll cue as a live level meter — audio-lab language, not a pill */
.scroll-cue {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; opacity: 0.7;
}
.vu { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.vu i {
  width: 3px; background: var(--signal); border-radius: 1px;
  animation: vu-bounce 1.1s ease-in-out infinite;
}
.vu i:nth-child(1) { height: 40%; animation-delay: 0s; }
.vu i:nth-child(2) { height: 90%; animation-delay: 0.18s; }
.vu i:nth-child(3) { height: 60%; animation-delay: 0.36s; }
.vu i:nth-child(4) { height: 100%; animation-delay: 0.54s; }
@keyframes vu-bounce {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* ---------- chapters / sticky pattern (no GSAP pinning) ---------- */
.ch { position: relative; }
.ch .sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#hero        { height: 190vh; }
#split       { height: 300vh; }
#blueprint-ch{ height: 140vh; }
#features    { height: 300vh; }
#specs       { min-height: 130vh; }
#finale      { height: 240vh; }

/* hero */
.hero-copy { position: absolute; left: 6vw; bottom: 12vh; max-width: 46vw; }
.hero-copy .kicker { margin-bottom: 18px; }
.hero-copy .sub { margin-top: 22px; }

/* split beats */
.beat-rail { position: absolute; left: 6vw; top: 20vh; max-width: 30vw; }
.beat-rail .kicker { margin-bottom: 14px; }
.beat { font-size: clamp(18px, 1.9vw, 26px); line-height: 1.35; opacity: 0; position: absolute; top: 40px; max-width: 24ch; }

/* projected chips */
.chip {
  position: fixed; left: 0; top: 0; padding: 7px 12px;
  border: 1px solid oklch(58% 0.24 30 / 0.7); border-radius: 999px;
  background: color-mix(in oklch, var(--void) 75%, transparent);
  backdrop-filter: blur(8px);
  font-size: 10px; opacity: 0; white-space: nowrap;
  transform: translate(-50%, -50%);
}
.chip::before {
  content: ''; position: absolute; left: 50%; top: 100%;
  width: 1px; height: 14px; background: oklch(58% 0.24 30 / 0.7);
}

/* blueprint svg */
#blueprint line, #blueprint circle, #blueprint path { fill: none; stroke: var(--bone); }
.bp-guides line { stroke: var(--grid); stroke-width: 1; }
.bp-cup   { stroke-dasharray: 7 7; stroke-width: 1.4; opacity: 0.85; }
.bp-inner { stroke-dasharray: 4 6; stroke-width: 1;   opacity: 0.5; }
.bp-band  { stroke-dasharray: 7 7; stroke-width: 1.4; opacity: 0.85; }
#blueprint .bp-draw { stroke: var(--signal); stroke-width: 1.6; stroke-dasharray: 100; stroke-dashoffset: 100; }
.bp-squares rect { fill: var(--signal); stroke: none; }
.bp-notes text { fill: var(--bone); stroke: none; font-size: 13px; letter-spacing: 0.12em; text-anchor: middle; opacity: 0.6; }

/* blueprint corner annotations */
.corner { position: absolute; opacity: 0.5; }
.corner.tl { top: 12vh; left: 6vw; }
.corner.tr { top: 12vh; right: 6vw; }
.corner.bl { bottom: 8vh; left: 6vw; }
.corner.br { bottom: 8vh; right: 6vw; }

/* features carousel */
.feat-head { position: absolute; top: 10vh; left: 6vw; right: 6vw; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.track {
  position: absolute; top: 38vh; left: 0;
  display: flex; gap: 26px; padding-left: 6vw;
  will-change: transform; cursor: grab;
}
.track.dragging { cursor: grabbing; }
.card {
  position: relative; flex: 0 0 auto; width: min(380px, 74vw); height: 46vh; min-height: 320px;
  background: var(--void-2); border: 1px solid oklch(94% 0.01 90 / 0.08);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  transform-style: preserve-3d; user-select: none;
}
.card.w-lg { width: min(460px, 80vw); }
.card .idx { position: absolute; top: 22px; left: 24px; color: var(--signal); }
.card::before {
  content: attr(data-idx); position: absolute; top: -30px; right: 6px;
  font-size: 180px; font-weight: 500; letter-spacing: -0.04em;
  color: oklch(94% 0.01 90 / 0.05); pointer-events: none;
}
.card .mark { position: absolute; font-size: 13px; opacity: 0.4; }
.card .mark.tl { top: 8px; left: 10px; } .card .mark.br { bottom: 6px; right: 10px; }
.card h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; letter-spacing: -0.02em; }
.card p { font-size: 15px; line-height: 1.5; opacity: 0.8; max-width: 34ch; }
.card .annotation { margin-top: 4px; }

/* frequency-response curve — measurement furniture, drawn not photographed */
.fr-block { margin-bottom: 34px; }
.fr-curve { width: 100%; height: 96px; display: block; }
.fr-grid { stroke: oklch(94% 0.01 90 / 0.1); stroke-width: 1; }
.fr-line { fill: none; stroke: var(--bone); stroke-width: 1.6; opacity: 0.8; }
.fr-dot { fill: var(--signal); }
.fr-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.55; }

/* specs */
#specs { background: transparent; padding: 18vh 6vw 14vh; }
.specs-inner { max-width: 1300px; }
.spec-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; margin-top: 7vh; align-items: start; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-top: 1px solid oklch(94% 0.01 90 / 0.12); }
.spec-table tr:last-child { border-bottom: 1px solid oklch(94% 0.01 90 / 0.12); }
.spec-table th {
  text-align: left; padding: 15px 0; font-size: 11px; font-weight: 500;
  letter-spacing: 0.09em; color: var(--signal); width: 38%;
}
.spec-table td { padding: 15px 0; font-size: 15px; opacity: 0.85; }
.variants { display: grid; gap: 22px; }
.variant {
  background: var(--void-2); border: 1px solid oklch(94% 0.01 90 / 0.08);
  border-radius: var(--radius); padding: 30px;
  display: grid; gap: 8px; justify-items: start;
  transform-style: preserve-3d;
}
.variant.vip { border-color: oklch(58% 0.24 30 / 0.4); }
.variant h3 { font-size: 30px; font-weight: 400; }
.price { font-size: 26px; margin: 6px 0 10px; }

/* finale */
.finale-copy { position: absolute; left: 6vw; bottom: 20vh; max-width: 44vw; }
.finale-sub { margin: 18px 0 26px; }
.site-foot {
  position: absolute; bottom: 24px; left: 6vw; right: 6vw;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
/* the credit and legal links in the footer: the page sets no global anchor style */
.site-foot a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--signal); }
.site-foot a:hover { color: var(--signal); }

/* SplitText mask */
.split-line { overflow: hidden; }

/* reveal helpers */
.reveal-k { opacity: 0; transform: translateY(12px); }

@media (max-width: 820px) {
  .nav-links { display: none; }

  .labels { display: none; }
  .hero-copy { max-width: 88vw; }
  .beat-rail { max-width: 80vw; }
  .finale-copy { max-width: 88vw; }
  .spec-grid { grid-template-columns: 1fr; gap: 30px; }
  .giant { font-size: 34vw; }
}

/* ---------------- legal pages (privacy, terms) ----------------
   Plain documents on the same graphite: an index down the left, the text
   on the right. No three.js, no scroll rig — they always render. */

.legal-main { padding: 0 clamp(22px, 4vw, 54px); max-width: 1440px; margin: 0 auto; }
.legal-head { padding: 18vh 0 0; display: grid; gap: 20px; max-width: 62ch; }
.legal-head .display { font-size: clamp(44px, 8vw, 118px); }
.legal-lede { font-size: clamp(15px, 1.5vw, 20px); line-height: 1.55; opacity: 0.82; max-width: 52ch; }

.legal-grid {
  display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 2.7fr);
  gap: 40px clamp(28px, 6vw, 110px); align-items: start;
  padding: 10vh 0 12vh;
}
.legal-index { position: sticky; top: 40px; }
.legal-index ol { list-style: none; display: grid; gap: 10px; counter-reset: part; }
.legal-index li { counter-increment: part; }
.legal-index a { color: var(--bone); opacity: 0.6; text-decoration: none; }
.legal-index a::before { content: counter(part, decimal-leading-zero) "  "; color: var(--signal); opacity: 1; white-space: pre; }
.legal-index a:hover { opacity: 1; }

.legal-body { display: grid; gap: 56px; }
.legal-part { border-top: 1px solid oklch(60% 0.01 260 / 0.22); padding-top: 18px; display: grid; gap: 14px; scroll-margin-top: 40px; }
.legal-part h2 { font-size: clamp(24px, 3vw, 40px); font-weight: 400; line-height: 1.12; letter-spacing: -0.02em; }
.legal-part p, .legal-part li { font-size: 16px; line-height: 1.65; opacity: 0.8; max-width: 64ch; }
.legal-part a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--signal); }
.legal-list { list-style: disc; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-list li::marker { color: var(--signal); }

.legal-table { overflow-x: auto; }
.legal-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal-table th {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  text-align: left; font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.5;
  padding: 0 16px 10px 0; border-bottom: 1px solid oklch(60% 0.01 260 / 0.22);
}
.legal-table td { vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid oklch(60% 0.01 260 / 0.12); opacity: 0.8; }
.legal-table td:first-child { opacity: 1; white-space: nowrap; }

.legal-foot {
  border-top: 1px solid oklch(60% 0.01 260 / 0.22);
  padding: 26px clamp(22px, 4vw, 54px) 44px;
  display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between;
}
.legal-foot a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--signal); }
.legal-foot a:hover { color: var(--signal); }

@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-index { position: static; }
}
