:root {
  --wine: #1f050b;
  --maroon: #4a0c1a;
  --maroon-2: #6d1023;
  --sindoor: #b3122a;
  --gold: #d9b56a;
  --gold-hi: #f5d98b;
  --gold-deep: #a47a2c;
  --ivory: #fbf3e2;
  --ink: #3b1d14;
  /* the Latin faces have no Devanagari, so Hindi text falls through to the second font */
  --serif: "Cormorant Garamond", "Tiro Devanagari Hindi", Georgia, serif;
  --caps: "Cinzel", "Tiro Devanagari Hindi", Georgia, serif;
  --script: "Pinyon Script", "Amita", cursive;
  --hindi: "Yatra One", "Tiro Devanagari Hindi", serif;
  --hindi-text: "Tiro Devanagari Hindi", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ivory);
  background: var(--wine);
  overflow-x: hidden;
}

body.locked { overflow: hidden; height: 100vh; }

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ============ CINEMATIC CHROME ============ */
.letterbox {
  position: fixed;
  left: 0;
  right: 0;
  height: 0;
  background: #000;
  z-index: 900;
  transition: height 1.2s cubic-bezier(0.7, 0, 0.3, 1);
  pointer-events: none;
}
.letterbox.top { top: 0; }
.letterbox.bottom { bottom: 0; }
body.cinema .letterbox { height: 9vh; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

#petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 800;
  pointer-events: none;
}

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

.controls {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 970;
  display: flex;
  gap: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease 1s;
}
body.entered .controls { opacity: 1; pointer-events: auto; }

.ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(31, 5, 11, 0.75);
  backdrop-filter: blur(6px);
  color: var(--gold-hi);
  font-family: var(--caps);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}
.ctrl .ico { font-size: 0.7rem; width: 1em; }

/* speaker icon: waves while the sound is on, a cross when it is off */
.spk { flex: none; width: 18px; height: 18px; }
.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(245, 217, 139, 0.6); border-color: rgba(201, 162, 77, 0.5); }

/* ============ NAV ============ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 5%;
  z-index: 700;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.6s, transform 0.6s, background 0.4s;
}
body.entered:not(.cinema) .navbar { opacity: 1; transform: none; }
.navbar.scrolled {
  background: rgba(31, 5, 11, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(217, 181, 106, 0.3);
}

.logo {
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1;
  color: var(--ivory);
  text-decoration: none;
}
.logo span { color: var(--gold); font-size: 0.6em; }
.logo b { font-weight: 400; }

.nav-links { display: flex; list-style: none; gap: 1.8rem; }
.nav-links a {
  font-family: var(--caps);
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-hi); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-hi);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============ SCENE 1 · HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 13vh 1.2rem 11vh;
}

.hero-bg {
  position: absolute;
  inset: -4%;
  background: center / cover no-repeat #4a0c1a;
  animation: kenburns 32s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(31, 5, 11, 0.52) 0%, rgba(31, 5, 11, 0.86) 80%),
    linear-gradient(180deg, rgba(31, 5, 11, 0.7) 0%, rgba(74, 12, 26, 0.35) 45%, var(--wine) 100%);
}

.hero-content { position: relative; z-index: 4; max-width: 1100px; }

.seq { opacity: 0; }
body.entered .seq { animation: rise 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
body.entered .s1 { animation-delay: 0.5s; }
body.entered .s2 { animation-delay: 1.4s; }
body.entered .s3 { animation-delay: 2.6s; }
body.entered .s4 { animation-delay: 3.3s; }
body.entered .s5 { animation-delay: 3.9s; }
body.entered .s6 { animation-delay: 5s; }
body.entered .s7 { animation-delay: 5.9s; }
body.entered .s8 { animation-delay: 6.9s; }

.eyebrow {
  font-family: var(--hindi);
  font-size: clamp(1.3rem, min(3.4vw, 4vh), 2rem);
  color: var(--gold-hi);
  letter-spacing: 3px;
  text-shadow: 0 0 24px rgba(245, 217, 139, 0.55);
}

.hero-sub {
  margin-top: 0.5rem;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(251, 243, 226, 0.88);
}

.hero-names {
  display: flex;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.2em;
  margin: 0.2rem 0 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.2rem, min(12.5vw, 17vh), 9rem);
  line-height: 1.12;
  white-space: nowrap;
}

.hero-names span {
  display: inline-block;
  /* room for the script swashes, which background-clip would otherwise cut */
  padding: 0.05em 0.3em;
  margin: -0.05em -0.18em;
  background: linear-gradient(180deg, #fff6d6 10%, var(--gold-hi) 45%, var(--gold-deep) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.55));
}
.hero-names .amp { font-size: 0.55em; }

