:root {
  --night: #1e040b;
  --wine: #3a0815;
  --maroon: #6b1430;
  --rose: #b0184f;
  --rose-2: #d23a72;
  --gold: #c9a24d;
  --gold-hi: #f3d998;
  --ivory: #fbf3e4;
  --blush: #f7e3e1;
  --ink: #4a1424;
  --muted: #8a5a63;

  /* Latin faces first; Hindi falls through to the Devanagari face that follows */
  --script: "Parisienne", "Amita", cursive;
  --display: "Playfair Display", "Noto Serif Devanagari", Georgia, serif;
  --serif: "Cormorant Garamond", "Noto Serif Devanagari", Georgia, serif;
  --caps: "Marcellus", "Noto Serif Devanagari", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100vh; }

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

.caps { font-family: var(--caps); letter-spacing: 0.32em; text-transform: uppercase; }
.mantra { font-family: "Noto Serif Devanagari", serif; font-weight: 600; letter-spacing: 0.12em; color: var(--gold-hi); }
.mantra.dark { color: var(--rose); }
.orn { display: block; width: 210px; height: 18px; margin: 1.1rem auto; color: var(--gold); }

/* ============ PETALS · PROGRESS · FLOATING CONTROLS ============ */
#petals { position: fixed; inset: 0; z-index: 40; pointer-events: none; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--rose), var(--gold-hi));
}

.fabs {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 70;
  display: flex;
  gap: 0.55rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s 0.6s;
}
body.entered .fabs { opacity: 1; pointer-events: auto; }

.fab {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 162, 77, 0.55);
  border-radius: 50%;
  background: rgba(42, 6, 16, 0.86);
  backdrop-filter: blur(6px);
  color: var(--gold-hi);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.fab:hover { transform: translateY(-2px); }
.fab svg { width: 20px; height: 20px; }
.fab.lang { font-family: var(--caps); font-size: 0.8rem; letter-spacing: 0.05em; }
#petalBtn { position: relative; }
#petalBtn::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rose-2);
  box-shadow: 0 0 0 2px rgba(42, 6, 16, 0.9);
}
#petalBtn.off { color: rgba(243, 217, 152, 0.45); }
#petalBtn.off::after { display: none; }

/* speaker icon: waves while the sound is on, a cross when it is off */
.spk { flex: none; width: 20px; height: 20px; }
.spk .waves, .spk .cross { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.spk .cross,
body.sound-off .spk .waves,
body.sound-off .snd-on,
body:not(.sound-off) .snd-off { display: none; }
body.sound-off .spk .cross { display: inline; }
body.sound-off #musicBtn { color: rgba(243, 217, 152, 0.45); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 80;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: var(--wine);
  color: var(--gold-hi);
  font-size: 1rem;
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform 0.4s, opacity 0.4s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 5.5rem 1.2rem 6rem;
  overflow: hidden;
  text-align: center;
  color: #fbf1dc;
  background: radial-gradient(ellipse at 50% 35%, #5e1229 0%, #3a0815 48%, #1e040b 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(20, 2, 8, 0.75) 100%);
  pointer-events: none;
}

.hero-mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, 120vw);
  height: min(760px, 120vw);
  transform: translate(-50%, -50%);
  color: rgba(201, 162, 77, 0.13);
  animation: spin 160s linear infinite;
  pointer-events: none;
}

.hero-frame {
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(201, 162, 77, 0.35);
  border-radius: 6px;
  pointer-events: none;
}
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 162, 77, 0.18);
  border-radius: 4px;
}

.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero .mantra { font-size: 1rem; }
.hero-kicker { margin-top: 1rem; font-size: 0.8rem; color: rgba(251, 241, 220, 0.75); }

