/* site/assets/css/main.css
   Design system for 20wonderfulyears.com
   Palette: deep midnight plum + champagne gold + soft blush.
   Type: Cormorant Garamond (display) / Jost (body). */

:root {
  --bg: #16101d;
  --bg-2: #1f1528;
  --bg-3: #2a1c36;
  --ink: #f3ecdf;
  --ink-dim: #c9bfae;
  --gold: #d8b46a;
  --gold-bright: #f0d59a;
  --blush: #e8a0b4;
  --rose: #b95d7c;
  --card: #241831;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --nav-h: 64px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

a {
  color: var(--gold-bright);
  text-decoration: none;
}
a:hover {
  color: #fff;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

::selection {
  background: var(--rose);
  color: #fff;
}

/* ------------------------------------------------------------------ nav */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  z-index: 100;
  background: linear-gradient(rgba(18, 12, 25, 0.92), rgba(18, 12, 25, 0.75));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216, 180, 106, 0.15);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
}
.nav-brand .amp {
  color: var(--gold);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.8rem);
  align-items: center;
}
.nav-links a {
  color: var(--ink-dim);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.4rem 0.15rem;
  border-bottom: 1px solid transparent;
  transition:
    color 0.25s,
    border-color 0.25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.4rem;
}

/* music button lives in nav */
.music-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(216, 180, 106, 0.12);
  border: 1px solid rgba(216, 180, 106, 0.4);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}
.music-btn:hover {
  background: rgba(216, 180, 106, 0.25);
}
.music-btn .bars {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
  height: 12px;
}
.music-btn .bars span {
  width: 2.5px;
  background: var(--gold);
  height: 4px;
  border-radius: 2px;
}
.music-btn.playing .bars span {
  animation: equalize 1s ease-in-out infinite;
}
.music-btn.playing .bars span:nth-child(2) {
  animation-delay: 0.2s;
}
.music-btn.playing .bars span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes equalize {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 12px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(22, 16, 29, 0.97);
    padding: 1.4rem 2rem 2rem;
    border-radius: 0 0 0 var(--radius);
    border: 1px solid rgba(216, 180, 106, 0.15);
    border-top: 0;
    transform: translateX(110%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: translateX(0);
  }
}

main {
  padding-top: var(--nav-h);
}

/* --------------------------------------------------------------- footer */
.site-footer {
  text-align: center;
  padding: 4rem 1rem 3rem;
  color: var(--ink-dim);
  font-size: 0.85rem;
}
.site-footer .hearts {
  color: var(--rose);
  letter-spacing: 0.4em;
}
.site-footer .sig {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 0.6rem;
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  padding: clamp(2rem, 6vw, 5rem) 1rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 30%;
  filter: saturate(0.9);
  animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      ellipse at 50% 42%,
      rgba(22, 16, 29, 0.42) 0%,
      rgba(22, 16, 29, 0.28) 45%,
      rgba(22, 16, 29, 0.62) 80%,
      var(--bg) 100%
    ),
    linear-gradient(rgba(22, 16, 29, 0.18), rgba(22, 16, 29, 0.3));
}
.hero .years,
.hero .names,
.hero .eyebrow,
.hero .date-line {
  text-shadow: 0 2px 24px rgba(10, 6, 15, 0.85);
}
.hero-inner {
  max-width: 880px;
}
.hero .years {
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 15vw, 9.5rem);
  line-height: 0.95;
  background: linear-gradient(160deg, #fdf3da 20%, var(--gold) 60%, #a4783a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.hero .years small {
  display: block;
  font-size: clamp(1.2rem, 3.4vw, 2rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  -webkit-text-fill-color: var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  margin-top: 0.7rem;
}
.hero .names {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  color: var(--blush);
  margin: 1.2rem 0 0;
}
.hero .date-line {
  color: var(--ink-dim);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-top: 1rem;
}
.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1.4rem;
  animation: bob 2.2s ease-in-out infinite;
  opacity: 0.85;
}
@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

