/* Voodoo Trading — site.css
   Palette locked from domain/trading/DESIGN.md. One deliberate addition: --filament
   (tube-filament amber) used ONLY as a light source (glows/backlight), never as a text
   or fill color. See DESIGN_NOTES.md. */

:root {
  --black: #0A0A0A;
  --char: #1A1A1A;
  --blood: #6B1D2A;
  --blood-l: #8B2E3D;
  --gold: #C4A265;
  --gold-d: #9E7F45;
  --bone: #E8DFD0;
  --fg: rgba(232, 223, 208, .85);
  --fg-soft: rgba(232, 223, 208, .68);
  --warm: #3A3632;
  --filament: #E0954A;           /* deviation: light source only */
  --heat: .35;                   /* 0..1, driven by JS from the signal */
  --sync: 0;                     /* 0..1, driven by JS */

  --serif-d: "Playfair Display", "Times New Roman", serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --ease-cut: cubic-bezier(.75, 0, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--fg);
  font-family: var(--serif);
  font-size: clamp(17px, 1.05rem + .15vw, 19px);
  line-height: 1.65;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--bone); }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--gold); color: var(--black); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* HUD micro-labels: the only place the monospace appears */
.hud {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-d);
}

/* ---------------- Top bar ---------------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: linear-gradient(180deg, rgba(10,10,10,.92), rgba(10,10,10,.72));
  border-bottom: 1px solid rgba(158,127,69,.22);
  backdrop-filter: blur(6px);
}
.mark { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.mark-icon { width: 32px; height: 32px; align-self: center; margin-right: -2px; }
.mark-v { font-family: var(--serif-d); font-weight: 700; font-size: 22px; color: var(--bone); letter-spacing: .02em; }
.mark-t { font-family: var(--serif); font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
.topnav { display: flex; gap: clamp(16px, 3vw, 40px); }
.topnav a {
  font-size: 13px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--fg-soft); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
}
.topnav a:hover, .topnav a:focus-visible { color: var(--gold); border-bottom-color: var(--gold-d); }
/* home only: the full nav hides below 640px, so the Library stays one tap away on a phone */
.topbar-lib {
  display: none; margin-left: auto;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bone); text-decoration: none;
  border: 1px solid var(--gold-d); border-radius: 999px; padding: 7px 14px;
}
.topbar-lib:hover, .topbar-lib:focus-visible { color: var(--gold); border-color: var(--gold); }

.sound-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--char); border: 1px solid var(--warm); border-radius: 999px;
  padding: 7px 14px 7px 10px; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-soft);
}
.sound-toggle:hover { border-color: var(--gold-d); color: var(--bone); }
.sound-lamp {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a1a17; border: 1px solid var(--warm);
}
.sound-toggle[aria-pressed="true"] { border-color: var(--gold-d); color: var(--bone); }
.sound-toggle[aria-pressed="true"] .sound-lamp {
  background: var(--filament);
  box-shadow: 0 0 10px 2px rgba(224,149,74,.55);
  border-color: var(--gold);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; cursor: pointer; text-decoration: none;
  font-family: var(--serif); font-size: 14px; letter-spacing: .26em; text-transform: uppercase;
  border-radius: 2px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blood); color: var(--bone); border: 1px solid var(--blood-l); }
