/* ==========================================================================
   Avantika weds Sagnik — styles
   ========================================================================== */
:root {
  --cream: #fff6e0;
  --ivory: #fffaf0;
  --gold: #e8b04a;
  --saffron: #f08a1c;
  --maroon: #8f3320;
  --red: #c9302a;
  --sky-1: #0c2a66;
  --sky-2: #1d59ad;
  --sky-3: #4e8fd6;
  --teal: #2f9e8f;
  --mint: #5fd6a8;
  --lilac: #c68ae2;
  --yellow: #d8cd43;
  --navy: #0d2550;
  --f-display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --f-body: 'Cormorant Garamond', 'Georgia', serif;
  --f-hand: 'Caveat', 'Segoe Script', cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.55;
  color: var(--cream);
  background: var(--sky-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; height: 100vh; }
/* painted-paper grain over everything */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 900; pointer-events: none;
  background-image: 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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
}
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ivory); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100%, 620px); margin-inline: auto; position: relative; }
.center { text-align: center; }

/* ---------- type ---------- */
.mega {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(52px, 15vw, 104px); line-height: 1.02; letter-spacing: .04em;
  text-transform: uppercase; margin: 70px 0 28px; text-wrap: balance;
}
.eyebrow { font-family: var(--f-display); font-size: .78em; letter-spacing: .32em; text-transform: uppercase; margin-bottom: 18px; opacity: .92; }
.lede { max-width: 30em; margin: 0 auto 18px; text-wrap: pretty; }
.lede strong { font-weight: 600; }
.script { font-family: var(--f-body); font-style: italic; font-size: clamp(30px, 7.5vw, 46px); line-height: 1.15; margin-bottom: 14px; text-wrap: balance; }
.note { font-family: var(--f-hand); font-size: 1.15em; opacity: .9; margin: 6px auto 0; max-width: 24em; }
.sub { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 5.4vw, 30px); letter-spacing: .14em; text-transform: uppercase; margin: 84px 0 10px; }
.parents { font-family: var(--f-display); font-size: 1.05em; letter-spacing: .12em; margin: 4px 0 18px; }
.couple-names { font-family: var(--f-body); font-weight: 500; font-size: clamp(54px, 15vw, 96px); line-height: 1.05; margin: 10px 0 20px; }
.couple-names span, .couple-names i { display: block; }
.couple-names i { font-size: .7em; opacity: .9; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- sections ---------- */
.sec { display: flow-root; position: relative; padding: clamp(84px, 13vh, 140px) 22px; overflow-x: clip; background: var(--bg); color: var(--ink, var(--cream)); }
.sec--flush { padding-top: 0; }
.sec::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--pat);
  -webkit-mask: url(../img/damask.svg) center top / 150px 214px;
          mask: url(../img/damask.svg) center top / 150px 214px;
  opacity: var(--pat-o, .16);
}
.sec--teal   { --bg: #2f9e8f; --pat: #7fe0c6; --card: #23796e; }
.sec--mint   { --bg: #5fd6a8; --pat: #b6f5d6; --ink: #fffdf2; --pat-o: .28; }
.sec--lilac  { --bg: #c68ae2; --pat: #ecc4ff; --pat-o: .3; --card: #a868c9; }
.sec--yellow { --bg: #d8cd43; --pat: #f4ec86; --ink: #6b5b12; --pat-o: .4; --card: #c4b830; }
.sec--navy   { --bg: #0d2550; --pat: #2c57a8; --pat-o: .1; }
.sec--mint .mega, .sec--mint .lede, .sec--mint .note { text-shadow: 0 1px 14px rgba(20, 120, 90, .35); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-display); font-size: .72em; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .14); }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--ivory); color: #7a3fa0; border-color: var(--ivory); width: 100%; padding: 17px; font-size: .82em; }
.btn--solid:hover { background: #fff; }
.btn--sm { padding: 9px 14px; font-size: .62em; }

.ring-btn { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 2px solid currentColor; margin: 18px auto 8px; position: relative; text-decoration: none; transition: transform .3s var(--ease); }
.ring-btn span { width: 46px; height: 46px; border-radius: 50%; border: 5px solid currentColor; }
.ring-btn::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid currentColor; animation: ping 2.4s var(--ease) infinite; }
.ring-btn:hover { transform: scale(1.08); }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

.card { background: color-mix(in srgb, var(--card, #000) 62%, transparent); border: 1px solid rgba(255, 255, 255, .28); border-radius: 22px; padding: 26px 22px; backdrop-filter: blur(3px); }

/* ---------- arch frame ---------- */
.arch { clip-path: url(#archClip); background: linear-gradient(160deg, #fff1c4, #e8b04a 60%, #c98a2b); padding: 7px; }
.arch__in { clip-path: url(#archClip); width: 100%; height: 100%; overflow: hidden; }

/* ---------- photo slots ---------- */
.photo { position: relative; background: linear-gradient(170deg, #f6c56b, #e98b3a 55%, #b9452a); display: grid; place-items: center; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo__ph { text-align: center; color: var(--ivory); padding: 34% 10px 8px; line-height: 1.1; }
.photo__ph b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 6vw, 34px); letter-spacing: .08em; }
.photo__ph small { font-family: var(--f-hand); font-size: 17px; opacity: .92; }

/* ==========================================================================
   Envelope gate
   ========================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(120% 90% at 50% 30%, #1f5fb5 0%, #0c2a66 60%, #071a44 100%);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), visibility 0s 1.1s;
}
.gate::before { content: ''; position: absolute; inset: 0; background: #6ea4ee; -webkit-mask: url(../img/damask.svg) center / 150px 214px; mask: url(../img/damask.svg) center / 150px 214px; opacity: .1; }
.gate.gone { opacity: 0; transform: translateY(-6%) scale(1.04); visibility: hidden; pointer-events: none; }
.gate__inner { position: relative; text-align: center; }
.gate__eyebrow { font-family: var(--f-display); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; line-height: 1.9; margin-bottom: 38px; }
.gate__hint { font-family: var(--f-display); letter-spacing: .26em; text-transform: uppercase; font-size: 13px; margin-top: 40px; animation: breathe 2s ease-in-out infinite; }
.gate__note { font-family: var(--f-hand); font-size: 20px; opacity: .85; margin-top: 4px; }
@keyframes breathe { 50% { opacity: .45; } }

.env { position: relative; width: min(80vw, 350px); aspect-ratio: 3 / 2; margin: 0 auto; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .4)); }
.env > * { position: absolute; }
.env__back { inset: 0; background: #d9c493; border-radius: 8px; }
.env__letter {
  left: 5%; right: 5%; top: 6%; bottom: 6%; background: var(--ivory); border-radius: 5px; color: var(--maroon);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 7%; gap: 6px;
  border: 1px solid #ead9b2; transition: transform 1s var(--ease) .35s;
}
.env__names { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.env__names b { font-family: var(--f-display); font-weight: 500; letter-spacing: .14em; font-size: clamp(17px, 5vw, 22px); text-transform: uppercase; }
.env__names i { font-size: 15px; }
.env__letter small { font-family: var(--f-display); letter-spacing: .2em; font-size: 11px; }
.env__front { inset: 0; background: linear-gradient(180deg, #f6e9c9, #ecd9ae); border-radius: 8px; clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%); }
.env__flap { inset: 0 0 auto 0; height: 60%; background: linear-gradient(180deg, #efdfb8, #e2cc98); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top center; transition: transform .7s var(--ease); border-radius: 8px 8px 0 0; z-index: 2; }
.env__seal {
  left: 50%; top: 57%; width: 84px; height: 84px; margin: -42px 0 0 -42px; z-index: 3;
  border: 0; border-radius: 50%; color: #ffe9c9;
  background: radial-gradient(circle at 34% 30%, #e25a4a, #b3261e 55%, #7e130f);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 0 0 5px rgba(255, 255, 255, .12), inset 0 0 0 9px rgba(0, 0, 0, .12);
  font-family: var(--f-display); font-size: 17px; letter-spacing: .06em;
  transition: transform .5s var(--ease), opacity .4s;
  animation: sealPulse 2s ease-in-out infinite;
}
.env__seal em { font-style: normal; font-size: .8em; margin: 0 2px; }
@keyframes sealPulse { 50% { transform: scale(1.07); box-shadow: 0 6px 14px rgba(0, 0, 0, .35), 0 0 0 12px rgba(255, 200, 120, .16), inset 0 0 0 5px rgba(255, 255, 255, .12), inset 0 0 0 9px rgba(0, 0, 0, .12); } }
.gate.open .env__seal { animation: none; transform: scale(1.5) rotate(18deg); opacity: 0; pointer-events: none; }
.gate.open .env__flap { transform: rotateX(180deg); z-index: 0; }
.gate.open .env__letter { transform: translateY(-58%); }
.gate.open .gate__hint, .gate.open .gate__note { opacity: 0; animation: none; transition: opacity .3s; }

/* ==========================================================================
   Fixed chrome
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 800; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #f08a1c, #ffd76a, #fff3b0); box-shadow: 0 0 12px #ffb347; }

.fab { position: fixed; z-index: 810; width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .28); transition: transform .25s var(--ease); }
.fab:hover { transform: scale(1.08); }
.fab--music { right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); background: var(--red); color: #1a0907; }
.fab--music svg { width: 24px; height: 24px; margin-left: 2px; }
.fab--music .eq { display: none; gap: 3px; align-items: flex-end; height: 18px; }
.fab--music .eq i { width: 4px; background: #1a0907; border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.fab--music .eq i:nth-child(2) { animation-delay: -.3s; } .fab--music .eq i:nth-child(3) { animation-delay: -.6s; }
.fab--music.on .ic-play { display: none; } .fab--music.on .eq { display: flex; }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 18px; } }

.fab--menu { right: max(16px, env(safe-area-inset-right)); top: max(16px, env(safe-area-inset-top)); background: rgba(255, 250, 240, .92); color: var(--maroon); display: flex; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.fab--menu span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.fab--menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fab--menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.fab--menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu { position: fixed; z-index: 805; top: 78px; right: 16px; width: min(280px, calc(100vw - 32px)); background: var(--ivory); color: var(--maroon); border-radius: 20px; padding: 18px 8px 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); display: flex; flex-direction: column; animation: pop .3s var(--ease); }
.menu[hidden] { display: none; }
.menu__title { font-family: var(--f-hand); font-size: 22px; padding: 0 16px 6px; }
.menu a { font-family: var(--f-display); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 12px 16px; border-radius: 12px; }
.menu a:hover { background: #f6e6c4; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.96); } }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 950; pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: 92px; z-index: 960; transform: translate(-50%, 20px); background: var(--ivory); color: var(--maroon); font-family: var(--f-hand); font-size: 20px; padding: 10px 20px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); max-width: calc(100vw - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Sky: hero + palace
   ========================================================================== */
.skywrap { position: relative; overflow: hidden; background: linear-gradient(180deg, #081d4d 0%, #123a7c 18%, #1d59ad 36%, #4e8fd6 50%, #f3b469 62%, #f0a03a 72%, #eb9a2c 100%); }
.skywrap::before { /* painterly streaks */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: soft-light;
  background: repeating-linear-gradient(176deg, rgba(255, 255, 255, .0) 0 14px, rgba(255, 255, 255, .22) 15px 17px, rgba(0, 20, 80, .18) 22px 24px, rgba(255, 255, 255, 0) 30px 46px);
}
.stars { position: absolute; inset: 0 0 55% 0; pointer-events: none; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .15; } }

.lanterns { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.lantern {
  position: absolute; width: var(--s); height: calc(var(--s) * 1.32); padding: 0; border: 0; pointer-events: auto; cursor: pointer;
  border-radius: 26% 26% 20% 20% / 16% 16% 12% 12%;
  background: radial-gradient(ellipse at 50% 82%, #fffbd6 0%, #ffd668 22%, #ffa531 52%, #f0701a 78%, #d9530f 100%);
  box-shadow: 0 0 calc(var(--s) * .7) rgba(255, 160, 50, .75), 0 0 calc(var(--s) * 1.8) rgba(255, 130, 30, .35), inset 0 calc(var(--s) * -.12) calc(var(--s) * .2) rgba(255, 250, 200, .7);
  filter: blur(var(--b, 0));
  animation: floatUp var(--d) linear infinite, sway calc(var(--d) / 5) ease-in-out infinite alternate;
  animation-delay: var(--dl), var(--dl);
  -webkit-tap-highlight-color: transparent;
}
.lantern::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: -6%; height: 8%; background: #8a3a0c; border-radius: 0 0 40% 40%; }
@keyframes floatUp { 0% { translate: 0 70vh; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { translate: var(--dx) -80vh; opacity: 0; } }
@keyframes sway { from { rotate: -5deg; margin-left: -8px; } to { rotate: 5deg; margin-left: 8px; } }
.lantern.released { transition: transform 1.6s cubic-bezier(.5, 0, .9, .5), opacity 1.6s; transform: translateY(-90vh) scale(.5); opacity: 0; pointer-events: none; }

.wish { position: fixed; z-index: 820; transform: translate(-50%, -100%); background: var(--ivory); color: var(--maroon); font-family: var(--f-hand); font-size: 20px; line-height: 1.2; padding: 10px 16px; border-radius: 16px 16px 16px 4px; max-width: 230px; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); pointer-events: none; animation: wish 3.2s var(--ease) forwards; }
@keyframes wish { 0% { opacity: 0; margin-top: 14px; scale: .8; } 12% { opacity: 1; margin-top: 0; scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; margin-top: -40px; } }

.hero { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 90px 20px 200px; text-align: center; }
.hero__title { will-change: transform, opacity; }
.hero__eyebrow { font-family: var(--f-display); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; margin-bottom: 22px; }
.hero h1 { font-family: var(--f-display); font-weight: 400; line-height: 1; text-shadow: 0 2px 30px rgba(8, 29, 77, .55); }
.hero__name { display: block; font-size: clamp(40px, 11.6vw, 124px); letter-spacing: .06em; margin-right: -.06em; text-transform: uppercase; cursor: default; user-select: none; }
.hero__weds { display: block; font-size: clamp(13px, 3vw, 22px); letter-spacing: .5em; margin: 10px 0 12px .5em; text-transform: uppercase; }
.hero__date { font-family: var(--f-display); letter-spacing: .34em; font-size: clamp(14px, 3.2vw, 20px); margin-top: 26px; }
.hero__tip { font-family: var(--f-hand); font-size: 20px; margin-top: 16px; opacity: .9; }
.hero__scroll { position: absolute; left: 50%; bottom: 210px; transform: translateX(-50%); font-family: var(--f-display); font-size: 10px; letter-spacing: .4em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .85; }
.hero__scroll span { width: 1px; height: 42px; background: linear-gradient(var(--cream), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.js body:not(.entered) .hero__title > *, .js body:not(.entered) .hero__scroll { opacity: 0; transform: translateY(26px); }
.hero__title > *, .hero__scroll { transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.entered .hero__title > :nth-child(1) { transition-delay: .5s; }
.entered .hero__title > :nth-child(2) { transition-delay: .7s; }
.entered .hero__title > :nth-child(3) { transition-delay: 1.1s; }
.entered .hero__title > :nth-child(4) { transition-delay: 1.6s; }
.entered .hero__scroll { transition-delay: 2s; }

.palace { position: relative; z-index: 2; padding-bottom: 90px; text-align: center; }
.tower { width: min(80vw, 350px); margin: -170px auto 0; position: relative; z-index: 2; filter: drop-shadow(0 30px 40px rgba(120, 50, 0, .35)); }
.tower svg { display: block; width: 100%; height: auto; }
.jharokha { width: 74.2%; margin: -1px auto; background: linear-gradient(90deg, #e9b65e, #f6d388 30%, #f3c877 70%, #dba54c); padding: 16px 0 0; display: grid; grid-template-columns: 22px 1fr 22px; gap: 10px; align-items: end; }
.jharokha__col { height: 100%; background: linear-gradient(90deg, #f8dfa4, #e2a94e); border-radius: 10px 10px 0 0; box-shadow: inset 0 14px 0 #c9502f, inset 0 20px 0 #f1c56e; }
.jharokha__win { aspect-ratio: 4 / 5; }
.tower__balcony { margin-top: -2px; width: 108% !important; margin-left: -4%; }
.arcade {
  position: relative; z-index: 1; height: 190px; margin-top: -70px;
  background:
    radial-gradient(ellipse 30px 44px at 50% 62%, #a3541a 0 97%, transparent 100%) 0 0 / 84px 100%,
    linear-gradient(#a3541a, #a3541a) 12px 100% / 84px 38% repeat-x,
    linear-gradient(180deg, #f3bf5c 0, #eaa53c 100%);
  box-shadow: inset 0 14px 0 #c9502f, inset 0 22px 0 #f6d388, inset 0 -12px 0 #c98a2b;
}
.arcade::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(120, 50, 0, .28), transparent 30%, transparent 70%, rgba(120, 50, 0, .28)); }
.palace__copy { padding: 64px 22px 0; color: #5a2408; }
.palace__copy .lede { font-family: var(--f-hand); font-size: 1.3em; }

/* ==========================================================================
   Invite
   ========================================================================== */
.kalash { width: 110px; height: auto; margin: 0 auto 26px; color: var(--cream); display: block; }
.js .draw path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s ease-in-out; }
.js .draw.in path { stroke-dashoffset: 0; }
#invite .mega { margin-top: 80px; }

/* ==========================================================================
   Events
   ========================================================================== */
.events { display: grid; gap: 96px; }
.event { text-align: center; position: relative; }
.event__art { width: min(78%, 330px); aspect-ratio: 4 / 5; margin: 0 auto 28px; position: relative; }
.event__art .arch { width: 100%; height: 100%; }
.event__art .arch__in { display: grid; place-items: center; background: var(--art-bg); }
.event__art svg.ico { width: 72%; height: auto; margin-top: 16%; }
.event__sprig { position: absolute; width: 44%; right: -12%; top: 12%; z-index: 2; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .2)); }
.event:nth-child(even) .event__sprig { right: auto; left: -12%; top: auto; bottom: 2%; transform: scaleX(-1); }
.event h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 7vw, 38px); letter-spacing: .2em; text-transform: uppercase; }
.event__when { margin-top: 8px; font-size: 1.08em; }
.event__dress { font-size: .92em; opacity: .92; }
.event__dress b { font-family: var(--f-display); font-weight: 400; font-size: .72em; letter-spacing: .2em; text-transform: uppercase; margin-right: 6px; }
.event__note { font-family: var(--f-hand); font-size: 1.18em; margin: 10px auto 16px; max-width: 20em; }
.event__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.art--haldi { --art-bg: linear-gradient(170deg, #ffe07a, #f4b52c 60%, #e58e1a); }
.art--mehendi { --art-bg: linear-gradient(170deg, #b9d66b, #6fa843 60%, #3f7a35); }
.art--sangeet { --art-bg: linear-gradient(170deg, #ff9ec1, #d9488e 55%, #7a2b86); }
.art--wedding { --art-bg: linear-gradient(170deg, #ff9d6a, #d8412f 55%, #8f1d1d); }
.art--reception { --art-bg: linear-gradient(170deg, #5a78d6, #2b3f96 55%, #151c52); }

/* ==========================================================================
   Route + cars
   ========================================================================== */
#route { padding-bottom: 0; }
.car-lane { position: relative; height: clamp(150px, 36vw, 230px); margin: 40px -22px 0; }
.car-side { position: absolute; left: 50%; bottom: -26%; width: min(92vw, 560px); height: auto; margin-left: calc(min(92vw, 560px) / -2); z-index: 5; filter: drop-shadow(0 18px 14px rgba(0, 0, 0, .28)); will-change: transform; }
.car-side .wheel { transform-box: fill-box; transform-origin: center; }
.car-side .cans { transform-box: fill-box; transform-origin: right top; animation: rattle .5s ease-in-out infinite alternate; }
@keyframes rattle { from { rotate: -2deg; } to { rotate: 3deg; } }
#couple { padding-top: clamp(110px, 20vw, 170px); }

.car-front-wrap { position: absolute; top: 0; left: 0; right: 0; height: 0; z-index: 5; }
.car-front { position: absolute; left: 50%; top: 0; width: min(88vw, 520px); height: auto; transform: translate(-50%, -52%); filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .4)); }
.car-front .lamps { animation: lamps 4s ease-in-out infinite; }
@keyframes lamps { 0%, 86%, 100% { filter: none; } 90%, 96% { filter: drop-shadow(0 0 14px #ffe9a0) brightness(1.2); } 93% { filter: none; } }
#know { padding-bottom: clamp(190px, 40vw, 300px); }
#countdown { padding-top: clamp(190px, 38vw, 290px); overflow: visible; }

/* ==========================================================================
   Couple
   ========================================================================== */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; }
.person .arch { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #fff, #f1e3c8 60%, #d9c39a); padding: 9px; filter: drop-shadow(0 12px 14px rgba(80, 20, 110, .3)); }
.person h3 { font-family: var(--f-body); font-weight: 500; font-size: clamp(28px, 7.4vw, 42px); line-height: 1.1; margin-top: 16px; }
.person__tag { font-family: var(--f-display); font-size: .6em; letter-spacing: .24em; text-transform: uppercase; opacity: .9; margin-top: 16px; }
.person__role { font-family: var(--f-hand); font-size: 1.2em; }
.person ul { list-style: none; padding: 0; margin: 10px 0 0; font-size: .86em; line-height: 1.35; display: grid; gap: 6px; }
.person:nth-child(2) { --rd: .15s; margin-top: 46px; }

.story { display: grid; gap: 16px; margin-top: 26px; text-align: left; counter-reset: ch; }
.story__item { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.story__item:nth-child(even) { grid-template-columns: 1fr 92px; text-align: right; }
.story__item:nth-child(even) .story__pic { order: 2; }
.story__pic { width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--ivory); box-shadow: 0 8px 16px rgba(80, 20, 110, .3); }
.story__pic .photo__ph { padding: 0; }
.story__pic .photo__ph b { font-size: 28px; }
.story__pic .photo__ph small { display: none; }
.story__item em { font-family: var(--f-display); font-style: normal; font-size: .58em; letter-spacing: .24em; text-transform: uppercase; opacity: .9; }
.story__item h4 { margin: 0; font-family: var(--f-body); font-weight: 600; font-size: 1.25em; line-height: 1.2; }
.story__item p { font-size: .9em; line-height: 1.35; }

.quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; perspective: 900px; }
.qcard { position: relative; aspect-ratio: 1 / .82; border: 0; padding: 0; background: none; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.qcard.flip, .js .quiz .qcard.flip { transform: rotateY(180deg); }
.qcard > span { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; padding: 12px; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center; line-height: 1.2; }
.qcard__q { background: rgba(255, 250, 240, .93); color: #7a3fa0; font-size: .95em; box-shadow: 0 8px 18px rgba(80, 20, 110, .25); }
.qcard__q::after { content: 'tap'; font-family: var(--f-display); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; opacity: .55; }
.qcard__a { background: #7a3fa0; color: var(--ivory); transform: rotateY(180deg); opacity: 0; }
.qcard > span { transition: opacity 0s .26s; }
.qcard.flip .qcard__a { opacity: 1; }
.qcard.flip .qcard__q { opacity: 0; }
.qcard__a b { font-family: var(--f-display); font-weight: 400; font-size: 1.05em; letter-spacing: .12em; text-transform: uppercase; }
.qcard__a small { font-family: var(--f-hand); font-size: 17px; }

/* ==========================================================================
   RSVP form
   ========================================================================== */
.form { display: grid; gap: 20px; text-align: left; margin-top: 34px; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-family: var(--f-display); font-size: .62em; letter-spacing: .22em; text-transform: uppercase; padding: 0; }
.field > legend { margin-bottom: 7px; }
.field input[type=text], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 18px; color: #4a2466; background: var(--ivory);
  border: 2px solid transparent; border-radius: 14px; padding: 13px 15px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #a98bbd; font-style: italic; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #7a3fa0; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.field .bad { border-color: #c9302a; }
.yes-only { display: grid; gap: 20px; }
.form.declined .yes-only { display: none; }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 5px; }
.seg label { position: relative; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; font-family: var(--f-display); font-size: .64em; letter-spacing: .14em; text-transform: uppercase; padding: 12px 6px; border-radius: 999px; transition: background .25s, color .25s; }
.seg input:checked + span { background: var(--ivory); color: #7a3fa0; }
.seg input:focus-visible + span { outline: 3px solid var(--ivory); outline-offset: 2px; }

.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ivory); color: #7a3fa0; font-size: 26px; line-height: 1; transition: transform .15s; }
.stepper button:active { transform: scale(.9); }
.stepper output { font-family: var(--f-display); font-size: 30px; min-width: 1.4em; text-align: center; }
.stepper__quip { font-family: var(--f-hand); font-style: normal; font-size: 1.1em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: block; padding: 8px 15px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .7); font-size: .88em; transition: background .2s, color .2s; }
.chips input:checked + span { background: var(--ivory); color: #7a3fa0; border-color: var(--ivory); }
.chips input:focus-visible + span { outline: 3px solid var(--ivory); outline-offset: 2px; }
.form__err { font-family: var(--f-hand); font-size: 1.1em; min-height: 1em; text-align: center; color: #fff; }
.thanks { margin-top: 34px; display: grid; gap: 14px; justify-items: center; }
.thanks[hidden] { display: none; }
.thanks h3 { font-family: var(--f-body); font-style: italic; font-weight: 500; font-size: 1.8em; }

/* ==========================================================================
   Things to know
   ========================================================================== */
.know { display: grid; grid-template-columns: 1fr 1fr; gap: 54px 22px; margin-top: 60px; }
.know__item svg { width: 56px; height: 56px; margin: 0 auto 12px; display: block; }
.know__item h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 4.6vw, 24px); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.know__item p { font-size: .9em; line-height: 1.4; }
.know__item--wide { grid-column: 1 / -1; }
.hash { font-family: var(--f-display); letter-spacing: .08em; }
.hash-btn { margin-top: 12px; background: #6b5b12; color: #fff8c9; border: 0; border-radius: 999px; padding: 11px 20px; font-family: var(--f-display); font-size: clamp(14px, 4vw, 18px); letter-spacing: .06em; transition: transform .2s var(--ease); }
.hash-btn:hover { transform: scale(1.05) rotate(-1.5deg); }
.rules { margin-top: 70px; text-align: left; color: #fffbe0; --card: #6b5b12; }
.rules h3 { font-family: var(--f-display); font-weight: 400; font-size: .86em; letter-spacing: .2em; text-transform: uppercase; text-align: center; margin-bottom: 12px; }
.rules ol { margin: 0; padding-left: 1.4em; font-family: var(--f-hand); font-size: 1.22em; line-height: 1.5; }
.ring-btn--dark { color: #6b5b12; }

/* ==========================================================================
   Countdown
   ========================================================================== */
.clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px auto 14px; max-width: 470px; }
.clock div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(232, 176, 74, .5); border-radius: 16px; padding: 16px 4px 12px; }
.clock b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 8.4vw, 50px); line-height: 1; color: #ffd98a; font-variant-numeric: tabular-nums; }
.clock span { font-family: var(--f-display); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
#countdown .lede { margin-top: 30px; font-size: .95em; }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

/* ==========================================================================
   Finale
   ========================================================================== */
.finale { position: relative; min-height: 100vh; min-height: 100svh; background: linear-gradient(180deg, #0d2550 0%, #0a1b46 40%, #1b1240 75%, #3a1420 100%); display: flex; flex-direction: column; justify-content: flex-end; text-align: center; overflow: hidden; }
#fireworks { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.finale__copy { position: relative; padding: 130px 22px 30px; pointer-events: none; }
.finale__names { font-family: var(--f-display); font-size: clamp(22px, 6vw, 36px); letter-spacing: .2em; text-transform: uppercase; color: #ffd98a; }
.finale__palace { position: relative; pointer-events: none; line-height: 0; }
.finale__palace svg { width: 100%; min-width: 760px; height: auto; display: block; margin-left: 50%; transform: translateX(-50%); }
.finale__palace .win { animation: flicker var(--fd, 4s) ease-in-out infinite; animation-delay: var(--fl, 0s); }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .72; } 55% { opacity: .95; } }
.foot { position: relative; background: #1a0a10; padding: 26px 76px calc(30px + env(safe-area-inset-bottom)); font-size: .82em; color: #f3d9b0; display: grid; gap: 6px; }
.foot .hash { font-size: 1.2em; color: #ffd98a; }

/* ==========================================================================
   Larger screens & motion preferences
   ========================================================================== */
@media (min-width: 760px) {
  .wrap { width: min(100%, 680px); }
  .know { grid-template-columns: repeat(3, 1fr); }
  .quiz { grid-template-columns: repeat(3, 1fr); }
  .events { gap: 120px; }
  .tower { margin-top: -190px; }
}
@media (max-height: 780px) { .hero__scroll { display: none; } }
@media (max-width: 380px) {
  .duo { gap: 12px; }
  .person ul { font-size: .8em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .lantern { animation: none !important; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .js .draw path { stroke-dashoffset: 0; }
}

/* ==========================================================================
   v2 — photos, retro pieces & extra motion
   ========================================================================== */

/* ---------- letter-by-letter titles ---------- */
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }
.js .split .ch { opacity: 0; transform: translateY(.55em) rotate(7deg) scale(.9); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i) * 42ms + .1s); }
.js .split.in .ch, .js .entered .hero__name.split .ch { opacity: 1; transform: none; }
.js .entered .hero__name.split .ch { transition-delay: calc(var(--i) * 70ms + .8s); }
.js .entered .hero__name.split ~ .hero__name.split .ch { transition-delay: calc(var(--i) * 70ms + 1.5s); }

/* ---------- shooting stars ---------- */
.shoot { position: absolute; top: 7%; left: 72%; width: 130px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); rotate: -28deg; opacity: 0; pointer-events: none; z-index: 1; animation: shoot 9s ease-in infinite 3s; }
.shoot--2 { top: 16%; left: 38%; width: 90px; animation-delay: 7.5s; animation-duration: 13s; }
@keyframes shoot { 0%, 90% { opacity: 0; translate: 0 0; } 92% { opacity: 1; } 100% { opacity: 0; translate: -320px 170px; } }

/* ---------- falling petals ---------- */
.petals { position: fixed; inset: 0; z-index: 700; pointer-events: none; overflow: hidden; }
.petal { position: absolute; top: -30px; width: var(--s); height: calc(var(--s) * 1.25); background: var(--c); border-radius: 80% 10% 80% 10%; opacity: .85; animation: petalFall var(--d) linear infinite, petalSway calc(var(--d) / 4) ease-in-out infinite alternate; animation-delay: var(--dl), var(--dl); }
@keyframes petalFall { from { translate: 0 -5vh; rotate: 0deg; } to { translate: var(--dx) 108vh; rotate: 540deg; } }
@keyframes petalSway { from { margin-left: -22px; } to { margin-left: 22px; } }
body.is-locked .petals { display: none; }

/* ---------- marigold toran ---------- */
.toran { position: absolute; top: 0; left: 0; right: 0; height: 0; display: flex; justify-content: space-between; padding: 0 2%; z-index: 2; pointer-events: none; }
.toran::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: repeating-linear-gradient(90deg, #f08a1c 0 9px, #fbc02d 9px 18px); border-radius: 0 0 6px 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, .18); }
.toran__s { display: flex; flex-direction: column; align-items: center; gap: 1px; transform-origin: top center; animation: toranSway var(--d, 4s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
.toran__s svg { width: 15px; height: 15px; display: block; }
.toran__s i { width: 9px; height: 13px; background: #4c9a5d; border-radius: 0 0 60% 60%; margin-top: 1px; }
@keyframes toranSway { from { rotate: -3.5deg; } to { rotate: 3.5deg; } }
#invite { padding-top: clamp(130px, 20vh, 180px); }
#know { padding-top: clamp(130px, 20vh, 180px); }

/* ---------- invite: names, kin, stamp ---------- */
.couple-names small.kin { display: block; font-family: var(--f-display); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.8; margin: 6px 0 16px; opacity: .95; }
.couple-names small.kin b { font-weight: 500; font-size: 15px; letter-spacing: .12em; }
.kalash { animation: kalashGlow 3.6s ease-in-out infinite; }
@keyframes kalashGlow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 233, 160, 0)); } 50% { filter: drop-shadow(0 0 10px rgba(255, 233, 160, .75)); } }
.js .draw :is(path, circle, rect, ellipse) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s ease-in-out; }
.js .draw.in :is(path, circle, rect, ellipse) { stroke-dashoffset: 0; }

.postage { position: relative; width: 250px; height: 190px; margin: 34px auto 6px; }
.stamp { position: absolute; left: 6px; top: 8px; width: 140px; background: #fff6e0; border: 7px dotted #2f9e8f; padding: 5px 5px 2px; rotate: -7deg; color: #10565c; }
.stamp img { width: 100%; aspect-ratio: 8 / 9; object-fit: cover; }
.stamp span { display: block; font-family: var(--f-display); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 0 3px; text-align: center; }
.postmark { position: absolute; right: 0; top: 34px; width: 136px; height: 136px; color: #fff6e0; opacity: .9; rotate: 14deg; }
.js .postage .stamp { opacity: 0; scale: 1.7; transition: opacity .25s ease-in .2s, scale .45s cubic-bezier(.3, 1.6, .5, 1) .2s; }
.js .postage .postmark { opacity: 0; scale: 2.2; transition: opacity .2s ease-in .75s, scale .35s cubic-bezier(.3, 1.5, .5, 1) .75s; }
.js .postage.in .stamp { opacity: 1; scale: 1; }
.js .postage.in .postmark { opacity: .9; scale: 1; }

/* ---------- photos: slow drift ---------- */
.photo img { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { scale: 1; } to { scale: 1.1; } }
.photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(60, 20, 0, .24)); }

/* ---------- events: livelier cards ---------- */
.event__art svg.ico { animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -1.5deg; } 50% { translate: 0 -8px; rotate: 1.5deg; } }
.event__sprig { animation: sprig 5s ease-in-out infinite alternate; transform-origin: 10% 90%; }
@keyframes sprig { from { rotate: -5deg; } to { rotate: 5deg; } }
.js .event .arch { scale: .84; rotate: -3deg; transition: scale 1.2s var(--ease), rotate 1.2s var(--ease); }
.js .event:nth-child(even) .arch { rotate: 3deg; }
.js .event.in .arch { scale: 1; rotate: 0deg; }
.js .person .arch { scale: .86; transition: scale 1.2s var(--ease) var(--rd, 0s); }
.js .person.in .arch { scale: 1; }
.js .story__item.reveal { transform: translateX(-40px); }
.js .story__item.reveal:nth-child(even) { transform: translateX(40px); }
.js .story__item.reveal.in { transform: none; }
.story__pic { transition: rotate .5s var(--ease), scale .5s var(--ease); }
.story__item:hover .story__pic { rotate: -6deg; scale: 1.08; }
.know__item svg { transition: transform .4s var(--ease); }
.know__item:hover svg { transform: rotate(-8deg) scale(1.15); }

/* ---------- car: bounce + hearts from the exhaust ---------- */
.car-side { animation: carBob .45s ease-in-out infinite alternate; }
@keyframes carBob { from { translate: 0 0; } to { translate: 0 -2.5px; } }
.puff { position: absolute; z-index: 4; font-size: var(--fs, 18px); line-height: 1; color: var(--c, #fff); pointer-events: none; animation: puff 2s ease-out forwards; text-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
@keyframes puff { from { opacity: 0; translate: 0 0; scale: .4; } 15% { opacity: 1; } to { opacity: 0; translate: var(--px, -60px) -90px; scale: 1.5; rotate: var(--pr, -20deg); } }

/* ---------- retro film poster ---------- */
.poster { perspective: 900px; margin: 26px auto 0; width: min(86%, 380px); }
.poster__card { position: relative; aspect-ratio: 3 / 4.3; background: #7a181e; color: #ffe9ba; border: 9px solid #ffe9ba; outline: 2px solid #7a181e; outline-offset: -15px; box-shadow: 0 26px 40px rgba(60, 10, 80, .45); rotate: -2.5deg; overflow: hidden; transform-style: preserve-3d; transition: transform .25s ease-out; display: flex; flex-direction: column; text-align: center; }
.poster__card img { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 74%; object-fit: cover; object-position: 50% 30%; }
.poster__card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(122, 24, 30, .88) 0, rgba(122, 24, 30, 0) 16%, rgba(122, 24, 30, 0) 42%, #7a181e 72%); }
.poster__card > div { position: relative; z-index: 2; }
.poster__banner { font-family: var(--f-display); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; padding: 20px 20px 0; }
.poster__body { margin-top: auto; padding: 0 18px 24px; }
.poster__names { font-family: 'Limelight', var(--f-display); font-size: clamp(30px, 9.4vw, 44px); line-height: 1; color: #ffd24a; text-shadow: 3px 3px 0 #3d0a0e; text-transform: uppercase; }
.poster__names i { display: block; font-family: var(--f-hand); font-size: .5em; color: #ffe9ba; text-shadow: none; text-transform: none; margin: 2px 0; }
.poster__film { font-family: var(--f-body); font-style: italic; font-size: 19px; margin-top: 10px; }
.poster__film b { font-family: 'Limelight', var(--f-display); font-style: normal; font-weight: 400; font-size: 1.15em; letter-spacing: .04em; }
.poster__tag { font-family: var(--f-hand); font-size: 18px; line-height: 1.2; margin-top: 4px; }
.poster__foot { font-family: var(--f-display); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 233, 186, .5); }
.poster__badge { position: absolute !important; z-index: 3 !important; right: 14px; top: 56px; width: 78px; height: 78px; border-radius: 50%; background: #ffd24a; color: #7a181e; display: grid; place-items: center; font-family: 'Limelight', var(--f-display); font-size: 13px; line-height: 1.05; rotate: 14deg; box-shadow: 0 0 0 3px #7a181e, 0 0 0 5px #ffd24a; animation: badge 2.6s ease-in-out infinite; }
@keyframes badge { 0%, 100% { scale: 1; } 50% { scale: 1.1; rotate: 8deg; } }
.poster__shine { position: absolute; z-index: 4; inset: -40% -60%; background: linear-gradient(100deg, transparent 44%, rgba(255, 255, 255, .28) 50%, transparent 56%); animation: shine 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 55% { translate: -60% 0; } 100% { translate: 60% 0; } }

/* ---------- film reel ---------- */
.reel { position: relative; margin: 26px -22px 0; background: #1b1016; padding: 26px 0; overflow: hidden; rotate: -1.2deg; scale: 1.03; box-shadow: 0 16px 30px rgba(60, 10, 80, .4); }
.reel::before, .reel::after { content: ''; position: absolute; left: 0; right: 0; height: 14px; z-index: 2; background: repeating-linear-gradient(90deg, #fff6e0 0 13px, transparent 13px 27px); border-radius: 3px; animation: sprockets 1.1s linear infinite; }
.reel::before { top: 6px; } .reel::after { bottom: 6px; }
@keyframes sprockets { to { background-position: -27px 0; } }
.reel__track { display: flex; gap: 10px; width: max-content; animation: reel var(--reel-d, 50s) linear infinite; }
.reel__track img { height: clamp(190px, 46vw, 290px); width: auto; border-radius: 4px; flex: none; }
@keyframes reel { to { transform: translateX(-50%); } }

/* ---------- countdown tick ---------- */
.clock b.pop { animation: pop2 .45s var(--ease); }
@keyframes pop2 { 0% { scale: 1.28; color: #fff; } 100% { scale: 1; } }
.clock div { transition: transform .3s var(--ease), border-color .3s; }
.clock div:hover { transform: translateY(-6px) rotate(-2deg); border-color: #ffd98a; }

/* ---------- finale lanterns ---------- */
.lanterns--finale { z-index: 1; }
.lanterns--finale .lantern { pointer-events: none; }

/* ---------- cursor sparkles (desktop) ---------- */
.spark { position: fixed; z-index: 940; width: 7px; height: 7px; pointer-events: none; background: radial-gradient(circle, #fff 0, #ffd76a 45%, transparent 70%); border-radius: 50%; animation: spark .8s ease-out forwards; }
@keyframes spark { to { opacity: 0; translate: var(--sx, 0) 26px; scale: .2; } }

@media (prefers-reduced-motion: reduce) {
  .petals, .shoot, .spark, .poster__shine { display: none !important; }
  .js .split .ch, .js .postage .stamp, .js .postage .postmark, .js .event .arch, .js .person .arch { opacity: 1; transform: none; scale: 1; rotate: 0deg; }
  .js .postage .postmark { opacity: .9; }
  .js .draw :is(path, circle, rect, ellipse) { stroke-dashoffset: 0; }
  .reel__track { animation: none !important; overflow-x: auto; width: auto; }
}

/* ==========================================================================
   v3 — the full mahal scroll: palace front, courtyard, fountain and the pool
        that widens until it becomes the invitation
   ========================================================================== */
.palace { padding-bottom: 0; }
.facade { position: relative; z-index: 1; line-height: 0; width: max(100vw, 1150px); margin-left: calc(50% - max(50vw, 575px)); margin-top: calc(-40px - max(100vw, 1150px) * .15); }
.facade svg { display: block; width: 100%; height: auto; }
.nglow { animation: flicker var(--fd, 4s) ease-in-out infinite; animation-delay: var(--fl, 0s); }

#invite { padding-top: 0; --hc: clamp(480px, 124vw, 680px); }
#invite > .wrap { margin-top: calc(var(--hc) * -.43); }
.court { position: relative; height: var(--hc); margin: 0 -22px; }
.court::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 70px; z-index: 2; pointer-events: none; background: linear-gradient(rgba(110, 50, 0, .38), rgba(110, 50, 0, 0)); }
.court__rim, .court__floor, .court__water { position: absolute; inset: 0; }
.court__rim { background: linear-gradient(180deg, #f3d184, #fff0c4); clip-path: polygon(0 0, calc(50% - 44px) 0, 0 100%, 0 0, 100% 0, 100% 100%, calc(50% + 44px) 0); }
.court__floor {
  background:
    repeating-conic-gradient(from 0deg at 50% -8%, rgba(150, 80, 10, .14) 0 .45deg, transparent .45deg 7deg),
    linear-gradient(180deg, #e39a34, #f0b650 38%, #f7cd72);
  clip-path: polygon(0 0, calc(50% - 60px) 0, 0 91%, 0 0, 100% 0, 100% 91%, calc(50% + 60px) 0);
}
.court__water { clip-path: polygon(calc(50% - 44px) 0, calc(50% + 44px) 0, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(8, 70, 72, .5), rgba(8, 70, 72, 0) 55%); }
.ripple { position: absolute; left: 50%; top: 30px; width: 130px; height: 42px; margin: -21px 0 0 -65px; border: 2px solid rgba(225, 255, 246, .75); border-radius: 50%; animation: ripple 3.6s linear infinite; }
.ripple:nth-child(2) { animation-delay: -1.2s; } .ripple:nth-child(3) { animation-delay: -2.4s; }
@keyframes ripple { from { scale: .15; opacity: .9; } to { scale: 1.5; opacity: 0; } }
.glint { position: absolute; top: calc(var(--t) * 100%); left: calc(50% + var(--x)); width: var(--w); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .6); animation: glint 4.5s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes glint { 0%, 100% { opacity: 0; translate: -12px 0; } 50% { opacity: 1; translate: 12px 0; } }
.diya { position: absolute; top: calc(var(--t) * 100%); left: calc(50% + var(--x)); width: 22px; height: 11px; scale: var(--k, 1); background: linear-gradient(#c9703a, #8a3d1c); border-radius: 0 0 12px 12px / 0 0 10px 10px; animation: diyaDrift 9s ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
.diya::before, .lamp b { content: ''; position: absolute; left: 50%; width: 9px; height: 15px; margin-left: -4.5px; background: radial-gradient(ellipse at 50% 75%, #fffbe0 0, #ffc23c 45%, #f0701a 100%); border-radius: 50% 50% 50% 50% / 68% 68% 32% 32%; box-shadow: 0 0 14px 5px rgba(255, 180, 60, .7); transform-origin: bottom center; animation: flame .9s ease-in-out infinite alternate; }
.diya::before { bottom: 100%; }
.diya::after { content: ''; position: absolute; left: 50%; top: 100%; width: 9px; height: 26px; margin-left: -4.5px; background: linear-gradient(rgba(255, 205, 100, .65), rgba(255, 205, 100, 0)); filter: blur(2px); }
@keyframes diyaDrift { from { translate: -10px 0; } to { translate: 12px 5px; } }
@keyframes flame { from { transform: scale(1, 1) rotate(-3deg); } to { transform: scale(.86, 1.14) rotate(3deg); } }

.lamp { position: absolute; z-index: 2; top: calc(var(--t) * 91%); width: 26px; height: 80px; margin-top: -80px; transform: scale(var(--k)); transform-origin: bottom center; background: linear-gradient(90deg, #fff0c4, #d9a04c) center bottom / 10px 58px no-repeat; }
.lamp--l { left: calc((50% - 60px) * (1 - var(--t)) - 34px * var(--k)); }
.lamp--r { right: calc((50% - 60px) * (1 - var(--t)) - 34px * var(--k)); }
.lamp::before { content: ''; position: absolute; left: 2px; right: 2px; bottom: 0; height: 7px; border-radius: 2px; background: #e9bd66; }
.lamp::after { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 11px; border-radius: 0 0 13px 13px; background: linear-gradient(#c9502f, #8f3320); }
.lamp b { top: -3px; animation-duration: .7s; }

.fountain { position: absolute; z-index: 3; left: 50%; top: 0; width: clamp(180px, 50vw, 270px); height: auto; transform: translate(-50%, -80%); filter: drop-shadow(0 14px 10px rgba(90, 40, 0, .32)); }
.ftn-fall { animation: ftnFall .7s linear infinite; }
@keyframes ftnFall { to { stroke-dashoffset: -16; } }
.ftn-jet { transform-box: fill-box; transform-origin: bottom center; animation: ftnJet 1.1s ease-in-out infinite alternate; }
@keyframes ftnJet { from { transform: scaleY(.84); } to { transform: scaleY(1.1); } }
.ftn-ring { transform-box: fill-box; transform-origin: center; animation: ftnRing 2.4s linear infinite; }
@keyframes ftnRing { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.lanterns--court { position: absolute; inset: -60% 0 0 0; z-index: 4; overflow: hidden; pointer-events: none; }
.lanterns--court .lantern { pointer-events: none; }
/* ==========================================================================
   v4 — envelope fix, bigger balcony photo, a livelier mahal
   ========================================================================== */

/* envelope: the flap opens first, then the letter rises in FRONT of it */
.env__back { z-index: 1; }
.env__letter { z-index: 2; transition: transform 1.1s var(--ease) .55s, box-shadow 1.1s var(--ease) .55s; }
.env__front { z-index: 3; }
.env__flap { z-index: 4; transition: transform .7s var(--ease), z-index 0s linear .3s; }
.env__seal { z-index: 5; }
.gate.open .env__flap { transform: rotateX(180deg); z-index: 1; }
.gate.open .env__letter { transform: translateY(-66%); box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); }
.gate__eyebrow { transition: opacity .4s; }
.gate.open .gate__eyebrow { opacity: 0; }

/* the couple's balcony: larger tower, slimmer pillars, so the photo leads */
.tower { width: min(94vw, 470px); margin-top: -205px; }
.jharokha { grid-template-columns: 13px 1fr 13px; gap: 7px; padding-top: 14px; }
.tower__balcony { width: 104% !important; margin-left: -2%; }
@media (min-width: 760px) { .tower { margin-top: -235px; } }

/* guests, lamps, flags, chatter and birds on the palace front */
.peek { animation: peek var(--pd, 7s) ease-in-out infinite; animation-delay: var(--pl, 0s); }
@keyframes peek { 0%, 52%, 100% { transform: translateY(0); } 62%, 84% { transform: translateY(38px); } 92% { transform: translateY(-3px); } }
.jhoomar { transform-box: fill-box; transform-origin: top center; animation: swing 3.2s ease-in-out infinite alternate; animation-delay: var(--pl, 0s); }
@keyframes swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.flag { transform-box: fill-box; transform-origin: left center; animation: flag 1.1s ease-in-out infinite alternate; animation-delay: var(--pl, 0s); }
@keyframes flag { from { transform: skewY(-10deg) scaleX(1); } to { transform: skewY(10deg) scaleX(.84); } }

.chat { position: absolute; z-index: 3; transform: translate(-50%, -100%) scale(0); transform-origin: 50% 100%; opacity: 0; white-space: nowrap; font-family: var(--f-hand); font-size: 18px; line-height: 1.15; color: var(--maroon); background: var(--ivory); padding: 7px 13px; border-radius: 15px 15px 15px 3px; box-shadow: 0 8px 18px rgba(90, 40, 0, .3); animation: chat calc(var(--n) * 2.6s) ease-in-out infinite; animation-delay: calc(var(--i) * 2.6s); }
@keyframes chat { 0% { transform: translate(-50%, -100%) scale(0); opacity: 0; } 3% { transform: translate(-50%, -100%) scale(1.1); opacity: 1; } 5%, 15% { transform: translate(-50%, -100%) scale(1); opacity: 1; } 18%, 100% { transform: translate(-50%, -100%) scale(0); opacity: 0; } }

.facade svg.bird { position: absolute; left: 0; z-index: 3; width: calc(26px * var(--bs, 1)); height: auto; overflow: visible; animation: fly var(--bd, 16s) linear infinite; animation-delay: var(--bl, 0s); }
.facade svg.bird path { transform-box: fill-box; transform-origin: center; animation: flap .45s ease-in-out infinite alternate; }
@keyframes fly { from { transform: translate(-40px, 0); } 50% { transform: translate(calc(max(50vw, 575px)), -18px); } to { transform: translate(calc(max(100vw, 1150px) + 40px), 6px); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.3); } }
@media (prefers-reduced-motion: reduce) { .chat { animation: none; opacity: 1; transform: translate(-50%, -100%); } }
/* ---------- v5: the darbans at the mahal door ---------- */
.bow, .sway, .nod, .mooch, .tray { transform-box: fill-box; }
.bow { transform-origin: 50% 100%; animation: bow 4.5s ease-in-out infinite; }
@keyframes bow { 0%, 45%, 100% { transform: rotate(0deg); } 60%, 78% { transform: rotate(-11deg); } }
.sway { transform-origin: 50% 100%; animation: swayD 3.4s ease-in-out infinite alternate; }
@keyframes swayD { from { transform: rotate(-1.500deg); } to { transform: rotate(2deg); } }
.nod { transform-origin: 50% 90%; animation: nod 2.8s ease-in-out infinite alternate; }
@keyframes nod { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.mooch { transform-origin: 50% 50%; animation: mooch 2.2s ease-in-out infinite; }
@keyframes mooch { 0%, 70%, 100% { transform: scale(1) rotate(0deg); } 78% { transform: scale(1.12, 1.2) rotate(-5deg); } 86% { transform: scale(1.12, 1.2) rotate(5deg); } 94% { transform: scale(1.05) rotate(0deg); } }
.tray { transform-origin: 20% 100%; animation: tray 1.7s ease-in-out infinite alternate; }
@keyframes tray { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-3px) rotate(3deg); } }
.chat--d { animation: chatD 8s ease-in-out infinite; animation-delay: calc(var(--i) * 4s); }
@keyframes chatD { 0% { transform: translate(-50%, -100%) scale(0); opacity: 0; } 5% { transform: translate(-50%, -100%) scale(1.1); opacity: 1; } 8%, 40% { transform: translate(-50%, -100%) scale(1); opacity: 1; } 46%, 100% { transform: translate(-50%, -100%) scale(0); opacity: 0; } }
/* ==========================================================================
   v6 — readability for all ages, darbans by the pool, painted event pictures,
        map pin, scroll + lantern hints
   ========================================================================== */

/* ---------- easier-to-read type (Lora replaces the thin serif and the handwriting) ---------- */
:root { --f-body: 'Lora', Georgia, 'Times New Roman', serif; --f-hand: 'Lora', Georgia, serif; }
body { font-size: clamp(17px, 2.2vw, 19px); line-height: 1.65; }
.note, .event__note, .person__role, .hero__tip, .rules ol, .stepper__quip, .gate__note, .menu__title,
.form__err, .chat, .wish, .toast { font-style: italic; }
.note { font-size: 1em; }
.event__note { font-size: 1.02em; }
.person__role { font-size: 1em; }
.rules ol { font-size: 1.04em; line-height: 1.6; }
.stepper__quip, .form__err { font-size: 1em; }
.hero__tip { font-size: 17px; }
.gate__note { font-size: 17px; }
.menu__title { font-size: 18px; }
.chat { font-size: 15px; }
.wish { font-size: 17px; line-height: 1.35; }
.toast { font-size: 16px; }
.hero__eyebrow, .gate__eyebrow, .gate__hint { font-size: 14px; }
.couple-names small.kin { font-size: 15px; }
.couple-names small.kin b { font-size: 17px; }
.clock span { font-size: 12px; letter-spacing: .14em; }
.field > span, .field > legend { font-size: .78em; letter-spacing: .14em; }
.seg span { font-size: .78em; }
.btn { font-size: .8em; }
.btn--sm { font-size: .74em; padding: 11px 16px; }
.person__tag, .story__item em { font-size: .72em; }
.menu a { font-size: 15px; }
.event__dress b { font-size: .8em; }
.lede { font-size: 1em; }

/* ---------- darbans standing by the courtyard pool ---------- */
.darban { position: absolute; z-index: 5; bottom: calc(var(--hc) * .64); width: clamp(88px, 24vw, 150px); padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.darban svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 8px 6px rgba(90, 40, 0, .28)); }
.darban--l { right: calc(50% + 50px + (50% - 44px) * .36); }
.darban--r { left: calc(50% + 50px + (50% - 44px) * .36); }
.darban__name { display: block; width: max-content; margin: -2px auto 0; padding: 3px 12px; border-radius: 999px; background: var(--ivory); color: var(--maroon); font-family: var(--f-display); font-size: 13px; letter-spacing: .1em; box-shadow: 0 4px 10px rgba(90, 40, 0, .25); }
.darban__say { position: absolute; bottom: 96%; z-index: 2; max-width: 210px; width: max-content; padding: 7px 13px; border-radius: 15px 15px 15px 3px; background: var(--ivory); color: var(--maroon); font: italic 500 15px/1.25 var(--f-body); box-shadow: 0 8px 18px rgba(90, 40, 0, .3); opacity: 0; transform: scale(0); transition: opacity .25s, transform .4s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.darban--l .darban__say { left: 6%; transform-origin: 8% 100%; }
.darban--r .darban__say { right: 6%; transform-origin: 92% 100%; border-radius: 15px 15px 3px 15px; }
.darban__say.show { opacity: 1; transform: scale(1); }
.darban:active svg { transform: scale(.96); }

/* ---------- painted event pictures with petals / sparkles ---------- */
.event__pic { position: relative; }
.event__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s ease-in-out infinite alternate; }
.event__shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, transparent 38%, rgba(255, 248, 225, .38) 50%, transparent 62%) no-repeat; background-size: 260% 100%; animation: evShine 6.5s ease-in-out infinite; }
@keyframes evShine { 0%, 50% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
.fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fx i { position: absolute; display: block; }
.fx--petals i { width: calc(11px * var(--s)); height: calc(14px * var(--s)); border-radius: 80% 10% 80% 10%; background: linear-gradient(135deg, #ffd1df, #ff7aa5); opacity: .9; animation: petalDrop var(--d) linear infinite; animation-delay: var(--dl); }
@keyframes petalDrop { from { top: -8%; transform: translateX(0) rotate(0deg); } 50% { transform: translateX(18px) rotate(200deg); } to { top: 106%; transform: translateX(-10px) rotate(420deg); } }
.fx--sparkles i { width: calc(18px * var(--s)); height: calc(18px * var(--s)); background: radial-gradient(circle, #fff 0 18%, #fff3c4 32%, rgba(255, 220, 120, 0) 70%); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: sparkle var(--d) ease-in-out infinite; animation-delay: var(--dl); }
@keyframes sparkle { 0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; } 45% { transform: scale(1) rotate(45deg); opacity: 1; } 60% { transform: scale(.4) rotate(90deg); opacity: .6; } }

/* ---------- map pin ---------- */
.pin-btn { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; margin: 22px auto 4px; -webkit-tap-highlight-color: transparent; }
.pin-btn__pin { display: block; width: 66px; height: 87px; transform-origin: 50% 100%; animation: pinBounce 1.7s ease-in-out infinite; filter: drop-shadow(0 8px 8px rgba(20, 80, 60, .3)); }
.pin-btn__pin svg { display: block; width: 100%; height: 100%; }
.pin-btn__shadow { display: block; width: 38px; height: 10px; margin-top: -3px; border-radius: 50%; background: rgba(15, 80, 60, .35); animation: pinShadow 1.7s ease-in-out infinite; }
@keyframes pinBounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-18px); } 55% { transform: translateY(0) scale(1.08, .92); } 65% { transform: translateY(0) scale(1); } }
@keyframes pinShadow { 0%, 100% { transform: scale(1); opacity: .9; } 40% { transform: scale(.55); opacity: .4; } }
.pin-btn__label { margin-top: 12px; padding: 13px 22px; border-radius: 999px; background: var(--ivory); color: #17735c; font-family: var(--f-display); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(15, 80, 60, .28); transition: transform .25s var(--ease); }
.pin-btn:hover .pin-btn__label, .pin-btn:focus-visible .pin-btn__label { transform: translateY(-2px); background: #fff; }

/* ---------- "scroll down" cue ---------- */
.scroll-cue { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 805; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 16px 11px 20px; background: rgba(255, 250, 240, .97); color: var(--maroon); font: 600 15px/1 var(--f-body); box-shadow: 0 10px 28px rgba(0, 0, 0, .32); opacity: 0; transform: translate(-50%, 30px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
.scroll-cue svg { width: 22px; height: 22px; animation: cueArrow 1.1s ease-in-out infinite; }
.scroll-cue.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); animation: cueWobble 2.4s ease-in-out .5s infinite; }
@keyframes cueArrow { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@keyframes cueWobble { 0%, 55%, 100% { transform: translate(-50%, 0) rotate(0deg); } 62% { transform: translate(-50%, 8px) rotate(-3deg); } 70% { transform: translate(-50%, -3px) rotate(3deg); } 78% { transform: translate(-50%, 5px) rotate(-2deg); } 86% { transform: translate(-50%, 0) rotate(1deg); } }

/* ---------- "tap a lantern" hint in the hero ---------- */
.tap-hint { position: relative; width: 140px; height: 120px; margin: 10px auto 0; }
.tap-hint.done { display: none; }
.lantern.lantern--hint { position: absolute; left: 50%; top: 10px; --s: 52px; margin-left: -26px; opacity: 1; animation: hintBob 2.4s ease-in-out infinite; filter: none; z-index: 2; }
@keyframes hintBob { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -8px; rotate: 3deg; } }
.tap-hint__ring { position: absolute; left: 50%; top: 44px; width: 78px; height: 78px; margin: -39px 0 0 -39px; border: 2px solid rgba(255, 238, 190, .9); border-radius: 50%; pointer-events: none; animation: ping 1.8s var(--ease) infinite; }
.tap-hint__hand { position: absolute; left: 56%; top: 58px; width: 38px; z-index: 3; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); animation: handTap 1.8s ease-in-out infinite; }
@keyframes handTap { 0%, 100% { transform: translate(14px, 16px); } 40%, 60% { transform: translate(0, 0); } 50% { transform: translate(0, 0) scale(.88); } }
.tap-hint__label { position: absolute; right: calc(50% + 36px); top: 20px; white-space: nowrap; padding: 6px 12px; border-radius: 14px 14px 3px 14px; background: var(--ivory); color: var(--maroon); font: italic 600 16px/1.2 var(--f-body); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); animation: breathe 2s ease-in-out infinite; }
.entered .hero__title > :nth-child(5) { transition-delay: 2s; }

@media (prefers-reduced-motion: reduce) {
  .scroll-cue.show { animation: none; }
  .fx { display: none; }
}
/* ---------- v6 polish ---------- */
.hero__eyebrow { letter-spacing: .2em; }
.scroll-cue { white-space: nowrap; }
.tap-hint__label { animation: labelPulse 1.8s ease-in-out infinite; }
@keyframes labelPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.darban { width: clamp(104px, 28vw, 165px); }
.darban--l { right: calc(50% + 40px + (50% - 44px) * .36); }
.darban--r { left: calc(50% + 40px + (50% - 44px) * .36); }
/* ==========================================================================
   v7 — envelope screen: Ganpati ji + butterflies
   ========================================================================== */
.ganpati { display: block; width: 86px; height: auto; margin: 0 auto 14px; color: #ffd98a; filter: drop-shadow(0 0 10px rgba(255, 210, 120, .45)); }
.ganpati path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ganDraw 2.6s ease-in-out .2s forwards; }
.ganpati circle { opacity: 0; animation: ganDot .6s ease-out 2.4s forwards; }
@keyframes ganDraw { to { stroke-dashoffset: 0; } }
@keyframes ganDot { to { opacity: 1; } }
.gate__row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 30px; }
.gate__row .gate__eyebrow { margin: 0; }
.bfly { flex: none; width: 46px; height: auto; overflow: visible; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); animation: bflyFloat 3.2s ease-in-out infinite; }
.bfly--r { animation-delay: -1.6s; }
.bfly__wing { transform-box: view-box; transform-origin: 30px 26px; animation: bflyFlap .38s ease-in-out infinite alternate; }
.bfly--r .bfly__wing { animation-delay: -.19s; }
@keyframes bflyFlap { from { transform: scaleX(1); } to { transform: scaleX(.18); } }
@keyframes bflyFloat { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 25% { transform: translate(3px, -7px) rotate(4deg); } 50% { transform: translate(-2px, -2px) rotate(-4deg); } 75% { transform: translate(2px, -9px) rotate(6deg); } }
.bfly--r { scale: -1 1; }
@media (max-width: 380px) { .bfly { width: 36px; } .gate__row { gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .ganpati path { stroke-dashoffset: 0; } .ganpati circle { opacity: 1; } }
/* ---------- v7: RSVP required fields ---------- */
.req { color: #ffe08a; font-weight: 700; }
.form__req { font-size: .85em; opacity: .9; margin: -6px 0 -8px; text-align: right; }
.form__req b { color: #ffe08a; }
.chips.bad span { border-color: #ffd0d0; box-shadow: 0 0 0 2px rgba(201, 48, 42, .55); }
.form__err { font-weight: 600; background: rgba(122, 24, 30, .35); border-radius: 12px; padding: 0 12px; }
.form__err:not(:empty) { padding: 10px 12px; }
/* ---------- v7 polish ---------- */
.ganpati { width: 100px; }
.form__err { background: none; padding: 0; min-height: 0; }
.form__err:not(:empty) { background: rgba(122, 24, 30, .35); padding: 10px 12px; }
@media (max-width: 480px) {
  .gate { padding: 16px; }
  .gate__row { gap: 6px; }
  .gate__row .gate__eyebrow { font-size: 12.5px; letter-spacing: .13em; line-height: 1.8; }
  .bfly { width: 34px; }
}
/* ---------- v8: page "peek" wobble replaces the scroll button ---------- */
main.wobble { animation: pagePeek 1.5s cubic-bezier(.3, .7, .35, 1); }
@keyframes pagePeek {
  0%   { transform: translateY(0); }
  22%  { transform: translateY(-64px); }
  40%  { transform: translateY(0); }
  55%  { transform: translateY(-26px); }
  70%  { transform: translateY(0); }
  82%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
/* ==========================================================================
   v9 — save-the-date calendar beside the pin, varmala marigolds, Sparsh's garland
   ========================================================================== */
.route-row { display: flex; justify-content: center; align-items: flex-start; gap: clamp(22px, 9vw, 70px); margin: 22px auto 4px; }
.route-row .pin-btn { margin: 0; }
.route-pick { position: relative; }
.cal-btn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.cal-btn__cal { display: block; width: 74px; height: 80px; margin-top: 7px; transform-origin: 50% 100%; animation: calWiggle 3.4s ease-in-out infinite; filter: drop-shadow(0 8px 8px rgba(20, 80, 60, .3)); }
.cal-btn__cal svg { display: block; width: 100%; height: 100%; }
.cal-btn .pin-btn__shadow { animation: none; width: 54px; }
.cal-btn__heart { transform-box: fill-box; transform-origin: center; animation: calHeart 1.2s ease-in-out infinite; }
@keyframes calWiggle { 0%, 70%, 100% { transform: rotate(0deg); } 76% { transform: rotate(-8deg); } 82% { transform: rotate(7deg); } 88% { transform: rotate(-4deg); } 94% { transform: rotate(2deg); } }
@keyframes calHeart { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
.cal-menu { position: absolute; z-index: 20; top: calc(100% + 10px); left: 50%; width: 236px; margin-left: -118px; padding: 14px; border-radius: 18px; background: var(--ivory); color: var(--maroon); box-shadow: 0 16px 36px rgba(10, 60, 40, .35); display: grid; gap: 8px; text-align: center; animation: pop .25s var(--ease); }
.cal-menu[hidden] { display: none; }
.cal-menu p { font-size: 15px; font-style: italic; margin-bottom: 2px; }
.cal-menu a, .cal-menu button { display: block; padding: 12px; border-radius: 12px; border: 1.5px solid #e2c98f; background: #fff6e0; color: var(--maroon); font: 600 15px var(--f-body); text-decoration: none; cursor: pointer; }
.cal-menu a:hover, .cal-menu button:hover { background: #ffe9b8; }
@media (max-width: 380px) { .route-row .pin-btn__label { font-size: 12px; padding: 12px 14px; } }

.fx--marigolds i { width: calc(13px * var(--s)); height: calc(13px * var(--s)); border-radius: 50%; background: radial-gradient(circle, #fbc02d 0 30%, #f7a826 31% 60%, #f08a1c 61%); box-shadow: 0 0 0 1px rgba(217, 83, 15, .4); animation: petalDrop var(--d) linear infinite; animation-delay: var(--dl); }

.garland { transform-box: fill-box; transform-origin: 50% 0; animation: garlandSwing 2.2s ease-in-out infinite alternate; }
@keyframes garlandSwing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
/* ---------- v9 polish ---------- */
.cal-menu { left: auto; right: -14px; margin-left: 0; }
.route-row .pin-btn__label { white-space: nowrap; letter-spacing: .06em; padding: 13px 16px; }
/* ---------- v10: no 'INVITE' heading; names follow the blessing line ---------- */
#invite .couple-names { margin-top: 34px; }

/* ---------- v11: breathing room between the venue and the dress code ---------- */
.event__dress { margin-top: 14px; }

/* ---------- v12: framed picture in the countdown section ---------- */
.cd-photo { position: relative; width: min(64%, 270px); margin: 34px auto 10px; }
.cd-photo .arch { aspect-ratio: 4 / 5; background: linear-gradient(160deg, #fff1c4, #e8b04a 60%, #c98a2b); padding: 8px; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .45)); }
.cd-photo .arch__in { width: 100%; height: 100%; }
.cd-photo__tag { position: absolute; right: -10%; bottom: 8%; padding: 6px 14px; border-radius: 999px; background: var(--ivory); color: var(--maroon); font: italic 600 15px var(--f-body); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); rotate: -6deg; }
.js .cd-photo.reveal { transform: translateY(28px) rotate(-3deg); }
.js .cd-photo.reveal.in { transform: rotate(-2deg); }
/* ---------- v13: taller arch for pictures that are taller (After Party) ---------- */
.event__art--tall { aspect-ratio: 2 / 3; width: min(80%, 340px); }


/* ---------- v15: film-strip trailer — smooth on phones ---------- */
.reel { contain: paint; min-height: calc(clamp(190px, 46vw, 290px) + 52px); }
.reel__track { will-change: transform; backface-visibility: hidden;
  animation: reelMove var(--reel-d, 60s) linear infinite; animation-play-state: paused; }
.reel.ready .reel__track { animation-play-state: running; }            /* keeps moving even when touched */
.reel.off .reel__track { animation-play-state: paused; }               /* only rests when fully off screen */
.reel__track img { flex: none; background: linear-gradient(110deg, #2a1620 30%, #3d2430 50%, #2a1620 70%) 0 0 / 300% 100%;
  opacity: 0; transition: opacity .5s ease; }
.reel__track img.loaded { opacity: 1; }
@keyframes reelMove { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.reel.off::before, .reel.off::after { animation-play-state: paused; }
@media (max-width: 700px) { .reel::before, .reel::after { animation: none; } }
/* ---------- v15: lighter animations for phones ---------- */
/* nothing animates in a section you can't see */
.offscreen, .offscreen *, .offscreen *::before, .offscreen *::after { animation-play-state: paused !important; }
/* petals & lanterns sway with transform instead of margin (no page re-layout every frame) */
@keyframes petalSway { from { transform: translateX(-22px); } to { transform: translateX(22px); } }
.petal { will-change: transform, translate; }
/* event-picture petals fall with transform instead of 'top' */
.fx--petals i, .fx--marigolds i { top: -8% !important; }
@keyframes petalDrop { from { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(18px, 240px) rotate(200deg); } to { transform: translate(-10px, 500px) rotate(420deg); } }@keyframes sway { from { rotate: -5deg; } to { rotate: 5deg; } }
@media (max-width: 700px) { .lantern { filter: none; } }

/* ---------- v16: room under "Sagnik" (the g's tail), Contact card call buttons ---------- */
#groomKin { margin-top: 20px; }
.call-btns { display: grid; gap: 10px; margin-top: 14px; justify-items: center; }
.call-btn { display: inline-flex; align-items: center; gap: 10px; width: 100%; max-width: 230px; padding: 10px 16px; border-radius: 999px; background: #6b5b12; color: #fff8c9; text-decoration: none; text-align: left; box-shadow: 0 6px 14px rgba(80, 60, 0, .25); transition: transform .2s var(--ease); }
.call-btn:hover { transform: translateY(-2px); }
.call-btn svg { flex: none; width: 22px; height: 22px; }
.call-btn span { display: grid; font: 600 15px/1.25 var(--f-body); }
.call-btn small { font-weight: 400; font-size: 13px; opacity: .9; }
.call-btn { justify-content: center; }

/* ==========================================================================
   v17 — phone polish (checked at 360, 375, 390, 412 and 430 px wide + landscape)
   ========================================================================== */
/* readable minimums for the small labels */
.env__letter small { font-size: 13px; }
.person__tag { font-size: 13.5px; letter-spacing: .16em; }
.story__item em { font-size: 13px; letter-spacing: .16em; }
.clock span { font-size: 13px; letter-spacing: .05em; }
@media (max-width: 380px) { .route-row .pin-btn__label { font-size: 13px; padding: 12px 12px; } }

/* lanterns: bigger invisible tap area so even the far-away ones are easy to tap */
.lantern::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; }

/* RSVP yes/no switch never wraps */
.seg span { white-space: nowrap; }
@media (max-width: 380px) { .seg span { letter-spacing: .06em; padding: 12px 4px; } }

/* call buttons: icon, name and number stack neatly in narrow cards */
.call-btn { flex-wrap: wrap; padding: 10px 12px; border-radius: 20px; text-align: center; row-gap: 2px; }
.call-btn span { justify-items: center; }
.call-btn small { white-space: nowrap; }

/* envelope screen: scrolls instead of being cut off on short / landscape screens */
.gate { display: flex; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.gate__inner { margin: auto; }
@media (max-height: 560px) {
  .ganpati { width: 62px; margin-bottom: 6px; }
  .gate__row { margin-bottom: 14px; }
  .env { width: min(60vw, 300px); }
  .gate__hint { margin-top: 18px; }
}

/* touch screens: no "stuck" hover effects after a tap */
@media (hover: none) {
  .story__item:hover .story__pic { rotate: 0deg; scale: 1; }
  .know__item:hover svg { transform: none; }
  .btn:hover, .call-btn:hover, .cine-btn:hover, .clock div:hover { transform: none; }
}
@media (max-height: 560px) { .env { width: min(60vw, calc(40vh * 1.5)); } .gate__eyebrow { line-height: 1.6; } .gate__note { margin-top: 0; } }

/* ---------- v18: Baraat card (drawn ghodi + falling marigolds) ---------- */
.art--baraat { --art-bg: linear-gradient(170deg, #ffc46b, #f07a3a 55%, #b8325e); }
.event__drawn { position: relative; }
.event__drawn svg.ico { width: 86%; margin-top: 10%; }

/* ---------- v19: RSVP event choices show a clear tick ---------- */
.chips__hint { margin: -2px 0 4px; font-size: .85em; font-style: italic; opacity: .9; }
.chips { gap: 10px; }
.chips span { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 10px; font-size: .92em;
  background: rgba(255, 255, 255, .08); border-style: dashed; }
.chips span::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85);
  background: transparent center / 13px no-repeat; transition: background-color .2s, border-color .2s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.chips input:checked + span { border-style: solid; font-weight: 600; box-shadow: 0 4px 12px rgba(80, 20, 110, .25); }
.chips input:checked + span::before { border-color: #7a3fa0; background-color: #7a3fa0; transform: scale(1.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7.500' fill='none' stroke='%23fffaf0' stroke-width='3.400' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chips input:not(:checked) + span { opacity: .85; }

/* ---------- v20: call buttons - icon and text centred together at every size ---------- */
.call-btn { display: inline-grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 10px; row-gap: 4px; }
.call-btn span { display: grid; justify-items: start; text-align: left; }
@media (max-width: 380px) {
  .call-btn { grid-template-columns: auto; justify-items: center; }
  .call-btn span { justify-items: center; text-align: center; }
}
/* the Contact card's big-icon style must not touch the small icons inside the call buttons */
.know__item .call-btn svg, .know__item:hover .call-btn svg { display: block; width: 22px; height: 22px; margin: 0; transform: none; }

/* ---------- v21: call buttons hug their content (both kept the same width) ---------- */
.call-btns { grid-template-columns: max-content; justify-content: center; }
.call-btn { width: 100%; max-width: none; padding: 10px 20px; }
