/* =========================================================
   ARMAN & ELEN — Moonshine clone
   Mobile-first; cream + near-black cosmic palette
   ========================================================= */

:root {
  /* palette — matches original Moonshine (cosmic black + cream) */
  --warm-white: #f8f3e8;
  --cream:      #efe5cf;
  --cream-2:    #e9dec6;
  --beige:      #e6d9c0;
  --sand:       #d8cbb0;
  --taupe:      #aaa28e;
  --ink:        #1c1814;        /* readable dark on cream */
  --ink-2:      #2a2520;
  --ink-3:      #423a30;
  --night:      #0a0807;        /* near-black cosmic */
  --night-2:    #07060a;        /* deepest section background */
  --line:       #2a2520;
  --gold:       #b89e74;

  /* type */
  --serif: "Cormorant Garamond","Playfair Display","Noto Serif Armenian",serif;
  --serif-display: "Playfair Display","Cormorant Garamond","Noto Serif Armenian",serif;
  --script: "Great Vibes","Cormorant Garamond",cursive;
  --sans:   "Noto Sans Armenian","Inter",system-ui,-apple-system,sans-serif;

  /* easings & timings */
  --ease-out:    cubic-bezier(.16,.84,.24,1);
  --ease-in-out: cubic-bezier(.65,.05,.36,1);
  --ease-soft:   cubic-bezier(.32,.72,.24,1);

  --reveal-d: 1s;
  --reveal-stag: .12s;
  --letter-d: .85s;
  --letter-stag: .14s;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.locked { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* the whole page sits in a centered "phone frame" on desktop */
.scene {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 720px) {
  body { background: #07060a; }
  .scene { max-width: 540px; box-shadow: 0 0 0 rgba(0,0,0,.55); }
}

/* ---------- reveal utility (used with IntersectionObserver) ---------- */
/* Soft fade-in + slight upward translate. Used by every text element
   (headings, paragraphs, buttons, cards, etc.) tagged with .reveal. */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--reveal-d) var(--ease-out),
    transform var(--reveal-d) var(--ease-out);
  will-change: opacity, transform;
}
.reveal-parent.is-in .reveal,
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-parent.is-in .reveal:nth-child(1)  { transition-delay: calc(var(--reveal-stag) * 0); }
.reveal-parent.is-in .reveal:nth-child(2)  { transition-delay: calc(var(--reveal-stag) * 1); }
.reveal-parent.is-in .reveal:nth-child(3)  { transition-delay: calc(var(--reveal-stag) * 2); }
.reveal-parent.is-in .reveal:nth-child(4)  { transition-delay: calc(var(--reveal-stag) * 3); }
.reveal-parent.is-in .reveal:nth-child(5)  { transition-delay: calc(var(--reveal-stag) * 4); }
.reveal-parent.is-in .reveal:nth-child(6)  { transition-delay: calc(var(--reveal-stag) * 5); }
.reveal-parent.is-in .reveal:nth-child(7)  { transition-delay: calc(var(--reveal-stag) * 6); }
.reveal-parent.is-in .reveal:nth-child(8)  { transition-delay: calc(var(--reveal-stag) * 7); }
.reveal-parent.is-in .reveal:nth-child(9)  { transition-delay: calc(var(--reveal-stag) * 8); }
.reveal-parent.is-in .reveal:nth-child(10) { transition-delay: calc(var(--reveal-stag) * 9); }

/* ---------- per-letter reveal (RSVP heading) ----------
   The .rsvp__head element is split into <span class="letter"> by JS,
   which sets data-split="1" on the heading. While split, the heading
   itself stays visible and each letter fades + lifts in turn.
   Without JS the heading falls back to the normal .reveal animation. */
.rsvp__head[data-split="1"].reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.rsvp__head[data-split="1"] .letter {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(.96);
  transform-origin: 50% 80%;
  transition:
    opacity var(--letter-d) var(--ease-out),
    transform var(--letter-d) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--letter-stag));
  will-change: opacity, transform;
}
.scene--rsvp .reveal-parent.is-in .rsvp__head .letter,
.rsvp.is-in .rsvp__head .letter,
.rsvp__head.is-in .letter {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity .3s linear; transform: none; }
  .rsvp__head .letter { transition: opacity .3s linear; transform: none; }
  .moon--small { animation: none !important; }
}

/* ============================================================
   SHARED — STARFIELD (used by every cosmic section)
   ============================================================ */
.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(140% 100% at 50% 50%, rgba(20,18,16,1) 0%, rgba(10,8,7,1) 60%, rgba(5,4,3,1) 100%);
}
.starfield--soft {
  background:
    radial-gradient(140% 100% at 50% 50%, rgba(18,16,14,1) 0%, rgba(8,7,6,1) 70%, rgba(4,3,2,1) 100%);
}
.starfield__layer {
  position: absolute; inset: 0;
  background-repeat: repeat;
}

