/* ============================================================
   BRIDGING THE MILES — styles
   Deep-violet twilight, warm amber/rose accents, glass cards.
   ============================================================ */

:root {
  --bg-0: #05030c;
  --bg-1: #0a0718;
  --bg-2: #140b28;

  --ink: #f6ece0;
  --ink-soft: #d3c6dc;
  --ink-mute: #9c90ac;

  --amber: #ffb27a;
  --rose: #ff9bb0;
  --gold: #ffd479;
  --teal: #7fe3d0;
  --violet: #c9a8ff;
  --paper: #f2ece2;
  --polaroid-ink: #3b2e24;
  --polaroid-ink-soft: #6f5c44;
  --polaroid-accent: #c26a4a;

  --line: rgba(255, 196, 158, 0.14);
  --line-strong: rgba(255, 196, 158, 0.28);

  --card: rgba(18, 12, 30, 0.66);
  --glass: rgba(14, 9, 24, 0.55);

  --serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1200px 820px at 64% 40%, #1b1035 0%, rgba(27, 16, 53, 0) 62%),
    radial-gradient(900px 720px at 16% 84%, #2a1128 0%, rgba(42, 17, 40, 0) 58%),
    linear-gradient(160deg, #080512 0%, #05030c 58%, #030209 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
}

button {
  font-family: inherit;
}

::selection {
  background: rgba(255, 155, 176, 0.3);
  color: #fff;
}

/* ------------------------------------------------------------
   GLOBE STAGE
   ------------------------------------------------------------ */
#globe-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s var(--ease-soft);
}

body.globe-ready #globe-stage {
  opacity: 1;
}

#globeViz {
  position: absolute;
  inset: 0;
}

#globeViz canvas {
  display: block;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 55% 46%, rgba(5, 3, 12, 0) 34%, rgba(5, 3, 12, 0.42) 72%, rgba(3, 2, 9, 0.92) 100%);
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Fallback globe if WebGL is unavailable */
#globe-fallback {
  display: none;
  position: absolute;
  inset: 0;
}

body.no-webgl #globe-fallback {
  display: block;
}

body.no-webgl #globeViz {
  display: none;
}

