/* ==========================================================================
   Baat Pakki — dusty blue, ivory & champagne gold
   Velvet ring box opening → couple under the floral arch → alternating
   ivory / midnight-blue bands, chandeliers, falling petals, gold dust.
   ========================================================================== */
:root {
	color-scheme: light;
	--ivory: #fbf8f2; --mist: #eef3f8; --mist-2: #dfe8f2;
	--blue: #7f9cc0; --blue-d: #4f6f96; --blue-dd: #34507a;
	--navy: #1e3150; --navy-2: #142339; --ink: #22344f; --ink-2: #5a6c84;
	--gold: #c8a35a; --gold-l: #f1dcaa; --gold-d: #9a7633;
	--script: "Great Vibes", "Pinyon Script", "Snell Roundhand", cursive;
	--serif: "Cormorant Garamond", Georgia, serif;
	--caps: "Cinzel", "Times New Roman", serif;
	--display: "Bodoni Moda", Didot, Georgia, serif;
	--bis: "Aref Ruqaa", "Amiri", serif;
	--arabic: "Amiri", "Traditional Arabic", serif;
	--urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
	--ease: cubic-bezier(.22, .9, .24, 1);
	--spring: cubic-bezier(.34, 1.56, .64, 1);
	--foil: linear-gradient(100deg, #b38a43 0%, #f7e6b8 24%, #d4ae62 42%, #fff4d8 56%, #c99d50 74%, #f1dcaa 90%, #b38a43 100%);
	--foil-b: linear-gradient(100deg, #24395a 0%, #4f6f96 26%, #b8935a 44%, #e6c98a 52%, #4f6f96 70%, #24395a 100%);
	--lace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%237f9cc0' stroke-opacity='.14' stroke-width='1'%3E%3Cpath d='M45 25c-7-9-20-4-15 6 4 7 15 9 15 18 0-9 11-11 15-18 5-10-8-15-15-6z'/%3E%3Ccircle cx='45' cy='45' r='30'/%3E%3C/g%3E%3Ccircle cx='45' cy='66' r='2' fill='%23c8a35a' fill-opacity='.2'/%3E%3C/svg%3E");
	--lace-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23f1dcaa' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M45 25c-7-9-20-4-15 6 4 7 15 9 15 18 0-9 11-11 15-18 5-10-8-15-15-6z'/%3E%3Ccircle cx='45' cy='45' r='30'/%3E%3C/g%3E%3Ccircle cx='45' cy='66' r='2' fill='%23f1dcaa' fill-opacity='.14'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body.baat { margin: 0; min-height: 100vh; font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--ink); background: var(--ivory); overflow-x: hidden; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
body.baat.is-locked { overflow: hidden; height: 100svh; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 300; }
.progress { position: fixed; z-index: 150; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--blue), var(--gold), var(--blue-d)); box-shadow: 0 0 10px rgba(127, 156, 192, .7); }

/* names: shimmer lives on a plain inline-block (iPhone-safe) */
.nm { display: inline-block; padding: .04em .16em .12em; line-height: 1.05; }
.foil, .foil-b { background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: sheen 7s linear infinite; }
.foil { background-image: var(--foil); }
.foil-b { background-image: var(--foil-b); }
@keyframes sheen { to { background-position: -240% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* heart divider: lines draw, heart beats */
.dv { margin: 16px auto; }
.divider { width: 200px; height: 24px; margin: 0 auto; color: var(--gold); overflow: visible; }
.divider .dl { fill: none; stroke: currentColor; stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 0; }
.divider .hrt { transform-origin: 120px 12px; animation: beat 2.4s ease-in-out infinite; color: var(--blue-d); fill: var(--blue-d); }
.dark .divider .hrt { fill: var(--gold-l); }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 10% { transform: scale(1.28); } 22% { transform: scale(.96); } 34% { transform: scale(1.16); } }
.js .dv.reveal .dl { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.js .dv.reveal.in .dl { stroke-dashoffset: 0; }

/* little chandelier */
.chand { width: 100%; height: auto; color: var(--gold); overflow: visible; }
.chand .flames ellipse { animation: flick 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.chand .flames ellipse:nth-child(2) { animation-delay: -.7s; } .chand .flames ellipse:nth-child(3) { animation-delay: -1.3s; }
@keyframes flick { 50% { transform: scaleY(.75); opacity: .7; } }

/* ============================ GATE — velvet ring box ============================ */
.gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden;
	background: radial-gradient(60% 45% at 50% 52%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%), var(--lace), radial-gradient(90% 70% at 50% 40%, #ffffff, #e6eef6 55%, #c3d3e5); }
.gate.out { opacity: 0; transform: scale(1.18); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s; pointer-events: none; }
.g-bokeh { position: absolute; inset: 0; pointer-events: none; }
.g-bokeh i { position: absolute; left: calc(var(--n) * 7% - 4%); top: calc(8% + (var(--n) * 41 % 80) * 1%); width: calc(10px + (var(--n) * 7 % 30) * 1px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, rgba(241, 220, 170, .55) 45%, rgba(241, 220, 170, 0) 70%); opacity: .6; animation: bok calc(7s + var(--n) * .5s) ease-in-out calc(var(--n) * -1.1s) infinite alternate; }
@keyframes bok { from { transform: translate(0, 16px) scale(.8); opacity: .25; } to { transform: translate(12px, -22px) scale(1.1); opacity: .85; } }
.g-chand { position: absolute; top: -6px; left: 50%; width: min(42vw, 190px); transform: translateX(-50%); filter: drop-shadow(0 0 10px rgba(241, 220, 170, .8)); animation: chSway 6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes chSway { 0%, 100% { transform: translateX(-50%) rotate(1.2deg); } 50% { transform: translateX(-50%) rotate(-1.2deg); } }
.gate-in { position: relative; z-index: 2; width: min(92vw, 480px); text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: clamp(56px, 12vh, 110px); }
.g-txt { transition: opacity .6s var(--ease), transform .8s var(--ease); }
.g-txt > * { animation: rise 1.2s var(--ease) both; }
.g-txt > *:nth-child(2) { animation-delay: .12s; } .g-txt > *:nth-child(3) { animation-delay: .24s; } .g-txt > *:nth-child(4) { animation-delay: .36s; } .g-txt > *:nth-child(5) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
.g-bis { margin: 0 0 4px; font-family: var(--bis); font-size: clamp(1.2rem, 5.2vw, 1.6rem); color: var(--gold-d); }
.g-dear { margin: 0; font-style: italic; font-size: 1.25rem; color: var(--ink); }
.g-kick { margin: 2px 0 0; font-family: var(--caps); font-size: .7rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--blue-d); }
.g-ur { margin: 0; font-family: var(--urdu); font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 2.1; color: var(--gold-d); }
.g-names { margin: -10px 0 0; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; font-family: var(--script); font-weight: 400; font-size: clamp(3rem, 14vw, 4.4rem); line-height: 1.1; color: var(--navy); }
.g-names em { font-family: var(--serif); font-style: italic; font-size: .42em; color: var(--gold-d); margin: 0 .1em; }
.g-low { margin-top: 18px; }
.g-date { margin: 0 0 18px; font-family: var(--caps); font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.g-btn { position: relative; cursor: pointer; padding: 16px 36px; border: 0; border-radius: 999px; overflow: hidden; font-family: var(--caps); font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #8fb0d4, #5c7ea8 50%, #34507a); box-shadow: 0 14px 28px -10px rgba(52, 80, 122, .7), inset 0 0 0 1px rgba(241, 220, 170, .7), inset 0 1px 0 rgba(255, 255, 255, .45); animation: pulseB 2.4s ease-in-out infinite; }
.g-btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: shine 3s ease-in-out infinite; }
.g-btn span { position: relative; }
@keyframes shine { 0%, 40% { left: -60%; } 80%, 100% { left: 130%; } }
@keyframes pulseB { 50% { box-shadow: 0 14px 28px -10px rgba(52, 80, 122, .7), inset 0 0 0 1px rgba(241, 220, 170, .7), 0 0 0 10px rgba(127, 156, 192, .15); } }
.g-hint { margin: 10px 0 0; font-style: italic; font-size: 1rem; color: var(--ink-2); }

/* the box (front view): inner lid · ring · base · lid */
.rbox { position: relative; width: min(56vw, 230px); height: calc(min(56vw, 230px) * .82); margin: 20px auto 0; cursor: pointer; animation: boxIn 1.4s var(--spring) .5s both, floaty 4s ease-in-out 2s infinite; }
@keyframes boxIn { from { opacity: 0; transform: translateY(40px) scale(.85); } }
.rb-base { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 52%; border-radius: 14px 14px 20px 20px;
	background: radial-gradient(120% 90% at 30% 15%, #9cbbdc, #6487b2 45%, #3d5c86 100%); box-shadow: 0 22px 34px -14px rgba(20, 35, 57, .65), inset 0 -10px 18px rgba(20, 35, 57, .35), inset 0 2px 0 rgba(255, 255, 255, .2); }
.rb-base::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 5px); }
.rb-band { position: absolute; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, #a07a32, #f7e6b8, #c8a35a, #fff4d8, #a07a32); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.rb-base .rb-band { top: 0; }
.rb-cush { position: absolute; left: 12%; right: 12%; top: 8px; height: 26%; border-radius: 50%; background: radial-gradient(60% 80% at 50% 30%, #2f4b72, #213856); opacity: 0; transition: opacity .3s .25s; }
.rb-lid { position: absolute; z-index: 4; left: 0; right: 0; bottom: 52%; height: 42%; border-radius: 18px 18px 6px 6px; transform-origin: 50% 100%; display: grid; place-items: center;
	background: radial-gradient(120% 100% at 30% 10%, #a9c5e3, #6f91bb 45%, #4a6994 100%); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .25), inset 0 -8px 14px rgba(20, 35, 57, .3); transition: transform .45s cubic-bezier(.5, 0, .75, 0), opacity .2s .35s; }
.rb-lid .rb-band { bottom: 0; }
.rb-lid b { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 6vw, 1.7rem); letter-spacing: .04em; background: var(--foil); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: sheen 6s linear infinite; }
.rb-lid b i { font-family: var(--serif); font-style: italic; font-size: .7em; margin: 0 .12em; }
.rb-lid-in { position: absolute; z-index: 1; left: 3%; right: 3%; bottom: 50%; height: 60%; border-radius: 16px 16px 4px 4px; transform-origin: 50% 100%; transform: scaleY(0); opacity: 0;
	background: linear-gradient(180deg, #fffdf8, #f2e8d6 70%, #e3d4b8); box-shadow: inset 0 0 0 4px #5c7ea8, inset 0 0 0 6px var(--gold), inset 0 10px 20px rgba(160, 122, 50, .18); transition: transform .55s var(--ease) .38s, opacity .1s .38s; }
.rb-lid-in i { position: absolute; inset: 18% 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .9), transparent); }
.rb-ring { position: absolute; z-index: 2; left: 50%; bottom: 30%; width: 70%; transform: translate(-50%, 40%) scale(.55) rotate(-8deg); opacity: 0; filter: drop-shadow(0 10px 14px rgba(20, 35, 57, .35)); transition: transform 1.3s var(--spring) .55s, opacity .4s .55s; }
.rb-glow { position: absolute; z-index: 0; left: 50%; top: -10%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -30%) scale(.3); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 246, 220, .95), rgba(241, 220, 170, .45) 40%, transparent 72%); opacity: 0; transition: opacity 1s .6s, transform 1.6s var(--ease) .6s; pointer-events: none; }
.rb-rays { position: absolute; z-index: 0; left: 50%; top: -6%; width: 210%; aspect-ratio: 1; transform: translate(-50%, -32%); border-radius: 50%; opacity: 0; pointer-events: none;
	background: repeating-conic-gradient(from 0deg, rgba(241, 220, 170, .55) 0 4deg, transparent 4deg 18deg); -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 75%); mask: radial-gradient(closest-side, #000 30%, transparent 75%); transition: opacity 1s .8s; animation: spin 24s linear infinite; }
.rb-spk { position: absolute; z-index: 5; width: 22px; color: #fff; opacity: 0; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px var(--gold-l)); }
.rb-spk.s1 { left: 58%; top: -46%; width: 26px; } .rb-spk.s2 { left: 30%; top: -30%; width: 14px; } .rb-spk.s3 { left: 72%; top: -12%; width: 16px; }
.gate.open .rbox { animation: none; }
.gate.open .rb-lid { transform: perspective(500px) rotateX(88deg); opacity: 0; }
.gate.open .rb-lid-in { transform: scaleY(1); opacity: 1; }
.gate.open .rb-cush { opacity: 1; }
.gate.open .rb-ring { transform: translate(-50%, -78%) scale(1.15) rotate(0deg); opacity: 1; }
.gate.open .rb-glow { opacity: 1; transform: translate(-50%, -30%) scale(1); }
.gate.open .rb-rays { opacity: 1; }
.gate.open .rb-spk { animation: twk 1.4s ease-in-out 1.3s infinite; }
.gate.open .rb-spk.s2 { animation-delay: 1.6s; } .gate.open .rb-spk.s3 { animation-delay: 1.9s; }
@keyframes twk { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.gate.open .g-txt { opacity: 0; transform: translateY(-14px); }
.gate.open .g-low { transform: translateY(14px); }

/* ============================ HERO ============================ */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--mist); }
.hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(28px) saturate(1.1); opacity: .7; transform: scale(1.1); }
.hero-frame { position: relative; z-index: 1; height: 100%; width: min(100vw, calc(100svh * .5628)); margin: 0 auto; overflow: hidden; box-shadow: 0 0 80px rgba(20, 35, 57, .35); }
.hero-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transform: scale(1.12); }
.hero-veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 34% at 50% 26%, rgba(255, 253, 248, .85), rgba(255, 253, 248, .35) 60%, transparent 85%), linear-gradient(180deg, rgba(255, 253, 248, .35), transparent 40%, transparent 70%, rgba(20, 35, 57, .35)); }
.glitter { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-text { position: absolute; left: 0; right: 0; top: clamp(70px, 10svh, 110px); text-align: center; padding: 0 16px; }
.h-ur { margin: 0; font-family: var(--urdu); font-size: clamp(1.7rem, 7.5vw, 2.3rem); line-height: 2.1; color: var(--gold-d); text-shadow: 0 1px 0 #fff; }
.h-kick { margin: -6px 0 0; font-family: var(--caps); font-size: .7rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--blue-dd); }
.h-names { margin: 0; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; font-family: var(--script); font-weight: 400; font-size: clamp(3.2rem, 14.5vw, 4.4rem); line-height: 1.1; color: var(--navy); text-shadow: 0 2px 0 rgba(255, 255, 255, .8), 0 0 24px rgba(255, 255, 255, .8); }
.h-names em { font-family: var(--serif); font-style: italic; font-size: .42em; color: var(--gold-d); margin: 0 .12em; }
.h-date { margin: 2px 0 0; display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--caps); font-size: .9rem; font-weight: 600; letter-spacing: .3em; color: var(--blue-dd); }
.h-date i { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.cue { position: absolute; z-index: 3; left: 50%; bottom: 18px; margin-left: -40px; width: 80px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-family: var(--caps); font-size: .6rem; letter-spacing: .36em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(20, 35, 57, .6); }
.cue i { position: relative; width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid #fff; }
.cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
/* entrance once the box opens */
.js .hx { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.js .invite.go .hx { opacity: 1; transform: none; filter: none; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); transition-delay: calc(.5s + var(--i, 0) * .28s); }
.js .invite.go .hero-pic { transform: scale(1); transition: transform 7s cubic-bezier(.2, .7, .2, 1); }
.js .invite.go .h-names .nm { animation: write 1.8s var(--ease) both; }
.js .invite.go .h-names .nm:first-child { animation-delay: 1s; } .js .invite.go .h-names .nm:last-child { animation-delay: 1.7s; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -10% 0 -10%); } }

/* ============================ BANDS ============================ */
.band { position: relative; padding: 96px 20px; text-align: center; overflow: hidden; }
.wrap { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.band.light { background: var(--lace), radial-gradient(70% 45% at 50% 0%, #fff, transparent 70%), linear-gradient(180deg, var(--ivory), var(--mist)); color: var(--ink); }
.band.dark { color: #eef3f8; background: var(--lace-d), radial-gradient(70% 50% at 50% 0%, rgba(127, 156, 192, .35), transparent 70%), linear-gradient(180deg, var(--navy), var(--navy-2)); }
.band::before { content: ""; position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-l), var(--gold), var(--gold-l), transparent); box-shadow: 0 0 10px rgba(241, 220, 170, .5); }
.band.dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .05) 45%, transparent 60%); background-size: 300% 100%; animation: velvet 12s ease-in-out infinite; }
@keyframes velvet { 50% { background-position: 100% 0; } }
.kick { margin: 0 0 4px; font-family: var(--caps); font-size: .74rem; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: var(--blue-d); }
.dark .kick { color: var(--gold-l); }
.title { margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(2.9rem, 12.5vw, 4.4rem); line-height: 1.15; padding: .05em .15em .1em; }
.title.small { font-size: clamp(2.3rem, 10vw, 3.1rem); }
.letter { margin: 18px auto 0; max-width: 520px; font-style: italic; font-size: 1.22rem; line-height: 1.65; }
.dark .letter { color: rgba(238, 243, 248, .9); }
.light .letter { color: var(--ink-2); }
.from { margin: 18px 0 0; font-size: 1.15rem; color: var(--blue-d); }
.ayah { margin: 0; font-family: var(--arabic); font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 2; color: var(--gold-l); text-shadow: 0 0 22px rgba(241, 220, 170, .3); }
.ayah.dk { color: var(--gold-d); text-shadow: none; }
.ayah-en { margin: 4px auto 0; max-width: 520px; font-style: italic; font-size: 1.25rem; color: rgba(238, 243, 248, .92); }
.ayah-ref { margin: 10px 0 0; font-family: var(--caps); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

/* ---- invitation card ---- */
#invitation { padding-top: 150px; }
.card { position: relative; max-width: 480px; margin: 0 auto; padding: 120px 26px 52px; border-radius: 240px 240px 22px 22px; background: radial-gradient(80% 45% at 50% 0%, #fff, transparent 70%), linear-gradient(170deg, #fffefb, #f6f9fc 55%, #eaf0f7); box-shadow: 0 46px 80px -40px rgba(30, 49, 80, .55), inset 0 0 0 1px var(--gold); }
.c-edge { position: absolute; inset: 9px; border-radius: 232px 232px 15px 15px; box-shadow: inset 0 0 0 1px rgba(127, 156, 192, .45); pointer-events: none; }
.c-edge::after { content: ""; position: absolute; inset: 9px; border-radius: 224px 224px 9px 9px; box-shadow: inset 0 0 0 1px rgba(200, 163, 90, .45); }
.sweep { position: absolute; inset: 0; z-index: 1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.sweep::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-18deg); animation: sweep 7s ease-in-out infinite; }
.dark .sweep::before { background: linear-gradient(100deg, transparent, rgba(241, 220, 170, .18), transparent); }
@keyframes sweep { 0%, 55% { left: -70%; } 100% { left: 140%; } }
.card > *:not(.c-edge):not(.sweep):not(.c-rings) { position: relative; z-index: 2; }
.c-rings { position: absolute; z-index: 3; left: 50%; top: -96px; width: 190px; margin-left: -95px; }
.c-rings img { position: relative; width: 100%; filter: drop-shadow(0 16px 18px rgba(30, 49, 80, .35)); }
.cr-glow { position: absolute; inset: -20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 246, 220, .95), rgba(241, 220, 170, .35) 50%, transparent 72%); animation: glowP 3.6s ease-in-out infinite; }
@keyframes glowP { 50% { transform: scale(1.12); opacity: .7; } }
.cr-shine { position: absolute; inset: 0; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; animation: rShine 4.5s ease-in-out 1.5s infinite; mix-blend-mode: screen; }
@keyframes rShine { 0%, 40% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
.cr-spk { position: absolute; width: 22px; color: #fff; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px var(--gold-l)); animation: twk 2.4s ease-in-out infinite; }
.cr-spk.a { left: 66%; top: 14%; } .cr-spk.b { left: 86%; top: 34%; width: 13px; animation-delay: -.8s; } .cr-spk.c { left: 12%; top: 8%; width: 14px; animation-delay: -1.6s; }
.js .card.reveal .c-rings { opacity: 0; transform: translateY(-70px) rotate(-30deg) scale(.6); }
.js .card.reveal.in .c-rings { opacity: 1; transform: none; transition: opacity .8s .4s, transform 1.5s var(--spring) .4s; }
.js .card.reveal.in .c-rings img { animation: floaty 4.5s ease-in-out 2s infinite; }
.c-bis { margin: 0 0 4px; font-family: var(--bis); font-size: 1.45rem; color: var(--gold-d); }
.c-kick { margin: 0; font-family: var(--caps); font-size: .66rem; letter-spacing: .34em; text-transform: uppercase; color: var(--blue-d); }
.c-line { margin: 8px auto 10px; max-width: 300px; font-style: italic; font-size: 1.2rem; color: var(--ink-2); }
.c-name { margin: 0; font-family: var(--script); font-size: clamp(2.8rem, 12vw, 3.6rem); line-height: 1.15; }
.c-rel { margin: -2px 0 0; font-family: var(--caps); font-size: .78rem; letter-spacing: .16em; color: var(--ink-2); }
.c-with { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 6px; }
.c-with i { width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); } .c-with i:last-child { transform: scaleX(-1); }
.c-with span { font-family: var(--script); font-size: 2rem; line-height: 1; color: var(--gold-d); }
.c-when { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.c-when b { font-family: var(--caps); font-size: .98rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.c-when span { font-family: var(--display); font-size: 1.35rem; color: var(--blue-d); }
.c-venue { margin: 8px 0 0; font-family: var(--caps); font-size: .86rem; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); }

/* ---- photos ---- */
.two { display: grid; gap: 36px; align-items: center; max-width: 960px; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; gap: 60px; } .two .txt { text-align: left; } .two .txt .dv { margin-left: 0; } .two .letter { margin-left: 0; } }
.ph { position: relative; margin: 0 auto; width: min(84vw, 420px); }
.ph-frame { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 210px 210px 18px 18px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 0 0 7px var(--gold-l), 0 0 0 14px rgba(241, 220, 170, .12), 0 44px 70px -30px #000; }
.ph-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 3.2s var(--ease); }
.ph.in .ph-frame img { transform: scale(1); animation: kenburns 18s ease-in-out 3.2s infinite alternate; }
@keyframes kenburns { to { transform: scale(1.08) translate(-1.5%, -1%); } }
.ph-sweep { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 245, 230, .32) 50%, transparent 65%); background-size: 260% 100%; background-position: 130% 0; animation: phSweep 7s ease-in-out 2s infinite; }
@keyframes phSweep { 0%, 60% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
.ph-ring { position: absolute; right: -18px; bottom: -26px; width: 120px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5)); animation: floaty 4s ease-in-out infinite; }
.js .ph.reveal { transform: translateY(50px) scale(.94); }
.js .ph.reveal.in { transform: none; }

/* ---- save the date ---- */
.medal { position: relative; width: 210px; height: 210px; margin: 0 auto 24px; display: grid; place-items: center; }
.md-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold); }
.md-ring2 { position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed rgba(127, 156, 192, .7); animation: spin 30s linear infinite; }
.md-img { width: 184px; height: 184px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px #fff, 0 22px 40px -18px rgba(30, 49, 80, .6); }
.md-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 14s ease-in-out infinite alternate; }
.drow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; max-width: 520px; margin: 18px auto 0; }
.dr-side { display: block; padding: 12px 0; border-top: 1.5px solid var(--blue-d); border-bottom: 1.5px solid var(--blue-d); }
.dr-side b { font-family: var(--caps); font-size: clamp(.82rem, 3.8vw, 1.05rem); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-dd); white-space: nowrap; }
.dr-mid { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.dr-mid small { font-family: var(--caps); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-dd); }
.dr-mid b { font-family: var(--display); font-weight: 500; font-size: clamp(3.8rem, 18vw, 5.4rem); line-height: 1.05; background: var(--foil-b); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: sheen 7s linear infinite; }
.dweek { margin: 10px 0 34px; font-style: italic; font-size: 1.3rem; color: var(--ink-2); }
.cd-k { margin-bottom: 14px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 480px; margin: 0 auto; }
.countdown > div { padding: 20px 4px 12px; border-radius: 60px 60px 14px 14px; background: linear-gradient(170deg, #2b4469, var(--navy)); box-shadow: inset 0 0 0 1px rgba(241, 220, 170, .55), 0 18px 28px -18px rgba(30, 49, 80, .8); overflow: hidden; }
.countdown b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 9vw, 2.7rem); line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.countdown b.flip { animation: flip .6s var(--ease); }
@keyframes flip { 0% { transform: translateY(-60%) rotateX(80deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.countdown small { font-family: var(--caps); font-size: .55rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-l); }
.js .countdown.reveal > div { opacity: 0; transform: translateY(24px) scale(.9); transition: .9s var(--spring); }
.js .countdown.reveal.in > div { opacity: 1; transform: none; }
.js .countdown.reveal.in > div:nth-child(2) { transition-delay: .12s; } .js .countdown.reveal.in > div:nth-child(3) { transition-delay: .24s; } .js .countdown.reveal.in > div:nth-child(4) { transition-delay: .36s; }

/* ---- buttons ---- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; overflow: hidden; font-family: var(--caps); font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; transition: transform .35s var(--spring), box-shadow .3s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; }
.btn span { position: relative; }
.btn-gold { color: #22344f; background: linear-gradient(135deg, #fff4d8, #e6c98a 50%, #c8a35a); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-blue { color: #fff; background: linear-gradient(135deg, #8fb0d4, #5c7ea8 50%, #34507a); box-shadow: 0 14px 28px -12px rgba(52, 80, 122, .8), inset 0 0 0 1px rgba(241, 220, 170, .6); }
.btn-line { color: var(--blue-dd); background: transparent; box-shadow: inset 0 0 0 1px var(--blue-d); }
.btn-line::before { display: none; }

/* ---- venue ---- */
.v-photo { position: relative; width: min(86vw, 440px); aspect-ratio: 1; margin: 8px auto 26px; border-radius: 220px 220px 18px 18px; overflow: hidden; box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 0 0 7px var(--gold-l), 0 0 0 14px rgba(241, 220, 170, .1), 0 40px 70px -30px #000; }
.v-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 2.8s var(--ease); }
.v-photo.in img { transform: scale(1); }
.v-photo i { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20, 35, 57, .45)); }
.v-name { margin: 0; font-family: var(--display); font-size: clamp(1.9rem, 8vw, 2.5rem); line-height: 1.15; color: #fff; }
.v-addr { margin: 6px auto 0; max-width: 420px; font-style: italic; font-size: 1.2rem; color: rgba(238, 243, 248, .85); }
.v-when { margin: 6px 0 24px; font-family: var(--caps); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-l); }

/* ---- RSVP ---- */
.rsvp-card { position: relative; max-width: 480px; margin: 22px auto 0; padding: 34px 26px 30px; text-align: left; border-radius: 26px; background: linear-gradient(170deg, #ffffff, #f4f7fb); box-shadow: inset 0 0 0 1px rgba(127, 156, 192, .5), 0 30px 50px -30px rgba(30, 49, 80, .6); }
.fld { display: block; margin: 0 0 20px; }
.fld > span { display: block; margin-bottom: 6px; font-family: var(--caps); font-size: .64rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--blue-d); }
.fld input[type=text], .fld select, .fld textarea { width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid rgba(79, 111, 150, .45); border-radius: 0; background: transparent; font: inherit; font-size: 1.2rem; color: var(--ink); outline: none; transition: border-color .3s, box-shadow .3s; }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(90, 108, 132, .55); font-style: italic; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-bottom-color: var(--gold); box-shadow: 0 10px 16px -12px var(--gold); }
.pills { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.pills label { flex: 1 1 140px; cursor: pointer; display: flex; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills b { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px 14px; text-align: center; font-weight: 500; font-size: 1.05rem; border-radius: 999px; color: var(--blue-dd); box-shadow: inset 0 0 0 1px rgba(79, 111, 150, .45); transition: .35s var(--spring); }
.pills input:checked + b { color: #fff; background: linear-gradient(135deg, #8fb0d4, #4f6f96); box-shadow: 0 8px 18px -8px rgba(52, 80, 122, .8); transform: scale(1.03); }
.rsvp-card .btn-blue { width: 100%; padding: 17px; }
.rsvp-msg { min-height: 1.4em; margin: 12px 0 0; text-align: center; font-style: italic; color: var(--blue-d); }
.rsvp-card.sent > :not(.rsvp-thanks) { display: none; }
.rsvp-thanks { text-align: center; padding: 6px 0; animation: rise 1s var(--spring); }
.rsvp-thanks p { margin: 4px 0 20px; font-size: 1.2rem; color: var(--ink-2); }
.rt-rings { width: 110px; margin: 0 auto 6px; animation: floaty 4s ease-in-out infinite; }

/* ---- hosts ---- */
.host-grid { display: grid; gap: 28px; max-width: 420px; margin: 28px auto 0; }
@media (min-width: 720px) { .host-grid { grid-template-columns: 1fr 1fr; max-width: 700px; gap: 26px; } }
.host-card { position: relative; padding: 112px 22px 34px; border-radius: 220px 220px 22px 22px; background: var(--lace-d), radial-gradient(80% 45% at 50% 0%, rgba(127, 156, 192, .4), transparent 70%), linear-gradient(170deg, #2b4469, #1e3150 65%, #172742); box-shadow: inset 0 0 0 1px var(--gold), 0 34px 50px -28px rgba(0, 0, 0, .8); transition: transform .5s var(--spring); }
.host-card:hover { transform: translateY(-8px); }
.hc-edge { position: absolute; inset: 8px; border-radius: 212px 212px 15px 15px; box-shadow: inset 0 0 0 1px rgba(241, 220, 170, .32); pointer-events: none; }
.host-card > *:not(.hc-edge):not(.sweep):not(.hc-ring) { position: relative; z-index: 2; }
.hc-ring { position: absolute; z-index: 2; left: 50%; top: 22px; width: 92px; margin-left: -46px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)) drop-shadow(0 0 10px rgba(255, 255, 255, .25)); animation: floaty 4.4s ease-in-out infinite; }
.host-card:nth-child(2) .hc-ring { animation-delay: -2.2s; }
.hc-rel { margin: 0; font-family: var(--caps); font-size: .68rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-l); }
.hc-name { margin: 6px 0 0; font-family: var(--script); font-size: clamp(2.3rem, 10vw, 2.9rem); line-height: 1.2; color: #fff; }
.hc-div { display: block; width: 70px; height: 1px; margin: 12px auto 16px; background: linear-gradient(90deg, transparent, var(--gold-l), transparent); }
.hc-phone { display: inline-block; margin-bottom: 20px; font-family: var(--caps); font-size: 1.02rem; font-weight: 500; letter-spacing: .16em; text-decoration: none; color: #fff; }
.hc-btns { display: flex; justify-content: center; gap: 10px; margin: 0; flex-wrap: wrap; }
.hc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-family: var(--caps); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: transform .35s var(--spring); }
.hc-btn svg { width: 16px; height: 16px; }
.hc-btn.call { color: #22344f; background: linear-gradient(135deg, #fff4d8, #e6c98a 60%, #c8a35a); }
.hc-btn.wa { color: var(--gold-l); box-shadow: inset 0 0 0 1px var(--gold-l); }
.hc-btn:hover { transform: translateY(-3px) scale(1.04); }
.hs-close { margin: 44px 0 0; font-family: var(--script); font-size: clamp(2.1rem, 9vw, 2.8rem); line-height: 1.3; color: var(--gold-l); }

/* ---- footer ---- */
.foot { position: relative; padding: 90px 20px 120px; text-align: center; overflow: hidden; background: var(--lace), radial-gradient(70% 50% at 50% 30%, #fff, transparent 70%), linear-gradient(180deg, var(--mist), var(--mist-2)); }
.foot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-l), var(--gold), var(--gold-l), transparent); }
.f-chand { position: absolute; top: -4px; left: 50%; width: 170px; transform: translateX(-50%); opacity: .9; }
.f-couple { position: relative; width: min(64vw, 260px); margin: 40px auto 18px; }
.f-couple i { position: absolute; inset: 10% -10% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(223, 232, 242, .5) 55%, transparent 75%); }
.f-couple img { position: relative; width: 100%; filter: drop-shadow(0 18px 20px rgba(30, 49, 80, .3)); }
.dua { margin: 0; font-family: var(--arabic); font-size: clamp(1.4rem, 5.6vw, 2rem); line-height: 2; color: var(--gold-d); }
.dua-en { margin: 6px auto 0; max-width: 460px; font-style: italic; font-size: 1.15rem; color: var(--ink-2); }
.foot-names { margin: 22px 0 0; display: flex; align-items: baseline; justify-content: center; font-family: var(--script); font-size: clamp(2.8rem, 12vw, 3.8rem); line-height: 1.3; }
.foot-names em { font-family: var(--serif); font-style: italic; font-size: .45em; color: var(--gold-d); margin: 0 .12em; }
.hashtag { margin: 0; font-family: var(--caps); font-size: .84rem; letter-spacing: .3em; text-transform: uppercase; color: var(--blue-d); }
.credit { margin: 34px 0 0; font-size: .95rem; letter-spacing: .06em; color: var(--ink-2); }
.credit a { text-decoration: none; border-bottom: 1px solid rgba(200, 163, 90, .5); }

/* ---- music ---- */
.music { position: fixed; z-index: 120; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #8fb0d4, #4f6f96 60%, #34507a); box-shadow: 0 10px 24px -6px rgba(30, 49, 80, .7), 0 0 0 4px rgba(255, 255, 255, .7), 0 0 0 5px rgba(200, 163, 90, .8); opacity: 0; transform: scale(.6); pointer-events: none; transition: .6s var(--spring); }
.music.ready, body.is-over .music { opacity: 1; transform: none; pointer-events: auto; }
.music.playing { animation: musicPulse 2s ease-in-out infinite; }
@keyframes musicPulse { 50% { box-shadow: 0 10px 24px -6px rgba(30, 49, 80, .7), 0 0 0 4px rgba(255, 255, 255, .7), 0 0 0 5px rgba(200, 163, 90, .8), 0 0 0 14px rgba(127, 156, 192, .2); } }
.music .note { width: 24px; height: 24px; } .music .bars { display: none; align-items: flex-end; gap: 3px; height: 20px; }
.music .bars i { width: 3px; height: 100%; background: #fff; border-radius: 2px; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.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; }
.music.playing .bars { display: flex; } .music.playing .note { display: none; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* ---- scroll reveal ---- */
.js .reveal { opacity: 0; transform: translateY(34px) scale(.98); filter: blur(6px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); transition-delay: calc(var(--i, 0) * .18s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .card.reveal { transform: translateY(60px) rotateX(16deg) scale(.95); transform-origin: 50% 100%; }
.js .card.reveal.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
	.js .reveal, .js .hx { opacity: 1 !important; transform: none !important; filter: none !important; }
	.js .hero-pic { transform: none; }
}
@media (max-width: 380px) { .band { padding: 80px 14px; } .countdown { gap: 6px; } .card { padding-left: 18px; padding-right: 18px; } }
/* Urdu (Nastaliq) needs extra room so it never touches the names */
.g-ur { line-height: 2.4; margin: 2px 0 8px; }
.g-names { margin-top: 0; }
.h-ur { line-height: 2.4; margin-bottom: 6px; }
.h-kick { margin-top: 0; }
.c-line { max-width: 330px; }
/* hero text scales with screen height so it always sits above the couple */
.hero-text { top: 6.5svh; }
.h-ur { font-size: min(clamp(1.7rem, 7.5vw, 2.3rem), 4svh); line-height: 2.2; margin-bottom: .4svh; }
.h-kick { font-size: min(.7rem, 1.6svh); }
.h-names { font-size: min(clamp(3.2rem, 14.5vw, 4.4rem), 7.4svh); }
.h-date { font-size: min(.9rem, 2svh); }

/* capital "A" in the calligraphy: Alex Brush flourish (Great Vibes' A reads like a small a) */
.cA { font-family: "Alex Brush", var(--script); font-style: normal; }
.foil .cA, .foil-b .cA { background-image: inherit; background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
