@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Oswald:wght@400;500;600;700&family=Courier+Prime:ital@0;1&display=swap');

/* ============================================================
   DAD — "The Dossier": an editorial / magazine layout.
   Fixed side index, oversized section numerals, asymmetric
   left-aligned blocks, mosaic archive, full-bleed finale.
   Charcoal & Ember palette. Shares markup IDs + main.js.
   ============================================================ */

:root {
  --charcoal: #161619;
  --charcoal-2: #202024;
  --charcoal-3: #2A2A30;
  --ember: #E2683C;
  --ember-deep: #C1481F;
  --bronze: #B08D57;
  --bronze-soft: #CBA97A;
  --ink-light: #ECE4D8;
  --muted: #948C82;
  --line: rgba(176, 141, 87, 0.26);
  --shadow: 0 24px 64px -24px rgba(0, 0, 0, 0.8);
  --side-w: 214px;

  --z-petals: 10;
  --z-side: 25;
  --z-progress: 30;
  --z-player: 40;
  --z-modal: 50;
  --z-intro: 60;

  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-cond: 'Oswald', sans-serif;
  --font-letter: 'Courier Prime', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink-light);
  background: var(--charcoal);
  overflow-x: hidden;
}

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

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- progress bar ---------- */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--ember), var(--bronze));
  z-index: var(--z-progress);
}

/* ============================================================
   SIDE INDEX (fixed left rail — desktop only)
   ============================================================ */
#side-index {
  position: fixed;
  top: 0; left: 0;
  width: var(--side-w);
  height: 100vh;
  z-index: var(--z-side);
  display: none;
  flex-direction: column;
  padding: 2rem 1.6rem;
  background: #121215;
  border-right: 1px solid var(--line);
}
.side-brand {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  color: var(--ember);
  text-decoration: none;
  line-height: 1;
}
.side-nav {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.side-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.55rem 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 141, 87, 0.12);
  transition: color 0.2s ease, padding-left 0.2s ease;
  color: var(--muted);
}
.side-nav a:hover { color: var(--ink-light); padding-left: 0.35rem; }
.si-num { font-family: var(--font-cond); font-size: 0.8rem; color: var(--ember); min-width: 1.4rem; }
.si-label { font-family: var(--font-cond); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; }
.side-foot {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* content shifts to make room for the rail on desktop */
@media (min-width: 1040px) {
  #side-index { display: flex; }
  #hero, main, footer { margin-left: var(--side-w); }
}

/* ============================================================
   INTRO GATE
   ============================================================ */
#intro {
  position: fixed;
  inset: 0;
  z-index: var(--z-intro);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(226, 104, 60, 0.22), transparent 55%),
    radial-gradient(ellipse at 70% 85%, rgba(176, 141, 87, 0.16), transparent 55%),
    var(--charcoal);
  transition: opacity 1.2s ease, visibility 1.2s;
}
#intro.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#intro .intro-hint {
  font-family: var(--font-cond);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--bronze-soft);
  margin-bottom: 1.5rem;
}
#intro .intro-name {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 11vw, 7.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-light);
  line-height: 1.02;
  margin-bottom: 2.5rem;
}
#intro .intro-name::after {
  content: "";
  display: block;
  width: 90px; height: 4px;
  margin: 1.2rem auto 0;
  background: linear-gradient(90deg, var(--ember), var(--bronze));
}
.passcode-container { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
#passcode-input {
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-light);
  text-align: center;
  width: 280px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
#passcode-input::placeholder { color: var(--muted); opacity: 0.8; }
#passcode-input:focus { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(226, 104, 60, 0.2); }
#passcode-error { color: var(--ember); font-size: 0.95rem; font-weight: 600; display: none; margin-top: 0.5rem; }

.begin-btn {
  font-family: var(--font-cond);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 2.6rem;
  min-height: 44px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: box-shadow 0.25s ease, filter 0.2s ease;
  box-shadow: 0 10px 30px -10px rgba(226, 104, 60, 0.6);
}
.begin-btn:hover { filter: brightness(1.08); box-shadow: 0 14px 36px -10px rgba(226, 104, 60, 0.75); }
.begin-btn:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }
.begin-btn svg { width: 1.1rem; height: 1.1rem; }

