/* =====================================================================
   DERIK — Techno DJ demo site
   Self-contained styles (no shared boilerplate with the ForgePoint site)
   ===================================================================== */

:root {
  --bg: #050506;
  --bg-2: #0a0a0f;
  --fg: #f5f5f7;
  --muted: #9a9aa5;
  --red: #ff1e3c;
  --red-glow: rgba(255, 30, 60, 0.55);
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-body: 'Rajdhani', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  /* `clip` (not `hidden`) stops sideways scroll WITHOUT turning <body> into a
     scroll container — which would break the sticky-hero reveal below. */
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }

/* ===== Top Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 60px);
  mix-blend-mode: difference; /* stays legible over the bright hero */
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  color: #fff;
}
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 0.6; }

/* ===== Hero ===== */
/* Sticky so it stays pinned while the next section slides up and covers it. */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.hero-canvas,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-canvas canvas { display: block; width: 100% !important; height: 100% !important; }

/* Fallback image (only revealed if the 3D renderer fails to start) */
.hero-fallback {
  display: none;
  background: #000 center / contain no-repeat;
  filter: saturate(1.1) contrast(1.05);
}
.hero.no-webgl .hero-canvas { display: none; }
.hero.no-webgl .hero-fallback { display: block; }

/* Text overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15em 0.4em;
  font-size: clamp(2.4rem, 9vw, 7rem);
  letter-spacing: 0.04em;
  text-shadow: 0 0 22px var(--red-glow), 0 0 4px rgba(0,0,0,0.6);
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
}
.hero-title .word.fade-in {
  animation: word-glitch 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-subtitle {
  margin-top: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: clamp(0.75rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.9);
  opacity: 0;
}
.hero-subtitle.fade-in { animation: sub-fade 0.9s ease forwards; }

@keyframes word-glitch {
  0%   { opacity: 0; transform: translateY(24px) skewX(12deg); filter: blur(6px); }
  40%  { opacity: 1; transform: translateY(0) skewX(-4deg); filter: blur(0); }
  55%  { transform: translateX(-4px); text-shadow: 3px 0 var(--red), -3px 0 #00e5ff; }
  70%  { transform: translateX(3px); text-shadow: -2px 0 var(--red), 2px 0 #00e5ff; }
  100% { opacity: 1; transform: none; text-shadow: 0 0 22px var(--red-glow); }
}
@keyframes sub-fade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Scroll cue */
.explore-btn {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  animation: sub-fade 0.8s ease forwards;
  animation-delay: 2.2s;
  cursor: pointer;
}
.explore-arrow { display: inline-flex; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.section-eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 14px;
}

/* =====================================================================
   UPCOMING SHOWS
   ===================================================================== */
:root {
  --cyan: #00e5ff;
  --amber: #ffb020;
}

.shows {
  position: relative;
  z-index: 1; /* rides up OVER the pinned hero */
  overflow: hidden;
  padding: clamp(80px, 12vh, 140px) clamp(16px, 5vw, 60px) clamp(90px, 14vh, 160px);
  /* Opaque panel is painted by .shows-bg below the wavy top edge, so the wave
     troughs can reveal the pinned hero behind. */
  background: transparent;
}

/* Opaque panel background, offset down so the wavy edge can reveal the hero */
.shows-bg {
  position: absolute;
  top: 50px;
  left: 0; right: 0; bottom: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255,30,60,0.14), transparent 55%),
    var(--bg-2);
}

/* Animated synthwave grid floor */
.shows-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 100%);
}

/* Animated red wave forming the top edge of the panel */
.shows-wave {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 64px;
  z-index: 2;
  pointer-events: none;
}

.shows-inner {
  position: relative;
  z-index: 3;
  max-width: 1080px;
  margin: 0 auto;
}