.globe-orb {
  position: absolute;
  left: 58%;
  top: 46%;
  width: min(64vw, 660px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 36% 30%, #2c1d4e 0%, #160c2b 44%, #08040f 74%),
    radial-gradient(circle at 70% 78%, rgba(255, 130, 110, 0.16), transparent 55%);
  box-shadow:
    0 0 120px 12px rgba(255, 150, 110, 0.16),
    inset -34px -44px 120px rgba(0, 0, 0, 0.82),
    inset 22px 22px 90px rgba(130, 95, 210, 0.18);
}

.globe-orb.halo {
  width: min(70vw, 760px);
  background: radial-gradient(circle, rgba(255, 156, 116, 0.14) 0%, transparent 62%);
  box-shadow: none;
  animation: halo 9s ease-in-out infinite;
}

@keyframes halo {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

/* ------------------------------------------------------------
   SPLASH
   ------------------------------------------------------------ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 7vh 6vw;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 36%, rgba(24, 13, 44, 0.34) 0%, rgba(6, 4, 14, 0.8) 56%, rgba(3, 2, 9, 0.96) 100%);
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}

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

.splash-inner {
  max-width: 760px;
  animation: rise 1.4s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--amber);
}

.splash h1 {
  margin: 0.32em 0 0.18em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 9.5vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  background: linear-gradient(178deg, #ffffff 0%, #ffe4cf 46%, #ffb27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 24px 60px rgba(255, 150, 110, 0.18));
}

.subtitle {
  margin: 0.5em 0 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-style: italic;
  color: var(--ink-soft);
}

.dedication {
  margin: 0.35em 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.splash-elapsed {
  margin: 1.7em 0 2em;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  min-height: 1em;
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 1rem 2.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    background 0.35s, border-color 0.35s, color 0.35s;
}

.btn-primary {
  background: linear-gradient(118deg, var(--amber) 0%, var(--rose) 100%);
  color: #2a0f16;
  box-shadow:
    0 18px 48px -16px rgba(255, 140, 120, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    0 26px 60px -16px rgba(255, 140, 120, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 0.85rem 1.6rem;
  font-size: 0.82rem;
}

.btn-ghost:hover {
  background: rgba(255, 178, 122, 0.1);
  border-color: rgba(255, 178, 122, 0.45);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   SPLASH HINT
   ------------------------------------------------------------ */
.hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.4em 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hint svg {
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
}

/* ------------------------------------------------------------
   HUD + PROGRESS RAIL
   ------------------------------------------------------------ */
.hud {
  position: fixed;
  left: max(24px, env(safe-area-inset-left));
  bottom: 26px;
  z-index: 40;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

body.journey-started .hud {
  opacity: 1;
  transform: none;
}

.hud-index {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.hud-sep {
  width: 18px;
  height: 1px;
  background: var(--line-strong);
  align-self: center;
}

.hud-city {
  color: var(--ink);
}

.hud-km {
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

.progress-rail {
  position: fixed;
  right: 26px;
  top: 50%;
  z-index: 40;
  width: 2px;
  height: 30vh;
  transform: translateY(-50%);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

body.journey-started .progress-rail {
  opacity: 1;
}

.progress-fill {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top center;
  background: linear-gradient(180deg, var(--amber), var(--rose));
  box-shadow: 0 0 16px rgba(255, 150, 140, 0.5);
}

/* ------------------------------------------------------------
   AUTOPLAY CONTROL (slideshow play / pause)
   ------------------------------------------------------------ */
.autoplay {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: 26px;
  z-index: 40;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #2a0f16;
  background: linear-gradient(118deg, var(--amber) 0%, var(--rose) 100%);
  box-shadow:
    0 18px 40px -18px rgba(255, 140, 120, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease),
    visibility 0.8s var(--ease), box-shadow 0.35s var(--ease);
}

body.journey-started .autoplay {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

body.journey-started .autoplay:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 24px 52px -18px rgba(255, 140, 120, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.autoplay:active {
  transform: translateY(0) scale(0.97);
}

.autoplay:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.autoplay .icon {
  display: none;
  grid-area: 1 / 1;
}

.autoplay .icon-play {
  display: block;
  margin-left: 2px; /* optically centre the triangle */
}

.autoplay.is-playing .icon-play {
  display: none;
}

.autoplay.is-playing .icon-pause {
  display: block;
}

.autoplay.is-playing {
  animation: autoplay-pulse 2.4s ease-in-out infinite;
}

@keyframes autoplay-pulse {
  0%,
  100% {
    box-shadow:
      0 18px 40px -18px rgba(255, 140, 120, 0.72),
      inset 0 1px 0 rgba(255, 255, 255, 0.42);
  }
  50% {
    box-shadow:
      0 18px 52px -12px rgba(255, 140, 120, 1),
      0 0 0 6px rgba(255, 155, 176, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.42);
  }
}

/* ------------------------------------------------------------
   STORY + CHAPTERS
   ------------------------------------------------------------ */
.story {
  position: relative;
  z-index: 10;
  transition: opacity 1.1s var(--ease);
}

/* Keep the first chapter hidden behind the intro splash. */
body:not(.journey-started) .story {
  opacity: 0;
  visibility: hidden;
}

.chapter {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12vh 6vw;
  padding-right: 48vw;
  /* Let the browser skip rendering far-off chapters for a smoother scroll. */
  content-visibility: auto;
  contain-intrinsic-size: auto 100vh;
}

/* ------------------------------------------------------------
   MEMORY CARD
   ------------------------------------------------------------ */
.card {
  width: min(470px, 100%);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(112, 84, 52, 0.16);
  box-shadow:
    0 42px 90px -42px rgba(24, 12, 36, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(46px) scale(0.985);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, transform;
}

.chapter.in-view .card {
  opacity: 1;
  transform: none;
}

.card-media {
  position: relative;
  margin: 0; /* `figure` default */
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #120b22;
}

.card-media.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 16 / 11;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.07);
  transition: transform 1.5s var(--ease);
}

.chapter.in-view .card-media img {
  transform: scale(1);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(10, 7, 20, 0.62) 100%);
  pointer-events: none;
}

.card-media-tag {
  position: absolute;
  left: 15px;
  top: 15px;
  z-index: 2;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 7, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ------------------------------------------------------------
   PHOTOS — polaroid / film-frame look (every single photo)
   Each photo sits on a warm paper mat inside a fixed area that
   depends on its orientation: portraits use a 3:4 frame and
   landscapes a 4:3 frame. The photo is centre-cropped (object-fit:
   cover) to fill its frame, so every card lines up consistently.
   ------------------------------------------------------------ */
.card-media:not(.grid) {
  aspect-ratio: auto;
  background: transparent;
  padding: 14px 14px 0;
}

.card-media:not(.grid)::after {
  background: none;
}

.card-media:not(.grid) img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4; /* default (portrait) before the orientation loads */
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.55);
  transform: none;
}

.card-media:not(.grid) img.is-portrait {
  aspect-ratio: 3 / 4;
}

.card-media:not(.grid) img.is-landscape {
  aspect-ratio: 4 / 3;
}

.card-media:not(.grid) img.is-square {
  aspect-ratio: 1 / 1;
}

.card-media:not(.grid) .card-media-tag {
  display: none;
}

.card-body {
  padding: 18px 22px 20px;
}

.card-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.8rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.card-eyebrow.center {
  justify-content: center;
}

.card-eyebrow .dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

/* Ink-on-paper for the polaroid card (the finale keeps its amber accent). */
.card .card-eyebrow {
  color: var(--polaroid-accent);
}

.card .card-eyebrow .dot {
  background: var(--polaroid-accent);
  box-shadow: none;
}

.card-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--polaroid-ink);
}

/* ------------------------------------------------------------
   FINALE
   ------------------------------------------------------------ */
.finale {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 6vw;
}

.finale-card {
  width: min(680px, 100%);
  padding: clamp(1.5rem, 4.2vw, 2.9rem);
  text-align: center;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  backdrop-filter: blur(24px) saturate(130%);
  box-shadow:
    0 50px 110px -44px rgba(0, 0, 0, 0.94),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease);
}

.finale.in-view .finale-card {
  opacity: 1;
  transform: none;
}

.finale h2 {
  margin: 0.25em 0 0.24em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  background: linear-gradient(178deg, #ffffff 0%, #ffe4cf 48%, #ffb27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.finale-sub {
  margin: 0 auto 0.5em;
  max-width: 32ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
}

.counter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 2rem;
  margin: 1.6rem 0 1.8rem;
}

.counter .cell {
  min-width: 58px;
}

.counter .num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.counter .unit {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.finale-total {
  margin: 0 auto 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.letter {
  margin: 0 0 1.2rem;
  text-align: left;
}

.letter p {
  margin: 0 0 0.85em;
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--ink-soft);
}

.signoff {
  margin: 0 0 1.5rem;
  text-align: right;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--amber);
}

/* ------------------------------------------------------------
   PHOTO LIGHTBOX
   ------------------------------------------------------------ */
.card-media img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(3, 2, 9, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
  animation: lightbox-in 0.35s var(--ease-soft);
}

.lightbox[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(18, 12, 30, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.lightbox-close:hover {
  background: rgba(255, 178, 122, 0.14);
  border-color: rgba(255, 178, 122, 0.45);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ------------------------------------------------------------
   NOSCRIPT
   ------------------------------------------------------------ */
.noscript {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 100;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(20, 12, 34, 0.95);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .chapter {
    align-items: flex-end;
    justify-content: center;
    padding: 14vh 5vw 9vh;
    padding-right: 5vw;
  }

  .card {
    width: 100%;
    max-width: 520px;
  }

  .finale {
    padding: 12vh 5vw;
  }

  .hud {
    display: none;
  }

  .progress-rail {
    right: 12px;
    height: 22vh;
  }

  /* Move the autoplay control to the top-right on phones so it does not
     sit on top of the bottom-anchored memory cards. */
  .autoplay {
    top: max(16px, env(safe-area-inset-top));
    right: 14px;
    bottom: auto;
    width: 46px;
    height: 46px;
  }
}

/* On wider screens the story is a transparent overlay; let clicks on the
   empty right-hand side fall through to the globe so city points are
   clickable, while the cards themselves stay interactive. Mobile keeps the
   globe inert so native scrolling is never captured. */
@media (min-width: 901px) {
  #globe-stage {
    pointer-events: auto;
  }

  .story,
  .chapter,
  .finale {
    pointer-events: none;
  }

  .chapter .card,
  .finale .finale-card {
    pointer-events: auto;
  }
}

@media (max-width: 560px) {
  .splash {
    padding: 8vh 7vw;
  }

  .splash h1 {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .card-body {
    padding: 15px 16px 18px;
  }

  .card-media:not(.grid) {
    padding: 10px 10px 0;
  }

  .finale {
    padding: 5vh 4vw;
  }

  .finale-card {
    padding: 1.5rem 1.15rem 1.5rem;
  }

  .finale h2 {
    font-size: clamp(1.55rem, 7.4vw, 1.9rem);
  }

  .finale-sub {
    font-size: 0.94rem;
  }

  .counter {
    gap: 0.7rem 1.15rem;
    margin: 1.15rem 0 1.25rem;
  }

  .counter .cell {
    min-width: 48px;
  }

  .counter .num {
    font-size: 1.45rem;
  }

  .letter p {
    font-size: 0.87rem;
    line-height: 1.62;
    margin: 0 0 0.72em;
  }

  .signoff {
    margin: 0 0 1.1rem;
    font-size: 1.05rem;
  }

  .btn-primary {
    padding: 0.95rem 1.8rem;
  }
}

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

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

  .card,
  .finale-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
