/* ============================================================
   Maheevan & Brannavi — Tamil Hindu Wedding Invitation
   Luxury cinematic styling
   ============================================================ */

:root {
  --gold:        #f5d27a;
  --gold-bright: #fff4c7;
  --gold-deep:   #c79029;
  --gold-soft:   #e6cd86;
  --maroon:      #8b0e0e;
  --maroon-deep: #5b0606;
  --maroon-dark: #2a0606;
  --maroon-night:#1a0303;
  --cream:       #fdf4d8;
  --cream-bg:    #fbf2dc;
  --ivory:       #fff9ec;
  --orange:      #ff7a59;
  --orange-soft: #ffb38d;
  --pink:        #ff8db0;
  --pink-soft:   #fbd6df;

  --ink:         #1a0a05;
  --ink-soft:    #4a2a1f;

  /* Fonts */
  --f-display:   'Cinzel', 'Cormorant Garamond', serif;
  --f-script:    'Tangerine', 'Great Vibes', cursive;
  --f-elegant:   'Cormorant Garamond', 'Cormorant', serif;
  --f-body:      'Inter', system-ui, sans-serif;

  --shadow-gold: 0 0 22px rgba(245, 210, 122, 0.35);
  --shadow-soft: 0 12px 40px rgba(26, 3, 3, 0.18);
  --shadow-deep: 0 20px 60px rgba(26, 3, 3, 0.4);

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cinema: cubic-bezier(0.7, 0, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--f-body);
  font-weight: 400;
  background: var(--cream-bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* Subtle paper / parchment texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(rgba(139, 14, 14, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(245, 210, 122, 0.05) 1px, transparent 1px);
  background-size: 40px 40px, 60px 60px;
  background-position: 0 0, 20px 30px;
  opacity: 0.6;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ========== LOADER ========== */
.loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, #3a0a0a 0%, var(--maroon-night) 100%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 1s var(--ease-out), visibility 1s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mandala { animation: spinSlow 18s linear infinite; }
.loader__text {
  font-family: var(--f-script);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--gold);
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(245, 210, 122, 0.5);
}
.loader__sub {
  font-family: var(--f-elegant);
  font-style: italic;
  color: var(--gold-bright);
  opacity: 0.75;
  letter-spacing: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ========== PETALS CANVAS ========== */
.petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ========================================================
   HERO
   ======================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245, 210, 122, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(139, 14, 14, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #2a0606 0%, #3d0808 50%, var(--maroon-dark) 100%);
  color: var(--cream);
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.hero__glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 90%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 200, 100, 0.25) 0%, transparent 55%);
  animation: glowPulse 7s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.05); }
}
.hero__mandala {
  position: absolute;
  width: 60vw;
  max-width: 700px;
  opacity: 0.22;
  filter: blur(0.4px);
}
.hero__mandala--left  { top: -20%; left: -25%; animation: spinSlow 80s linear infinite; }
.hero__mandala--right { bottom: -30%; right: -25%; animation: spinSlow 90s linear infinite reverse; }
.hero__mandala svg { width: 100%; height: 100%; color: var(--gold); }

.hero__temple {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 36vh;
  z-index: -1;
}

/* ---- diyas in hero bg ---- */
.diya {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, #c79029 0%, #8b0e0e 100%);
  box-shadow: 0 0 20px rgba(255, 200, 100, 0.6), 0 0 40px rgba(255, 150, 80, 0.25);
}
.diya .flame {
  position: absolute;
  top: -10px; left: 50%;
  width: 5px; height: 10px;
  background: radial-gradient(ellipse at 50% 70%, #fff4c7 0%, #ffb347 60%, transparent 100%);
  border-radius: 50% 50% 30% 30%;
  transform: translateX(-50%);
  animation: flicker 0.9s ease-in-out infinite alternate;
}
.diya--1 { top: 30%;  left: 12%;  animation: floatY 6s ease-in-out infinite; }
.diya--2 { top: 24%;  right: 14%; animation: floatY 7s ease-in-out infinite 0.5s; }
.diya--3 { top: 60%;  left: 8%;   animation: floatY 5s ease-in-out infinite 1s; }
@keyframes flicker {
  0%   { transform: translateX(-50%) scale(1) translateY(0);    opacity: 1; }
  100% { transform: translateX(-50%) scale(1.1) translateY(-2px); opacity: 0.85; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-15px); }
}

/* SVG flame animation */
.flame-svg { transform-origin: center bottom; animation: flameWiggle 1.1s ease-in-out infinite alternate; }
@keyframes flameWiggle {
  0%   { transform: scale(1) skewX(0deg); }
  100% { transform: scale(1.08) skewX(2deg); }
}
.lamp-glow { animation: glowPulse 4s ease-in-out infinite; transform-origin: center; }

