/* ═══════════════════════════════════════════════════
   AARAV & ANANYA – Royal Hindu Wedding 2026
   Luxury CSS — Ivory · Gold · Deep Maroon
   ═══════════════════════════════════════════════════ */

/* ── Google Fonts (loaded in HTML) ── */

/* ── Variables ── */
:root {
  /* Backgrounds */
  --ivory:        #FAF7F2;
  --ivory-mid:    #F4EDE1;
  --ivory-deep:   #EDE0CC;
  --ivory-warm:   #F9F3EB;

  /* Gold family */
  --gold:         #C9A84C;
  --gold-lt:      #E8C96A;
  --gold-dk:      #9A7430;
  --gold-pale:    rgba(201,168,76,0.12);
  --gold-line:    rgba(201,168,76,0.35);

  /* Maroon family */
  --maroon:       #4A0E1C;
  --maroon-mid:   #5C1A28;
  --maroon-lt:    #7B2638;

  /* Text */
  --txt-dk:       #2A1810;
  --txt-md:       #5A4035;
  --txt-lt:       #9A8070;
  --white:        #FFFFFF;
  --warm-dark:    #120D09;

  /* Typography */
  --serif:        'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --serif-pl:     'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans:         'Lato', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --script:       'Great Vibes', cursive;

  /* Easing */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.22, 1, 0.36, 1);

  /* Shadows */
  --shadow-sm:    0 4px 20px rgba(42,24,16,0.06);
  --shadow-md:    0 12px 48px rgba(42,24,16,0.10);
  --shadow-lg:    0 24px 80px rgba(42,24,16,0.16);
  --shadow-gold:  0 0 0 1px rgba(201,168,76,0.2), 0 16px 60px rgba(42,24,16,0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body   {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--txt-dk);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img    { max-width: 100%; display: block; }
a      { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul     { list-style: none; }

/* ── Global Section Utility ── */
.sec-eye {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--txt-dk);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.gold-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 auto;
}
.gold-bar::before, .gold-bar::after {
  content: '';
  display: block; width: 48px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.gold-bar::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.gold-bar-diamond {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}


/* ════════════════════════════════════════
   GANPATI STARTING PAGE (NEW DESIGN)
════════════════════════════════════════ */

/* ── Overlay ── */
.ganpati-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer;
  background:
    radial-gradient(circle at 50% 40%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 35%, #320808 0%, #170404 45%, #050001 100%);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.ganpati-overlay.fade-out {
  opacity: 0; visibility: hidden; pointer-events: none;
}

/* ── Royal Rajasthani Doors Overlay ── */
.door-overlay {
  position: absolute; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #110808;
  perspective: 1600px;
  pointer-events: auto;
}
.door-frame-wrapper {
  position: relative;
  width: min(90vw, 480px);
  height: min(135vw, 720px);
  display: flex;
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.9), 
    0 0 100px rgba(201, 168, 76, 0.15);
  border: 12px solid #2A3225; /* Ornate greenish-grey frame representing reference photo */
  border-radius: 8px;
  background: #110808;
  /* Double outer gold frame line */
  outline: 1px solid rgba(201, 168, 76, 0.45);
  outline-offset: -6px;
}
/* Inner arch shade to represent the frame top arch in the reference image */
.door-frame-wrapper::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 105;
}
.door-panel {
  position: absolute; top: 0; bottom: 0;
  width: 50%;
  background-image: url('wedimages/royal-door-gold.jpg');
  background-size: 200% 100%;
  background-repeat: no-repeat;
  transition: transform 2s cubic-bezier(0.25, 1, 0.35, 1), opacity 2s ease;
  z-index: 101;
}
.door-left {
  left: 0;
  background-position: 0% 50%;
  transform-origin: left center;
}
.door-right {
  right: 0;
  background-position: 100% 50%;
  transform-origin: right center;
}

/* Swing Open Rotation */
.door-overlay.open .door-left {
  transform: rotateY(-112deg);
  opacity: 0;
}
.door-overlay.open .door-right {
  transform: rotateY(112deg);
  opacity: 0;
}

/* Instruction Text Overlay */
.door-instruction {
  position: absolute; bottom: 6%; left: 50%;
  transform: translateX(-50%);
  z-index: 103;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.door-overlay.open .door-instruction {
  opacity: 0;
}
.door-tap-text {
  font-family: var(--sans);
  font-size: 0.72rem; letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #FFEAA5;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  animation: pulseOpacity 2.5s ease-in-out infinite;
}
.door-tap-sub {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 1.1rem;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

/* Open Welcome Panel = scale-up content & zoom-out background mandala, then fade out */
.ganpati-overlay.open .ge-content {
  animation: geBurst 1.8s var(--ease-spring) forwards;
}
.ganpati-overlay.open .ge-bg-mandala {
  animation: mandalaOut 1.8s var(--ease-in) forwards;
}
@keyframes geBurst {
  0%   { transform: scale(1);    opacity: 1; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1.12); opacity: 0; filter: blur(4px); }
}
@keyframes mandalaOut {
  0%   { transform: scale(1); opacity: 1; filter: blur(0); }
  100% { transform: scale(1.5); opacity: 0; filter: blur(8px); }
}

/* ── BG Mandala ── */
.ge-bg-mandala {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.ge-mandala-svg {
  width: min(100vw, 100vh);
  height: min(100vw, 100vh);
  animation: spinSlow 60s linear infinite;
}

/* ── Main Content ── */
.ge-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 0;
  padding: 20px 24px;
  max-width: 600px; width: 100%;
}

/* Cinematic Reveal Animations (deferred until doors open) */
.ge-reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
}
.doors-opened .ge-reveal {
  animation: geRevealUp 1.4s var(--ease-spring) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes geRevealUp {
  0% { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── Ganpati Frame (New Portrait Temple Arch Card) ── */
.ge-ganpati-frame {
  position: relative;
  width: min(85vw, 400px);
  height: min(127vw, 600px);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.85),
    0 0 100px rgba(201, 168, 76, 0.2);
  border: 4px solid var(--gold);
  border-radius: 8px;
  overflow: hidden;
  background: #110808;
  /* Outer gold frame line shadow */
  outline: 1px solid rgba(201, 168, 76, 0.5);
  outline-offset: 4px;
}
.ge-ganpati-frame::after {
  content: '';
  position: absolute; inset: 10px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}
.ge-ganpati-glow {
  position: absolute; inset: -20px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(201,168,76,0.3) 0%, rgba(201,168,76,0.08) 60%, transparent 90%);
  animation: ganeshGlow 4s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes ganeshGlow {
  from { transform: scale(0.95); opacity: 0.6; }
  to   { transform: scale(1.05); opacity: 1.0; }
}
.ge-ganpati-img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative; z-index: 1;
}
.ge-ganpati-fallback {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}

/* ── Corner ornaments ── */
.ge-corner {
  position: absolute;
  width: clamp(80px, 15vw, 150px);
  height: clamp(80px, 15vw, 150px);
  pointer-events: none;
  opacity: 0.75;
  z-index: 2;
}
.ge-corner-tl { top: 20px; left: 20px; animation: cornerFloatTL 4s ease-in-out infinite alternate; }
.ge-corner-tr { top: 20px; right: 20px; transform: scaleX(-1); animation: cornerFloatTR 4s ease-in-out infinite alternate; }
.ge-corner-bl { bottom: 20px; left: 20px; transform: scaleY(-1); animation: cornerFloatBL 4s ease-in-out infinite alternate; }
.ge-corner-br { bottom: 20px; right: 20px; transform: scale(-1); animation: cornerFloatBR 4s ease-in-out infinite alternate; }

.ge-corner-svg {
  width: 100%; height: 100%;
  display: block;
}

@keyframes cornerFloatTL {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-6px) scale(1.02); }
}
@keyframes cornerFloatTR {
  from { transform: translateY(0) scaleX(-1) scale(1); }
  to   { transform: translateY(-6px) scaleX(-1) scale(1.02); }
}
@keyframes cornerFloatBL {
  from { transform: translateY(0) scaleY(-1) scale(1); }
  to   { transform: translateY(-6px) scaleY(-1) scale(1.02); }
}
@keyframes cornerFloatBR {
  from { transform: translateY(0) scale(-1) scale(1); }
  to   { transform: translateY(-6px) scale(-1) scale(1.02); }
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.75; }
}

