:root {
  --cream: #f9f1ef;
  --paper: #fff9f3;
  --sage: #edf4ea;
  --rose: #bd7584;
  --rose-dark: #7d3a4b;
  --gold: #c7a769;
  --brown: #5a423a;
  --ink: #372a27;
  --muted: #8d7b75;
  --shadow: 0 24px 80px rgba(116, 78, 68, .12);
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
  overflow-x: hidden;
}
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Cormorant Garamond", serif;
  overflow-x: hidden;
}
body:not(.invite-open) main {
  opacity: 0;
  transform: scale(.985);
}
body.invite-open main {
  animation: siteReveal .9s ease both;
}
img, iframe { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff9f3, #f7e7e8);
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader.is-opening .envelope-loader {
  animation: envelopeOpenScale 1.05s cubic-bezier(.22, 1, .36, 1) both;
}
.loader.is-opening .loader-instruction {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}
.envelope-loader {
  position: relative;
  width: min(720px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.2rem, 5vh, 3.4rem);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.envelope-art {
  width: min(560px, 80vw);
  max-height: min(50vh, 490px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 55px rgba(85, 58, 35, .16));
}
.loader-instruction {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: .45rem;
  color: var(--rose);
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .68);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.loader-instruction > span {
  /* font-family: "Great Vibes", cursive; */
  font-family: serif;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: .95;
}
.loader-instruction small {
  font-family: Cinzel, serif;
  font-size: clamp(.68rem, 1vw, .86rem);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.envelope-loader:hover .envelope-art {
  filter: drop-shadow(0 34px 68px rgba(85, 58, 35, .2));
}
.shree {
  margin: 0;
  color: var(--rose);
  font-weight: 500;
  font-style: italic;
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(62, 43, 32, .88);
  color: var(--paper);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}
.music-toggle span::before { content: "♪"; font-size: 1.25rem; }
.music-toggle.is-muted span::before { content: "◼"; font-size: .8rem; }

.petals {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}
.petals span {
  position: absolute;
  top: -8vh;
  animation: fall linear infinite;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.08));
}
.scratch-burst {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 75;
  width: 0;
  height: 0;
  pointer-events: none;
}
.scratch-burst span {
  position: absolute;
  left: 0;
  top: 0;
  font-size: var(--size, 18px);
  animation: burstFlower 1.2s cubic-bezier(.16, 1, .3, 1) forwards;
  filter: drop-shadow(0 5px 8px rgba(79, 55, 34, .12));
}

section {
  position: relative;
  width: 100%;
  overflow: hidden;
}
main,
footer {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  overflow-x: hidden;
}
.paper { background: var(--paper); }
.sage { background: var(--sage); }
.hero {
  min-height: 100svh;
  display: grid;
  place-items: start center;
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 250, 238, .88), rgba(251, 246, 237, .5) 42%, rgba(251, 246, 237, .12) 70%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 247, 243, .46), rgba(255, 247, 243, .12) 48%, rgba(255, 247, 243, .46) 100%),
    radial-gradient(circle at 50% 46%, rgba(255, 250, 245, .88), rgba(255, 235, 232, .36) 35%, transparent 58%);
}
.hero-copy {
  width: min(760px, 92vw);
  padding-top: clamp(3.2rem, 5.4vh, 5.2rem);
  padding-bottom: clamp(3.4rem, 6vh, 5.5rem);
}
.ganesh {
  width: clamp(86px, 9vw, 126px);
  margin: 0 auto .7rem;
  filter: drop-shadow(0 12px 22px rgba(126, 74, 31, .18));
}
.shree {
  display: inline-block;
  margin-top: .25rem;
  color: var(--rose);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  letter-spacing: .01em;
}
.invite {
  position: relative;
  width: min(660px, 100%);
  margin: clamp(2.1rem, 4vh, 3.1rem) auto clamp(1.5rem, 3vh, 2.3rem);
  color: #1e1510;
  font-size: clamp(1.2rem, 1.75vw, 1.75rem);
  font-weight: 400;
  line-height: 1.48;
}

