/* Kraveit. Websites for DJs.
   Brand palette pushed into a club: ink ground, paper type, terracotta as
   the signal colour and a hotter orange for anything that glows.
   --kick, --snare and --hat are set on :root every frame by main.js
   (0 to 1, decaying), so any rule can pulse with the music. */

:root {
  --ink: #090706;
  --ink-2: #14100e;
  --ink-3: #1f1916;
  --paper: #f7f3ee;
  --paper-dim: #b9b0a6;
  --mute: #7b7068;
  --terra: #c2552b;
  --hot: #ff6a2b;
  --lcd: #ff8a3d;

  --display: "Kanit", "Arial Black", Impact, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --kick: 0;
  --snare: 0;
  --hat: 0;
  --skew: 0deg;

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.55 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--hot); color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--hot); color: var(--ink);
  padding: 10px 14px; font: 700 14px var(--mono);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }

.hot { color: var(--hot); }
.dot-accent { color: var(--terra); }

/* ---------- The deck (header) ---------- */

.deck {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--gutter);
  padding-top: max(10px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(9, 7, 6, 0.92), rgba(9, 7, 6, 0.6));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(247, 243, 238, 0.07);
}

.deck-logo {
  font: 900 22px/1 var(--display);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.deck-logo span { color: var(--terra); }

.deck-lcd {
  flex: 1;
  min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 22px;
  font: 400 12px/1 var(--mono);
  color: var(--lcd);
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px rgba(255, 138, 61, 0.55);
  white-space: nowrap;
  overflow: hidden;
}
.deck-lcd b { font-weight: 400; color: var(--mute); text-shadow: none; }
.deck-lcd em { font-style: normal; font-weight: 700; }
.lcd-time { font-variant-numeric: tabular-nums; min-width: 9ch; }

.lcd-meter { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.lcd-meter i {
  width: 4px; height: 100%;
  background: var(--lcd);
  transform-origin: bottom;
  transform: scaleY(0.12);
  opacity: 0.85;
}

.deck-sound {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(247, 243, 238, 0.2);
  border-radius: 999px;
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
}
.deck-sound .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mute);
}
.deck-sound[aria-pressed="true"] { border-color: var(--hot); color: var(--hot); }
.deck-sound[aria-pressed="true"] .dot {
  background: var(--hot);
  box-shadow: 0 0 calc(4px + var(--kick) * 14px) var(--hot);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  font: 700 14px/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.btn:active { transform: scale(0.97); }

.btn-hot {
  background: var(--hot); color: var(--ink);
  box-shadow: 0 0 calc(var(--kick) * 40px) rgba(255, 106, 43, 0.65);
}
.btn-hot:hover { background: var(--paper); }

.btn-ghost {
  background: transparent; color: var(--paper);
  border-color: rgba(247, 243, 238, 0.35);
}
.btn-ghost:hover { border-color: var(--hot); color: var(--hot); }

.needle-icon {
  width: 0; height: 0;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.is-playing .needle-icon {
  width: 10px; height: 12px; border: 0;
  border-left: 3px solid currentColor; border-right: 3px solid currentColor;
}

/* ---------- Sections ---------- */

main > section {
  position: relative;
  padding: clamp(96px, 14vw, 180px) var(--gutter);
}

.track-label {
  margin: 0 0 28px;
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mute);
}
.track-label b { color: var(--hot); font-weight: 700; margin-right: 10px; }

h2 {
  margin: 0;
  font: 900 clamp(44px, 8.5vw, 132px)/0.92 var(--display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

[data-skew] {
  transform: skewY(var(--skew));
  transition: transform 0.25s cubic-bezier(.2,.9,.3,1);
  will-change: transform;
}

.eyebrow {
  margin: 0 0 12px;
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--paper-dim);
}

/* ---------- 01 Hero ---------- */

.hero {
  min-height: 100svh;
  display: grid; align-items: center;
  padding-top: 120px !important;
  padding-bottom: 72px !important;
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 106, 43, 0.35), transparent 30%),
    repeating-radial-gradient(circle at 50% 45%, rgba(194, 85, 43, 0.25) 0 2px, transparent 3px 22px),
    var(--ink);
}

.hero-inner { position: relative; max-width: 1400px; }