/* ── Background Floating Sparkles ── */
.ge-sparkles-container {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
  overflow: hidden;
}
.ge-sparkle {
  position: absolute;
  background: var(--gold-lt);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
  opacity: 0;
  animation: floatSparkle infinite ease-in-out;
}
@keyframes floatSparkle {
  0%, 100% { transform: translateY(0) scale(0.3); opacity: 0; }
  50% { transform: translateY(-45px) scale(1); opacity: 0.65; }
}

/* ── Scroll Animations ── */
.anim-fade {
  opacity: 0;
  animation: fadeIn 1.2s var(--ease-out) var(--d, 0s) both;
}
.anim-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out) var(--d, 0s),
              transform 0.9s var(--ease-out) var(--d, 0s);
}
.anim-up.visible { opacity: 1; transform: translateY(0); }

.anim-story {
  opacity: 0;
  transition: opacity 1s var(--ease-out) var(--d, 0s),
              transform 1s var(--ease-out) var(--d, 0s);
}
.anim-story.from-left  { transform: translateX(-48px); }
.anim-story.from-right { transform: translateX(48px); }
.anim-story.visible    { opacity: 1; transform: translateX(0); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ── Petals ── */
#petals {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.petal {
  position: absolute; top: -20px;
  border-radius: 50% 0 50% 0;
  opacity: 0;
  animation: petalDrop linear infinite;
  will-change: transform, opacity;
}
@keyframes petalDrop {
  0%   { opacity: 0; transform: rotate(0deg) translateY(0); }
  10%  { opacity: 0.45; }
  90%  { opacity: 0.15; }
  100% { opacity: 0; transform: rotate(540deg) translateY(105vh); }
}


/* ═══════════════════════════════════
   NAVBAR
═══════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.4s var(--ease);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 56px;
  max-width: 1440px; margin: 0 auto;
}
#nav.scrolled {
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201,168,76,0.15), 0 4px 30px rgba(42,24,16,0.06);
}
#nav.scrolled .nav-inner { padding: 16px 56px; }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem; font-weight: 500;
  font-style: italic;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.95);
  transition: color 0.4s;
}
#nav.scrolled .nav-logo { color: var(--gold-dk); }

.nav-menu {
  display: flex; align-items: center; gap: 40px;
}
.nl {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  position: relative;
  transition: color 0.3s;
}
.nl::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nl:hover::after, .nl.active::after { width: 100%; }
.nl:hover { color: var(--gold-lt); }
#nav.scrolled .nl { color: var(--txt-md); }
#nav.scrolled .nl:hover { color: var(--gold); }

.burger {
  display: none; flex-direction: column;
  gap: 5px; width: 26px;
}
.burger span {
  display: block; width: 100%; height: 1.5px;
  background: rgba(255,255,255,0.9);
  transition: all 0.35s var(--ease);
}
#nav.scrolled .burger span { background: var(--txt-dk); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh; min-height: 620px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--warm-dark);
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media picture {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%; /* Keeps faces in upper-center frame */
  transform-origin: center 28%;
  /* Cinematic color grading: warm, slightly contrasted, romantic */
  filter: brightness(0.92) contrast(1.08) saturate(1.1) sepia(0.08);
  animation: hZoom 30s ease-in-out infinite alternate;
  will-change: transform, filter;
}
@keyframes hZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.09); }
}
.hero-veil {
  position: absolute; inset: 0;
  /* Layered gradient: light at face level, darkening toward bottom for text */
  background: linear-gradient(
    180deg,
    rgba(8,5,2,0.28)  0%,
    rgba(8,5,2,0.22)  25%,
    rgba(8,5,2,0.42)  60%,
    rgba(8,5,2,0.80)  100%
  );
}
/* Cinematic side + radial vignette */
.hero-veil::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(4,2,1,0.6) 100%);
}

/* Corner ornaments */
.hero-deco {
  position: absolute; z-index: 2; opacity: 0;
  animation: fadeIn 1.6s ease 1s both;
}
.hero-deco.tl { top: 32px;  left: 32px; }
.hero-deco.tr { top: 32px;  right: 32px; transform: scaleX(-1); }
.hero-deco.bl { bottom: 32px; left: 32px; transform: scaleY(-1); }
.hero-deco.br { bottom: 32px; right: 32px; transform: scale(-1,-1); }

/* Gold frame lines */
.hero-frame {
  position: absolute; z-index: 2;
  opacity: 0;
  animation: fadeIn 1.8s ease 1.2s both;
}
.hero-frame-h {
  top: 60px; left: 80px; right: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}
.hero-frame-h.bottom { top: auto; bottom: 80px; }

.hero-body {
  position: relative; z-index: 3;
  text-align: center; padding: 0 32px;
  max-width: 800px; margin: 0 auto;
}
.hero-shubh {
  font-family: var(--script);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: rgba(201,168,76,0.75);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: block;
}
.hero-names {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 11vw, 8.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.hero-names .hw {
  font-family: var(--serif);
  font-size: 0.28em;
  font-style: italic;
  color: var(--gold-lt);
  letter-spacing: 0.3em;
  margin: 10px 0;
  font-weight: 300;
}
.hero-rule {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 20px;
}
.hr-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.65));
}
.hr-line:last-child {
  background: linear-gradient(90deg, rgba(201,168,76,0.65), transparent);
}
.hero-invite {
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  font-family: var(--sans);
}
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-style: italic; font-weight: 300;
  color: rgba(240,230,210,0.75);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.hero-big {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  font-weight: 400; font-style: italic;
  color: var(--ivory-mid);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.hero-date {
  font-family: var(--sans);
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  font-weight: 400; letter-spacing: 0.4em;
  color: var(--gold-lt);
  text-transform: uppercase;
}
.hero-date sup { font-size: 0.6em; vertical-align: super; }

/* Countdown */
.hero-countdown {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-top: 48px;
}
.cd-box {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(18, 13, 9, 0.45);
  border: 1.5px solid rgba(201, 168, 76, 0.4);
  border-radius: 50%;
  width: 96px; height: 96px; min-width: 96px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    0 12px 40px rgba(0,0,0,0.45), 
    inset 0 0 20px rgba(201,168,76,0.06);
  transition: transform 0.4s var(--ease-spring), border-color 0.4s, box-shadow 0.4s;
  cursor: default;
}
/* Spinning outer dashed celestial dial */
.cd-box::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 168, 76, 0.25);
  pointer-events: none;
  animation: spinSlow 30s linear infinite;
  transition: inset 0.4s var(--ease-spring), border-color 0.4s;
}
.cd-box::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.08);
  pointer-events: none;
}

.cd-box:hover {
  transform: scale(1.08) translateY(-4px);
  border-color: rgba(201, 168, 76, 0.85);
  box-shadow: 
    0 20px 50px rgba(201, 168, 76, 0.15), 
    0 10px 24px rgba(0,0,0,0.5), 
    inset 0 0 25px rgba(201,168,76,0.1);
}
.cd-box:hover::before {
  inset: -12px;
  border-color: rgba(201, 168, 76, 0.55);
}

