/* =========================================================
   Manoj & Shikha — Wedding Invitation
   Mobile-first stylesheet
   ========================================================= */

:root {
  --maroon-950: #1f0604;
  --maroon-900: #2a0806;
  --maroon-850: #340a07;
  --maroon-800: #3d0c09;
  --maroon-700: #4b150e;
  --maroon-600: #5a1410;
  --maroon-500: #7a1f19;
  --gold: #d4a75a;
  --gold-deep: #a87a2c;
  --gold-light: #f3d79a;
  --gold-pale: #fbecc4;
  --ivory: #fbf3e4;
  --ivory-dim: rgba(251, 243, 228, .78);
  --blush: #f2b8b0;
  --marigold: #f4a300;
  --line: rgba(212, 167, 90, .35);
  --line-soft: rgba(212, 167, 90, .18);
  --glass: rgba(42, 8, 6, .55);

  --f-script: "Great Vibes", "Segoe Script", cursive;
  --f-serif: "Cormorant Garamond", "Georgia", serif;
  --f-caps: "Cinzel", "Times New Roman", serif;
  --f-deva: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", "Mangal", serif;

  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(.2, .75, .2, 1);
  --gold-grad: linear-gradient(110deg, #b8862f 0%, #f7e3a3 18%, #c9973e 36%, #fff3c9 50%, #b8862f 64%, #ecc97c 82%, #b8862f 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ivory);
  background:
    radial-gradient(120% 50% at 50% 0%, #6a1c16 0%, transparent 60%),
    radial-gradient(90% 40% at 0% 45%, rgba(122, 31, 25, .45) 0%, transparent 70%),
    radial-gradient(90% 40% at 100% 75%, rgba(122, 31, 25, .4) 0%, transparent 70%),
    var(--maroon-800);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
}
body.locked { overflow: hidden; height: 100vh; height: 100svh; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { overflow: visible; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.container.narrow { max-width: 720px; }
.center { text-align: center; }
.script { font-family: var(--f-script); font-weight: 400; }
.cinzel { font-family: var(--f-caps); }
.deva { font-family: var(--f-deva); }

.gold-text {
  background: var(--gold-grad);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
  padding-inline: .12em;
}
@keyframes shimmer { to { background-position: -250% center; } }

/* Background grain + vignette */
.bg-texture {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(140% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .45) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .85 0 0 0 0 .7 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
body.opening #fx { z-index: 101; }
#butterflies { position: fixed; inset: 0; z-index: 41; pointer-events: none; overflow: hidden; }

/* ================= GATE (velvet curtains + royal arch) ================= */
.gate { position: fixed; inset: 0; z-index: 100; overflow: hidden; display: grid; place-items: center; background: #1f0604; cursor: pointer; transition: background-color .5s ease .3s; }
.gate.open { background-color: transparent; }
.gate.gone { display: none; }

/* Velvet curtains */
.curtain {
  position: absolute; top: 0; bottom: 0; width: 51%;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 18%, transparent 75%, rgba(0,0,0,.45) 100%),
    repeating-linear-gradient(90deg, #3d0a07 0px, #7c1a14 14px, #9a241b 20px, #6a140f 30px, #3a0906 44px);
  box-shadow: inset 0 0 60px rgba(0,0,0,.55);
  transition: transform 2s cubic-bezier(.72, 0, .2, 1), filter 2s;
  will-change: transform;
}
.curtain::after { /* gold fringe */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  background:
    linear-gradient(#d4a75a, #d4a75a) top / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, #f3d79a 0 2px, #b8862f 2px 4px, transparent 4px 6px) 0 3px / 100% 15px no-repeat;
  -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent);
}
.cl { left: 0; transform-origin: left center; border-right: 2px solid rgba(212,167,90,.55); }
.cr { right: 0; transform-origin: right center; border-left: 2px solid rgba(212,167,90,.55); }
.tieback { position: absolute; top: 58%; width: 26px; height: 54px; opacity: 0; transition: opacity .6s 1.2s;
  background: radial-gradient(circle at 50% 12px, #fff3c9 0 4px, #d4a75a 5px 9px, transparent 10px), linear-gradient(#d4a75a, #8c6420) 50% 18px / 3px 24px no-repeat, radial-gradient(ellipse at 50% 100%, #f3d79a 0 6px, #b8862f 7px 10px, transparent 11px) bottom / 100% 20px no-repeat; }
.cl .tieback { right: 4px; } .cr .tieback { left: 4px; }
.gate.open .tieback { opacity: 1; }
.gate.open .cl { transform: scaleX(.14); filter: brightness(.7); }
.gate.open .cr { transform: scaleX(.14); filter: brightness(.7); }

/* Valance with gold scallops */
.valance {
  position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 3;
  background:
    radial-gradient(circle at 50% 0, transparent 22px, #d4a75a 23px 25px, transparent 26px) 0 22px / 52px 30px repeat-x,
    linear-gradient(180deg, #5a110d, #3a0906);
  -webkit-mask: radial-gradient(circle at 26px 54px, transparent 22px, #000 23px) 0 0 / 52px 100% repeat-x;
          mask: radial-gradient(circle at 26px 54px, transparent 22px, #000 23px) 0 0 / 52px 100% repeat-x;
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
  transition: transform 1.4s cubic-bezier(.7,0,.2,1) .5s;
}
.valance::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: linear-gradient(90deg, transparent, #f3d79a, transparent); }
.gate.open .valance { transform: translateY(-110%); }

/* Hanging lanterns */
.lanterns { position: absolute; inset: 0; z-index: 4; pointer-events: none; transition: transform 1.4s cubic-bezier(.7,0,.2,1) .4s; }
.gate.open .lanterns { transform: translateY(-120%); }
.lantern { position: absolute; top: 0; left: var(--x); width: 22px; margin-left: -11px; height: calc(var(--len) + 40px); transform-origin: 50% 0; animation: lanternSwing 3.6s ease-in-out infinite; animation-delay: var(--dl); }
.lantern::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: var(--len); background: linear-gradient(#d4a75a, #8c6420); }
.lantern::after {
  content: ""; position: absolute; left: 0; top: var(--len); width: 22px; height: 32px;
  border-radius: 6px 6px 11px 11px / 6px 6px 16px 16px;
  background: radial-gradient(ellipse at 50% 55%, #fff6cf 0 18%, #ffbe4d 45%, #c4561a 85%);
  border-top: 4px solid #d4a75a; border-bottom: 3px solid #d4a75a;
  box-shadow: 0 0 18px 6px rgba(255,170,60,.45), 0 0 50px 10px rgba(255,140,40,.2);
  animation: lanternGlow 2.2s ease-in-out infinite alternate;
}
.lantern.sm { width: 16px; margin-left: -8px; }
.lantern.sm::after { width: 16px; height: 24px; }
@keyframes lanternSwing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes lanternGlow { to { filter: brightness(1.2); box-shadow: 0 0 24px 8px rgba(255,170,60,.55), 0 0 60px 14px rgba(255,140,40,.25); } }

.gate-stars { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 12% 30%, #ffe9b0, transparent), radial-gradient(1px 1px at 85% 22%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 80%, #ffe9b0, transparent), radial-gradient(1px 1px at 25% 75%, #fff, transparent), radial-gradient(1.2px 1.2px at 50% 92%, #ffe9b0, transparent), radial-gradient(1px 1px at 92% 60%, #fff, transparent), radial-gradient(1.4px 1.4px at 6% 55%, #ffe9b0, transparent);
  animation: breathe 3s ease-in-out infinite; transition: opacity .8s; }
.gate.open .gate-stars { opacity: 0; }

/* Stage */
.gate-stage { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; padding: 64px 16px calc(18px + var(--safe-b)); transition: opacity .7s ease, transform 1s var(--ease-out); }
.gate.open .gate-stage { opacity: 0; transform: scale(1.12) translateY(-10px); pointer-events: none; }

.gcard { position: relative; width: min(80vw, 340px, 52svh); aspect-ratio: 300 / 430; animation: cardIn 1.4s .2s both var(--ease-out); }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.94); } }
.gcard::before { content: ""; position: absolute; inset: 10% -14% -4%; background: radial-gradient(closest-side, rgba(255,190,90,.28), transparent); filter: blur(18px); animation: breathe 4s ease-in-out infinite; }
.gcard-arch { position: absolute; inset: 0; width: 100%; height: 100%; }
.a-fill { filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.a-line { fill: none; stroke: url(#gGold); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawArch 2.6s .3s forwards cubic-bezier(.6,.1,.2,1); vector-effect: non-scaling-stroke; }
.a-line.thin { stroke-width: 1; stroke-opacity: .65; animation-delay: .6s; }
.a-line.thin + .a-line.thin { animation-delay: .9s; stroke-opacity: .35; }
@keyframes drawArch { to { stroke-dashoffset: 0; } }
.finial { position: absolute; top: -18px; left: 50%; width: 16px; height: 26px; margin-left: -8px;
  background: radial-gradient(circle at 50% 70%, #fff3c9 0 3px, #d4a75a 4px 7px, transparent 8px), linear-gradient(#f3d79a, #b8862f) 50% 0 / 2px 12px no-repeat;
  filter: drop-shadow(0 0 6px rgba(243,215,154,.8)); animation: fadeDown 1s 1.6s both; }

.gcard-in { position: absolute; inset: 15% 13% 7%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gcard-in > * { animation: fadeUp 1s both var(--ease-out); }
.g-ganesha { width: 30%; aspect-ratio: 1; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, #fff3c9, #d4a75a 40%, #8c6420 70%, #f3d79a); box-shadow: 0 0 22px rgba(243,215,154,.55); animation-delay: .7s !important; }
.g-ganesha img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.g-shubh { margin: 8px 0 0; font-size: clamp(.95rem, 4.4vw, 1.15rem); color: var(--gold-light); animation-delay: .9s !important; }
.g-pre { margin: 4px 0 0; font-size: clamp(.5rem, 2.3vw, .62rem); letter-spacing: .26em; text-transform: uppercase; color: var(--ivory-dim); animation-delay: 1.05s !important; }
.g-names { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.3; font-weight: 400; overflow: visible; animation: none !important; }
.g-n1, .g-n2 { font-size: clamp(2.5rem, 12.5vw, 3.6rem); background: var(--gold-grad); background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite, var(--enter) 1.3s var(--ease-out) both; padding: .12em .32em .05em; margin: -.18em 0; }
.g-n1 { --enter: fromLeft; animation-delay: 0s, 1.1s; }
.g-n2 { --enter: fromRight; animation-delay: 0s, 1.3s; }
@keyframes fromLeft { from { opacity: 0; transform: translateX(-60px); filter: blur(6px); } }
@keyframes fromRight { from { opacity: 0; transform: translateX(60px); filter: blur(6px); } }
.g-heart { position: relative; width: 30px; height: 30px; margin: -2px 0; display: grid; place-items: center; animation: heartPop .8s 2s both cubic-bezier(.3,1.6,.5,1); }
.g-heart svg { width: 22px; height: 22px; fill: #e8576b; filter: drop-shadow(0 0 8px rgba(255,110,130,.8)); animation: heartbeat 1.4s 2.8s ease-in-out infinite; }
.g-heart-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255,140,160,.8); animation: ringOut 1.4s 2.8s ease-out infinite; opacity: 0; }
@keyframes heartPop { from { opacity: 0; transform: scale(0); } }
.g-rays { position: absolute; left: 50%; top: 46%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; z-index: 2; pointer-events: none;
  background: repeating-conic-gradient(rgba(255,214,140,.07) 0 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 10%, transparent 70%); mask: radial-gradient(closest-side, #000 10%, transparent 70%);
  animation: spin 80s linear infinite; transition: opacity .6s; }
.g-hearts { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; transition: opacity .6s; }
.g-hearts i { position: absolute; bottom: -30px; width: var(--s); height: var(--s); opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f08a9a' d='M12 21s-7.5-4.6-9.6-9.4A5.3 5.3 0 0 1 12 5.6a5.3 5.3 0 0 1 9.6 6c-2.1 4.8-9.6 9.4-9.6 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(255,120,140,.6)); animation: heartRise var(--d) linear infinite; animation-delay: var(--dl); }
@keyframes heartRise { 0% { transform: translate(0,0) rotate(-10deg); opacity: 0; } 10% { opacity: var(--o); } 50% { transform: translate(var(--dx), -55vh) rotate(10deg); } 85% { opacity: var(--o); } 100% { transform: translate(0, -110vh) rotate(-10deg); opacity: 0; } }
.gate.open .g-hearts, .gate.open .g-rays { opacity: 0; }
.g-weds-unused { font-size: clamp(.55rem, 2.4vw, .7rem); letter-spacing: .4em; text-transform: uppercase; color: var(--blush); margin: 2px 0 2px .4em; }
.g-rule { display: flex; align-items: center; gap: 8px; width: 72%; margin: 10px 0 6px; color: var(--gold); font-size: .7rem; animation-delay: 1.4s !important; }
.g-rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.g-rule i:last-child { transform: scaleX(-1); }
.g-date { margin: 0; font-size: clamp(.62rem, 2.8vw, .76rem); letter-spacing: .22em; color: var(--gold-light); animation-delay: 1.5s !important; }
.g-place { margin: 2px 0 0; font-style: italic; font-size: clamp(.85rem, 3.6vw, 1rem); color: var(--ivory-dim); animation-delay: 1.6s !important; }

.g-cta {
  position: relative; margin-top: 22px; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 30px; border: 0; border-radius: 999px;
  font-family: var(--f-caps); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #3a0b08;
  background: linear-gradient(135deg, #f7e3a3, #d4a75a 55%, #b8862f);
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 30px rgba(243,215,154,.35);
  overflow: hidden; animation: fadeUp 1s 1.8s both var(--ease-out);
}
.g-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.g-cta::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg); animation: btnShine 3s ease-in-out 2.4s infinite; }
.g-cta-ring { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(243,215,154,.6); animation: ctaPing 2s 2.4s infinite; }
@keyframes ctaPing { 70%, 100% { box-shadow: 0 0 0 16px rgba(243,215,154,0); } }
.g-hint { margin: 12px 0 0; font-size: .82rem; font-style: italic; color: rgba(251,243,228,.6); animation: fadeUp 1s 2.1s both; }

@keyframes breathe { 50% { opacity: .55; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(243, 215, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(243, 215, 154, 0); } }


/* ================= REVEAL SYSTEM ================= */
[data-reveal] {
  opacity: 0;
  transition: opacity 1s ease, transform 1.1s var(--ease-out), clip-path 1.6s cubic-bezier(.6, .1, .2, 1), filter 1s ease;
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}
[data-reveal="up"] { transform: translateY(34px); }
[data-reveal="zoom"] { transform: scale(.75); filter: blur(4px); }
[data-reveal="left"] { transform: translateX(-46px); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal="rise"] { transform: translateY(70px) scale(.94); }
[data-reveal="tilt"] { transform: perspective(900px) rotateX(18deg) translateY(60px); transform-origin: 50% 0; }
[data-reveal="write"] { opacity: 1; clip-path: inset(-60% 100% -60% -40%); }
[data-reveal="draw"] { opacity: 1; }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-reveal="write"].in { clip-path: inset(-60% -40% -60% -40%); }

/* ================= SHARED ================= */
section { position: relative; padding: 48px 0; }
.eyebrow { margin: 0 0 6px; font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.sec-title { margin: 0; font-size: clamp(2.8rem, 12vw, 4.4rem); line-height: 1.15; }
.divider { display: block; width: min(70vw, 280px); height: 24px; margin: 10px auto 20px; }
.divider path, .divider circle { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s ease; }
.divider.in path, .divider.in circle { stroke-dashoffset: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  font-family: var(--f-caps); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .3s ease, background .3s ease;
  position: relative; overflow: hidden;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:active { transform: scale(.96); }
.btn-gold { color: #3a0b08; background: linear-gradient(135deg, #f7e3a3, #d4a75a 55%, #b8862f); box-shadow: 0 6px 18px rgba(212, 167, 90, .3); font-weight: 600; }
.btn-gold::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg); animation: btnShine 4.5s ease-in-out infinite;
}
@keyframes btnShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn-ghost { color: var(--gold-light); border-color: var(--line); background: rgba(42, 8, 6, .35); }
.btn-ghost:hover { background: rgba(212, 167, 90, .12); }
.btn.wide { width: 100%; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.center-actions { justify-content: center; }

/* Mandala monogram badge */
.mono-badge { position: relative; width: 120px; aspect-ratio: 1; margin: 0 auto 6px; display: grid; place-items: center; }
.mono-badge.small { width: 120px; }
.mandala { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mandala svg { width: 100%; height: 100%; display: block; }
.mandala-mono { animation: spin 80s linear infinite; }
.mono-text { position: relative; font-family: var(--f-serif); font-weight: 600; font-size: 2.1rem; color: var(--ivory); letter-spacing: .02em; text-shadow: 0 0 18px rgba(243, 215, 154, .45); }
.mono-badge.small .mono-text { font-size: 1.7rem; }
.mono-text i, .mono-mini i { font-family: var(--f-script); font-style: normal; font-size: .62em; color: var(--gold-light); margin: 0 .04em; }

/* ================= INVOCATION ================= */
.invocation { min-height: 0; padding-top: 96px; padding-bottom: 24px; display: flex; align-items: center; overflow: hidden; }
.garland {
  position: absolute; top: -6px; width: min(34vw, 230px); height: auto; z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%), linear-gradient(to right, #000 70%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to bottom, #000 62%, transparent 98%), linear-gradient(to right, #000 70%, transparent);
  transform-origin: top center;
  animation: sway 6s ease-in-out infinite;
}
.garland-l { left: 0; }
.garland-r { right: 0; transform: scaleX(-1); animation-name: swayR; animation-delay: -2s; }
@keyframes sway { 50% { transform: rotate(1.6deg); } }
@keyframes swayR { 0%, 100% { transform: scaleX(-1) rotate(0); } 50% { transform: scaleX(-1) rotate(1.6deg); } }
.fairy-top { position: absolute; top: 0; left: 10%; right: 10%; height: 70px; z-index: 0; }

.ganesha-frame { position: relative; width: min(60vw, 250px); margin: 0 auto 20px; aspect-ratio: 440 / 420; }
.halo {
  position: absolute; inset: -34%; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(243, 215, 154, .22) 0 4deg, transparent 4deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%);
  animation: spin 40s linear infinite;
}
.ganesha-box {
  position: relative; width: 100%; height: 100%; border-radius: 22px; padding: 5px;
  background: linear-gradient(135deg, #fff3c9, #d4a75a 30%, #8c6420 55%, #f3d79a 80%, #b8862f);
  box-shadow: 0 0 30px rgba(243, 215, 154, .45), 0 0 80px rgba(243, 160, 60, .25);
  animation: glowPulse 3.5s ease-in-out infinite;
}
.ganesha-box::after { content: ""; position: absolute; inset: 11px; border-radius: 15px; border: 1px solid rgba(255, 236, 190, .6); pointer-events: none; }
.ganesha-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }
@keyframes glowPulse { 50% { box-shadow: 0 0 46px rgba(243, 215, 154, .7), 0 0 110px rgba(243, 160, 60, .35); } }
.om-big { font-size: clamp(1.7rem, 7.6vw, 2.6rem); margin: 6px 0 0; line-height: 1.5; }
.shloka p { margin: 0; font-size: clamp(1.02rem, 4.6vw, 1.4rem); color: var(--gold-light); line-height: 1.9; }
.shloka-en { margin: 12px auto 0; max-width: 34ch; font-style: italic; font-size: .98rem; color: var(--ivory-dim); }
.invite-line br { display: none; }
.invite-line { max-width: 30ch; margin: 30px auto 0; font-size: clamp(1.05rem, 4.4vw, 1.3rem); line-height: 1.7; color: var(--ivory); }

.scroll-cue { display: block; width: 26px; height: 42px; margin: 22px auto 0; border: 1.5px solid var(--gold); border-radius: 14px; position: relative; opacity: .8; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-light); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* Fairy lights */
.fairy { position: absolute; inset: 0; }
.fairy svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fairy path { fill: none; stroke: rgba(80, 50, 20, .9); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.bulb {
  position: absolute; width: 7px; height: 7px; margin: -2px 0 0 -3.5px; border-radius: 50%;
  background: #fff4c8; box-shadow: 0 0 6px 2px rgba(255, 220, 130, .85), 0 0 16px 4px rgba(255, 190, 80, .35);
  animation: twinkle 2.4s ease-in-out infinite;
}
@keyframes twinkle { 50% { opacity: .35; transform: scale(.75); } }

/* ================= HERO ================= */
.hero { padding-top: 0; }
@media (min-width: 960px) { .invocation { min-height: 100svh; } .invite-line br { display: inline; } .invite-line { max-width: none; } .hero { padding-top: 60px; } }
.names { margin: 4px 0 0; display: flex; flex-direction: column; align-items: center; line-height: 1; font-weight: 400; }
.name { font-size: clamp(3.6rem, 19vw, 7rem); line-height: 1.3; display: inline-block; padding: .1em .35em 0; margin: -.15em 0; }
.amp { font-size: clamp(2.4rem, 11vw, 3.6rem); color: var(--blush); margin: -.25em 0; text-shadow: 0 0 20px rgba(242, 184, 176, .5); }
.getting-married { margin: 2px 0 28px; font-size: .78rem; letter-spacing: .5em; text-transform: uppercase; color: var(--ivory-dim); padding-left: .5em; }

.arch-wrap { position: relative; width: min(82vw, 380px); margin: 0 auto; }
.arch-wrap::before {
  content: ""; position: absolute; inset: -14px; z-index: 0;
  border: 1px solid var(--line); border-radius: 50% 50% 24px 24px / 36% 36% 24px 24px;
}
.arch-glow { position: absolute; inset: 10% -10% -6%; background: radial-gradient(closest-side, rgba(243, 160, 90, .35), transparent); filter: blur(20px); z-index: 0; }
.arch {
  position: relative; z-index: 1; padding: 5px; aspect-ratio: 605 / 732;
  border-radius: 50% 50% 18px 18px / 36% 36% 18px 18px;
  background: linear-gradient(160deg, #fff3c9, #d4a75a 25%, #8c6420 50%, #f3d79a 75%, #b8862f);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.arch img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; animation: kenburns 18s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes kenburns { to { transform: scale(1.07); } }
.arch-shine { position: absolute; inset: 5px; border-radius: inherit; overflow: hidden; pointer-events: none; }
.arch-shine::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 35%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 245, 220, .35), transparent);
  transform: skewX(-18deg); animation: archShine 7s ease-in-out 2s infinite;
}
@keyframes archShine { 0%, 65% { left: -60%; } 100% { left: 140%; } }
.arch-orn { position: absolute; z-index: 2; width: 34px; height: 34px; top: 28%; border-radius: 50%;
  background: radial-gradient(circle, #fff3c9 0 18%, #d4a75a 20% 34%, transparent 36%), conic-gradient(from 0deg, #d4a75a 0 10deg, transparent 10deg 45deg, #d4a75a 45deg 55deg, transparent 55deg 90deg, #d4a75a 90deg 100deg, transparent 100deg 135deg, #d4a75a 135deg 145deg, transparent 145deg 180deg, #d4a75a 180deg 190deg, transparent 190deg 225deg, #d4a75a 225deg 235deg, transparent 235deg 270deg, #d4a75a 270deg 280deg, transparent 280deg 315deg, #d4a75a 315deg 325deg, transparent 325deg);
  -webkit-mask: radial-gradient(circle, #000 66%, transparent 68%); mask: radial-gradient(circle, #000 66%, transparent 68%);
  animation: spin 14s linear infinite; }
.arch-orn.tl { left: -17px; } .arch-orn.tr { right: -17px; animation-direction: reverse; }

.hero-date { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; max-width: 420px; margin: 30px auto 0; }
.hd-side { border-block: 1px solid var(--gold); padding: 8px 0; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }
.hd-mid { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.hd-mid b { font-size: 3.6rem; font-weight: 600; color: var(--gold-light); text-shadow: 0 0 20px rgba(243, 215, 154, .4); }
.hd-mid em { font-family: var(--f-script); font-style: normal; font-size: 1.8rem; color: var(--blush); margin-top: -2px; }
.hd-mid .yr { font-size: 1rem; letter-spacing: .4em; margin-top: 6px; padding-left: .4em; color: var(--gold); text-shadow: none; }

/* ================= COUNTDOWN ================= */
.countdown-sec { padding: 28px 0 20px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 520px; margin: 18px auto 0; }
.cd {
  position: relative; padding: 16px 2px 12px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(122, 31, 25, .55), rgba(42, 8, 6, .7));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(243, 215, 154, .2), 0 10px 24px rgba(0, 0, 0, .3);
  overflow: hidden; perspective: 400px;
}
.cd::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .35); }
.cd-num { display: block; font-size: clamp(1.9rem, 9vw, 2.8rem); font-weight: 600; line-height: 1.1; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.cd-num.tick { animation: flip .6s var(--ease-out); }
@keyframes flip { 0% { transform: rotateX(-90deg); opacity: .2; } 100% { transform: none; opacity: 1; } }
.cd-lbl { display: block; margin-top: 4px; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.cd-note { margin: 16px 0 0; font-style: italic; color: var(--ivory-dim); }

/* ================= FAMILIES ================= */
.fam-grid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fam-card {
  position: relative; width: 100%; max-width: 380px; padding: 34px 22px 30px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(122, 31, 25, .5), rgba(42, 8, 6, .65));
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.fam-card::before, .fam-card::after {
  content: ""; position: absolute; width: 42px; height: 42px; border: 2px solid var(--gold);
}
.fam-card::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.fam-card::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.portrait { position: relative; width: 136px; aspect-ratio: 1; margin: 0 auto 14px; }
.pt {
  position: absolute; inset: 8px; border-radius: 50%;
  background-image: url("../assets/img/engagement.webp"); background-size: 360% auto; background-repeat: no-repeat;
  box-shadow: 0 0 0 3px var(--gold), 0 10px 24px rgba(0, 0, 0, .4);
}
.pt-bride { background-image: url("../assets/img/bride-face.webp"); background-size: cover; background-position: 50% 30%; }
.pt-groom { background-image: url("../assets/img/groom-face.webp"); background-size: cover; background-position: 50% 30%; }
.signoff-hosts { margin: -6px 0 22px; font-size: 1.02rem; font-style: italic; color: var(--ivory-dim, #e9dcc4); opacity: .9; }
.theme-baarat .ev-media img { object-position: 62% 12%; }
.theme-vidaai .ev-media img { object-position: 62% 22%; }
.pt-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--gold-light); animation: spin 26s linear infinite; }
.fam-role { margin: 0; font-size: .7rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.fam-name { margin: 0; font-size: 3.4rem; line-height: 1.2; }
.fam-rel { margin: 6px 0 2px; font-style: italic; color: var(--ivory-dim); }
.fam-parents { margin: 0; font-size: 1.18rem; font-weight: 600; line-height: 1.45; color: var(--ivory); }
.fam-parents span { font-family: var(--f-script); font-weight: 400; color: var(--gold-light); font-size: 1.3rem; }
.fam-join { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.fj-line { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.fj-heart { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); background: rgba(122, 31, 25, .6); animation: heartbeat 1.6s ease-in-out infinite; }
.fj-heart svg { width: 22px; height: 22px; fill: var(--blush); stroke: none; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }

/* ================= EVENTS / TIMELINE ================= */
.timeline { position: relative; max-width: 1120px; }
.tl-track { position: absolute; top: 0; bottom: 40px; left: 29px; width: 2px; background: var(--line-soft); border-radius: 2px; }
.tl-fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, #f7e3a3, #d4a75a 60%, #b8862f); box-shadow: 0 0 10px rgba(243, 215, 154, .7); border-radius: 2px; }
.ev { position: relative; padding-left: 36px; margin-bottom: 46px; }
.ev:last-child { margin-bottom: 0; }
.tl-node {
  position: absolute; left: 4px; top: 30px; width: 20px; height: 20px; z-index: 2;
  border-radius: 50%; background: var(--maroon-800); border: 2px solid var(--line);
  display: grid; place-items: center; transition: border-color .6s, box-shadow .6s;
}
.tl-node i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .6s, transform .6s; }
.ev.lit .tl-node { border-color: var(--gold-light); box-shadow: 0 0 0 5px rgba(243, 215, 154, .12), 0 0 16px rgba(243, 215, 154, .7); }
.ev.lit .tl-node i { background: var(--gold-light); transform: scale(1.1); }

.ev-card {
  --acc: var(--gold-light); --bg1: #5a1410; --bg2: #2a0806; --glow: rgba(243, 215, 154, .25);
  position: relative; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45), 0 0 50px var(--glow);
  text-align: center;
}
.theme-marigold .ev-card { --acc: #ffc94a; --bg1: #6a2410; --bg2: #2f0b05; --glow: rgba(244, 163, 0, .16); }
.theme-haldi .ev-card { --acc: #ffd75e; --bg1: #5e2610; --bg2: #2a0a05; --glow: rgba(255, 215, 94, .16); }
.theme-baarat .ev-card { --acc: #ffd27a; --bg1: #4f0f2a; --bg2: #21060f; --glow: rgba(255, 190, 90, .18); }
.theme-vidaai .ev-card { --acc: #ffc6d2; --bg1: #6a2236; --bg2: #2a0a12; --glow: rgba(255, 170, 190, .18); border-color: rgba(255, 190, 205, .32); }
.theme-moon .ev-card { --acc: #d6e4ff; --bg1: #1f2d52; --bg2: #0e152b; --glow: rgba(150, 180, 255, .16); border-color: rgba(190, 210, 255, .3); }
.theme-wedding .ev-card { --acc: #f3d79a; --bg1: #6a1712; --bg2: #2a0806; --glow: rgba(243, 215, 154, .2); }

.ev-media { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; }
.ev-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.6s var(--ease-out); transform: scale(1.12); }
.ev-card.in .ev-media img { transform: scale(1); }
.ev-media::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(to top, var(--bg1), transparent); pointer-events: none; }
.ev-date {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  width: 62px; padding: 8px 0 6px; border-radius: 14px 14px 30px 30px;
  background: linear-gradient(160deg, #f7e3a3, #d4a75a 55%, #a87a2c); color: #3a0b08;
  display: flex; flex-direction: column; align-items: center; line-height: 1; box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}
.ev-date b { font-size: 1.7rem; font-weight: 700; }
.ev-date span { font-family: var(--f-caps); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 2px; }
.ev-body { position: relative; padding: 6px 20px 26px; }
.ev-no { margin: 0; font-size: .64rem; letter-spacing: .32em; text-transform: uppercase; color: var(--acc); opacity: .85; }
.ev-title { margin: 2px 0 12px; font-size: clamp(2.3rem, 10vw, 2.9rem); line-height: 1.15; color: var(--acc); text-shadow: 0 0 22px var(--glow); }
.ev-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; justify-items: center; }
.ev-meta li { display: inline-flex; align-items: flex-start; gap: 9px; font-size: 1.08rem; font-weight: 500; color: var(--ivory); text-align: left; }
.ev-meta svg { width: 18px; height: 18px; margin-top: 4px; flex: none; fill: none; stroke: var(--acc); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ev-rings { position: absolute; right: 14px; top: 14px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 21, 43, .7); border: 1px solid rgba(214, 228, 255, .4); animation: floaty 4s ease-in-out infinite; }
.ev-rings svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-light); stroke-width: 1.5; }
@keyframes floaty { 50% { transform: translateY(-6px) rotate(6deg); } }
.theme-moon .ev-card::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 20% 70%, #fff, transparent), radial-gradient(1px 1px at 80% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 60% 90%, #dfe8ff, transparent), radial-gradient(1px 1px at 35% 85%, #fff, transparent), radial-gradient(1.2px 1.2px at 90% 60%, #fff, transparent);
  animation: twinkle 3s ease-in-out infinite;
}
.fairy-card { position: absolute; top: 0; left: 0; right: 0; height: 56px; z-index: 3; }

.ev-petals { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.ev-petals i { position: absolute; top: -20px; width: 12px; height: 9px; border-radius: 60% 0 60% 0; background: radial-gradient(circle at 30% 30%, #ffe08a, #f4a300 70%); animation: petalFall linear infinite; opacity: .9; }
@keyframes petalFall { to { transform: translate(var(--dx, 30px), 420px) rotate(320deg); } }

/* Marigold toran */
.toran { position: absolute; top: 0; left: 0; right: 0; z-index: 4; height: 0; display: flex; justify-content: space-between; padding: 0 6px; pointer-events: none; }
.toran::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: radial-gradient(circle at 6px 6px, #ffb31a 4.5px, #e07b00 5.5px, transparent 6.5px) 0 0 / 12px 12px repeat-x; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }
.strand { position: relative; display: flex; flex-direction: column; align-items: center; transform-origin: top center; animation: strandSway 3.4s ease-in-out infinite; padding-top: 8px; }
.strand .mg { width: 13px; height: 13px; margin-top: -2px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffd35c 0 25%, #ff9f0f 55%, #d86a00 80%); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.strand .mg.y { background: radial-gradient(circle at 40% 35%, #fff09a 0 25%, #ffc928 55%, #e09a00 80%); }
.strand .leaf { width: 9px; height: 14px; margin-top: 1px; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, #5f8f3a, #2f5a1c); transform: rotate(45deg); }
@keyframes strandSway { 50% { transform: rotate(var(--sw, 3deg)); } }

/* ================= GALLERY ================= */
.carousel {
  position: relative; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 30px 11vw 20px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline: none; }
.carousel.dragging { scroll-snap-type: none; cursor: grabbing; }
.carousel.dragging .slide { transition: none; }
.carousel.dragging img { pointer-events: none; }
.gal-wrap { position: relative; }
.slide { flex: 0 0 78vw; max-width: 340px; margin: 0; scroll-snap-align: center; transition: transform .6s var(--ease-out), opacity .6s; transform: scale(.88); opacity: .55; }
.slide.active { transform: scale(1); opacity: 1; }
.slide-btn { display: block; width: 100%; padding: 5px; border: 0; border-radius: 50% 50% 18px 18px / 30% 30% 18px 18px; background: linear-gradient(160deg, #fff3c9, #d4a75a 30%, #8c6420 55%, #f3d79a 80%); box-shadow: 0 24px 50px rgba(0, 0, 0, .5); }
.slide-btn img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: inherit; }
.slide figcaption { margin-top: 14px; font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); text-align: center; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 9px; border: 0; background: var(--line); transition: width .4s, background .4s; position: relative; }
.dots button::after { content: ""; position: absolute; inset: -16px -6px; }
.dots button.on { width: 28px; background: var(--gold-light); }

/* ================= VENUE ================= */
.venue-card { margin: 30px auto 0; max-width: 640px; padding: 30px 16px 24px; border-radius: 28px; background: linear-gradient(180deg, rgba(122, 31, 25, .5), rgba(42, 8, 6, .7)); border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.venue-icon { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #f7e3a3, #d4a75a 55%, #a87a2c); animation: floaty 3.4s ease-in-out infinite; }
.venue-icon svg { width: 28px; height: 28px; fill: none; stroke: #5a1410; stroke-width: 1.8; }
.venue-head h3 { margin: 0; font-size: 1.5rem; letter-spacing: .14em; color: var(--gold-light); }
.venue-head p { margin: 4px 0 0; font-size: 1.12rem; }
.venue-head .venue-sub { font-style: italic; color: var(--ivory-dim); font-size: 1rem; }

/* ================= CLOSING ================= */
.closing { padding-top: 10px; padding-bottom: 30px; overflow: hidden; }
.chandelier { position: relative; width: min(64vw, 270px); margin: 0 auto -10px; transform-origin: 50% 0; animation: swing 5s ease-in-out infinite; }
.chandelier svg { width: 100%; height: auto; display: block; }
.ch-flames .fl { fill: #ffd27a; filter: drop-shadow(0 0 6px #ffb84a) drop-shadow(0 0 14px rgba(255, 160, 60, .7)); transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.3s ease-in-out infinite alternate; }
.ch-flames .fl:nth-child(2n) { animation-duration: 1.7s; }
.ch-crystals g path { animation: glint 3s ease-in-out infinite; }
.ch-crystals g path:nth-child(2n) { animation-delay: -1.5s; }
.ch-glow { position: absolute; left: 10%; right: 10%; top: 25%; height: 50%; background: radial-gradient(closest-side, rgba(255, 200, 110, .35), transparent); filter: blur(10px); pointer-events: none; animation: breathe 3s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes flicker { 0% { transform: scale(1, 1) rotate(-2deg); opacity: 1; } 50% { transform: scale(.92, 1.08) rotate(2deg); opacity: .85; } 100% { transform: scale(1.05, .95) rotate(-1deg); opacity: 1; } }
@keyframes glint { 50% { opacity: .35; } }
.closing-msg { margin: 18px auto 0; max-width: 32ch; font-size: clamp(1.25rem, 5.4vw, 1.6rem); line-height: 1.6; font-weight: 500; }
.closing-msg em { font-family: var(--f-script); font-style: normal; font-size: 1.35em; color: var(--gold-light); }
.closing-msg2 { margin: 14px auto 0; font-style: italic; color: var(--ivory-dim); font-size: 1.12rem; }

.candles { display: flex; justify-content: center; align-items: flex-end; gap: 18px; height: 110px; margin: 34px auto 20px; }
.candle { position: relative; width: 18px; border-radius: 4px 4px 3px 3px; background: linear-gradient(90deg, #e9d6b8, #fff8ea 40%, #d9c09a); box-shadow: 0 0 30px rgba(255, 190, 90, .25); }
.candle::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1.5px; height: 7px; margin-left: -.75px; background: #3a2a1a; }
.candle i { position: absolute; left: 50%; bottom: 100%; width: 12px; height: 22px; margin: 0 0 4px -6px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(ellipse at 50% 80%, #fff 0 15%, #ffe08a 35%, #ff9d2e 70%, transparent 72%); filter: drop-shadow(0 0 8px #ffb84a); transform-origin: 50% 100%; animation: flicker 1.2s ease-in-out infinite alternate; }
.candle i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 190, 90, .25), transparent); }
.c1 { height: 46px; } .c2 { height: 66px; } .c3 { height: 84px; } .c4 { height: 62px; } .c5 { height: 42px; }
.c2 i { animation-duration: 1.5s; } .c4 i { animation-duration: 1.7s; } .c5 i { animation-duration: 1.35s; }

.signoff { margin: 20px 0 0; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.signoff-fam { margin: 2px 0 8px; font-size: clamp(2.3rem, 10vw, 3.4rem); line-height: 1.25; }
.hashtag { margin: 30px 0 0; font-size: .85rem; letter-spacing: .26em; color: var(--blush); }
.footer { margin-top: 40px; padding: 18px 16px; text-align: center; font-size: .85rem; color: rgba(251, 243, 228, .55); border-top: 1px solid var(--line-soft); }
.footer svg { width: 13px; height: 13px; fill: var(--blush); vertical-align: -1px; }

/* Butterflies */
.bfly { position: absolute; left: 0; top: 0; width: 56px; height: 46px; will-change: transform; perspective: 220px; filter: drop-shadow(0 0 8px var(--glow, rgba(255,200,120,.55))) drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.bfly .w { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; animation: flapL var(--flap, .32s) ease-in-out infinite alternate; }
.bfly .w.l { left: 0; transform-origin: 100% 50%; }
.bfly .w.r { left: 50%; transform-origin: 0 50%; animation-name: flapR; }
.bfly .w svg { width: 100%; height: 100%; display: block; }
.bfly .w.r svg { transform: scaleX(-1); }
.bfly .body { position: absolute; left: 50%; top: 2px; width: 14px; height: 42px; margin-left: -7px; }
.bfly .body svg { width: 100%; height: 100%; display: block; }
.bfly.glide .w { animation-duration: 1.4s; }
@keyframes flapL { from { transform: rotateY(8deg); } to { transform: rotateY(72deg); } }
@keyframes flapR { from { transform: rotateY(-8deg); } to { transform: rotateY(-72deg); } }

/* Floating background hearts */
.bg-hearts { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 2s 1s; }
body.opened .bg-hearts { opacity: 1; }
main { position: relative; z-index: 1; }
.bg-hearts i { position: absolute; bottom: -40px; left: var(--x); width: var(--s); height: var(--s); opacity: 0; animation: bgHeart var(--d) linear infinite; animation-delay: var(--dl); }
.bg-hearts i::before { content: ""; position: absolute; inset: 0; background: var(--c); filter: blur(var(--b, 0px));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.4A5.3 5.3 0 0 1 12 5.6a5.3 5.3 0 0 1 9.6 6c-2.1 4.8-9.6 9.4-9.6 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.4A5.3 5.3 0 0 1 12 5.6a5.3 5.3 0 0 1 9.6 6c-2.1 4.8-9.6 9.4-9.6 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: heartSway 4s ease-in-out infinite alternate; }
@keyframes bgHeart { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: var(--o); } 85% { opacity: var(--o); } 100% { transform: translateY(-115vh); opacity: 0; } }
@keyframes heartSway { from { transform: translateX(calc(var(--dx) * -1)) rotate(-12deg) scale(.95); } to { transform: translateX(var(--dx)) rotate(12deg) scale(1.05); } }

/* ================= NAV ================= */
.bottomnav {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); z-index: 60;
  height: 60px; display: grid; grid-template-columns: repeat(5, 1fr);
  border-radius: 20px; border: 1px solid var(--line);
  background: rgba(42, 8, 6, .78); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transform: translateY(150%); transition: transform .8s var(--ease-out);
}
body.opened .bottomnav { transform: none; }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: rgba(251, 243, 228, .6); font-family: var(--f-caps); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; position: relative; transition: color .3s; }
.bottomnav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.bottomnav a.on { color: var(--gold-light); }
.bottomnav a.on svg { transform: translateY(-2px) scale(1.1); }
.bottomnav a::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-light); opacity: 0; transition: opacity .3s; }
.bottomnav a.on::after { opacity: 1; }

.topbar { display: none; }

/* Music button */
.music {
  position: fixed; right: 14px; bottom: calc(112px + var(--safe-b)); z-index: 61;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold);
  background: radial-gradient(circle at 35% 30%, #7a1f19, #2a0806);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45), 0 0 0 4px rgba(212, 167, 90, .12);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.5); pointer-events: none; transition: opacity .6s, transform .6s var(--ease-out);
}
body.opened .music { opacity: 1; transform: none; pointer-events: auto; }
.music .disc { display: grid; place-items: center; }
.music .disc svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-light); stroke-width: 1.7; }
.music.playing .disc { animation: spin 4s linear infinite; }
.music .bars { position: absolute; bottom: -18px; display: flex; gap: 2px; height: 12px; align-items: flex-end; opacity: 0; transition: opacity .3s; }
.music.playing .bars { opacity: 1; }
.music .bars i { width: 3px; height: 100%; background: var(--gold-light); border-radius: 2px; animation: eq .9s ease-in-out infinite alternate; transform-origin: bottom; }
.music .bars i:nth-child(2) { animation-delay: -.3s; } .music .bars i:nth-child(3) { animation-delay: -.6s; } .music .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.music:not(.playing)::after { content: ""; position: absolute; width: 60%; height: 1.5px; background: var(--gold-light); transform: rotate(-45deg); }

/* ================= SHEET / LIGHTBOX / TOAST ================= */
.sheet { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.sheet.show { visibility: visible; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 2, 1, .65); opacity: 0; transition: opacity .4s; }
.sheet.show .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 22px calc(26px + var(--safe-b));
  border-radius: 28px 28px 0 0; text-align: center;
  background: linear-gradient(180deg, #5a1410, #2a0806); border-top: 1px solid var(--gold);
  transform: translateY(105%); transition: transform .5s var(--ease-out);
  display: grid; gap: 10px;
}
.sheet.show .sheet-panel { transform: none; }
.sheet-grab { width: 44px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 8px; }
.sheet-panel h3 { margin: 0; font-size: 2.6rem; line-height: 1.2; }
.sheet-when { margin: 0 0 8px; color: var(--ivory-dim); }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.sheet-x svg, .lb-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; }

.lightbox { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(15, 3, 2, .94); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; touch-action: pan-y; }
.lightbox.show { opacity: 1; visibility: visible; }
.lb-fig { margin: 0; padding: 16px; max-width: 100%; text-align: center; transform: scale(.92); transition: transform .5s var(--ease-out); }
.lightbox.show .lb-fig { transform: none; }
.lb-fig img { max-width: min(92vw, 640px); max-height: 76vh; border-radius: 18px; border: 2px solid var(--gold); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); margin: 0 auto; }
.lb-fig figcaption { margin-top: 14px; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(42, 8, 6, .7); display: grid; place-items: center; z-index: 2; }
.lb-x { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.lb-prev { left: 10px; top: 50%; margin-top: -24px; }
.lb-next { right: 10px; top: 50%; margin-top: -24px; }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); z-index: 99; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 999px; background: var(--gold-light); color: #3a0b08; font-weight: 600; font-size: 1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: opacity .35s, transform .35s var(--ease-out); pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= TABLET (≥600px) ================= */
@media (min-width: 600px) {
  section { padding: 90px 0; }
  .countdown-sec { padding: 50px 0; }
  .countdown { gap: 16px; }
  .cd { padding: 22px 6px 16px; }
  .slide { flex-basis: 46vw; }
  .carousel { padding-inline: 27vw; }
  .ev { padding-left: 52px; }
  .venue-card { padding: 36px 30px 30px; }
}

/* ================= DESKTOP (≥960px) ================= */
@media (min-width: 960px) {
  body { padding-bottom: 0; font-size: 19px; }
  .bottomnav { display: none; }
  .music { bottom: 24px; right: 24px; width: 56px; height: 56px; }
  .toast { bottom: 40px; }

  .topbar {
    display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 70px; padding: 0 36px;
    align-items: center; justify-content: space-between;
    background: rgba(42, 8, 6, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-100%); transition: transform .6s var(--ease-out);
  }
  .topbar.show { transform: none; }
  .brand { text-decoration: none; }
  .mono-mini { font-family: var(--f-serif); font-weight: 600; font-size: 1.6rem; color: var(--ivory); }
  .topnav { display: flex; gap: 30px; }
  .topnav a { position: relative; text-decoration: none; font-family: var(--f-caps); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(251, 243, 228, .7); padding: 6px 0; transition: color .3s; }
  .topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease-out); }
  .topnav a:hover, .topnav a.on { color: var(--gold-light); }
  .topnav a:hover::after, .topnav a.on::after { transform: scaleX(1); }

  .garland { width: min(22vw, 300px); }
  .hero .container { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "mono arch" "names arch" "gm arch" "date arch"; column-gap: 60px; align-items: center; text-align: center; }
  .hero .mono-badge { grid-area: mono; align-self: end; }
  .hero .names { grid-area: names; }
  .hero .getting-married { grid-area: gm; margin-bottom: 0; }
  .hero .arch-wrap { grid-area: arch; width: min(36vw, 420px); }
  .hero .hero-date { grid-area: date; align-self: start; }

  .fam-grid { flex-direction: row; justify-content: center; align-items: stretch; gap: 20px; }
  .fam-join { flex-direction: column; padding: 0 6px; }
  .fj-line { width: 1px; height: 90px; background: linear-gradient(180deg, transparent, var(--gold), transparent); }

  /* Alternating timeline */
  .timeline { padding-top: 10px; }
  .tl-track { left: 50%; margin-left: -1px; }
  .ev { width: 50%; padding: 0 56px 0 0; margin-bottom: -60px; }
  .ev:nth-child(odd) { margin-left: 50%; padding: 0 0 0 56px; }
  .ev:last-child { margin-bottom: 0; }
  .ev .tl-node { left: auto; right: -10px; top: 50px; }
  .ev:nth-child(odd) .tl-node { right: auto; left: -10px; }
  .ev-card { max-width: 460px; margin-left: auto; }
  .ev:nth-child(odd) .ev-card { margin-left: 0; }

  .carousel { padding-inline: calc(50vw - 190px); gap: 34px; cursor: grab; padding-top: 40px; padding-bottom: 26px; }
  .slide { flex-basis: 380px; max-width: 380px; transform: scale(.84); opacity: .45; }
  .slide.active { transform: scale(1); opacity: 1; }
  .slide:not(.active):hover { opacity: .7; }
  .lb-prev { left: 30px; } .lb-next { right: 30px; }

  .sheet-panel { left: 50%; right: auto; bottom: 50%; width: 420px; border-radius: 28px; border: 1px solid var(--gold); transform: translate(-50%, 60%) scale(.9); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
  .sheet.show .sheet-panel { transform: translate(-50%, 50%); opacity: 1; }
  .sheet-grab { display: none; }
}

/* Hover only where real hover exists */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-gold:hover { box-shadow: 0 10px 26px rgba(212, 167, 90, .45); }
  .slide-btn:hover img { filter: brightness(1.06); }
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { transform: none !important; filter: none !important; clip-path: none !important; transition: opacity .5s ease !important; }
  .ev-media img { transform: none !important; }
  .door { transition-duration: .8s; }
}

/* ===== Event extras ===== */
.ev-tag { margin: -6px auto 14px; max-width: 30ch; font-style: italic; font-size: 1.02rem; color: var(--ivory-dim); }
.ev-badge { position: absolute; right: 14px; top: 14px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; background: rgba(33, 6, 15, .7); border: 1px solid rgba(255, 210, 122, .45); animation: floaty 3.6s ease-in-out infinite; }
.ev-petals.rose i { background: radial-gradient(circle at 30% 30%, #ffe3ea, #f497aa 70%); border-radius: 60% 0 60% 0; }

/* Baarat route */
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; max-width: 330px; margin: 16px auto 2px; padding: 14px 14px 12px; border-radius: 18px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 210, 122, .22); }
.r-pt { display: flex; flex-direction: column; align-items: center; line-height: 1.15; min-width: 0; }
.r-pt small { font-family: var(--f-caps); font-size: .55rem; letter-spacing: .24em; text-transform: uppercase; color: var(--acc); }
.r-pt b { font-size: 1.12rem; font-weight: 700; color: var(--ivory); margin-top: 2px; }
.r-pt em { font-size: .78rem; color: var(--ivory-dim); }
.r-line { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--acc) 0 6px, transparent 6px 11px); opacity: .9; }
.r-line i { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff3c9; box-shadow: 0 0 10px 3px rgba(255, 200, 110, .8); animation: travel 3.2s ease-in-out infinite; }
.r-heart { position: absolute; right: -4px; top: 50%; width: 14px; height: 14px; margin-top: -7px; fill: #e8576b; stroke: none; animation: heartbeat 1.4s ease-in-out infinite; }
@keyframes travel { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { left: 92%; opacity: 0; } }

/* Fireworks */
.fireworks { position: absolute; inset: 0 0 40%; z-index: 2; pointer-events: none; }
.fw { position: absolute; width: 0; height: 0; }
.fw i { position: absolute; left: -1px; top: 0; width: 2px; height: 16px; border-radius: 2px; background: linear-gradient(var(--fc), transparent); transform-origin: 50% 0; opacity: 0; animation: fwRay 2.8s ease-out infinite; animation-delay: var(--fd); }
.fw::after { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px 6px var(--fc); opacity: 0; animation: fwFlash 2.8s ease-out infinite; animation-delay: var(--fd); }
@keyframes fwRay { 0% { transform: rotate(var(--a)) translateY(0) scaleY(.2); opacity: 0; } 8% { opacity: 1; } 55% { transform: rotate(var(--a)) translateY(30px) scaleY(1); opacity: .9; } 80%, 100% { transform: rotate(var(--a)) translateY(40px) scaleY(.4); opacity: 0; } }
@keyframes fwFlash { 0% { opacity: 0; transform: scale(.4); } 6% { opacity: 1; transform: scale(1.2); } 30%, 100% { opacity: 0; transform: scale(.3); } }

/* Venue tabs */
.venue-tabs { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin: 22px auto 0; padding: 5px; border-radius: 999px; background: rgba(42, 8, 6, .6); border: 1px solid var(--line); width: min(100%, 330px); }
.vt { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 999px; background: none; font-family: var(--f-caps); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); transition: color .4s; }
.vt svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.vt.on { color: #3a0b08; font-weight: 600; }
.vt-ind { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: linear-gradient(135deg, #f7e3a3, #d4a75a 55%, #b8862f); box-shadow: 0 6px 16px rgba(212, 167, 90, .35); transition: transform .5s var(--ease-out); }
.venue-tabs[data-active="1"] .vt-ind { transform: translateX(100%); }
.venue-card .venue-head { transition: opacity .35s ease, transform .35s ease; }
.venue-card .venue-head.swap { opacity: 0; transform: translateY(8px); }

@keyframes ringOut { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
