/* ============================================================
   Sukrit & Aisha — Wedding Invite
   Palette: royal maroon · ivory · antique gold · midnight blue
   ============================================================ */

:root {
  --ivory: #f4f0e4;
  --ivory-deep: #ebe4d2;
  --maroon: #571f2c;
  --maroon-deep: #3f1420;
  --gold: #c6a35c;
  --gold-light: #e9d5a3;
  --night-1: #0b1533;
  --night-2: #22335f;
  --night-3: #45527f;
  --ink: #4a3b31;
  --script: 'Great Vibes', cursive;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Jost', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--ivory);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100dvh; }

#site {
  opacity: 0;
  transform: scale(1.03);
  filter: blur(8px);
  transition: opacity 1.8s ease, transform 2s ease, filter 1.8s ease;
}
#site.shown { opacity: 1; transform: scale(1); filter: blur(0); }

/* ---------------- Typography helpers ---------------- */
.script { font-family: var(--script); font-weight: 400; }

.sec-script {
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  color: var(--gold-light);
  text-align: center;
  line-height: 1.2;
  padding: 0 1rem;
}
.maroon-text { color: var(--maroon); }

.sec-label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-align: center;
  margin: 0.9rem 1.2rem 0;
  opacity: 0.85;
}

section, footer { position: relative; padding: 4.5rem 1.4rem; }

.maroon {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(198,163,92,0.10), transparent 60%),
    linear-gradient(180deg, var(--maroon-deep), var(--maroon) 45%, var(--maroon-deep));
  color: var(--ivory);
}
.maroon .sec-label { color: var(--gold-light); }

.ivory { background: var(--ivory); }
.ivory .sec-label { color: var(--maroon); opacity: 0.65; }

/* ============================================================
   INTRO
   ============================================================ */
#intro {
  position: fixed; inset: 0; z-index: 60;
  background: #ece4d1 center/cover no-repeat url("../assets/images/curtain-poster.jpg");
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1.4s ease, visibility 1.4s;
}
#intro.gone { opacity: 0; visibility: hidden; pointer-events: none; }

#introVideo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

#introVeil {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.1rem;
  background: radial-gradient(90% 70% at 50% 45%, rgba(250,246,238,0.16), rgba(240,232,216,0.5));
  color: var(--maroon);
  cursor: pointer;
  transition: opacity 1s ease, visibility 1s;
  padding: 2rem;
  text-align: center;
}
#introVeil.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-mono { display: grid; place-items: center; }
.intro-mono svg { width: 150px; height: auto; color: var(--maroon); }
.mono-serif {
  font-family: 'Playfair Display', var(--serif);
  font-weight: 600;
  font-size: 92px;
  letter-spacing: -0.02em;
  fill: var(--maroon);
}
.mono-heart { fill: var(--gold); }
/* optional monogram artwork — replaces the SVG when the file is present */
.mono-img {
  width: 240px; max-width: 74vw; height: auto; display: block;
  mix-blend-mode: multiply;
}
.intro-mono.has-img .mono-svg { display: none; }

.intro-names {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 6vw, 2rem);
  letter-spacing: 0.3em; text-transform: uppercase;
  text-indent: 0.3em; /* balance the trailing letter-spacing so it centers */
  color: #4b1a27;
  text-shadow: 0 1px 0 rgba(255,252,245,0.55), 0 2px 22px rgba(255,250,240,0.8);
}
.intro-divider { color: var(--maroon); margin-top: 0.2rem; }
.intro-divider svg { width: 190px; max-width: 62vw; display: block; }
.intro-div-heart { fill: var(--gold); }