.cdn {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500; 
  color: var(--white);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.cdl {
  font-family: var(--sans);
  font-size: 0.52rem; 
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-top: 6px;
  transition: color 0.3s;
}
.cd-box:hover .cdl {
  color: var(--white);
}

.cd-sep {
  font-family: var(--serif);
  font-size: 1.2rem; 
  color: rgba(201, 168, 76, 0.45);
  line-height: 1;
  user-select: none;
  animation: sepPulse 2s ease-in-out infinite;
}
@keyframes sepPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 3; cursor: pointer; background: none;
}
.scroll-dot {
  animation: scrollBob 2.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes scrollBob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(14px); }
}

/* Hero canvas for particles */
#heroCanvas {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
  opacity: 0.55;
}


/* ═══════════════════════════════════
   SECTION DIVIDERS
═══════════════════════════════════ */
.section-divider {
  height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory);
  position: relative;
}
.section-divider::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.divider-ornament {
  position: relative; z-index: 1;
  background: var(--ivory);
  padding: 0 16px;
  color: var(--gold);
}


/* ═══════════════════════════════════
   INVITATION
═══════════════════════════════════ */
.s-invite {
  background: var(--ivory);
  padding: 140px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.s-invite::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.08), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(240,224,200,0.12), transparent 55%);
  pointer-events: none;
}
/* Textured border top */
.s-invite::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}
.invite-wrap {
  max-width: 700px; margin: 0 auto;
}
.invite-bless {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  margin-bottom: 56px;
}
.ganesh-icon { animation: spinSlow 35s linear infinite; }
.bless-text {
  font-family: var(--serif);
  font-size: 1rem; font-style: italic;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.invite-card {
  background: linear-gradient(150deg, #FFFFFF 0%, #FAF8F5 100%);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 72px 56px 64px;
  box-shadow: 
    0 0 0 6px #ffffff, 
    0 0 0 8px rgba(201, 168, 76, 0.25), 
    0 30px 90px rgba(42, 24, 16, 0.12);
  position: relative;
}
.inv-card-frame-outer {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(201, 168, 76, 0.25);
  border-radius: 10px;
  pointer-events: none;
}
.inv-card-frame-inner {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 8px;
  pointer-events: none;
}
.invite-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.inv-top {
  font-family: var(--sans);
  font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold-dk);
  margin-bottom: 8px;
}
.inv-elders {
  font-family: var(--serif);
  font-size: 1.35rem; font-weight: 500;
  color: var(--maroon-mid); margin-bottom: 24px;
}
.inv-ornament-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px auto;
}
.inv-req {
  font-family: var(--sans);
  font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--txt-lt);
  margin-bottom: 6px;
}
.inv-sub {
  font-family: var(--serif);
  font-size: 1.05rem; font-style: italic;
  color: var(--txt-md); margin-bottom: 28px;
}
.inv-names-wrapper {
  margin: 20px 0 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.inv-name1, .inv-name2 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9vw, 5.5rem);
  font-weight: 400; line-height: 1.0;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #7C5D1F 0%, #C9A84C 40%, #E8C96A 60%, #7C5D1F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}
.inv-amp {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic; color: var(--gold);
  margin: 6px 0;
  display: block;
}
.inv-date-line {
  font-family: var(--serif);
  font-size: 1.35rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--gold-dk);
  margin-bottom: 12px;
}
.inv-date-line sup { font-size: 0.55em; vertical-align: super; }

/* Redesigned parents block */
.inv-parents-card-redesign {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  margin: 36px 0;
  padding: 28px 32px;
  background: rgba(201,168,76,0.03);
  border: 1px solid rgba(201,168,76,0.14);
  border-radius: 8px;
  box-shadow: inset 0 2px 10px rgba(201,168,76,0.02);
}
.inv-parent-col-redesign {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.inv-parent-role-pill {
  font-family: var(--sans);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dk);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  display: inline-block;
}
.inv-parent-full-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--maroon-mid);
  margin-bottom: 6px;
}
.inv-parent-relative {
  font-family: var(--serif);
  font-size: 0.95rem; font-style: italic;
  color: var(--txt-md); line-height: 1.6;
  margin: 0;
}
.inv-parents-vertical-line {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201,168,76,0.4);
  font-size: 0.7rem;
  width: 1px;
  border-left: 1px dashed rgba(201,168,76,0.25);
  align-self: stretch;
  position: relative;
}
.inv-line-diamond {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #FAF8F5;
  padding: 2px;
  z-index: 1;
}


/* ═══════════════════════════════════
   EVENTS — LUXURY TIMELINE
═══════════════════════════════════ */
.s-events {
  background: linear-gradient(175deg, var(--ivory) 0%, var(--ivory-mid) 40%, var(--ivory-deep) 100%);
  padding: 140px 24px 160px;
  position: relative;
  overflow: hidden;
}
.s-events::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
/* Subtle linen texture overlay */
.s-events::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201,168,76,0.05), transparent 45%),
    radial-gradient(ellipse at 80% 100%, rgba(197,164,109,0.05), transparent 45%);
  pointer-events: none;
}

/* Section heading */
.ev-heading {
  text-align: center;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.ev-intro {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic; font-weight: 300;
  color: var(--txt-lt);
  letter-spacing: 0.06em;
  margin-top: 20px;
  display: block;
}

/* Tab container */
.ev-tabs-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 48px auto;
  max-width: 640px;
}
.ev-tab-btn {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 40px;
  padding: 14px 28px;
  color: var(--txt-dk);
  text-align: center;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ev-tab-btn:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(201, 168, 76, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(154, 116, 48, 0.08);
}
.ev-tab-btn.active {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-lt) 100%);
  border-color: var(--maroon);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(74, 14, 28, 0.25);
}
.ev-tab-pill {
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dk);
  transition: color 0.3s;
}
.ev-tab-btn.active .ev-tab-pill {
  color: var(--gold-lt);
}
.ev-tab-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
}

/* Tab pane container */
.ev-tab-pane {
  display: none;
  animation: fadeIn 0.6s var(--ease-out) both;
}
.ev-tab-pane.active {
  display: block;
}

/* Event Grid */
.ev-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.ev-card-item {
  background: var(--white);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  position: relative;
}
.ev-card-item:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 20px 48px rgba(154, 116, 48, 0.10);
}
.ev-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.ev-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.ev-card-item:hover .ev-card-img-wrap img {
  transform: scale(1.06);
}
.ev-card-time-badge {
  position: absolute;
  bottom: 14px;
  left: 16px;
  background: rgba(18, 13, 9, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 40px;
  padding: 6px 14px;
  color: var(--gold-lt);
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
}
.ev-card-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  background: linear-gradient(135deg, var(--gold-dk) 0%, var(--gold) 100%);
  color: #0e0b06;
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--sans);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(154,116,48,0.2);
}
.ev-card-badge--highlight {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-lt) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(74,14,28,0.25);
}
.ev-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
  position: relative;
}
.ev-card-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--txt-dk);
  margin: 0 0 8px 0;
  transition: color 0.3s;
}
.ev-card-item:hover .ev-card-title {
  color: var(--maroon-mid);
}
.ev-card-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 12px;
}
.ev-card-desc {
  font-size: 0.9rem;
  color: var(--txt-md);
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

/* Highlight Variant */
.ev-card-item--highlight {
  border-color: rgba(140, 30, 50, 0.35);
  box-shadow: 0 8px 30px rgba(74, 14, 28, 0.05);
}
.ev-card-item--highlight:hover {
  border-color: rgba(140, 30, 50, 0.6);
  box-shadow: 0 20px 48px rgba(74, 14, 28, 0.12);
}

/* ── Day separator ornament ── */
.ev-day-sep {
  display: flex; align-items: center; gap: 24px;
  margin: 80px auto;
  max-width: 640px;
  position: relative; z-index: 1;
}
.ev-day-sep-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,164,109,0.35), transparent);
}
.ev-day-sep-ornament {
  flex-shrink: 0;
  animation: spinSlow 40s linear infinite;
  opacity: 0.65;
}