/* ============================================================
   HERO — full-bleed, text pinned bottom-left
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem clamp(1.5rem, 5vw, 5rem);
  background:
    radial-gradient(ellipse at 30% 40%, rgba(226, 104, 60, 0.14), transparent 60%),
    var(--charcoal);
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,22,25,0.4) 0%, rgba(22,22,25,0.65) 100%);
  pointer-events: none;
  z-index: 1;
}
#hero-floating-images { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.floating-img {
  position: absolute;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  border-radius: 3px;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.05);
  transition: opacity 2.5s ease, transform 6s cubic-bezier(0.1, 0.7, 1.0, 0.1);
  box-shadow: 0 12px 34px rgba(0,0,0,0.55);
}
.hero-topbar {
  position: absolute;
  top: 2rem;
  left: clamp(1.5rem, 5vw, 5rem);
  right: clamp(1.5rem, 5vw, 5rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze-soft);
}
.hero-rule { flex: 1; height: 1px; background: var(--line); }
.hero-content { position: relative; z-index: 2; text-align: left; }
#hero .hero-greeting {
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze-soft);
}
#hero .hero-name {
  font-family: var(--font-display);
  font-size: clamp(5rem, 24vw, 20rem);
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ember);
  line-height: 0.86;
  margin: 0.5rem 0 1rem;
  text-shadow: 0 8px 50px rgba(226, 104, 60, 0.3);
}
#hero .hero-date {
  font-family: var(--font-cond);
  font-size: 1rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 3px solid var(--ember);
  padding-left: 1rem;
}
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.5rem, 5vw, 5rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ember);
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue svg { width: 1.5rem; height: 1.5rem; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ============================================================
   CHAPTER SHELL — editorial heads with giant numerals
   ============================================================ */
.chapter {
  max-width: 72rem;
  margin: 0 auto;
  padding: 6rem clamp(1.5rem, 5vw, 4rem);
  position: relative;
}
.ch-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 3.5rem;
}
.ch-head.centered { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.ch-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px var(--ember);
  text-stroke: 2px var(--ember);
  opacity: 0.9;
}
.chapter-label {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.4rem;
}
.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-light);
  line-height: 1.0;
}
.chapter-intro {
  max-width: 40rem;
  margin: -1.5rem 0 3rem;
  color: var(--muted);
  font-size: 1.2rem;
}
.chapter-intro.left { text-align: left; }
.chapter-intro:not(.left) { text-align: center; margin-left: auto; margin-right: auto; }

/* ============================================================
   PHOTO FRAMES (shared with timeline / opening)
   ============================================================ */
.photo-frame {
  background: var(--charcoal-2);
  padding: 0.6rem 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow);
  display: inline-block;
}
.photo-frame .photo,
.finale-media .photo,
.gallery-item .photo {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background:
    radial-gradient(circle at 40% 30%, rgba(226,104,60,0.16), transparent 60%),
    linear-gradient(140deg, #2c2c31, #1d1d21 55%, #33291d);
}
.photo-frame .photo::after,
.finale-media .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08d57' stroke-width='1' opacity='0.5'%3E%3Cpath d='M12 3l2.5 5.3L20 9l-4 4 1 6-5-2.8L7 19l1-6-4-4 5.5-0.7z'/%3E%3C/svg%3E") center / 20% no-repeat;
  opacity: 0.4;
  pointer-events: none;
}
.photo-frame .photo.loaded::after,
.finale-media .photo.loaded::after { display: none; }
.photo-frame .photo img,
.finale-media .photo img,
.gallery-item .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.photo-frame .photo.loaded img,
.finale-media .photo.loaded img,
.gallery-item .photo.loaded img { opacity: 1; }
.photo-frame figcaption {
  font-family: var(--font-cond);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze-soft);
  text-align: left;
  padding: 0.7rem 0.2rem 0;
}

/* ---------- 01 · Opening (asymmetric split + drop cap) ---------- */
.opening-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
.opening-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--ink-light);
}
.opening-text::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 5.4rem;
  line-height: 0.7;
  padding: 0.4rem 0.8rem 0 0;
  color: var(--ember);
}
.opening-portrait { width: 100%; }
.opening-portrait .photo { aspect-ratio: 4 / 5; }
@media (min-width: 820px) {
  .opening-layout { grid-template-columns: 1.25fr 0.75fr; gap: 3.5rem; }
  .opening-portrait { margin-top: -3.5rem; }
}

/* ============================================================
   02 · THE YEARS — left-rail timeline
   ============================================================ */
.timeline {
  position: relative;
  max-width: 60rem;
  margin: 0;
  padding-left: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 0.5rem; bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--ember), var(--bronze), transparent);
}
.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: 3rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.5rem; top: 0.9rem;
  width: 15px; height: 15px;
  transform: translateX(1px) rotate(45deg);
  background: var(--ember);
  border: 3px solid var(--charcoal);
  box-shadow: 0 0 0 2px var(--bronze);
}
.timeline-item .photo-frame { width: 100%; display: block; }
.timeline-item .photo { aspect-ratio: 16 / 9; }
@media (min-width: 720px) {
  .timeline-item { width: 78%; }
  .timeline-item:nth-child(even) { margin-left: 22%; }
}

