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

:root {
  --ivory: #fcfbf7;
  --ivory-soft: #fffaef;
  --ivory-deep: #f5eedc;
  --zp-blue: #1c3b88;
  --zp-blue-deep: #0f2459;
  --zp-blue-bright: #2d5ae8;
  --saffron: #f07e15;
  --saffron-soft: #fcae68;
  --saffron-deep: #c45d00;
  --marigold: #f3c21a;
  --gold: #c5972b;
  --gold-light: #e8c465;
  --gold-deep: #8c6818;
  --rose: #c9536b;
  --emerald: #145c36;
  --ink: #1a1a1a;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', 'Tiro Devanagari Marathi', serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mr { font-family: 'Tiro Devanagari Marathi', serif; }
.roman { font-family: 'Montserrat', sans-serif; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.ui { font-family: 'Montserrat', sans-serif; }

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ── PAGE TEXTURE ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at top left, var(--ivory-soft) 0%, var(--ivory) 50%, var(--ivory-deep) 100%);
  z-index: -3;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.35  0 0 0 0 0.1  0 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/></svg>");
  opacity: 0.35;
  pointer-events: none;
  z-index: -2;
  mix-blend-mode: multiply;
}

/* ── PETALS ── */
.petals { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.petal {
  position: absolute;
  width: 14px; height: 14px;
  top: -30px;
  background: radial-gradient(circle at 30% 30%, var(--marigold), #dca206);
  border-radius: 50% 0 50% 50%;
  opacity: 0.65;
  animation: fall linear infinite;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.petal.saffron { background: radial-gradient(circle at 30% 30%, var(--saffron-soft), var(--saffron-deep)); opacity: 0.7; }
.petal.gold { background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold-deep)); opacity: 0.6; }
.petal.green { background: radial-gradient(circle at 30% 30%, #8fc1a9, var(--emerald)); opacity: 0.4; }

/* ── FALLING ALPHABETS ── */
.falling-letter {
  position: absolute;
  top: -30px;
  font-family: 'Tiro Devanagari Marathi', 'Montserrat', serif;
  font-weight: 600;
  opacity: 0.55;
  animation: fall linear infinite;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
  user-select: none;
  pointer-events: none;
}

@keyframes fall {
  0%   { transform: translate(0, -10vh) rotate(0deg); }
  50%  { transform: translate(calc(40px + var(--tilt-x, 0) * 90px), 50vh) rotate(220deg); }
  100% { transform: translate(calc(-30px + var(--tilt-x, 0) * 180px), 110vh) rotate(540deg); opacity: 0; }
}

/* ── COMMON ── */
section { position: relative; z-index: 2; padding: 6rem 1.5rem; }
.container { max-width: 1040px; margin: 0 auto; }

.eyebrow {
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--saffron-deep);
  text-transform: uppercase;
  text-align: center;
  display: block;
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.eyebrow::before, .eyebrow::after {
  content: '◆';
  display: inline-block;
  margin: 0 0.7rem;
  font-size: 0.55rem;
  color: var(--marigold);
  transform: translateY(-2px);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--zp-blue);
  text-align: center;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
  position: relative;
  line-height: 1.3;
}
.section-title::after {
  content: '';
  display: block;
  width: 0;
  max-width: 220px;
  height: 2px;
  margin: 0.8rem auto 0;
  background: linear-gradient(90deg, transparent 0%, var(--saffron) 20%, var(--zp-blue) 50%, var(--saffron) 80%, transparent 100%);
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}
.section-title.visible::after { width: 80%; }
.section-title::before {
  content: '✦';
  position: absolute;
  bottom: -1.8rem;
  left: 50%;
  transform: translateX(-50%) scale(0) rotate(-180deg);
  font-size: 1.1rem;
  color: var(--saffron);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s;
}
.section-title.visible::before { transform: translateX(-50%) scale(1) rotate(0deg); }

.section-sub {
  text-align: center;
  font-style: italic;
  color: var(--saffron-deep);
  margin-bottom: 3.5rem;
  font-size: 1.05rem;
}

/* ─────────────────────────────────
   INTRO ENVELOPE
───────────────────────────────── */
.intro {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, var(--zp-blue-deep), var(--zp-blue));
  z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 1s ease, visibility 1s;
  cursor: pointer;
  text-align: center;
  padding: 2rem;
}
.intro.hidden { opacity: 0; visibility: hidden; }
.intro-monogram {
  font-size: clamp(5rem, 12vw, 8rem);
  color: var(--marigold);
  font-weight: 700;
  animation: monogramRise 1.4s ease both;
  text-shadow: 0 0 32px rgba(243,194,26,0.4);
  line-height: 1.1;
  font-family: 'Tiro Devanagari Marathi', serif;
}
.intro-monogram span { color: #fff; font-size: 0.8em; }
.intro-tag {
  font-family: 'Tiro Devanagari Marathi', serif;
  letter-spacing: 0.15em;
  font-size: 1.2rem;
  color: #fff;
  margin-top: 1.5rem;
  animation: fadeUp 1s 0.7s ease both;
  font-weight: 500;
}
.intro-tag::before, .intro-tag::after {
  content: '─';
  display: inline-block;
  margin: 0 1rem;
  color: var(--marigold);
}
.intro-cta {
  margin-top: 3.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size:1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--marigold);
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: introCtaBob 2s ease-in-out 1.4s infinite;
}
.intro-cta.show { opacity: 1; }
@keyframes introCtaBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
@keyframes monogramRise {
  from { opacity: 0; transform: translateY(40px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─────────────────────────────────
   HERO
───────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.mandala {
  position: absolute;
  width: min(100vmin, 800px);
  height: min(100vmin, 800px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
  color: var(--saffron);
}
.mandala {
  animation:
    mandalaUnfurl 2.6s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    rotate-slow 100s linear infinite 2.6s;
}
.mandala.layer-2 {
  color: var(--zp-blue);
  animation:
    mandalaUnfurl 2.6s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    rotate-slow 140s linear infinite reverse 3s;
  opacity: 0.1;
  width: min(90vmin, 720px);
  height: min(90vmin, 720px);
}
@keyframes rotate-slow { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes mandalaUnfurl {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(-180deg); opacity: 0; }
  60%  { opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  width: 100%;
}

.shloka {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--zp-blue);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.02em;
  max-width: 580px;
  margin: 0 auto 1.5rem;
  background: rgba(28, 59, 136, 0.04);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border-left: 3px solid var(--saffron);
  border-right: 3px solid var(--saffron);
}
.hero-tagline {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--saffron-deep);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  animation: fadeUp 1.2s 0.2s ease both;
}

/* ── HERO IMAGE FRAME ── */
.school-photo-frame {
  width: clamp(280px, 78vmin, 540px);
  aspect-ratio: 4 / 4;
  margin: 2rem auto 3.5rem;
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--gold);
  box-shadow:
    inset 0 0 0 8px var(--ivory),
    inset 0 0 0 9px var(--gold),
    inset 0 0 0 12px var(--ivory),
    inset 0 0 0 13px var(--gold-deep),
    0 0 0 6px var(--ivory),
    0 0 0 7px var(--gold),
    0 0 0 10px var(--ivory),
    0 0 0 11px var(--zp-blue),
    0 24px 50px rgba(28,59,136,0.18);
  overflow: hidden;
  animation: fadeUp 1.4s 0.3s ease both, photoBreath 6s 2s ease-in-out infinite;
}
.school-photo-frame > img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: cover;
  display: block;
  z-index: 1;
  clip-path: circle(0% at 50% 50%);
  animation: photoBloom 2.2s 1.2s cubic-bezier(0.34, 1, 0.64, 1) forwards;
}
@keyframes photoBloom {
  0%   { clip-path: circle(0% at 50% 50%); transform: scale(1.15); filter: blur(8px); }
  60%  { filter: blur(2px); }
  100% { clip-path: circle(150% at 50% 50%); transform: scale(1); filter: blur(0); }
}
@keyframes photoBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}

.photo-flourish {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  color: var(--gold-deep);
  z-index: 4;
  letter-spacing: 0.3em;
  background: var(--ivory);
  padding: 0 0.8rem;
  pointer-events: none;
  white-space: nowrap;
}
.photo-flourish.top    { top: 0rem; }
.photo-flourish.bottom { bottom: 0rem; }

.main-title-mr {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: var(--zp-blue);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 10px rgba(28,59,136,0.06);
}
.sub-title-mr {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--saffron-deep);
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.2rem 2.2rem;
  border-top: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  margin-top: 0.6rem;
  animation: fadeUp 1.2s 1.4s ease both;
}
.hero-meta span {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--zp-blue);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.hero-meta strong {
  display: block;
  font-family: 'Tiro Devanagari Marathi', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  margin-top: 0.3rem;
}
.hero-meta .sep {
  width: 1px; height: 32px;
  background: var(--gold);
}