/* The chopped wordmark. JS stacks clipped copies of .chop-word into
   .chop-slices and slides each one on its own. Without JS the plain word
   shows. */
.chop {
  position: relative;
  margin: 0;
  font: 900 clamp(76px, 21vw, 340px)/0.82 var(--display);
  letter-spacing: -0.035em;
  user-select: none;
}
.chop-word { display: block; white-space: nowrap; }
.chop.is-chopped > .chop-word { visibility: hidden; }
.chop-slices { position: absolute; inset: 0; pointer-events: none; }
.chop-slices > span {
  position: absolute; inset: 0;
  white-space: nowrap;
  will-change: transform;
}
.chop-slices > span.ghost-r { color: var(--hot); mix-blend-mode: screen; opacity: 0.55; }
.chop-slices > span.ghost-b { color: #2fa8a0; mix-blend-mode: screen; opacity: 0.4; }

.hero-line {
  margin: 18px 0 0;
  font: 800 clamp(26px, 4vw, 56px)/1.05 var(--display);
  text-transform: uppercase;
}
.hero-sub {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--paper-dim);
  font-size: clamp(17px, 1.5vw, 20px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note {
  margin: 16px 0 0;
  font: 400 12px/1.4 var(--mono);
  color: var(--mute);
  letter-spacing: 0.04em;
}

.hero-scroll {
  position: absolute; bottom: 24px; right: var(--gutter);
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.3em; color: var(--mute);
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: ""; display: block;
  width: 1px; height: 60px; margin: 14px auto 0;
  background: linear-gradient(var(--hot), transparent);
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid rgba(247, 243, 238, 0.1);
  background: var(--ink-2);
  padding: 14px 0;
}
.ticker-track {
  display: flex; gap: 28px; width: max-content;
  font: 700 clamp(14px, 1.6vw, 20px)/1 var(--mono);
  letter-spacing: 0.18em;
  color: var(--lcd);
  text-shadow: 0 0 calc(4px + var(--kick) * 10px) rgba(255, 138, 61, 0.6);
  will-change: transform;
}
.ticker-track b { color: var(--terra); }

/* ---------- 02 Problem ---------- */

.problem { max-width: 1400px; }
.problem h2 { max-width: 14ch; }
.reveal .w { opacity: 0.14; transition: opacity 0.2s; }
.reveal .w.on { opacity: 1; }
html:not(.js) .reveal .w { opacity: 1; }

.reveal-sm {
  max-width: 30ch;
  margin: 40px 0 0;
  font: 800 clamp(26px, 4vw, 54px)/1.08 var(--display);
  text-transform: uppercase;
}

.glitch {
  position: relative;
  text-decoration: none;
  color: var(--hot);
  white-space: nowrap;
}
.glitch::before {
  content: "";
  position: absolute; left: -2%; right: -2%; top: 52%;
  height: 0.12em;
  background: var(--paper);
  transform: scaleX(var(--strike, 0)) rotate(-2deg);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(.7,0,.2,1);
}
.glitch.on::before { --strike: 1; }
.glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  color: #2fa8a0;
  clip-path: inset(40% 0 35% 0);
  transform: translateX(calc(var(--snare) * 10px - 3px));
  opacity: 0.8;
  pointer-events: none;
}

.aside {
  max-width: 520px;
  margin: 48px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--terra);
  color: var(--paper-dim);
  font-size: 16px;
}

/* ---------- 03 Mix ---------- */

.mix { background: var(--ink-2); }
.mix-title { margin-bottom: 48px; }

.mixer {
  --x: 0.12;
  position: relative;
  display: grid;
  max-width: 1100px;
  margin: 0 auto;
}
.mixer > figure {
  grid-area: 1 / 1;
  margin: 0;
  position: relative;
}
.mixer figcaption {
  margin-top: 14px;
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper-dim);
}
.mixer figcaption b {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; margin-right: 8px;
  background: var(--paper); color: var(--ink);
}