/* ═══════════════════════════════════
   STORY
═══════════════════════════════════ */
.s-story {
  background: var(--ivory);
  padding: 140px 24px;
  position: relative;
  overflow: hidden;
}
.s-story::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 0% 30%, rgba(201,168,76,0.04), transparent 45%),
    radial-gradient(ellipse at 100% 70%, rgba(240,216,208,0.07), transparent 45%);
  pointer-events: none;
}
.story-heading { text-align: center; margin-bottom: 96px; }

.story-list {
  max-width: 1060px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 100px;
}

.story-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.story-item.reverse { direction: rtl; }
.story-item.reverse > * { direction: ltr; }

.story-img-wrap {
  aspect-ratio: 3/4;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.story-img-wrap picture {
  display: block;
  width: 100%; height: 100%;
}
.story-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 1s var(--ease);
}
.story-img-wrap:hover img { transform: scale(1.05); }
.story-img-border {
  position: absolute; inset: 12px;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 1px;
  pointer-events: none;
  transition: inset 0.4s var(--ease);
}
.story-img-wrap:hover .story-img-border { inset: 8px; }

/* Corner ornaments on image */
.story-img-corner {
  position: absolute; width: 24px; height: 24px;
  pointer-events: none;
  z-index: 2;
}
.story-img-corner.tl { top: 5px; left: 5px; border-top: 1px solid rgba(201,168,76,0.5); border-left: 1px solid rgba(201,168,76,0.5); }
.story-img-corner.tr { top: 5px; right: 5px; border-top: 1px solid rgba(201,168,76,0.5); border-right: 1px solid rgba(201,168,76,0.5); }
.story-img-corner.bl { bottom: 5px; left: 5px; border-bottom: 1px solid rgba(201,168,76,0.5); border-left: 1px solid rgba(201,168,76,0.5); }
.story-img-corner.br { bottom: 5px; right: 5px; border-bottom: 1px solid rgba(201,168,76,0.5); border-right: 1px solid rgba(201,168,76,0.5); }

.story-text { padding: 20px 0; }
.story-num {
  display: block;
  font-family: var(--serif);
  font-size: 7rem; font-weight: 700;
  color: rgba(201,168,76,0.07);
  line-height: 1; margin-bottom: -28px;
  user-select: none;
}
.story-year {
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
  display: block;
}
.story-event {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 400; color: var(--txt-dk);
  line-height: 1.12; margin-bottom: 24px;
}
.story-para {
  font-size: 0.93rem; color: var(--txt-md);
  line-height: 1.9;
}
.story-quote-mark {
  font-family: var(--serif);
  font-size: 5rem; line-height: 0;
  color: rgba(201,168,76,0.15);
  vertical-align: -0.4em;
  margin-right: 4px;
  user-select: none;
}


/* ═══════════════════════════════════
   GALLERY
═══════════════════════════════════ */
.s-gallery {
  background: var(--ivory-mid);
  padding: 140px 24px;
  position: relative;
}
.s-gallery::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.gallery-heading { text-align: center; margin-bottom: 64px; }

.gallery-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 300px 300px;
  gap: 14px;
}
.gitem {
  position: relative; overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.5s var(--ease);
  transition-delay: var(--d, 0s);
  background: var(--ivory-deep);
}
.gitem.gitem--tall { grid-row: span 2; }

.gitem img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 0.8s var(--ease);
}
.gitem picture {
  display: block;
  width: 100%; height: 100%;
}
.gitem:hover img { transform: scale(1.08); }
.gitem:hover { box-shadow: var(--shadow-md); }

/* Gold border reveal on hover */
.gitem::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(201,168,76,0);
  transition: border-color 0.4s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.gitem:hover::after { border-color: rgba(201,168,76,0.4); }

.gitem-over {
  position: absolute; inset: 0;
  background: rgba(10,7,4,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.5s var(--ease);
  z-index: 2;
}
.gitem:hover .gitem-over {
  background: rgba(10,7,4,0.35);
}
.gitem-over svg {
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gitem:hover .gitem-over svg { opacity: 1; transform: scale(1); }

/* Gallery overlay (new design) */
.gitem-overlay {
  position: absolute; inset: 0;
  background: rgba(10,7,4,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}
.gitem:hover .gitem-overlay {
  background: rgba(10,7,4,0.35);
}
.gitem-overlay span {
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #C9A84C;
  font-size: 1.8rem;
}
.gitem:hover .gitem-overlay span { opacity: 1; transform: scale(1); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,5,3,0.97);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: lbIn 0.35s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lb-content {
  max-width: 90vw; max-height: 90vh;
  border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 100px rgba(201,168,76,0.15);
}
.lb-content img { max-width: 90vw; max-height: 86vh; object-fit: contain; }

.lb-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}
.lb-close:hover { background: rgba(201,168,76,0.2); border-color: rgba(201,168,76,0.4); }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.lb-nav:hover { background: rgba(201,168,76,0.2); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* New Lightbox (#lb) */
#lb {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,5,3,0.97);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: lbIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#lb[hidden] { display: none; }
#lb img {
  max-width: 90vw; max-height: 86vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 0 100px rgba(201,168,76,0.15);
}
#lb-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #FFFFFF; font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
}
#lb-close:hover { background: rgba(201,168,76,0.2); border-color: rgba(201,168,76,0.4); }
#lb-prev, #lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #FFFFFF; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
  cursor: pointer;
}
#lb-prev:hover, #lb-next:hover { background: rgba(201,168,76,0.2); }
#lb-prev { left: 20px; }
#lb-next { right: 20px; }


/* ═══════════════════════════════════
   FAMILY
═══════════════════════════════════ */
.s-family {
  background: var(--ivory);
  padding: 140px 24px;
  position: relative;
  overflow: hidden;
}
.s-family::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

/* Hanging marigold / jasmine garlands */
.fam-deco-garland {
  position: absolute;
  top: -10px;
  width: 120px;
  height: 250px;
  background-image: 
    radial-gradient(circle, #ff9900 8px, transparent 9px),
    radial-gradient(circle, #ffcc00 6px, transparent 7px),
    radial-gradient(circle, #ffffff 4px, transparent 5px);
  background-size: 24px 44px;
  background-position: 0 0, 12px 22px, 6px 11px;
  background-repeat: repeat-y;
  opacity: 0.15;
  pointer-events: none;
}
.fam-deco-garland-left { left: 4%; }
.fam-deco-garland-right { right: 4%; transform: scaleX(-1); }

.family-heading { text-align: center; margin-bottom: 72px; }

/* Couple Centerpiece */
.fam-couple-centerpiece {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 64px;
}
.fam-couple-arch-frame {
  position: relative;
  width: 210px;
  height: 280px;
  padding: 8px;
  background: var(--white);
  border: 1.5px solid rgba(201, 168, 76, 0.4);
  border-radius: 110px 110px 0 0;
  box-shadow: 
    0 16px 48px rgba(154, 116, 48, 0.12),
    0 4px 12px rgba(154, 116, 48, 0.06);
  transition: transform 0.4s var(--ease);
}
.fam-couple-arch-inner {
  width: 100%;
  height: 100%;
  border-radius: 102px 102px 0 0;
  overflow: hidden;
  position: relative;
}
.fam-couple-arch-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease);
}
.fam-couple-arch-frame:hover {
  transform: translateY(-8px) scale(1.02);
}
.fam-couple-arch-frame:hover img {
  transform: scale(1.05);
}
.fam-couple-arch-border {
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(201, 168, 76, 0.25);
  border-radius: 96px 96px 0 0;
  pointer-events: none;
}
.fam-couple-names-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--txt-dk);
  margin: 24px 0 6px;
  letter-spacing: 0.02em;
}
.fam-couple-dates {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dk);
}