/* ── BLOOMING SCROLL FLOWER ── */
.scroll-flower {
  position: fixed;
  top: 14px;
  left: 14px;
  width: 44px; height: 44px;
  z-index: 50;
  pointer-events: none;
  transform: rotate(calc(var(--scrollPct, 0) * 1deg));
  transition: transform 0.1s linear;
}
.scroll-flower svg { width: 100%; height: 100%; }
.scroll-flower circle.center { fill: var(--saffron); }
.scroll-flower path.petal {
  fill: var(--marigold);
  transform-origin: 22px 22px;
  transition: transform 0.3s ease;
}

/* ── FLOATING SCROLL BELL ── */
.scroll-bell {
  position: fixed;
  width: 52px; height: 52px;
  pointer-events: none;
  z-index: 6;
  left: 0; top: 0;
  transform: translate(20px, 30px);
  transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  filter: drop-shadow(0 4px 10px rgba(28,59,136,0.15));
}
.scroll-bell svg {
  width: 100%; height: 100%;
}
.scroll-bell.ringing svg {
  animation: bellRing 0.8s ease-in-out infinite alternate;
}
@keyframes bellRing {
  0% { transform: rotate(-15deg); }
  100% { transform: rotate(15deg); }
}

.bell-message {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--ivory-soft);
  border: 1.5px solid var(--saffron);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12), inset 0 0 0 4px #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 18px;
  font-size: 0.95rem;
  color: var(--zp-blue);
  white-space: nowrap;
  text-align: center;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Tiro Devanagari Marathi', serif;
}
.bell-message::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--saffron);
}
.scroll-bell.greeting .bell-message {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────
   INVITATION CARD
───────────────────────────────── */
.invite-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--ivory-soft);
  border: 1px solid var(--gold);
  box-shadow:
    inset 0 0 0 6px var(--ivory-soft),
    inset 0 0 0 7px var(--gold),
    0 30px 80px rgba(28, 59, 136, 0.1);
  padding: 4.5rem 2.5rem;
  text-align: center;
  position: relative;
}
.invite-card::before, .invite-card::after {
  content: '❦';
  position: absolute;
  font-size: 1.6rem;
  color: var(--saffron);
}
.invite-card::before { top: 1.2rem; left: 1.2rem; }
.invite-card::after  { bottom: 1.2rem; right: 1.2rem; }