.tap-wrap { position: relative; margin-top: 2.2rem; display: grid; place-items: center; }
.tap-text {
  font-family: var(--sans); font-weight: 400;
  font-size: 0.72rem; letter-spacing: 0.5em; text-transform: uppercase;
  padding: 1.05rem 1.6rem 1.05rem 2.1rem;
  border: 1px solid rgba(87,31,44,0.55);
  border-radius: 999px;
  background: rgba(250,246,238,0.28);
  animation: breathe 2.6s ease-in-out infinite;
}
.tap-ring {
  position: absolute; width: 100%; height: 100%;
  border: 1px solid rgba(87,31,44,0.45);
  border-radius: 999px;
  animation: ripple 2.6s ease-out infinite;
}
.tap-ring.d2 { animation-delay: 1.3s; }
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes breathe {
  0%, 100% { opacity: 0.85; } 50% { opacity: 1; }
}

/* ============================================================
   PETALS + MUSIC
   ============================================================ */
#petals {
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none;
}

#musicToggle {
  position: fixed; right: 1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom));
  z-index: 50;
  width: 48px; height: 48px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(233,213,163,0.28), transparent 55%),
    linear-gradient(150deg, var(--maroon), var(--maroon-deep));
  border: 1px solid rgba(198,163,92,0.85);
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(63,20,32,0.45), inset 0 0 8px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}
#musicToggle:active { transform: scale(0.92); }
.m-note {
  width: 22px; height: 22px; color: var(--gold-light);
  position: relative; z-index: 2;
  transform-origin: 60% 60%;
  animation: noteSway 2.6s ease-in-out infinite;
}
@keyframes noteSway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
.m-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--gold-light);
  opacity: 0;
  animation: mRing 2.4s ease-out infinite;
}
@keyframes mRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
.m-slash {
  position: absolute; z-index: 3;
  width: 30px; height: 1.6px; background: var(--gold-light);
  border-radius: 2px;
  transform: rotate(-45deg) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  box-shadow: 0 0 0 1px rgba(63,20,32,0.5);
}
/* paused state: stop the animations, show the slash */
#musicToggle.paused .m-note { animation-play-state: paused; transform: rotate(0); opacity: 0.7; }
#musicToggle.paused .m-ring { animation: none; opacity: 0; }
#musicToggle.paused .m-slash { transform: rotate(-45deg) scaleX(1); }

/* day / night switch, top-right */
#themeToggle {
  position: fixed; right: 1rem; top: calc(0.9rem + env(safe-area-inset-top));
  z-index: 50;
  display: flex; gap: 3px; padding: 4px;
  background: rgba(63,20,32,0.42);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(233,213,163,0.5);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  /* enter choreography: slide in from the right */
  opacity: 0; transform: translateX(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
#themeToggle.in { opacity: 1; transform: translateX(0); }
.t-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-light); opacity: 0.65;
  transition: background 0.5s, color 0.5s, opacity 0.5s;
}
.t-icon svg { width: 17px; height: 17px; }
.t-icon.active { background: var(--gold); color: var(--maroon-deep); opacity: 1; }

/* ============================================================
   HERO  (day → night)
   ============================================================ */
#hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  perspective: 900px;
  background: #cfe1f0; /* soft day sky, shown only until the art loads */
  /* day palette (default) */
  --hero-text: #5a2331;
  --hero-glow: rgba(255,255,255,0.7);
  --hero-accent: #9c4a45;
}
#hero.night {
  --hero-text: #fbf3df;
  --hero-glow: rgba(0,0,0,0.6);
  --hero-accent: var(--gold-light);
}

/* smooth day → night crossfade of the two matched paintings */
#hero .night-el { opacity: 0; transition: opacity 3s ease; }
#hero.night .night-el { opacity: 1; }
#hero .day-el { opacity: 1; transition: opacity 3s ease; }
#hero.night .day-el { opacity: 0; }

/* The painted hero already contains the sky, moon, stars and fairy
   lights — hide the CSS-generated versions so they don't clutter it. */
#hero.has-art #fairyLights,
#hero.has-art #stars { display: none; }
#hero.has-art .hero-img { inset: -4%; }

.hero-layer {
  position: absolute; inset: -6%;
  will-change: transform;
  pointer-events: none;
}

#stars { width: 112%; height: 112%; }

