/* =====================================================================
   style.css: layout and animation. Colours and fonts are in theme.css.
   Order: base, shared pieces, then one block per section (same order as
   index.html), then motion and accessibility at the end.
   ===================================================================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100vh; height: 100dvh; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, fieldset, figure { margin: 0; padding: 0; border: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.art-defs { position: absolute; }
.noscript { padding: 40px 20px; text-align: center; }
:focus-visible { outline: 3px solid var(--lotus); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .cover :focus-visible, .lb :focus-visible { outline-color: var(--gold-bright); }

/* ---------- shared pieces ---------- */
.sec {
  position: relative; padding: clamp(72px, 9vw, 132px) clamp(20px, 5vw, 64px);
  scroll-margin-top: 0; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.75), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--paper);
}
.sec.blush { background-color: var(--blush);
  background-image: radial-gradient(90% 70% at 50% 0%, rgba(255,255,255,.7), transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .6 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sec.dark, .cover {
  color: var(--on-dark);
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 32%, rgba(240,213,140,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 42% 72%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 84%, rgba(240,213,140,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 24% 56%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(90% 70% at 50% 38%, var(--night-3), var(--night) 55%, var(--night-2));
}
.sec.dark::before, .sec.dark::after {      /* gold double hairline at the edges of dark sections */
  content: ""; position: absolute; left: 0; right: 0; height: 5px;
  border-top: 1px solid var(--gold); border-bottom: 1px solid rgba(199,154,60,.45);
}
.sec.dark::before { top: 0; } .sec.dark::after { bottom: 0; }

.head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 64px); }
.eyebrow {
  font: 500 .8rem/1.4 var(--font-body); letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-ink);
}
.dark .eyebrow { color: var(--gold-bright); }
.title { font: 400 clamp(2.1rem, 3.2vw + 1.2rem, 3.7rem)/1.15 var(--font-display); margin-top: 10px; letter-spacing: .01em; }
.orn { width: 220px; max-width: 70%; margin: 14px auto 0; color: var(--gold); }
.dark .orn { color: var(--gold-bright); }
.amp { font-family: var(--font-script); color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 1rem/1.2 var(--font-body); letter-spacing: .04em; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--night-2); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--navy { background: var(--night); color: var(--on-dark); box-shadow: 0 8px 22px rgba(22,32,74,.25); }
.btn--wa { background: var(--whatsapp); color: #fff; width: 100%; font-size: 1.08rem; box-shadow: 0 10px 24px rgba(18,140,74,.28); }
.linkbtn { background: none; border: 0; padding: 12px 6px; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: inherit; }

/* ---------- 0. cover ---------- */
.cover {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; cursor: pointer;
}
.cover__stars { position: absolute; inset: 0; }
.cover__stars svg { width: 100%; height: 100%; }
.cover__frame { position: absolute; inset: 12px; border: 1px solid var(--gold); border-radius: 18px; pointer-events: none; }
.cover__frame::after { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(240,213,140,.4); border-radius: 13px; }
.cover__inner {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  padding: 32px 24px calc(19vh + 8px); width: 100%; max-height: 100%;
}
.cover__blessing { font: 400 1.05rem/1.4 var(--font-hindi); color: var(--gold-bright); letter-spacing: .06em; margin-bottom: 1.4vh; }
.medallion { width: min(66vw, 40vh, 400px); aspect-ratio: 1; }
.medallion svg { width: 100%; height: 100%; overflow: visible; }
.med-mono { font: 400 27px var(--font-display); letter-spacing: .02em; }
.med-spin { transform-origin: 0 0; animation: spin 60s linear infinite; }
.med-ring { transform-origin: 0 0; transition: transform 1.1s cubic-bezier(.2, 1.3, .4, 1); }
.med-ring.r1 { transform: scale(.74) rotate(-20deg); }
.med-ring.r2 { transform: scale(.72) rotate(14deg); transition-delay: .08s; }
.med-ring.r3 { transform: scale(.7) rotate(-10deg); transition-delay: .16s; }
.med-glow { animation: breathe 3.6s ease-in-out infinite; transform-origin: 0 0; }
.cover.opening .med-ring.r1 { transform: scale(1) rotate(0); }
.cover.opening .med-ring.r2 { transform: scale(1.08) rotate(0); }
.cover.opening .med-ring.r3 { transform: scale(1.16) rotate(0); }
.cover.opening .medallion { animation: medOut 1.5s .65s cubic-bezier(.6, 0, .4, 1) forwards; }
.cover.opening .cover__names, .cover.opening .cover__line, .cover.opening .cover__btn, .cover.opening .cover__blessing { opacity: 0; transition: opacity .5s; }
.cover__names {
  font: 400 calc(clamp(3.2rem, 13.5vw, 6.4rem) * var(--fit, 1))/1.05 var(--font-script); margin-top: 1.6vh; padding: 0 .1em;
  color: var(--gold-bright);
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-bright) 30%, #fff8e2 50%, var(--gold-bright) 70%, var(--gold) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
}
.cover__names .amp { -webkit-text-fill-color: transparent; }
.cover__line { font: 400 .82rem/1.4 var(--font-body); letter-spacing: .34em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: .6vh; }
.cover__btn {
  margin-top: 2.6vh; min-height: 50px; padding: 12px 30px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--gold-bright); background: rgba(240,213,140,.1); color: var(--gold-bright);
  font: 500 .92rem var(--font-body); letter-spacing: .26em; text-transform: uppercase;
  animation: pulse 2.2s ease-in-out infinite;
}
.cover__pond { position: absolute; left: 0; right: 0; bottom: 0; height: 19vh; min-height: 110px; max-height: 210px; z-index: 1; }
.cover__pond svg, .footer__pond svg { width: 100%; height: 100%; }
.cover-ring {
  position: fixed; z-index: 51; border-radius: 50%; pointer-events: none; display: none;
  border: 3px solid var(--gold-bright); box-shadow: 0 0 30px 6px rgba(240,213,140,.55), inset 0 0 30px 6px rgba(240,213,140,.4);
  transform: translate(-50%, -50%);
}
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

