:root {
  --bg: #06070a;
  --surface: rgba(18, 20, 35, 0.64);
  --surface-strong: rgba(20, 23, 40, 0.85);
  --text: #f8f9ff;
  --muted: #c7cae9;
  --neon-green: #2effa8;
  --neon-cyan: #38d5ff;
  --neon-pink: #ff3fab;
  --neon-violet: #965eff;
  --neon-gold: #ffd45f;
  --line: rgba(255, 255, 255, 0.14);
  --shadow-strong: 0 32px 80px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.34);
  --radius-xl: 30px;
  --radius-lg: 24px;
}

html,
body {
  height: 100%;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(46, 255, 168, 0.16), transparent 35%),
    radial-gradient(circle at 88% 15%, rgba(150, 94, 255, 0.22), transparent 40%),
    radial-gradient(circle at 35% 88%, rgba(255, 63, 171, 0.16), transparent 36%),
    var(--bg);
  color: var(--text);
  overflow: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.35px, transparent 0.35px);
  background-size: 3px 3px;
  opacity: 0.14;
  z-index: -1;
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.45;
  z-index: -2;
  pointer-events: none;
  animation: floatBlob 14s ease-in-out infinite alternate;
}

.blob-one {
  width: 340px;
  height: 340px;
  left: -80px;
  top: 10%;
  background: rgba(56, 213, 255, 0.55);
}

.blob-two {
  width: 360px;
  height: 360px;
  right: -90px;
  top: 34%;
  background: rgba(150, 94, 255, 0.55);
  animation-delay: 1.2s;
}

.blob-three {
  width: 280px;
  height: 280px;
  left: 30%;
  bottom: -80px;
  background: rgba(255, 63, 171, 0.45);
  animation-delay: 2.2s;
}

main {
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  height: 100vh;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

main::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.story {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 4vw, 2.5rem);
}

.story-shell {
  width: min(900px, 100%);
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.story.is-visible .story-shell {
  opacity: 1;
  transform: translateY(0);
}

.glass-panel,
.media-card,
.text-card,
.now-playing-card,
.timeline-card,
.chip,
.reveal-face {
  background: linear-gradient(145deg, rgba(27, 30, 54, 0.78), rgba(15, 17, 30, 0.68));
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.glass-panel {
  border-radius: var(--radius-xl);
  padding: clamp(1.3rem, 4vw, 2.6rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    var(--shadow-strong);
}

.glass-panel:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow:
    0 0 0 1px rgba(56, 213, 255, 0.35),
    0 16px 42px rgba(56, 213, 255, 0.16),
    var(--shadow-strong);
}

.eyebrow,
.section-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.eyebrow {
  color: var(--neon-cyan);
  margin: 0;
  font-size: 0.9rem;
}

.display-title {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(2.2rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.subtitle {
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  color: var(--muted);
}

.pair {
  margin: 0.55rem 0 1.4rem;
  color: var(--neon-gold);
  font-weight: 700;
}

.hero-stat {
  margin-top: 0.6rem;
}

.stat-label,
.stat-unit,
.breakdown-copy,
.muted,
.timeline-date,
.section-copy {
  color: var(--muted);
}

.stat-label {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mega-stat {
  margin: 0.2rem 0 0;
  font-size: clamp(5rem, 22vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  font-weight: 900;
  background: linear-gradient(125deg, var(--neon-green), var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 38px rgba(46, 255, 168, 0.18);
}

.stat-unit {
  margin: 0.1rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
}

.breakdown-copy {
  margin: 1rem 0 0.4rem;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.story-progress {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 0.55rem;
  z-index: 40;
  padding: 0.55rem;
  border-radius: 999px;
  background: rgba(10, 12, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.progress-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.progress-dot.active {
  opacity: 1;
  background: var(--neon-cyan);
  transform: scale(1.18);
  box-shadow: 0 0 16px rgba(56, 213, 255, 0.75);
}

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 4.4vw, 3.1rem);
  line-height: 0.96;
}

.section-copy {
  margin: 0.45rem 0 1.2rem;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 0.4rem;
  margin-top: 1.2rem;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.25rem;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), rgba(150, 94, 255, 0.7), var(--neon-pink));
  box-shadow: 0 0 22px rgba(56, 213, 255, 0.4);
}

.timeline-event {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-node {
  position: absolute;
  top: 1.1rem;
  left: -0.16rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-cyan);
  border: 2px solid #0f1327;
  box-shadow: 0 0 15px rgba(56, 213, 255, 0.95);
}

.timeline-card {
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
}

.timeline-card h3 {
  margin: 0.28rem 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.timeline-card p {
  margin: 0;
}

.is-anniversary .timeline-node {
  background: var(--neon-gold);
  box-shadow: 0 0 16px rgba(255, 212, 95, 0.85);
}

.is-anniversary .timeline-card {
  border-color: rgba(255, 212, 95, 0.64);
  box-shadow:
    0 0 0 1px rgba(255, 212, 95, 0.24),
    0 16px 36px rgba(255, 212, 95, 0.14);
}

.media-card,
.text-card,
.now-playing-card {
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.media-card {
  display: grid;
  gap: 0.9rem;
}

.media-slot {
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(2, 3, 8, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.media-slot img,
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-placeholder,
.map-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 213, 255, 0.28), transparent 40%),
    radial-gradient(circle at 80% 72%, rgba(255, 63, 171, 0.24), transparent 45%),
    rgba(9, 11, 22, 0.96);
}

.image-placeholder span {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
}

.chips {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.chip {
  border-radius: var(--radius-lg);
  padding: 0.95rem;
}

.chip h3 {
  margin: 0;
}

.chip p {
  margin: 0.35rem 0 0;
}

.photo-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
}

.photo-tile {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 7, 16, 0.95);
}

.photo-tile img,
.photo-tile .image-placeholder {
  transition: transform 0.35s ease;
}

.photo-tile:hover img,
.photo-tile:hover .image-placeholder {
  transform: scale(1.06);
}

.tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.5rem 0.6rem;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-tile:hover .tile-caption,
.photo-tile:focus-within .tile-caption {
  opacity: 1;
}

.poster-card {
  max-width: 620px;
}

.map-slot {
  border-width: 2px;
  border-color: rgba(255, 63, 171, 0.42);
}

.map-placeholder {
  background:
    linear-gradient(120deg, rgba(150, 94, 255, 0.22), rgba(56, 213, 255, 0.2)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.05) 10px,
      rgba(0, 0, 0, 0.11) 10px,
      rgba(0, 0, 0, 0.11) 20px
    ),
    rgba(7, 9, 20, 0.95);
}

.placeholder-number {
  display: block;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  color: var(--neon-gold);
}

.placeholder-text {
  display: block;
  text-transform: lowercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.now-playing-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.equalizer {
  width: 62px;
  height: 46px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  align-items: end;
}

.equalizer span {
  display: block;
  border-radius: 999px;
  min-height: 8px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-green));
  box-shadow: 0 0 12px rgba(56, 213, 255, 0.5);
  animation: eqBounce 1.1s ease-in-out infinite;
}

.equalizer span:nth-child(2) {
  animation-delay: 0.12s;
}

.equalizer span:nth-child(3) {
  animation-delay: 0.24s;
}

.equalizer span:nth-child(4) {
  animation-delay: 0.36s;
}

.equalizer span:nth-child(5) {
  animation-delay: 0.48s;
}

.song-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.song-artist {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 213, 255, 0.8);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-neon:hover,
.btn-neon:focus-visible {
  transform: translateY(-1px);
  border-color: var(--neon-green);
  box-shadow: 0 0 24px rgba(46, 255, 168, 0.35);
}

.reveal-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.reveal-card {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  perspective: 1200px;
  min-height: 250px;
}

.reveal-card:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-lg);
}

.reveal-card-inner {
  position: relative;
  width: 100%;
  min-height: 250px;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
}

.reveal-card.is-revealed .reveal-card-inner {
  transform: rotateY(180deg);
}

.reveal-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1rem;
  backface-visibility: hidden;
}

.reveal-front {
  background: linear-gradient(145deg, rgba(56, 213, 255, 0.26), rgba(18, 21, 38, 0.93));
}

.reveal-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, rgba(255, 63, 171, 0.24), rgba(23, 21, 40, 0.95));
}