.btn-primary:hover { background: var(--blood-l); }
.btn-primary[aria-pressed="true"] { background: transparent; border-color: var(--gold-d); color: var(--gold); }
.btn-quiet { background: transparent; color: var(--fg); border: 1px solid var(--warm); }
.btn-quiet:hover { border-color: var(--gold-d); color: var(--gold); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 104px var(--gutter) 64px;
  max-width: 1600px; margin: 0 auto;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img, .hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg img { filter: saturate(.9) brightness(.85); }
.hero-bg video { opacity: 0; filter: saturate(.9) brightness(.85); }
.hero-bg video.is-playing { opacity: 1; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(10,10,10,.25), rgba(10,10,10,.7) 70%),
    linear-gradient(90deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.4) 50%, rgba(10,10,10,.6) 100%),
    linear-gradient(180deg, rgba(10,10,10,0) 70%, var(--black) 100%);
}
/* scanlines: the "cyber" layer, very faint */
.hero-veil::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(232,223,208,.035) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.hero-copy { max-width: 560px; }
.pretitle {
  font-size: 13px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold);
}
.wordmark { margin: 18px 0 0; line-height: .9; }
.wm-voodoo {
  position: relative; display: block;
  font-family: var(--serif-d); font-weight: 900;
  font-size: clamp(56px, 7.1vw, 110px);
  letter-spacing: -.01em; color: var(--bone);
  text-transform: uppercase;
}
.wm-trading {
  display: block; margin-top: 14px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: .62em; text-transform: uppercase; color: var(--gold);
}
.gold-rule { width: 96px; height: 1px; background: var(--gold); opacity: .7; margin: 30px 0 24px; }
.tagline {
  font-family: var(--serif-d); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px); color: var(--gold); line-height: 1.3;
}
.hero-lede { margin-top: 18px; color: var(--fg-soft); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* chromatic offset glitch: burgundy + gold ghost layers, fired by JS (.glitching) */
.wm-voodoo::before, .wm-voodoo::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.wm-voodoo::before { color: var(--blood-l); }
.wm-voodoo::after { color: var(--gold); }
.glitching .wm-voodoo::before { opacity: .9; animation: glitchA .42s steps(2, end) 1; }
.glitching .wm-voodoo::after { opacity: .7; animation: glitchB .42s steps(2, end) 1; }
@keyframes glitchA {
  0% { transform: translate(-6px, 0); clip-path: inset(10% 0 62% 0); }
  25% { transform: translate(5px, 0); clip-path: inset(58% 0 8% 0); }
  50% { transform: translate(-3px, 0); clip-path: inset(30% 0 40% 0); }
  75% { transform: translate(4px, 0); clip-path: inset(72% 0 2% 0); }
  100% { transform: translate(0, 0); clip-path: inset(0 0 100% 0); }
}
@keyframes glitchB {
  0% { transform: translate(5px, 0); clip-path: inset(66% 0 6% 0); }
  25% { transform: translate(-4px, 0); clip-path: inset(18% 0 60% 0); }
  50% { transform: translate(3px, 0); clip-path: inset(44% 0 30% 0); }
  75% { transform: translate(-5px, 0); clip-path: inset(4% 0 80% 0); }
  100% { transform: translate(0, 0); clip-path: inset(100% 0 0 0); }
}

/* editorial reveal: hard wipe, no fade */
.reveal { animation: wipe .5s var(--ease-cut) both; }
.r1 { animation-delay: .05s; } .r2 { animation-delay: .18s; } .r3 { animation-delay: .34s; } .r4 { animation-delay: .5s; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------------- Deck / turntable ---------------- */
.deck { width: 100%; max-width: 720px; justify-self: end; }
.plinth {
  position: relative; aspect-ratio: 640 / 560; width: 100%;
  border-radius: 10px;
  background:
    radial-gradient(ellipse 80% 60% at 40% 45%, rgba(107,29,42,.22), transparent 70%),
    linear-gradient(160deg, #211c19, #121010 60%, #0d0b0a);
  border: 1px solid rgba(158,127,69,.45);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(232,223,208,.06);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.plinth::before { /* circuit-vévé linework, barely there */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: url("../assets/veve-tile.webp") center / 220px auto;
  opacity: .11; filter: sepia(.4);
}
.screw {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold), #4b3a1f);
}
.screw::after { content: ""; position: absolute; left: 1px; right: 1px; top: 4px; height: 1.5px; background: #2a2016; transform: rotate(35deg); }
.s1 { left: 14px; top: 14px; } .s2 { right: 14px; top: 14px; } .s3 { left: 14px; bottom: 14px; } .s4 { right: 14px; bottom: 14px; }

/* record centre (270,280) r=240 in the 640x560 plinth space */
.platter-wrap {
  position: absolute; left: 4.6875%; top: 7.1429%; width: 75%; height: 85.714%;
  border-radius: 50%;
  background: radial-gradient(circle, #151312 0 62%, #0c0b0a 63%, #1b1816 100%);
  box-shadow: 0 0 0 2px rgba(158,127,69,.25), 0 16px 40px -10px rgba(0,0,0,.9);
}
.record-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.record-label-fallback {
  position: absolute; left: 34%; top: 34%; width: 32%; height: 32%; border-radius: 50%; object-fit: cover;
  opacity: .9;
}
.has-js .record-label-fallback { display: none; }
.tonearm-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.stylus-glow { transition: fill .2s; }
.is-playing .stylus-glow { fill: var(--filament); filter: drop-shadow(0 0 6px rgba(224,149,74,.9)); }
.tonearm-hit { position: absolute; inset: 0; cursor: grab; border-radius: 10px; touch-action: pan-y; }
.tonearm-hit:active { cursor: grabbing; }
.tonearm-hit:focus-visible { outline-offset: -4px; }
.deck-hud {
  position: absolute; right: 18px; bottom: 16px; text-align: right;
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-d);
  pointer-events: none;
}
.deck-hud sup { font-size: 7px; }
.deck-caption { margin-top: 12px; font-size: 14px; color: var(--fg-soft); font-style: italic; }

/* ---------------- The Groove ---------------- */
.groove { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter) 40px; }
.groove-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.side-tag { font-size: 13px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
.groove h2, .sleeve h2, .follow h2 {
  font-family: var(--serif-d); font-weight: 700; color: var(--bone);
  font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -.005em; margin-top: 10px;
}
.groove-sub { margin-top: 16px; color: var(--fg-soft); max-width: 52ch; }

.amp {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(16px, 3vw, 36px);
  border-radius: 6px;
  border: 1px solid rgba(158,127,69,.4);
  background:
    repeating-linear-gradient(90deg, rgba(232,223,208,.018) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #1e1a17, #121010);
  box-shadow: inset 0 1px 0 rgba(232,223,208,.06), 0 40px 90px -40px rgba(0,0,0,.95);
}
.amp-loop {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: saturate(.8) brightness(.55);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 38%, transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 38%, transparent 60%);
}
.amp-loop.is-playing, .amp-loop.has-poster { opacity: calc(.25 + var(--heat) * .35); }

.amp-face {
  display: grid; grid-template-columns: 1fr minmax(180px, .9fr) 1fr; gap: clamp(12px, 2.5vw, 32px);
  align-items: center;
}
.meter {
  position: relative; padding: 14px 14px 10px; border-radius: 6px;
  background:
    radial-gradient(ellipse 80% 90% at 50% 100%, rgba(224,149,74, calc(.10 + var(--heat) * .32)), transparent 70%),
    #13100e;
  border: 1px solid rgba(158,127,69,.45);
  box-shadow: inset 0 0 30px rgba(0,0,0,.8);
}
.meter svg { width: 100%; height: auto; }
.meter-arc { fill: none; stroke: var(--gold-d); stroke-width: 1.5; }
.meter-arc-hot { fill: none; stroke: var(--blood-l); stroke-width: 4; }
.meter-ticks line { stroke: var(--gold-d); stroke-width: 1.2; }
.meter-ticks line.major { stroke: var(--gold); stroke-width: 1.8; }
.meter-needle { stroke: var(--bone); stroke-width: 2; stroke-linecap: round; }
.meter-hub { fill: var(--char); stroke: var(--gold-d); }
.meter-name {
  text-align: center; margin-top: 2px;
  font-family: var(--serif-d); font-style: italic; font-size: 16px; color: var(--gold);
}

.mood-plate {
  text-align: center; padding: 18px 10px;
  border-top: 1px solid rgba(158,127,69,.35); border-bottom: 1px solid rgba(158,127,69,.35);
}
.mood-name {
  margin-top: 6px;
  font-family: var(--serif-d); font-weight: 700; font-style: italic;
  font-size: clamp(36px, 4.6vw, 58px); line-height: 1; color: var(--bone);
}
.mood-line { margin-top: 10px; font-style: italic; color: var(--gold); font-size: 17px; }
.mood-bpm { display: flex; justify-content: center; gap: 18px; margin-top: 12px; }

.tubes { display: flex; justify-content: center; gap: clamp(14px, 3vw, 36px); margin: 26px 0 18px; }
.tube {
  position: relative; width: clamp(26px, 3.2vw, 38px); aspect-ratio: 1 / 2.2;
  border-radius: 45% 45% 10% 10% / 22% 22% 6% 6%;
  background: linear-gradient(90deg, rgba(232,223,208,.06), rgba(232,223,208,.16) 30%, rgba(232,223,208,.03) 60%, rgba(232,223,208,.1));
  border: 1px solid rgba(232,223,208,.16);
}
.tube::after { /* base */
  content: ""; position: absolute; left: -12%; right: -12%; bottom: -10px; height: 12px;
  background: linear-gradient(180deg, #2b2420, #0f0d0c); border: 1px solid var(--gold-d); border-radius: 2px;
}
.tube i {
  position: absolute; left: 32%; right: 32%; top: 38%; bottom: 14%;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(224,149,74,.25), rgba(224,149,74, calc(.4 + var(--heat) * .6)));
  box-shadow: 0 0 calc(6px + var(--heat) * 26px) calc(1px + var(--heat) * 6px) rgba(224,149,74, calc(.18 + var(--heat) * .5));
}
.tube:nth-child(2) i { animation-delay: -.7s; } .tube:nth-child(3) i { animation-delay: -1.3s; }
.amp.is-live .tube i { animation: flicker 2.6s infinite steps(1, end); }
@keyframes flicker { 0%, 100% { filter: brightness(1); } 47% { filter: brightness(1.12); } 52% { filter: brightness(.93); } 81% { filter: brightness(1.05); } }

.tape-wrap {
  position: relative; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(158,127,69,.45);
  background: #090807;
}
.tape { width: 100%; height: clamp(230px, 30vw, 360px); cursor: crosshair; touch-action: none; }
.tape:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.tape-wrap::after { /* scanlines + vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(232,223,208,.03) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.6));
}
.tape-hud {
  position: absolute; left: 12px; right: 12px; top: 10px;
  display: flex; justify-content: space-between; gap: 12px; pointer-events: none;
}
.tape-hud .hud { font-size: 10px; }

.amp-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 20px;
}
.sync { display: flex; align-items: center; gap: 12px; }
.jewel {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c87a83, var(--blood) 55%, #2c0c12);
  border: 2px solid var(--gold-d);
  filter: brightness(calc(.45 + var(--sync) * .9));
  box-shadow: 0 0 calc(var(--sync) * 22px) calc(var(--sync) * 5px) rgba(139,46,61,.75);
}
.sync-bar { width: 130px; height: 6px; margin-top: 6px; background: #1d1816; border: 1px solid var(--warm); border-radius: 3px; overflow: hidden; }
.sync-bar i { display: block; height: 100%; width: calc(var(--sync) * 100%); background: linear-gradient(90deg, var(--blood), var(--gold)); }
.cue { display: flex; align-items: center; gap: 12px; flex: 1 1 200px; min-width: 180px; }
.cue input { flex: 1; accent-color: var(--gold); min-height: 30px; }
.fine { margin-top: 14px; font-size: 14px; font-style: italic; color: var(--fg-soft); max-width: 70ch; }

/* ---------------- Tracklist / sleeve ---------------- */
.sleeve {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.sleeve-front { position: sticky; top: 96px; }
.sleeve-front img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid rgba(158,127,69,.45); border-radius: 2px;
  background: linear-gradient(135deg, #2a0e14, #0a0a0a);
}
.veve-mark { width: 120px; color: var(--gold-d); margin: 28px 0 0; opacity: .8; }
.sleeve-note { margin-top: 14px; color: var(--fg-soft); font-style: italic; max-width: 46ch; }
.side { margin-top: clamp(32px, 4vw, 48px); }
.side-name {
  font-family: var(--serif); font-weight: 400; font-size: 13px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold);
  padding-bottom: 10px; border-bottom: 1px solid var(--warm);
}
.tracks { list-style: none; margin: 0; padding: 0; }
.track {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid rgba(58,54,50,.7);
}
.track img {
  width: 96px; height: 96px; object-fit: cover; border-radius: 50%;
  border: 1px solid rgba(158,127,69,.4);
  background: radial-gradient(circle, #1a1a1a 0 18%, #0a0a0a 19% 100%);
}
.track-no { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--blood-l); }
.track h4 { font-family: var(--serif-d); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); color: var(--bone); line-height: 1.15; margin: 2px 0 6px; }
.track p { max-width: 54ch; }
.track-status { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-d); }

/* ---------------- Liner notes / origins ---------------- */
.liner { border-top: 1px solid var(--warm); padding: clamp(72px, 10vw, 140px) var(--gutter); }
.liner-inner { max-width: 760px; margin: 0 auto; }
.liner h2 {
  font-family: var(--serif-d); font-weight: 700; color: var(--bone);
  font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -.005em; margin-top: 10px;
}
.liner-body { margin-top: clamp(20px, 3vw, 28px); max-width: 58ch; }
.liner-body p + p { margin-top: 14px; }
.liner-body p:last-child { color: var(--fg-soft); font-style: italic; }
.credit {
  margin: clamp(28px, 4vw, 40px) 0 0; padding: 16px 0 18px;
  border-top: 1px solid var(--gold-d); border-bottom: 1px solid var(--warm);
}
.credit dd { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.credit-name { font-family: var(--serif-d); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); color: var(--bone); line-height: 1.15; }
.credit-alias { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.liner-link { margin-top: 18px; font-size: 15px; }
.liner-link a {
  color: var(--bone); text-decoration: underline; text-decoration-color: var(--gold-d);
  text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.liner-link a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.liner-fine { margin-top: 10px; font-size: 14px; font-style: italic; color: var(--fg-soft); }

/* ---------------- Follow / dial ---------------- */
.follow { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 11vw, 160px) var(--gutter); border-top: 1px solid var(--warm); }
.follow-bg { position: absolute; inset: 0; z-index: -1; }
.follow-bg video {
  width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.8) brightness(.6);
}
.follow-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--black), rgba(10,10,10,.55) 40%, rgba(10,10,10,.7) 70%, var(--black)); }
.follow-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.follow-line { margin-top: 12px; font-family: var(--serif-d); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); color: var(--gold); }