.hero-hindi {
  font-family: var(--hindi);
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  color: var(--ivory);
}

.hero-date {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin: 1.1rem auto 0;
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
}
.hero-date strong {
  padding: 0.3rem 1.2rem;
  border-left: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  font-size: clamp(1.2rem, 3.4vw, 2rem);
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--gold-hi);
  white-space: nowrap;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.2rem);
  margin-top: 1.4rem;
}
.countdown div {
  min-width: clamp(64px, 16vw, 92px);
  padding: 0.8rem 0.4rem 0.5rem;
  border: 1px solid rgba(217, 181, 106, 0.7);
  border-radius: 999px 999px 8px 8px;
  background: rgba(31, 5, 11, 0.5);
  backdrop-filter: blur(4px);
}
.countdown span {
  display: block;
  font-family: var(--caps);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  line-height: 1.2;
  color: var(--gold-hi);
}
.countdown small {
  font-family: var(--caps);
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
}

.scroll-cue {
  position: absolute;
  bottom: 2.2vh;
  left: 50%;
  margin-left: -30px;
  width: 60px;
  z-index: 4;
  font-family: var(--caps);
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}
.scroll-cue span {
  display: block;
  width: 1px;
  height: 34px;
  margin: 0 auto 6px;
  background: linear-gradient(var(--gold-hi), transparent);
  animation: drip 1.8s ease-in-out infinite;
}

/* ============ SHARED SECTION STYLES ============ */
.section { position: relative; padding: 6.5rem 6%; text-align: center; overflow: hidden; }

.kicker {
  font-family: var(--hindi);
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 2px;
}

.section-title {
  font-family: var(--caps);
  font-weight: 400;
  font-size: clamp(1.7rem, 5vw, 3rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold-hi);
}

.lotus { width: 130px; height: 44px; color: var(--gold); margin: 0.8rem auto 2.6rem; display: block; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--maroon);
  font-family: var(--caps);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.btn.ghost { background: transparent; border-color: currentColor; color: var(--gold-hi); }

.reveal {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.from-left { transform: translateX(-70px); }
.reveal.from-right { transform: translateX(70px); }
.reveal.visible { opacity: 1; transform: none; }

/* ============ SCENE 2 · INVITATION ============ */
.invite {
  background:
    radial-gradient(circle at 14px 14px, rgba(217, 181, 106, 0.13) 2px, transparent 3px) 0 0 / 28px 28px,
    linear-gradient(180deg, var(--wine), var(--maroon) 30%, var(--maroon-2) 100%);
}

.paper {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 4.2rem clamp(1.4rem, 6vw, 4rem);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 181, 106, 0.25), transparent 60%),
    linear-gradient(180deg, #fffaf0, #f6e9cd);
  border: 1px solid var(--gold-deep);
  outline: 1px solid var(--gold-deep);
  outline-offset: -10px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.cnr { position: absolute; width: 74px; height: 74px; color: var(--gold-deep); }
.cnr.tl { top: 16px; left: 16px; }
.cnr.tr { top: 16px; right: 16px; transform: scaleX(-1); }
.cnr.bl { bottom: 16px; left: 16px; transform: scaleY(-1); }
.cnr.br { bottom: 16px; right: 16px; transform: scale(-1); }

.ganesh { font-family: var(--hindi-text); font-size: 3.4rem; line-height: 1; color: var(--sindoor); }
.shlok {
  margin-top: 0.8rem;
  font-family: var(--hindi-text);
  font-size: clamp(0.95rem, 2.6vw, 1.2rem);
  color: var(--maroon-2);
}
.paper .lotus { color: var(--gold-deep); margin: 1.2rem auto; }
.invite-text { font-style: italic; font-size: 1.15rem; margin: 0.5rem 0; }
.parents {
  font-family: var(--caps);
  font-size: clamp(0.9rem, 2.6vw, 1.1rem);
  letter-spacing: 2px;
  color: var(--maroon-2);
}
.invite-name {
  font-family: var(--script);
  font-size: clamp(3rem, 10vw, 4.6rem);
  line-height: 1.1;
  color: var(--sindoor);
}
.invite-foot { font-family: var(--hindi); font-size: 1.2rem; color: var(--maroon-2); }

/* ============ SCENE 3 · COUPLE ============ */
.couple {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 181, 106, 0.16), transparent 55%),
    linear-gradient(180deg, var(--maroon-2), var(--wine));
}