/* ---- hero content ---- */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}
.hero__ornament {
  width: clamp(220px, 50vw, 360px);
  margin: 0 auto;
  color: var(--gold);
  opacity: 0.85;
}
.hero__ornament svg { width: 100%; height: auto; }
.hero__ornament--top { margin-bottom: 18px; }
.hero__ornament--bot { margin-top: 18px; }

.hero__title {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1;
  color: var(--gold-bright);
  text-shadow:
    0 0 30px rgba(245, 210, 122, 0.5),
    0 2px 20px rgba(0, 0, 0, 0.55),
    0 0 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 1px;
}
.hero__title-line {
  display: block;
  background: linear-gradient(180deg, #fff4c7 0%, #f5d27a 60%, #c79029 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title-line:last-child { font-style: italic; }

.hero__subtitle {
  font-family: var(--f-elegant);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.92;
  margin: 32px 0 22px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__names {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2rem, 5.6vw, 4rem);
  letter-spacing: 2px;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(8px, 2vw, 24px);
  text-shadow:
    0 2px 30px rgba(245, 210, 122, 0.55),
    0 2px 16px rgba(0, 0, 0, 0.55);
  margin-bottom: 18px;
}
.hero__name { display: inline-block; }
.hero__amp {
  display: inline-flex;
  align-items: center;
  width: clamp(40px, 5vw, 60px);
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(245, 210, 122, 0.5));
}
.hero__amp svg { width: 100%; height: auto; }

.hero__date {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: 4px;
  color: var(--gold);
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ---- open invitation button ---- */
.btn-open {
  position: relative;
  margin-top: 36px;
  padding: 16px 38px;
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--maroon-dark);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(245, 210, 122, 0.4),
    0 0 0 5px rgba(245, 210, 122, 0.15),
    0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.btn-open:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(245, 210, 122, 0.7),
    0 0 0 8px rgba(245, 210, 122, 0.15),
    0 14px 40px rgba(0, 0, 0, 0.5);
}
.btn-open__shine {
  position: absolute;
  top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  animation: shine 3.5s ease-in-out infinite;
}
.btn-open svg { transition: transform 0.4s; }
.btn-open:hover svg { transform: translateY(2px); }
@keyframes shine { 0% { left: -120%; } 60%, 100% { left: 130%; } }

/* ---- scroll cue ---- */
.scroll-cue {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  opacity: 0.7;
  z-index: 3;
  animation: cueBounce 2.4s ease-in-out infinite;
}
.scroll-cue span {
  width: 1px; height: 26px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
}
.scroll-cue p {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}
@keyframes cueBounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* ========================================================
   GENERAL SECTIONS
   ======================================================== */
.section {
  position: relative;
  padding: clamp(80px, 12vh, 140px) 24px;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 3;
}
.section-head { text-align: center; margin-bottom: 60px; }
.eyebrow {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 6px;
  color: var(--maroon);
  text-transform: uppercase;
  opacity: 0.95;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--maroon-deep);
  line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #a82323 0%, #5b0606 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 16px auto 0;
  line-height: 1.6;
}
.divider {
  width: clamp(220px, 40vw, 320px);
  margin: 0 auto;
  color: var(--gold-deep);
  opacity: 0.85;
}
.divider svg { width: 100%; height: auto; }
.divider--inline { margin: 20px auto; }

/* ========================================================
   COUPLE SECTION
   ======================================================== */