.invite-card .salutation {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--zp-blue);
  margin: 1.2rem 0 1.6rem;
  line-height: 1.3;
  font-weight: 700;
}
.invite-card p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--ink);
  max-width: 600px;
  margin: 0.8rem auto;
  line-height: 1.8;
}
.invite-card .sponsors {
  margin: 2.8rem 0 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rose);
}
.invite-card .sponsors span {
  color: var(--zp-blue);
  margin: 0 0.6rem;
}
.invite-card .sub-sponsors {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

/* ─────────────────────────────────
   FEATURES / HIGHLIGHTS
───────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1040px;
  margin: 0 auto;
}
.feature-card {
  background: var(--ivory-soft);
  border: 1px solid var(--border-color, #e2e8f0);
  border-top: 3px solid var(--marigold);
  border-radius: 12px;
  padding: 2.5rem 1.8rem;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.02);
}
.feature-card:nth-child(2n) { border-top-color: var(--zp-blue); }
.feature-card:nth-child(3n) { border-top-color: var(--saffron); }

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(28,59,136,0.1);
  border-color: var(--gold-light);
}
.feature-icon {
  width: 70px; height: 70px;
  margin: 0 auto 1.4rem;
  background: rgba(243, 194, 26, 0.1);
  color: var(--gold-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  transition: transform 0.4s;
}
.feature-card:nth-child(2n) .feature-icon { background: rgba(28, 59, 136, 0.08); color: var(--zp-blue); }
.feature-card:nth-child(3n) .feature-icon { background: rgba(240, 126, 21, 0.1); color: var(--saffron); }

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}
.feature-card h3 {
  font-size: 1.25rem;
  color: var(--zp-blue);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.feature-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

/* ─────────────────────────────────
   COUNTDOWN
───────────────────────────────── */
.countdown {
  display: flex; justify-content: center; gap: 1rem;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 auto;
}
.cd-cell {
  background: var(--ivory-soft);
  border: 1px solid var(--gold);
  padding: 1.8rem 1rem;
  min-width: 120px;
  text-align: center;
  position: relative;
  transition: transform 0.3s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.03);
}
.cd-cell::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--gold);
  pointer-events: none;
  opacity: 0.35;
}
.cd-cell:hover { transform: translateY(-4px); }
.cd-num {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--zp-blue);
  line-height: 1;
}
.cd-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--saffron-deep);
  text-transform: uppercase;
  margin-top: 0.6rem;
  font-weight: 600;
}

