:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --accent: #c8a24a;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-brand: "Bungee", "Arial Black", sans-serif;
  --panel-bg: #232325;
  --btn-border: 3px;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  scroll-snap-type: y mandatory;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(200, 162, 74, 0.1), transparent 40%),
    radial-gradient(circle at 78% 78%, rgba(200, 162, 74, 0.08), transparent 42%),
    linear-gradient(180deg, #050505 0%, #0b0b0c 45%, #040404 100%);
}

a {
  color: var(--fg);
}

section {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.wave-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  pointer-events: none;
}

.global-sound-btn,
.hero-btn,
.lane-btn,
.transport-btn {
  border-radius: 0;
}

.global-sound-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 56px;
  height: 56px;
  padding: 0;
  border: var(--btn-border) solid #e8e8e8;
  background: #1e1e20;
  color: #f3f3f3;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.global-sound-btn[aria-pressed="true"] {
  border-color: rgba(200, 162, 74, 0.85);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(200, 162, 74, 0.18) inset;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #000;
}

.hero-inner {
  display: flex;
  width: min(920px, 100%);
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vh, 10px);
}

.hero-nav {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: -10px;
  padding-bottom: 6px;
}

.hero-brand {
  display: inline-block;
  margin: 8px 0 0;
  color: #fff;
  font-family: var(--font-brand);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  transform: rotate(-6deg);
  transform-origin: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 18px rgba(255, 255, 255, 0.12);
}

.hero-present,
.hero-byline {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.hero-present {
  margin: 2px 0 0;
  color: var(--accent);
  font-size: clamp(14px, 1.5vw, 17px);
  text-shadow: 0 0 12px rgba(200, 162, 74, 0.28);
}

.hero-byline {
  margin: 8px 0 2px;
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 17px);
}

.name-accent {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(200, 162, 74, 0.26);
}

.hero-logo {
  display: block;
  width: min(560px, 76vw);
  height: auto;
  max-height: 58svh;
  object-fit: contain;
  filter: contrast(1.1) saturate(1.05);
  box-shadow: 0 0 90px 28px #000;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 72%, transparent 100%);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.hero-btn {
  position: relative;
  padding: 12px 18px;
  border: var(--btn-border) solid #e8e8e8;
  background: #1f1f1f;
  color: #f0f0f0;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 22px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-btn::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -7px;
  bottom: -3px;
  width: 7px;
  background: #9aa2a6;
}

.hero-start-btn {
  min-width: min(48vw, 250px);
  text-align: center;
}

.story-section {
  display: flex;
  width: min(760px, calc(100% - 32px));
  align-items: center;
  margin: 0 auto;
  padding: 24px 22px;
}

#story {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 800px;
  color: #f2f2f2;
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
}

.story-accent {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.quote-section {
  display: flex;
  max-width: 980px;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 34px 20px 12px;
}

.quote-kicker,
.spotify-kicker {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.3vw, 18px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quote-kicker {
  margin-bottom: 10px;
}

.quote-text {
  margin: 0;
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: #f2f2f2;
  font-size: clamp(16px, 1.6vw, 22px);
  font-style: normal;
  line-height: 1.6;
}

.quote-source {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.quote-source a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.player-section {
  padding: 26px 16px 40px;
}

.spotify-section {
  display: flex;
  align-items: center;
  padding: 30px 16px 46px;
}

.sequence-wrap,
.spotify-wrap {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.sequence-title,
.spotify-title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.sequence-title {
  font-size: clamp(30px, 4.6vw, 56px);
  letter-spacing: 0.01em;
  line-height: 0.92;
}

.spotify-title {
  margin: 8px 0;
  font-size: clamp(30px, 4.2vw, 52px);
}

.sequence-sub,
.spotify-sub {
  color: #f0f0f0;
}

.sequence-sub {
  margin: 22px 0 26px;
  font-size: clamp(14px, 1.4vw, 20px);
}

.spotify-sub {
  margin: 0 0 22px;
  font-size: clamp(14px, 1.3vw, 18px);
}

.sequence-panel {
  padding: clamp(18px, 2.6vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--panel-bg);
}

.spotify-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, #19191b, #0f0f12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.progress-strips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.progress-strips span {
  height: 10px;
  background: rgba(210, 196, 150, 0.34);
}

.progress-strips .is-active {
  background: #d9c489;
}

.sequence-caption {
  margin: 0 0 20px;
  max-width: 46ch;
  color: #f3f3f3;
  font-size: clamp(13px, 1.25vw, 17px);
  line-height: 1.45;
}

.lane {
  display: grid;
  grid-template-columns: 120px 1fr 150px;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.lane-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.beat-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 8px;
  min-height: 46px;
}

.beat-grid::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
}

.dot {
  appearance: none;
  border: 1px solid transparent;
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin: auto;
  padding: 0;
  border-radius: 999px;
  background: #a4aec8;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, border-color 120ms ease;
}

.dot:hover {
  transform: scale(1.08);
}

.dot:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
}

.dot.dot-empty {
  opacity: 0.15;
}

.dot.is-accent {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(200, 162, 74, 0.45);
}

.dot.is-current {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.lane-btn {
  min-height: 52px;
  padding: 12px 10px;
  border: var(--btn-border) solid rgba(233, 233, 233, 0.8);
  background: #262628;
  color: rgba(244, 244, 244, 0.85);
  font-family: var(--font-display);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.1;
  text-transform: uppercase;
}

.lane-btn.is-active {
  border-color: rgba(200, 162, 74, 0.9);
  color: var(--accent);
  box-shadow: 0 0 0 2px rgba(200, 162, 74, 0.18) inset;
}

.transport-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.transport-btn {
  width: 66px;
  height: 66px;
  padding: 0;
  border: var(--btn-border) solid #ececec;
  background: var(--panel-bg);
  color: #f2f2f2;
  font-size: 30px;
  line-height: 1;
}

.transport-btn.is-play {
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.55) inset;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.js-ready .reveal-section {
  opacity: 0;
  transform: translateY(38px) scale(0.985);
  filter: blur(2px);
  will-change: opacity, transform, filter;
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-ready .reveal-section.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (max-width: 820px) {
  .hero-cta {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .hero-start-btn {
    width: min(84vw, 250px);
    min-width: 0;
  }
}

@media (max-height: 760px) {
  .hero-logo {
    max-height: 50svh;
  }

  .hero-brand {
    font-size: clamp(18px, 2.1vw, 26px);
  }

  .hero-byline {
    font-size: clamp(12px, 1.4vw, 18px);
  }
}

@media (max-width: 760px) {
  .story-section {
    width: calc(100% - 24px);
    padding: 18px 14px;
  }

  #story {
    font-size: clamp(14px, 4.1vw, 18px);
    line-height: 1.5;
  }

  .quote-text {
    padding: 16px 14px;
    font-size: clamp(14px, 4.1vw, 18px);
  }

  .quote-source {
    font-size: 13px;
  }

  .sequence-sub {
    margin: 14px 0 18px;
  }

  .spotify-sub {
    margin-bottom: 16px;
  }

  .lane {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .lane-btn {
    width: 100%;
  }

  .beat-grid {
    gap: 6px;
    min-height: 36px;
  }

  .dot {
    width: 14px;
    height: 14px;
  }

  .transport-btn {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal-section {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
