/* Playback landing — snap-panel dark-booth rebuild. Phone-first. No external deps. */

:root {
  --bg: #0d0b08;
  --bg2: #14100a;
  --ink: #f2ede1;
  --muted: #a79c87;
  --faint: #6f6555;
  --line: rgba(242, 237, 225, 0.16);
  --accent: #f0a33c;
  --accent-ink: #1a1206;
  --r: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

.skip {
  position: fixed; top: -60px; left: 12px; z-index: 60;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; }

/* ---------- fixed header ---------- */
.site {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(13, 11, 8, 0.82), rgba(13, 11, 8, 0));
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; max-width: 1400px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: "Poppins", system-ui, sans-serif; }
.wordmark { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }
.wordmark .badge img { border-radius: 50%; }
.sep { color: var(--faint); }
.project { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 15px; }
.project:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  background: var(--accent); color: var(--accent-ink);
  padding: 14px 30px; border-radius: 999px; text-decoration: none;
  border: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.16s ease, filter 0.16s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn.small { padding: 10px 20px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); filter: none; }

/* ---------- snap panels ---------- */
main { scroll-snap-type: y mandatory; }
.panel {
  position: relative; height: 100svh; min-height: 100svh;
  scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden; display: block;
}
.bg { position: absolute; inset: -12% 0; z-index: 0; overflow: hidden; }
.bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.bg.flat { inset: 0; background: radial-gradient(120% 90% at 70% 10%, #1c1510 0%, var(--bg) 55%, #080705 100%); }
.scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scrim.b { background: linear-gradient(to top, rgba(8, 7, 5, 0.92) 0%, rgba(8, 7, 5, 0.45) 42%, rgba(8, 7, 5, 0.05) 70%, rgba(8, 7, 5, 0.25) 100%); }
.scrim.r { background: linear-gradient(to left, rgba(8, 7, 5, 0.92) 0%, rgba(8, 7, 5, 0.5) 45%, rgba(8, 7, 5, 0.15) 100%); }

.frame {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(64px + env(safe-area-inset-top)) 22px calc(40px + env(safe-area-inset-bottom));
  max-width: 1400px; margin: 0 auto;
}
.frame.tl { justify-content: flex-start; }
.frame.tr { justify-content: flex-start; align-items: flex-end; text-align: right; }
.frame.mr { justify-content: center; align-items: flex-end; text-align: right; }
.frame.br { justify-content: flex-end; align-items: flex-end; }
.frame.c { justify-content: center; align-items: center; text-align: center; }

/* ---------- type ---------- */
.kicker {
  font-family: "Poppins", system-ui, sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 10px;
}
h1.word, h2.word {
  font-family: "Poppins", system-ui, sans-serif; font-weight: 800;
  letter-spacing: -0.03em; line-height: 0.92; margin: 0;
  color: var(--ink); text-wrap: balance;
}
h1.word { font-size: clamp(2.75rem, 15vw, 10rem); }
h2.word.sm { font-size: clamp(2.75rem, 15vw, 8rem); }
.line {
  font-family: "Poppins", system-ui, sans-serif; font-weight: 600;
  font-size: clamp(1.25rem, 4.6vw, 1.9rem); line-height: 1.25;
  margin: 14px 0 0; max-width: 20ch;
}
.sub { color: var(--muted); font-size: 1.02rem; margin: 10px 0 0; max-width: 34ch; }
.cta { margin: 20px 0 0; }
.cue { position: absolute; left: 50%; bottom: 14px; z-index: 3; transform: translateX(-50%); }
.cue span {
  display: block; width: 22px; height: 34px; border: 2px solid rgba(242, 237, 225, 0.4);
  border-radius: 12px; position: relative;
}
.cue span::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 2px; background: var(--accent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: 0.4; } }

/* ---------- clip reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.9, 0.28, 1);
}
.reveal.d1.in { transition-delay: 0.08s; }
.reveal.d2.in { transition-delay: 0.16s; }
.reveal.d3.in { transition-delay: 0.24s; }
.reveal.d4.in { transition-delay: 0.32s; }

/* ---------- deck widget ---------- */
.booth {
  background: rgba(13, 11, 8, 0.72);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; width: min(420px, 100%);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.booth-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.deck-tag {
  font-family: "Poppins", system-ui, sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; color: var(--accent);
}
.sim { font-size: 12px; color: var(--faint); }
.booth.muted .wave { opacity: 0.25; }
.booth.muted .sim::after { content: " · MUTED"; color: var(--accent); }
.platter-row { display: flex; align-items: center; gap: 16px; }
.platter {
  position: relative; width: 118px; height: 118px; flex: 0 0 auto; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1e1a14 0 18%, #0a0908 19% 62%, #221d15 63% 100%);
  border: 2px solid rgba(240, 163, 60, 0.35);
  box-shadow: 0 0 34px rgba(240, 163, 60, 0.14), inset 0 0 24px rgba(0, 0, 0, 0.7);
  will-change: transform;
}
.platter::before {
  content: ""; position: absolute; inset: 10px; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(242, 237, 225, 0.055) 0 1px, transparent 1px 3px);
}
.plabel {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.plabel strong { font-family: "Poppins", system-ui, sans-serif; font-size: 10px; letter-spacing: 0.14em; color: var(--ink); }
.plabel em { font-style: normal; font-size: 10px; color: var(--accent); }
.playbtn {
  display: flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink); border: none; cursor: pointer;
  font-family: "Poppins", system-ui, sans-serif; font-weight: 700; font-size: 16px;
  padding: 14px 22px; border-radius: 999px; min-height: 52px;
  transition: transform 0.14s ease, filter 0.14s ease;
}
.playbtn:hover { filter: brightness(1.08); }
.playbtn:active { transform: scale(0.96); }
.playbtn .pic { width: 0; height: 0; border-left: 12px solid var(--accent-ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.playbtn[aria-pressed="true"] .pic { width: 12px; height: 14px; border: none; background: linear-gradient(to right, var(--accent-ink) 0 4px, transparent 4px 8px, var(--accent-ink) 8px 12px); }
.wave { width: 100%; height: 72px; margin-top: 12px; display: block; }
.booth-controls { display: flex; gap: 18px; margin-top: 6px; }
.tempo, .xfader { flex: 1; min-width: 0; }
.k { font-family: "Poppins", system-ui, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.tempo-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.tempo-row button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; line-height: 1;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.tempo-row button:active { transform: scale(0.92); border-color: var(--accent); }
.bpm { font-family: "Poppins", system-ui, sans-serif; font-weight: 600; font-size: 17px; }
.bpm small { font-size: 11px; color: var(--faint); font-weight: 500; }
.xfader input[type="range"] {
  width: 100%; margin: 10px 0 4px; accent-color: var(--accent); height: 32px; cursor: pointer;
}
.xread { display: flex; justify-content: space-between; font-family: "Poppins", system-ui, sans-serif; font-size: 12px; color: var(--muted); }

/* ---------- graph hits ---------- */
.hits {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.hits li {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; font-size: 0.95rem; color: var(--muted);
  background: rgba(20, 16, 10, 0.55);
}
.hits strong { display: block; font-family: "Poppins", system-ui, sans-serif; color: var(--ink); font-size: 1.05rem; }

/* ---------- keys ---------- */
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.key {
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px; background: rgba(20, 16, 10, 0.55);
}
.key kbd {
  font-family: "Poppins", system-ui, sans-serif; font-weight: 700; font-size: 15px;
  color: var(--accent); background: rgba(240, 163, 60, 0.1);
  border: 1px solid rgba(240, 163, 60, 0.35); border-bottom-width: 3px;
  border-radius: 8px; padding: 6px 10px; align-self: flex-start;
}
.key span { font-size: 0.9rem; color: var(--muted); }

/* ---------- source chips ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; }
.chips li {
  font-family: "Poppins", system-ui, sans-serif; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; color: var(--ink);
  background: rgba(20, 16, 10, 0.55);
}
.chips li.dim { color: var(--faint); border-style: dashed; }

/* ---------- roadmap steps ---------- */
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 16px; background: rgba(13, 11, 8, 0.66);
  font-family: "Poppins", system-ui, sans-serif;
}
.steps strong { font-size: 15px; }
.steps .when { margin-left: auto; font-size: 12.5px; color: var(--faint); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; background: var(--faint); }
li.done .dot { background: var(--accent); }
li.now .dot { background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(240, 163, 60, 0.2); } 50% { box-shadow: 0 0 0 8px rgba(240, 163, 60, 0.08); } }

/* ---------- notify ---------- */
.notify { width: min(440px, 100%); margin-top: 22px; }
.notify label {
  display: block; text-align: left; font-family: "Poppins", system-ui, sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px;
}
.fields { display: flex; gap: 10px; }
.fields input {
  flex: 1; min-width: 0; background: rgba(242, 237, 225, 0.06);
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  padding: 14px 20px; font-size: 16px; font-family: inherit;
}
.fields input::placeholder { color: var(--faint); }
.fields input:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.fields button {
  background: var(--accent); color: var(--accent-ink); border: none; cursor: pointer;
  font-family: "Poppins", system-ui, sans-serif; font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 999px; white-space: nowrap; min-height: 52px;
  transition: transform 0.14s ease, filter 0.14s ease;
}
.fields button:hover { filter: brightness(1.08); }
.fields button:active { transform: scale(0.97); }
.fields button[disabled] { opacity: 0.6; cursor: default; }
.field-error { color: #ff9d7a; font-size: 0.9rem; min-height: 1.4em; margin: 8px 0 0; text-align: left; }
.note { color: var(--faint); font-size: 0.82rem; margin: 6px 0 0; }
.done-msg {
  border: 1px solid rgba(240, 163, 60, 0.4); border-radius: var(--r);
  padding: 16px 18px; font-family: "Poppins", system-ui, sans-serif; font-size: 15px;
  background: rgba(240, 163, 60, 0.08); color: var(--ink); text-align: left;
}

/* ---------- footer bits on final panel ---------- */
.madeby { margin: 26px 0 0; }
.madeby img { border-radius: 8px; }
.footnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 18px 0 0; }
.footnav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footnav a:hover { color: var(--accent); }
.small { color: var(--faint); font-size: 0.8rem; margin: 12px 0 0; }

/* panel 2 carries two frames (top word, bottom deck): overlay them */
#p2 .frame { position: absolute; inset: 0; height: auto; }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  .frame { padding-left: 48px; padding-right: 48px; }
  .frame.bl .line, .frame.bl .sub { max-width: 26ch; }
  .hits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .keys { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; }
  .steps { flex-direction: row; }
  .steps li { flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
  .steps .when { margin-left: 0; }
  .notify { margin-left: auto; margin-right: auto; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main { scroll-snap-type: none; }
  .reveal { opacity: 1; transform: none; }
  .cue span::after, li.now .dot { animation: none; }
}
