/* ==========================================================================
   Divine Wedding – Kapil & Sapna
   Single stylesheet. Sections: tokens · base · cover · hero · welcome ·
   couple · save-the-date · countdown · gallery · events · venue · footer ·
   overlays · motion
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --crimson: #a0344e;
  --maroon: #8b1a1a;
  --rose: #b86b77;
  --gold: #c9a55d;
  --gold-text: #b8860b;
  --ink: #3a2a26;
  --muted: #6b4a40;
  --cream: #fffdf8;
  --paper: #fffaf3;
  --shimmer: linear-gradient(120deg, #e8d9a8, #cf9f4a 50%, #e8d9a8);

  --font-body: Poppins, system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-sans: Jost, system-ui, sans-serif;

  --col: 640px; /* page column width */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: #eadbe0;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }

.page {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  overflow-x: clip;
  background-color: #f4dee5;
  background-image:
    url("../assets/img/pattern.svg"),
    linear-gradient(180deg, #fae7ec 0%, #f3dce5 15%, #e7ebdc 32%, #f0dde6 48%, #e4ead9 64%, #f4dbe3 82%, #ebe4ec 100%);
  background-repeat: repeat, no-repeat;
  background-size: 105px 105px, 100% 100%;
}

/* shimmering gold text */
.gilded {
  background: var(--shimmer) 0 0 / 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

.divider { display: flex; align-items: center; justify-content: center; gap: 10px; }
.divider::before, .divider::after {
  content: ""; width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 165, 93, .75));
}
.divider::after { transform: scaleX(-1); }
.divider b { font-weight: 400; color: var(--gold); font-size: 14px; }
.divider b.flower { color: #b8724f; font-size: 18px; }

.rule {
  width: 160px; height: 1px; margin: 6px auto 8px;
  background: linear-gradient(90deg, transparent, rgba(201, 165, 93, .9), transparent);
}

/* ---------- section heading ---------- */
.heading { text-align: center; margin-bottom: 34px; }
.heading__eyebrow {
  position: relative;
  margin-top: 60px;
  font: 400 22px/1.7 var(--font-script);
  background: linear-gradient(120deg, #b8860b, #e6c466, #b8860b) 0 0 / 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
.heading__eyebrow::before { /* temple ornament */
  content: ""; position: absolute; left: 50%; top: -56px;
  width: 180px; height: 60px; transform: translateX(-50%);
  background: url("../assets/img/temple-divider.webp") center / contain no-repeat;
}
.heading__title {
  font: 500 clamp(28px, 7vw, 36px) / 1.4 var(--font-serif);
  color: var(--crimson);
}
.heading--dark .heading__title { color: var(--maroon); }
.heading__sub { font: 400 15px / 1.6 var(--font-sans); color: var(--crimson); }

/* ==========================================================================
   COVER
   ========================================================================== */
.cover {
  position: fixed; inset: 0; z-index: 100;
  display: flex; justify-content: center;
  background: #000; cursor: pointer;
  transition: opacity 1s ease, visibility 0s 1s;
}
.cover.is-open { opacity: 0; visibility: hidden; }
.cover__stage { position: relative; width: 100%; max-width: var(--col); height: 100%; overflow: hidden; background: #efe3d5; }
.cover__poster, .cover__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover__video { opacity: 0; transition: opacity .3s; }
.cover__video.is-playing { opacity: 1; }
.cover__pill {
  position: absolute; left: 50%; top: 17%; transform: translate(-50%, -50%);
  width: 248px; height: 56px; border-radius: 30px; overflow: hidden;
  background: rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  transition: opacity .3s;
}
.cover__pill span {
  position: relative; white-space: nowrap;
  font: 700 20px "Noto Sans Devanagari", var(--font-body);
  letter-spacing: .15em; color: #ba0000;
}
.cover__pill::before {
  content: ""; position: absolute; top: 0; left: 0; width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-20deg); animation: sweep 2.6s ease-in-out infinite;
}
.cover.is-started .cover__pill { opacity: 0; pointer-events: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 16vh; text-align: center;
  color: var(--crimson);
  background:
    radial-gradient(circle at 20% 10%, #fff4ea 0, transparent 55%),
    radial-gradient(circle at 85% 85%, #f3c9d4 0, transparent 55%),
    #fbe9e0;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__fade { position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(253, 252, 246, .9)); }
.hero__content { position: relative; z-index: 2; text-shadow: 0 0 16px rgba(255, 255, 255, .85); }
.hero__content > * {
  opacity: 0; transform: translateY(22px); filter: blur(6px);
  transition: opacity 1.4s ease, transform 1.4s ease, filter 1.4s ease;
}
.hero__content > .hero__amp { transform: scale(.6); }
.hero.is-opened .hero__content > * { opacity: 1; transform: none; filter: none; }
.hero.is-opened .hero__content > :nth-child(2) { transition-delay: .2s; }
.hero.is-opened .hero__content > :nth-child(3) { transition-delay: .6s; }
.hero.is-opened .hero__content > :nth-child(4) { transition-delay: 1s; }
.hero.is-opened .hero__content > :nth-child(n+5) { transition-delay: 1.5s; }
.hero__eyebrow { font: 700 12px var(--font-serif); letter-spacing: .08em; }
.hero__name { font: 600 clamp(40px, 11vw, 64px) / 1.1 var(--font-serif); margin-top: 10px; }
.hero__amp { font: 400 28px "Playfair Display", serif; color: #b08d57; margin: 4px 0; }
.hero__date { font: 600 12px Quicksand, var(--font-body); letter-spacing: .3em; margin-top: 14px; }
.hero .divider { margin-top: 20px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  font: 700 12px var(--font-serif); letter-spacing: .1em; text-align: center;
  opacity: 0; transition: opacity 1s ease 1.8s;
}
.hero.is-opened .hero__scroll { opacity: .8; animation: bounce 2.4s ease-in-out 2.8s infinite; }

/* ambient particles (generated in JS) */
.petal {
  position: absolute; top: 0; opacity: 0;
  background: rgba(200, 150, 160, .5);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: petal-fall linear infinite;
}
.spark { position: absolute; border-radius: 50%; background: var(--gold); animation: twinkle 3s ease-in-out infinite; }

/* ==========================================================================
   WELCOME
   ========================================================================== */
.welcome {
  position: relative; z-index: 1;
  padding: 100px 28px 40px; text-align: center;
  font: italic 500 20px / 1.7 var(--font-serif); color: var(--crimson);
}
.welcome::before { /* spinning rangoli */
  content: ""; position: absolute; top: -150px; right: -200px; width: 400px; height: 400px;
  opacity: .3; pointer-events: none;
  background: url("../assets/img/rangoli.webp") center / contain no-repeat;
  animation: rangoli-spin 50s linear infinite;
}
.welcome::after { /* elephants */
  content: ""; position: absolute; top: 15px; left: -4%; z-index: 3;
  width: 108%; height: clamp(68px, 19vw, 80px); pointer-events: none;
  background: url("../assets/img/elephants.webp") top / auto 100% no-repeat;
}

.welcome__hosts {
  display: block; margin-top: 22px;
  font: 500 12px / 1.8 var(--font-body); letter-spacing: .22em; text-transform: uppercase; font-style: normal; color: #8a7568;
}
.welcome__hosts strong { display: block; margin-top: 2px; font: 500 20px / 1.4 var(--font-serif); letter-spacing: .02em; text-transform: none; color: var(--crimson); }

/* ==========================================================================
   COUPLE
   ========================================================================== */
.couple { padding: 20px 20px 40px; }
.couple__card {
  position: relative; overflow: hidden;
  padding: 40px 20px; border-radius: 24px; border: 2px solid #fff;
  background: linear-gradient(135deg, #fffaf4, #fcf3ed);
  box-shadow: 0 20px 50px -26px rgba(160, 52, 78, .35);
}
.couple__card > * { position: relative; z-index: 2; }
.couple__card::before, .couple__card::after {
  content: ""; position: absolute; top: 0; z-index: 1; width: 124px; height: 124px; pointer-events: none;
  background: url("../assets/img/corner-floral.webp") center / contain no-repeat;
}
.couple__card::before { left: 0; }
.couple__card::after { right: 0; transform: scaleX(-1); }

.person { text-align: center; }
.person__photo { position: relative; width: min(240px, 70%); margin: 0 auto 18px; }
.person__photo::before { /* slow glow ring */
  content: ""; position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1;
  border-radius: 50%; opacity: .6; filter: blur(14px);
  background: conic-gradient(rgba(233, 218, 186, 0), rgba(233, 218, 186, .75), rgba(233, 218, 186, 0) 30%, rgba(201, 165, 93, .35) 55%, rgba(233, 218, 186, 0) 80%);
  transform: translate(-50%, -50%); animation: ring-spin 50s linear infinite;
}
.person__arch {
  position: relative; overflow: hidden; aspect-ratio: 3 / 3.5;
  border: 2px solid rgba(201, 165, 93, .7); border-radius: 999px 999px 6px 6px;
  background: linear-gradient(160deg, #f6d3d3, #c5707f);
  box-shadow: 0 0 0 7px rgba(255, 250, 243, .9), 0 12px 30px -12px rgba(160, 52, 78, .4);
}
.person__arch img { width: 100%; height: 100%; object-fit: cover; }
.person__label { font: 500 11px var(--font-body); letter-spacing: .4em; text-transform: uppercase; color: #8a7568; }
.person__name { font: 600 32px / 1.4 var(--font-serif); color: var(--crimson); }
.person__parents {
  display: inline-block; margin-top: 6px; padding: 8px 18px; border-radius: 30px;
  background: rgba(201, 165, 93, .12); font: 400 14px / 1.5 var(--font-sans);
}
.connector { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px 0; }
.connector::before, .connector::after { content: ""; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.connector::after { transform: scaleX(-1); }
.connector span {
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 8px rgba(201, 165, 93, .18);
}
.connector span::before {
  content: ""; position: absolute; top: 8px; left: 7px; width: 50px; height: 50px;
  background: url("../assets/img/flower-icon.svg") center / contain no-repeat;
}
.couple__quote { margin-top: 30px; text-align: center; font: 400 28px / 1.5 var(--font-script); color: #785c52; }

.float-heart { position: absolute; bottom: -20px; z-index: 1; color: #eed9d7; pointer-events: none; animation: heart-rise linear infinite; }
.sparkle-dot { position: absolute; z-index: 1; border-radius: 50%; background: var(--gold); pointer-events: none; animation: twinkle-soft 3s ease-in-out infinite; }

/* ==========================================================================
   SAVE THE DATE (scratch card)
   ========================================================================== */
.scratch {
  position: relative; overflow: hidden;
  padding: 48px 20px; background: linear-gradient(#ffead8, #ffe2e4);
}
.scratch::before, .scratch::after {
  content: ""; position: absolute; bottom: 0; width: 124px; height: 124px; pointer-events: none;
  background: url("../assets/img/corner-floral.webp") center / contain no-repeat;
}
.scratch::before { left: 0; transform: scaleY(-1); }
.scratch::after { right: 0; transform: rotate(180deg); }
.scratch__wrap { position: relative; z-index: 1; width: min(480px, 100%); margin: 0 auto; }
.scratch__card {
  position: relative; height: 270px; border-radius: 32px;
  background: var(--cream); box-shadow: 0 18px 40px -20px rgba(160, 52, 78, .4);
}
.scratch__reveal {
  position: absolute; inset: 0; border-radius: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
}
.scratch__emoji { font-size: 30px; }
.scratch__label { font: 600 12px var(--font-body); letter-spacing: .3em; color: var(--maroon); }
.scratch__date { font: 600 34px var(--font-serif); color: var(--crimson); }
.scratch__foil {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 32px; touch-action: none; cursor: grab;
}
.scratch__foil.is-cleared { animation: dissolve .9s ease forwards; pointer-events: none; }
.scratch__hint { margin-top: 14px; text-align: center; font: 400 12px var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--crimson); }

/* ==========================================================================
   COUNTDOWN
   ========================================================================== */
.countdown { position: relative; overflow: hidden; padding: 48px 20px; text-align: center; background: rgba(240, 231, 214, .7); }
.countdown > * { position: relative; z-index: 1; }
.countdown::before { /* faint rotated garland */
  content: ""; position: absolute; left: 46%; top: 200px; width: 500px; height: 500px; opacity: .1; pointer-events: none;
  background: url("../assets/img/corner-floral.webp") center / contain no-repeat;
  transform: rotate(45deg) translateX(-50%);
}
.countdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 420px; margin: 0 auto; }
.countdown__box {
  position: relative; padding: 68px 10px 26px;
  border-radius: 9999px 9999px 12px 12px; border: 1.5px solid rgba(201, 165, 93, .6);
  background: linear-gradient(145deg, #fffef8, #fcf3ed);
  box-shadow: 0 14px 30px -18px rgba(139, 26, 26, .4);
}
.countdown__box::before {
  content: ""; position: absolute; left: 50%; top: 20px; width: 40px; height: 40px; transform: translateX(-50%);
  background: url("../assets/img/flower-icon.svg") center / contain no-repeat;
}
.countdown__num {
  display: block; font: 600 40px / 1 Quicksand, var(--font-body);
  background: linear-gradient(120deg, #8b1a1a, #cf9f4a, #8b1a1a) 0 0 / 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
.countdown__unit { display: block; margin-top: 8px; font: 500 11px var(--font-body); letter-spacing: .25em; color: var(--crimson); }
.countdown__foot { margin-top: 26px; font: 400 14px / 1.8 var(--font-body); color: var(--muted); }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery {
  position: relative; overflow: hidden; padding: 48px 20px;
  background:
    radial-gradient(circle at 15% 20%, #ffead8, transparent 55%),
    radial-gradient(circle at 85% 70%, #ffe2e4, transparent 55%);
}
.gallery > * { position: relative; z-index: 1; }
.gallery::before { /* spinning rangoli */
  content: ""; position: absolute; top: 0; left: -162px; width: 400px; height: 400px; opacity: .3; pointer-events: none; z-index: 0;
  background: url("../assets/img/rangoli.webp") center / contain no-repeat;
  animation: rangoli-spin 50s linear infinite;
}
.gallery__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 18px; max-width: 600px; margin: 0 auto; }
.polaroid {
  position: relative; padding: 10px 10px 28px; border-radius: 6px; background: #fff;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .35);
  transform-origin: 50% 0; animation: swing-a 5s ease-in-out infinite;
}
.polaroid:nth-child(even) { margin-top: 26px; animation-name: swing-b; animation-duration: 5.6s; }
.polaroid:hover { animation-play-state: paused; }
.polaroid::before { content: "📎"; position: absolute; top: -14px; left: 50%; font-size: 26px; transform: translateX(-50%) rotate(-12deg); }
.polaroid button { display: block; width: 100%; }
.polaroid img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; border-radius: 3px; background: #f3dce5; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none; place-items: center;
  background: rgba(30, 20, 15, .85);
}
.lightbox.is-open { display: grid; }
.lightbox__img {
  width: min(86vw, 420px); aspect-ratio: 1 / 1.15; object-fit: cover; border-radius: 24px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.lightbox__img.slide-next { animation: slide-in-next .4s ease-out; }
.lightbox__img.slide-prev { animation: slide-in-prev .4s ease-out; }
.lightbox__btn {
  position: absolute; width: 42px; height: 42px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); color: #3a2f28; font-size: 28px; line-height: 1;
}
.lightbox__btn--close { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 22px; }
.lightbox__btn--prev { left: 14px; top: 50%; }
.lightbox__btn--next { right: 14px; top: 50%; }

/* ==========================================================================
   EVENTS
   ========================================================================== */
.events { padding: 48px 20px; background: #fbf3ea; }
.events__list { display: grid; gap: 30px; max-width: 607px; margin: 0 auto; }
.event {
  --corner: 102px;
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 40px 24px; border-radius: 28px; background: var(--bg);
  box-shadow: 0 30px 60px -30px rgba(120, 70, 60, .28);
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.event.is-in { opacity: 1; transform: none; }
.event__media, .event__body { position: relative; z-index: 1; opacity: 0; transition: opacity .8s ease, transform .8s ease; }
.event__media { flex: none; width: min(100%, 340px); transform: translateX(-60px); transition-delay: .15s; }
.event__body { flex: 1 1 0; min-width: 0; width: 100%; text-align: left; transform: translateX(60px); transition-delay: .25s; }
.event.is-in .event__media, .event.is-in .event__body { opacity: 1; transform: none; }
.event__frame {
  position: relative; overflow: hidden; aspect-ratio: .87;
  border: 6px solid var(--paper); border-radius: 999px 999px 4px 4px; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(201, 165, 93, .25), 0 30px 40px -24px rgba(120, 60, 60, .45);
}
.event__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.event:hover .event__frame img { transform: scale(1.04); }
.event__eyebrow { font: 500 13px var(--font-body); letter-spacing: .35em; text-transform: uppercase; color: #c08a5a; }
.event__name { margin: 6px 0 8px; font: 400 clamp(48px, 14vw, 64px) / 1.15 var(--font-script); color: #8b3a4b; }
.event__note { margin-bottom: 18px; font: 400 20px / 1.5 var(--font-serif); color: #7a5a55; }
.event__meta { display: grid; gap: 10px; margin-bottom: 22px; font: 400 17px / 1.5 var(--font-body); }
.event__meta li { display: flex; align-items: flex-start; gap: 10px; }
.event__meta svg { flex: none; margin-top: 3px; }
.event__actions { display: grid; gap: 10px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; border-radius: 999px; text-decoration: none;
  font: 500 15px var(--font-body);
}
.btn--primary { background: var(--rose); color: #fff; }
.btn--soft { background: #fff8ec; color: var(--ink); }
.btn--gold { background: linear-gradient(120deg, #e8d9a8, #cf9f4a); color: #3a0f16; }

.event--plain .event__body { max-width: 640px; margin: 0 auto; text-align: center; }
.event--plain .event__meta { justify-items: center; }
.event--plain .event__meta li { justify-content: center; }
.venue__stay { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(201, 165, 93, .6); font-size: 14px; color: var(--muted); }

/* garland on each card – the artwork has flowers top-left, so flip it outward */
.event__corner { position: absolute; z-index: 2; width: var(--corner); height: auto; pointer-events: none; }
.event__corner--a { top: -6px; right: -6px; transform: scaleX(-1); }
.event__corner--b { bottom: -6px; left: -6px; transform: scaleY(-1); }
.event--reverse .event__corner--a { left: -6px; right: auto; transform: none; }
.event--reverse .event__corner--b { left: auto; right: -6px; transform: rotate(180deg); }

@media (min-width: 900px) {
  .event { --corner: 170px; flex-direction: row; gap: 64px; max-width: 1152px; margin: 0 auto; padding: 60px 8%; border-radius: 40px; }
  .event--reverse { flex-direction: row-reverse; }
  .event__media { width: 40%; max-width: 480px; }
  .events__list { max-width: 1152px; }
}

/* ==========================================================================
   VENUE
   ========================================================================== */
.venue { padding: 0 20px 48px; }
.venue__grid { position: relative; display: grid; gap: 20px; max-width: 599px; margin: 350px auto 0; padding: 20px; }
.venue__grid::before { /* illustrated venue behind the cards */
  content: ""; position: absolute; left: 0; top: -300px; width: 100%; height: 55%; z-index: 0;
  border: 3px solid #fff; border-radius: 30px;
  background: url("../assets/img/venue.webp") center / cover no-repeat;
  box-shadow: 0 20px 50px -25px rgba(139, 26, 26, .35);
}
.venue__grid > * { position: relative; z-index: 1; }
.venue__info { padding: 32px; border-radius: 32px; text-align: center; background: var(--cream); box-shadow: 0 18px 40px -24px rgba(160, 52, 78, .4); }
.venue__tag { font: 500 11px var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-text); }
.venue__name { margin: 4px 0 8px; font: 600 32px var(--font-serif); color: var(--crimson); }
.venue__info p { font: 400 15px / 1.6 var(--font-sans); }
.venue__when { margin-top: 12px; font-weight: 500; }
.venue__actions { display: grid; gap: 10px; margin-top: 20px; }
.venue__map { padding: 8px; border-radius: 32px; background: var(--cream); box-shadow: 0 18px 40px -24px rgba(160, 52, 78, .4); }
.venue__map iframe { width: 100%; height: 304px; border: 0; border-radius: 26px; }

.closing-quote { position: relative; z-index: 2; padding: 56px 20px 40px; text-align: center; }
.closing-quote p { font: 400 clamp(34px, 10vw, 55px) / 1.2 var(--font-script); }
.closing-quote::after { content: ""; display: block; width: 208px; height: 1px; margin: 18px auto 0; background: linear-gradient(90deg, transparent, rgba(201, 165, 93, .9), transparent); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative; overflow: hidden; margin-top: -240px; padding: 260px 20px 34px;
  text-align: center; color: #fff;
  background: #03132d url("../assets/img/footer-bg.webp") center bottom / cover no-repeat;
}
.footer > * { position: relative; z-index: 1; }
.footer__hearts { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.footer__hearts i { position: absolute; bottom: 0; font-style: normal; color: rgba(245, 236, 224, .5); animation: heart-rise linear infinite; }
.footer__monogram {
  position: relative; display: grid; place-items: center; width: 108px; height: 108px; margin: 0 auto 14px;
  border: 1px solid #e8c9a0; border-radius: 50%;
  font: 400 26px Georgia, serif; letter-spacing: .08em; color: #e8c9a0;
}
.footer__monogram::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(232, 201, 160, .6); box-shadow: 0 0 24px rgba(232, 201, 160, .5);
  animation: glow 3.2s ease-in-out infinite;
}
.footer__names { font: 400 36px / 1.7 var(--font-script); }
.footer .divider { margin: 6px 0 24px; }
.footer .divider b { color: #fff; }
.footer__thanks { font: 500 28px / 1.5 var(--font-serif); }
.footer__info { margin-top: 20px; font: 400 13px / 1.8 var(--font-sans); letter-spacing: .05em; color: #ffdfad; }


/* keep text readable over the illustrated footer */
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 19, 45, 0) 0%, rgba(3, 19, 45, .15) 30%, rgba(3, 19, 45, .78) 62%, rgba(3, 19, 45, .9) 100%);
}
.footer__monogram, .footer__names, .footer__thanks, .footer__info { text-shadow: 0 2px 14px rgba(3, 19, 45, .9), 0 0 3px rgba(3, 19, 45, .8); }
.footer__names { filter: drop-shadow(0 2px 10px rgba(3, 19, 45, .9)); }

@media (min-width: 768px) {
  .footer { margin-top: -420px; padding-top: 452px; }
}

/* ==========================================================================
   OVERLAYS
   ========================================================================== */
.lamps { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.lamps img {
  position: absolute; top: 0; opacity: .7; object-fit: contain; will-change: transform;
  animation: lamp-rise linear infinite both;
}
.music {
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: float 3s ease-in-out infinite;
}
.music i { width: 3px; height: 18px; border-radius: 2px; background: var(--ink); transform: scaleY(.25); }
.music::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(58, 47, 40, .5); opacity: 0; }
.music.is-playing i { animation: eq .9s ease-in-out infinite; }
.music.is-playing i:nth-child(1) { animation-delay: -.6s; }
.music.is-playing i:nth-child(2) { animation-delay: -.3s; }
.music.is-playing i:nth-child(3) { animation-delay: -.75s; }
.music.is-playing i:nth-child(4) { animation-delay: -.15s; }
.music.is-playing::before { animation: ripple 1.8s ease-out infinite; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* off-screen sections stop animating (toggled by JS) */
.is-idle *, .is-idle *::before, .is-idle *::after { animation-play-state: paused !important; }

/* ==========================================================================
   MOTION
   ========================================================================== */
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes sweep { from { transform: skewX(-20deg) translateX(0); } to { transform: skewX(-20deg) translateX(450%); } }
@keyframes bounce { 0%, 100% { transform: translateX(-50%); } 50% { transform: translate(-50%, 10px); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes twinkle-soft { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes heart-rise { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateY(-160px) scale(1.1); } }
@keyframes petal-fall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  10% { opacity: .85; }
  50% { opacity: .7; transform: translate(var(--drift, 0), 58vh) rotate(160deg); }
  100% { opacity: 0; transform: translateY(116vh) rotate(320deg); }
}
@keyframes lamp-rise {
  0% { opacity: 0; transform: translate3d(0, 110vh, 0); }
  10% { opacity: .7; }
  100% { opacity: 0; transform: translate3d(var(--drift, 40px), -10vh, 0); }
}
@keyframes swing-a { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-2deg); } }
@keyframes swing-b { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(2deg); } }
@keyframes rangoli-spin { to { transform: rotate(360deg); } }
@keyframes ring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes glow { 0%, 100% { opacity: 0; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes dissolve { to { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes ripple { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes slide-in-next { from { opacity: 0; transform: translateX(60px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slide-in-prev { from { opacity: 0; transform: translateX(-60px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .event, .event__media, .event__body, .hero__content > * { opacity: 1; transform: none; filter: none; }
  .petal, .spark, .float-heart, .sparkle-dot, .lamps { display: none; }
}