.couple-section {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 200, 140, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 140, 180, 0.08) 0%, transparent 55%);
}
.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  max-width: 1100px;
  margin: 0 auto;
}
.couple-card {
  position: relative;
  text-align: center;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px) clamp(28px, 4vw, 40px);
  background:
    linear-gradient(135deg, rgba(255, 249, 236, 0.95) 0%, rgba(251, 242, 220, 0.85) 100%);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(199, 144, 41, 0.25),
    0 0 0 6px rgba(255, 249, 236, 0.6),
    0 0 0 7px rgba(199, 144, 41, 0.2),
    var(--shadow-soft);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s;
}
.couple-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 0 0 1px rgba(199, 144, 41, 0.5),
    0 0 0 6px rgba(255, 249, 236, 0.7),
    0 0 0 7px rgba(199, 144, 41, 0.4),
    0 0 40px rgba(245, 210, 122, 0.35),
    var(--shadow-deep);
}
.couple-card__corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--gold-deep);
  opacity: 0.7;
  pointer-events: none;
}
.couple-card__corner--tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.couple-card__corner--tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.couple-card__corner--bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.couple-card__corner--br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.couple-card__photo-wrap {
  position: relative;
  width: clamp(160px, 22vw, 220px);
  height: clamp(160px, 22vw, 220px);
  margin: 0 auto 24px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-deep), var(--gold));
  background-size: 200% 200%;
  animation: borderShimmer 6s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(139, 14, 14, 0.2);
}
.couple-card__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 3px solid var(--ivory);
}
.couple-card__photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(199, 144, 41, 0.5);
  animation: spinSlow 30s linear infinite;
}
@keyframes borderShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.couple-card__floral {
  position: absolute;
  width: 38px; height: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><g fill='%23ff7a59' opacity='0.85'><circle cx='12' cy='12' r='3.5'/><circle cx='20' cy='8' r='3.5'/><circle cx='28' cy='14' r='3.5'/><circle cx='14' cy='22' r='3.5'/><circle cx='24' cy='24' r='3.5'/></g><g fill='%23f5d27a'><circle cx='12' cy='12' r='1.2'/><circle cx='20' cy='8' r='1.2'/><circle cx='28' cy='14' r='1.2'/><circle cx='14' cy='22' r='1.2'/><circle cx='24' cy='24' r='1.2'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.85;
}
.couple-card__floral--tl { top: -10px; left: -10px; }
.couple-card__floral--br { bottom: -6px; right: -10px; transform: rotate(180deg); }

.couple-card__role {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--maroon);
  opacity: 0.92;
  margin-bottom: 6px;
}
.couple-card__name {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  color: var(--maroon-deep);
  line-height: 1;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #a82323 0%, #5b0606 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.couple-card__mini-divider {
  width: 60px;
  height: 1px;
  background: var(--gold-deep);
  margin: 6px auto 14px;
  position: relative;
}
.couple-card__mini-divider::before,
.couple-card__mini-divider::after {
  content: '';
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold-deep);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.couple-card__mini-divider::before { left: -8px; }
.couple-card__mini-divider::after  { right: -8px; }

.couple-card__parents {
  font-family: var(--f-elegant);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.65;
}
.couple-card__parents strong {
  font-weight: 700;
  color: var(--maroon-deep);
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-top: 6px;
}

.couple-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--gold-deep);
  height: 100%;
}
.couple-connector svg {
  width: 60px;
  height: 200px;
}
.couple-connector svg g { animation: heartBeat 1.6s ease-in-out infinite; transform-origin: center; }
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.18); }
  40%      { transform: scale(1); }
  60%      { transform: scale(1.1); }
}

/* ========================================================
   WEDDING DETAILS
   ======================================================== */
.details-section {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 122, 89, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 210, 122, 0.1) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.cd-unit {
  position: relative;
  width: clamp(78px, 14vw, 120px);
  padding: 18px 8px 14px;
  text-align: center;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 249, 236, 0.95) 0%, rgba(251, 242, 220, 0.85) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(199, 144, 41, 0.3),
    0 8px 24px rgba(139, 14, 14, 0.1);
  transition: transform 0.4s var(--ease-out);
}
.cd-unit:hover { transform: translateY(-4px); }
.cd-num {
  display: block;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--maroon-deep);
  line-height: 1;
  background: linear-gradient(180deg, #a82323 0%, #5b0606 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cd-label {
  display: block;
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--maroon);
  opacity: 0.95;
  margin-top: 8px;
}

/* invitation card */
.invite-card {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 4px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  box-shadow: var(--shadow-deep);
}
.invite-card__inner {
  position: relative;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 249, 236, 1) 0%, rgba(251, 242, 220, 0.97) 70%, rgba(245, 220, 180, 0.92) 100%);
  border-radius: 4px;
  text-align: center;
}
.invite-card__inner::before,
.invite-card__inner::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid var(--gold-deep);
  opacity: 0.5;
  pointer-events: none;
}
.invite-card__inner::before { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.invite-card__inner::after  { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.invite-card__crest {
  width: 80px;
  margin: 0 auto 24px;
  animation: crestGlow 3s ease-in-out infinite, crestPulse 2.6s ease-in-out infinite;
  transform-origin: center;
  will-change: filter, transform;
}
.invite-card__crest svg { width: 100%; height: auto; overflow: visible; }

@keyframes crestGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(245, 210, 122, 0.55))
            drop-shadow(0 0 18px rgba(255, 200, 100, 0.30));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(245, 210, 122, 1))
            drop-shadow(0 0 34px rgba(255, 200, 100, 0.6))
            drop-shadow(0 0 50px rgba(255, 180, 80, 0.35));
  }
}
@keyframes crestPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

