/* ============================================================================
   Twilight Garden — styles
   (You don't need to edit this. All your content lives in config.js.)
   ========================================================================== */

:root {
  /* "the lakes" — dusk over still water, wisteria */
  --night-deep: #100f22;   /* high dusk sky */
  --night:      #201638;   /* mid sky violet (warmed toward pink) */
  --night-soft: #302248;   /* low sky, near the fells */
  --plum:       #3a2854;   /* horizon haze */
  --plum-soft:  #574073;   /* lifted violet for surfaces */

  --lake:       #11121f;   /* deep still water */
  --lake-soft:  #1b1c32;   /* nearer water */

  --wisteria:      #c5a2dd;
  --wisteria-deep: #7d5aa6;

  --moon:       #f1ead9;
  --moon-glow:  #e7dcc0;
  --lantern:    #f3d49b;   /* warm reflected lights / fireflies */
  --gold:       #e6c79c;   /* dusty lantern gold (alias for warm accents) */
  --gold-bright:#f4ecd8;   /* moonlit ivory (alias for bright text accents) */

  --rose:       #b87c7c;   /* dusty rose */
  --rose-deep:  #9a6262;
  --rose-soft:  #d8a8a8;

  --mist:       #cfd6e2;

  --text:       #ece7f6;
  --text-dim:   rgba(236, 231, 246, 0.62);
  --ink:        #2c2746;   /* dark ink on pale paper */
  --paper:      #f4eede;   /* aged letter paper */

  --font-display: "Fraunces", serif;
  --font-body:    "EB Garamond", serif;
  --font-type:    var(--font-display);
  --font-hand:    "adobe-handwriting-ernie", "Segoe Script", cursive;

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.cinema__slide:focus, .finale__button:focus, .lightbox__dialog:focus { outline: none; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body.no-scroll { overflow: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--night-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ----------------------------------------------------------------------------
   Sky / atmosphere
---------------------------------------------------------------------------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.sky__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 78% 6%, rgba(196, 140, 208, 0.40) 0%, transparent 52%),
    radial-gradient(110% 55% at 22% 58%, rgba(184, 124, 124, 0.16) 0%, transparent 55%),
    linear-gradient(180deg,
      var(--night-deep) 0%,
      var(--night) 28%,
      var(--night-soft) 52%,
      var(--plum) 62%,
      var(--lake-soft) 64%,
      var(--lake) 100%);
}

#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Moon ---------------------------------------------------------------------- */
.moon {
  position: absolute;
  top: 7vh;
  right: 9vw;
  width: 130px;
  height: 130px;
  will-change: transform;
  animation: moonFloat 14s ease-in-out infinite;
}
.moon__body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, #fdfaf0 0%, var(--moon) 55%, #ddd3bd 100%);
  box-shadow:
    0 0 42px 10px rgba(241, 234, 217, 0.45),
    inset -14px -10px 26px rgba(120, 116, 140, 0.30);
}
.moon__halo {
  position: absolute;
  inset: -60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 224, 236, 0.28) 0%, rgba(182, 161, 224, 0.12) 38%, transparent 66%);
  animation: haloPulse 7s ease-in-out infinite;
}
.moon__crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(120, 116, 140, 0.22);
  box-shadow: inset 1px 1px 2px rgba(80, 78, 100, 0.4);
}
.moon__crater--1 { width: 22px; height: 22px; top: 28%; left: 30%; }
.moon__crater--2 { width: 14px; height: 14px; top: 56%; left: 58%; }
.moon__crater--3 { width: 9px;  height: 9px;  top: 38%; left: 64%; }