/* ------------------------------------------------------------- sections */
.section {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  position: relative;
}
.section-title {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
}
.section-sub {
  color: var(--ink-dim);
  max-width: 620px;
}
.center {
  text-align: center;
}
.center .section-sub {
  margin-inline: auto;
}

.divider {
  width: 120px;
  height: 1px;
  border: 0;
  margin: 2.4rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
  overflow: visible;
}
.divider::after {
  content: "\2665";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--rose);
  background: var(--bg);
  padding: 0 0.6rem;
  font-size: 0.8rem;
}

/* letter / focal quote */
.love-letter {
  background: var(--card);
  border: 1px solid rgba(216, 180, 106, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 5vw, 3.6rem);
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}
.love-letter::before {
  content: "\201C";
  position: absolute;
  top: -0.35em;
  left: 0.15em;
  font-family: var(--font-display);
  font-size: 7rem;
  color: rgba(216, 180, 106, 0.35);
  line-height: 1;
  pointer-events: none;
}
.love-letter p {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.6vw, 1.55rem);
  line-height: 1.7;
  margin: 0 0 1.2em;
}
.love-letter .sig {
  text-align: right;
  font-style: italic;
  color: var(--gold-bright);
  font-size: 1.35rem;
  margin-bottom: 0;
}

/* nav cards on landing */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.nav-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  display: block;
  isolation: isolate;
}
.nav-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.nav-card:hover img {
  transform: scale(1.07);
}
.nav-card .label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.6rem 1.3rem 1.2rem;
  background: linear-gradient(transparent, rgba(15, 10, 20, 0.92));
  color: var(--ink);
}
.nav-card .label h3 {
  font-size: 1.5rem;
  margin: 0;
  color: #fff;
}
.nav-card .label p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* stats band */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  text-align: center;
  margin-top: 3rem;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--gold-bright);
  line-height: 1;
}
.stat .lbl {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
}

/* --------------------------------------------------------- reveal anim */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-bg {
    animation: none;
  }
}

/* -------------------------------------------------------------- polaroid */
.polaroid {
  background: #f7f1e3;
  padding: 10px 10px 40px;
  border-radius: 4px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  transform: rotate(var(--tilt, -2deg));
  transition: transform 0.4s ease;
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.03);
}
.polaroid img {
  border-radius: 2px;
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}
.polaroid figcaption {
  font-family: "Caveat", cursive;
  color: #4a3b2f;
  text-align: center;
  font-size: 1.15rem;
  margin-top: 8px;
  line-height: 1.2;
}

/* ----------------------------------------------------------- story page */
.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.chapter:nth-child(even) .chapter-media {
  order: 2;
}
.chapter-media {
  position: relative;
}
.chapter-media .polaroid {
  max-width: 420px;
  margin: 0 auto;
}
.chapter-media .polaroid.back {
  position: absolute;
  inset: 8% auto auto 6%;
  width: 55%;
  z-index: -1;
  --tilt: 6deg;
  opacity: 0.9;
}
.chapter-text .year-tag {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--rose);
  letter-spacing: 0.24em;
}
.chapter-text h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
}
.chapter-text p {
  color: var(--ink-dim);
  font-size: 1.05rem;
}
.chapter-text .pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-bright);
  border-left: 2px solid var(--gold);
  padding-left: 1.1rem;
  margin: 1.6rem 0 0;
}
@media (max-width: 820px) {
  .chapter {
    grid-template-columns: 1fr;
  }
  .chapter:nth-child(even) .chapter-media {
    order: 0;
  }
}