/* ─────────────────────────────────
   EVENTS TIMELINE
───────────────────────────────── */
.timeline {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), var(--gold), transparent);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2rem 2.5rem;
  box-sizing: border-box;
}
.timeline-item:nth-child(odd)  { left: 0;   text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-item::before {
  content: '';
  position: absolute;
  top: 1.8rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--marigold);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--gold), 0 0 16px rgba(243,194,26,0.6);
  z-index: 2;
}
.timeline-item:nth-child(odd)::before  { right: -8px; }
.timeline-item:nth-child(even)::before { left:  -8px; }

.event-card {
  background: var(--ivory-soft);
  border: 1px solid var(--gold);
  padding: 2rem 1.8rem;
  position: relative;
  transition: transform 0.4s, box-shadow 0.4s;
  border-radius: 8px;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(28,59,136,0.12);
}
.event-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  display: block;
}
.event-card h3 {
  font-size: 1.35rem;
  color: var(--zp-blue);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.event-time {
  font-size: 1.1rem;
  color: var(--saffron-deep);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.event-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .timeline::before { left: 16px; }
  .timeline-item, .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
    width: 100%; left: 0; padding-left: 3rem; padding-right: 0; text-align: left;
  }
  .timeline-item::before { left: 8px !important; right: auto !important; }
}