.dial { margin-top: clamp(36px, 5vw, 56px); }
.dial-glass {
  position: relative; height: 64px; border-radius: 4px;
  border: 1px solid rgba(158,127,69,.5);
  background:
    radial-gradient(ellipse 60% 140% at var(--dial-x, 12.5%) 50%, rgba(224,149,74,.22), transparent 70%),
    linear-gradient(180deg, #1b1613, #0e0c0b);
  box-shadow: inset 0 0 24px rgba(0,0,0,.8);
}
.dial-scale {
  position: absolute; left: 3%; right: 3%; top: 14px; bottom: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(196,162,101,.55) 0 1px, transparent 1px 12.5%),
    repeating-linear-gradient(90deg, rgba(158,127,69,.35) 0 1px, transparent 1px 2.5%);
  background-size: 100% 100%, 100% 45%;
  background-repeat: no-repeat;
  background-position: 0 0, 0 100%;
}
.dial-pointer {
  position: absolute; top: 6px; bottom: 6px; left: var(--dial-x, 12.5%); width: 2px; margin-left: -1px;
  background: var(--blood-l);
  box-shadow: 0 0 10px 2px rgba(139,46,61,.6);
  transition: left .45s cubic-bezier(.3, 1.4, .5, 1);
}
.stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stations a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 18px 6px 10px; text-decoration: none; border-bottom: 1px solid transparent;
}
.st-name { font-family: var(--serif-d); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); color: var(--bone); }
.st-handle { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--gold-d); }
.stations a:hover .st-name, .stations a:focus-visible .st-name, .stations a.is-tuned .st-name { color: var(--gold); }
.stations a:hover, .stations a:focus-visible { border-bottom-color: var(--gold-d); }
.hashtags { margin-top: clamp(40px, 6vw, 64px); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: #8a8076; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--warm); padding: 44px var(--gutter) 40px; text-align: center; background: var(--black); }
.footer-avatar { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; }
.signoff { font-family: var(--serif-d); font-size: clamp(18px, 2vw, 22px); color: var(--bone); }
.signoff em { color: var(--gold); }
.disclaimer { max-width: 760px; margin: 22px auto 0; font-size: 14px; line-height: 1.6; color: rgba(232,223,208,.7); }
.disclaimer p + p { margin-top: 8px; }
.disclaimer strong { color: var(--bone); font-weight: 600; }
.copy { margin-top: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: #7d746a; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 92px; min-height: auto; }
  .wm-voodoo { font-size: min(calc((100vw - 40px) / 5.1), 110px); }
  .deck { justify-self: center; }
  .sleeve { grid-template-columns: 1fr; }
  .sleeve-front { position: static; }
  .amp-face { grid-template-columns: 1fr 1fr; }
  .mood-plate { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 640px) {
  .topnav { display: none; }
  .topbar-lib { display: inline-flex; }
  .topbar { gap: 10px; }
  .mark-t { display: none; }
  .wm-trading { letter-spacing: .5em; }
  .track { grid-template-columns: 64px 1fr; gap: 14px; }
  .track img { width: 64px; height: 64px; }
  .stations { grid-template-columns: repeat(2, 1fr); }
  .dial-glass { height: 52px; }
  .amp-controls { gap: 16px; }
  .amp-controls .btn { flex: 1 1 100%; }
  .sync { flex: 1 1 auto; }
  .tape-hud .hud:last-child { display: none; }
}

/* ---------------- Reduced motion: no spin, no glitch, no reveal ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .glitching .wm-voodoo::before, .glitching .wm-voodoo::after { animation: none; opacity: 0; }
  .amp.is-live .tube i { animation: none; }
  .dial-pointer { transition: none; }
  .hero-bg video, .amp-loop, .follow-bg video { display: none; }
}

/* =====================================================================================
   Lessons: Library (/lessons/), Playlists (/playlists/), home "Latest" strip.
   Markup is pre-rendered by agents/hex/scripts/build_site_index.py; js/library.js only filters.
   ===================================================================================== */
.page { max-width: var(--maxw); margin: 0 auto; padding: 116px var(--gutter) clamp(64px, 8vw, 120px); }
.page-head { padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--warm); }
.page-head h1 {
  font-family: var(--serif-d); font-weight: 900; color: var(--bone);
  font-size: clamp(52px, 9vw, 112px); line-height: .94; letter-spacing: -.012em;
}
.page-lede { margin-top: 18px; max-width: 58ch; }
.page-fine { margin-top: 10px; font-size: 14px; font-style: italic; color: var(--fg-soft); }
.topnav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold-d); }