/* Families Layout Redesign */
.family-layout-redesign {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.fam-royal-card {
  background: var(--white);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  padding: 48px 40px;
  position: relative;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.02),
    0 1px 3px rgba(0,0,0,0.01);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.fam-card-scroll-border {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(201, 168, 76, 0.22);
  border-radius: 6px;
  pointer-events: none;
}
.fam-royal-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 
    0 20px 40px rgba(154, 116, 48, 0.08),
    0 1px 3px rgba(154, 116, 48, 0.02);
}
.fam-royal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  position: relative;
}
.fam-royal-mandala {
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 8px;
  opacity: 0.85;
}
.fam-royal-eyebrow {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 6px;
}
.fam-royal-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--maroon-mid);
  letter-spacing: 0.02em;
}
.fam-member-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}
.fam-member-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.fam-member-role {
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--txt-lt);
}
.fam-member-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--txt-dk);
}
.fam-member-item--highlight .fam-member-role {
  color: var(--gold-dk);
}
.fam-member-item--highlight .fam-member-name {
  color: var(--maroon-mid);
  font-weight: 600;
}
.fam-member-sep {
  color: rgba(201, 168, 76, 0.3);
  font-size: 0.6rem;
  margin: 2px 0;
}
.fam-royal-quote {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--txt-md);
  text-align: center;
  line-height: 1.8;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  padding-top: 20px;
  margin: 0;
}


/* ═════════════════════════════════════
   RSVP – PREMIUM REDESIGN
═════════════════════════════════════ */
.s-rsvp {
  background:
    radial-gradient(ellipse at 20% 50%, #4A0E1C 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, #3D0A0A 0%, transparent 55%),
    linear-gradient(180deg, #120508 0%, #1E0810 50%, #120508 100%);
  position: relative; overflow: hidden;
}
/* Subtle top shimmer */
.s-rsvp::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.8) 40%, rgba(232,201,106,1) 50%, rgba(201,168,76,0.8) 60%, transparent 100%);
}

/* ── Floating star elements ── */
.rsvp-float {
  position: absolute; pointer-events: none;
  color: rgba(201,168,76,0.12);
  font-size: 5rem;
  animation: rsvpFloat 8s ease-in-out infinite;
  z-index: 0;
}
.rsvp-float-1 { top: 8%; left: 5%; font-size: 3rem; animation-delay: 0s; }
.rsvp-float-2 { top: 50%; right: 4%; font-size: 4rem; animation-delay: 2.5s; }
.rsvp-float-3 { bottom: 10%; left: 8%; font-size: 2.5rem; animation-delay: 5s; }
@keyframes rsvpFloat {
  0%,100% { transform: translateY(0) rotate(0deg); opacity: 0.12; }
  50%      { transform: translateY(-24px) rotate(15deg); opacity: 0.25; }
}

.rsvp-inner {
  position: relative; z-index: 1;
  max-width: 800px; margin: 0 auto;
  padding: 140px 24px;
}

/* ── Envelope icon ── */
.rsvp-envelope {
  display: flex; align-items: center; justify-content: center;
  width: 90px; height: 90px;
  margin: 0 auto 28px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50%;
  animation: envPulse 3s ease-in-out infinite;
}
@keyframes envPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.15); }
  50%      { box-shadow: 0 0 0 16px rgba(201,168,76,0); }
}

.rsvp-text { text-align: center; margin-bottom: 52px; }
.rsvp-sub {
  color: rgba(250,246,240,0.5);
  font-size: 1rem; margin-top: 16px;
  letter-spacing: 0.04em;
  font-style: italic;
  font-family: var(--serif);
  line-height: 1.7;
}

/* ── Form card ── */
.rsvp-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 12px;
  padding: 52px 48px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    inset 0 1px 0 rgba(201,168,76,0.12),
    0 32px 80px rgba(0,0,0,0.4),
    0 0 0 1px rgba(201,168,76,0.04);
  position: relative;
}

/* ── Corner decorations ── */
.rf-corner {
  position: absolute; width: 18px; height: 18px;
  pointer-events: none;
}
.rf-corner-tl { top: 14px; left: 14px; border-top: 1.5px solid rgba(201,168,76,0.45); border-left: 1.5px solid rgba(201,168,76,0.45); border-radius: 2px 0 0 0; }
.rf-corner-tr { top: 14px; right: 14px; border-top: 1.5px solid rgba(201,168,76,0.45); border-right: 1.5px solid rgba(201,168,76,0.45); border-radius: 0 2px 0 0; }
.rf-corner-bl { bottom: 14px; left: 14px; border-bottom: 1.5px solid rgba(201,168,76,0.45); border-left: 1.5px solid rgba(201,168,76,0.45); border-radius: 0 0 0 2px; }
.rf-corner-br { bottom: 14px; right: 14px; border-bottom: 1.5px solid rgba(201,168,76,0.45); border-right: 1.5px solid rgba(201,168,76,0.45); border-radius: 0 0 2px 0; }

.rf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.rf-group { display: flex; flex-direction: column; gap: 9px; margin-bottom: 0; }
.rf-full { margin-bottom: 0; }

label {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  transition: color 0.3s;
}
.rf-group:focus-within label { color: rgba(201,168,76,1); }

input, select, textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 8px;
  padding: 15px 18px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.18); }
select { color: rgba(255,255,255,0.5); }
select option { background: #1E0810; color: var(--white); }
input:focus, select:focus, textarea:focus {
  border-color: rgba(201,168,76,0.6);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.07), 0 2px 16px rgba(201,168,76,0.08);
  background: rgba(255,255,255,0.08);
}
textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Submit button ── */
.rf-submit { margin-top: 36px; text-align: center; }
.btn-send {
  display: inline-flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #9A7430, #C9A84C, #E8C96A, #C9A84C, #9A7430);
  background-size: 300% 100%;
  color: #0e0b06;
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  padding: 20px 56px; border-radius: 50px;
  position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s, background-position 0.6s;
  box-shadow: 0 8px 32px rgba(154,116,48,0.5), 0 2px 8px rgba(154,116,48,0.3);
  animation: btnShimmer 4s ease infinite;
}
@keyframes btnShimmer {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.btn-send-glow {
  position: absolute; inset: -2px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(201,168,76,0.4), transparent, rgba(201,168,76,0.4));
  opacity: 0;
  transition: opacity 0.4s;
}
.btn-send:hover .btn-send-glow { opacity: 1; }
.btn-send::before {
  content: ''; position: absolute;
  top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.7s;
}
.btn-send:hover::before { left: 180%; }
.btn-send:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 48px rgba(154,116,48,0.65), 0 4px 12px rgba(154,116,48,0.4);
}
.btn-send:active { transform: translateY(-1px); }