/* ─────────────────────────────────
   VENUE
───────────────────────────────── */
.venue-card {
  max-width: 780px;
  margin: 0 auto;
  background: linear-gradient(165deg, var(--zp-blue), var(--zp-blue-deep));
  color: var(--ivory-soft);
  padding: 4.5rem 2.5rem;
  position: relative;
  box-shadow: 0 30px 70px rgba(15,36,89,0.3);
  text-align: center;
  border-radius: 16px;
  overflow: hidden;
}
.venue-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(232,196,101,0.3);
  pointer-events: none;
  border-radius: 8px;
}
.venue-card h3 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--marigold);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.venue-card p {
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: 0.92;
  margin-bottom: 1.5rem;
}
.venue-btn {
  display: inline-flex;
  align-items: center; gap: 0.6rem;
  margin-top: 1rem;
  background: var(--saffron);
  color: #fff;
  padding: 0.9rem 2.4rem;
  text-decoration: none;
  letter-spacing: 0.15em;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s;
  text-transform: uppercase;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(240, 126, 21, 0.4);
}
.venue-btn:hover {
  background: var(--marigold);
  color: var(--zp-blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(243,194,26,0.5);
}

/* ─────────────────────────────────
   FAMILY / AAAPALE NAMRA
───────────────────────────────── */
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1040px;
  margin: 0 auto;
}
.family-card {
  background: var(--ivory-soft);
  border: 1px solid var(--gold);
  padding: 2.5rem 1.8rem;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s;
  position: relative;
  border-radius: 8px;
}
.family-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold);
  opacity: 0.25;
  pointer-events: none;
}
.family-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(28,59,136,0.1);
}
.family-card h3 {
  font-size: 1.6rem;
  color: var(--zp-blue);
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.family-card .role {
  font-size: 1rem;
  color: var(--saffron-deep);
  margin-bottom: 1.2rem;
  display: block;
  font-weight: 600;
}
.family-card p {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0.4rem 0;
  line-height: 1.6;
}

/* ─────────────────────────────────
   RSVP FORM
───────────────────────────────── */
.rsvp-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--ivory-soft);
  border: 1px solid var(--gold);
  padding: 3.5rem 2.5rem;
  box-shadow: inset 0 0 0 6px var(--ivory-soft), inset 0 0 0 7px var(--gold), 0 20px 50px rgba(0,0,0,0.05);
  position: relative;
  border-radius: 8px;
}
.rsvp-form { display: grid; gap: 1.4rem; margin-top: 2rem; }
.rsvp-form label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--zp-blue);
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--ivory);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  border-radius: 6px;
}
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(240,126,21,0.15);
}
.rsvp-submit {
  background: var(--zp-blue);
  color: #fff;
  border: none;
  padding: 1.1rem 2rem;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s;
  margin-top: 0.6rem;
  text-transform: uppercase;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(28, 59, 136, 0.2);
}
.rsvp-submit:hover {
  background: var(--zp-blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(28, 59, 136, 0.4);
}
.rsvp-submit:disabled {
  background: #a1a1a6;
  box-shadow: none;
  cursor: not-allowed;
}
.rsvp-thanks {
  text-align: center;
  padding: 2rem;
  color: var(--zp-blue);
  display: none;
}
.rsvp-thanks h3 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.rsvp-thanks.visible { display: block; }

/* ─────────────────────────────────
   CLOSING / WINANTI
───────────────────────────────── */
.closing { padding: 6rem 1.5rem 12rem; text-align: center; }
.quote {
  max-width: 660px;
  margin: 0 auto;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-style: italic;
  color: var(--zp-blue);
  line-height: 2;
  font-weight: 500;
}
.signature {
  margin-top: 2.5rem;
  font-size: 1.8rem;
  color: var(--saffron-deep);
  font-weight: 700;
}
.vinanti-line {
  margin: 2.4rem auto 0;
  max-width: 560px;
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--ink);
  font-style: italic;
  line-height: 1.7;
  padding: 1.2rem 1.4rem;
  border-top: 1.5px solid rgba(197, 151, 43, 0.3);
  border-bottom: 1.5px solid rgba(197, 151, 43, 0.3);
}

footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  text-transform: uppercase;
  border-top: 1px solid rgba(197,151,43,0.25);
  position: relative;
  z-index: 2;
  font-weight: 600;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MUSIC TOGGLE ── */