.couple-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.arch {
  padding: 9px;
  border: 2px solid var(--gold);
  border-radius: 999px 999px 10px 10px;
  box-shadow: 0 0 0 1px rgba(217, 181, 106, 0.35), 0 0 60px rgba(217, 181, 106, 0.18), 0 30px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px 999px 4px 4px;
}

.jharokha .arch { width: min(310px, 74vw); height: min(430px, 102vw); }
.jharokha figcaption { margin-top: 1.4rem; }
.jharokha .hi { font-family: var(--hindi); color: var(--gold); font-size: 1.2rem; }
.jharokha h3 {
  font-family: var(--script);
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.2;
  color: var(--gold-hi);
}
.jharokha p { font-size: 1rem; font-style: italic; color: rgba(251, 243, 226, 0.8); }

.knot { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; color: var(--gold); }
.knot-line { width: 1px; height: 90px; background: linear-gradient(transparent, var(--gold), transparent); }
.knot-heart { font-size: 2.6rem; animation: beat 1.8s ease-in-out infinite; }

/* ============ SCENE 4 · CEREMONIES ============ */
.events-head { background: var(--wine); padding-bottom: 4rem; }

.timeline {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(1.4rem, 7vw, 5rem);
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.timeline a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-family: var(--caps);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ivory);
}
.timeline b {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--maroon);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold-hi);
  transition: background 0.3s, transform 0.3s;
}
.timeline a:hover b { background: var(--sindoor); transform: scale(1.08); }
.timeline span { margin: 0.5rem 0 0.1rem; color: var(--gold); font-size: 0.6rem; }
.timeline em { font-style: normal; }

.chapter {
  --c-text: var(--ivory);
  --c-accent: var(--gold-hi);
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 6rem 8%;
  overflow: hidden;
  color: var(--c-text);
}
.chapter.flip .chapter-photo { order: 2; }