/* --------------------------------------------------------- timeline page */
.scrubber-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: linear-gradient(rgba(22, 16, 29, 0.97), rgba(22, 16, 29, 0.88));
  backdrop-filter: blur(10px);
  padding: 1.1rem 0 1.3rem;
  border-bottom: 1px solid rgba(216, 180, 106, 0.18);
}
.scrubber-year {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--gold-bright);
  text-align: center;
  line-height: 1;
}
.scrubber-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.7rem;
}
.scrubber-controls button {
  background: none;
  border: 1px solid rgba(216, 180, 106, 0.45);
  color: var(--gold-bright);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.15rem;
  cursor: pointer;
  flex: none;
  transition: background 0.2s;
}
.scrubber-controls button:hover {
  background: rgba(216, 180, 106, 0.18);
}

input[type="range"].year-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  outline: none;
  cursor: pointer;
}
input[type="range"].year-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4d6, var(--gold) 70%);
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}
input[type="range"].year-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4d6, var(--gold) 70%);
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.year-story {
  max-width: 760px;
  margin: 2.2rem auto 0;
  text-align: center;
}
.year-story h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--blush);
}
.year-story p {
  color: var(--ink-dim);
}

.masonry {
  columns: 4 240px;
  column-gap: 1rem;
  margin-top: 2.4rem;
}
.masonry .tile {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--bg-3);
}
.masonry .tile img {
  width: 100%;
  height: auto;
  /* Cap tall portrait shots so no single tile dominates the column;
     the lightbox still shows the full uncropped photo. */
  max-height: 340px;
  object-fit: cover;
  object-position: center 30%; /* bias toward faces in the upper third */
  transition:
    transform 0.5s ease,
    filter 0.5s;
}
@media (max-width: 640px) {
  /* On phones, drop masonry entirely: a fixed 2-column grid of uniform
     3:4 cropped tiles. Predictable height on every device. */
  .masonry {
    columns: unset;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .masonry .tile {
    margin-bottom: 0;
  }
  .masonry .tile img {
    max-height: none;
    aspect-ratio: 3 / 4;
    height: auto;
  }
}
.masonry .tile:hover img {
  transform: scale(1.05);
  filter: brightness(1.08);
}
.masonry .tile .cap {
  position: absolute;
  inset: auto 0 0 0;
  font-size: 0.78rem;
  padding: 1.6rem 0.7rem 0.55rem;
  background: linear-gradient(transparent, rgba(10, 6, 14, 0.88));
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.35s;
}
.masonry .tile:hover .cap {
  opacity: 1;
}

/* video tiles inside masonry grids */
.masonry .tile.is-video .cap {
  opacity: 1;
}
.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(10, 6, 15, 0.62);
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  pointer-events: none;
  transition:
    transform 0.3s,
    background 0.3s;
}
.play-badge::after {
  content: "";
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.masonry .tile.is-video:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(185, 93, 124, 0.75);
}
.tile .movie-tag {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: rgba(10, 6, 15, 0.7);
  color: var(--gold-bright);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 180, 106, 0.4);
}