.hero em::before,
.hero em::after {
  content: "";
  display: inline-block;
  width: clamp(54px, 7vw, 92px);
  height: 1px;
  margin: 0 .85rem .32em;
  background: linear-gradient(90deg, transparent, rgba(196, 147, 77, .62), transparent);
  vertical-align: middle;
}
.name-logo {
  width: min(390px, 76vw);
  /*margin: 0 auto clamp(1.5rem, 3vh, 2.2rem);*/
  margin: 2.5rem auto clamp(2.5rem, 3vh, 3.2rem);
  filter: drop-shadow(0 16px 28px rgba(84, 56, 28, .16));
}
.hero h1 {
  margin: .1rem 0 .05rem;
  color: var(--rose-dark);
  /* font-family: "Great Vibes", cursive; */
  font-family: serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 10vw, 6rem);
  line-height: .98;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}
.parents {
  margin: .95rem 0 0;
  color: #1d130f;
  font-size: clamp(1.03rem, 1.42vw, 1.34rem);
  font-weight: bold;
  font-weight: 400;
  line-height: 1.45;
}
.hero em {
  display: block;
  margin: clamp(1.5rem, 3vh, 2.25rem) 0 .15rem;
  color: var(--rose-dark);
  /* font-family: "Great Vibes", cursive; */
  font-family: serif;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  font-weight: 400;
}

.scratch-section {
  /*min-height: 410px;*/
  display: grid;
  place-items: center;
  padding: 2.5rem 1.5rem;
}
.ornament {
  margin: 0 auto 2rem;
  color: var(--gold);
  text-align: center;
  font-size: 1.05rem;
}
.ornament.compact { margin: .5rem auto 1.4rem; }
.section-florals::before,
.section-florals::after {
  position: absolute;
  color: rgba(130, 173, 96, .36);
  font-size: clamp(1.7rem, 3vw, 3rem);
}
.section-florals::before { content: "🌿"; left: 1.8rem; top: 2rem; }
.section-florals::after { content: "🌸"; right: 1.8rem; top: 2.8rem; color: rgba(243, 128, 156, .3); }
.scratch-card {
  position: relative;
  width: min(450px, 86vw);
  height: 126px;
  border: 1px solid rgba(196, 147, 77, .7);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(90deg, #d9b98a, #f4dca8 50%, #c39a5f);
  box-shadow: 0 28px 70px rgba(191, 142, 120, .18);
}
.scratch-result {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .25rem;
  background: #fbf6ed;
  color: var(--rose-dark);
  text-align: center;
}
.countdown {
  display: none;
  grid-template-columns: repeat(4, minmax(48px, 1fr));
  gap: .55rem;
  width: min(390px, 86vw);
  margin: 1.35rem auto 0;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s ease, transform .55s ease, visibility .55s ease;
}
.countdown.is-visible {
  display: grid;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.countdown span {
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: .12rem;
  min-height: 68px;
  padding: .56rem .3rem .48rem;
  border-radius: 12px;
  background: rgba(251, 246, 237, .82);
  border: 1px solid rgba(196, 147, 77, .25);
  box-shadow: 0 14px 34px rgba(196, 147, 77, .12);
}
.countdown b {
  display: block;
  color: var(--rose-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}
.countdown small {
  display: block;
  color: #7f9a69;
  font-family: Cinzel, serif;
  font-size: .54rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}
.scratch-result small,
.label,
.event-detail span,
.rsvp-form label {
  font-family: Cinzel, serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
}
.scratch-result small { font-size: .72rem; color: #7f9a69; }
.scratch-result strong { font-size: 1.55rem; }
.scratch-result span { color: var(--muted); }
.scratch-card canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: block;
  cursor: grab;
  touch-action: none;
  transform: translateZ(0);
}

.events,
.shlok-section,
.families,
.rsvp,
.venue {
  padding: clamp(5rem, 9vw, 8rem) 1.5rem;
  text-align: center;
}

.function-grid {
  width: min(980px, 100%);
  margin: 2.8rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.6rem);
}

.function-card {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.3rem, 3vw, 2.4rem);
  border: 1px solid rgba(199, 167, 105, .46);
  border-radius: 28px 28px 86px 86px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .78), transparent 42%),
    linear-gradient(145deg, rgba(255, 248, 244, .92), rgba(239, 247, 235, .88));
  box-shadow: 0 22px 70px rgba(116, 78, 68, .1);
  overflow: hidden;
}