.chapter.vidai {
  background: radial-gradient(ellipse at 20% 20%, #c9551c, #8a2410 55%, #4f1009);
  --c-accent: #ffd98a;
}
.chapter.haldi {
  background: radial-gradient(ellipse at 20% 20%, #ffe36e, #f6b921 55%, #e88d12);
  --c-text: #4a2204;
  --c-accent: #8f1d0d;
}
.chapter.wedding {
  background: radial-gradient(ellipse at 80% 25%, #8a1730, #4a0c1a 55%, #1c0409);
}

.watermark {
  position: absolute;
  right: -2%;
  bottom: -6%;
  font-family: var(--hindi);
  font-size: clamp(8rem, 30vw, 26rem);
  line-height: 1;
  white-space: nowrap;
  color: currentColor;
  opacity: 0.08;
  pointer-events: none;
}
.chapter.flip .watermark { right: auto; left: -2%; }

.chapter-photo { position: relative; z-index: 1; }
.chapter-photo .arch {
  width: min(430px, 100%);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-color: var(--c-accent);
}
.kenburns img { animation: kenburns 16s ease-in-out infinite alternate; }

.chapter-body { position: relative; z-index: 1; text-align: left; max-width: 520px; }
.chapter-no {
  font-family: var(--caps);
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--c-accent);
}
.chapter-body h3 {
  font-family: var(--caps);
  font-weight: 400;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 4px;
  text-transform: uppercase;
}
.chapter-body h3 .hi {
  display: block;
  font-family: var(--hindi);
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--c-accent);
}
.chapter-desc { margin: 1rem 0 1.6rem; font-style: italic; font-size: 1.25rem; }

.when { display: flex; gap: 1.6rem; align-items: flex-start; flex-wrap: wrap; }
.big-date {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-right: 1.6rem;
  border-right: 1px solid var(--c-accent);
}
.big-date b {
  font-family: var(--caps);
  font-weight: 400;
  font-size: clamp(4rem, 9vw, 5.6rem);
  line-height: 1;
  color: var(--c-accent);
}
.big-date span {
  font-family: var(--caps);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.7;
}
.when ul { list-style: none; font-size: 1.15rem; }
.when li { display: flex; gap: 0.6rem; margin: 0.15rem 0; }
.when li i { font-style: normal; width: 1.4em; }

.chapter-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.chapter .btn.ghost { color: var(--c-accent); }
.chapter.haldi .btn:not(.ghost) { background: var(--maroon-2); color: var(--ivory); }

/* ============ SCENE 5 · VENUE ============ */
.venue {
  color: var(--ink);
  background:
    radial-gradient(circle at 14px 14px, rgba(164, 122, 44, 0.16) 2px, transparent 3px) 0 0 / 28px 28px,
    linear-gradient(180deg, #fffaf0, #f3e3c0);
}
.venue .kicker { color: var(--sindoor); }
.venue .section-title { color: var(--maroon-2); }
.venue .lotus { color: var(--gold-deep); }

.map-tabs { display: flex; justify-content: center; gap: 0.8rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.map-tab {
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--maroon-2);
  background: transparent;
  color: var(--maroon-2);
  font-family: var(--caps);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}
.map-tab.active, .map-tab:hover { background: var(--maroon-2); color: var(--ivory); }

.map-frame {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
  border: 2px solid var(--gold-deep);
  border-radius: 18px;
  background: #fffaf0;
  box-shadow: 0 30px 60px rgba(74, 12, 26, 0.25);
}
.map-frame iframe { display: block; width: 100%; height: 440px; border: 0; border-radius: 10px; }

.map-address { margin-top: 1.2rem; font-size: 1.2rem; }
.map-address a {
  display: inline-block;
  margin-left: 0.8rem;
  font-family: var(--caps);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sindoor);
}

/* ============ SCENE 6 · FILM STRIP ============ */
.gallery { background: #120306; padding-left: 0; padding-right: 0; }

.filmstrip {
  position: relative;
  overflow: hidden;
  padding: 30px 0;
  background: #070707;
  transform: rotate(-1.2deg) scale(1.03);
}
.filmstrip::before, .filmstrip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(90deg, #e9dcc0 0 14px, transparent 14px 30px);
  opacity: 0.85;
}
.filmstrip::before { top: 8px; }
.filmstrip::after { bottom: 8px; }

.film-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.filmstrip.reveal.visible { transform: rotate(-1.2deg) scale(1.03); }
.filmstrip:hover .film-track { animation-play-state: paused; }
.film-track img {
  height: clamp(220px, 44vh, 400px);
  width: auto;
  max-width: none;
  border-radius: 3px;
  cursor: pointer;
  filter: sepia(0.18) contrast(1.05);
  transition: filter 0.3s, transform 0.3s;
}
.film-track img:hover { filter: none; transform: scale(1.02); }
.film-note { margin-top: 2rem; font-style: italic; font-size: 1rem; color: rgba(251, 243, 226, 0.6); }

/* ============ SCENE 7 · CONTACT ============ */
.contact {
  background:
    radial-gradient(circle at 14px 14px, rgba(217, 181, 106, 0.12) 2px, transparent 3px) 0 0 / 28px 28px,
    linear-gradient(180deg, #120306, var(--maroon) 40%, var(--maroon-2));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 680px;
  margin: 0 auto;
}

.contact-card {
  padding: 2.6rem 1.4rem 2rem;
  border: 1px solid rgba(217, 181, 106, 0.6);
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(180deg, rgba(251, 243, 226, 0.1), rgba(251, 243, 226, 0.03));
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-card img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  padding: 5px;
  border: 2px solid var(--gold);
  margin-bottom: 1rem;
}
.contact-card h3 { font-family: var(--caps); font-weight: 400; letter-spacing: 2px; font-size: 1.15rem; color: var(--gold-hi); }
.contact-card .role { font-style: italic; font-size: 1rem; color: rgba(251, 243, 226, 0.75); }
.contact-card .tel { margin: 0.8rem 0 1rem; font-size: 1.35rem; text-decoration: none; }
.contact-actions { display: flex; gap: 0.6rem; }
.contact-actions a {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--caps);
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-hi);
  transition: background 0.25s, color 0.25s;
}
.contact-actions a:hover { background: var(--gold); color: var(--maroon); }

/* ============ END CREDITS ============ */
.footer {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 34vh 1rem 7rem;
  background: radial-gradient(ellipse at 50% 100%, var(--maroon-2), var(--wine) 60%, #0d0205);
}
.footer .toran { --s: 0.75; }
.footer-hi { font-family: var(--hindi); font-size: 1.5rem; color: var(--gold); }
.footer-names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.6rem, 12vw, 7rem);
  line-height: 1.2;
  color: var(--gold-hi);
}
.footer-date { font-family: var(--caps); letter-spacing: 4px; font-size: 0.9rem; }
.footer-note { margin: 1rem 0 2rem; font-style: italic; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 2, 4, 0.94);
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; border: 6px solid var(--ivory); box-shadow: 0 30px 80px #000; }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; font-size: 2.6rem; color: var(--ivory); cursor: pointer; }