.hero-names {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 0.35em;
  margin-top: 0.4rem;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.4rem, 8.4vw, 6.6rem);
  line-height: 1.15;
}
@media (min-width: 761px) { .hero-names { flex-wrap: nowrap; } }
/* the gradient is only painted inside the box, so leave room for the tall script capitals */
.hero-names span {
  padding: 0.22em 0.2em 0.12em;
  margin: -0.1em 0 -0.06em;
  background: linear-gradient(180deg, #fff3cf 10%, #f0cf7f 55%, #c9973c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
}
.hero-names small {
  align-self: center;
  font-family: var(--caps);
  font-size: 0.9rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero .orn { margin: 0.6rem auto 0.8rem; }
.hero-date { font-family: var(--caps); font-size: clamp(1.15rem, 2.6vw, 1.5rem); }
.hero-place {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 1.05rem;
  color: rgba(251, 241, 220, 0.8);
}
.hero-place svg { width: 17px; height: 17px; color: var(--gold); }

/* the three ceremony days under the date */
.days { display: flex; justify-content: center; align-items: stretch; gap: 0.7rem; margin-top: 1.8rem; }
.days a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
  padding: 0.75rem 0.9rem 0.7rem;
  border: 1px solid rgba(201, 162, 77, 0.55);
  border-radius: 60px 60px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 243, 207, 0.08), rgba(20, 2, 8, 0.45));
  color: #fbf1dc;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.days a:hover { transform: translateY(-4px); border-color: var(--gold-hi); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35); }