.celestial { display: grid; justify-content: start; align-content: start; padding: 14% 0 0 12%; }
.celestial svg { grid-area: 1 / 1; width: clamp(44px, 12vw, 64px); }
.moon-orb { color: #f3e3b3; filter: drop-shadow(0 0 18px rgba(243,227,179,0.75)); }

.hero-img { object-fit: cover; width: 112%; height: 112%; }

#fairyLights svg { width: 100%; height: 100%; overflow: visible; }
.wire { fill: none; stroke: rgba(40,20,25,0.45); stroke-width: 1; }
.bulb {
  fill: #ffdf9e;
  filter: drop-shadow(0 0 5px rgba(255,214,140,0.9));
  animation: glow 3.4s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { opacity: 0.55; } 50% { opacity: 1; }
}

.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,250,240,0.28) 0%, transparent 30%, transparent 64%, rgba(250,238,225,0.42) 100%);
  pointer-events: none;
}
.hero-veil-night {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,10,28,0.55) 0%, transparent 32%, transparent 62%, rgba(6,10,28,0.65) 100%);
  pointer-events: none;
}

/* Floral branches draping from the top edge */
.hero-top {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.hero-top img {
  width: 100%; height: auto; display: block;
  transform-origin: 50% 0%;
  animation: topSway 9s ease-in-out infinite;
  filter: drop-shadow(0 6px 10px rgba(20,15,30,0.18));
}
@keyframes topSway {
  0%, 100% { transform: rotate(-0.45deg); }
  50% { transform: rotate(0.45deg); }
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 1.4rem;
  width: 100%;
  will-change: transform;
}
/* soft dark halo behind the text — only in night mode, where the cream
   text needs help over the dark painting (day text is dark on light sky) */
.hero-content::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 150%; height: 155%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(8,12,32,0.62), rgba(8,12,32,0.34) 52%, transparent 78%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.6s ease;
}
#hero.night .hero-content::before { opacity: 1; }

.blessing-line {
  font-family: var(--sans); font-weight: 300;
  font-size: 0.66rem; letter-spacing: 0.38em; text-transform: uppercase;
  line-height: 2.2;
  color: var(--hero-text);
  text-shadow: 0 1px 3px var(--hero-glow), 0 2px 14px var(--hero-glow);
  transition: color 2.6s ease, text-shadow 2.6s ease;
}
.hero-names {
  font-size: clamp(2.6rem, 11.5vw, 4.2rem);
  line-height: 1.05;
  margin: 1.3rem auto 0.9rem;
  max-width: 100%;
  color: var(--hero-text);
  text-shadow: 0 1px 4px var(--hero-glow), 0 3px 22px var(--hero-glow);
  transition: color 2.6s ease, text-shadow 2.6s ease;
}
.hero-names .amp { font-size: 0.42em; opacity: 0.85; }
.hero-date {
  font-family: var(--sans); font-weight: 300;
  font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--hero-accent);
  text-shadow: 0 1px 4px var(--hero-glow);
  transition: color 2.6s ease, text-shadow 2.6s ease;
}

.scroll-cue {
  position: absolute; bottom: calc(1.6rem + env(safe-area-inset-bottom)); left: 0; right: 0;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font-family: var(--sans); font-weight: 300;
  font-size: 0.58rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--hero-text);
  opacity: 0.85;
  transition: color 3s ease;
}
.scroll-cue svg { width: 18px; animation: dip 1.8s ease-in-out infinite; }
@keyframes dip { 0%,100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(6px); opacity: 1; } }

/* ============================================================
   COUNTDOWN
   ============================================================ */
#countdown { text-align: center; }

.mono-lockup svg { width: 150px; }
.mono-serif.light { fill: var(--gold-light); }

.hashtag {
  font-family: var(--sans); font-weight: 300;
  letter-spacing: 0.4em; font-size: 0.74rem;
  color: var(--gold-light); margin-top: 0.4rem;
}

.flourish { margin: 2.4rem auto 1.6rem; color: var(--gold); }
.flourish svg { width: 150px; display: block; margin: 0 auto; }