.deck-a {
  opacity: calc(1 - var(--x));
  filter: blur(calc(var(--x) * 6px));
  transform: scale(calc(1 - var(--x) * 0.06));
  z-index: 1;
}
.deck-b {
  opacity: var(--x);
  filter: blur(calc((1 - var(--x)) * 6px)) saturate(calc(0.4 + var(--x) * 0.6));
  transform: scale(calc(0.94 + var(--x) * 0.06));
  z-index: 2;
}
.deck-b img {
  width: 100%;
  border: 1px solid rgba(247, 243, 238, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 calc(var(--x) * 80px) rgba(255, 106, 43, 0.25);
}
/* Mid-fade both decks glitch, like two records drifting. */
.mixer.is-mid .deck-b img { animation: slip 0.18s steps(2) infinite; }
@keyframes slip {
  0% { clip-path: inset(0 0 0 0); transform: translateX(0); }
  50% { clip-path: inset(30% 0 40% 0); transform: translateX(-8px); }
  100% { clip-path: inset(0 0 0 0); transform: translateX(0); }
}

/* Without JS there is no fader, so show both decks side by side. */
html:not(.js) .mixer { grid-template-columns: 1fr 1fr; gap: 24px; }
html:not(.js) .mixer > figure { grid-area: auto; opacity: 1; filter: none; transform: none; }
html:not(.js) .fader, html:not(.js) .fader-hint { display: none; }

/* A deliberately ordinary link in bio page. */
.linkbio {
  aspect-ratio: 1424 / 900;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: #e9e6f2;
  color: #2a2633;
  font-family: Arial, Helvetica, sans-serif;
  border: 1px solid rgba(247, 243, 238, 0.12);
}
.lb-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: #b9b3c9; color: #fff; font-weight: 700;
}
.lb-handle { margin: 0; font-weight: 700; }
.lb-bio { margin: 0 0 8px; font-size: 13px; color: #6b6577; }
.lb-btn {
  width: min(340px, 80%);
  padding: 11px;
  text-align: center;
  background: #fff;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.lb-foot { margin: 8px 0 0; font-size: 11px; color: #8c869a; }

.fader {
  display: flex; align-items: center; gap: 16px;
  max-width: 520px;
  margin: 44px auto 0;
  padding: 18px 22px;
  background: var(--ink);
  border: 1px solid rgba(247, 243, 238, 0.12);
  border-radius: 6px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}
.fader-end { font: 700 14px var(--mono); color: var(--mute); }

.fader input {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 44px;
  background:
    linear-gradient(var(--ink-3), var(--ink-3)) center / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, rgba(247, 243, 238, 0.25) 0 1px, transparent 1px 10%) center / 100% 22px no-repeat;
  cursor: grab;
}
.fader input:active { cursor: grabbing; }
.fader input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px; height: 44px;
  background: linear-gradient(var(--paper) 0 45%, var(--hot) 45% 55%, var(--paper) 55%);
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.fader input::-moz-range-thumb {
  width: 30px; height: 44px; border: 0;
  background: linear-gradient(var(--paper) 0 45%, var(--hot) 45% 55%, var(--paper) 55%);
  border-radius: 3px;
}
.fader-hint {
  text-align: center;
  margin: 14px 0 0;
  font: 400 12px/1.4 var(--mono);
  color: var(--mute);
}

/* ---------- 04 Work ---------- */

.release {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1400px;
}

.sleeve-wrap {
  position: relative;
  width: 82%;
  aspect-ratio: 1;
  perspective: 1200px;
}
.sleeve {
  position: absolute; inset: 0;
  display: block;
  background: #000;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.75);
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform 0.2s ease-out;
  overflow: hidden;
  z-index: 2;
}
.sleeve img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.sleeve::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.12), transparent 40%, transparent 70%, rgba(255,255,255,0.05));
  mix-blend-mode: screen;
}
.sleeve-sticker {
  position: absolute; right: 6%; top: 6%;
  width: 82px; height: 82px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--hot); color: var(--ink);
  font: 900 18px/0.95 var(--display);
  transform: rotate(12deg);
}