/* ============================================================
   03 · THE RECORD — reasons ledger (numbered grid)
   ============================================================ */
.flame-btn { display: none; }
.reasons-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.reasons-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.4rem 0.5rem;
  font-size: 1.2rem;
  color: var(--ink-light);
  border-bottom: 1px solid var(--line);
}
.reasons-list li .num {
  font-family: var(--font-display);
  color: var(--ember);
  font-size: 2rem;
  line-height: 0.9;
  min-width: 2.4rem;
}
@media (min-width: 760px) {
  .reasons-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

/* ============================================================
   04 · THE WISH — cake panel
   ============================================================ */
.cake-wrap {
  text-align: center;
  max-width: 60rem;
  margin: 0 auto;
  padding: 20rem 2rem 2rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: 
    linear-gradient(rgba(32, 32, 36, 0.7), rgba(32, 32, 36, 0.7)),
    url("https://pub-7ef70e8c09e94c9695352eba114906ec.r2.dev/dad/kiss.webp") center 30% / cover no-repeat;
}
.cake-svg { width: min(22rem, 82vw); height: auto; margin: 0 auto; display: block; }
#cake > ellipse { fill: #101012; }
#cake > rect { fill: var(--charcoal-3); }
#cake > path { fill: var(--bronze); }
#candles > g:nth-child(odd) rect { fill: var(--ember); }
#candles > g:nth-child(even) rect { fill: var(--bronze); }
.candle-flame ellipse:first-child { fill: var(--ember); }
.candle-flame ellipse:last-child { fill: #FFDCA8; }
.candle-flame { cursor: pointer; transform-origin: center bottom; animation: flicker 1.6s ease-in-out infinite alternate; }
.candle-flame:hover { filter: brightness(1.15); }
.candle-flame.out { animation: none; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
@keyframes flicker {
  0%   { transform: scaleY(1) skewX(0deg); }
  40%  { transform: scaleY(0.92) skewX(2deg); }
  100% { transform: scaleY(1.06) skewX(-2deg); }
}
.cake-message {
  max-width: 30rem;
  margin: 1.8rem auto 0;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--bronze-soft);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.cake-message.shown, .cake-message.visible { opacity: 1; transform: translateY(0); }

.wish-video {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  filter: contrast(1.05);
}

/* ============================================================
   05 · THE ARCHIVE — asymmetric mosaic
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: 0.9rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--charcoal-2);
  aspect-ratio: 1 / 1;
}
.gallery-item .photo { width: 100%; height: 100%; border-radius: 3px; }
.gallery-item img { transition: transform 0.6s ease, filter 0.6s ease; filter: grayscale(0.25); }
.gallery-item:hover img { transform: scale(1.06); filter: grayscale(0); }
/* feature a few tiles for an editorial rhythm */
.gallery-item:nth-child(1) { grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery-item:nth-child(6) { grid-row: span 2; aspect-ratio: auto; }
.gallery-item:nth-child(11) { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .gallery-item:nth-child(6) { grid-column: span 2; aspect-ratio: 16 / 10; }
  .gallery-item:nth-child(11) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* ============================================================
   06 · THE LETTER — full-width band
   ============================================================ */
.letter-chapter { padding: 0; }
.letter-band {
  background:
    linear-gradient(180deg, #121215, #1b1b1f);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5rem clamp(1.5rem, 5vw, 4rem);
}
.letter-band .ch-head { max-width: 46rem; margin: 0 auto 2.5rem; }
.video-container { max-width: 46rem; margin: 0 auto; }
.letter-paper {
  max-width: 46rem;
  margin: 0 auto;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 5vw, 3.4rem);
  position: relative;
}
.letter-paper::before {
  content: "\201C";
  position: absolute;
  top: -0.6rem; left: 1.4rem;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--ember);
  opacity: 0.55;
}
#letter-text {
  font-family: var(--font-letter);
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--ink-light);
  white-space: pre-wrap;
  min-height: 12rem;
}
.caret { display: inline-block; width: 3px; background: var(--ember); animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   07 · LEGACY — full-bleed finale
   ============================================================ */
#finale {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.finale-media { position: absolute; inset: 0; }
.finale-media .photo { width: 100%; height: 100%; border-radius: 0; }
.finale-media .photo img { filter: grayscale(0.15) contrast(1.05); }
#finale::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,22,25,0.2) 0%, rgba(22,22,25,0.55) 45%, rgba(22,22,25,0.92) 100%);
  z-index: 1;
}
.finale-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem) 5rem;
  text-align: left;
}
.finale-overlay .chapter-title { margin-bottom: 0.6rem; }
.finale-caption-line {
  font-family: var(--font-cond);
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze-soft);
  margin-bottom: 1.4rem;
}
.finale-text { max-width: 40rem; font-size: 1.2rem; color: var(--ink-light); margin-bottom: 2rem; }