.crest-ring {
  transform-origin: 50px 50px;
  animation: spinSlow 22s linear infinite;
}

.crest-text {
  animation: crestTextPulse 2.6s ease-in-out infinite;
}
@keyframes crestTextPulse {
  0%, 100% { opacity: 0.98; }
  50%      { opacity: 1; }
}

.crest-sheen {
  animation: crestSheenSweep 3.8s ease-in-out infinite;
}
@keyframes crestSheenSweep {
  0%        { transform: translateX(0); }
  60%, 100% { transform: translateX(240px); }
}

.crest-sparkles circle { transform-origin: center; transform-box: fill-box; }
.crest-spark { animation: crestSparkle 2.2s ease-in-out infinite; }
.crest-spark--1 { animation-delay: 0s;   }
.crest-spark--2 { animation-delay: 0.55s;}
.crest-spark--3 { animation-delay: 1.1s; }
.crest-spark--4 { animation-delay: 1.65s;}
@keyframes crestSparkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  40%, 60% { opacity: 1; transform: scale(1.3); }
}

.invite-card__date {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: 5px;
  color: var(--maroon-deep);
  text-transform: uppercase;
}

.invite-card + .invite-card { margin-top: clamp(40px, 6vw, 64px); }

.invite-card--reception .invite-card__inner {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 230, 200, 1) 0%, rgba(251, 232, 210, 0.97) 70%, rgba(245, 210, 175, 0.92) 100%);
}

.invite-card__eyebrow {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: clamp(0.82rem, 1.8vw, 1rem);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 auto 14px;
  opacity: 0.95;
  text-align: center;
  max-width: 100%;
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 3vw, 36px);
  align-items: stretch;
  margin: 24px 0;
}
.event-grid--single {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin: 24px auto;
}
.event {
  text-align: center;
  padding: 16px 8px;
  color: var(--maroon);
}
.event__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 210, 122, 0.25) 0%, transparent 70%);
  color: var(--maroon);
}
.event__icon svg { width: 36px; height: 36px; }
.event__label {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
  opacity: 1;
}
.event__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--maroon-deep);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  line-height: 1.3;
}
.event__sub {
  font-family: var(--f-elegant);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 12px;
}
.event__time {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-style: normal;
  color: var(--maroon-deep);
  margin: 12px 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.time-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold-deep);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(199, 144, 41, 0.7);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

.event__map {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 14px auto 0;
  padding: 11px 22px;
  border-radius: 30px;
  font-family: var(--f-elegant);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--maroon-deep);
  border: 1.5px solid var(--gold-deep);
  background: rgba(255, 249, 236, 0.75);
  transition: all 0.4s var(--ease-out);
  text-transform: uppercase;
  overflow: hidden;
}
.event__map::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(245, 210, 122, 0.5) 45%, rgba(255, 244, 199, 0.7) 50%, rgba(245, 210, 122, 0.5) 55%, transparent 100%);
  animation: shine 3.8s ease-in-out infinite;
  pointer-events: none;
}
.event__map:hover {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--maroon-deep);
  box-shadow: 0 0 20px rgba(245, 210, 122, 0.5);
  transform: translateY(-2px);
}

.event-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold-deep);
}
.event-divider__line {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-deep), transparent);
  min-height: 30px;
}
.event-divider__bell {
  display: inline-block;
  animation: bellRing 4s ease-in-out infinite;
  transform-origin: top center;
  filter: drop-shadow(0 0 8px rgba(245, 210, 122, 0.4));
}
@keyframes bellRing {
  0%, 70%, 100% { transform: rotate(0deg); }
  76% { transform: rotate(-14deg); }
  82% { transform: rotate(10deg); }
  88% { transform: rotate(-6deg); }
  94% { transform: rotate(3deg); }
}

.invite-card__bless {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gold-deep);
  text-transform: uppercase;
  opacity: 1;
}