.vinyl {
  position: absolute;
  top: 4%; left: 4%;
  width: 92%; height: 92%;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 17%, rgba(255,255,255,0.03) 17.3%, transparent 18%),
    repeating-radial-gradient(circle, #0c0c0c 0 1px, #161616 1.5px 3px),
    #111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  transform: translateX(var(--vx, 38%)) rotate(var(--spin, 0deg));
  z-index: 1;
}
.vinyl::before {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 10%, rgba(255,255,255,0.09) 14%, transparent 20% 60%, rgba(255,255,255,0.07) 64%, transparent 70%);
}
.vinyl-label {
  position: absolute; inset: 33%;
  border-radius: 50%;
  background: var(--terra);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: 700 clamp(9px, 1vw, 13px)/1.25 var(--mono);
  color: var(--paper);
  letter-spacing: 0.1em;
}
.vinyl-label b { font: 900 clamp(14px, 1.6vw, 22px)/1 var(--display); letter-spacing: 0; margin-bottom: 4px; }
.vinyl-label::after {
  content: ""; position: absolute;
  width: 7%; height: 7%; border-radius: 50%;
  background: var(--ink);
}

.cat {
  margin: 0 0 14px;
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.18em;
  color: var(--lcd);
}
.release-text { position: relative; z-index: 3; }
.release-text h2 { font-size: clamp(56px, 9vw, 150px); }
.release-sub { max-width: 46ch; margin: 18px 0 32px; color: var(--paper-dim); font-size: 18px; }

.tracklist {
  list-style: none;
  margin: 0 0 36px; padding: 0;
  border-top: 1px solid rgba(247, 243, 238, 0.12);
}
.tracklist li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(247, 243, 238, 0.12);
  transition: background 0.2s, padding 0.2s;
}
.tracklist li:hover { background: rgba(255, 106, 43, 0.07); padding-left: 10px; }
.tl-no { font: 700 13px var(--mono); color: var(--hot); }
.tl-name { font-size: 16px; }
.tl-tag {
  font: 700 11px var(--mono);
  letter-spacing: 0.12em;
  color: var(--lcd);
  padding: 4px 8px;
  border: 1px solid rgba(255, 138, 61, 0.35);
}

/* ---------- 05 Pads ---------- */

.pads-section { background: var(--ink-2); }
.pads-sub { max-width: 52ch; margin: 18px 0 40px; color: var(--paper-dim); }