.days b { font-family: var(--display); font-weight: 500; font-size: 1.9rem; line-height: 1; color: #fff3d6; }
.days small { margin-top: 0.15rem; font-family: var(--caps); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(243, 217, 152, 0.75); }
.days span { margin-top: 0.45rem; padding-top: 0.4rem; border-top: 1px solid rgba(201, 162, 77, 0.35); font-family: var(--serif); font-size: 1rem; color: var(--gold-hi); white-space: nowrap; }
/* the wedding day itself stands out */
.days a.main { min-width: 112px; transform: translateY(-8px); border-color: var(--gold-hi); background: linear-gradient(180deg, rgba(243, 217, 152, 0.22), rgba(122, 18, 56, 0.55)); box-shadow: 0 0 0 4px rgba(243, 217, 152, 0.1), 0 14px 30px rgba(0, 0, 0, 0.35); }
.days a.main:hover { transform: translateY(-12px); }
.days a.main b { font-size: 2.3rem; background: linear-gradient(180deg, #fff3cf, #e9c46a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.days a.main::after { content: ""; position: absolute; inset: -6px; border-radius: 66px 66px 18px 18px; border: 1px solid rgba(243, 217, 152, 0.5); animation: ripple 2.4s ease-out infinite; pointer-events: none; }
html[lang="hi"] .days small { font-family: var(--serif); font-size: 0.8rem; letter-spacing: 0; text-transform: none; }
html[lang="hi"] .days span { font-size: 1.05rem; }
@media (max-width: 760px) {
  .days { gap: 0.45rem; margin-top: 1.5rem; }
  .days a { min-width: 0; flex: 1 1 0; max-width: 104px; padding: 0.65rem 0.4rem 0.6rem; }
  .days a.main { max-width: 116px; }
  .days b { font-size: 1.6rem; }
  .days a.main b { font-size: 1.95rem; }
  .days span { font-size: 0.92rem; }
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  /* centred without transform, which the entrance animation overrides */
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(243, 217, 152, 0.75);
  text-decoration: none;
  font-size: 0.68rem;
}
.scroll-cue i {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: bob 1.8s ease-in-out infinite;
}

/* hero entrance after the curtain opens */
.rise { opacity: 0; transform: translateY(26px); }
body.entered .rise { animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
body.entered .r1 { animation-delay: 0.2s; }
body.entered .r2 { animation-delay: 0.45s; }
body.entered .r3 { animation-delay: 0.7s; }
body.entered .r4 { animation-delay: 1.05s; }
body.entered .r5 { animation-delay: 1.3s; }
body.entered .r6 { animation-delay: 1.6s; }

/* ============ SECTIONS ============ */
.section { position: relative; padding: 6.5rem 1.25rem; text-align: center; overflow: hidden; }
.section.ivory { background: var(--ivory); }
.section.blush { background: var(--blush); }

.kicker { font-size: 0.78rem; color: var(--gold); }
.section.ivory .kicker,
.section.blush .kicker { color: #a8822f; }

.title {
  margin-top: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  line-height: 1.15;
  color: var(--wine);
}
.title em {
  font-style: normal;
  background: linear-gradient(180deg, #e2bd6a, #b08532);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title.light { color: #fff6e6; }
.title.light em { background-image: linear-gradient(180deg, #ffe6a6, #d2a24a); }

.intro-line { max-width: 620px; margin: 0 auto; font-size: 1.2rem; color: var(--muted); font-style: italic; }
.intro-line.light { color: rgba(251, 241, 220, 0.78); }

/* invitation */
.narrow { position: relative; max-width: 680px; margin: 0 auto; }
.shlok { margin-top: 0.8rem; font-family: "Noto Serif Devanagari", serif; font-size: 1rem; line-height: 1.9; color: var(--maroon); }
.lead { margin-top: 0.9rem; font-size: 1.32rem; line-height: 1.6; color: #5d2a36; }
.lead.small { margin-top: 0.2rem; font-size: 1.12rem; font-style: italic; color: var(--muted); }
.hosts { margin-top: 0.5rem; font-family: var(--caps); font-size: 1.15rem; letter-spacing: 0.14em; color: var(--rose); }
.script-name {
  margin-top: 0.4rem;
  font-family: var(--script);
  font-size: clamp(3rem, 8vw, 4.2rem);
  line-height: 1.15;
  color: var(--maroon);
}

.corner-mandala { position: absolute; width: 340px; height: 340px; color: rgba(201, 162, 77, 0.16); pointer-events: none; }
.corner-mandala.tl { top: -150px; left: -150px; }
.corner-mandala.br { bottom: -150px; right: -150px; }

/* couple */
.couple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 980px;
  margin: 3rem auto 0;
}
.person { display: flex; flex-direction: column; align-items: center; }
.portrait { position: relative; }
.portrait img {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff8ec;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 10px rgba(201, 162, 77, 0.15), 0 22px 45px rgba(74, 20, 36, 0.28);
}
.tag {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  padding: 0.35rem 1.1rem;
  border: 1px solid rgba(201, 162, 77, 0.6);
  border-radius: 999px;
  background: #fff8ec;
  color: #a8822f;
  font-size: 0.66rem;
  white-space: nowrap;
}
.person figcaption { margin-top: 1.8rem; }
.person .script-name { font-size: clamp(3rem, 7vw, 3.9rem); }
.full { margin-top: 0.2rem; font-size: 0.82rem; color: var(--muted); }
.parents { max-width: 300px; margin: 0.7rem auto 0; font-size: 1.05rem; font-style: italic; color: var(--muted); }
.knot {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff8ec;
  box-shadow: 0 10px 24px rgba(176, 24, 79, 0.2);
  color: var(--rose);
  animation: beat 1.8s ease-in-out infinite;
}
.knot svg { width: 28px; height: 28px; }

/* ceremonies */
.events { display: grid; gap: 2.2rem; max-width: 980px; margin: 3rem auto 0; }
.event {
  display: grid;
  grid-template-columns: 42% 1fr;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(74, 20, 36, 0.12);
  text-align: left;
  transition: transform 0.4s, box-shadow 0.4s;
}
.event:hover { transform: translateY(-4px); box-shadow: 0 26px 50px rgba(74, 20, 36, 0.18); }
.event.rev { grid-template-columns: 1fr 42%; }
.event.rev .event-photo { order: 2; }
.event-photo { position: relative; min-height: 280px; }
.event-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.num {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(243, 217, 152, 0.7);
  border-radius: 50%;
  background: rgba(42, 6, 16, 0.85);
  color: var(--gold-hi);
  font-family: var(--display);
  font-size: 0.95rem;
}
.event-body { position: relative; padding: 2.2rem 2.2rem 2rem; }
.event-body::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 26px;
  height: 26px;
  border-top: 1.5px solid rgba(201, 162, 77, 0.6);
  border-right: 1.5px solid rgba(201, 162, 77, 0.6);
}
.event h3,
.venue-info h3 { font-family: var(--display); font-weight: 600; font-size: 1.85rem; color: var(--wine); }
.event-sub { margin-top: 0.25rem; font-size: 1.12rem; font-style: italic; color: var(--rose); }
.event ul { list-style: none; margin-top: 1.2rem; display: grid; gap: 0.6rem; }
.event li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 1.08rem; color: #5d2a36; }
.event li svg { flex: none; width: 18px; height: 18px; margin-top: 0.2rem; color: var(--gold); }
.cal-link { display: inline-block; margin-top: 1.3rem; font-size: 0.7rem; color: var(--rose); text-decoration: none; border-bottom: 1px solid rgba(176, 24, 79, 0.35); }

/* venue */
.venue {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: stretch;
  max-width: 1000px;
  margin: 3rem auto 0;
  text-align: left;
}
.venue-info { padding: 2.2rem; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px rgba(74, 20, 36, 0.1); }
.venue-addr { display: flex; align-items: flex-start; gap: 0.45rem; margin-top: 0.9rem; color: #5d2a36; line-height: 1.5; }
.venue-addr svg { flex: none; width: 18px; height: 18px; margin-top: 0.25rem; color: var(--gold); }
.venue-when { margin-top: 1.3rem; padding: 1rem 1.2rem; border: 1px solid rgba(201, 162, 77, 0.35); border-radius: 12px; background: #fdf6ea; }
.venue-when .caps { font-size: 0.68rem; color: #a8822f; }
.when-date { margin-top: 0.3rem; font-family: var(--display); font-size: 1.15rem; color: var(--wine); }
.when-time { font-size: 1rem; color: var(--muted); }
.venue-btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.map { overflow: hidden; min-height: 360px; border: 1px solid rgba(201, 162, 77, 0.5); border-radius: 18px; box-shadow: 0 18px 40px rgba(74, 20, 36, 0.15); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a1238, #c21d5e);
  color: #fff6e6;
  font-family: var(--caps);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(176, 24, 79, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(176, 24, 79, 0.35); }
.btn svg { width: 17px; height: 17px; }
.btn.ghost { background: #fff8ec; border-color: rgba(201, 162, 77, 0.6); color: var(--wine); box-shadow: none; }
.btn.ghost.light { background: transparent; color: var(--gold-hi); border-color: rgba(243, 217, 152, 0.55); }

/* footer */
.footer {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.25rem 5rem;
  text-align: center;
  color: #fbf1dc;
  background: radial-gradient(ellipse at 50% 30%, #4d0d20, #2a0610 55%, #16030a);
}
.footer-mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  color: rgba(201, 162, 77, 0.08);
  pointer-events: none;
}
.footer > :not(.footer-mandala) { position: relative; }
.awaiting { font-family: var(--script); font-size: clamp(2.8rem, 7vw, 4rem); color: var(--gold-hi); }
.footer-names { font-family: var(--display); font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: #fff6e6; }
.footer .mantra { margin-top: 0.6rem; font-size: 1rem; }
.footer-kicker { margin-top: 2.6rem; font-size: 0.72rem; color: var(--gold); }
.footer-hosts { margin-top: 0.4rem; font-size: 1.2rem; }
.footer-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; margin: 1.8rem 0 2.4rem; }
.footer-contacts .who { font-family: var(--display); font-size: 1.15rem; }
.footer-contacts .role { font-size: 0.95rem; font-style: italic; color: rgba(251, 241, 220, 0.65); }
.footer-contacts a { display: inline-block; margin-top: 0.3rem; color: var(--gold-hi); text-decoration: none; letter-spacing: 0.06em; }

/* website credit: quiet, in the wedding's own colours */
.credit { max-width: 560px; margin: 3rem auto 0; padding-top: 1.3rem; border-top: 1px solid rgba(201, 162, 77, 0.2); font-size: 0.92rem; line-height: 1.8; color: rgba(251, 241, 220, 0.5); }
.credit a { text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.credit-brand { font-family: var(--caps); letter-spacing: 0.12em; color: rgba(243, 217, 152, 0.85); }
.credit-sep { margin: 0 0.35rem; }
.credit-ask { color: rgba(251, 241, 220, 0.7); border-bottom: 1px dotted rgba(243, 217, 152, 0.45); }
.credit a:hover { color: var(--gold-hi); border-color: var(--gold-hi); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.from-left { transform: translateX(-46px); }
.reveal.from-right { transform: translateX(46px); }
.reveal.visible { opacity: 1; transform: none; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1.18) translateY(-2%); } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: rotate(45deg) translate(0, 0); } 50% { transform: rotate(45deg) translate(4px, 4px); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .reveal { opacity: 1; transform: none; }
}

/* ============ PHONES ============ */
@media (max-width: 760px) {
  .section { padding: 5rem 1.1rem; }
  .hero { padding: 5rem 1rem 6rem; }
  .hero-frame { inset: 10px; }
  .hero-names { flex-direction: column; margin-top: 0.7rem; font-size: clamp(3.4rem, 17vw, 5rem); line-height: 1.05; }
  .hero-names small { margin: 0; }
  .fabs { top: 0.7rem; right: 0.7rem; gap: 0.4rem; }
  .fab { width: 40px; height: 40px; }

  .couple { grid-template-columns: 1fr; gap: 1.6rem; }
  .portrait img { width: 200px; height: 200px; }

  .event,
  .event.rev { grid-template-columns: 1fr; }
  .event.rev .event-photo { order: 0; }
  .event-photo { min-height: 220px; }
  .event-body { padding: 1.6rem 1.4rem 1.6rem; }

  .venue { grid-template-columns: 1fr; }
  .venue-info { padding: 1.6rem 1.4rem; }
  .map, .map iframe { min-height: 300px; }
}

/* ============ हिंदी (default language) ============ */
/* Devanagari has no capitals or italics, and letter-spacing breaks its top line */
html[lang="hi"] .caps { letter-spacing: 0; text-transform: none; }
html[lang="hi"] body { font-variant-numeric: lining-nums; }
html[lang="hi"] .intro-line,
html[lang="hi"] .lead.small,
html[lang="hi"] .parents,
html[lang="hi"] .event-sub,
html[lang="hi"] .footer-contacts .role { font-style: normal; }

html[lang="hi"] .hero-kicker { font-size: 1.15rem; }
html[lang="hi"] .hero-names { font-size: clamp(3rem, 8vw, 5.6rem); line-height: 1.45; column-gap: 0.45em; }
html[lang="hi"] .hero-names span { font-weight: 700; padding: 0.1em 0.15em; margin: -0.1em 0; }
html[lang="hi"] .hero-names small { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0; }
html[lang="hi"] .hero-date { font-family: var(--serif); font-size: clamp(1.25rem, 2.8vw, 1.6rem); }
html[lang="hi"]html[lang="hi"] .scroll-cue { font-size: 0.95rem; }
html[lang="hi"] .kicker { font-size: 1.1rem; }
html[lang="hi"] .title { line-height: 1.5; }
html[lang="hi"] .lead { font-size: 1.28rem; line-height: 1.75; }
html[lang="hi"] .hosts { font-family: var(--serif); font-weight: 600; letter-spacing: 0; font-size: 1.3rem; }
html[lang="hi"] .script-name { font-weight: 700; font-size: clamp(2.3rem, 6vw, 3rem); line-height: 1.5; }
html[lang="hi"] .person .script-name { font-size: clamp(2.4rem, 6vw, 3rem); }
html[lang="hi"] .tag { font-size: 0.95rem; padding: 0.25rem 1.1rem; }
html[lang="hi"] .full { font-size: 1.05rem; }
html[lang="hi"] .event h3,
html[lang="hi"] .venue-info h3 { font-size: 1.9rem; line-height: 1.4; }
html[lang="hi"] .cal-link { font-size: 0.98rem; }
html[lang="hi"] .venue-when .caps { font-size: 0.98rem; }
html[lang="hi"] .btn { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
html[lang="hi"] .awaiting { font-weight: 700; font-size: clamp(2.3rem, 6vw, 3.2rem); line-height: 1.5; }
html[lang="hi"] .footer-kicker { font-size: 1.05rem; }
html[lang="hi"] .fab.lang { font-family: var(--serif); font-size: 1rem; }

@media (max-width: 760px) {
  html[lang="hi"] .hero-names { font-size: clamp(3rem, 15vw, 4.2rem); line-height: 1.35; }
  html[lang="hi"] .hero-names small { margin: -0.1em 0; }
}


/* ================================================================
   MOTION — scroll reveals, split headings, 3D cards, ribbons
   ================================================================ */
:root { --ease-out: cubic-bezier(0.16, 1, 0.3, 1); }

/* richer reveal: rise + un-blur */
.reveal { opacity: 0; transform: translateY(48px) scale(0.98); filter: blur(8px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out), clip-path 1.4s var(--ease-out), letter-spacing 1.4s var(--ease-out); }
.reveal.from-left { transform: translateX(-60px) rotate(-2deg); }
.reveal.from-right { transform: translateX(60px) rotate(2deg); }
.reveal.visible { opacity: 1; transform: none; filter: none; }

/* headings: each word rises from behind a mask */
.split .w { display: inline-block; clip-path: inset(-1em -1em 0 -1em); padding-bottom: 0.3em; margin-bottom: -0.3em; }
.split .w > i { display: inline-block; font-style: inherit; transform: translateY(120%) rotate(5deg); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms + 150ms); }
.visible .split .w > i,
.split.visible .w > i { transform: none; }
.title em.split { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }
.title em .w > i { background: linear-gradient(180deg, #e2bd6a, #b08532); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 0.04em; }
.title.light em .w > i { background-image: linear-gradient(180deg, #ffe6a6, #d2a24a); }

/* small caps kickers settle from wide tracking */
html[lang="en"] .kicker.reveal { letter-spacing: 0.9em; }
html[lang="en"] .kicker.reveal.visible { letter-spacing: 0.32em; }

/* gold ornaments draw themselves */
.orn { stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.8s var(--ease-out) 0.25s, opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s; }
.visible .orn,
.orn.visible,
body.entered .hero .orn { stroke-dashoffset: 0; }
body.entered .hero .orn { transition-delay: 1.3s; }

/* lines of text arrive one after another */
[data-stagger] > * { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out), filter 0.9s var(--ease-out), stroke-dashoffset 1.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 120ms); }
.visible[data-stagger] > *,
.visible [data-stagger] > * { opacity: 1; transform: none; filter: none; }

/* hero: a shine sweeps across the gold names */
.hero-names span {
  background-image: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.9) 50%, transparent 60%), linear-gradient(180deg, #fff3cf 10%, #f0cf7f 55%, #c9973c 100%);
  background-size: 260% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 160% 0, 0 0;
  animation: shimmer 6s ease-in-out 3.5s infinite;
}
.hero-names span:last-child { animation-delay: 3.8s; }
@keyframes shimmer { 0% { background-position: 160% 0, 0 0; } 35%, 100% { background-position: -60% 0, 0 0; } }
.hero-content { will-change: translate, opacity; }


/* portraits: a turning ring of gold and rose */
.portrait::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 12%, #e9c46a 22%, transparent 36% 60%, #d23a72 72%, transparent 86%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); animation: ring 7s linear infinite; pointer-events: none; }
.person:last-child .portrait::before { animation-direction: reverse; }
@keyframes ring { to { transform: rotate(1turn); } }
.knot { position: relative; }
.knot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(210, 58, 114, 0.5); animation: ripple 1.8s ease-out infinite; }
@keyframes ripple { to { transform: scale(1.9); opacity: 0; } }

/* ceremonies: cards swing in, pictures wipe open, a gold thread fills */
.events { position: relative; }
.ev-line { position: absolute; top: -1.6rem; bottom: -1.6rem; left: 50%; width: 2px; margin-left: -1px; background: rgba(201, 162, 77, 0.22); }
.ev-line i { position: absolute; inset: 0; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, #e9c46a, #d23a72); box-shadow: 0 0 14px rgba(233, 196, 106, 0.9); }
.event { position: relative; z-index: 1; }
.event.reveal { transform: perspective(1100px) rotateX(14deg) translateY(80px) scale(0.95); transform-origin: 50% 0; }
.event.reveal.visible { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); }
.event.visible:hover { --ty: -6px; }
.event.tilting { transition: transform 0.18s ease-out, box-shadow 0.4s; }
.event::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.28), transparent 45%); opacity: 0; transition: opacity 0.4s; }
.event.tilting::after { opacity: 1; }
.event-photo { overflow: hidden; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-out) 0.3s; }
.event.rev .event-photo { clip-path: inset(0 0 0 100%); }
.event.reveal.visible .event-photo { clip-path: inset(0 0 0 0); }
.event-photo img { scale: 1.3; transition: scale 2s var(--ease-out) 0.3s; }
.event.visible .event-photo img { scale: 1.1; }

/* map opens like a lens */
.map.reveal iframe { clip-path: circle(0% at 50% 50%); transition: clip-path 1.5s var(--ease-out) 0.25s; }
.map.reveal.visible iframe { clip-path: circle(85% at 50% 50%); }

/* nothing decorative may make the page scroll sideways */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }

/* buttons: a light sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); transition: left 0.8s var(--ease-out); pointer-events: none; }
.btn:hover::after { left: 130%; }

/* scrolling ribbons between sections */
.marquee { position: relative; z-index: 3; margin: 0; padding: 0.8rem 0; overflow: hidden; background: linear-gradient(90deg, #4e0c27, #7a1a3f 50%, #4e0c27); border-top: 1px solid rgba(201, 162, 77, 0.7); border-bottom: 1px solid rgba(201, 162, 77, 0.7); box-shadow: 0 14px 30px rgba(58, 8, 21, 0.28); }
.marquee.alt { background: linear-gradient(90deg, #f3e2b8, #fbf0d6 50%, #f3e2b8); border-color: rgba(122, 26, 63, 0.35); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee.alt .marquee-track { animation-direction: reverse; animation-duration: 46s; }
.marquee span { display: inline-flex; align-items: center; gap: 0; padding-right: 0.4rem; white-space: pre; font-family: var(--caps); font-size: 1rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-hi); }
.marquee.alt span { color: var(--maroon); }
.marquee b { font-family: var(--script); font-weight: 400; font-size: 1.7rem; letter-spacing: 0; text-transform: none; line-height: 1; }
.marquee em { font-family: "Noto Serif Devanagari", serif; font-style: normal; font-weight: 600; letter-spacing: 0; font-size: 1.05rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* desktop cursor sparkles */
.spark { position: fixed; z-index: 66; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fffbe8 0 18%, #f3c95d 34%, transparent 70%); animation: spark 0.9s ease-out forwards; }
@keyframes spark { to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2); } }

@media (max-width: 760px) {
  .marquee { padding: 0.65rem 0; }
  .marquee b { font-size: 1.4rem; }
  .marquee span { font-size: 0.85rem; }
  .event.reveal { transform: perspective(900px) rotateX(10deg) translateY(60px) scale(0.96); }
  .event-photo { clip-path: inset(0 0 100% 0); }
  .event.rev .event-photo { clip-path: inset(0 0 100% 0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, [data-stagger] > *, .split .w > i { opacity: 1 !important; transform: none !important; filter: none !important; }
  .event-photo, .map iframe { clip-path: none !important; }
  .orn { stroke-dashoffset: 0 !important; }
}


/* ================================================================
   POLISH — hero arch & bells, lace edges, invitation card, calendar
   ================================================================ */

/* hero: a Mughal arch drawn in gold around the names */
.hero-arch { position: absolute; z-index: 1; left: 50%; top: 7vh; bottom: 0; width: min(1000px, 92vw); height: calc(100% - 7vh); transform: translateX(-50%); fill: none; pointer-events: none; }
.hero-arch path { stroke: rgba(214, 176, 92, 0.6); stroke-width: 1.5; stroke-dasharray: 3200; stroke-dashoffset: 3200; transition: stroke-dashoffset 3s var(--ease-out) 0.6s; }
.hero-arch .inner { stroke: rgba(214, 176, 92, 0.28); stroke-width: 1; }
body.entered .hero-arch path { stroke-dashoffset: 0; }
.hero-arch { filter: drop-shadow(0 0 6px rgba(243, 217, 152, 0.25)); }

/* little gold bells swaying from the top */
.bells span { position: absolute; z-index: 1; top: 0; left: var(--x); width: 1.5px; height: var(--len); background: repeating-linear-gradient(180deg, #e9c46a 0 6px, rgba(233, 196, 106, 0.35) 6px 9px); transform-origin: 50% 0; animation: bell-sway 3.4s ease-in-out infinite; animation-delay: var(--d); }
.bells span::before { content: ""; position: absolute; left: -4px; bottom: -8px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c4, #c9973c); }
.bells span::after { content: ""; position: absolute; left: -10px; bottom: -26px; width: 21px; height: 20px; border-radius: 50% 50% 18% 18% / 70% 70% 30% 30%; background: linear-gradient(90deg, #a8781f, #f6d98a 45%, #c9973c 80%); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); }
@keyframes bell-sway { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-3deg); } }

/* lace: a scalloped edge into the next (ivory) section */
.lace { position: absolute; z-index: 2; left: 0; right: 0; bottom: -1px; height: 16px; background: var(--ivory); -webkit-mask: radial-gradient(circle 16px at 50% 0, transparent 15px, #000 16px) 0 0 / 32px 16px repeat-x; mask: radial-gradient(circle 16px at 50% 0, transparent 15px, #000 16px) 0 0 / 32px 16px repeat-x; pointer-events: none; }

/* the invitation, as a printed card with an arched top */
#invite .narrow {
  padding: 3.6rem 2.6rem 2.8rem;
  border: 1px solid rgba(201, 162, 77, 0.6);
  border-radius: 260px 260px 18px 18px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(243, 217, 152, 0.28), transparent 60%),
    linear-gradient(180deg, #fffaf1, #fbf0dc);
  box-shadow: 0 0 0 8px var(--ivory), 0 0 0 9px rgba(201, 162, 77, 0.35), 0 34px 70px rgba(74, 20, 36, 0.14);
}

/* couple: line the two portraits up */
.couple { align-items: start; }
.knot { align-self: center; margin-top: -40px; }
#couple { overflow: hidden; }

/* save the date */
#date { overflow: hidden; }
.cal { max-width: 520px; margin: 2.8rem auto 0; padding: 1.8rem 1.6rem 1.5rem; border: 1px solid rgba(201, 162, 77, 0.55); border-radius: 22px; background: linear-gradient(180deg, #fffaf1, #fbf0dc); box-shadow: 0 0 0 7px rgba(255, 250, 241, 0.6), 0 0 0 8px rgba(201, 162, 77, 0.3), 0 30px 60px rgba(74, 20, 36, 0.14); }
.cal-head { font-family: var(--display); font-size: 1.7rem; color: var(--wine); }
.cal-head b { font-weight: 500; color: #b08532; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35rem; margin-top: 1.1rem; }
.cal-grid b { padding-bottom: 0.4rem; font-family: var(--caps); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: #a8822f; }
.cal-grid > span,
.cal-grid > a { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; font-family: var(--display); font-size: 1.02rem; color: #6b4a52; opacity: 0; transform: scale(0.6); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.3s; transition-delay: calc(var(--i, 0) * 18ms + 300ms); }
.cal.visible .cal-grid > span,
.cal.visible .cal-grid > a { opacity: 1; transform: none; }
.cal-grid .blank { visibility: hidden; }
.cal-grid .day { position: relative; text-decoration: none; color: #fff; line-height: 1; place-content: center; gap: 2px; }
.cal-grid .day em { font-style: normal; font-size: 1.15rem; font-weight: 600; }
.cal-grid .day small { font-family: var(--serif); font-size: 0.62rem; letter-spacing: 0.04em; opacity: 0.9; }
.cal-grid .haldi { background: linear-gradient(160deg, #f9c74f, #e09a12); box-shadow: 0 8px 18px rgba(224, 154, 18, 0.35); }
.cal-grid .wedding { background: linear-gradient(160deg, #d23a72, #8e0c3c); box-shadow: 0 8px 22px rgba(176, 24, 79, 0.45); }
.cal-grid .vidai { background: linear-gradient(160deg, #f4a3a8, #d9707a); box-shadow: 0 8px 18px rgba(217, 112, 122, 0.35); }
.cal-grid .wedding::after { content: ""; position: absolute; inset: -5px; border-radius: 15px; border: 2px solid rgba(210, 58, 114, 0.6); animation: ripple 2s ease-out infinite; }
.cal-grid .day:hover { transform: translateY(-3px) scale(1.04); }
.cal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.2rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px dashed rgba(201, 162, 77, 0.45); }
.cal-legend a { display: inline-flex; align-items: center; gap: 0.45rem; color: #5d2a36; font-size: 1rem; text-decoration: none; }
.cal-legend .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.haldi { background: #f0b429; } .dot.wedding { background: #c2185b; } .dot.vidai { background: #e58a95; }

@media (max-width: 760px) {
  .hero-arch { top: 9vh; width: 96vw; height: calc(100% - 9vh); }
  .bells span:nth-child(2), .bells span:nth-child(3) { display: none; }
  .bells span:nth-child(1) { --x: 6%; }
  .bells span:nth-child(4) { --x: 94%; }
  #invite .narrow { padding: 3rem 1.2rem 2.2rem; border-radius: 180px 180px 14px 14px; }
  .knot { margin-top: 0; }
  .cal { padding: 1.4rem 0.9rem 1.2rem; }
  .cal-grid { gap: 0.25rem; }
  .cal-grid > span, .cal-grid > a { border-radius: 9px; font-size: 0.92rem; }
  .cal-grid .day small { font-size: 0.5rem; }
}

html[lang="hi"] .cal-grid b { font-family: var(--serif); font-size: 0.82rem; letter-spacing: 0; text-transform: none; }
html[lang="hi"] .cal-grid .day small { font-size: 0.6rem; letter-spacing: 0; }
html[lang="hi"] .cal-head { font-family: var(--serif); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .hero-arch path { stroke-dashoffset: 0 !important; }
  .cal-grid > span, .cal-grid > a { opacity: 1 !important; transform: none !important; }
}

/* jumping to a ceremony (from the hero dates or the calendar) leaves room above the card */
.event { scroll-margin-top: 90px; }