.reveal-face h3 {
  margin: 0;
}

.reveal-face p {
  margin-top: 0.4rem;
}

.tap-hint {
  display: inline-block;
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--neon-gold);
}

@keyframes eqBounce {
  0%,
  100% {
    height: 28%;
  }
  35% {
    height: 96%;
  }
  70% {
    height: 55%;
  }
}

@keyframes floatBlob {
  0% {
    transform: translateY(-15px) translateX(-5px);
  }
  100% {
    transform: translateY(15px) translateX(8px);
  }
}

@media (max-width: 900px) {
  .story-progress {
    right: 0.55rem;
  }

  .glass-panel {
    border-radius: 24px;
  }

  .photo-grid {
    gap: 0.45rem;
  }
}

@media (max-width: 640px) {
  .story {
    padding-inline: 0.7rem;
  }

  .story-progress {
    right: 0.4rem;
    gap: 0.42rem;
  }

  .progress-dot {
    width: 9px;
    height: 9px;
  }

  .display-title {
    font-size: clamp(2rem, 12vw, 3.6rem);
  }

  .section-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  .chips,
  .reveal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .story-progress {
    top: calc(env(safe-area-inset-top) + 0.75rem);
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    max-width: calc(100vw - 1rem);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(8, 10, 20, 0.86), rgba(25, 29, 52, 0.72));
    box-shadow:
      0 10px 24px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(56, 213, 255, 0.16),
      0 0 30px rgba(56, 213, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 50;
  }

  .progress-dot {
    width: 9px;
    height: 9px;
    opacity: 0.62;
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
  }

  .progress-dot.active {
    transform: scale(1.24);
    box-shadow:
      0 0 0 4px rgba(56, 213, 255, 0.16),
      0 0 18px rgba(56, 213, 255, 0.85);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .story-shell {
    opacity: 1;
    transform: none;
  }
}