.floating-diya {
  position: absolute;
  width: 18px;
  height: 22px;
  border-radius: 50% 50% 30% 30% / 65% 65% 35% 35%;
  background: radial-gradient(ellipse at 50% 100%, var(--gold-deep) 0%, var(--maroon-deep) 80%);
  box-shadow: 0 0 25px rgba(255, 200, 100, 0.65), 0 0 50px rgba(255, 150, 80, 0.25);
}
.floating-diya::before {
  content: '';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 14px;
  background: radial-gradient(ellipse at 50% 70%, #fff4c7 0%, #ffb347 65%, transparent 100%);
  border-radius: 50% 50% 20% 20%;
  animation: flicker 0.9s ease-in-out infinite alternate;
}
.floating-diya--1 { top: 12%;  left: 6%;   animation: floatY 5s ease-in-out infinite; }
.floating-diya--2 { top: 65%;  right: 6%;  animation: floatY 6s ease-in-out infinite 1.5s; }

/* ========================================================
   LOVE STORY
   ======================================================== */
.story-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 122, 89, 0.05) 0%, transparent 60%);
}
.timeline {
  list-style: none;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--gold-deep) 12%, var(--gold-deep) 88%, transparent 100%);
  box-shadow: 0 0 12px rgba(245, 210, 122, 0.4);
}
.timeline__item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 32px;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -5px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright) 0%, var(--gold) 60%, var(--gold-deep) 100%);
  box-shadow: 0 0 0 4px rgba(245, 210, 122, 0.15), 0 0 16px rgba(245, 210, 122, 0.6);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.timeline__dot--final {
  background: radial-gradient(circle, #ff7a59 0%, var(--maroon) 60%, var(--maroon-deep) 100%);
  box-shadow: 0 0 0 4px rgba(139, 14, 14, 0.15), 0 0 20px rgba(255, 122, 89, 0.5);
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}
.timeline__card {
  position: relative;
  padding: 24px 28px;
  background:
    linear-gradient(135deg, rgba(255, 249, 236, 0.96) 0%, rgba(251, 242, 220, 0.9) 100%);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(199, 144, 41, 0.2),
    0 12px 30px rgba(139, 14, 14, 0.08);
  transition: all 0.5s var(--ease-out);
}
.timeline__card:hover {
  transform: translateX(6px);
  box-shadow:
    inset 0 0 0 1px rgba(199, 144, 41, 0.5),
    0 12px 30px rgba(139, 14, 14, 0.15),
    0 0 30px rgba(245, 210, 122, 0.2);
}
.timeline__date {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.timeline__title {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--maroon-deep);
  line-height: 1.1;
  margin-bottom: 8px;
}
.timeline__text {
  font-family: var(--f-elegant);
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.timeline__card--final {
  background:
    linear-gradient(135deg, rgba(255, 230, 200, 0.96) 0%, rgba(251, 214, 223, 0.85) 100%);
}

/* ========================================================
   RSVP
   ======================================================== */
.rsvp-section {
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 140, 180, 0.06) 0%, transparent 50%);
}
.rsvp-form {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 249, 236, 0.55) 0%, rgba(251, 242, 220, 0.4) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(199, 144, 41, 0.3);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 30px 60px rgba(139, 14, 14, 0.1),
    0 0 40px rgba(245, 210, 122, 0.15);
}
.field {
  position: relative;
  margin-bottom: 32px;
}

/* Clean dedicated row — no nested .field conflicts */
.form-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
  align-items: start;
}
.form-col { display: flex; flex-direction: column; }
.form-col--guests { justify-content: flex-start; }

.form-legend {
  display: block;
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--maroon-deep);
  margin-bottom: 14px;
}

.form-section-label {
  display: grid;
  grid-template-columns: minmax(12px, 1fr) auto minmax(12px, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  column-gap: 14px;
  row-gap: 6px;
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--maroon-deep);
  text-align: center;
  margin: 4px 0 22px;
  line-height: 1.4;
}
.form-section-label::before,
.form-section-label::after {
  content: '';
  height: 1px;
  width: 100%;
  min-width: 0;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
  grid-row: 1 / span 2;
  align-self: center;
}
.form-section-label::before { grid-column: 1; }
.form-section-label::after  { grid-column: 3; }
.form-section-label__title,
.form-section-label__date {
  grid-column: 2;
  text-transform: uppercase;
}
.form-section-label__title {
  grid-row: 1;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--maroon-deep);
}
.form-section-label__date {
  grid-row: 2;
  font-size: clamp(0.82rem, 1.65vw, 0.95rem);
  letter-spacing: 2.5px;
  font-weight: 600;
  color: var(--maroon-deep);
}
.form-section-label sup { font-size: 0.65em; top: -0.4em; }
.form-row + .form-section-label { margin-top: 62px; }