/* --- Heading (glitch) --- */
.shows-head {
  text-align: center;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.shows-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.06em;
  color: #fff;
}
.shows-title::before,
.shows-title::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}
.shows-title::before { color: var(--cyan); animation: title-glitch-a 5s infinite; }
.shows-title::after  { color: var(--red);  animation: title-glitch-b 5s infinite; }
@keyframes title-glitch-a {
  0%, 92%, 100% { opacity: 0; transform: translate(0, 0); }
  93% { opacity: 0.85; transform: translate(-3px, -2px); }
  95% { opacity: 0.85; transform: translate(3px, 2px); }
  96% { opacity: 0; }
}
@keyframes title-glitch-b {
  0%, 92%, 100% { opacity: 0; transform: translate(0, 0); }
  93.5% { opacity: 0.85; transform: translate(3px, 1px); }
  95.5% { opacity: 0.85; transform: translate(-3px, -1px); }
  96.5% { opacity: 0; }
}

/* --- Scroll reveal (heading + footer) --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* --- Tour list --- */
.show-list {
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.show-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(18px, 2.6vw, 30px) clamp(14px, 2.5vw, 30px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  /* staggered reveal */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i) * 80ms);
}
.show-list.in .show-row { opacity: 1; transform: none; }

/* hover: red gradient wipe */
.show-row::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,30,60,0.18), rgba(255,30,60,0.02) 70%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.show-row:hover::before { transform: scaleX(1); }

/* hover: light scanline sweep */
.show-row::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -160px;
  width: 140px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  pointer-events: none;
}
.show-row:hover::after { animation: row-sweep 0.9s ease; }
@keyframes row-sweep { from { left: -160px; } to { left: 100%; } }