/* Fells (Lake District ridgelines) ----------------------------------------- */
.fells {
  position: absolute;
  left: 0; right: 0;
  bottom: 36%;
  width: 100%;
  height: 26%;
  pointer-events: none;
}
.fells__far  { fill: #221f40; opacity: 0.85; }
.fells__near { fill: #161427; }

/* The lake ------------------------------------------------------------------ */
.lake {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  overflow: hidden;
  background: linear-gradient(180deg,
    rgba(74, 62, 98, 0.5) 0%,
    var(--lake-soft) 24%,
    var(--lake) 100%);
}
.lake::before { /* horizon reflected onto the water */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 130px;
  background: linear-gradient(180deg,
    rgba(184, 124, 124, 0.16) 0%,
    rgba(176, 131, 216, 0.10) 45%,
    transparent 100%);
  filter: blur(10px);
}
.lake__moon { /* the moon's reflection — a shimmering moon-path on the water */
  position: absolute;
  top: 0;
  right: 9vw;
  width: 116px;
  height: 86%;
  transform: translateX(16px);
  background: radial-gradient(48% 64% at 50% 0%,
    rgba(241, 234, 217, 0.5) 0%,
    rgba(241, 234, 217, 0.16) 42%,
    transparent 80%);
  filter: blur(4px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.55) 50%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.55) 50%, transparent 100%);
  animation: reflWobble 9s ease-in-out infinite;
}
.lake__moon::before { /* broken light bands drifting on the surface */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg,
    transparent 0 6px,
    rgba(241, 234, 217, 0.22) 7px 9px,
    transparent 10px 12px);
  mix-blend-mode: screen;
  filter: blur(1.4px);
  animation: reflRipple 5s linear infinite;
}

/* Wisteria (cascading from the top) ---------------------------------------- */
.wisteria { position: absolute; inset: 0 0 auto 0; height: 0; pointer-events: none; }
.vine {
  position: absolute;
  top: 0;
  width: 16px;
  transform-origin: top center;
  animation: sway 7s ease-in-out infinite;
}
.vine__stem {
  position: absolute;
  top: 0; left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(var(--wisteria-deep), rgba(111, 93, 166, 0.2));
}
.bloom {
  position: absolute;
  left: 50%;
  width: 13px; height: 13px;
  transform: translateX(-50%);
  border-radius: 60% 60% 70% 70%;
  background: radial-gradient(circle at 40% 30%, var(--wisteria), var(--wisteria-deep));
  box-shadow: 0 0 6px rgba(182, 161, 224, 0.4);
  opacity: 0.92;
}

/* Petals (now drifting wisteria blossoms) ---------------------------------- */
.petals { position: absolute; inset: 0; pointer-events: none; }
.petal {
  position: absolute;
  top: -8vh;
  background: radial-gradient(circle at 40% 30%, var(--wisteria), var(--wisteria-deep));
  border-radius: 60% 60% 70% 70%;
  opacity: 0.8;
  will-change: transform;
  animation-name: petalFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Fireflies ----------------------------------------------------------------- */
.fireflies { position: absolute; inset: 0; pointer-events: none; }
.firefly {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--lantern);
  box-shadow: 0 0 8px 2px rgba(243, 212, 155, 0.8);
  will-change: transform, opacity;
  animation: flit linear infinite, glow 3s ease-in-out infinite;
}

/* ----------------------------------------------------------------------------
   Layout shell
---------------------------------------------------------------------------- */
#app { position: relative; z-index: 1; }

section {
  position: relative;
  padding: 12vh 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-type);
  font-size: clamp(0.72rem, 2.6vw, 0.92rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--wisteria);
}

/* Scroll-reveal: hidden until they enter the viewport ---------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}
.reveal.in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------------------
   Opening / hero
---------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.7rem, 10.5vw, 7rem);
  line-height: 0.98;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #fffdf6 0%, var(--moon) 50%, #d6cbb2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px rgba(241, 234, 217, 0.22);
}
.hero__names {
  font-family: var(--font-hand);
  font-size: clamp(1.9rem, 6vw, 3rem);
  color: var(--rose-soft);
  margin-top: 0.4rem;
}
.hero__subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  color: var(--text-dim);
  max-width: 34ch;
  margin-top: 1.2rem;
}
.scroll-cue {
  margin-top: 3.5rem;
  font-family: var(--font-type);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scroll-cue__arrow {
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  animation: scrollPulse 2.4s ease-in-out infinite;
}
.scroll-cue__arrow::after {
  content: "";
  position: absolute; bottom: 0; left: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* Entrance animations for hero ------------------------------------------- */
.rise { opacity: 0; transform: translateY(26px); animation: rise 1.1s var(--ease-soft) forwards; }
.d1 { animation-delay: 0.2s; }
.d2 { animation-delay: 0.5s; }
.d3 { animation-delay: 0.85s; }
.d4 { animation-delay: 1.2s; }
.d5 { animation-delay: 1.7s; }