.function-card::before,
.function-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(199, 167, 105, .16);
  border-radius: 50%;
  pointer-events: none;
}

.function-card::before {
  left: -58px;
  top: -62px;
}

.function-card::after {
  right: -60px;
  bottom: -62px;
}

.function-date,
.function-venue span {
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.function-card h3 {
  margin: 0;
  color: var(--rose-dark);
  /* font-family: "Great Vibes", cursive; */
  font-family: serif;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  font-weight: 400;
  line-height: .95;
  padding-block: .12em;
}

.function-time {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

.function-venue {
  display: grid;
  gap: .35rem;
  justify-items: center;
  margin-top: .5rem;
}

.function-venue b {
  color: var(--brown);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.function-venue small {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}
h2, .rsvp h3 {
  margin: 0;
  color: var(--rose-dark);
  /* font-family: "Great Vibes", cursive; */
  font-family: serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 7vw, 3.7rem);
  line-height: 1.08;
  padding-block: .15em;
}
.event-card {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 2 / 3;
  min-height: 0;
  margin: 4.2rem auto 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: white;
  isolation: isolate;
}
.event-bg,
.event-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.event-bg {
  object-fit: cover;
  object-position: center;
  z-index: -3;
}
.event-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(45, 0, 11, .34), rgba(70, 0, 20, .18) 39%, rgba(40,0,12,.38)),
    radial-gradient(circle at 50% 42%, rgba(70,0,20,.08) 0 24%, rgba(30,0,8,.46) 84%);
}
.event-content {
  position: relative;
  z-index: 2;
  width: min(430px, 84%);
  margin: 0 auto;
  padding-top: clamp(12.5rem, 7vw, 10rem);
}
.event-content h3 {
  margin: 0 0 .4rem;
  /* font-family: "Great Vibes", cursive; */
  font-family: serif;
  font-weight: 400;
  font-size: clamp(3.3rem, 6vw, 5rem);
  line-height: 1.04;
  padding-block: .08em;
  text-shadow: 0 2px 14px rgba(0,0,0,.38);
}
.quote {
  margin: 1.1rem 0 3.8rem;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
}
.event-detail { margin: 1.55rem auto; }
.event-detail span {
  display: block;
  margin-bottom: .35rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
}
.event-detail b {
  display: block;
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.45;
}