/* ---------- music button ---------- */
.music {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--gold-bright); background: var(--night); color: var(--gold-bright); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.35);
  right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
}
.music__bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.music__bars i { width: 3px; height: 6px; background: currentColor; border-radius: 2px; }
.music.on .music__bars i { animation: bars 1s ease-in-out infinite; }
.music.on .music__bars i:nth-child(2) { animation-delay: -.3s; } .music.on .music__bars i:nth-child(3) { animation-delay: -.6s; } .music.on .music__bars i:nth-child(4) { animation-delay: -.15s; }
.music__off { position: absolute; width: 30px; height: 2px; background: currentColor; transform: rotate(-45deg); border-radius: 2px; box-shadow: 0 0 0 1.5px var(--night); }
.music.on .music__off { display: none; }

/* ---------- desktop nav ---------- */
.nav { display: none; }
@media (min-width: 1024px) {
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 58px; padding: 0 clamp(24px, 4vw, 64px);
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(251,246,236,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(199,154,60,.5);
    transform: translateY(-100%); transition: transform .5s;
  }
  .opened .nav { transform: none; }
  .nav__mono { font: 400 1.25rem var(--font-display); text-decoration: none; letter-spacing: .08em; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
  .nav__links { display: flex; gap: 6px; }
  .nav__links a {
    font: 500 .78rem var(--font-body); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
    padding: 0 14px; min-height: 44px; display: flex; align-items: center; color: var(--ink-soft); border-radius: 999px; transition: color .2s, background .2s;
  }
  .nav__links a:hover, .nav__links a.on { color: var(--lotus-deep); background: rgba(224,104,138,.1); }
  .sec { scroll-margin-top: 56px; }
}

/* ---------- 1. hero: couple, parents, invitation ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; text-align: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(84px, 9vw, 120px); }
.hero__frame { position: absolute; inset: 12px; pointer-events: none; }
.hero__frame .c { position: absolute; width: clamp(64px, 9vw, 120px); aspect-ratio: 1; }
.hero__frame .c-tl { top: 0; left: 0; } .hero__frame .c-tr { top: 0; right: 0; transform: scaleX(-1); }
.hero__frame .c-bl { bottom: 0; left: 0; transform: scaleY(-1); } .hero__frame .c-br { bottom: 0; right: 0; transform: scale(-1); }
.hero__blessing { font: 500 1.1rem/1.4 var(--font-hindi); color: var(--gold-ink); letter-spacing: .05em; margin-bottom: clamp(14px, 2vw, 26px); }
.hero__grid { display: grid; gap: clamp(20px, 4vw, 72px); align-items: center; justify-items: center; max-width: 1180px; margin: 0 auto; width: 100%; }
.hero__photo { position: relative; width: min(64vw, 280px); aspect-ratio: 4 / 5; }
.hero__photo .oval { position: absolute; left: 9%; top: 7%; width: 82%; height: 86%; border-radius: 50%; overflow: hidden; background: var(--paper-2); box-shadow: 0 18px 44px rgba(35,42,77,.22); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo .wreath { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__names { font: 400 calc(clamp(4rem, 17vw, 6.6rem) * var(--fit, 1))/.98 var(--font-script); color: var(--ink); margin-top: .28em; }
.hero__names span { display: block; }
.hero__names .amp { font-size: .5em; line-height: 1.1; color: var(--gold); }
.hero__line { font: 400 clamp(1.12rem, 1vw + .9rem, 1.4rem)/1.55 var(--font-display); max-width: 30em; margin: 18px auto 0; }
.parents { display: grid; gap: 14px; margin: 26px auto 0; max-width: 640px; }
.parents div { padding: 14px 16px; border-top: 1px solid rgba(199,154,60,.55); border-bottom: 1px solid rgba(199,154,60,.55); background: rgba(255,255,255,.45); border-radius: 4px; }
.parents small { display: block; font: 500 .74rem var(--font-body); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-ink); }
.parents b { display: block; font: 400 1.14rem/1.35 var(--font-display); margin-top: 4px; }
.hero__closing { margin-top: 22px; color: var(--ink-soft); font-style: italic; }
.hero.nophoto .hero__photo { display: none; }
.scrollcue { position: absolute; left: 50%; bottom: 26px; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; }
.scrollcue span { width: 14px; height: 14px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); animation: cue 1.8s ease-in-out infinite; }
@media (min-width: 720px) {
  .hero__grid { grid-template-columns: minmax(260px, 5fr) 7fr; }
  .hero.nophoto .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { width: min(100%, 440px, 56vh); }
  .parents { grid-template-columns: 1fr 1fr; }
  .parents.one { grid-template-columns: 1fr; max-width: 360px; }
  .hero__names { font-size: calc(clamp(4.6rem, 7.4vw, 9rem) * var(--fit, 1)); }
}
@media (min-width: 1024px) { .hero__frame { top: 70px; } .hero { padding-top: 100px; } }

/* ---------- 2. date reveal ---------- */
.date { text-align: center; }
.date > * { position: relative; z-index: 1; }
.date .date__mandala { position: absolute; z-index: 0; left: 50%; top: 50%; width: min(170vw, 1100px); aspect-ratio: 1; transform: translate(-50%, -50%); color: var(--gold-bright); opacity: .1; pointer-events: none; }
.date__mandala svg { width: 100%; height: 100%; animation: spin 180s linear infinite reverse; }
.scratch { display: flex; justify-content: center; gap: clamp(16px, 3.4vw, 40px); }
.disc { position: relative; width: min(84vw, 440px); aspect-ratio: 2.1; border-radius: 18px; flex: none; }
.disc__face {
  position: absolute; inset: 0; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #fff, var(--paper) 60%, var(--paper-2)); color: var(--ink);
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px rgba(240,213,140,.22), 0 14px 34px rgba(0,0,0,.4);
}
.disc__face small { font: 500 clamp(.72rem, 1.6vw, .9rem) var(--font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); }
.disc__face b { font: 400 clamp(2.1rem, 9vw, 3.4rem)/1.1 var(--font-display); color: var(--lotus-deep); white-space: nowrap; }
.disc__face em { font: 400 clamp(1.1rem, 4vw, 1.5rem)/1.1 var(--font-display); font-style: normal; letter-spacing: .3em; color: var(--gold-ink); }
.disc canvas { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); border-radius: 18px; touch-action: none; cursor: grab; transition: opacity .6s, transform .6s; }
.disc.done canvas { opacity: 0; transform: scale(1.06); pointer-events: none; }
.disc.done .disc__face { animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.scratch__hint { margin-top: 18px; color: var(--on-dark-soft); font-size: .98rem; }
.scratch__hint span { display: block; color: var(--gold-bright); letter-spacing: .08em; }
.date__after { margin-top: 8px; }
.js .date:not(.revealed) .date__after { display: none; }
.date.revealed .date__after { animation: rise .9s .25s both; }
.date__full span { display: inline-block; white-space: nowrap; }
.date.revealed .scratch__hint { display: none; }
.date__full { font: 400 clamp(1.25rem, 1.4vw + 1rem, 1.9rem)/1.4 var(--font-display); color: var(--gold-bright); margin-top: 26px; }
.countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 22px); margin: 24px auto 0; }
.countdown div { width: clamp(72px, 20vw, 124px); padding: 14px 4px 12px; border: 1px solid rgba(240,213,140,.55); border-radius: 14px; background: rgba(13,20,51,.45); }
.countdown b { display: block; font: 400 clamp(1.9rem, 6vw, 3.2rem)/1 var(--font-display); color: var(--on-dark); font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: 6px; font: 500 .68rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-bright); }
.countdown.done { font: 400 1.6rem var(--font-display); color: var(--gold-bright); }
.cal { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.cal .btn--line { color: var(--gold-bright); }
.diyas { display: flex; justify-content: center; gap: clamp(18px, 6vw, 70px); margin-top: clamp(36px, 5vw, 60px); }
.diya { width: clamp(40px, 9vw, 62px); }
.diya__flame { transform-origin: 40px 42px; animation: flicker 1.3s ease-in-out infinite; }
.diya:nth-child(2n) .diya__flame { animation-duration: 1.7s; } .diya:nth-child(3n) .diya__flame { animation-duration: 1.1s; }
.diya__glow { animation: breathe 2.4s ease-in-out infinite; transform-origin: 40px 30px; }

/* ---------- 3. events ---------- */
.events__grid { --cols: 1; --gap: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); max-width: 1440px; margin: 0 auto; }
.ev {
  flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); max-width: 380px; min-width: 0; position: relative; text-align: center; padding: 30px 22px 26px;
  background: linear-gradient(180deg, #fff, var(--paper)); border-radius: 18px;
  border: 1px solid rgba(199,154,60,.6); box-shadow: 0 14px 34px rgba(35,42,77,.09);
  transition: transform .3s, box-shadow .3s;
}
.ev::before { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(199,154,60,.45); border-radius: 13px; pointer-events: none; }
.ev:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(35,42,77,.16); }
.ev__ico { width: 78px; height: 78px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); box-shadow: inset 0 0 0 1px rgba(199,154,60,.6); }
.ico { width: 52px; height: 52px; stroke: var(--ink); }
.ico .f1 { fill: var(--lotus); } .ico .f2 { fill: var(--lotus-pale); } .ico .f3 { fill: var(--gold); } .ico .f1s { stroke: var(--lotus-deep); }
.ico .raw path { stroke-width: 2; }
.ev__name { font: 400 1.75rem/1.2 var(--font-display); }
.ev__date { margin-top: 8px; font-weight: 500; }
.ev__time { color: var(--lotus-deep); font: 400 1.3rem var(--font-display); }
.ev__venue { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(199,154,60,.45); color: var(--ink-soft); font-size: .98rem; }
.ev__dress { display: inline-block; margin-top: 12px; padding: 5px 14px; border-radius: 999px; background: var(--blush); font-size: .88rem; color: var(--ink); }
.ev__dress b { font-weight: 600; letter-spacing: .06em; }
.ev.hl { background: radial-gradient(120% 90% at 50% 0%, var(--night-3), var(--night) 60%, var(--night-2)); color: var(--on-dark); border-color: var(--gold-bright); box-shadow: 0 18px 44px rgba(22,32,74,.35); }
.ev.hl .ev__ico { background: rgba(240,213,140,.14); box-shadow: inset 0 0 0 1px var(--gold-bright); }
.ev.hl .ico { stroke: var(--gold-bright); }
.ev.hl .ev__time { color: var(--gold-bright); } .ev.hl .ev__venue { color: var(--on-dark-soft); border-color: rgba(240,213,140,.4); }
.ev.hl .ev__dress { background: rgba(240,213,140,.16); color: var(--on-dark); }
.ev.hl::before { border-color: rgba(240,213,140,.4); }