/* ============ KEYFRAMES ============ */
@keyframes rise {
  from { opacity: 0; transform: translateY(28px) scale(0.98); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.16) translate(-1.5%, -2%); }
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(31, 5, 11, 0.97);
    transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { padding: 0.9rem 0; }

  .section { padding: 5rem 5%; }
  .chapter { grid-template-columns: 1fr; padding: 5rem 7%; gap: 2.4rem; }
  .chapter.flip .chapter-photo { order: 0; }
  .chapter-photo .arch { width: min(340px, 88%); }
  .chapter-body { margin: 0 auto; }
  .knot { flex-direction: row; width: 100%; justify-content: center; }
  .knot-line { width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
  .map-frame iframe { height: 340px; }
  .map-address a { display: block; margin: 0.4rem 0 0; }
  .ctrl .lbl { display: none; }
  .ctrl { padding: 0 0.85rem; }
  .hero-date { gap: 0.6rem; letter-spacing: 2px; }
}

/* phones: the names stack like a poster */
@media (max-width: 600px) {
  .hero { padding-top: 16vh; }
  .hero-names {
    flex-direction: column;
    align-items: center;
    font-size: clamp(4rem, min(23vw, 13vh), 6.5rem);
    line-height: 1.05;
  }
  .hero-names .amp { font-size: 0.42em; margin: -0.35em 0 -0.2em; }
  .intro .toran { --s: 0.7; }
  .when { flex-direction: column; gap: 0.9rem; }
  .big-date { padding-right: 0; border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .kenburns img, .film-track, .toran .str { animation: none; }
  .reveal { transition-duration: 0.01s; }
}

/* ============ हिंदी (default language) ============ */
/* Devanagari has no capitals or italics and its top line breaks when letter-spaced */
html[lang="hi"] body * { letter-spacing: normal !important; font-style: normal !important; }
html[lang="hi"] .hero-date strong,
html[lang="hi"] .big-date b,
html[lang="hi"] .tel { letter-spacing: 2px !important; }
/* times and dates sit beside Devanagari, so use full-height digits */
html[lang="hi"] body { font-variant-numeric: lining-nums; }

/* small Latin caps labels need to be larger to stay readable in Hindi */
html[lang="hi"] .ctrl { font-size: 0.85rem; }
html[lang="hi"] .nav-links a { font-size: 1rem; }
html[lang="hi"] .logo { font-size: 1.8rem; }
html[lang="hi"] .hero-sub { max-width: 34em; margin-left: auto; margin-right: auto; text-wrap: balance; }
html[lang="hi"] .hero-names { font-size: clamp(3rem, min(10vw, 13.5vh), 7rem); line-height: 1.45; column-gap: 0.3em; }
html[lang="hi"] .hero-names span { padding: 0.1em 0.15em; margin: -0.1em -0.05em; }
html[lang="hi"] .hero-names .amp { font-size: 0.5em; }
html[lang="hi"] .hero-hindi { font-size: clamp(1.05rem, 2.6vw, 1.5rem); color: var(--gold-hi); }
html[lang="hi"] .hero-date { font-size: clamp(1rem, 2vw, 1.25rem); }
html[lang="hi"] .countdown small { font-size: 0.8rem; }
html[lang="hi"] .scroll-cue { font-size: 0.8rem; }
html[lang="hi"] .btn { font-size: 0.95rem; padding: 0.6rem 1.7rem; }
html[lang="hi"] .section-title { line-height: 1.5; }
html[lang="hi"] .invite-text { font-size: 1.1rem; }
html[lang="hi"] .parents { font-size: clamp(1.05rem, 3vw, 1.3rem); }
html[lang="hi"] .invite-name { font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1.5; font-weight: 700; }
html[lang="hi"] .jharokha h3 { font-size: 2.4rem; line-height: 1.5; }
html[lang="hi"] .timeline a { font-size: 1.05rem; }
html[lang="hi"] .timeline span { font-size: 0.8rem; }
html[lang="hi"] .chapter-no { font-size: 1.05rem; }
html[lang="hi"] .chapter-body h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
html[lang="hi"] .big-date span { font-size: 1rem; }
html[lang="hi"] .map-tab { font-size: 0.95rem; }
html[lang="hi"] .map-address a { font-size: 0.9rem; }
html[lang="hi"] .contact-card h3 { font-size: 1.4rem; }
html[lang="hi"] .contact-actions a { font-size: 0.85rem; }
html[lang="hi"] .footer-names { font-size: clamp(2.8rem, 10vw, 5.5rem); line-height: 1.5; }
html[lang="hi"] .footer-date { font-size: 1.05rem; }

@media (max-width: 600px) {
  html[lang="hi"] .hero-names { font-size: clamp(3.2rem, min(19vw, 11vh), 5.2rem); line-height: 1.35; }
  html[lang="hi"] .hero-names .amp { margin: -0.2em 0; }
}