.pads {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 18px);
  max-width: 980px;
}
.pad {
  --lit: 0;
  position: relative;
  aspect-ratio: 1;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: clamp(10px, 1.6vw, 18px);
  background:
    radial-gradient(circle at 50% 60%, rgba(255, 106, 43, calc(var(--lit) * 0.9)), transparent 70%),
    linear-gradient(160deg, #2a221e, #171210);
  border: 1px solid rgba(247, 243, 238, 0.1);
  border-radius: 10px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.45), 0 0 calc(var(--lit) * 50px) rgba(255, 106, 43, 0.6);
  font: 800 clamp(15px, 2vw, 24px)/1 var(--display);
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.06s;
}
.pad:active, .pad.hit { transform: translateY(3px) scale(0.98); }
.pad kbd {
  position: absolute; top: 10px; left: 12px;
  font: 700 11px var(--mono);
  color: var(--mute);
}
.pad-horn, .pad-rewind { background: radial-gradient(circle at 50% 60%, rgba(255, 106, 43, calc(var(--lit) * 0.9)), transparent 70%), linear-gradient(160deg, #3b2015, #1c120e); }
.pad-drop { background: radial-gradient(circle at 50% 60%, rgba(255, 106, 43, calc(0.25 + var(--lit) * 0.75)), transparent 70%), linear-gradient(160deg, var(--terra), #6e2c14); }

/* ---------- 06 Rider ---------- */

.rider {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px);
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 var(--mono);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  rotate: -1.2deg;
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(9, 7, 6, 0.06) 31px 32px);
}
.rider-head {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-bottom: 16px;
  border-bottom: 3px double var(--ink);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.rider-head p { margin: 0; }
.rider-list { list-style: none; margin: 20px 0; padding: 0; }
.rider-list li {
  display: grid; grid-template-columns: 48px 1fr; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(9, 7, 6, 0.25);
}
.rider-list span { font-weight: 700; color: var(--terra); }
.set-times { margin: 8px 0 24px; border: 3px double var(--ink); padding: 14px 16px; }
.set-times-head { margin: 0 0 6px; font-weight: 700; letter-spacing: 0.2em; }
.set-times ol { list-style: none; margin: 0; padding: 0; }
.set-times li {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 6px 14px; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(9, 7, 6, 0.25);
}
.set-times li:last-child { border-bottom: 0; }
.set-times .slot { font-weight: 700; letter-spacing: 0.08em; }
.set-times .slot em { font-style: normal; font-size: 11px; color: var(--terra); margin-left: 4px; }
.set-times .fee { font: 900 26px/1 var(--display); color: var(--terra); white-space: nowrap; }
.set-times .fee small { font: 700 12px/1 var(--mono); color: var(--ink); }
.set-times-foot { margin: 10px 0 0; font-size: 13px; }
.rider-foot {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px;
  font-weight: 700;
}
.rider-foot p { margin: 0; }
.rider-sign i {
  font: italic 900 30px/1 var(--display);
  color: var(--terra);
  display: inline-block;
  transform: rotate(-6deg);
}

/* ---------- 07 Book ---------- */

.book { text-align: center; overflow: hidden; }
.book .track-label { text-align: left; }
.chop-sm {
  font-size: clamp(72px, 17vw, 280px);
  display: inline-block;
}
.book-sub { max-width: 46ch; margin: 24px auto 40px; color: var(--paper-dim); font-size: 19px; }
.btn-big { min-height: 72px; padding: 0 36px; font-size: clamp(16px, 2vw, 22px); text-transform: none; letter-spacing: 0.04em; }
.book-ref { margin: 22px 0 0; font: 400 13px var(--mono); color: var(--mute); }

/* ---------- Footer / run-out ---------- */

.runout {
  position: relative;
  border-top: 1px solid rgba(247, 243, 238, 0.08);
  background: var(--ink);
}
.wave { display: block; width: 100%; height: clamp(90px, 14vw, 180px); }
.runout-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px var(--gutter) max(24px, env(safe-area-inset-bottom));
  font: 400 12px/1.4 var(--mono);
  color: var(--mute);
  letter-spacing: 0.08em;
}
.runout-row p { margin: 0; }
.pullup {
  background: transparent;
  border: 1px solid rgba(247, 243, 238, 0.2);
  padding: 10px 16px;
  font: 700 12px var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
}
.pullup:hover { border-color: var(--hot); color: var(--hot); }

/* ---------- Cursor, flash, grain ---------- */

.cursor {
  position: fixed; left: 0; top: 0; z-index: 90;
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid var(--hot);
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(calc(1 + var(--kick) * 0.6));
  transition: width 0.2s, height 0.2s, margin 0.2s, background 0.2s;
  mix-blend-mode: difference;
  display: none;
}
.cursor i {
  position: absolute; left: 50%; top: 50%;
  width: 4px; height: 4px; margin: -2px 0 0 -2px;
  background: var(--hot); border-radius: 50%;
}
.has-cursor .cursor { display: block; }
.cursor.is-link { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(255, 106, 43, 0.2); }

.flash {
  position: fixed; inset: 0; z-index: 80;
  pointer-events: none;
  background: var(--hot);
  opacity: calc(var(--flash, 0) * 0.22);
  mix-blend-mode: screen;
}

.grain {
  position: fixed; inset: -50%; z-index: 70;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, 3%); }
}

/* ---------- Phones ---------- */