/* ----------------------------------------------------------------------------
   Cinematic pinned moments — one framed photo holds the screen and crossfades
   into the next as you scroll; progress shown as glowing fairy-light bulbs.
---------------------------------------------------------------------------- */
.cinema {
  position: relative;
  width: 100%;
  padding: 0;
  display: block;
}
.cinema__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.cinema__heading {
  position: absolute;
  top: clamp(1.2rem, 5vh, 3rem);
  left: 0; right: 0;
  width: fit-content;
  max-width: 90vw;
  margin-inline: auto;
  padding: 0.4rem 1.6rem;
  border-radius: 999px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 600;
  color: var(--gold-bright);
  background: rgba(16, 15, 34, 0.22);
  border: 1px solid rgba(244, 236, 216, 0.10);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
          backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 8px 30px rgba(11, 7, 32, 0.28);
  z-index: 3;
  pointer-events: none;
}

.cinema__slides {
  position: relative;
  width: min(86vw, 620px);
  height: 100%;
}
.cinema__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  opacity: 0;
  cursor: pointer;
  will-change: opacity;
}
.cinema__media {
  position: relative;
  width: 100%;
  max-width: min(560px, 74svh);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(182, 161, 224, 0.28);
  background:
    repeating-linear-gradient(45deg, rgba(246,168,196,0.10) 0 12px, rgba(255,215,154,0.08) 12px 24px),
    linear-gradient(160deg, var(--plum-soft), var(--night-soft));
  box-shadow: 0 30px 80px rgba(11, 7, 32, 0.6), 0 0 60px rgba(255, 215, 154, 0.08);
  display: grid;
  place-items: center;
  will-change: transform;
}
.cinema__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: kenburns 20s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }

.cinema__text {
  text-align: center;
  max-width: 46ch;
  will-change: transform, opacity;
}
.cinema__date {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--rose-soft);
}
.cinema__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: var(--gold-bright);
  line-height: 1.1;
  margin-top: 0.15rem;
}
.cinema__caption {
  color: var(--text);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.card__placeholder {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 1rem;
}
.card__placeholder .ph-heart { font-size: 2rem; display: block; margin-bottom: 0.4rem; filter: drop-shadow(0 0 8px rgba(246,168,196,0.6)); }

.cinema__rail {
  position: absolute;
  bottom: clamp(1.4rem, 4.5vh, 2.6rem);
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  z-index: 3;
}
.cinema__dot {
  width: 12px; height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at 40% 35%, #fffdf6, var(--gold) 60%, #d8a24f 100%);
  opacity: 0.32;
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft), box-shadow 0.4s ease;
}
.cinema__dot.is-active {
  opacity: 1;
  transform: scale(1.25);
  box-shadow: 0 0 14px 4px rgba(255, 215, 154, 0.75), 0 0 30px 8px rgba(255, 215, 154, 0.35);
}
.cinema__dot:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--gold); }

/* ----------------------------------------------------------------------------
   Notes — same pinned cinematic treatment, each note on its own letter card
---------------------------------------------------------------------------- */
.cinema__note {
  max-width: min(86vw, 560px);
  background: linear-gradient(160deg, var(--paper), #ece3cf);
  color: var(--ink);
  border-radius: 20px;
  padding: clamp(1.8rem, 5vw, 3rem);
  box-shadow: 0 30px 80px rgba(11, 7, 32, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.cinema__note .cinema__date {
  color: var(--rose-deep);
  font-size: 1.35rem;
}
.cinema__note-msg {
  font-family: var(--font-hand);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 0.5rem 0 0;
}
.cinema__signoff {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--rose-deep);
  text-align: right;
  margin-top: 1.1rem;
}

/* ----------------------------------------------------------------------------
   Finale
---------------------------------------------------------------------------- */
.finale {
  min-height: 92vh;
  justify-content: center;
  text-align: center;
}
.finale__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.finale__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 1;
  background: linear-gradient(180deg, #fffdf8, var(--rose-soft) 60%, var(--rose));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(246,168,196,0.3);
}
.finale__message {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  color: var(--text);
  max-width: 32ch;
  margin: 0.6rem 0 2rem;
}
.finale__button {
  font-family: var(--font-type);
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #241f3e;
  background: linear-gradient(160deg, var(--wisteria), var(--rose));
  border: none;
  border-radius: 999px;
  padding: 1rem 2.4rem;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(182, 161, 224, 0.42);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s ease;
}
.finale__button:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 44px rgba(182, 161, 224, 0.6); }
.finale__button:active { transform: translateY(0) scale(0.98); }

.finale__signoff {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--rose-soft);
  margin-top: 2.5rem;
  opacity: 0;
  transition: opacity 1s ease;
}
.finale__signoff.show { opacity: 1; }

