:root {
  --bg: #0a0a0c;
  --fg: #f5f4f0;
  --muted: #8a8a90;
  --accent: #c81e3a;
  --accent-dim: #7a1224;

  --font-display: "Anton", sans-serif;
  --font-body: "Space Grotesk", sans-serif;

  /* how much scroll distance (in viewport-heights) the frame sequence covers */
  --scroll-lengths: 700vh;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
}

/* Locked while the loader is active, so iOS can't rubber-band scroll a half-drawn page */
body.is-loading {
  overflow: hidden;
  height: 100vh;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  background: var(--bg);
  transition: opacity 0.5s ease;
}

.loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  background: var(--bg);
  opacity: 1;
  transition: opacity 0.5s ease;
}

.enter-gate.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.enter-eyebrow {
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.enter-button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.03em;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 1em 2em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 rgba(200, 30, 58, 0);
  animation: enterPulse 2.2s ease-in-out infinite;
}

.enter-button:hover {
  background: #e0243f;
  transform: translateY(-2px);
}

.enter-button svg { flex-shrink: 0; }

.enter-hint {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}

@keyframes enterPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 30, 58, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(200, 30, 58, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .enter-button { animation: none; }
}

.loader-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  margin: 0;
  letter-spacing: 0.02em;
}

.loader-amp {
  color: var(--accent);
  margin: 0 0.15em;
}

.loader-bar {
  width: min(60vw, 260px);
  height: 3px;
  background: rgba(245,244,240,0.15);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.15s ease-out;
}

.loader-count {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

.scroll-track {
  position: relative;
  height: var(--scroll-lengths);
}

.pinned {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

#frameCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* darken the frame (canvas) only, so text stays bright and legible on top */
.pinned::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.overlay {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  padding: 0 6vw;
  transition: opacity 0.15s linear, transform 0.15s linear;
}

.eyebrow {
  font-size: clamp(0.7rem, 1.1vw, 0.95rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2rem 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.names {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 11vw, 9rem);
  line-height: 0.92;
  margin: 0;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.65);
}

.names .amp {
  display: block;
  color: var(--accent);
  font-size: 0.5em;
  margin: 0.1em 0;
}

.stage-label {
  font-size: clamp(0.8rem, 1.3vw, 1.1rem);
  color: var(--muted);
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.big-date,
.big-venue {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 6rem);
  margin: 0;
  color: var(--fg);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.15em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.65);
}

.stage-final .eyebrow { margin-bottom: 0.8rem; }

.final-line {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0,0,0,0.65);
}

.final-name { color: var(--accent); }

.final-meta {
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 0.9rem 0 1.8rem 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.venue-link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  letter-spacing: 0.03em;
  color: var(--bg);
  background: var(--accent);
  padding: 0.95em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.venue-link:hover {
  background: #e0243f;
  transform: translateY(-2px);
}

.venue-link svg { flex-shrink: 0; }

/* film-reel progress rail — signature element */
.reel {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  height: min(46vh, 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  z-index: 5;
}

.reel-line {
  position: relative;
  width: 2px;
  flex: 1;
  background: rgba(245,244,240,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.reel-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
}

.reel-count {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.reel-slash {
  margin: 0.4em 0;
  display: inline-block;
}

.scroll-hint {
  position: absolute;
  bottom: clamp(1.4rem, 4vh, 2.6rem);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
  z-index: 5;
  animation: hintBounce 1.8s ease-in-out infinite;
}

.scroll-hint span {
  padding: 0.55em 1.1em;
  border: 1px solid rgba(245, 244, 240, 0.35);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.scroll-hint-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: 2px;
}

.sound-toggle {
  position: absolute;
  top: clamp(1rem, 3vw, 1.6rem);
  right: clamp(1rem, 3vw, 1.6rem);
  z-index: 6;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(245, 244, 240, 0.3);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--fg);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sound-toggle:hover {
  background: rgba(10, 10, 12, 0.65);
  transform: translateY(-1px);
}

.sound-toggle .icon-sound-off { display: none; }

.sound-toggle.is-muted .icon-sound-on { display: none; }
.sound-toggle.is-muted .icon-sound-off { display: block; }
.sound-toggle.is-muted { color: var(--muted); }

@keyframes hintBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 12px); }
}

@media (max-width: 640px) {
  .reel { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stage { transition: opacity 0.05s linear; }
  .scroll-hint { animation: none; }
}