/* ---------- 4. story ---------- */
.timeline { position: relative; max-width: 1040px; margin: 0 auto; --p: 1; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; margin-left: -1px; }
.timeline::before { background: rgba(199,154,60,.3); }
.timeline::after { background: linear-gradient(var(--gold), var(--lotus-deep)); transform-origin: top; transform: scaleY(var(--p)); }
.tl { position: relative; padding: 0 0 34px 60px; }
.tl:last-child { padding-bottom: 0; }
.tl__node { position: absolute; left: 0; top: 0; width: 42px; height: 42px; z-index: 1; filter: drop-shadow(0 3px 6px rgba(184,56,95,.3)); }
.tl__when { font: 400 1.9rem/1 var(--font-display); color: var(--lotus-deep); padding-top: 6px; }
.tl__card { margin-top: 10px; padding: 18px 20px; background: rgba(255,255,255,.72); border: 1px solid rgba(199,154,60,.5); border-radius: 16px; box-shadow: 0 10px 26px rgba(35,42,77,.07); }
.tl__card h3 { font: 400 1.4rem/1.25 var(--font-display); }
.tl__card p { margin-top: 6px; color: var(--ink-soft); }
@media (min-width: 900px) {
  .timeline::before, .timeline::after { left: 50%; }
  .tl { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; padding: 0 0 46px; }
  .tl__node { left: 50%; top: 50%; margin: -44px 0 0 -26px; width: 52px; height: 52px; }
  .tl:last-child .tl__node { margin-top: -21px; }
  .tl__when { grid-column: 3; grid-row: 1; font-size: clamp(3.4rem, 5vw, 5rem); padding: 0; color: var(--lotus-deep); opacity: .85; text-align: left; }
  .tl__card { grid-column: 1; grid-row: 1; margin: 0; text-align: right; padding: 24px 28px; }
  .tl:nth-child(even) .tl__when { grid-column: 1; text-align: right; }
  .tl:nth-child(even) .tl__card { grid-column: 3; text-align: left; }
}