.empty { margin-top: clamp(36px, 5vw, 56px); max-width: 60ch; }
.empty p + p { margin-top: 12px; }
.empty-line { font-family: var(--serif-d); font-style: italic; font-size: clamp(24px, 3vw, 32px); color: var(--gold); }
.empty .btn { margin-top: 10px; }

/* search + concept filter (shown by JS only) */
.lib-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 24px; margin: clamp(28px, 4vw, 40px) 0 0; }
.lib-tools[hidden], .lib-none[hidden] { display: none; }
.field { display: grid; gap: 6px; flex: 1 1 220px; max-width: 360px; }
.field-label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-d); }
.field input, .field select {
  min-height: 46px; padding: 0 14px; border-radius: 2px;
  background: var(--char); color: var(--bone); border: 1px solid var(--warm);
  font: 16px/1.3 var(--serif);
}
.field input:focus-visible, .field select:focus-visible { border-color: var(--gold); outline-offset: 2px; }
.lib-count { font-size: 14px; color: var(--fg-soft); font-style: italic; padding-bottom: 12px; }
.lib-none { margin-top: 28px; font-style: italic; color: var(--fg-soft); }
.lib-start { margin-top: 14px; max-width: 64ch; font-size: 15px; color: var(--fg-soft); }
.lib-start a { color: var(--gold); }
/* "Newest first": a flat list built by js/library.js from the pre-rendered cards */
.lib-flat { margin-top: clamp(28px, 4vw, 40px); }
.lib-flat[hidden], [data-group][hidden] { display: none; }
[data-group][hidden], .reel[hidden] { display: none; }