/* ---------------------------------------------------------- gallery page */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin: 1.6rem 0 0;
}
.chip {
  background: rgba(216, 180, 106, 0.08);
  border: 1px solid rgba(216, 180, 106, 0.3);
  color: var(--ink-dim);
  border-radius: 999px;
  padding: 0.38rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.22s;
}
.chip:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}
.chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #221607;
  font-weight: 500;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.filter-label {
  width: 100%;
  text-align: center;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--rose);
  margin: 1.1rem 0 0.15rem;
}
.gallery-count {
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin-top: 1.4rem;
  letter-spacing: 0.12em;
}

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 15, 0.94);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2.5rem 1rem 1.5rem;
}
.lightbox.open {
  display: flex;
}
.lightbox img,
.lightbox video {
  max-width: min(94vw, 1300px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
  background: #000;
}
.lightbox .lb-cap {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-bright);
  text-align: center;
}
.lightbox .lb-year {
  color: var(--ink-dim);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox button:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox .lb-close {
  top: 1rem;
  right: 1rem;
}
.lightbox .lb-prev {
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox .lb-next {
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ------------------------------------------------------------ movie page */
.theater {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  background: #0a060f;
  overflow: hidden;
}
.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  z-index: 30;
  background: repeating-linear-gradient(
    90deg,
    #5c0e1e 0 26px,
    #7d1428 26px 44px,
    #48091a 44px 70px
  );
  box-shadow: inset 0 -60px 90px rgba(0, 0, 0, 0.65);
  transition: transform 2.8s cubic-bezier(0.65, 0, 0.25, 1);
}
.curtain.left {
  left: 0;
  transform-origin: left;
}
.curtain.right {
  right: 0;
  transform-origin: right;
}
.theater.open .curtain.left {
  transform: translateX(-96%);
}
.theater.open .curtain.right {
  transform: translateX(96%);
}
.curtain-rod {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(#6a4c22, #3c2a10);
  z-index: 31;
}

.marquee {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 32;
  text-align: center;
  transition: opacity 1.2s ease;
  padding: 1rem;
}
.theater.open .marquee {
  opacity: 0;
  pointer-events: none;
}
.marquee .frame {
  border: 3px double var(--gold);
  border-radius: 14px;
  padding: clamp(1.6rem, 6vw, 3.2rem) clamp(1.8rem, 7vw, 4rem);
  background: rgba(10, 6, 15, 0.72);
  box-shadow: 0 0 60px rgba(216, 180, 106, 0.25);
}
.marquee h1 {
  font-size: clamp(2rem, 7vw, 4rem);
  color: var(--gold-bright);
  text-shadow: 0 0 26px rgba(240, 213, 154, 0.4);
}
.marquee p {
  color: var(--ink-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.marquee .start-btn {
  margin-top: 1.6rem;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  color: #241607;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2.6rem;
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(216, 180, 106, 0.35);
  transition: transform 0.25s;
}
.marquee .start-btn:hover {
  transform: scale(1.05);
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
  display: grid;
  place-items: center;
}
.slide.active {
  opacity: 1;
}
.slide .slide-img {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.slide.kenburns .slide-img {
  animation: kb 9s ease-in-out forwards;
}
@keyframes kb {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}
.slide .slide-cap {
  position: absolute;
  bottom: clamp(3.4rem, 8vh, 5rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 760px);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.2vw, 1.8rem);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
  background: rgba(8, 5, 12, 0.45);
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
  backdrop-filter: blur(3px);
}
.slide .slide-year {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-bright);
  letter-spacing: 0.2em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.movie-controls {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 40;
  opacity: 0.85;
}
.movie-controls button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.movie-controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}
.movie-controls[hidden] {
  display: none;
}

/* --------------------------------------------------------- letters page */
.letter-sheet {
  background: linear-gradient(170deg, #fbf5e6, #f0e6cd);
  color: #37291c;
  border-radius: 6px;
  padding: clamp(1.6rem, 5vw, 3rem);
  box-shadow: var(--shadow);
  font-family: "Caveat", cursive;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.letter-sheet::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(90, 65, 40, 0.35);
  border-radius: 4px;
  pointer-events: none;
}
.letter-sheet .letter-date {
  text-align: right;
  color: #8a6b4a;
  font-size: 1.1rem;
}
.scan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}

/* video shelf */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.video-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(216, 180, 106, 0.16);
}
.video-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #000;
}
.video-card .vc-label {
  padding: 0.8rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.video-card .vc-label strong {
  color: var(--ink);
  font-weight: 500;
  display: block;
}

/* floating hearts canvas */
#hearts-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* util */
.btn-gold {
  display: inline-block;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  color: #241607;
  border-radius: 999px;
  padding: 0.75rem 2.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 500;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  box-shadow: 0 8px 28px rgba(216, 180, 106, 0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  color: #241607;
}
.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(216, 180, 106, 0.5);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 0.75rem 2.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.25s;
}
.btn-ghost:hover {
  background: rgba(216, 180, 106, 0.14);
  color: #fff;
}
