/* TuneClip Quiz — reel nav, viewfinder beats, gold-reel gallery */

:root {
  --cream: #faf7f2;
  --cream-deep: #f0ebe3;
  --ink: #1a1612;
  --muted: #5c5348;
  --gold: #d4a017;
  --gold-light: #f0c14b;
  --gold-dark: #9a7209;
  --charcoal: #2a2520;
  --cloud: #ffffff;
  --shadow: 0 22px 48px rgba(26, 22, 18, 0.1);
  --glow: 0 0 0 1px rgba(212, 160, 23, 0.35), 0 12px 40px rgba(212, 160, 23, 0.22);
  --radius: 1.1rem;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 4.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--charcoal);
  color: var(--cream);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn svg,
.btn i {
  width: 1.2rem;
  height: 1.2rem;
}

.btn--gold {
  color: var(--charcoal);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.35);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 160, 23, 0.45);
}

.btn--cream {
  background: var(--cloud);
  color: var(--charcoal);
  border: 2px solid rgba(212, 160, 23, 0.25);
  box-shadow: 0 6px 18px rgba(26, 22, 18, 0.06);
}

.btn--cream:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 160, 23, 0.5);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.85rem 1.45rem;
  font-size: 1rem;
}

.btn--xl {
  padding: 1rem 1.65rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

/* Reel navigation */
.reel-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(212, 160, 23, 0.15);
  transition: box-shadow 0.25s ease;
}

.reel-nav.is-scrolled {
  box-shadow: var(--shadow);
}

.reel-nav__perfs {
  height: 10px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--charcoal) 0 6px,
      transparent 6px 14px
    );
  opacity: 0.12;
}

.reel-nav__bar {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.55rem 1.25rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reel-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
}

.reel-nav__brand img {
  border-radius: 0.65rem;
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.25);
}

.reel-nav__play {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.4rem;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  box-shadow: 0 2px 8px rgba(212, 160, 23, 0.35);
}

.reel-nav__play svg {
  width: 0.85rem;
  height: 0.85rem;
  margin-left: 2px;
}

.reel-nav__links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  margin-right: 0.75rem;
}

.reel-nav__links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92rem;
}

.reel-nav__links a:hover {
  color: var(--gold-dark);
}

.reel-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.reel-nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0.65rem;
  background: var(--cloud);
  box-shadow: 0 4px 12px rgba(26, 22, 18, 0.08);
  cursor: pointer;
}

.reel-nav__burger span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0 auto;
  background: var(--charcoal);
  border-radius: 2px;
}

.nav-sheet {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  padding: 1.25rem;
  background: var(--cloud);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.nav-sheet[hidden] {
  display: none !important;
}

.nav-sheet a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cream-deep);
}

/* Hero */
.hero__banner {
  max-width: 68rem;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
}

.hero__banner img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__cinema {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero__kicker {
  font-weight: 600;
  color: var(--gold-dark);
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.hero__frame {
  position: relative;
  margin: 0;
  max-width: 16rem;
  margin-inline: auto;
}

.hero__frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 1.25rem;
  box-shadow: var(--glow);
  object-fit: contain;
}

.hero__viewfinder {
  position: absolute;
  inset: -8px;
  z-index: 2;
  pointer-events: none;
  border: 2px solid rgba(212, 160, 23, 0.55);
  border-radius: 1.35rem;
}

.hero__viewfinder::before,
.hero__viewfinder::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid var(--gold);
}

.hero__viewfinder::before {
  top: 6px;
  left: 6px;
  border-right: none;
  border-bottom: none;
}

.hero__viewfinder::after {
  bottom: 6px;
  right: 6px;
  border-left: none;
  border-top: none;
}

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--gold-dark);
  margin: 0 0 0.45rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  margin: 0;
  font-weight: 800;
}

.section-head h2 span {
  color: var(--gold-dark);
}

.section-head__lead {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Beat cards */
.spot-beats {
  padding: 2.5rem 0 3.5rem;
  background: linear-gradient(180deg, transparent, var(--cream-deep) 40%, transparent);
}

.spot-beats__row {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1.15rem;
}

.beat-card {
  position: relative;
  background: var(--cloud);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 160, 23, 0.12);
}

.beat-card__tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.beat-card__view {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(212, 160, 23, 0.4);
  border-radius: 4px;
}

.beat-card__view::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(212, 160, 23, 0.25);
}

.beat-card h3 {
  font-family: var(--font-display);
  margin: 0.35rem 0 0.45rem;
  font-size: 1.12rem;
}

.beat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Gold reel gallery */
.gold-reel {
  padding: 1rem 0 3.5rem;
}

.gold-reel__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 1.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.reel-shot {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
}

.reel-shot__glow {
  width: min(11.5rem, 78vw);
  aspect-ratio: 1080 / 1920;
  padding: 4px;
  border-radius: 1.2rem;
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  box-shadow: var(--glow);
}

.reel-shot__glow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1rem;
  background: var(--charcoal);
}

.reel-shot--lift {
  transform: translateY(-10px);
}

.gold-reel__hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  opacity: 0.75;
}

/* Download */
.download {
  padding: 1.5rem 1.25rem 3.5rem;
}

.download__marquee {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.25rem 1.65rem;
  border-radius: 1.5rem;
  background: var(--cloud);
  box-shadow: var(--shadow);
  border: 2px solid rgba(212, 160, 23, 0.2);
}

.download__icon {
  margin: 0 auto 1rem;
  border-radius: 1rem;
  box-shadow: var(--glow);
}

.download h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  margin: 0 0 0.65rem;
}

.download__lead {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.download__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer {
  padding: 2rem 1.25rem;
  background: var(--cream-deep);
  border-top: 1px solid rgba(212, 160, 23, 0.15);
}

.footer__inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer__brand img {
  border-radius: 0.45rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.15rem;
}

.footer__links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 18, 0.55);
}

.modal__panel {
  position: relative;
  max-width: 22rem;
  width: 100%;
  padding: 2rem 1.65rem;
  background: var(--cloud);
  border-radius: 1.25rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(26, 22, 18, 0.3);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: var(--cream);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
}

.modal__play {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  box-shadow: var(--glow);
}

.modal__panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.65rem;
}

.modal__panel p {
  color: var(--muted);
  margin: 0 0 1.15rem;
  font-size: 0.96rem;
}

@media (min-width: 768px) {
  .reel-nav__links {
    display: flex;
  }

  .reel-nav__actions {
    margin-left: 0;
  }

  .reel-nav__burger {
    display: none;
  }

  .nav-sheet {
    display: none !important;
  }

  .hero__cinema {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .hero__frame {
    margin-inline: 0;
    justify-self: end;
  }

  .spot-beats__row {
    grid-template-columns: repeat(3, 1fr);
  }

  .reel-shot__glow {
    width: 12.5rem;
  }

  .gold-reel__hint {
    display: none;
  }

  .download__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .gold-reel__track {
    justify-content: center;
  }

  .reel-shot__glow {
    width: 13rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}