/* ── Success state ── */
.rsvp-success {
  text-align: center; padding: 72px 24px;
  color: var(--white);
  animation: fadeIn 0.8s var(--ease-out) both;
}
.rsvp-success[hidden] { display: none; }
.success-ring { margin-bottom: 28px; display: inline-block; animation: successPop 0.6s var(--ease-spring); }
@keyframes successPop {
  0%  { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100%{ transform: scale(1); opacity: 1; }
}
.rsvp-success h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 400;
  color: var(--gold-lt); margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.rsvp-success p {
  color: rgba(250,246,240,0.6); font-size: 1.05rem;
  line-height: 1.9; font-family: var(--serif); font-style: italic;
}


/* ═══════════════════════════════════
   LOCATION
═══════════════════════════════════ */
.s-location {
  background: var(--ivory-mid);
  padding: 140px 24px;
  position: relative;
}
.s-location::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.location-heading { text-align: center; margin-bottom: 80px; }

.location-layout {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px; align-items: stretch;
}
.loc-card {
  background: var(--white);
  border: 1px solid rgba(201,168,76,0.12);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
  padding: 44px 32px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow 0.4s var(--ease);
}
.loc-card:hover { box-shadow: var(--shadow-md); }
.loc-pin { margin-bottom: 18px; }
.loc-name {
  font-family: var(--serif);
  font-size: 1.9rem; font-weight: 500;
  color: var(--txt-dk); margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.loc-addr {
  font-size: 0.87rem; color: var(--txt-md);
  line-height: 1.8; margin-bottom: 28px;
}
.loc-details { flex: 1; margin-bottom: 32px; }
.loc-row {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.loc-key {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--txt-lt);
}
.loc-val {
  font-family: var(--serif);
  font-size: 1rem; color: var(--txt-dk);
}
.btn-dir {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold-dk), var(--gold));
  color: #0e0b06;
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  padding: 14px 32px; border-radius: 40px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(154,116,48,0.35);
  align-self: flex-start;
}
.btn-dir:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(154,116,48,0.5);
}
.loc-map {
  border-radius: 2px; overflow: hidden;
  box-shadow: var(--shadow-sm); min-height: 400px;
  border: 1px solid rgba(201,168,76,0.1);
}
.loc-map iframe {
  width: 100%; height: 100%; min-height: 400px;
  border: none; display: block;
}

/* Location map placeholder */
.loc-map-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 400px;
  background: linear-gradient(160deg, #FAF7F2, #EDE0CC);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 2px;
  text-align: center;
  padding: 40px;
}
.loc-map-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: bouncePin 2s ease-in-out infinite;
}
@keyframes bouncePin {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.loc-map-placeholder p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #5A4035;
  margin-bottom: 4px;
}
.loc-map-sub {
  font-size: 0.8rem !important;
  font-style: normal !important;
  color: #9A8070 !important;
  letter-spacing: 0.06em;
}


/* ═════════════════════════════════════
   FOOTER – PREMIUM REDESIGN
═════════════════════════════════════ */
.footer {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(74,14,28,0.8) 0%, transparent 60%),
    linear-gradient(180deg, #0A0305 0%, #080203 60%, #050102 100%);
  padding: 120px 24px 80px;
  text-align: center;
  position: relative; overflow: hidden;
}

/* ── Animated background particles ── */
.footer-particles { position: absolute; inset: 0; pointer-events: none; }
.fp {
  position: absolute;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold);
  animation: fpRise linear infinite;
}
.fp-1 { left: 15%; bottom: 0; animation-duration: 7s; animation-delay: 0s; opacity: 0.3; }
.fp-2 { left: 35%; bottom: 0; animation-duration: 9s; animation-delay: 2s; opacity: 0.2; width: 2px; height: 2px; }
.fp-3 { left: 55%; bottom: 0; animation-duration: 11s; animation-delay: 1s; opacity: 0.25; }
.fp-4 { left: 72%; bottom: 0; animation-duration: 8s; animation-delay: 3.5s; opacity: 0.15; width: 2px; height: 2px; }
.fp-5 { left: 85%; bottom: 0; animation-duration: 13s; animation-delay: 0.5s; opacity: 0.2; }
.fp-6 { left: 25%; bottom: 0; animation-duration: 10s; animation-delay: 4s; opacity: 0.18; width: 4px; height: 4px; }
@keyframes fpRise {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.1; }
  100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* Spinning mandala */
.footer-mandala {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 480px; height: 480px;
  pointer-events: none;
  animation: spinSlow 100s linear infinite;
  opacity: 0.4;
}

/* Gold shimmer at top */
.footer-shimmer {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.6) 30%, rgba(232,201,106,1) 50%, rgba(201,168,76,0.6) 70%, transparent 100%);
  animation: shimmerSlide 4s ease-in-out infinite;
}
@keyframes shimmerSlide {
  0%,100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* Remove old ::before */
.footer::before { display: none; }

.footer-inner { position: relative; z-index: 1; }

/* ── Monogram ── */
.footer-monogram {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,14,28,0.9) 0%, rgba(30,8,16,0.95) 100%);
  border: 1.5px solid rgba(201,168,76,0.35);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 36px;
  position: relative;
  box-shadow: 0 0 0 8px rgba(201,168,76,0.05), 0 0 40px rgba(201,168,76,0.12);
  animation: monoGlow 4s ease-in-out infinite;
}
@keyframes monoGlow {
  0%,100% { box-shadow: 0 0 0 8px rgba(201,168,76,0.05), 0 0 40px rgba(201,168,76,0.12); }
  50%      { box-shadow: 0 0 0 14px rgba(201,168,76,0.08), 0 0 60px rgba(201,168,76,0.22); }
}
.footer-mono-ring {
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(201,168,76,0.2);
  animation: spinSlow 20s linear infinite;
}
.footer-mono-text {
  font-family: var(--serif);
  font-size: 1.8rem; font-weight: 500;
  color: rgba(201,168,76,0.9);
  letter-spacing: 0.05em;
  line-height: 1;
}
.footer-mono-amp {
  font-style: italic;
  font-size: 0.75em;
  color: rgba(201,168,76,0.6);
  margin: 0 2px;
}

/* ── Quote card ── */
.footer-quote-card {
  display: inline-flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 8px;
  padding: 20px 28px;
  margin-bottom: 36px;
  max-width: 480px;
  position: relative;
}
.fq-mark {
  font-family: var(--serif);
  font-size: 3.5rem; line-height: 0.6;
  color: rgba(201,168,76,0.25);
  flex-shrink: 0;
  user-select: none;
}
.fq-mark-end { align-self: flex-end; line-height: 0.6; }
.footer-quote {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-style: italic; font-weight: 300;
  color: rgba(240,222,197,0.55);
  line-height: 1.7; letter-spacing: 0.04em;
  margin: 0;
}

/* ── Names ── */
.footer-names {
  display: flex; align-items: center;
  justify-content: center; gap: 20px;
  margin-bottom: 20px;
}
.footer-names span {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 300; color: rgba(240,222,197,0.9);
  letter-spacing: 0.05em;
  text-shadow: 0 0 40px rgba(201,168,76,0.15);
}
.footer-amp {
  font-family: var(--serif);
  font-style: italic; color: var(--gold) !important;
  font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
  text-shadow: 0 0 20px rgba(201,168,76,0.4) !important;
}

/* ── Date badge ── */
.footer-date-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 30px;
  padding: 8px 20px;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(201,168,76,0.85);
}
.footer-date-badge sup { font-size: 0.6em; vertical-align: super; }

/* ── Venue badge ── */
.footer-venue-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--serif);
  font-size: 0.85rem; font-style: italic;
  color: rgba(240,222,197,0.35);
  margin-bottom: 36px;
}

/* ── Ornament ── */
.footer-ornament {
  display: flex; align-items: center;
  justify-content: center; gap: 16px;
  margin-bottom: 28px;
}
.fo-line {
  display: block; width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.35));
}
.fo-line:last-child {
  background: linear-gradient(90deg, rgba(201,168,76,0.35), transparent);
}
.fo-diamond {
  color: rgba(201,168,76,0.5);
  font-size: 0.55rem;
  animation: diamondPulse 3s ease-in-out infinite;
}
@keyframes diamondPulse {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.3); }
}