.shlok-section {
  display: grid;
  align-content: center;
  justify-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 250, 238, .9), rgba(251, 246, 237, .7) 48%, rgba(251, 246, 237, .95)),
    url("../assets/media/wedding-hero.jpg") center / cover;
}
.shlok-ganesh {
  width: clamp(72px, 9vw, 106px);
  margin: 0 auto .65rem;
  filter: drop-shadow(0 12px 22px rgba(126, 74, 31, .16));
}
.shlok-card {
  width: min(680px, 100%);
  margin: .5rem auto 0;
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1.2rem, 4vw, 2.8rem);
  border: 1px solid rgba(196, 147, 77, .36);
  border-radius: 18px;
  background: rgba(255, 250, 240, .68);
  box-shadow: 0 24px 80px rgba(79, 55, 34, .08);
}
.sanskrit {
  margin: 0;
  color: var(--rose-dark);
  font-size: clamp(1.1rem, 3.3vw, 2.45rem);
  font-weight: 500;
  line-height: 1.7;
}
.translation {
  width: min(520px, 100%);
  margin: 1.1rem auto 0;
  color: #4f4038;
  font-size: clamp(0.88rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1.65;
}

.label {
  margin: 0;
  color: #789566;
  font-size: .8rem;
}
.family-card,
.rsvp-form,
.map-card {
  width: min(720px, 100%);
  margin: 2.5rem auto 0;
  border: 1px solid rgba(196, 147, 77, .58);
  border-radius: 18px;
  background: rgba(251, 246, 237, .54);
  box-shadow: 0 18px 60px rgba(80, 64, 45, .07);
}
.family-card { padding: 3rem 1.5rem; }
.family-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-family: Cinzel, serif;
  letter-spacing: .1em;
  line-height: 1.8;
}
.section-copy {
  width: min(760px, 100%);
  margin: 0.6rem auto 0;
  color: rgba(39, 29, 24, .76);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-style: italic;
}
.respond { margin-top: 4rem; }
.rsvp h3 {
  margin-top: .35rem;
  font-size: clamp(3.3rem, 5.4vw, 5.3rem);
}
.rsvp-form {
  display: grid;
  gap: 1.35rem;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.45rem, 5vw, 3.3rem);
  background: rgba(223, 234, 216, .54);
  box-shadow: 0 18px 60px rgba(80, 64, 45, .07);
  text-align: left;
}
.rsvp-field {
  display: grid;
  gap: .7rem;
  color: #6f8d61;
  font-size: .82rem;
  font-weight: 400;
}
.rsvp-field span {
  font-family: Cinzel, serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.rsvp-field input,
.rsvp-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 1rem;
  border: 1px solid rgba(196, 147, 77, .36);
  border-radius: 10px;
  background: rgba(255, 251, 246, .9);
  color: var(--ink);
  outline: 0;
}
.rsvp-field textarea {
  min-height: 120px;
  padding-block: .9rem;
  resize: vertical;
}
.rsvp-field input::placeholder,
.rsvp-field textarea::placeholder {
  color: rgba(120, 108, 99, .82);
}
.attendance {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(196, 147, 77, .36);
  border-radius: 10px;
  background: rgba(223, 234, 216, .36);
  color: var(--ink);
  font-family: "Cormorant Garamond", serif !important;
  font-size: 1.05rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.attendance input {
  width: 18px;
  height: 18px;
  accent-color: var(--rose);
}
.attendance span {
  line-height: 1.35;
}
.rsvp-form button,
.direction-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4a359, #b68137);
  color: white;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(196, 147, 77, .26);
}
.rsvp-form button {
  width: 100%;
  min-height: 56px;
  margin: .3rem auto 0;
  cursor: pointer;
}
.rsvp-contact {
  display: block;
  margin: .25rem 0 .2rem;
  color: #286b35;
  font-family: Cinzel, serif;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
.thanks {
  display: none;
  margin: .6rem 0 0;
  color: var(--rose-dark);
  text-align: center;
}
.rsvp-form.is-sent .thanks { display: block; }
.map-card {
  height: 360px;
  overflow: hidden;
}
.map-card iframe { width: 100%; height: 100%; border: 0; filter: saturate(.75) sepia(.05); }
.direction-btn {
  margin-top: 2rem;
  min-width: 180px;
  padding: 0 1.4rem;
}
.footer {
  position: relative;
  padding: clamp(4.8rem, 8vw, 7rem) 1.5rem clamp(4.4rem, 7vw, 6.4rem);
  background:
    radial-gradient(circle at 50% 20%, rgba(196, 147, 77, .12), transparent 36%),
    linear-gradient(180deg, #3b281e, #302016);
  color: var(--paper);
  text-align: center;
  border-top: 5px solid rgba(196, 147, 77, .55);
  isolation: isolate;
}
.footer::before,
.footer::after {
  content: "";
  position: absolute;
  bottom: clamp(1.2rem, 3vw, 2.6rem);
  width: clamp(150px, 20vw, 250px);
  height: clamp(170px, 24vw, 290px);
  opacity: .92;
  background:
    radial-gradient(circle at 24% 72%, #f6b5bd 0 10px, #d98291 11px 16px, transparent 17px),
    radial-gradient(circle at 34% 57%, #f8d1d5 0 7px, transparent 8px),
    radial-gradient(circle at 48% 38%, #f3bcc4 0 6px, transparent 7px),
    radial-gradient(circle at 68% 28%, #f6d5d7 0 5px, transparent 6px),
    radial-gradient(ellipse at 52% 76%, rgba(141, 160, 104, .9) 0 10px, transparent 11px),
    radial-gradient(ellipse at 62% 61%, rgba(141, 160, 104, .86) 0 8px, transparent 9px),
    linear-gradient(54deg, transparent 0 46%, rgba(169, 129, 76, .62) 47% 49%, transparent 50%);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .14));
  z-index: -1;
}
.footer::before {
  left: clamp(-2rem, -2vw, -.6rem);
  transform: rotate(-10deg);
}
.footer::after {
  right: clamp(-2rem, -2vw, -.6rem);
  transform: scaleX(-1) rotate(-10deg);
}
.footer-inner {
  position: relative;
  width: min(900px, 92vw);
  margin: 0 auto;
}
.footer .label {
  color: var(--paper);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  letter-spacing: .36em;
}
.footer h2 {
  margin: clamp(.8rem, 2vw, 1.25rem) 0 .35rem;
  color: var(--paper);
  font-size: clamp(2.2rem, 9vw, 5.4rem);
  line-height: .95;
  padding-block: .12em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  transform: translateX(clamp(-18px, -2.2vw, -8px));
}
.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin: .35rem auto clamp(1.6rem, 3vw, 2.3rem);
  color: var(--gold);
}
.footer-divider::before,
.footer-divider::after {
  content: "";
  width: clamp(72px, 12vw, 140px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 147, 77, .9), transparent);
}
.footer-divider span { color: #eecf91; font-size: 1.35rem; }
.footer-date {
  color: var(--paper);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-style: italic;
}
.footer-heart {
  margin: .75rem auto .45rem;
  color: var(--gold);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
}
.footer-tag {
  color: var(--paper);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-style: italic;
}
.footer p:not(.label) {
  margin: .45rem 0;
}

@keyframes fall {
  to { transform: translate3d(7vw, 112vh, 0) rotate(240deg); }
}
@keyframes burstFlower {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.2) rotate(0deg);
  }
  16% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.95) rotate(var(--rotate));
  }
}
@keyframes envelopeOpenScale {
  0% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  42% { opacity: 1; transform: translateY(-8px) scale(1.08); filter: blur(0); }
  100% { opacity: 0; transform: translateY(18px) scale(1.35); filter: blur(8px); }
}
@keyframes siteReveal {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
  .hero {
    min-height: 940px;
    place-items: start center;
  }
  .hero-bg { object-position: center top; }
  .hero-copy { padding-top: 4rem; }
  .invite {
    width: min(430px, 100%);
    margin-top: 1.8rem;
    margin-bottom: 1.45rem;
    font-size: 1.02rem;
    line-height: 1.65;
  }
  .hero h1 {
    font-size: clamp(4.6rem, 18vw, 6.15rem);
    line-height: 1.02;
  }
  .parents {
    margin-top: 1.2rem;
    font-size: 1.3rem;
    font-weight: bold;
  }
  .hero em { margin-top: 1.65rem; }
  .scratch-section { min-height: 400px; padding: 4rem 1.1rem; }
  .function-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .function-card {
    min-height: 310px;
    border-radius: 24px 24px 68px 68px;
  }
  .function-card h3 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }
  .map-card { height: 420px; }
  .footer::before,
  .footer::after {
    width: 120px;
    height: 150px;
    opacity: .62;
  }
  .footer h2 { font-size: clamp(3.6rem, 15vw, 5.2rem); }
}