.form-input {
  width: 100%;
  padding: 12px 4px;
  font-family: var(--f-elegant);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(199, 144, 41, 0.5);
  outline: none;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.form-input:focus {
  border-bottom-color: var(--gold-deep);
  box-shadow: 0 2px 0 -1px var(--gold);
}
.field input, .field textarea {
  width: 100%;
  padding: 16px 4px 8px;
  font-family: var(--f-elegant);
  font-size: 1.1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(199, 144, 41, 0.4);
  outline: none;
  transition: border-color 0.4s;
}
.field input::placeholder, .field textarea::placeholder { opacity: 0; }
.field textarea { resize: vertical; min-height: 80px; }
.field label {
  position: absolute;
  left: 4px;
  top: 16px;
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--maroon-deep);
  opacity: 0.92;
  pointer-events: none;
  transition: all 0.35s var(--ease-out);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -6px;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--maroon-deep);
  opacity: 1;
  font-style: normal;
  font-weight: 700;
}
.field__line {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold), var(--gold-deep));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s var(--ease-out);
  box-shadow: 0 0 8px rgba(245, 210, 122, 0.4);
}
.field input:focus ~ .field__line,
.field textarea:focus ~ .field__line { transform: scaleX(1); }

/* Pulsing glow on empty input fields — draws attention so users notice them */
@keyframes field-attention {
  0%, 100% {
    border-bottom-color: rgba(101, 67, 3, 0.1);
    box-shadow: 0 2px 0 -1px rgba(245, 210, 122, 0);
  }
  50% {
    border-bottom-color: #fff4c7;
    box-shadow:
      0 4px 18px rgba(255, 180, 50, 0.95),
      0 0 36px rgba(245, 210, 122, 0.85),
      0 0 60px rgba(255, 200, 60, 0.45);
  }
}
.rsvp-form:not(.is-submitted) .field input:placeholder-shown:not(:focus),
.rsvp-form:not(.is-submitted) .field textarea:placeholder-shown:not(:focus),
.rsvp-form:not(.is-submitted) .form-input.is-pristine:not(:focus) {
  animation: field-attention 1.8s ease-in-out infinite;
}

.radio-group { display: flex; gap: 14px; flex-wrap: wrap; }
.radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 16px 8px 8px;
  border-radius: 24px;
  transition: background 0.3s;
}
.radio:hover { background: rgba(245, 210, 122, 0.1); }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio__custom {
  position: relative;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-deep);
  display: inline-block;
  transition: all 0.3s;
}
.radio__custom::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright) 0%, var(--gold-deep) 100%);
  transform: scale(0);
  transition: transform 0.3s var(--ease-out);
}
.radio input:checked + .radio__custom { border-color: var(--maroon); box-shadow: 0 0 12px rgba(245, 210, 122, 0.5); }
.radio input:checked + .radio__custom::after { transform: scale(1); }

/* Pulse the radio circles while the group has no selection */
@keyframes radio-attention {
  0%, 100% {
    border-color: rgba(199, 144, 41, 0.55);
    box-shadow: 0 0 0 rgba(245, 210, 122, 0);
    transform: scale(1);
  }
  50% {
    border-color: #fff4c7;
    box-shadow:
      0 0 22px rgba(255, 180, 50, 1),
      0 0 46px rgba(245, 210, 122, 0.85),
      0 0 70px rgba(255, 200, 60, 0.45);
    transform: scale(1.28);
  }
}
.rsvp-form:not(.is-submitted) .form-col--attend:not(:has(input:checked)) .radio__custom {
  animation: radio-attention 1.8s ease-in-out infinite;
}
.radio__label {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--maroon-deep);
}

.btn-submit {
  position: relative;
  width: 100%;
  padding: 16px 28px;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ivory);
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  border-radius: 50px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(245, 210, 122, 0.4),
    0 12px 30px rgba(139, 14, 14, 0.3);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(245, 210, 122, 0.7),
    0 16px 40px rgba(139, 14, 14, 0.4),
    0 0 30px rgba(245, 210, 122, 0.25);
}
.btn-submit__shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(245, 210, 122, 0.4) 50%, transparent);
}
.btn-submit:hover .btn-submit__shine { animation: shine 1.2s ease-out; }