@media (max-width: 768px) {
  #finale {
    min-height: auto;
    flex-direction: column;
    padding-top: 4rem;
  }
  .finale-media {
    position: relative;
    width: 85%;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  .finale-media .photo video {
    position: relative !important;
    height: auto !important;
    border-radius: 8px;
  }
  #finale::after {
    display: none;
  }
  .finale-overlay {
    padding-top: 2.5rem;
    text-align: center;
  }
}

.confetti-btn {
  font-family: var(--font-cond);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.6rem;
  min-height: 44px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--ember) 0%, var(--ember-deep) 100%);
  box-shadow: 0 12px 34px -10px rgba(226, 104, 60, 0.65);
  transition: box-shadow 0.25s ease, filter 0.25s ease;
}
.confetti-btn:hover { filter: brightness(1.08); box-shadow: 0 16px 40px -10px rgba(226, 104, 60, 0.8); }
.confetti-btn:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }

/* ============================================================
   FLOATING CONTROLS / PLAYER
   ============================================================ */
#floating-controls {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: var(--z-player);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
#player, #auto-scroll-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--bronze);
  background: var(--charcoal-2);
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  color: var(--bronze-soft);
}
#player:hover, #auto-scroll-btn:hover { border-color: var(--ember); box-shadow: 0 14px 32px -8px rgba(226, 104, 60, 0.5); }
#player:focus-visible, #auto-scroll-btn:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
#player .vinyl { width: 34px; height: 34px; }
#player .vinyl circle:nth-of-type(1) { fill: #101012; }
#player .vinyl circle:nth-of-type(4) { fill: var(--ember); }
#player.playing .vinyl { animation: spin 3.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#auto-scroll-btn svg { width: 24px; height: 24px; }
#auto-scroll-btn.active { background: var(--ember); color: #fff; border-color: var(--ember); }

/* ============================================================
   EASTER-EGG STAR + MODAL
   ============================================================ */
#secret-heart {
  position: fixed;
  left: 0.9rem; bottom: 0.9rem;
  z-index: var(--z-player);
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.32;
  transition: opacity 0.3s ease;
}
#secret-heart:hover, #secret-heart:focus-visible { opacity: 1; outline: none; }
#secret-heart svg { width: 1.3rem; height: 1.3rem; color: var(--bronze); }

#modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(4px);
}
#modal.open { display: flex; }
.modal-card {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 26rem;
  padding: 2.4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.modal-card p { font-family: var(--font-body); font-size: 1.2rem; color: var(--ink-light); margin-bottom: 1.5rem; }
.modal-card button {
  font-family: var(--font-cond);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1.8rem;
  min-height: 44px;
  border-radius: 4px;
  border: none;
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  color: #fff;
  cursor: pointer;
}
.modal-card button:hover { filter: brightness(1.08); }
.modal-card button:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }

/* ---------- petals & confetti canvases ---------- */
#petals, #confetti { position: fixed; inset: 0; pointer-events: none; }
#petals { z-index: var(--z-petals); }
#confetti { z-index: var(--z-modal); }

/* ---------- footer ---------- */
footer {
  text-align: left;
  padding: 3rem clamp(1.5rem, 5vw, 4rem) 6rem;
  color: var(--muted);
  font-size: 1rem;
  border-top: 1px solid var(--line);
}
footer .script {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  color: var(--ember);
  display: block;
  margin-bottom: 0.4rem;
}

/* ---------- star cursor ---------- */
body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.5 5.3L20 9l-4 4 1 6-5-2.8L7 19l1-6-4-4 5.5-0.7z' fill='%23B08D57' stroke='%23161619' stroke-width='1.4'/%3E%3C/svg%3E") 12 11, auto;
}
a, button, [role="button"], .candle-flame, .gallery-item {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.5 5.3L20 9l-4 4 1 6-5-2.8L7 19l1-6-4-4 5.5-0.7z' fill='%23E2683C' stroke='%23FFFFFF' stroke-width='1.4'/%3E%3C/svg%3E") 14 13, pointer !important;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue, .candle-flame, #player.playing .vinyl, .caret { animation: none; }
}
