:root {
  --bg: #07060a;
  --ink: #f4efe6;
  --muted: #a89f93;
  --line: rgba(244, 239, 230, 0.12);
  --gold: #e8c27a;
  --gold-deep: #c4923a;
  --card: #121018;
  --violet: #7a5cff;
  --cyan: #3dd6c6;
  --btn: #f4efe6;
  --btn-ink: #0b090f;
  --safe: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 6, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand span { color: var(--gold); }
.nav { display: flex; gap: 14px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font: 650 13px/1 Inter, system-ui, sans-serif;
}
.nav a:hover, .nav a.on { color: var(--ink); }

.hero {
  position: relative;
  min-height: min(88dvh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #000;
}
.hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.02);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,6,10,.25) 0%, rgba(7,6,10,.15) 35%, rgba(7,6,10,.92) 78%, #07060a 100%),
    radial-gradient(ellipse at 70% 20%, rgba(122,92,255,.22), transparent 50%);
}
.bill {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 88px 22px 40px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(61, 214, 198, 0.7);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(61, 214, 198, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 214, 198, 0); }
}
.bill h1 {
  margin: 0 0 12px;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  font-weight: 850;
}
.bill h1 em {
  font-style: normal;
  color: var(--gold);
}
.bill .lead {
  margin: 0 0 22px;
  color: rgba(244, 239, 230, 0.86);
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  max-width: 28em;
  line-height: 1.45;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: 750 15px/1 Inter, system-ui, sans-serif;
  background: var(--btn);
  color: var(--btn-ink);
}
.btn.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1208;
  box-shadow: 0 10px 30px rgba(232, 194, 122, 0.25);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn:active { transform: translateY(1px); }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px calc(56px + var(--safe));
}
.section-h {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 8px 0 16px;
  flex-wrap: wrap;
}
.section-h h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.8rem);
  letter-spacing: -0.03em;
}
.section-h p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 34em;
}

.grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(232, 194, 122, 0.45); transform: translateY(-1px); }
.card .kicker {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.card h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  flex: 1;
}
.card .go {
  margin-top: 6px;
  color: var(--gold);
  font: 700 13px/1 Inter, system-ui, sans-serif;
}

.beat-strip {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
@media (min-width: 860px) {
  .beat-strip { grid-template-columns: 1.2fr 1fr; }
}
.beat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.beat-card .meta {
  padding: 14px 16px 4px;
}
.beat-card .meta strong { display: block; margin-bottom: 4px; }
.beat-card .meta span { color: var(--muted); font-size: 13px; }
.yt {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 0;
  background: #000;
}

.bpm-bar {
  margin: 22px 0 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(122,92,255,.12), rgba(61,214,198,.08));
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.bpm-bar .left { display: flex; flex-direction: column; gap: 4px; }
.bpm-bar .left strong { font-size: 1.05rem; }
.bpm-bar .left span { color: var(--muted); font-size: 13px; }
.bpm-meter {
  display: flex;
  gap: 6px;
  align-items: end;
  height: 28px;
}
.bpm-meter span {
  width: 6px;
  border-radius: 99px;
  background: var(--gold);
  opacity: 0.35;
  height: 40%;
  animation: bounceBars 0.428s ease-in-out infinite; /* ~140bpm */
}
.bpm-meter span:nth-child(2) { animation-delay: .07s; height: 70%; }
.bpm-meter span:nth-child(3) { animation-delay: .14s; height: 100%; }
.bpm-meter span:nth-child(4) { animation-delay: .21s; height: 55%; }
.bpm-meter.paused span { animation: none; opacity: 0.25; }
@keyframes bounceBars {
  0%, 100% { transform: scaleY(0.55); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.room {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 18px calc(40px + var(--safe));
}
.room .back {
  display: inline-flex;
  color: var(--muted);
  text-decoration: none;
  font: 650 13px/1 Inter, system-ui, sans-serif;
  margin-bottom: 18px;
}
.room h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.035em;
}
.room .lead {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 36em;
  line-height: 1.5;
}
.steps {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 14px 52px;
  position: relative;
  color: rgba(244,239,230,.92);
  line-height: 1.4;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(232,194,122,.16);
  color: var(--gold);
  font: 750 12px/1 Inter, system-ui, sans-serif;
}
.player-shell {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  margin-bottom: 16px;
}
.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 18px;
}
.foot {
  border-top: 1px solid var(--line);
  padding: 22px 18px calc(28px + var(--safe));
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.foot a { color: var(--gold); text-decoration: none; }

@media (max-width: 520px) {
  .bill { padding-top: 72px; }
  .btn { width: 100%; }
  .actions { width: 100%; }
}

.hero-class { min-height: auto; align-items: stretch; }
.hero-class .hero-still,
.hero-class video.hero-still {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 52dvh;
  max-height: 78dvh;
  object-fit: cover;
  opacity: 1;
  background: #000;
}
.hero-scrim-soft {
  background: linear-gradient(180deg, rgba(7,6,10,.55) 0%, rgba(7,6,10,.15) 40%, rgba(7,6,10,.88) 100%);
  pointer-events: none;
}
.bill-over {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
}
.class-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

.stage { position: relative; background: #000; }
.hero-class .bill-over {
  pointer-events: none; /* don't block video native pause controls */
}
.hero-class .bill-over .actions,
.hero-class .bill-over .btn {
  pointer-events: auto; /* Play/Pause still clickable */
}
.transport-hint {
  margin: 10px 0 0;
  color: rgba(244,239,230,.7);
  font-size: 13px;
  max-width: 28em;
}
.btn.is-playing {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(232,194,122,.55);
  box-shadow: none;
}
.btn.gold.is-playing {
  background: rgba(7,6,10,.55);
  color: var(--gold);
}
