/* ──────────────────────────────────────────────────────────────
   Pratima & Lokesh: illustrated engagement invitation
   Layered on Bootstrap 5. Colours live in :root below.
   ────────────────────────────────────────────────────────────── */

:root {
  --ivory: #FFF9F5;
  --paper: #FFFDFB;
  --rose: #B66A73;
  --blush: #D9A0A6;
  --burgundy: #8C4D57;
  --gold: #C6A15B;
  --gold-light: #E1C88A;
  --gold-deep: #9C7A3C;
  --ink: #6E1F2C;        /* deep kumkum maroon (no black on an auspicious card) */
  --ink-soft: #8A5560;

  --serif: 'Cormorant Garamond', 'Tiro Telugu', 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', 'Noto Sans Telugu', 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .68, .18, 1);
  --section-pad: clamp(5rem, 11vw, 9rem);

  /* Bootstrap overrides */
  --bs-body-bg: var(--ivory);
  --bs-body-color: var(--ink);
  --bs-body-font-family: var(--serif);
  --bs-link-color-rgb: 140, 77, 87;
  --bs-border-color: rgba(198, 161, 91, .35);
}

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  font-size: clamp(1.1rem, .4vw + 1rem, 1.3rem);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.grain {
  position: fixed; inset: 0; z-index: 1040; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Shared type ─────────────────────────────────────────────── */

.section { position: relative; padding: var(--section-pad) 0; }

.names {
  margin: 0;
  font-weight: 300;
  line-height: .92;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.names > span { display: block; }
.names .amp {
  font-style: italic; text-transform: none; letter-spacing: 0;
  color: var(--gold); font-size: .42em; line-height: 1.3;
}

.display-heading {
  margin: 0;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  color: var(--burgundy);
}

/* ── Reveal system ───────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.6s var(--ease), transform 1.6s var(--ease);
  transition-delay: calc(var(--i, 0) * .18s);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal.lines { opacity: 1; transform: none; }
.lines > span {
  display: block;
  opacity: 0;
  transform: translateY(.5em);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
  transition-delay: calc(.25s + var(--i, 0) * .3s);
}
.is-visible.lines > span { opacity: 1; transform: none; }

.ornament { display: block; width: min(220px, 60vw); height: auto; margin: 1.6rem auto 0; }
.ornament-start .ornament { margin-inline: auto; }
@media (min-width: 992px) { .ornament-start .ornament { margin-left: 0; } }

.draw-path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-visible .draw-path { animation: draw 2.8s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Ambient layers ──────────────────────────────────────────── */

.particles, .petals {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1;
}
.particles span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, #FFF3D0 0%, var(--gold-light) 45%, transparent 72%);
  animation: shimmer 10s ease-in-out infinite;
}
.particles-bright span { filter: drop-shadow(0 0 4px rgba(225, 200, 138, .9)); }
@keyframes shimmer {
  0%, 100% { opacity: 0; transform: translateY(0) scale(.6); }
  45% { opacity: .95; transform: translateY(-14px) scale(1); }
  70% { opacity: .5; }
}

.petal {
  position: absolute; top: -6%;
  border-radius: 70% 0 70% 0;
  animation: fall 22s linear infinite;
}
.petal-a { background: radial-gradient(circle at 30% 30%, #FBE3E3, var(--blush) 70%); }
.petal-b { background: radial-gradient(circle at 30% 30%, #F8E1E1, #E3B1B6 60%, var(--rose)); }
@keyframes fall {
  0% { top: -6%; transform: translateX(0) rotate(0) rotateX(0); opacity: 0; }
  8% { opacity: .85; }
  50% { transform: translateX(var(--drift)) rotate(200deg) rotateX(160deg); }
  92% { opacity: .8; }
  100% { top: 104%; transform: translateX(calc(var(--drift) * -.4)) rotate(420deg) rotateX(340deg); opacity: 0; }
}

/* ── Navigation (Bootstrap navbar, restyled) ─────────────────── */

.invite-nav {
  padding-top: calc(env(safe-area-inset-top, 0px) + .75rem);
  padding-bottom: .75rem;
  transition: transform .8s var(--ease), background .8s var(--ease), box-shadow .8s var(--ease);
  opacity: 0;
  animation: fadeIn 1s var(--ease) .2s forwards;   /* header first, then the hero sequence */
}
.invite-nav.is-scrolled, .invite-nav.is-open {
  background: rgba(255, 249, 245, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(198, 161, 91, .25);
}
.invite-nav.is-hidden { transform: translateY(-110%); }

.nav-mono {
  font-size: 1.25rem; letter-spacing: .18em; color: var(--burgundy);
}
.nav-mono span { color: var(--gold); font-style: italic; }
.nav-mono:hover { color: var(--burgundy); }

.invite-nav .nav-link {
  position: relative;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.invite-nav .nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .3rem;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .6s var(--ease);
}
.invite-nav .nav-link:hover, .invite-nav .nav-link:focus-visible { color: var(--burgundy); }
.invite-nav .nav-link:hover::after, .invite-nav .nav-link:focus-visible::after { transform: scaleX(1); }

.navbar-toggler {
  display: grid; place-content: center; gap: 6px;
  width: 48px; height: 48px; padding: 0; margin-right: -8px;
  border: 0; box-shadow: none !important;
}
.toggler-line {
  display: block; width: 24px; height: 1.2px; background: var(--burgundy);
  transition: transform .5s var(--ease);
}
.navbar-toggler[aria-expanded="true"] .toggler-line:first-child { transform: translateY(3.6px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-line:last-child { transform: translateY(-3.6px) rotate(-45deg); }

@media (max-width: 767.98px) {
  .invite-nav .navbar-collapse {
    margin-top: .75rem;
    padding: .25rem 1.25rem;
    background: rgba(255, 253, 251, .97);
    border: 1px solid rgba(198, 161, 91, .35);
    border-radius: 18px;
    box-shadow: 0 18px 40px -20px rgba(140, 77, 87, .35);
  }
  .invite-nav .nav-link { padding: .95rem 0; font-size: .85rem; border-bottom: 1px solid rgba(198, 161, 91, .18); }
  .invite-nav .nav-item:last-child .nav-link { border-bottom: 0; }
  .invite-nav .nav-link::after { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 4.5rem) 1.25rem 5.5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-wash {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 46% 52% at 50% 52%, rgba(255, 250, 246, .9) 0%, rgba(255, 249, 245, .6) 55%, rgba(255, 249, 245, 0) 100%);
}
.hero .particles { z-index: 0; }
.hero-inner { position: relative; z-index: 2; }

.hero-invite {
  margin: 0 0 .6rem;
  font-style: italic; font-weight: 300;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.35;
  color: var(--ink-soft);
}
.hero-ring {
  display: block;
  width: min(34vw, 25vh, 250px); min-width: 150px;
  margin: 0 auto -.4rem;
  filter: drop-shadow(0 18px 24px rgba(140, 77, 87, .12));
}
.hero-names { font-size: min(14vw, 11vh, 8.6rem); }
.hero-sub {
  margin: 1rem 0 0;
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  color: var(--rose);
}
.hero-date {
  display: flex; flex-direction: column; gap: .15rem;
  margin: 1.2rem 0 0;
  font-family: var(--sans);
  font-size: clamp(.82rem, 1.2vw, .95rem);
  letter-spacing: .32em;
  text-transform: uppercase;
}
.hero-weekday { color: var(--gold-deep); font-size: .85em; }
.hero .ornament { margin-top: 1rem; }

.hero-vine {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 3.6rem);
  width: clamp(150px, 24vw, 310px);
  z-index: 1; opacity: .9;
}
.hero-vine-l { left: .5rem; }
.hero-vine-r { right: .5rem; transform: scaleX(-1); }

.hero-corner {
  position: absolute; bottom: 0;
  width: clamp(130px, 22vw, 300px);
  z-index: 1;
  --d: 1s;
}
.hero-corner-l { left: -8px; }
.hero-corner-r { right: -8px; transform: scaleX(-1); }

.scroll-cue {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.4rem);
  left: 50%; translate: -50% 0;
  z-index: 3;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1rem;
  font-family: var(--sans);
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  color: var(--ink-soft);
}
.scroll-cue:hover { color: var(--burgundy); }
.scroll-arrow { display: inline-block; animation: nudge 2.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* Opening choreography */
.seq-bg { opacity: 0; animation: fadeIn 2.4s ease forwards; }
.seq { opacity: 0; animation: rise 1.9s var(--ease) forwards; animation-delay: var(--d, 0s); }
.seq-scale { animation-name: bloom; animation-duration: 2.4s; }
.seq-mirror { animation-name: riseMirror; }
.seq .draw-path { animation-delay: calc(var(--d, 0s) + .3s); }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes bloom { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes riseMirror {
  from { opacity: 0; transform: scaleX(-1) translateY(18px); }
  to { opacity: 1; transform: scaleX(-1); }
}

@media (max-width: 575.98px) {
  .hero { padding-bottom: 6.5rem; }
  .hero-vine { width: 42vw; opacity: .75; }
  .hero-corner { width: 36vw; }
  .hero-ring { width: min(46vw, 24vh); min-width: 140px; }
  .hero-names { font-size: min(15.5vw, 10vh); letter-spacing: .04em; }
}

/* ── Couple + story ──────────────────────────────────────────── */

.couple-stage {
  position: relative;
  max-width: 460px;
  margin-inline: auto !important;
  display: grid; justify-items: center;
}
.couple-halo {
  position: absolute; inset: 4% 6% 10%;
  border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 226, 180, .75), rgba(249, 220, 210, .45) 55%, rgba(255, 249, 245, 0) 75%);
}
.couple-art {
  position: relative; z-index: 2;
  width: min(84vw, 420px);
  height: auto;
  mix-blend-mode: multiply;           /* white paper melts into the ivory page */
  -webkit-mask-image: radial-gradient(ellipse 60% 58% at 50% 40%, #000 62%, transparent 98%);
  mask-image: radial-gradient(ellipse 60% 58% at 50% 40%, #000 62%, transparent 98%);
  transition: transform 2.2s var(--ease);
  transform: translateY(20px);
}
.couple-stage.is-visible .couple-art { transform: none; }
.couple-flora { position: absolute; bottom: 2%; width: min(34vw, 190px); z-index: 3; }
.couple-flora-l { left: -4%; }
.couple-flora-r { right: -4%; transform: scaleX(-1); }

.story-hosts {
  margin: 1.8rem 0 0;
  font-family: var(--sans);
  font-size: clamp(.86rem, 1.3vw, .98rem);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.story-copy {
  margin: .7rem 0 0;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-soft);
}

.story-frame {
  padding: clamp(8px, 1.2vw, 14px);
  border: 1px solid rgba(198, 161, 91, .55);
  border-radius: clamp(120px, 26vw, 320px) clamp(120px, 26vw, 320px) 18px 18px;
  background: var(--paper);
  box-shadow: 0 40px 70px -40px rgba(140, 77, 87, .35);
}
.story-art {
  display: block; width: 100%;
  aspect-ratio: 800 / 460;
  object-fit: cover;
  border-radius: clamp(112px, 25vw, 308px) clamp(112px, 25vw, 308px) 12px 12px;
}
@media (max-width: 575.98px) {
  .story-frame { border-radius: 38vw 38vw 14px 14px; }
  .story-art { aspect-ratio: 4 / 4.2; border-radius: 36vw 36vw 10px 10px; }
}

/* ── Schedule ────────────────────────────────────────────────── */

.schedule {
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, #FCEEE8 0%, transparent 70%),
    var(--ivory);
  border-top: 1px solid rgba(198, 161, 91, .25);
}
.schedule-sub {
  margin: 1rem 0 0;
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.timeline { position: relative; margin: 0; padding: 0; }
@media (min-width: 992px) {
  .timeline::before {
    content: '';
    position: absolute;
    top: calc(var(--bs-gutter-y) + 1.5rem + 70px);
    left: 12%; right: 12%;
    border-top: 1px dashed rgba(198, 161, 91, .75);
  }
}

.event-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 1.5rem 1.25rem 2.2rem;
  text-align: center;
  background: var(--paper);
  border: 1px solid rgba(198, 161, 91, .38);
  border-radius: 200px 200px 22px 22px;
  box-shadow: 0 30px 50px -40px rgba(140, 77, 87, .45);
  transition: transform .9s var(--ease), box-shadow .9s var(--ease);
}
.event-card:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -40px rgba(140, 77, 87, .55); }

.event-card-feature {
  background: linear-gradient(180deg, #FFF6F1, #FBE7E3);
  border-color: rgba(198, 161, 91, .75);
}
.event-card-feature::after {
  content: '';
  position: absolute; inset: 7px;
  border: 1px solid rgba(198, 161, 91, .35);
  border-radius: 194px 194px 16px 16px;
  pointer-events: none;
}

.event-medallion {
  display: grid; place-items: center;
  width: 140px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #FFFDFB, #FBEDE6);
  border: 1px solid rgba(198, 161, 91, .5);
  box-shadow: 0 0 0 7px var(--paper), 0 0 0 8px rgba(198, 161, 91, .22);
}
.event-card-feature .event-medallion { box-shadow: 0 0 0 7px #FFF6F1, 0 0 0 8px rgba(198, 161, 91, .4); }
.event-medallion img { width: 78%; }

.event-time {
  display: block;
  margin-top: 1.6rem;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: lining-nums;
  color: var(--burgundy);
}
.event-time.is-tba {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 2.2rem;
  color: var(--ink-soft);
}
.event-title {
  margin: .9rem 0 0;
  max-width: 19ch;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Phones: compact vertical timeline */
@media (max-width: 575.98px) {
  .timeline { --bs-gutter-y: 1rem; }
  .timeline::before {
    content: '';
    position: absolute;
    top: 3rem; bottom: 3rem;
    left: calc(1rem + 44px);
    border-left: 1px dashed rgba(198, 161, 91, .75);
  }
  .event-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: center;
    column-gap: 1.1rem;
    padding: .7rem 1.25rem .7rem .7rem;
    text-align: left;
    border-radius: 999px 22px 22px 999px;
  }
  .event-card-feature::after { border-radius: 999px 16px 16px 999px; }
  .event-medallion {
    grid-row: span 2;
    width: 88px;
    box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(198, 161, 91, .22);
  }
  .event-card-feature .event-medallion { box-shadow: 0 0 0 4px #FFF6F1, 0 0 0 5px rgba(198, 161, 91, .4); }
  .event-time { margin-top: 0; font-size: 1.9rem; align-self: end; }
  .event-time.is-tba { font-size: 1.05rem; line-height: 1.3; }
  .event-title { margin-top: .45rem; max-width: none; align-self: start; font-size: .74rem; letter-spacing: .16em; }
}

/* ── Save the date ───────────────────────────────────────────── */

.save-date {
  overflow: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, #FFF3EA 0%, var(--ivory) 70%);
  border-block: 1px solid rgba(198, 161, 91, .25);
}
.save-date .container { z-index: 2; }
.sd-heading {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(.82rem, 1.3vw, 1rem);
  letter-spacing: .5em;
  padding-left: .5em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.sd-date { display: grid; justify-items: center; margin-top: 1rem; }
.sd-day {
  font-size: clamp(9rem, 30vw, 20rem);
  font-weight: 300;
  line-height: .82;
  background: linear-gradient(160deg, #E9D39C 0%, var(--gold) 38%, #A8823F 62%, #E1C88A 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.sd-month {
  margin-top: .3rem;
  font-size: clamp(2.1rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: .32em; padding-left: .32em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.sd-year { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .5em; padding-left: .5em; }
.sd-weekday { margin-top: .4rem; font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--rose); }

.sd-flora { position: absolute; width: clamp(160px, 28vw, 340px); z-index: 1; }
.sd-flora-tr { top: -10px; right: -10px; transform: rotate(180deg); }
.sd-flora-bl { bottom: -10px; left: -10px; }

.countdown { max-width: 760px; margin-top: 2rem; }
.cd-unit { position: relative; display: grid; justify-items: center; gap: .3rem; padding: 0 .25rem; }
.cd-unit + .cd-unit::before {
  content: ''; position: absolute; left: 0; top: 18%; height: 46%; width: 1px;
  background: linear-gradient(transparent, var(--gold), transparent);
}
.cd-num {
  font-size: clamp(3rem, 11vw, 6.5rem);
  background: linear-gradient(160deg, #E9D39C 0%, var(--gold) 38%, #A8823F 62%, #E1C88A 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 300; line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.cd-label {
  font-family: var(--sans);
  font-size: clamp(.62rem, 1.4vw, .74rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cd-caption { margin: 1.4rem 0 0; font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--rose); }
.countdown-done { margin-top: 2rem; font-size: 1.6rem; font-style: italic; color: var(--rose); }

/* ── Ring artwork ────────────────────────────────────────────── */

.ring-section {
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 40% 60%, rgba(255, 231, 196, .7), transparent 70%),
    linear-gradient(180deg, var(--ivory), #FCEFE8 60%, var(--ivory));
}
.ring-bouquet { display: block; width: 100%; }
.ring-note {
  margin: 1.4rem 0 0;
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
@media (max-width: 575.98px) { .ring-bouquet { width: 118%; margin-left: -9%; } }

/* ── Venue ───────────────────────────────────────────────────── */

.venue-art {
  display: block; width: 100%;
  aspect-ratio: 800 / 440;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 40px 70px -44px rgba(140, 77, 87, .45);
  outline: 1px solid rgba(198, 161, 91, .5);
  outline-offset: 8px;
}
.venue-figure figcaption { margin-top: 1.1rem; font-style: italic; font-size: .95rem; color: var(--ink-soft); }
.venue-name {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: .16em; padding-left: .16em;
  text-transform: uppercase;
}
.venue-address {
  display: grid; gap: .1rem;
  margin: .9rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--ink-soft);
}

.map-frame {
  padding: 10px;
  border: 1px solid rgba(198, 161, 91, .6);
  border-radius: 200px 200px 22px 22px;
  background: var(--paper);
  box-shadow: 0 40px 70px -44px rgba(140, 77, 87, .45);
}
.map-inner {
  position: relative; overflow: hidden;
  height: clamp(380px, 42vw, 520px);
  border-radius: 190px 190px 14px 14px;
  background: linear-gradient(135deg, #F8EDE4, #F3E3D6);
}
.map-inner iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: sepia(.18) saturate(.85) hue-rotate(-8deg);
  opacity: 0; transition: opacity 1.2s ease;
  z-index: 1;
}
.map-inner.is-loaded iframe { opacity: 1; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; font-style: italic; color: var(--ink-soft); }

.btn-invite {
  --bs-btn-padding-x: 1.8rem;
  --bs-btn-padding-y: .9rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: transparent;
  transition: background .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease), transform .6s var(--ease);
}
.btn-invite:hover, .btn-invite:focus-visible {
  background: rgba(225, 200, 138, .18); color: var(--burgundy); border-color: var(--gold);
  transform: translateY(-2px);
}
.btn-invite-solid {
  background: linear-gradient(135deg, #D8B870, var(--gold) 50%, #B38B47);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(156, 122, 60, .8);
}
.btn-invite-solid:hover, .btn-invite-solid:focus-visible {
  background: linear-gradient(135deg, #E1C88A, #CFAB63 50%, #B38B47);
  color: #fff; border-color: transparent;
}

@media (max-width: 575.98px) {
  .map-frame { border-radius: 42vw 42vw 18px 18px; padding: 7px; }
  .map-inner { height: 118vw; max-height: 520px; border-radius: 40vw 40vw 12px 12px; }
}

/* ── Floral band ─────────────────────────────────────────────── */

.floral-band { position: relative; overflow: hidden; padding: clamp(1rem, 4vw, 3rem) 0; }
.floral-art { display: block; width: 100%; max-width: 1300px; margin: 0 auto; }
@media (max-width: 575.98px) { .floral-art { width: 170%; max-width: none; margin-left: -35%; } }

/* ── Quote ───────────────────────────────────────────────────── */

.quote {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  min-height: clamp(420px, 70vh, 640px);
  padding: 5rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--ivory), #F9E4DF 50%, var(--ivory));
}
.quote-bg {
  position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.qb { position: absolute; border-radius: 50%; filter: blur(40px); animation: drift 18s ease-in-out infinite alternate; }
.qb-1 { width: 46vw; height: 46vw; left: -10vw; top: 10%; background: rgba(217, 160, 166, .35); }
.qb-2 { width: 38vw; height: 38vw; right: -8vw; bottom: 0; background: rgba(225, 200, 138, .35); animation-delay: -6s; }
.qb-3 { width: 28vw; height: 28vw; left: 40%; top: -8vw; background: rgba(255, 236, 214, .7); animation-delay: -12s; }
@keyframes drift { to { transform: translate(4vw, -3vw) scale(1.08); } }

.quote-text {
  position: relative; z-index: 2;
  margin: 0;
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  font-weight: 300; font-style: italic; line-height: 1.15;
  color: var(--burgundy);
}

/* ── Finale ──────────────────────────────────────────────────── */

.finale { padding-bottom: clamp(3rem, 7vw, 5rem); }
.finale-art-wrap {
  position: relative;
  max-width: 760px; margin: 0 auto;
  border-radius: 50% 50% 24px 24px / 38% 38% 24px 24px;
  overflow: hidden;
  box-shadow: 0 50px 80px -50px rgba(140, 77, 87, .55);
  outline: 1px solid rgba(198, 161, 91, .5);
  outline-offset: 10px;
}
.finale-art-wrap .particles { z-index: 2; }
.finale-art { display: block; width: 100%; }
.finale-names { font-size: clamp(3.2rem, 11vw, 7rem); }
.finale-date {
  margin: 1.4rem 0 0;
  font-family: var(--sans);
  font-size: clamp(.85rem, 1.3vw, 1rem);
  letter-spacing: .32em;
  text-transform: uppercase;
}
.finale-line {
  position: absolute; z-index: 3;
  left: 31%; right: 31%; top: 42%;
  text-wrap: balance;
  margin: 0;
  font-style: italic; font-weight: 300;
  font-size: clamp(1.25rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--burgundy);
  text-shadow: 0 0 24px rgba(255, 244, 236, .9);
}

/* ── Footer ──────────────────────────────────────────────────── */

.footer {
  padding: 2.5rem 1.5rem calc(env(safe-area-inset-bottom, 0px) + 6rem); /* clears the floating buttons */
  border-top: 1px solid rgba(198, 161, 91, .3);
}
.footer-heart { font-size: 1.4rem; color: var(--gold); }
.footer-note { margin: .6rem 0 0; font-style: italic; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--burgundy); }
html[lang="te"] .footer-note { line-height: 1.8; }

/* ── Voice invitation button ───────────────────────────────── */

.music-btn {
  position: fixed;
  right: calc(env(safe-area-inset-right, 0px) + 1.1rem);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.1rem);
  z-index: 1030;
  display: inline-flex; align-items: center; gap: .6rem;
  height: 50px;
  padding: 0 1.15rem 0 .4rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(255, 253, 251, .94);
  backdrop-filter: blur(6px);
  color: var(--burgundy);
  font-family: var(--sans);
  font-size: .95rem; font-weight: 500;
  box-shadow: 0 14px 30px -14px rgba(140, 77, 87, .55);
  opacity: 0;
  animation: fadeIn 1s ease .4s forwards;
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.music-btn:hover { transform: translateY(-2px); background: #fff; }
.invite-icon {
  position: relative;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D8B870, var(--gold) 50%, #B38B47);
  color: #fff;
}
.music-btn .icon-pause, .music-btn.is-playing .icon-play { display: none; }
.music-btn.is-playing .icon-pause { display: block; }
.invite-icon::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: 50%; border: 1px solid var(--gold); opacity: 0;
}
.music-btn.is-playing .invite-icon::before { animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* Phones: the two floating buttons own the bottom edge, so the scroll arrow steps aside */
@media (max-width: 575.98px) { .scroll-cue { display: none; } }

/* Very narrow phones: slimmer buttons so they never touch */
@media (max-width: 359.98px) {
  .music-btn { gap: .45rem; padding-right: .85rem; font-size: .84rem; }
  .invite-icon { width: 36px; height: 36px; }
  .lang-btn { min-width: 0; padding: 0 .9rem; font-size: .9rem; }
}

/* ── Ganesha ─────────────────────────────────────────────────── */

.hero-ganesha { margin: 0 auto .9rem; }
.hero-ganesha img {
  display: block;
  width: clamp(86px, 8.5vw, 118px);
  margin: 0 auto;
  filter: drop-shadow(0 8px 14px rgba(156, 122, 60, .25));
}
.hero-ganesha figcaption {
  margin-top: .35rem;
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  color: var(--gold-deep);
}
/* Make room on the opening screen for Ganesha: everything scales with screen height */
.hero { padding-top: calc(env(safe-area-inset-top, 0px) + 4.6rem); padding-bottom: 4.4rem; }
.hero-ganesha { margin-bottom: .5rem; }
.hero-ganesha img { width: clamp(64px, 10.5vh, 112px); }
.hero-invite { margin-bottom: .2rem; }
.hero-ring { width: min(24vw, 14.5vh, 190px); min-width: 96px; }
.hero-names { font-size: min(13vw, 8.4vh, 8rem); }
.hero-sub { margin-top: .5rem; }
.hero-date { margin-top: .7rem; }
.hero .ornament { margin-top: .6rem; }
@media (max-width: 575.98px) {
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 4.2rem); padding-bottom: 4.8rem; }
  .hero-ganesha img { width: clamp(58px, 9vh, 78px); }
  .hero-ring { width: min(36vw, 13vh); min-width: 90px; }
  .hero-names { font-size: min(14.5vw, 7.6vh); }
  .hero-invite { font-size: clamp(1.05rem, 2.4vh, 1.25rem); }
}

/* Short phones (iPhone SE size) */
@media (max-height: 700px) and (max-width: 575.98px) {
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 3.9rem); padding-bottom: 4.2rem; }
  html[lang="te"] .hero-ganesha { margin-bottom: .2rem; }
  html[lang="te"] .hero-ganesha img { width: 50px; }
  html[lang="te"] .hero-ganesha figcaption { margin-top: .1rem; font-size: .9rem; }
  html[lang="te"] .hero-blessing { font-size: .9rem; }
  html[lang="te"] .hero-names { font-size: 5.6vh; }
  html[lang="te"] .hero-ring { width: 10vh; min-width: 80px; }
  html[lang="te"] .hero-date { margin-top: .4rem; }
}

/* ── Petal shower ────────────────────────────────────────────── */

.petal { filter: drop-shadow(0 3px 4px rgba(140, 77, 87, .18)); }
.petal::after {
  content: '';
  position: absolute; inset: 22% 30% 22% 18%;
  border-radius: 70% 0 70% 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .45), transparent 70%);
}
.petals-shower { z-index: 1; }

/* ── Language switch ─────────────────────────────────────────── */

.lang-btn {
  position: fixed;
  left: calc(env(safe-area-inset-left, 0px) + 1.1rem);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.1rem);
  z-index: 1030;
  min-width: 96px; height: 50px;
  padding: 0 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(255, 253, 251, .92);
  backdrop-filter: blur(6px);
  color: var(--burgundy);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 14px 30px -14px rgba(140, 77, 87, .55);
  opacity: 0;
  animation: fadeIn 1s ease .4s forwards;
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.lang-btn:hover { transform: translateY(-2px); background: #fff; }

main, .footer, .invite-nav .navbar-nav { transition: opacity .25s ease; }
.lang-switching main, .lang-switching .footer, .lang-switching .invite-nav .navbar-nav { opacity: 0; }

/* Phones: the scroll cue keeps only its arrow so it never meets the language button */
@media (max-width: 575.98px) {
  .scroll-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .scroll-arrow { font-size: 1.4rem; }
}

/* ── Telugu typography ───────────────────────────────────────── */

.te-only { display: none; }
html[lang="te"] .te-only { display: block; }

/* Telugu letters need their natural spacing and have no capitals */
html[lang="te"] body * { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="te"] .nav-mono { letter-spacing: .18em !important; }

.hero-blessing {
  margin: 0 0 .4rem;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--gold-deep);
}

html[lang="te"] .names { line-height: 1.25; font-weight: 400; }
html[lang="te"] .hero-names { font-size: min(11vw, 6.4vh, 5.6rem); }
html[lang="te"] .hero-ganesha img { width: clamp(56px, 8.5vh, 100px); }
html[lang="te"] .hero-ring { width: min(22vw, 12.5vh, 170px); }
@media (max-width: 575.98px) { html[lang="te"] .hero-names { font-size: min(13vw, 6vh); } html[lang="te"] .hero-ring { width: min(30vw, 11vh); } }
html[lang="te"] .names .amp { line-height: 1; }
html[lang="te"] .hero-invite { line-height: 1.45; font-size: clamp(1rem, 2.3vh, 1.35rem); }
html[lang="te"] .hero-date { font-size: clamp(1rem, 1.5vw, 1.15rem); }
html[lang="te"] .display-heading { font-size: clamp(1.9rem, 4.2vw, 3.5rem); line-height: 1.4; }
html[lang="te"] .story-hosts { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 400; }
html[lang="te"] .story-copy { line-height: 1.7; font-size: clamp(1.1rem, 1.9vw, 1.35rem); }
html[lang="te"] .event-title { font-size: 1.02rem; line-height: 1.5; }
html[lang="te"] .event-time.is-tba { line-height: 1.5; }
.te-period {
  display: block;
  margin-bottom: .3em;
  font-size: .42em;
  line-height: 1.3;
  color: var(--ink-soft);
}
html[lang="te"] .sd-heading { font-size: clamp(1.15rem, 1.9vw, 1.4rem); padding-left: 0; }
html[lang="te"] .cd-label { font-size: clamp(.78rem, 1.8vw, .95rem); }
html[lang="te"] .venue-name { padding-left: 0; font-weight: 400; }
html[lang="te"] .nav-link { font-size: .95rem; }
html[lang="te"] .btn-invite { font-size: .98rem; }
html[lang="te"] .scroll-cue { font-size: .92rem; }
html[lang="te"] .quote-text { font-size: clamp(1.9rem, 5vw, 3.9rem); line-height: 1.45; }
html[lang="te"] .finale-line { left: 29%; right: 29%; top: 38%; font-size: clamp(1rem, 3.1vw, 2rem); line-height: 1.5; }

/* ── Reduced motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .petals, .particles { display: none; }
}

/* ── Phones: "Swipe up for details" hint above the two floating buttons ── */
.swipe-hint { display: none; }
@media (max-width: 575.98px) {
  .hero { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8.6rem); }
  .swipe-hint {
    position: absolute;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 4.9rem);
    z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: .15rem;
    padding: .35rem 1rem;
    translate: -50% 0;
    color: var(--gold-deep);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .6s ease, visibility .6s;
  }
  .swipe-hint.is-gone { opacity: 0 !important; visibility: hidden; pointer-events: none; }
  .hero .hero-inner > .ornament-slot { display: none; }      /* the hint closes the opening screen on phones */
  .swipe-chevrons { display: grid; justify-items: center; line-height: 0; animation: swipeBounce 1.9s ease-in-out infinite; }
  .swipe-chevrons svg + svg { margin-top: -4px; opacity: .55; }
  .swipe-text { font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; color: var(--burgundy); }
  html[lang="te"] .swipe-text { font-size: .9rem; }
}
/* short phones: tighten the opening screen so the hint has room */
@media (max-width: 575.98px) and (max-height: 700px) {
  .hero { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 7.8rem); }
  .hero-ganesha img { width: 52px; }
  .hero-ganesha { margin-bottom: .2rem; }
  .hero-ring { width: 11vh; min-width: 70px; }
  .hero-names { font-size: min(13vw, 7vh); }
  .hero-invite { font-size: 1rem; }
  .hero-sub { margin-top: .3rem; font-size: 1.1rem; }
  .hero-date { margin-top: .4rem; }
  .swipe-hint { bottom: calc(env(safe-area-inset-bottom, 0px) + 4.6rem); }
}
@keyframes swipeBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* very short phones (under 650px tall): compact opening screen */
@media (max-width: 575.98px) and (max-height: 650px) {
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 3.8rem); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 7.2rem); }
  .hero-ganesha img, html[lang="te"] .hero-ganesha img { width: 42px; }
  .hero-ganesha figcaption, html[lang="te"] .hero-ganesha figcaption { margin-top: 0; font-size: .8rem; }
  .hero-ring, html[lang="te"] .hero-ring { width: 9vh; min-width: 54px; }
  .hero-names { font-size: min(12vw, 6.4vh); }
  html[lang="te"] .hero-names { font-size: 5vh; }
  .hero-invite, html[lang="te"] .hero-invite { font-size: .92rem; line-height: 1.3; }
  html[lang="te"] .hero-blessing { margin-bottom: .15rem; font-size: .8rem; }
  .hero-sub { margin-top: .2rem; font-size: 1rem; }
  .hero-date, html[lang="te"] .hero-date { margin-top: .3rem; font-size: .78rem; }
  .swipe-hint { bottom: calc(env(safe-area-inset-bottom, 0px) + 4.4rem); gap: 0; }
  .swipe-text, html[lang="te"] .swipe-text { font-size: .76rem; }
}