.count-grid {
  display: flex; justify-content: center; gap: clamp(1.1rem, 6vw, 2.6rem);
  margin-top: 2.2rem;
}
.count-grid b {
  display: block;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 9vw, 2.9rem);
  color: #f6ead0;
}
.count-grid span {
  font-family: var(--sans); font-weight: 300;
  font-size: 0.56rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-light);
}

.ghost-btn {
  margin-top: 2.6rem;
  background: transparent; color: var(--gold-light);
  border: 1px solid rgba(198,163,92,0.6); border-radius: 999px;
  font-family: var(--sans); font-weight: 300;
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 0.85rem 1.6rem; cursor: pointer;
  transition: background 0.4s, color 0.4s;
}
.ghost-btn:active { background: var(--gold); color: var(--maroon-deep); }

/* ============================================================
   DETAILS / EVENTS
   ============================================================ */
#details { text-align: center; padding-bottom: 2rem; }

.bouquet { width: min(210px, 55vw); margin: 0 auto 1.6rem; display: block; }

.event { margin-top: 4.2rem; }
.event-name {
  font-family: var(--script);
  font-size: clamp(2rem, 8vw, 2.7rem);
  color: var(--maroon);
}
.event-date {
  font-family: var(--sans); font-weight: 300;
  letter-spacing: 0.34em; font-size: 0.72rem; text-transform: uppercase;
  color: #a44a52; margin-top: 0.7rem;
}
.event-time {
  font-family: var(--serif); font-style: italic;
  font-size: 1.02rem; margin-top: 0.55rem; color: var(--ink);
}
.event-extra { font-size: 0.98rem; margin-top: 0.4rem; color: var(--ink); }

/* Ornate frame */
.venue-frame {
  position: relative;
  margin: 2.2rem auto 0;
  max-width: 330px;
  padding: 14px;
  background:
    linear-gradient(var(--ivory), var(--ivory)) padding-box,
    linear-gradient(160deg, #7d3143, var(--maroon) 40%, #8a4152 70%, var(--maroon)) border-box;
  border: 2px solid transparent;
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(63,20,32,0.18);
  transform-style: preserve-3d;
}
.venue-frame::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid rgba(87,31,44,0.45);
  border-radius: 20px;
  pointer-events: none;
}
.corner {
  position: absolute; width: 44px; height: 44px; color: var(--maroon);
}
.corner svg { width: 100%; height: 100%; }
.corner.tl { top: -10px; left: -10px; }
.corner.tr { top: -10px; right: -10px; transform: scaleX(-1); }
.corner.bl { bottom: -10px; left: -10px; transform: scaleY(-1); }
.corner.br { bottom: -10px; right: -10px; transform: scale(-1); }

.venue-inner { padding: 1.6rem 1.1rem 1.4rem; }
.venue-label { font-family: var(--script); font-size: 1.7rem; color: var(--maroon); }
.venue-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.25rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--maroon); margin-top: 0.6rem;
}
.venue-sub {
  font-family: var(--sans); font-weight: 300;
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: #8b5a63; margin-top: 0.35rem;
}
.venue-art {
  margin-top: 1.1rem; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #e7dfc9, #d9cfb2);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
}
.venue-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.venue-art .art-fallback {
  font-family: var(--script); font-size: 1.5rem; color: #a08c62;
  padding: 1rem; text-align: center;
}

.maps-row {
  margin-top: 1.8rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem;
}
.maps-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--maroon); color: var(--ivory);
  border-radius: 999px; text-decoration: none;
  font-family: var(--sans); font-weight: 300;
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 0.9rem 1.7rem;
  box-shadow: 0 10px 26px rgba(63,20,32,0.3);
}