/* season > month > week */
.lib-season { margin-top: clamp(48px, 7vw, 96px); }
.season-head h2 {
  font-family: var(--serif-d); font-weight: 900; color: var(--bone);
  font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.005em;
}
.season-sub { margin-top: 8px; font-style: italic; color: var(--gold); max-width: 52ch; }
.lib-month { margin-top: clamp(36px, 5vw, 64px); }
.month-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px;
  border-top: 1px solid var(--gold-d); padding-top: 14px;
}
.month-head h3 { font-family: var(--serif-d); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; color: var(--bone); }
.month-no { color: var(--gold); }
.month-theme { font-style: italic; font-weight: 400; }
.lib-week { padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid rgba(58,54,50,.7); }
/* week band: the big italic numeral, then the concept it teaches; the seven days sit in one row below */
.week-head {
  display: grid; grid-template-columns: max-content minmax(0, 62ch); justify-content: start; column-gap: clamp(20px, 3vw, 36px);
  align-items: start; margin-bottom: clamp(18px, 2.4vw, 28px);
}
.week-head > * { grid-column: 2; }
.week-head > .week-no { grid-column: 1; grid-row: 1 / span 4; }
.week-no { font-family: var(--serif-d); font-style: italic; font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--gold-d); }
.week-head h4 { margin-top: 4px; font-family: var(--serif-d); font-weight: 700; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; color: var(--bone); }
@media (min-width: 1040px) { .lib-week .reels { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.week-sum { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--fg-soft); }
.pl-link { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--gold); text-underline-offset: 4px; }
.pl-link:hover { color: var(--bone); }
.lib-prelude .season-head { margin-bottom: 24px; }