@media (max-width: 860px) {
  .deck-lcd .lcd-bpm, .deck-lcd .lcd-meter { display: none; }
  .release { grid-template-columns: 1fr; }
  .sleeve-wrap { max-width: 520px; width: 74%; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .deck { gap: 10px; }
  .deck-lcd { gap: 10px; font-size: 11px; justify-content: flex-start; }
  .deck-lcd .lcd-time { display: none; }
  .deck-sound { padding: 8px 10px; flex-shrink: 0; }
  .deck-lcd [data-track-name] { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-scroll { display: none; }
  .pads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pad { aspect-ratio: 1.4; }
  .tracklist li { grid-template-columns: 34px 1fr; }
  .tl-tag { grid-column: 2; justify-self: start; }
  .linkbio { aspect-ratio: 390 / 844; max-height: 76vh; margin: 0 auto; width: 100%; }
  .deck-b img { max-height: 76vh; width: auto; margin: 0 auto; }
  .rider { rotate: 0deg; }
  .rider-list li { grid-template-columns: 36px 1fr; }
  .set-times li { grid-template-columns: 1fr auto; }
  .set-times .what { grid-column: 1 / -1; grid-row: 2; }
  .runout-groove { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  [data-skew] { transform: none !important; }
  .mixer.is-mid .deck-b img { animation: none; }
}

/* ---------- Genre cues ---------- */
/* Each style recolours the accent, like a hot cue colour on a CDJ.
   Terracotta stays as the brand colour; only the signal colours move. */

:root[data-genre="techno"] { --hot: #3fd6c6; --lcd: #62e4d7; }
:root[data-genre="jungle"] { --hot: #f2c230; --lcd: #f7d35e; }
:root[data-genre="dub"] { --hot: #8ad15a; --lcd: #a4e07b; }

.cues {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 22px;
}
.cues-label {
  margin-right: 6px;
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute);
}
.cue {
  --c: #ff6a2b;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  background: rgba(9, 7, 6, 0.6);
  border: 1px solid rgba(247, 243, 238, 0.18);
  border-top: 3px solid var(--c);
  border-radius: 4px;
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cue b { font-weight: 700; }
.cue i { font-style: normal; font-weight: 400; color: var(--mute); }
.cue[data-style="techno"] { --c: #3fd6c6; }
.cue[data-style="jungle"] { --c: #f2c230; }
.cue[data-style="dub"] { --c: #8ad15a; }
.cue:hover { border-color: var(--c); }
.cue[aria-pressed="true"] { background: var(--c); color: var(--ink); border-color: var(--c); }
.cue[aria-pressed="true"] i { color: rgba(9, 7, 6, 0.6); }

/* ---------- 03 The list ---------- */

.list-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1400px;
}
.list-section h2 { max-width: 12ch; }
.list-sub { max-width: 46ch; margin: 24px 0 0; color: var(--paper-dim); font-size: 18px; }

.guestlist {
  padding: 22px 22px 16px;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.4 var(--mono);
  rotate: 1.5deg;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  background-image: repeating-linear-gradient(transparent 0 35px, rgba(9, 7, 6, 0.07) 35px 36px);
}
.gl-head {
  display: flex; justify-content: space-between; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 3px double var(--ink);
  font-weight: 700; letter-spacing: 0.12em;
}
.gl-head b { color: var(--terra); font-variant-numeric: tabular-nums; }
.gl-names {
  list-style: none;
  margin: 0; padding: 0;
  height: calc(36px * 7);
  overflow: hidden;
}
.gl-names li {
  display: flex; justify-content: space-between; align-items: center;
  height: 36px;
  border-bottom: 1px dashed rgba(9, 7, 6, 0.2);
}
.gl-names li span:last-child { color: var(--terra); font-weight: 700; }
.gl-names li.new { animation: guest-in 0.5s cubic-bezier(.2,.9,.3,1); }
@keyframes guest-in {
  from { transform: translateX(-24px); opacity: 0; background: rgba(194, 85, 43, 0.25); }
  to { transform: none; opacity: 1; background: transparent; }
}
.gl-foot { margin: 12px 0 0; font-size: 11px; color: #7b7068; }

@media (max-width: 600px) {
  .cues { display: grid; grid-template-columns: 1fr 1fr; }
  .cues-label { grid-column: 1 / -1; }
  .cue { min-height: 46px; }
  .eyebrow { letter-spacing: 0.2em; font-size: 12px; }
}

@media (max-width: 860px) {
  .list-grid { grid-template-columns: 1fr; }
  .guestlist { rotate: 0deg; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-names li.new { animation: none; }
}

/* ---------- Credits and loading ---------- */

.hero-note a, .credits a { color: var(--paper-dim); text-decoration-color: rgba(247, 243, 238, 0.3); }
.hero-note a:hover, .credits a:hover { color: var(--hot); }
.credits {
  margin: 0;
  padding: 0 var(--gutter) max(20px, env(safe-area-inset-bottom));
  font: 400 11px/1.6 var(--mono);
  color: var(--mute);
}
.credits:empty { display: none; }
.cue.is-loading { animation: cue-wait 0.5s steps(2) infinite; }
@keyframes cue-wait { 50% { opacity: 0.45; } }