/* Sending state — rotating spinner + label that replaces the form */
.rsvp-sending {
  display: none;
  max-width: 500px;
  margin: 0 auto;
  padding: 70px 24px;
  text-align: center;
  animation: rsvp-done-in 0.5s var(--ease-out) both;
}
.rsvp-sending.is-visible { display: block; }
.rsvp-sending__spinner {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 5px solid rgba(199, 144, 41, 0.28);
  border-top-color: #fff4c7;
  border-right-color: var(--gold-bright);
  border-bottom-color: var(--maroon);
  box-shadow:
    0 0 24px rgba(255, 244, 199, 0.9),
    0 0 60px rgba(255, 180, 50, 0.75),
    0 0 110px rgba(245, 210, 122, 0.5),
    inset 0 0 18px rgba(255, 244, 199, 0.35);
  animation: spinner 0.9s linear infinite, spinner-glow 1.6s ease-in-out infinite;
}
.rsvp-sending__spinner::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(245, 210, 122, 0.4);
  filter: blur(2px);
  animation: spinner 2.4s linear infinite reverse;
}
@keyframes spinner { to { transform: rotate(360deg); } }
@keyframes spinner-glow {
  0%, 100% {
    box-shadow:
      0 0 24px rgba(255, 244, 199, 0.9),
      0 0 60px rgba(255, 180, 50, 0.75),
      0 0 110px rgba(245, 210, 122, 0.5),
      inset 0 0 18px rgba(255, 244, 199, 0.35);
  }
  50% {
    box-shadow:
      0 0 36px rgba(255, 244, 199, 1),
      0 0 90px rgba(255, 180, 50, 1),
      0 0 160px rgba(245, 210, 122, 0.85),
      inset 0 0 28px rgba(255, 244, 199, 0.6);
  }
}
.rsvp-sending__text {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--maroon-deep);
  text-transform: uppercase;
}
.rsvp-sending__text::after {
  content: '';
  display: inline-block;
  width: 1.4em;
  text-align: left;
  animation: dots 1.4s steps(4, end) infinite;
}
@keyframes dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}
.rsvp-section:has(.rsvp-sending.is-visible) .section-head { display: none; }

.rsvp-note {
  text-align: center;
  margin-top: 20px;
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 1rem;
  font-weight: 600;
  color: var(--maroon-deep);
  letter-spacing: 1px;
  opacity: 0.9;
}

/* thank you overlay */
.thanks {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(58, 10, 10, 0.92) 0%, rgba(26, 3, 3, 0.97) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s, visibility 0.6s;
  padding: 20px;
}
.thanks.is-active { opacity: 1; visibility: visible; }
.thanks__inner {
  position: relative;
  text-align: center;
  padding: 60px 40px;
  color: var(--cream);
  max-width: 500px;
}
.thanks__petals {
  position: absolute;
  inset: -30%;
  pointer-events: none;
}
.thanks__title {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5rem);
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(245, 210, 122, 0.5);
}
.thanks__text {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: var(--gold);
}
.thanks .divider { color: var(--gold); }

/* Inline permanent thank-you (replaces the form after submission) */
.rsvp-done {
  display: none;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
  animation: rsvp-done-in 0.8s var(--ease-out) both;
}
.rsvp-done.is-visible { display: block; }
.rsvp-form.is-hidden { display: none; }
.rsvp-section:has(.rsvp-form.is-hidden) .section-head { display: none; }
.rsvp-done__inner {
  padding: 30px 20px;
  color: var(--maroon-deep);
}
.rsvp-done__title {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--maroon);
  line-height: 1.15;
  margin: 14px 0 14px;
  text-shadow: 0 0 24px rgba(245, 210, 122, 0.45);
}
.rsvp-done__text {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--maroon-deep);
  margin: 0 0 18px;
  opacity: 0.92;
}
.rsvp-done .divider { color: var(--gold-deep); }
@keyframes rsvp-done-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   FOOTER
   ======================================================== */
.footer {
  position: relative;
  margin-top: 40px;
  padding: 80px 24px 50px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 200, 100, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, var(--maroon-dark) 0%, var(--maroon-night) 100%);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-bright) 50%, var(--gold) 70%, transparent);
  opacity: 0.8;
}
.footer__inner { max-width: 720px; margin: 0 auto; position: relative; }
.footer__lamp {
  width: clamp(110px, 14vw, 170px);
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 30px rgba(255, 200, 100, 0.55))
          drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
  animation: lamp-glow 3.5s ease-in-out infinite;
}
.footer__lamp-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
@keyframes lamp-glow {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(255, 200, 100, 0.5))  drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }
  50%      { filter: drop-shadow(0 0 42px rgba(255, 200, 100, 0.85)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }
}

.footer__quote {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.8;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 30px;
  letter-spacing: 1px;
}
.footer__names {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(3.6rem, 8vw, 5.4rem);
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

/* Shimmering gold names */
.footer__name {
  display: inline-block;
  background: linear-gradient(
    90deg,
    #c79029 0%,
    #f5d27a 20%,
    #fff4c7 38%,
    #ffffff 50%,
    #fff4c7 62%,
    #f5d27a 80%,
    #c79029 100%
  );
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(245, 210, 122, 0.45))
          drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
  animation: nameShimmer 5s linear infinite;
}
.footer__name + .footer__heart + .footer__name { animation-delay: -2.5s; }