/* ── Credits ── */
.footer-copy {
  font-size: 0.72rem; letter-spacing: 0.1em;
  color: rgba(240,222,197,0.2);
  margin-bottom: 6px;
}
.footer-dev {
  font-family: var(--sans);
  font-size: 0.68rem; letter-spacing: 0.15em;
  color: rgba(201,168,76,0.4);
  margin-bottom: 28px;
}
.footer-dev strong { color: rgba(201,168,76,0.65); font-weight: 600; }

/* ── CTA ── */
.footer-cta {
  display: inline-flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 16px 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 8px;
  transition: border-color 0.3s, background 0.3s;
}
.footer-cta:hover { border-color: rgba(201,168,76,0.25); background: rgba(255,255,255,0.04); }
.footer-cta-text {
  font-size: 0.65rem; letter-spacing: 0.1em;
  color: rgba(240,222,197,0.25);
  font-style: italic;
  margin: 0;
}
.footer-cta-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(201,168,76,0.55);
  font-size: 0.65rem; letter-spacing: 0.22em;
  text-transform: uppercase; text-decoration: none;
  transition: color 0.3s;
}
.footer-cta-link:hover { color: rgba(201,168,76,1); }

/* ═══════════════════════════════════
   MUSIC FAB
═══════════════════════════════════ */
.music-fab {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 900;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dk), var(--gold));
  color: #0e0b06;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(154,116,48,0.55);
  transition: transform 0.3s, box-shadow 0.3s;
}
.music-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 36px rgba(154,116,48,0.7);
}
.music-fab.playing {
  animation: musicPulse 2s ease-in-out infinite;
}
@keyframes musicPulse {
  0%,100% { box-shadow: 0 6px 24px rgba(154,116,48,0.55); }
  50%      { box-shadow: 0 6px 40px rgba(154,116,48,0.9), 0 0 0 10px rgba(201,168,76,0.1); }
}


/* ═══════════════════════════════════
   MUSIC POPUP
═══════════════════════════════════ */
#musicPopup {
  position: fixed; inset: 0;
  z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: mpopFadeIn 0.5s ease 0.8s both;
}
#musicPopup.mpop-gone {
  animation: mpopFadeOut 0.4s ease forwards;
  pointer-events: none;
}
@keyframes mpopFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes mpopFadeOut { to   { opacity: 0; } }