/* Dress code */
.dress { margin-top: 3.4rem; }
.dress-title { font-family: var(--script); font-size: 1.9rem; color: var(--maroon); }
.dress-people { width: min(320px, 86vw); margin: 1.2rem auto -34px; display: block; position: relative; z-index: 2; }
.dress-card {
  position: relative;
  max-width: 340px; margin: 0 auto;
  background: #faf7ee;
  border-radius: 22px;
  padding: 2.6rem 1.6rem 2rem;
  box-shadow: 0 16px 40px rgba(74,59,49,0.14);
}
.dress-theme { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--maroon); }
.dress-tags { font-style: italic; color: #a44a52; margin-top: 0.7rem; font-size: 1rem; }
.dress-note { margin-top: 0.8rem; font-size: 1rem; line-height: 1.6; }

.event-divider { margin: 4.2rem auto 0; color: var(--gold); }
.event-divider svg { width: 130px; display: block; margin: 0 auto; }

/* ============================================================
   NOTE
   ============================================================ */
#note { text-align: center; background: linear-gradient(180deg, var(--ivory), var(--ivory-deep)); }
.sketch { width: min(150px, 40vw); margin: 0 auto 1rem; display: block; opacity: 0.9; }
.note-body { max-width: 30rem; margin: 2.4rem auto 0; }
.note-body p {
  font-style: italic; font-size: 1.12rem; line-height: 1.8;
  color: #6b4a51; margin-bottom: 1.6rem;
}
.estate-line { width: min(420px, 92vw); margin: 1.6rem auto 0; display: block; opacity: 0.85; }

/* ============================================================
   PORTRAIT
   ============================================================ */
#portrait { text-align: center; background: var(--ivory-deep); }

.oval-frame {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 3 / 4;
  margin: 0 auto 2rem;
  transform-style: preserve-3d;
}
.oval-inner {
  position: absolute; inset: 7%;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(166,124,82,0.7);
  outline: 1px solid rgba(166,124,82,0.35);
  outline-offset: 7px;
  background: linear-gradient(160deg, #e2d8bf, #cfc2a2);
  box-shadow: 0 24px 60px rgba(74,59,49,0.28);
}
.oval-inner img {
  width: 100%; height: 100%; object-fit: cover;
  /* warm, dreamy, softly-aged tone to match the antique-gold theme */
  filter: sepia(0.24) saturate(1.08) contrast(1.05) brightness(1.03);
}
/* romantic wash: soft light bloom at the top + warm vignetted edges */
.oval-inner::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(85% 55% at 50% 14%, rgba(255,246,222,0.20), transparent 60%),
    radial-gradient(78% 78% at 50% 46%, transparent 52%, rgba(58,20,32,0.40) 100%);
  box-shadow: inset 0 0 34px rgba(58,20,32,0.30);
  pointer-events: none;
}
.oval-placeholder {
  display: none;
  position: absolute; inset: 0;
  place-items: center;
  font-size: 3rem; color: #9d8354;
}
.oval-frame.empty .oval-placeholder { display: grid; }
.oval-sprigs { position: absolute; inset: -4%; color: #a67c52; opacity: 0.8; }
.rings { font-size: 1.6rem; margin-bottom: 0.8rem; }

/* ============================================================
   BLESSINGS
   ============================================================ */
#blessings { text-align: center; }

.bless-btn {
  margin-top: 2.4rem;
  background: linear-gradient(160deg, var(--gold), #a9843f);
  color: var(--maroon-deep);
  border: none; border-radius: 999px;
  font-family: var(--sans); font-weight: 400;
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 1.05rem 2.1rem; cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  transition: transform 0.15s ease;
}
.bless-btn:active { transform: scale(0.94); }

#wishForm {
  display: flex; gap: 0.6rem;
  max-width: 22rem; margin: 2.4rem auto 0;
}
#wishInput {
  flex: 1;
  background: rgba(244,240,228,0.08);
  border: 1px solid rgba(233,213,163,0.4);
  border-radius: 999px;
  color: var(--ivory);
  font-family: var(--serif); font-style: italic; font-size: 1rem;
  padding: 0.85rem 1.2rem;
  outline: none;
}
#wishInput::placeholder { color: rgba(233,213,163,0.55); }
#wishForm button {
  width: 48px; border-radius: 50%;
  background: var(--gold); color: var(--maroon-deep);
  border: none; font-size: 1rem; cursor: pointer;
}
#wishList { max-width: 24rem; margin: 1.8rem auto 0; }
#wishList p {
  font-style: italic; font-size: 1.02rem; line-height: 1.5;
  color: #f0e3c6; margin-top: 0.9rem; opacity: 0.9;
}
#wishList p::before { content: "“"; } #wishList p::after { content: "”"; }