/* ========================================================================== 
   PREMIUM EDITORIAL FINISH
   ========================================================================== */
:root {
  --cream: #f5eee3;
  --paper: #fffaf2;
  --sage: #e5eee4;
  --rose: #a85d70;
  --rose-dark: #6f273b;
  --gold: #b88a3d;
  --brown: #4d3932;
  --ink: #302421;
  --muted: #746660;
  --forest: #23493f;
  --shadow: 0 28px 75px rgba(65, 45, 38, .13);
}

body {
  background:
    radial-gradient(circle at 10% 10%, rgba(184, 138, 61, .07), transparent 24%),
    var(--paper);
}

.loader {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .9), transparent 42%),
    linear-gradient(145deg, #fffaf2, #edf2e8);
}

.hero::after {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, .30), rgba(255, 250, 242, .06) 48%, rgba(255, 250, 242, .42) 100%),
    radial-gradient(circle at 50% 46%, rgba(255, 252, 246, .82), rgba(239, 232, 218, .28) 38%, transparent 62%);
}

.hero h1,
h2,
.rsvp h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 {
  color: var(--rose-dark);
  text-shadow: 0 1px 0 #fff, 0 12px 30px rgba(111, 39, 59, .12);
}

.paper {
  background:
    radial-gradient(circle at 8% 12%, rgba(184, 138, 61, .06), transparent 25%),
    var(--paper);
}