.mpop-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 7, 4, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mpop-card {
  position: relative; z-index: 1;
  background: linear-gradient(160deg, #1e1208, #0e0b06);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 12px;
  padding: 48px 40px 40px;
  max-width: 360px; width: 100%;
  text-align: center;
  box-shadow: 0 28px 100px rgba(0,0,0,0.75), 0 0 0 1px rgba(201,168,76,0.06);
  animation: mpopCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}
@keyframes mpopCardIn {
  from { opacity: 0; transform: translateY(32px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.mpop-ornament {
  position: relative;
  width: 68px; height: 68px;
  margin: 0 auto 22px;
}
.mpop-ornament > svg {
  animation: spinSlow 18s linear infinite;
}
.mpop-note {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.mpop-eyebrow {
  font-family: var(--sans);
  font-size: 0.56rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(201, 168, 76, 0.55);
  margin-bottom: 8px;
}
.mpop-title {
  font-family: var(--serif);
  font-size: 1.9rem; font-weight: 400;
  color: #fff; letter-spacing: 0.03em;
  line-height: 1.1; margin-bottom: 12px;
}
.mpop-sub {
  font-size: 0.82rem; line-height: 1.75;
  color: rgba(255,255,255,0.38);
  margin-bottom: 30px;
}
.mpop-card::before {
  content: '';
  display: block;
  width: 52px; height: 1px;
  background: rgba(201,168,76,0.28);
  margin: 0 auto 26px;
}
.mpop-btns {
  display: flex; flex-direction: column; gap: 10px;
}
.mpop-yes {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, #C9A84C, #E8C96A, #B8922A);
  color: #0e0b06;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  border-radius: 6px; border: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 22px rgba(201,168,76,0.4);
}
.mpop-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(201,168,76,0.6);
}
.mpop-no {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px; cursor: pointer;
  font-family: var(--sans);
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: background 0.2s, color 0.2s;
}
.mpop-no:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); }


/* ── Blur Up Loading ── */
.blur-load {
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
}
.blur-load::before {
  content: '';
  position: absolute; inset: -10px;
  background: inherit;
  filter: blur(12px);
  z-index: 0;
  transition: opacity 0.5s ease;
}
.blur-load > img,
.blur-load > picture > img,
.blur-load > .fam-photo {
  opacity: 0;
  transition: opacity 0.5s ease;
  position: relative; z-index: 1;
}
.blur-load.loaded::before { opacity: 0; }
.blur-load.loaded > img,
.blur-load.loaded > picture > img,
.blur-load.loaded > .fam-photo { opacity: 1; }

/* ── Paint containment ── */
.s-events, .s-family, .s-rsvp {
  contain: layout style;
}


/* ═══════════════════════════════════
   TABLET  (≤ 1100px)
═══════════════════════════════════ */
@media (max-width: 1100px) {
  .family-layout-redesign { gap: 28px; }
  .location-layout { grid-template-columns: 320px 1fr; }
  .ev-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ═══════════════════════════════════
   MOBILE  (≤ 768px)
═══════════════════════════════════ */
@media (max-width: 768px) {
  /* Navbar */
  .nav-inner { padding: 18px 22px; }
  #nav.scrolled .nav-inner { padding: 12px 22px; }
  .burger { display: flex; }
  .nav-menu {
    position: fixed; top: 0; right: -100%;
    width: min(82vw, 320px); height: 100svh;
    background: rgba(18,13,9,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center;
    gap: 0; z-index: 998; padding: 48px 32px;
    transition: right 0.45s var(--ease);
    border-left: 1px solid rgba(201,168,76,0.1);
  }
  .nav-menu.open { right: 0; }
  .nav-menu li { width: 100%; border-bottom: 1px solid rgba(201,168,76,0.08); }
  .nl { display: block; padding: 18px 0; font-size: 0.78rem; color: rgba(255,255,255,0.75); }
  #nav.scrolled .nl { color: rgba(255,255,255,0.75); }

  /* Ganpati Entry - Mobile */
  .ge-ganpati-frame {
    width: min(85vw, 300px);
    height: min(120vw, 424px);
    margin: 0 auto;
  }
  .ge-corner-tl { top: 10px; left: 10px; }
  .ge-corner-tr { top: 10px; right: 10px; }
  .ge-corner-bl { bottom: 10px; left: 10px; }
  .ge-corner-br { bottom: 10px; right: 10px; }
  .inv-parents-card-redesign { flex-direction: column; gap: 20px; padding: 24px 20px; }
  .inv-parents-vertical-line { width: 100%; height: 1px; border-left: none; border-top: 1px dashed rgba(201,168,76,0.25); margin: 8px 0; }
  .inv-line-diamond { background: #FFFFFF; }

  /* Hero */
  .hero-deco, .hero-frame { display: none; }
  .hero-names { font-size: clamp(3rem, 16vw, 5.5rem); }
  .hero-countdown { flex-wrap: wrap; gap: 12px; }
  .cd-box { width: 72px; height: 72px; min-width: 72px; padding: 0; }
  .cd-box::before { inset: -6px; }
  .cd-box::after { inset: -10px; }
  .cd-box:hover::before { inset: -9px; }
  .cdn { font-size: 1.5rem; }
  .cdl { font-size: 0.45rem; margin-top: 2px; }
  /* On mobile: zoom in slightly toward upper-center to keep faces visible */
  .hero-media img {
    object-position: center 18%;
  }

  /* Invite */
  .s-invite { padding: 100px 20px; }
  .invite-card { padding: 48px 28px; }
  .inv-names-wrapper { margin: 16px 0 28px; }

  /* Events Redesign */
  .s-events { padding: 100px 20px; }
  .ev-tabs-container { gap: 12px; margin: 32px auto; }
  .ev-tab-btn { padding: 10px 18px; }
  .ev-tab-title { font-size: 0.95rem; }
  .ev-cards-grid { grid-template-columns: 1fr; gap: 24px; }
  .ev-card-item { max-width: 100%; }

  /* Story */
  .s-story { padding: 100px 20px; }
  .story-list { gap: 64px; }
  .story-item, .story-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr; gap: 28px;
  }
  .story-img-wrap { aspect-ratio: 4/3; }
  .story-num { font-size: 5rem; margin-bottom: -20px; }

  /* Family */
  .s-family { padding: 100px 20px; }
  .family-layout-redesign { grid-template-columns: 1fr; gap: 32px; }
  .fam-royal-card { padding: 36px 28px; }
  .fam-deco-garland { display: none; }

  /* RSVP */
  .s-rsvp .rsvp-inner { padding: 100px 20px; }
  .rsvp-form { padding: 32px 24px; }
  .rf-row { grid-template-columns: 1fr; gap: 18px; }
  .btn-send { padding: 16px 36px; }

  /* Location */
  .s-location { padding: 100px 20px; }
  .location-layout { grid-template-columns: 1fr; }
  .loc-map, .loc-map iframe { min-height: 280px; }

  /* Footer */
  .footer { padding: 80px 20px 56px; }
  .footer-mandala { width: 280px; height: 280px; }
  .footer-quote-card { padding: 16px 20px; margin-bottom: 28px; max-width: 100%; }
  .footer-names { gap: 12px; }
  .footer-names span { font-size: 2.2rem; }
  .footer-amp { font-size: 1.3rem !important; }
  .footer-venue-badge { font-size: 0.78rem; margin-bottom: 28px; }
  .footer-cta { padding: 12px 20px; gap: 4px; }

  /* Music FAB */
  .music-fab { width: 48px; height: 48px; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .invite-card { padding: 32px 18px; }
  .inv-parents-card-redesign { padding: 20px 14px; }
  .sec-title { font-size: 1.95rem; }
  .story-num { font-size: 4rem; }
  .ev-tab-btn { padding: 8px 14px; }
  .ev-tab-title { font-size: 0.85rem; }
  .rsvp-form { padding: 24px 16px; }
  .hero-countdown { gap: 8px; }
  .cd-box { width: 62px; height: 62px; min-width: 62px; padding: 0; }
  .cd-box::before { inset: -4px; }
  .cd-box::after { inset: -7px; }
  .cd-box:hover::before { inset: -6px; }
  .cdn { font-size: 1.25rem; }
  .cdl { font-size: 0.38rem; margin-top: 1px; letter-spacing: 0.15em; }
  .cd-sep { font-size: 0.8rem; margin-bottom: 0; }
  .splash-btn { padding: 14px 32px; }
  .footer-names span { font-size: 1.8rem; }
  .footer-amp { font-size: 1.1rem !important; }
  .footer-monogram { width: 80px; height: 80px; margin-bottom: 28px; }
  .footer-mono-text { font-size: 1.5rem; }
}

@media print {
  #nav, .music-fab, #petals, .scroll-hint, #heroCanvas { display: none; }
}


/* ═══════════════════════════════════
   DESKTOP  (≥ 1280px)
═══════════════════════════════════ */
@media (min-width: 1280px) {

  /* ── Navbar ── */
  .nav-inner { padding: 28px 80px; }
  #nav.scrolled .nav-inner { padding: 18px 80px; }
  .nav-menu { gap: 48px; }
  .nl { font-size: 0.66rem; letter-spacing: 0.3em; }

  /* ── Hero ── */
  .hero-body { max-width: 960px; }
  .hero-shubh { font-size: 3rem; }
  .hero-names { font-size: clamp(5rem, 9vw, 8.5rem); }
  .hero-tagline { font-size: 1.5rem; }
  .hero-big { font-size: 3.6rem; }
  .hero-date { font-size: 1rem; letter-spacing: 0.45em; }
  .cd-box { width: 110px; height: 110px; min-width: 110px; padding: 0; }
  .cd-box::before { inset: -10px; }
  .cd-box::after { inset: -18px; }
  .cd-box:hover::before { inset: -15px; }
  .cdn { font-size: 2.5rem; }
  .cdl { font-size: 0.58rem; margin-top: 8px; }
  .hero-countdown { gap: 24px; }
  .cd-sep { font-size: 1.4rem; }

  /* ── Invite ── */
  .s-invite { padding: 180px 40px; }
  .invite-wrap { max-width: 760px; }
  .invite-card { padding: 88px 80px; }
  .inv-name1, .inv-name2 { font-size: 5.5rem; }

  /* ── Events ── */
  .s-events { padding: 180px 40px; }
  .ev-cards-grid { gap: 40px; }

  /* ── Story ── */
  .s-story { padding: 180px 40px; }
  .story-list { max-width: 1200px; gap: 120px; }
  .story-item { gap: 96px; }
  .story-num { font-size: 9rem; }
  .story-event { font-size: 2.8rem; }
  .story-para { font-size: 1rem; line-height: 2; }

  /* ── Family ── */
  .s-family { padding: 180px 40px; }
  .family-layout-redesign { max-width: 1200px; gap: 56px; }
  .fam-couple-arch-frame { width: 230px; height: 300px; }
  .fam-couple-names-title { font-size: 2.5rem; }

  /* ── RSVP ── */
  .rsvp-inner { max-width: 860px; padding: 180px 40px; }
  .rsvp-form { padding: 64px 64px; }
  .rf-row { gap: 28px; margin-bottom: 28px; }
  .btn-send { padding: 20px 64px; font-size: 0.72rem; }

  /* ── Location ── */
  .s-location { padding: 180px 40px; }
  .location-layout { max-width: 1280px; grid-template-columns: 420px 1fr; gap: 56px; }
  .loc-card { padding: 52px 40px; }
  .loc-name { font-size: 2.2rem; }
  .loc-map, .loc-map iframe { min-height: 480px; }

  /* ── Footer ── */
  .footer { padding: 140px 40px 100px; }
  .footer-mandala { width: 520px; height: 520px; }
}


/* ═══════════════════════════════════
   LARGE DESKTOP  (≥ 1600px)
═══════════════════════════════════ */
@media (min-width: 1600px) {

  /* ── Navbar ── */
  .nav-inner { padding: 32px 120px; }
  #nav.scrolled .nav-inner { padding: 22px 120px; }

  /* ── Section base padding ── */
  .s-invite, .s-events, .s-story,
  .s-family, .s-location { padding-left: 80px; padding-right: 80px; }

  /* ── Events ── */
  .ev-cards-grid { max-width: 1200px; gap: 48px; }

  /* ── Story ── */
  .story-list { max-width: 1380px; }

  /* ── Family ── */
  .family-layout-redesign { max-width: 1320px; gap: 72px; }

  /* ── Location ── */
  .location-layout { max-width: 1440px; }
  .loc-map, .loc-map iframe { min-height: 540px; }

  /* ── RSVP ── */
  .rsvp-inner { max-width: 960px; }
}