.music-toggle {
  position: fixed;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--zp-blue);
  color: var(--marigold);
  border: 1px solid var(--gold);
  z-index: 100;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(15,36,89,0.3);
  transition: transform 0.3s;
}
.music-toggle:hover { transform: scale(1.1) rotate(15deg); }
.music-toggle.playing { animation: musicSpin 4s linear infinite; }
@keyframes musicSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── DIYAS ── */
.diya {
  position: fixed; bottom: 20px;
  width: 50px; height: 60px;
  pointer-events: none; z-index: 3;
}
.diya.left { left: 20px; }
.diya.right { right: 20px; }
.diya-flame {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 22px;
  background: radial-gradient(ellipse at center bottom, #fff5b8 0%, var(--gold-light) 30%, #ff8c3a 60%, transparent 75%);
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  filter: blur(0.5px);
  animation: flicker 0.6s ease-in-out infinite alternate;
  box-shadow: 0 0 30px var(--marigold), 0 0 60px rgba(255,140,58,0.45);
}
.diya-base {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 14px;
  background: linear-gradient(180deg, var(--gold-deep), #4d3a0e);
  border-radius: 0 0 50% 50%;
}
@keyframes flicker {
  0%   { transform: translateX(-50%) scale(1)   rotate(-2deg); opacity: 0.95; }
  100% { transform: translateX(-50%) scale(1.1) rotate(2deg);  opacity: 1; }
}

/* ── INTERACTIVE FLOURISHES ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--saffron), var(--marigold), var(--zp-blue));
  z-index: 9998;
  box-shadow: 0 0 12px rgba(243,194,26,0.6);
  transition: width 0.08s linear;
  pointer-events: none;
}

.touch-spark {
  position: fixed;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light) 0%, var(--saffron) 45%, transparent 75%);
  box-shadow: 0 0 16px var(--gold-light), 0 0 32px var(--saffron);
  pointer-events: none;
  z-index: 9990;
  animation: sparkFade 1s ease-out forwards;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
}
@keyframes sparkFade {
  0%   { opacity: 1; width: 14px; height: 14px; }
  100% { opacity: 0; width: 0;    height: 0; }
}

.tap-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,194,26,0.5) 0%, rgba(240,126,21,0.2) 40%, transparent 70%);
  pointer-events: none;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%) scale(0);
  animation: tapRippleAnim 0.9s ease-out forwards;
  z-index: 1;
}
@keyframes tapRippleAnim {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(10); opacity: 0; }
}

@keyframes cardSpring {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.97); }
  70%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.card-tap { animation: cardSpring 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }

.diya { cursor: pointer; pointer-events: auto !important; }
.diya-ripple {
  position: fixed;
  bottom: 30px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--marigold);
  pointer-events: none;
  z-index: 4;
  animation: ripple 1.4s ease-out forwards;
}
.diya-ripple.left  { left: 40px; }
.diya-ripple.right { right: 40px; }
@keyframes ripple {
  0%   { transform: scale(0.4); opacity: 1; box-shadow: 0 0 0 0 rgba(243,194,26,0.5); }
  100% { transform: scale(8);   opacity: 0; box-shadow: 0 0 60px 20px rgba(243,194,26,0); }
}

.floating-flower {
  position: fixed;
  font-size: 1.6rem;
  pointer-events: none;
  z-index: 5;
  animation: flowerFloat 2.4s ease-out forwards;
}
@keyframes flowerFloat {
  0%   { transform: translateY(0) scale(0.6) rotate(0deg); opacity: 0; }
  20%  { opacity: 1; transform: translateY(-30px) scale(1) rotate(45deg); }
  100% { transform: translateY(-220px) scale(0.4) rotate(180deg); opacity: 0; }
}

.burst-petal {
  position: fixed;
  width: 14px; height: 14px;
  background: radial-gradient(circle at 30% 30%, var(--marigold), #dca206);
  border-radius: 50% 0 50% 50%;
  pointer-events: none;
  z-index: 9991;
  will-change: transform, opacity;
}
.burst-petal.saffron { background: radial-gradient(circle at 30% 30%, var(--saffron-soft), var(--saffron-deep)); }
.burst-petal.gold { background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold-deep)); }
.burst-petal.green { background: radial-gradient(circle at 30% 30%, #8fc1a9, var(--emerald)); }

@media (prefers-reduced-motion: reduce) {
  .touch-spark, .burst-petal, .scroll-progress, .floating-flower, .diya-ripple { display: none !important; }
}

@media (max-width: 720px) {
  .invite-card { padding: 3rem 1.5rem; }
  .diya { display: none; }
}
@media (max-width: 480px) {
  .hero-meta { flex-direction: column; gap: 0.8rem; padding: 1.4rem; }
  .hero-meta .sep { display: none; }
  section { padding: 4rem 1rem; }
}