.starfield__layer--a {
  background-image:
    radial-gradient(1.6px 1.6px at 20px 30px, rgba(255,250,240,.95), transparent 70%),
    radial-gradient(1.2px 1.2px at 80px 110px, rgba(255,250,240,.75), transparent 70%),
    radial-gradient(2.2px 2.2px at 160px 60px, rgba(255,250,240,1), transparent 70%),
    radial-gradient(1.2px 1.2px at 220px 180px, rgba(255,250,240,.75), transparent 70%),
    radial-gradient(1.4px 1.4px at 290px 90px, rgba(255,250,240,.85), transparent 70%),
    radial-gradient(1.2px 1.2px at 360px 220px, rgba(255,250,240,.65), transparent 70%),
    radial-gradient(2.2px 2.2px at 50px 240px, rgba(255,250,240,1), transparent 70%),
    radial-gradient(1.2px 1.2px at 110px 320px, rgba(255,250,240,.75), transparent 70%),
    radial-gradient(1.6px 1.6px at 250px 360px, rgba(255,250,240,.95), transparent 70%),
    radial-gradient(1px 1px at 30px 410px, rgba(255,250,240,.6), transparent 70%),
    radial-gradient(1.4px 1.4px at 200px 460px, rgba(255,250,240,.85), transparent 70%),
    radial-gradient(1px 1px at 360px 500px, rgba(255,250,240,.55), transparent 70%),

    radial-gradient(1.3px 1.3px at 40px 70px, rgba(255,250,240,.7), transparent 70%),
    radial-gradient(1px 1px at 140px 20px, rgba(255,250,240,.6), transparent 70%),
    radial-gradient(2px 2px at 300px 140px, rgba(255,250,240,.95), transparent 70%),
    radial-gradient(1.2px 1.2px at 180px 260px, rgba(255,250,240,.75), transparent 70%),
    radial-gradient(1px 1px at 330px 300px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.5px 1.5px at 90px 380px, rgba(255,250,240,.85), transparent 70%),
    radial-gradient(1px 1px at 210px 420px, rgba(255,250,240,.6), transparent 70%),
    radial-gradient(2px 2px at 120px 500px, rgba(255,250,240,1), transparent 70%),
    radial-gradient(1.2px 1.2px at 340px 420px, rgba(255,250,240,.7), transparent 70%),
    radial-gradient(1px 1px at 260px 480px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.8px 1.8px at 310px 40px, rgba(255,250,240,.9), transparent 70%),
    radial-gradient(1px 1px at 170px 500px, rgba(255,250,240,.55), transparent 70%);

  background-size: 400px 540px;
  animation: drift 90s linear infinite;
}