.sage {
  background:
    radial-gradient(circle at 92% 14%, rgba(184, 138, 61, .08), transparent 25%),
    linear-gradient(145deg, #edf3e9, #dfe9df);
}

.celebrations-section {
  padding: clamp(5.5rem, 9vw, 8rem) 1.25rem clamp(6rem, 10vw, 9rem);
  text-align: center;
}

.celebration-images {
  width: min(960px, 100%);
  margin: clamp(2.2rem, 5vw, 4rem) auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: start;
}

.celebration-image-frame {
  position: relative;
  margin: 0;
  padding: clamp(5px, .7vw, 8px);
  overflow: hidden;
  border: 1px solid rgba(184, 138, 61, .52);
  border-radius: 6px;
  background: linear-gradient(145deg, #e6c883, #a9782d 50%, #f3dfaa);
  box-shadow: 0 30px 70px rgba(63, 68, 50, .18);
}

.celebration-image-frame::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(255, 250, 235, .44);
  pointer-events: none;
}

.celebration-image-frame img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}

.celebration-image-frame:hover img {
  transform: scale(1.018);
}

.gallery-section {
  padding: clamp(5.5rem, 9vw, 8rem) clamp(1rem, 3vw, 2rem) clamp(6rem, 10vw, 9rem);
}

.gallery-heading {
  text-align: center;
}

.gallery-grid {
  width: min(1180px, 100%);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  columns: 3;
  column-gap: clamp(.7rem, 1.5vw, 1.15rem);
}

.gallery-item {
  position: relative;
  width: 100%;
  margin: 0 0 clamp(.7rem, 1.5vw, 1.15rem);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: #e8ddca;
  box-shadow: 0 18px 42px rgba(67, 48, 42, .13);
  cursor: zoom-in;
  break-inside: avoid;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 250, 240, .48);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), filter .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.4rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(24, 30, 27, .94);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-lightbox-frame {
  width: min(100%, 1050px);
  height: min(86vh, 900px);
  margin: auto;
  display: grid;
  place-items: center;
}

.gallery-lightbox-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(223, 190, 120, .56);
  border-radius: 50%;
  background: rgba(255, 250, 242, .08);
  color: #fffaf2;
  cursor: pointer;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}

.gallery-lightbox-nav {
  width: 48px;
  height: 48px;
  font-size: 2.1rem;
}

.shlok-section {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 252, 244, .96), rgba(245, 238, 226, .88) 52%, rgba(232, 239, 226, .96));
}

.shlok-card,
.family-card,
.rsvp-form,
.map-card {
  border-radius: 7px;
  border-color: rgba(184, 138, 61, .44);
  box-shadow: var(--shadow);
}

.family-card,
.rsvp-form {
  background: rgba(255, 250, 242, .72);
}