/* reel cards */
.reels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 28px 16px; }
.reel { position: relative; min-width: 0; }  /* contains the .sr-only spans inside a scrolling strip */
.reel-poster {
  position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden;
  border: 1px solid rgba(158,127,69,.45); border-radius: 2px;
  background: linear-gradient(160deg, #2a0e14, var(--black));
  transition: border-color .15s, box-shadow .2s;
}
.reel-poster img { width: 100%; height: 100%; object-fit: cover; }
.reel:hover .reel-poster, .reel:focus-within .reel-poster {
  border-color: var(--gold); box-shadow: 0 0 22px rgba(224,149,74,.2);
}
.reel-time {
  position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 2px;
  background: rgba(10,10,10,.82); color: var(--bone); font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
}
.reel-body { padding-top: 10px; }
.reel-day { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--gold-d); }
.reel-title { margin: 4px 0 8px; font-family: var(--serif-d); font-weight: 700; font-size: 18px; line-height: 1.22; color: var(--bone); }
.reel-watch { display: inline-block; font-size: 14px; line-height: 1.4; color: var(--gold); text-underline-offset: 4px; }
.reel-watch:hover { color: var(--bone); }
.reel-also { margin-top: 6px; font-size: 13px; color: var(--fg-soft); }
.reel-also a { color: var(--fg); text-underline-offset: 3px; }
.reel-transcript { margin-top: 8px; font-size: 13px; }
.reel-transcript summary { cursor: pointer; color: var(--fg-soft); min-height: 24px; }
.reel-transcript summary:hover { color: var(--bone); }
.reel-transcript p { margin-top: 6px; font-size: 14px; line-height: 1.55; }