.starfield__layer--b {
  background-image:
    radial-gradient(1px 1px at 30px 60px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1px 1px at 120px 30px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(2px 2px at 200px 200px, rgba(255,250,240,.95), transparent 70%),
    radial-gradient(1px 1px at 320px 140px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(1px 1px at 80px 230px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.4px 1.4px at 280px 320px, rgba(255,250,240,.8), transparent 70%),
    radial-gradient(1px 1px at 60px 380px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.4px 1.4px at 240px 470px, rgba(255,250,240,.8), transparent 70%),

    radial-gradient(1px 1px at 50px 120px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.2px 1.2px at 180px 80px, rgba(255,250,240,.7), transparent 70%),
    radial-gradient(1px 1px at 260px 40px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(2px 2px at 100px 260px, rgba(255,250,240,.9), transparent 70%),
    radial-gradient(1px 1px at 340px 260px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(1.3px 1.3px at 200px 360px, rgba(255,250,240,.75), transparent 70%),
    radial-gradient(1px 1px at 120px 440px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.5px 1.5px at 300px 500px, rgba(255,250,240,.85), transparent 70%),

    radial-gradient(1px 1px at 90px 20px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(1.6px 1.6px at 220px 100px, rgba(255,250,240,.85), transparent 70%),
    radial-gradient(1px 1px at 360px 60px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(1.8px 1.8px at 30px 300px, rgba(255,250,240,.9), transparent 70%),
    radial-gradient(1px 1px at 150px 350px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.4px 1.4px at 270px 420px, rgba(255,250,240,.8), transparent 70%),
    radial-gradient(1px 1px at 350px 480px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1px 1px at 200px 520px, rgba(255,250,240,.5), transparent 70%);

  background-size: 360px 520px;
  animation: drift 140s linear infinite reverse;
}

.starfield__layer--c {
  background-image:
    radial-gradient(1.1px 1.1px at 45px 95px, rgba(255,250,240,.6), transparent 70%),
    radial-gradient(1.7px 1.7px at 135px 45px, rgba(255,250,240,.85), transparent 70%),
    radial-gradient(1px 1px at 230px 120px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(2.3px 2.3px at 410px 75px, rgba(255,250,240,1), transparent 70%),
    radial-gradient(1.2px 1.2px at 70px 260px, rgba(255,250,240,.7), transparent 70%),
    radial-gradient(1px 1px at 190px 310px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(1.5px 1.5px at 315px 250px, rgba(255,250,240,.8), transparent 70%),
    radial-gradient(1px 1px at 470px 340px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.9px 1.9px at 120px 430px, rgba(255,250,240,.9), transparent 70%),
    radial-gradient(1.1px 1.1px at 260px 510px, rgba(255,250,240,.6), transparent 70%),
    radial-gradient(1.4px 1.4px at 390px 590px, rgba(255,250,240,.75), transparent 70%),
    radial-gradient(1px 1px at 500px 650px, rgba(255,250,240,.5), transparent 70%),

    radial-gradient(1px 1px at 80px 20px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(1.5px 1.5px at 200px 60px, rgba(255,250,240,.8), transparent 70%),
    radial-gradient(1px 1px at 320px 100px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(2px 2px at 450px 150px, rgba(255,250,240,.95), transparent 70%),
    radial-gradient(1px 1px at 150px 220px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.3px 1.3px at 260px 300px, rgba(255,250,240,.7), transparent 70%),
    radial-gradient(1px 1px at 380px 360px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(1.6px 1.6px at 500px 420px, rgba(255,250,240,.85), transparent 70%),
    radial-gradient(1px 1px at 100px 500px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1px 1px at 300px 580px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(1.4px 1.4px at 420px 640px, rgba(255,250,240,.75), transparent 70%),
    radial-gradient(1px 1px at 520px 700px, rgba(255,250,240,.5), transparent 70%);

  background-size: 520px 700px;
  animation: drift 190s linear infinite;
}

.starfield__layer--d {
  background-image:
    radial-gradient(1px 1px at 25px 150px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(1.3px 1.3px at 95px 55px, rgba(255,250,240,.7), transparent 70%),
    radial-gradient(1px 1px at 175px 190px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(2.1px 2.1px at 265px 85px, rgba(255,250,240,.95), transparent 70%),
    radial-gradient(1px 1px at 355px 170px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.5px 1.5px at 445px 235px, rgba(255,250,240,.8), transparent 70%),
    radial-gradient(1px 1px at 60px 360px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(1.8px 1.8px at 150px 455px, rgba(255,250,240,.85), transparent 70%),
    radial-gradient(1.1px 1.1px at 245px 330px, rgba(255,250,240,.6), transparent 70%),
    radial-gradient(1px 1px at 335px 520px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.4px 1.4px at 425px 410px, rgba(255,250,240,.75), transparent 70%),
    radial-gradient(1px 1px at 515px 610px, rgba(255,250,240,.5), transparent 70%),

    radial-gradient(1px 1px at 70px 40px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(1.4px 1.4px at 180px 80px, rgba(255,250,240,.75), transparent 70%),
    radial-gradient(1px 1px at 300px 120px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(1.8px 1.8px at 420px 160px, rgba(255,250,240,.9), transparent 70%),
    radial-gradient(1px 1px at 120px 260px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.3px 1.3px at 240px 300px, rgba(255,250,240,.7), transparent 70%),
    radial-gradient(1px 1px at 360px 350px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(1.6px 1.6px at 480px 420px, rgba(255,250,240,.85), transparent 70%),
    radial-gradient(1px 1px at 200px 480px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1px 1px at 350px 560px, rgba(255,250,240,.5), transparent 70%),
    radial-gradient(1.4px 1.4px at 460px 620px, rgba(255,250,240,.75), transparent 70%),
    radial-gradient(1px 1px at 520px 700px, rgba(255,250,240,.5), transparent 70%);

  background-size: 560px 680px;
  animation: drift 240s linear infinite reverse;
}
/* .starfield__layer--a {
  background-image:
    radial-gradient(1.6px 1.6px at  20px  30px, rgba(255,250,240,.95), transparent 70%),
    radial-gradient(1.2px 1.2px at  80px 110px, rgba(255,250,240,.75), transparent 70%),
    radial-gradient(2.2px 2.2px at 160px  60px, rgba(255,250,240,1),   transparent 70%),
    radial-gradient(1.2px 1.2px at 220px 180px, rgba(255,250,240,.75), transparent 70%),
    radial-gradient(1.4px 1.4px at 290px  90px, rgba(255,250,240,.85), transparent 70%),
    radial-gradient(1.2px 1.2px at 360px 220px, rgba(255,250,240,.65), transparent 70%),
    radial-gradient(2.2px 2.2px at  50px 240px, rgba(255,250,240,1),   transparent 70%),
    radial-gradient(1.2px 1.2px at 110px 320px, rgba(255,250,240,.75), transparent 70%),
    radial-gradient(1.6px 1.6px at 250px 360px, rgba(255,250,240,.95), transparent 70%),
    radial-gradient(1px 1px       at  30px 410px, rgba(255,250,240,.6),  transparent 70%),
    radial-gradient(1.4px 1.4px   at 200px 460px, rgba(255,250,240,.85), transparent 70%),
    radial-gradient(1px 1px       at 360px 500px, rgba(255,250,240,.55), transparent 70%);
  background-size: 400px 540px;
  opacity: 1;
  animation: drift 90s linear infinite;
}
.starfield__layer--b {
  background-image:
    radial-gradient(1px 1px       at  30px  60px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1px 1px       at 120px  30px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(2px 2px       at 200px 200px, rgba(255,250,240,.95), transparent 70%),
    radial-gradient(1px 1px       at 320px 140px, rgba(255,250,240,.5),  transparent 70%),
    radial-gradient(1px 1px       at  80px 230px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.4px 1.4px   at 280px 320px, rgba(255,250,240,.8),  transparent 70%),
    radial-gradient(1px 1px       at  60px 380px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.4px 1.4px   at 240px 470px, rgba(255,250,240,.8),  transparent 70%),
    radial-gradient(1px   1px   at  50px 120px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.2px 1.2px at 180px  80px, rgba(255,250,240,.7),  transparent 70%),
    radial-gradient(1px   1px   at 260px  40px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(2px   2px   at 100px 260px, rgba(255,250,240,.9),  transparent 70%),
    radial-gradient(1px   1px   at 340px 260px, rgba(255,250,240,.5),  transparent 70%),
    radial-gradient(1.3px 1.3px at 200px 360px, rgba(255,250,240,.75), transparent 70%),
    radial-gradient(1px   1px   at 120px 440px, rgba(255,250,240,.55), transparent 70%),
    radial-gradient(1.5px 1.5px at 300px 500px, rgba(255,250,240,.85), transparent 70%);
  background-size: 360px 520px;
  opacity: .85;
  animation: drift 140s linear infinite reverse;
} */
@keyframes drift {
  from { background-position: 0 0; }
  to   { background-position: -400px -380px; }
}

/* ============================================================
   SHARED — MOONS
   Big moons: STATIC. Small moons: time-based orbital movement.
   Decorative orbit-lines: STATIC.
   ============================================================ */
.moon {
  position: absolute;
  display: block;
  user-select: none;
  pointer-events: none;
  z-index: 2;
}
.moon img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
  filter: contrast(1.06) brightness(.96);
}
/* big moons remain perfectly static — no animation, no parallax */
.moon--big { animation: spinOnPlace 200000s linear infinite;}

/* small moons: cyclical circular orbital animation — stays visible, loops smoothly.
   Each moon defines its own --r (radius in px) on its CSS rule.            */
.moon--small {
  animation: moonWideLoopReverse 24s linear infinite;
  will-change: transform;
  --r: 60px;
}


@keyframes spinOnPlace {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes moonOrbit {
  0%   { transform: translate(calc(var(--rx) *  1), 0); }
  25%  { transform: translate(0, calc(var(--ry) * -1)); }
  50%  { transform: translate(calc(var(--rx) * -1), 0); }
  75%  { transform: translate(0, calc(var(--ry) *  1)); }
  100% { transform: translate(calc(var(--rx) *  1), 0); }
}

@keyframes moonOrbitScreen {
  0%   { transform: translate(0vw, 0vh); }
  12.5% { transform: translate(-10vw, -15vh); }
  25%  { transform: translate(-30vw, -30vh); }
  37.5% { transform: translate(-55vw, -15vh); }
  50%  { transform: translate(-75vw, 0vh); }
  62.5% { transform: translate(-55vw, 15vh); }
  75%  { transform: translate(-30vw, 30vh); }
  87.5% { transform: translate(-10vw, 15vh); }
  100% { transform: translate(0vw, 0vh); }
}
@keyframes moonWideLoopReverse {
  /* ===== верхняя дуга: справа -> налево, слегка сверху вниз ===== */
  0% {
    transform: translate(118vw, -70vh);
  }

  6% {
    transform: translate(102vw, -80vh);
  }

  12% {
    transform: translate(86vw, -70vh);
  }

  18% {
    transform: translate(70vw, -60vh);
  }

  24% {
    transform: translate(54vw, -50vh);
  }

  30% {
    transform: translate(38vw, -40vh);
  }

  36% {
    transform: translate(22vw, -30vh);
  }

  42% {
    transform: translate(6vw, -20vh);
  }

  48% {
    transform: translate(-18vw, -10vh);
  }

  /* ===== левый разворот за экраном ===== */
  52% {
    transform: translate(-38vw, 10vh);
  }

  56% {
    transform: translate(-28vw, 28vh);
  }

  /* ===== нижняя дуга: слева -> направо, слегка снизу вверх ===== */
  62% {
    transform: translate(-18vw, 28vh);
  }

  68% {
    transform: translate(6vw, 38vh);
  }

  74% {
    transform: translate(22vw, 48vh);
  }

  80% {
    transform: translate(38vw, 58vh);
  }

  86% {
    transform: translate(54vw, 68vh);
  }

  92% {
    transform: translate(70vw, 78vh);
  }

  96% {
    transform: translate(90vw, 88px);
  }

  100% {
    transform: translate(118vw, 98vh);
  }
}

/* decorative orbit lines stay perfectly static */
.orbit-lines {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  animation: none !important;
  transform: none !important;
}


/* ============================================================
   COVER / INTRO
   ============================================================ */
.scene--cover {
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  background: var(--night);
  padding: 0;
  color: var(--cream);
  position: relative;
  display: flex;
  flex-direction: column;
}
/* QA mode — used for full-page headless screenshots: forces a fixed cover
   height + neutralises body.locked so all sections fit in the tall viewport. */
html.qa-mode body { overflow: visible !important; height: auto !important; }
html.qa-mode .scene--cover  { height: 760px; min-height: 0; }
html.qa-mode .scene--finale { min-height: 980px; }

/* photo card — full-bleed in a tight frame; opens by removing the inset */
.cover__card {
  position: absolute;
  top:    clamp(56px, 10vh, 100px);
  bottom: clamp(140px, 22vh, 200px);
  left:   clamp(28px, 8vw, 60px);
  right:  clamp(28px, 8vw, 60px);
  display: block;
  background: #0c0a08;
  cursor: pointer;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    top    1.4s var(--ease-soft),
    bottom 1.4s var(--ease-soft),
    left   1.4s var(--ease-soft),
    right  1.4s var(--ease-soft);
}
.cover__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: brightness(.95) contrast(1.04);
  transition: filter 1.6s var(--ease-out), transform 1.6s var(--ease-soft);
}
.scene--cover.is-open .cover__photo {
  filter: brightness(1) contrast(1.04);
}
.cover__frame {
  position: absolute; inset: 14px;
  border: 1px solid rgba(255,255,255,.45);
  pointer-events: none;
  transition: opacity .55s var(--ease-out), transform .8s var(--ease-out);
}
.cover__lock {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.4);
  color: #f5efde;
  backdrop-filter: blur(2px);
  transition: opacity .5s var(--ease-out);
}
.cover__lock svg { width: 16px; height: 16px; }

/* hint sits BELOW the photo (matches the live reference exactly) */
.cover__hint {
  position: absolute;
  bottom: clamp(38px, 8vh, 80px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: .005em;
  color: rgba(245,239,222,.92);
  max-width: 320px;
  line-height: 1.45;
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
}
.cover__hint span { display: block; }
.cover__hint--em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  margin-top: 2px;
}
.cover__chev,
.cover__chev--double {
  width: 26px; height: 18px;
  display: block;
  margin: 12px auto 0;
  opacity: .85;
  animation: bob 2.4s ease-in-out infinite;
  color: rgba(245,239,222,.85);
}
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(5px); }
}

/* names + date overlay (initially hidden) */
.cover__title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  text-align: center;
  color: #f5efde;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.cover__title--hidden { display: none !important; }
.cover__date {
  position: absolute;
  top: 8%; left: 50%;
  transform: translate(-50%, -10px);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .12em;
  font-size: 18px;
  opacity: 0;
  transition: opacity 1s var(--ease-out) .35s, transform 1.2s var(--ease-out) .35s;
}
.cover__names {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .14em;
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.05;
  bottom: 22%;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  opacity: 0;
  transition: opacity 1.1s var(--ease-out) .55s, transform 1.4s var(--ease-out) .55s;
}
.cover__amp { font-size: .58em; letter-spacing: .08em; opacity: .92; }

.cover__scroll {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 18px;
  color: #f5efde;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease-out) 1.4s;
  animation: bob 2.6s ease-in-out infinite;
}

/* opened state */
.scene--cover.is-open .cover__hint {
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
}
.scene--cover.is-open .cover__card {
  top: 0; bottom: 0; left: 0; right: 0;
  cursor: default;
}
.scene--cover.is-open .cover__frame { opacity: 0; transform: scale(1.06); }
.scene--cover.is-open .cover__lock  { opacity: 0; }
.scene--cover.is-open .cover__title { opacity: 1; }
.scene--cover.is-open .cover__date  { opacity: 1; transform: translate(-50%, 0); }
.scene--cover.is-open .cover__names { opacity: 1; transform: translate(-50%, 0); }
.scene--cover.is-open .cover__scroll { opacity: .85; }


/* ============================================================
   WELCOME — cosmic black with white text + calendar
   ============================================================ */
.scene--cosmic { background: var(--night); color: var(--cream); }

.scene--welcome {
  background: var(--night);
  padding: 60px 28px 96px;
  color: var(--cream);
  position: relative;
}
.welcome { position: relative; z-index: 2; text-align: center; }
.welcome__chev {
  display: inline-block;
  width: 38px; height: 26px; margin: 0 auto 28px;
  color: rgba(245,239,222,.85);
}
.welcome__title {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(36px, 9vw, 44px);
  margin: 0 0 26px;
  letter-spacing: .005em;
  color: var(--cream);
}
.welcome__text {
  max-width: 30ch;
  margin: 0 auto 56px;
  color: rgba(245,239,222,.92);
  font-size: 17px;
  line-height: 1.7;
}

.calendar {
  margin: 0 auto;
  max-width: 380px;
  padding: 6px 8px 4px;
  color: var(--cream);
}
.calendar__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  color: var(--cream);
  padding: 0 6px 24px;
}
.calendar__month { font-style: normal; letter-spacing: .005em; }
.calendar__year  { font-style: normal; letter-spacing: .04em; }

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 22px 4px;
  text-align: center;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--cream);
}
.calendar__dow {
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 500;
  color: rgba(245,239,222,.68);
  text-transform: uppercase;
  padding-bottom: 6px;
}
.calendar__grid > span {
  height: 26px;
  display: grid;
  place-items: center;
  font-weight: 400;
  position: relative;
  color: var(--cream);
}
.calendar__day--mark {
  position: relative;
  color: var(--ink);
  font-weight: 700;
  overflow: visible;
}
.calendar__day--mark em {
  position: relative;
  z-index: 2;
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}
/* solid white-cream filled heart, no glow (matches original) */
.calendar__heart {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 36px;
  z-index: 1;
  filter: none;
}


/* ============================================================
   PHOTO BREAK — full-bleed photo with thin frame between welcome and program
   ============================================================ */
/* .scene--photobreak {
  background: var(--night);
  padding: 0;
}
.photobreak {
  margin: 0;
  position: relative;
  padding: 14px;
  background: var(--night);
}

.photobreak .photo-row {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  height: clamp(200px, 50vw, 380px);
  animation: photo-carousel 60s linear infinite;
}

.photobreak::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  z-index: 2;
}
.photobreak img {
  width: 100%;
  display: block;
  aspect-ratio: 0.72;
  object-fit: cover;
  filter: grayscale(.04) brightness(.95);
} */

.photobreak {
  margin: 0;
  position: relative;
  padding: 14px;
  background: var(--night);
  overflow: hidden;
}

.photobreak .photo-row {
  display: flex;
  flex-wrap: nowrap;
  width: calc(10 * 100vw / 3); /* 5 фото + 5 дублей */
  animation: photo-carousel 60s linear infinite;
  will-change: transform;
}

.photobreak .photo-row figure {
  flex: none;
  width: calc((100vw - 9px) / 3);
  aspect-ratio: 2689 / 4032;
  margin: 0 3px 0 0;
  overflow: hidden;
}

.photobreak .photo-row img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain; /* не режет и не zoom */
  object-position: center;
}

@keyframes photo-carousel {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}


/* ============================================================
   WEDDING PROGRAM — cosmic intro + cream sweep
   ============================================================ */
.scene--program {
  background: var(--night);
  color: var(--ink);
  padding: 0;
}

/* moonzone holds big static moon + small orbital moon + thin static lines.
   Reference: large moon peeks from upper-left, smaller moon to its right.   */
.moonzone {
  position: relative;
  z-index: 1;
  height: 320px;
  pointer-events: none;
  overflow: hidden;
}
/* big static moon — peeks from upper-left, mostly visible, anchored to top
   so the cream curve (which rises from below) doesn't bury it. */
.moon--program-lg {
  width: 70%;
  left: -28%;
  top: -20%;
  bottom: auto;
  z-index: 2;
}
/* small static "secondary" moon — round, fully lit, just right of the big one */
.moon--orbit-program {
  width: 22%;
  top: 18%;
  left: 50%;
  z-index: 3;
  --r: 70px;
  animation-duration: 32s;
}
.orbit-lines--program {
  width: 100%;
  height: 100%;
  top: 0; left: 0;
}

/* cream sweep over the dark area — no bottom padding (was creating a black gap
   between the program cards and the timeline section) */
.program__sheet {
  position: relative;
  z-index: 3;
  margin-top: -120px;
  padding: 0;
  color: var(--cream);
  background: transparent;
}
.program__curve {
  display: block;
  width: 100%;
  height: 540px;
  color: var(--cream);
  margin-bottom: -300px;
  /* filter: drop-shadow(0 -8px 24px rgba(0,0,0,.32)); */
}

.program__inner {
  background: var(--cream);
  padding: 24px 28px 36px;
  text-align: center;
}

/* SEAM: program section bottom → timeline section top
   - .program__seam div bg is the timeline color (lighter cream)
   - SVG inside paints a smooth bowl-shaped cream cap (deeper in middle) on top
   - A small dark moon peeks from the left edge, partially clipped by the cap */
.program__seam {
  position: relative;
  background: var(--warm-white);
  height: 110px;
  margin-bottom: -10px;
  overflow: visible;
}
.program__seam-curve {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  display: block;
  color: var(--cream);
  pointer-events: none;
}
.program__seam-moon {
  position: absolute;
  top: 36px;
  left: -8%;
  width: 24%;
  aspect-ratio: 1 / 1;
  z-index: 1;
  pointer-events: none;
  opacity: .92;
  filter: contrast(1.06) brightness(.4);
  z-index: 20;
}
.program__seam-moon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}
.program__seam-curve { z-index: 2; }

.program__heading {
  position: relative;
  margin: 28px 0 56px;
  height: 200px;
  color: var(--ink);
  line-height: 1;
}
.program__heading .script,
.program__heading .serif {
  position: absolute;
  display: block;
  white-space: nowrap;
}
.program__heading .script {
  font-family: var(--script);
  font-size: clamp(40px,  16vw, 70px);
  line-height: .9;
  font-weight: 400;
  letter-spacing: 0;
  top: 60%;
  left: 20%;
  color: var(--ink);
}
.program__heading .serif {
  font-family: var(--serif-display);
  font-size: clamp(40px, 10vw, 60px);
  letter-spacing: .06em;
  font-weight: 600;
  top: 86%;
  left: 20%;
  color: var(--ink-3);
}

.card {
  text-align: center;
  padding: 48px 24px 36px;
}
.card + .card { margin-top: 24px; }
.card__icon {
  width: 100px;
  height: 70px;
  margin: 0 auto 18px;
  color: var(--ink);
}
.card__title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(28px, 7.5vw, 34px);
  margin: 0 0 18px;
  color: var(--ink);
}
.card__text {
  margin: 0 auto 26px;
  max-width: 28ch;
  color: var(--ink);
  line-height: 1.6;
}
.card__text strong { font-weight: 700; }


/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .04em;
  font-size: 17px;
  background: var(--ink);
  color: var(--cream);
  transition: transform .25s var(--ease-out), background .25s, color .25s;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--solid { background: var(--ink); color: var(--cream); margin-top: 18px; }
.btn--cream { background: var(--cream); color: var(--ink); }


/* ============================================================
   TIMELINE
   ============================================================ */
.scene--timeline {
  background: var(--warm-white);
  padding: 36px 28px 90px;
  color: var(--ink);
}
.timeline {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  position: relative;
  text-align: center;
}

.v-line-first {
  width: 1px;
  height: 70px; 
  background-color: black;
  padding: 0 0 0;
  left: 50%;
  top: 0;
  position:relative;
  margin-bottom: 25px;
  margin-top: -70px;
}

.v-line {
  width: 1px;
  height: 70px; 
  background-color: black;
  padding: 0 0 0;
  left: 50%;
  top: 0;
  position:relative;
  margin-bottom: 25px;
}

/* .timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #6e6555 8%, #6e6555 92%, transparent);
  transform: translateX(-50%);
} */
.timeline__item {
  position: relative;
  padding: 60px 0 0;
}
.timeline__item:first-child { padding-top: 90px; }
.timeline__dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.timeline__dot--last { display: none; }
.timeline__time {
  display: block;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 6px;
}
.timeline__title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 4px;
}
.timeline__addr {
  font-size: 13.5px;
  color: #5b5246;
  margin: 6px 0 0;
  line-height: 1.55;
}


/* ============================================================
   DRESS CODE
   ============================================================ */
.scene--dresscode {
  background: var(--warm-white);
  padding: 60px 28px 90px;
  position: relative;
  color: var(--ink);
}
.dresscode__head {
  position: relative;
  margin: 0 0 48px;
  height: 230px;
  display: grid;
  color: var(--ink);
}
.dresscode__dress,
.dresscode__code {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(64px, 18vw, 86px);
  letter-spacing: .03em;
  line-height: 1;
  position: absolute;
}
.dresscode__dress { top: 0;   left: 0; }
.dresscode__code  { top: 86px; right: 0; }
.dresscode__cocktail {
  font-family: var(--script);
  font-size: clamp(54px, 14vw, 70px);
  position: absolute;
  bottom: -10px;
  right: 4px;
  color: var(--ink);
  transform: rotate(-6deg);
  font-weight: 400;
}

.dresscode__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 30px 0 36px;
}
.dresscode__fig { margin: 0; overflow: hidden; }
.dresscode__fig img {
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
  filter: grayscale(.05);
  transition: transform 1.2s var(--ease-soft);
}
.dresscode__fig.is-in img { transform: scale(1.02); }
.dresscode__fig--a { grid-column: 1; grid-row: 1; transform: translateY(-30px); }
.dresscode__fig--b { grid-column: 2; grid-row: 1 / span 2; }
.dresscode__fig--c { grid-column: 1; grid-row: 2; transform: translateY(-30px); }

.dresscode__text {
  max-width: 32ch;
  margin: 12px auto 18px;
  text-align: center;
  color: var(--ink);
  line-height: 1.65;
}
.dresscode__swatches {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 24px;
}
.swatch {
  display: inline-block;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 6px 16px rgba(0,0,0,.08);
}


/* ============================================================
   DETAILS
   ============================================================ */
.scene--details {
  background: var(--sand);
  padding: 80px 30px 90px;
  position: relative;
  color: var(--beige);
  overflow: hidden;
  padding-top: 200px;
}
.details__curve {
  position: absolute;
  fill: var(--warm-white);
  top: -1px;
  left: 0;
  width: 100%;
  height: 300px;
  display: block;
  pointer-events: none;
  z-index: 1;
}
.details {
  text-align: center;
  position: relative;
  z-index: 2;
}
.details__head {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(48px, 14vw, 70px);
  letter-spacing: .04em;
  margin: 0 0 36px;
  color: var(--ink);
}
.details__text {
  max-width: 30ch;
  margin: 0 auto 28px;
  color: var(--ink);
  line-height: 1.7;
}
.details .btn--solid {
  margin-top: 14px;
  min-width: 240px;
  padding: 18px 32px;
  font-size: 17px;
  letter-spacing: .04em;
}


/* ============================================================
   RSVP — cosmic with curves + form
   ============================================================ */
.scene--rsvp {
  background: var(--night);
  color: var(--cream);
  position: relative;
  padding: 200px 0 60px;
  overflow: hidden;
}
.rsvp__curve {
  position: absolute;
  width: 100%;
  height: 300px;
  display: block;
  z-index: 2;
  fill: var(--sand)
}
.rsvp__curve--top { top: -1px; }

.rsvp {
  position: relative;
  z-index: 3;
  text-align: left;
  margin-left: 10px;
  margin-right: 10px;
  max-width: 460px;
  margin: 0 5;
}
.rsvp__head {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(72px, 18vw, 92px);
  letter-spacing: .02em;
  margin: 0 5 22px;
  color: var(--cream);
  text-align: left;
}
.rsvp__text {
  margin: 0 5 32px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 26ch;
  color: rgba(245,239,222,.92);
}

.rsvp__form { display: grid; gap: 24px; }
.rsvp__field input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(240,232,214,.4);
  color: var(--cream);
  padding: 12px 0;
  font: inherit;
  font-size: 15px;
  letter-spacing: .01em;
  outline: none;
  transition: border-color .25s var(--ease-out);
}
.rsvp__field input::placeholder { color: rgba(240,232,214,.55); }
.rsvp__field input:focus { border-color: var(--cream); }

.rsvp__sep {
  border: 0;
  border-top: 1px solid rgba(240,232,214,.32);
  margin: 6px 0 0;
}

.rsvp__fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.rsvp__fieldset legend {
  margin-bottom: 12px;
  font-size: 15px;
  letter-spacing: .01em;
  color: var(--cream);
}

.radio, .check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  user-select: none;
}
.radio input, .check input { position: absolute; opacity: 0; pointer-events: none; }

.radio__mark, .check__mark {
  width: 22px; height: 22px;
  border: 1px solid rgba(240,232,214,.7);
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  transition: border-color .2s, background .2s;
}
.radio__mark { border-radius: 50%; }
.radio input:checked + .radio__mark::after {
  content: "";
  width: 12px; height: 12px;
  background: var(--cream);
  border-radius: 50%;
}
.check input:checked + .check__mark::after {
  content: "";
  width: 12px; height: 12px;
  background: var(--cream);
}

.rsvp__form .btn {
  margin-top: 8px;
  width: 100%;
  background: var(--cream);
  color: var(--ink);
}
.rsvp__thanks {
  margin: 0;
  text-align: center;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  color: var(--cream);
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity .6s var(--ease-out), height .6s var(--ease-out);
}
.rsvp__form.is-sent .rsvp__thanks { opacity: 1; height: 28px; }


/* ============================================================
   COUNTDOWN — cosmic black with cream side blobs + dark moons + cream timer
   (matches reference: f_29 in template.MP4)
   ============================================================ */
.scene--countdown {
  background: var(--night);
  color: var(--cream);
  position: relative;
  padding: 0;
  height: clamp(1000px, 110vh, 1400px);
  overflow: hidden;
  background-color: #27009b;
  isolation: isolate;
}

/* cream decorative shapes — slim left-edge silhouettes (per reference) */
.cd__shape {
  position: absolute;
  color: var(--cream);
  background: none;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 2;
  height:980px;
}
.cd__shape_svg { top: 0;}

/* big static moons — big moon dominant centered, smaller moon top-center */
.moon--cd-bottom {
  width: 108%;
  top: 15%;
  left: -5%;
  transform: translateX(-50%);
  bottom: auto;
  animation-duration: 68s;
  z-index: 4;
}
.moon--cd-bottom img { filter: contrast(1.06) brightness(.88); }
.moon--cd-top {
  width: 38%;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  z-index: 4;
  opacity: .95;
}
.moon--cd-top img { filter: contrast(1.06) brightness(.85); }
/* small orbital moon — far-right margin so it never clips against the section edge */
.moon--cd-orbit {
  width: 9%;
  top: 40%;
  left: 0;
  z-index: 5;
  opacity: .85;
  animation-duration: 68s;
  animation-delay: -8s;
}

.moon--cd-orbit img { filter: contrast(1.05) brightness(.9); }

/* thin orbit lines spanning the section, static */
.orbit-lines--cd {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.countdown {
  position: absolute;
  z-index: 7;
  text-align: center;
  width: 100%;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
  padding: 0 20px;
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.countdown__label {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .14em;
  font-size: 16px;
  margin: 0 0 14px;
  color: var(--cream);
}
.countdown__timer {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(34px, 9vw, 44px);
  color: var(--cream);
  letter-spacing: .04em;
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  justify-content: center;
}
.countdown__timer span[data-cd] {
  min-width: 1.6em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.countdown__sep { opacity: .85; }
.countdown__units {
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 320px;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: rgba(245,239,222,.78);
  font-weight: 600;
}


/* ============================================================
   FINALE — cream curves + big moon + stars + text
   ============================================================ */
.scene--finale {
  background: var(--night);
  color: var(--cream);
  position: relative;
  padding: 0;
  min-height: 80vh;
  min-height: 80svh;
  overflow: hidden;
  isolation: isolate;
}

/* cream wedge upper-left only (per reference)
.finale__shape {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.finale__shape--a {
  width: 70%;
  top: -6%;
  left: -10%;
  filter: drop-shadow(2px -2px 18px rgba(0,0,0,.28));
} */

/* big static moons (per reference: large moon dominating bottom-left, small moon top-right) */
.moon--finale-bottom {
  width: 150%;
  bottom: -22%;
  left: -28%;
  z-index: 3;
  opacity: .98;
}
.moon--finale-top {
  width: 32%;
  top: 4%;
  right: 6%;
  z-index: 4;
  transform: scaleX(-1);
}
/* small orbital moon */
.moon--finale-orbit {
  width: 16%;
  top: 38%;
  right: 22%;
  z-index: 5;
  /* --r: 60px; */
  animation-duration: 90s;
  animation-direction: reverse;
}

.orbit-lines--finale {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.finale__head {
  position: relative;
  z-index: 5;
  font-family: var(--serif-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: .04em;
  font-size: clamp(38px, 10vw, 52px);
  line-height: 1.05;
  color: var(--cream);
  text-align: center;
  margin: 0;
  padding: clamp(180px, 30vh, 260px) 24px 0;
  display: grid;
  gap: 6px;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.finale__head span { display: block; }

.finale__foot {
  position: relative;
  z-index: 5;
  margin-bottom: -100px;
  text-align: center;
  padding: clamp(140px, 14vh, 200px) 24px 36px;
  color: var(--cream);
}
.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  opacity: .85;
}
.brand__mark { width: 36px; height: 36px; color: var(--cream); }
.brand__name {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: .02em;
}

.finale__contact {
  margin: 0 0 14px;
  font-size: 15px;
  letter-spacing: .04em;
  opacity: .9;
}
.finale__icons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.finale__icons a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--cream);
  transition: transform .25s var(--ease-out), opacity .2s;
}
.finale__icons a:hover { transform: translateY(-2px); }
.finale__icons svg { width: 28px; height: 28px; }
.finale__divider {
  width: 1px; height: 22px;
  background: rgba(240,232,214,.6);
  margin: 0 4px;
}
.finale__copy {
  margin: 14px 0 0;
  font-size: 12.5px;
  letter-spacing: .06em;
  opacity: .75;
}


/* ============================================================
   small screens / fine tuning
   ============================================================ */
@media (max-width: 360px) {
  body { font-size: 16px; }
  .calendar__grid { gap: 18px 2px; font-size: 13.5px; }
  .countdown__timer { font-size: 32px; }
}


@media (max-width: 600px) {
  .photobreak .photo-row {
    width: calc(10 * 78vw);
  }

  .photobreak .photo-row figure {
    width: 78vw;
  }
}