/* ----------------------------------------------------------------------------
   Heart burst
---------------------------------------------------------------------------- */
.hearts-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}
.heart {
  position: absolute;
  bottom: -40px;
  font-size: 24px;
  will-change: transform, opacity;
  animation: floatHeart var(--dur, 5s) ease-in forwards;
}

/* ----------------------------------------------------------------------------
   Photo popup (lightbox)
---------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 5vh 1.2rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.lightbox.open { visibility: visible; opacity: 1; transition: opacity 0.4s ease; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 22, 0.72);
  backdrop-filter: blur(8px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  background: linear-gradient(165deg, rgba(60, 40, 112, 0.92), rgba(22, 14, 58, 0.96));
  border: 1px solid rgba(255, 215, 154, 0.28);
  border-radius: 24px;
  padding: 1.1rem 1.1rem 1.8rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 0.5s var(--ease-soft), opacity 0.5s ease;
}
.lightbox.open .lightbox__dialog { transform: none; opacity: 1; }
.lightbox__dialog:focus { outline: none; }

.lightbox__frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(246,168,196,0.10) 0 14px, rgba(255,215,154,0.08) 14px 28px),
    linear-gradient(160deg, var(--plum-soft), var(--night-soft));
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
}
.lightbox__frame img { width: 100%; height: 100%; object-fit: contain; background: #0b0720; }

.lightbox__date {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--rose);
  margin-top: 0.6rem;
}
.lightbox__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--gold-bright);
  line-height: 1.1;
}
.lightbox__desc {
  color: var(--text);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0.6rem auto 0;
}
.lightbox__exit {
  margin-top: 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ----------------------------------------------------------------------------
   Music toggle
---------------------------------------------------------------------------- */
.music-toggle {
  position: fixed;
  bottom: 1.2rem; right: 1.2rem;
  z-index: 60;
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(22,14,58,0.7);
  border: 1px solid rgba(255,215,154,0.3);
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-soft);
}
.music-toggle:hover { transform: scale(1.05); }
.music-toggle__icon { font-size: 1rem; }
.music-toggle.playing .music-toggle__icon { animation: spin 3s linear infinite; }

/* ----------------------------------------------------------------------------
   Keyframes
---------------------------------------------------------------------------- */
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes moonFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes haloPulse { 0%,100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes reflWobble {
  0%,100% { opacity: 0.8; transform: translateX(16px) scaleX(1); }
  50%     { opacity: 1;   transform: translateX(11px) scaleX(1.08); }
}
@keyframes reflRipple {
  from { background-position-y: 0; }
  to   { background-position-y: 24px; }
}
@keyframes sway { 0%,100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes flit { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(var(--fx, 24px), var(--fy, -18px)); } }
@keyframes glow { 0%,100% { opacity: 0.2; } 50% { opacity: 1; } }
@keyframes bulbGlow {
  0%,100% { box-shadow: 0 0 14px 4px rgba(255,215,154,0.75), 0 0 30px 8px rgba(255,215,154,0.35); }
  50%     { box-shadow: 0 0 20px 6px rgba(255,215,154,0.95), 0 0 44px 12px rgba(255,215,154,0.5); }
}
@keyframes scrollPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes petalFall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.85; }
  90%  { opacity: 0.85; }
  100% { transform: translate(var(--drift, 40px), 112vh) rotate(540deg); opacity: 0; }
}

@keyframes floatHeart {
  0%   { transform: translate(0,0) scale(0.4) rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translate(var(--dx, 0), var(--dy, -90vh)) scale(var(--scale,1)) rotate(var(--rot,40deg)); opacity: 0; }
}

/* ----------------------------------------------------------------------------
   Responsive — tighten the cinema on small screens
---------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .cinema__slides { width: 86vw; }
  .cinema__caption { font-size: 0.98rem; }
  .cinema__date { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