/* home: Latest strip */
.latest { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.latest-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  border-bottom: 1px solid var(--warm); padding-bottom: 12px; margin-bottom: 24px;
}
.latest h2 { font-family: var(--serif-d); font-weight: 700; color: var(--bone); font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.latest-more { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-underline-offset: 5px; }
.reels-strip {
  grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(148px, 190px);
  overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px;
  scrollbar-color: var(--warm) transparent;
}
.reels-strip .reel { scroll-snap-align: start; }

/* playlists page */
.pl-index ul { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 24px 0 0; padding: 0; }
.pl-index a { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-soft); text-underline-offset: 5px; }
.pl-index a:hover { color: var(--gold); }
.pl-group { margin-top: clamp(48px, 7vw, 88px); }
.pl-group-title { font-family: var(--serif-d); font-weight: 900; color: var(--bone); font-size: clamp(36px, 5vw, 60px); line-height: 1; }
.pl {
  display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 10px clamp(24px, 4vw, 56px);
  padding: 28px 0; border-bottom: 1px solid rgba(58,54,50,.7);
}
.pl > :not(.pl-rows) { grid-column: 1; }
.pl-rows { grid-column: 2; grid-row: 1 / span 4; list-style: none; margin: 0; padding: 0; }
.pl-head h3 { font-family: var(--serif-d); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; color: var(--bone); }
.pl-count { margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--gold-d); }
.pl-desc { font-size: 15px; line-height: 1.6; color: var(--fg-soft); max-width: 48ch; }
.pl .btn { justify-self: start; margin-top: 6px; }
.pl-pending { font-size: 14px; font-style: italic; color: var(--fg-soft); }
.pl-row {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  padding: 10px 0; border-bottom: 1px solid rgba(58,54,50,.55);
}
.pl-row:first-child { padding-top: 0; }
.pl-row img { width: 54px; height: 96px; object-fit: cover; border: 1px solid rgba(158,127,69,.4); border-radius: 2px; }
.pl-row-title { font-family: var(--serif-d); font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--bone); }
.pl-row-meta { margin-top: 2px; font-size: 13px; color: var(--fg-soft); }
.pl-row a { font-size: 14px; color: var(--gold); text-underline-offset: 4px; }
.pl-row a:hover { color: var(--bone); }

/* footer links (all pages) */
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-bottom: 24px; }
.footer-nav a {
  font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg-soft);
  text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
}
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--gold); border-bottom-color: var(--gold-d); }

@media (max-width: 900px) {
  .pl { grid-template-columns: 1fr; }
  .pl > :not(.pl-rows), .pl-rows { grid-column: 1; grid-row: auto; }
  .pl-rows { margin-top: 10px; }
}
@media (max-width: 640px) {
  .page { padding-top: 96px; }
  .week-head { grid-template-columns: 1fr; }
  .week-head > *, .week-head > .week-no { grid-column: 1; grid-row: auto; }
  .topnav.topnav-sub { display: flex; gap: 16px; }
  .topnav-sub a { font-size: 12px; letter-spacing: .14em; }
  .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .reels-strip { grid-template-columns: none; grid-auto-columns: 46%; }
  .pl-row { grid-template-columns: 54px minmax(0, 1fr); }
  .pl-row a { grid-column: 2; }
  .field { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-poster { transition: none; }
}