/* hover: giant ghost city name */
.show-ghost {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%) translateX(40px);
  z-index: -2;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.07);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.show-row:hover .show-ghost {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* date block */
.show-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  line-height: 1.05;
}
.show-date .dow { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.show-date .dnum { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: #fff; }
.show-date .mon { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg); }

/* place */
.show-place { min-width: 0; }
.show-city {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
}
.show-venue {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* status + equalizer */
.show-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.show-status.on-sale { color: var(--cyan); }
.show-status.low { color: var(--amber); }
.show-status.sold-out { color: var(--muted); }
.show-status .eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 15px;
}
.show-status .eq i {
  width: 3px;
  height: 100%;
  background: currentColor;
  transform-origin: bottom;
  animation: eq-bounce 0.9s ease-in-out infinite;
}
.show-status .eq i:nth-child(2) { animation-delay: 0.15s; }
.show-status .eq i:nth-child(3) { animation-delay: 0.3s; }
.show-status .eq i:nth-child(4) { animation-delay: 0.45s; }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

/* CTA */
.show-cta {
  justify-self: end;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 2px;
  color: #fff;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.show-cta:hover { background: #fff; color: #000; border-color: #fff; }
.show-row.is-sold .show-cta { border-color: rgba(255,255,255,0.12); color: var(--muted); }
.show-row.is-sold .show-cta:hover { background: transparent; color: #fff; border-color: var(--red); }

/* footer */
.shows-foot { text-align: center; margin-top: clamp(36px, 6vh, 56px); }
.shows-all {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.shows-all:hover { color: #fff; border-color: var(--red); }

/* --- Shows: mobile --- */
@media (max-width: 640px) {
  .show-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "date place"
      "status cta";
    row-gap: 16px;
    column-gap: 18px;
  }
  .show-date { grid-area: date; }
  .show-place { grid-area: place; }
  .show-status { grid-area: status; align-self: center; }
  .show-cta { grid-area: cta; }
  .show-ghost { display: none; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-title .word,
  .hero-subtitle,
  .explore-btn,
  .reveal { opacity: 1 !important; animation: none !important; transform: none !important; }
  .show-row { opacity: 1 !important; transform: none !important; }
  .explore-arrow,
  .shows-title::before,
  .shows-title::after,
  .show-status .eq i { animation: none !important; }
  .shows-title::before,
  .shows-title::after { opacity: 0 !important; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   MUSIC / LATEST MIXES
   ===================================================================== */
:root { --magenta: #ff2bd6; }

.music {
  position: relative;
  z-index: 1;              /* sits above the pinned hero, like .shows */
  overflow: hidden;
  padding: clamp(80px, 12vh, 140px) clamp(16px, 5vw, 60px) clamp(120px, 20vh, 220px);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255,43,214,0.10), transparent 45%),
    radial-gradient(ellipse at 90% 20%, rgba(255,30,60,0.12), transparent 45%),
    #060608;
}

/* Live spectrum visualiser across the bottom */
.spectrum {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: clamp(120px, 22vh, 220px);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent);
  mask-image: linear-gradient(to top, #000 40%, transparent);
}

.music-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.music-head { text-align: center; margin-bottom: clamp(30px, 5vh, 50px); }

/* Neon-tube title (buzzing flicker) — distinct from the Shows glitch */
.neon {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,0.45), 0 0 18px var(--red), 0 0 36px var(--red-glow);
  animation: neon-flicker 7s infinite;
}
@keyframes neon-flicker {
  0%, 18%, 22%, 63%, 100% { opacity: 1; text-shadow: 0 0 6px rgba(255,255,255,0.45), 0 0 18px var(--red), 0 0 38px var(--red-glow); }
  20% { opacity: 0.55; text-shadow: none; }
  62% { opacity: 0.7; text-shadow: 0 0 6px rgba(255,255,255,0.4), 0 0 10px var(--red); }
  64% { opacity: 0.4; text-shadow: none; }
}

/* --- Reveal (scale + de-blur, different from Shows) --- */
.reveal-m {
  opacity: 0;
  transform: scale(0.96) translateY(24px);
  filter: blur(6px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.7s ease;
}
.reveal-m.in { opacity: 1; transform: none; filter: none; }

/* --- Featured deck --- */
.featured {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.deck { position: relative; width: fit-content; margin: 0 auto; }

.platter {
  padding: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #17171c, #0a0a0d 70%);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

.vinyl {
  width: clamp(210px, 30vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  background:
    conic-gradient(from 0deg, rgba(255,255,255,0.12), transparent 22%, transparent 78%, rgba(255,255,255,0.12)),
    repeating-radial-gradient(circle at 50% 50%, #121216 0 3px, #0a0a0c 3px 5px),
    radial-gradient(circle at 50% 50%, #1b1b20, #050506 72%);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.7), 0 0 0 6px #0b0b0d, 0 0 0 7px rgba(255,255,255,0.05);
  animation: vinyl-spin 3.2s linear infinite;
  animation-play-state: paused;
}
.deck.playing .vinyl { animation-play-state: running; }
@keyframes vinyl-spin { to { transform: rotate(360deg); } }

.vinyl-label {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--red), #7a0016 75%);
  box-shadow: inset 0 0 0 4px rgba(0,0,0,0.25), 0 0 22px rgba(255,30,60,0.45);
  display: flex; align-items: center; justify-content: center;
}
.vinyl-label::after { /* spindle hole */
  content: '';
  width: 9%; height: 9%;
  min-width: 8px; min-height: 8px;
  border-radius: 50%;
  background: #050506;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.9);
}

/* Tonearm — lifts off by default, drops onto the record when playing */
.tonearm {
  position: absolute;
  top: 4%;
  right: -6%;
  width: 46%;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, #6a6a72, #d9d9e0);
  transform-origin: right center;
  transform: rotate(-34deg);
  transition: transform 0.7s cubic-bezier(0.34, 1.3, 0.5, 1);
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  z-index: 3;
}
.tonearm::before { /* pivot */
  content: '';
  position: absolute;
  right: -10px; top: -9px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #e8e8ee, #5a5a62);
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}
.tonearm-head { /* headshell/cartridge at the tip */
  position: absolute;
  left: -10px; top: -5px;
  width: 16px; height: 16px;
  border-radius: 3px;
  background: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
}
.deck.playing .tonearm { transform: rotate(-9deg); }

/* --- Featured info --- */
.featured-info { min-width: 0; }
.feat-tag {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--magenta);
  margin-bottom: 10px;
}
.feat-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  line-height: 1.05;
  color: #fff;
}
.feat-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.waveform {
  width: 100%;
  height: 78px;
  margin-top: 22px;
  cursor: pointer;
  display: block;
}

.player { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.play-btn {
  width: 58px; height: 58px;
  flex: none;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0 rgba(255,30,60,0.5);
  transition: transform 0.2s ease, box-shadow 0.4s ease, background 0.2s ease;
}
.play-btn:hover { transform: scale(1.06); box-shadow: 0 0 24px rgba(255,30,60,0.6); }
.play-btn svg { width: 26px; height: 26px; fill: currentColor; }
.play-btn .i-pause { display: none; }
.deck.playing ~ .featured-info .play-btn .i-play,
.play-btn.is-playing .i-play { display: none; }
.play-btn.is-playing .i-pause { display: block; }
.play-btn.is-playing { box-shadow: 0 0 26px rgba(255,30,60,0.7); }

.time {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.time-sep { color: var(--muted); margin: 0 2px; }
#tot-time { color: var(--muted); }

/* --- Mix list --- */
.mixlist {
  list-style: none;
  margin-top: clamp(34px, 6vh, 56px);
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.mix {
  display: grid;
  grid-template-columns: 50px 30px minmax(120px, 1.1fr) 2fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 8px;
  border-top: 1px solid rgba(255,255,255,0.09);
  transition: background 0.25s ease;
}
.mix:hover { background: rgba(255,255,255,0.03); }
.mix.active { background: linear-gradient(90deg, rgba(255,30,60,0.12), transparent 80%); }

.mix-play {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.mix-play svg { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }
.mix:hover .mix-play, .mix.active .mix-play { border-color: var(--red); color: #fff; background: rgba(255,30,60,0.18); }
.mix-play:hover { transform: scale(1.08); }

.mix-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}
.mix.active .mix-num { color: var(--red); }
.mix-info { min-width: 0; }
.mix-title {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  font-size: 1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mix-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mix-wave { width: 100%; height: 40px; display: block; }
.mix-dur {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
.mix.active .mix-dur { color: var(--fg); }

/* --- Music: responsive --- */
@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .featured-info { width: 100%; }
  .player { justify-content: center; }
}
@media (max-width: 640px) {
  .mix { grid-template-columns: 44px 1fr auto; gap: 14px; }
  .mix-num, .mix-wave { display: none; }
}

/* --- Music: reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal-m { opacity: 1 !important; transform: none !important; filter: none !important; }
  .neon { animation: none !important; }
  .vinyl { animation: none !important; }
  .tonearm { transition: none !important; }
}

/* =====================================================================
   BOOK
   ===================================================================== */
.hidden { display: none !important; }

.book {
  position: relative;
  z-index: 1;              /* covers the pinned hero, like the other panels */
  overflow: hidden;
  padding: clamp(90px, 13vh, 150px) clamp(16px, 5vw, 60px) clamp(100px, 16vh, 180px);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255,30,60,0.10), transparent 55%),
    #050507;
}

/* Sweeping stage-light beams */
.beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.book-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.book-head { text-align: center; margin-bottom: clamp(34px, 6vh, 56px); }
.book-head .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg);
}
.live-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22e07a;
  box-shadow: 0 0 0 0 rgba(34,224,122,0.6);
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,224,122,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34,224,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,224,122,0); }
}

/* Decode/scramble title — gradient text (new treatment) */
.scramble {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  background: linear-gradient(100deg, #ff1e3c 0%, #ffffff 50%, #ff2bd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.book-sub {
  margin: 18px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- Reveal --- */
.reveal-b {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-b.in { opacity: 1; transform: none; }

/* --- Form --- */
.book-form { display: flex; flex-direction: column; gap: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 14px 2px 10px;
  color-scheme: dark;
  outline: none;
  transition: border-color 0.25s ease;
}
.field textarea { resize: vertical; min-height: 90px; }
.field label {
  position: absolute;
  left: 2px; top: 14px;
  color: var(--muted);
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  transition: top 0.22s ease, font-size 0.22s ease, color 0.22s ease, letter-spacing 0.22s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field.always-float label {
  top: -9px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}
.field input:focus + label,
.field textarea:focus + label { color: var(--red); }

/* underline sweep on focus */
.field-line {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.field input:focus ~ .field-line,
.field textarea:focus ~ .field-line { transform: scaleX(1); }

.field.invalid input,
.field.invalid textarea { border-bottom-color: var(--red); }
.field.invalid label { color: var(--red); }

/* submit button — charges up on send */
.book-submit {
  position: relative;
  overflow: hidden;
  align-self: flex-start;
  margin-top: 4px;
  padding: 16px 36px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.book-submit:hover { box-shadow: 0 0 26px rgba(255,30,60,0.55); transform: translateY(-2px); }
.bs-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, var(--red), var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
}
.bs-label { position: relative; z-index: 1; }
.book-submit.sending { pointer-events: none; }
.book-submit.sending .bs-fill { animation: bs-fill 1.4s ease forwards; }
@keyframes bs-fill { to { transform: scaleX(1); } }

.book-alt { color: var(--muted); font-size: 0.92rem; letter-spacing: 0.05em; }
.book-alt a { color: var(--red); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.book-alt a:hover { border-color: var(--red); }

/* --- Success state --- */
.book-success { text-align: center; max-width: 520px; margin: 0 auto; }
.check { width: 84px; height: 84px; margin-bottom: 18px; }
.check circle {
  fill: none; stroke: var(--red); stroke-width: 2;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: check-draw 0.6s ease forwards;
}
.check path {
  fill: none; stroke: #fff; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: check-draw 0.4s 0.5s ease forwards;
}
@keyframes check-draw { to { stroke-dashoffset: 0; } }
.book-success h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #fff;
}
.book-success p { margin: 12px auto 24px; color: var(--muted); font-size: 1.05rem; max-width: 420px; }
.book-again {
  padding: 12px 26px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 3px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.book-again:hover { border-color: var(--red); background: rgba(255,30,60,0.14); }

/* --- Book: responsive --- */
@media (max-width: 620px) {
  .grid-2 { grid-template-columns: 1fr; }
  .book-submit { align-self: stretch; text-align: center; }
}

/* --- Book: reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal-b { opacity: 1 !important; transform: none !important; }
  .live-dot { animation: none !important; }
  .check circle, .check path { animation: none !important; stroke-dashoffset: 0 !important; }
  .book-submit.sending .bs-fill { animation: none !important; }
}

/* =====================================================================
   DEMO NOTICES (badge, footer disclaimer, popup)
   ===================================================================== */

/* Nav "Demo" badge */
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-demo {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: #fff;
  opacity: 0.75;
}

/* Footer disclaimer */
.site-foot {
  position: relative;
  z-index: 1;                 /* covers the pinned hero, like the panels */
  background: #050507;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: clamp(40px, 7vh, 70px) 24px;
}
.foot-disclaimer {
  max-width: 620px;
  margin: 0 auto 10px;
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.6;
}
.foot-disclaimer strong { color: var(--red); }
.foot-by { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.05em; }
.foot-by a { color: var(--red); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.foot-by a:hover { border-color: var(--red); }

/* Popup modal */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;              /* above the fixed nav (100) */
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3,3,6,0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.demo-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.demo-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  text-align: center;
  background: linear-gradient(180deg, #13131b, #0a0a0e);
  border: 1px solid rgba(255,30,60,0.4);
  border-radius: 16px;
  padding: 34px 28px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 44px rgba(255,30,60,0.15);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.demo-modal.open .demo-box { transform: none; }
.demo-box-icon { width: 52px; height: 52px; margin: 0 auto 16px; color: var(--red); }
.demo-box-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; }
.demo-box-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.4rem;
  color: #fff;
}
.demo-box-msg { margin: 12px 0 22px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.demo-ok {
  padding: 12px 30px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.demo-ok:hover { box-shadow: 0 0 24px rgba(255,30,60,0.55); transform: translateY(-2px); }
.demo-x {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}
.demo-x:hover { color: #fff; background: rgba(255,255,255,0.06); }

@media (prefers-reduced-motion: reduce) {
  .demo-modal, .demo-box { transition: none !important; }
}