.wish-float {
  position: fixed; z-index: 55;
  font-family: var(--script); font-size: 1.5rem; color: var(--gold-light);
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  animation: floatUp 5s ease-out forwards;
}
@keyframes floatUp {
  0% { transform: translateY(0) rotate(-3deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(-72vh) rotate(4deg); opacity: 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
#rsvp { text-align: center; padding-bottom: 0; }
.compliments { margin-top: 2rem; font-size: 1.05rem; line-height: 1.9; color: #6b4a51; }
.compliments span {
  font-family: var(--sans); font-weight: 300;
  letter-spacing: 0.28em; text-transform: uppercase; font-size: 0.72rem;
}
.rsvp-row { display: flex; gap: 0.8rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pill-btn {
  background: var(--maroon); color: var(--ivory);
  text-decoration: none; border-radius: 999px;
  font-family: var(--sans); font-weight: 300;
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 0.95rem 1.7rem;
}
.pill-btn.outline { background: transparent; color: var(--maroon); border: 1px solid var(--maroon); }
.footer-estate { width: min(560px, 100vw); margin: 3rem auto 0; display: block; }
.made-with {
  font-family: var(--sans); font-weight: 300;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: #9c8a80;
  padding: 2.2rem 0 calc(1.6rem + env(safe-area-inset-bottom));
}

/* ============================================================
   DECORATIVE ILLUSTRATION SLOTS
   (images appear automatically when dropped into assets/images/)
   ============================================================ */
/* white-background art on ivory sections blends in automatically */
.deco-m { mix-blend-mode: multiply; }
/* gold-on-black art on maroon sections blends in automatically */
.deco-gold {
  mix-blend-mode: screen;
  width: min(220px, 56vw);
  display: block; margin: 2.4rem auto 0;
}

.garland {
  width: 100%; display: block;
  margin: -4.5rem auto 1.8rem;
  pointer-events: none;
}

.sec-corner {
  position: absolute; top: 0;
  width: clamp(90px, 26vw, 150px);
  opacity: 0.9; pointer-events: none;
}
.sec-corner.tl { left: 0; }
.sec-corner.tr { right: 0; transform: scaleX(-1); }

.deco-divider {
  width: min(330px, 80vw);
  display: block; margin: 3rem auto 0;
}
.deco-divider.top { margin: 0 auto 2.6rem; }

.flutter {
  position: absolute;
  width: clamp(42px, 12vw, 60px);
  pointer-events: none; z-index: 2; opacity: 0.9;
  animation: flutter 7s ease-in-out infinite;
}
.flutter.f1 { top: 10%; left: 5%; }
.flutter.f2 { top: 36%; right: 6%; scale: -1 1; animation-delay: 2.4s; animation-duration: 9s; }
@keyframes flutter {
  0%, 100% { translate: 0 0; rotate: -5deg; }
  50% { translate: 9px -20px; rotate: 6deg; }
}

.frame-overlay {
  position: absolute; inset: -9%;
  width: 118%; height: 118%;
  object-fit: contain;
  pointer-events: none; z-index: 3;
}
.oval-frame.framed .oval-sprigs { display: none; }
.oval-frame.framed .oval-inner { outline: none; border: none; }

/* ============================================================
   SCROLL REVEAL (3D)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: perspective(700px) translateY(42px) rotateX(9deg);
  transform-origin: 50% 100%;
  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal.in {
  opacity: 1;
  transform: perspective(700px) translateY(0) rotateX(0);
}

.tilt-card { transition: transform 0.3s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .tap-ring, .scroll-cue svg, .eq i { animation: none; }
}

/* Slightly wider layouts on desktop, site stays a centered column */
@media (min-width: 760px) {
  .venue-frame { max-width: 380px; }
  .dress-card { max-width: 400px; }
}