/* Floating individual letters inside footer names */
.float-letter {
  display: inline-block;
  background: linear-gradient(180deg, #fff4c7 0%, #f5d27a 55%, #c79029 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(245, 210, 122, 0.55))
          drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
  animation: letter-float var(--t, 4s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
  will-change: transform;
}
@keyframes letter-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(calc(-1 * var(--y, 8px))) rotate(var(--r, 0deg)); }
}

@keyframes nameShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

.footer__heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
  animation: heartGlow 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 90, 120, 0.55))
          drop-shadow(0 0 18px rgba(245, 210, 122, 0.35));
}
.footer__heart svg {
  display: block;
  animation: heartBeat 1.4s ease-in-out infinite;
}
@keyframes heartGlow {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(255, 90, 120, 0.45))
            drop-shadow(0 0 14px rgba(245, 210, 122, 0.30));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(255, 90, 120, 0.85))
            drop-shadow(0 0 28px rgba(255, 200, 100, 0.6));
  }
}

.footer__infinity {
  width: 120px;
  margin: 10px auto 30px;
}
.inf-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 0;
  animation: infFlow 4s linear infinite;
  filter: drop-shadow(0 0 8px rgba(245, 210, 122, 0.5));
}
@keyframes infFlow {
  from { stroke-dashoffset: 400; }
  to   { stroke-dashoffset: 0; }
}

.footer__date {
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  opacity: 0.9;
}
.footer__credit {
  font-family: var(--f-elegant);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--gold-soft);
  opacity: 0.55;
}

.footer__floral {
  position: absolute;
  bottom: 0;
  width: 200px;
  height: 200px;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23f5d27a' stroke-width='1'><path d='M20 180 Q40 140 30 100 Q60 110 80 90 Q70 60 100 50 Q120 80 150 70 Q160 100 180 100 Q170 140 180 180'/><circle cx='40' cy='130' r='6'/><circle cx='80' cy='100' r='6'/><circle cx='120' cy='90' r='6'/><circle cx='150' cy='110' r='6'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}
.footer__floral--l { left: 0; background-position: bottom left; }
.footer__floral--r { right: 0; transform: scaleX(-1); background-position: bottom left; }

/* ========================================================
   REVEAL ANIMATIONS
   ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero internal reveals stagger via JS delays */
.hero .reveal { transition-duration: 1.6s; }

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 880px) {
  .couple-grid { grid-template-columns: 1fr; }
  .couple-connector { transform: rotate(90deg); height: 60px; }
  .couple-connector svg { height: 80px; }
  .event-grid { grid-template-columns: 1fr; }
  .event-divider { flex-direction: row; padding: 14px 0; }
  .event-divider__line { height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); min-height: auto; }
}

@media (max-width: 540px) {
  .hero { padding-top: 80px; }

  /* ---- RSVP form ---- */
  .form-row { grid-template-columns: 1fr; gap: 24px; }
  .form-col--guests .form-input { max-width: 160px; }

  /* Section label: title + date already stack on two lines; tighten for phone */
  .form-section-label {
    grid-template-columns: minmax(14px, 1fr) auto minmax(14px, 1fr);
    gap: 12px;
    margin: 6px 0 20px;
  }
  .form-row + .form-section-label { margin-top: 44px; }
  .form-section-label__title { font-size: 0.8rem; letter-spacing: 2.5px; }
  .form-section-label__date  { font-size: 0.72rem; letter-spacing: 2px; }

  /* ---- invitation / reception cards: slight compaction for phone ---- */
  .invite-card + .invite-card { margin-top: 32px; }
  .invite-card__inner { padding: 36px 22px; }
  .invite-card__inner::before,
  .invite-card__inner::after { width: 56px; height: 56px; top: 12px; left: 12px; }
  .invite-card__inner::after { top: auto; left: auto; bottom: 12px; right: 12px; }
  .invite-card__date { letter-spacing: 3px; }
  .invite-card__eyebrow { letter-spacing: 2.5px; }
  .invite-card__bless { letter-spacing: 2px; line-height: 1.55; }
  .divider--inline { margin: 16px auto; }

  .event-grid--single { margin: 18px auto; }
  .event__icon { width: 48px; height: 48px; margin: 0 auto 10px; }
  .event__icon svg { width: 30px; height: 30px; }
  .event__time { margin: 10px 0 4px; }
  .event__map { margin-top: 12px; padding: 10px 20px; font-size: 0.85rem; letter-spacing: 2px; }

  .countdown { gap: 8px; }
  .cd-unit { padding: 14px 4px 10px; }
}

@media (max-width: 380px) {
  .hero__names { font-size: 1.9rem; }
  .section { padding: 70px 16px; }
}

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