.rsvp-form button,
.direction-btn {
  background: linear-gradient(135deg, #c49a51, #9f712d);
  box-shadow: 0 16px 34px rgba(159, 113, 45, .22);
}

.footer {
  background:
    radial-gradient(circle at 50% 15%, rgba(198, 158, 84, .15), transparent 38%),
    linear-gradient(160deg, #294b42, #17372f);
  border-top-color: rgba(198, 158, 84, .68);
}

@media (max-width: 760px) {
  .celebration-images {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
  }

  .gallery-grid {
    columns: 2;
    column-gap: .65rem;
  }

  .gallery-item {
    margin-bottom: .65rem;
  }

  .gallery-lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding: 3.5rem .5rem 1rem;
  }

  .gallery-lightbox-nav {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    columns: 1;
    width: min(340px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .celebration-image-frame img,
  .gallery-item img,
  .gallery-lightbox {
    transition: none;
  }
}

/* Premium family editorial */
.families {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 252, 244, .88), transparent 44%),
    radial-gradient(circle at 8% 15%, rgba(184, 138, 61, .10), transparent 24%),
    linear-gradient(145deg, #edf3e9, #dce8dc);
}

.families > .section-florals {
  opacity: .52;
}

.family-card {
  position: relative;
  isolation: isolate;
  width: min(1120px, 100%);
  min-height: 430px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(3.2rem, 6vw, 5.4rem) clamp(1.4rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid rgba(184, 138, 61, .56);
  border-radius: 7px;
  background:
    linear-gradient(rgba(255, 252, 245, .94), rgba(250, 245, 234, .94)) padding-box,
    linear-gradient(135deg, #d9b66e, #fff0bd, #9d6d27) border-box;
  box-shadow: 0 34px 85px rgba(48, 68, 57, .15), inset 0 0 70px rgba(184, 138, 61, .05);
}

.family-card::before,
.family-card::after {
  content: "\2766";
  position: absolute;
  z-index: -1;
  color: rgba(184, 138, 61, .22);
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 1;
}

.family-card::before {
  top: -1rem;
  left: 1rem;
  transform: rotate(-32deg);
}

.family-card::after {
  right: 1rem;
  bottom: -1rem;
  transform: rotate(148deg);
}

.family-arch {
  position: absolute;
  z-index: -1;
  top: 1rem;
  left: 50%;
  width: min(390px, 58%);
  height: 240px;
  transform: translateX(-50%);
  border: 1px solid rgba(184, 138, 61, .16);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.family-arch::before,
.family-arch::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(35, 73, 63, .06);
  border-bottom: 0;
  border-radius: inherit;
}

.family-arch::after {
  inset: 20px;
}

.family-intro {
  margin: 0 0 clamp(2rem, 4vw, 3.2rem);
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: clamp(.68rem, 1vw, .82rem);
  letter-spacing: .24em;
  text-transform: uppercase;
}

.family-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 190px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.family-side {
  position: relative;
  display: grid;
  justify-items: center;
}

.family-side > span {
  margin-bottom: 1.25rem;
  color: #6e876d;
  font-family: Cinzel, serif;
  font-size: clamp(.66rem, .9vw, .78rem);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.family-side h3 {
  margin: 0;
  color: var(--rose-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 3.1vw, 2.65rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.family-side i {
  margin: .45rem 0 .35rem;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
}

.family-side p {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-style: italic;
}

.family-monogram {
  display: grid;
  justify-items: center;
  gap: .75rem;
}

.family-monogram img {
  width: min(190px, 100%);
  filter: drop-shadow(0 14px 22px rgba(108, 75, 31, .13));
}

.family-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(transparent, rgba(184, 138, 61, .8), transparent);
}

.family-closing-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
  font-size: .8rem;
}

.family-closing-ornament span {
  width: clamp(45px, 7vw, 80px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 61, .75));
}

.family-closing-ornament span:last-child {
  transform: rotate(180deg);
}

@media (max-width: 760px) {
  .family-card {
    min-height: 0;
    padding: 3.5rem 1.15rem 2.5rem;
  }

  .family-editorial-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .family-monogram {
    order: 2;
  }

  .family-side-groom {
    order: 1;
  }

  .family-side-bride {
    order: 3;
  }

  .family-monogram img {
    width: min(180px, 58vw);
  }

  .family-line {
    width: 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 138, 61, .8), transparent);
  }
}