/* ---------- 5. gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(8px, 1.2vw, 16px); max-width: 1240px; margin: 0 auto; }
.ph { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--night-2); box-shadow: 0 0 0 1px rgba(240,213,140,.55), 0 12px 30px rgba(0,0,0,.35); min-width: 0; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.ph:hover img, .ph:focus-visible img { transform: scale(1.06); }
.ph::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; pointer-events: none; }
.ph.feature { grid-column: span 2; aspect-ratio: 5 / 4; }
@media (min-width: 600px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } .ph.feature.big { grid-row: span 2; aspect-ratio: auto; } }
@media (min-width: 1024px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); } }
.gallery__hint { text-align: center; margin-top: 22px; color: var(--on-dark-soft); font-size: .92rem; letter-spacing: .12em; text-transform: uppercase; }

.lb { position: fixed; inset: 0; z-index: 80; background: rgba(9,13,34,.96); display: flex; align-items: center; justify-content: center; }
.lb__fig { max-width: min(92vw, 1400px); text-align: center; }
.lb__fig img { max-width: 100%; max-height: 82vh; max-height: 82dvh; margin: 0 auto; border-radius: 8px; box-shadow: 0 0 0 1px rgba(240,213,140,.6), 0 30px 80px rgba(0,0,0,.6); animation: lbIn .35s ease; }
.lb__fig figcaption { color: var(--on-dark-soft); margin-top: 12px; letter-spacing: .2em; font-size: .9rem; }
.lb__btn { position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--gold-bright); background: rgba(13,20,51,.75); color: var(--gold-bright); font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 12px; top: 50%; margin-top: -26px; } .lb__next { right: 12px; top: 50%; margin-top: -26px; }
@media (max-width: 700px) { .lb__prev, .lb__next { top: auto; bottom: 20px; margin: 0; } .lb__prev { left: calc(50% - 100px); } .lb__next { right: calc(50% - 100px); } .lb__fig img { max-height: 70vh; max-height: 70dvh; } .lb__fig { padding-bottom: 64px; } }

/* ---------- 6. how to reach ---------- */
.reach__grid { display: grid; gap: clamp(22px, 4vw, 56px); max-width: 1180px; margin: 0 auto; align-items: center; }
.venue { text-align: center; padding: clamp(24px, 4vw, 44px); background: linear-gradient(180deg, #fff, var(--paper)); border: 1px solid rgba(199,154,60,.6); border-radius: 20px; box-shadow: 0 14px 36px rgba(35,42,77,.1); }
.venue__name { font: 400 clamp(1.8rem, 2vw + 1rem, 2.6rem)/1.2 var(--font-display); }
.venue__addr { margin: 8px 0 20px; color: var(--ink-soft); font-size: 1.08rem; }
.tips { margin-top: 26px; text-align: left; display: grid; gap: 14px; }
.tips li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.tips i { width: 44px; height: 44px; border-radius: 50%; background: var(--blush); color: var(--lotus-deep); display: grid; place-items: center; }
.tips svg { width: 22px; height: 22px; }
.tips b { display: block; font: 400 1.1rem var(--font-display); }
.tips span { color: var(--ink-soft); font-size: .98rem; line-height: 1.45; display: block; }
.map { position: relative; display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 44px rgba(35,42,77,.16); text-decoration: none; }
.map svg { width: 100%; height: auto; }
.map__label { position: absolute; left: 57%; top: 56%; transform: translateX(-50%); max-width: 62%; padding: 6px 14px; border-radius: 10px; background: var(--night); color: var(--on-dark); font: 400 clamp(.86rem, 1.2vw + .5rem, 1.08rem)/1.25 var(--font-display); text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,.25); border: 1px solid var(--gold-bright); }
.map__note { position: absolute; right: 16px; bottom: 12px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.map__n { font: 500 13px var(--font-body); fill: var(--ink); }
.map__pulse { animation: ping 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.js .map .map__route { stroke-dashoffset: 100; transition: stroke-dashoffset 2.4s .5s ease-in-out; }
.js .map.in .map__route { stroke-dashoffset: 0; }
@media (min-width: 900px) { .reach__grid { grid-template-columns: 5fr 6fr; } }

/* ---------- 7. RSVP ---------- */
.rsvp__by { margin-top: 14px; font: 400 1.15rem var(--font-display); color: var(--lotus-deep); }
.rsvp__grid { display: grid; gap: clamp(20px, 4vw, 56px); max-width: 1080px; margin: 0 auto; align-items: center; }
.rsvp__art { width: min(72%, 320px); margin: 0 auto; }
.rsvp__how { margin-top: 16px; text-align: center; max-width: 30em; margin-left: auto; margin-right: auto; }
.form { padding: clamp(22px, 4vw, 40px); background: #fff; border: 1px solid rgba(199,154,60,.6); border-radius: 20px; box-shadow: 0 16px 40px rgba(35,42,77,.1); display: grid; gap: 18px; min-width: 0; }
.field { min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input[type=text], .field input[type=tel], .field input[type=number], .field textarea {
  width: 100%; min-height: 50px; padding: 11px 14px; border: 1.5px solid #cfc6b4; border-radius: 12px; background: var(--paper); font-size: 1.05rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lotus-deep); box-shadow: 0 0 0 3px rgba(224,104,138,.25); }
.field.bad input, .field.bad textarea { border-color: var(--error); }
.err { color: var(--error); font-size: .95rem; font-weight: 500; margin-top: 5px; }
.err:empty { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; margin: 0 !important; font-weight: 400 !important; }
.pill input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pill span { display: flex; align-items: center; min-height: 46px; padding: 8px 18px; border: 1.5px solid #cfc6b4; border-radius: 999px; background: var(--paper); transition: all .2s; }
.pill input:checked + span { background: var(--night); color: var(--on-dark); border-color: var(--night); }
.pill input:focus-visible + span { outline: 3px solid var(--lotus); outline-offset: 2px; }
.stepper { display: inline-grid; grid-template-columns: 50px 84px 50px; }
.stepper button { min-height: 50px; border: 1.5px solid #cfc6b4; background: var(--blush); font-size: 1.4rem; cursor: pointer; border-radius: 12px 0 0 12px; }
.stepper button:last-child { border-radius: 0 12px 12px 0; }
.stepper input { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form__note { font-size: .9rem; color: var(--ink-soft); text-align: center; }
.form__done { padding: 16px; border-radius: 14px; background: #e9f6ee; border: 1px solid #9fd2b3; text-align: center; display: grid; gap: 12px; color: #14432a; }
@media (min-width: 900px) { .rsvp__grid { grid-template-columns: 4fr 6fr; } }

/* ---------- 8. footer ---------- */
.footer { text-align: center; padding-bottom: clamp(190px, 24vw, 300px); padding-top: clamp(84px, 10vw, 150px); }
.footer::after { display: none; }
.footer__mandala { position: absolute; left: 50%; top: 42%; width: min(150vw, 980px); aspect-ratio: 1; margin-left: calc(min(150vw, 980px) / -2); transform: translateY(-50%); color: var(--gold-bright); opacity: .16; pointer-events: none; }
.footer__mandala svg { width: 100%; height: 100%; animation: spin 140s linear infinite; }
.footer__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.footer__hi { font: 500 clamp(1.5rem, 2vw + 1rem, 2.3rem)/1.5 var(--font-hindi); color: var(--gold-bright); }
.footer__en { margin-top: 8px; font: 400 clamp(1.05rem, 1vw + .8rem, 1.3rem) var(--font-display); color: var(--on-dark-soft); letter-spacing: .04em; }
.footer__sign { font: 400 calc(clamp(3.6rem, 10vw, 6.4rem) * var(--fit, 1))/1.15 var(--font-script); color: var(--on-dark); margin-top: 22px; }
.footer__sign .amp { color: var(--gold-bright); }
.footer__tag { display: inline-block; margin-top: 12px; padding: 8px 22px; border: 1px solid var(--gold-bright); border-radius: 999px; color: var(--gold-bright); letter-spacing: .14em; font-weight: 500; }
.footer__fam { margin-top: 18px; color: var(--on-dark-soft); font: 400 1.08rem var(--font-display); letter-spacing: .03em; }
.footer__pond { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(130px, 17vw, 230px); z-index: 1; }

/* ---------- very wide screens: everything a little larger so the page does not look lost ---------- */
@media (min-width: 1600px) {
  html { font-size: 118%; }
  .hero__grid { max-width: 1420px; } .timeline { max-width: 1240px; } .gallery__grid { max-width: 1480px; }
  .reach__grid { max-width: 1400px; } .rsvp__grid { max-width: 1280px; } .head { max-width: 860px; }
  .ev { max-width: 440px; } .events__grid { max-width: 1640px; }
}

/* ---------- motion ---------- */
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes shine { to { background-position: -220% 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240,213,140,.5); } 50% { box-shadow: 0 0 0 14px rgba(240,213,140,0); } }
@keyframes medOut { 40% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(2.6) rotate(40deg); opacity: 0; } }
@keyframes cue { 0%, 100% { transform: translateY(-4px) rotate(45deg); opacity: .5; } 50% { transform: translateY(4px) rotate(45deg); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pop { 0% { transform: scale(.86); } 100% { transform: scale(1); } }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 30% { transform: scale(1.08, .94) rotate(2deg); } 60% { transform: scale(.95, 1.07) rotate(-1deg); } }
@keyframes bars { 0%, 100% { height: 5px; } 50% { height: 19px; } }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
@keyframes tw { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.tw { animation: tw 3s ease-in-out infinite; }

/* entrance on scroll. Only active when JS is running (html.js); without JS everything is simply visible. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.left { transform: translateX(-36px); } .js .reveal.right { transform: translateX(36px); } .js .reveal.zoom { transform: scale(.9); }
.js .reveal.in { opacity: 1; transform: none; }

/* people who ask their device for less motion get a calm page: no hiding, no loops */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal.left, .js .reveal.right, .js .reveal.zoom { opacity: 1; transform: none; }
  .js .map .map__route { stroke-dashoffset: 0; }
  .med-ring.r1, .med-ring.r2, .med-ring.r3 { transform: none; }
  #fx { display: none; }
}

.rsvp__art svg { overflow: visible; }
