:root {
  color-scheme: dark;
  --maroon: #400017;
  --maroon-shadow: #2b000f;
  --maroon-glow: #5a0a25;
  --gold: #f2d17d;
  --gold-bright: #ffe49c;
  --gold-soft: #dbc17d;
  --text: #f5dd9c;
  --edge: clamp(14px, 2.8vw, 42px);
  --page-side: clamp(56px, 9vw, 130px);
  --invite-rise: clamp(14px, 1.53vw, 21px);
  --ease: cubic-bezier(.22,.72,.19,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; scroll-padding-top: 0; background: var(--maroon); }
body {
  margin: 0;
  min-width: 280px;
  color: var(--text);
  background: radial-gradient(ellipse 100% 78% at 50% 12%, var(--maroon-glow) 0%, var(--maroon) 48%, var(--maroon-shadow) 100%);
  font-family: "Cormorant Garamond", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lang-hi { font-family: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.site-skin {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 78% at 50% 12%, var(--maroon-glow) 0%, var(--maroon) 48%, var(--maroon-shadow) 100%);
}

.language-header {
  position: fixed;
  z-index: 80;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  right: max(var(--edge), env(safe-area-inset-right, 0px));
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  color: var(--gold-bright);
  background: rgba(55, 5, 19, .74);
  border: 1px solid rgba(255, 222, 145, .54);
  border-radius: 999px;
  box-shadow: 0 5px 22px rgba(20, 0, 6, .28);
  backdrop-filter: blur(8px);
}
.language-button {
  min-height: 34px;
  padding: 2px 5px;
  border: 0;
  color: rgba(255, 228, 156, .74);
  background: transparent;
  cursor: pointer;
  font-family: "Cormorant Garamond", "Tiro Devanagari Hindi", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .025em;
}
.language-button.is-selected { color: #fff0bf; text-shadow: 0 0 12px rgba(255, 218, 113, .55); }
.language-button:hover { color: #fff7dc; }
.language-divider { opacity: .5; font-size: 13px; }
:focus-visible { outline: 2px solid #fff1bf; outline-offset: 4px; }
.music-toggle {
  position: fixed;
  z-index: 100;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--gold-bright);
  background: rgba(55, 5, 19, .86);
  border: 1px solid rgba(255, 222, 145, .62);
  border-radius: 999px;
  box-shadow: 0 5px 22px rgba(20, 0, 6, .34);
  backdrop-filter: blur(8px);
  font-family: "Cormorant Garamond", "Tiro Devanagari Hindi", serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.music-toggle[data-playing="true"] { background: rgba(93, 20, 37, .93); }
.music-icon { font-size: 19px; line-height: 1; }

.opening-screen {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1500ms var(--ease), visibility 1500ms;
  visibility: visible;
}
.opening-screen.is-leaving { opacity: 0; visibility: hidden; }
.opening-frame { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; opacity: .68; }
.opening-frame-mobile { display: none; }
.opening-peacock { position: absolute; z-index: 1; top: 50%; display: block; width: clamp(224px, 40vw, 530px); height: auto; object-fit: contain; transform: translate(-50%, -50%); opacity: .98; }
.opening-peacock-left { left: 25%; }
.opening-peacock-right { left: 75%; }
.opening-logo {
  position: relative;
  z-index: 2;
  width: clamp(225px, 29vw, 465px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(14, 0, 4, .42));
  transition: opacity 1350ms ease, transform 1350ms var(--ease);
}
body.intro-closing .opening-logo { opacity: 0; transform: scale(.96); }
body.intro-closing .opening-peacock { opacity: 0; transition: opacity 1500ms ease; }

.star-field, .petal-field { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.star-field { z-index: 4; }
.petal-field { z-index: 5; }
.star, .petal { position: absolute; display: block; will-change: transform, opacity; }
.star {
  width: var(--size);
  height: var(--size);
  left: var(--left);
  top: var(--top);
  opacity: 0;
  color: #fff4c9;
  filter: drop-shadow(0 0 5px rgba(255, 207, 86, .9));
  animation: star-drift var(--duration) ease-in-out var(--delay) infinite;
}
.star svg { display: block; width: 100%; height: 100%; }
.petal {
  width: var(--size);
  height: calc(var(--size) * 1.35);
  left: var(--left);
  top: -12vh;
  opacity: .67;
  filter: drop-shadow(0 2px 5px rgba(235, 179, 58, .25));
  animation: petal-fall var(--duration) linear var(--delay) infinite;
}
.petal svg { width: 100%; height: 100%; overflow: visible; }
@keyframes star-drift {
  0% { opacity: 0; transform: translate3d(0, 7px, 0) scale(.7) rotate(0); }
  15% { opacity: .75; }
  48% { transform: translate3d(var(--drift), -18px, 0) scale(1.06) rotate(35deg); opacity: .58; }
  78% { opacity: .8; }
  100% { opacity: 0; transform: translate3d(calc(var(--drift) * -1), 9px, 0) scale(.76) rotate(70deg); }
}
@keyframes petal-fall {
  0% { transform: translate3d(0, -12vh, 0) rotate(0deg); }
  50% { transform: translate3d(var(--sway), 55vh, 0) rotate(210deg); }
  100% { transform: translate3d(calc(var(--sway) * -.45), 112vh, 0) rotate(430deg); }
}

@keyframes rotate-clockwise { to { transform: rotate(360deg); } }
@keyframes rotate-counter { to { transform: rotate(-360deg); } }
html.page-hidden .petal,
html.page-hidden .star,
html.page-hidden .page-flower img,
html.page-hidden .ganesha-back,
html.page-hidden .page-peacock,
html.page-hidden .page-mandala-c1 { animation-play-state: paused; }
main { position: relative; z-index: 6; }
.invitation-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(82px, 11vh, 124px) var(--page-side) clamp(70px, 10vh, 104px);
  overflow: clip;
  scroll-margin-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.page-copy {
  position: relative;
  z-index: 5;
  width: min(100%, 1000px);
  margin: auto;
  text-align: center;
  color: var(--text);
  opacity: .13;
  transform: translateY(16px);
  transition: opacity 1100ms ease, transform 1200ms var(--ease);
}
.invitation-page.is-current .page-copy { opacity: 1; transform: translateY(0); }
body[data-page="venue"] .page-invite .page-copy,
body[data-page="schedule"] .page-venue .page-copy { opacity: 0; transform: translateY(-48px); }
body.intro-pending .page-invite .page-copy { opacity: 0; transform: translateY(18px); }
body.intro-complete .page-invite .page-copy { opacity: 1; transform: translateY(0); transition-delay: 180ms; }
body.intro-pending main, body.intro-closing main { visibility: hidden; }

.page-border-art {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .16;
  transform: translateY(7%);
  transition: opacity 1100ms ease, transform 1300ms var(--ease);
}
.page-border-art img { display: block; width: 100%; height: 100%; object-fit: fill; }
.event-frame {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.event-frame-corner {
  position: absolute;
  display: block;
  width: min(28vw, 36svh, 380px);
  aspect-ratio: 1;
  object-fit: contain;
  opacity: .12;
  transition: opacity 1100ms ease;
}
.event-frame-tl { top: 0; left: 0; }
.event-frame-tr { top: 0; right: 0; transform: scaleX(-1); }
.event-frame-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.event-frame-br { right: 0; bottom: 0; transform: scale(-1); }
.page-events.is-current .event-frame-corner { opacity: .78; }

.page-be1 {
  position: absolute;
  z-index: 3;
  top: 50%;
  height: min(68svh, 600px);
  width: auto;
  max-width: none;
  object-fit: contain;
  opacity: .78;
  pointer-events: none;
  transform: translateY(-50%);
}
.page-be1-left { left: calc(clamp(76px, 8.5vw, 122px) + clamp(21.8px, 2.458vw, 33px)); }
.page-be1-right { right: calc(clamp(76px, 8.5vw, 122px) + clamp(21.8px, 2.458vw, 33px)); transform: translateY(-50%) scaleX(-1); }
.invitation-page.is-current .page-border-art { opacity: .9; transform: translateY(0); }
body[data-page="schedule"] .page-venue .page-border-art { opacity: 0; transform: translateY(-7%); }
.page-mandala-c1 {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: clamp(300px, 38vw, 560px);
  aspect-ratio: 1;
  object-fit: contain;
  opacity: .15;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  animation: mandala-spin 100s linear infinite;
}
@keyframes mandala-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.page-flower, .page-peacock {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.page-flower img { display: block; width: 100%; height: 100%; object-fit: contain; }
.page-flower-bottom {
  left: 50%;
  bottom: 0;
  width: min(38.4vw, 60svh, 540px);
  aspect-ratio: 1;
  opacity: .82;
  transform: translate(-50%, 50%);
}
.page-flower-top-left {
  top: 0;
  left: 0;
  width: min(38vw, 60svh, 520px);
  aspect-ratio: 1;
  opacity: .7;
  transform: translate(-50%, -50%);
}
.page-flower-top-right {
  top: 0;
  right: 0;
  width: min(38vw, 60svh, 520px);
  aspect-ratio: 1;
  opacity: .7;
  transform: translate(50%, -50%);
}
.page-flower.spin-clockwise img { animation: rotate-clockwise 92s linear infinite; }
.page-flower.spin-counter img { animation: rotate-counter 92s linear infinite; }
.page-peacock picture, .page-peacock img { display: block; width: 100%; height: auto; }
.page-peacock img { object-fit: contain; }
.page-peacock-left {
  left: -5.5%;
  bottom: clamp(-54px, -6svh, -28px);
  width: min(23vw, 40svh, 390px);
  transform-origin: 54% 90%;
  opacity: .9;
  animation: peacock-sway-left 9s ease-in-out infinite;
}
.page-peacock-right {
  right: -5.5%;
  bottom: clamp(-54px, -6svh, -28px);
  width: min(23vw, 40svh, 390px);
  transform-origin: 48% 90%;
  opacity: .9;
  animation: peacock-sway-right 10s ease-in-out infinite;
}
@keyframes peacock-sway-left { 0%,100% { transform: rotate(-1.8deg); } 50% { transform: rotate(1.8deg); } }
@keyframes peacock-sway-right { 0%,100% { transform: rotate(1.7deg); } 50% { transform: rotate(-1.7deg); } }

.page-invite { padding-top: clamp(88px, 10vh, 118px); padding-bottom: clamp(76px, 9vh, 104px); }
.invite-copy { width: min(100%, 900px); min-height: 0; display: flex; flex-direction: column; padding-top: 0; }
.page-invite .invite-copy { top: calc(-1 * clamp(78px, 8vh, 90px) - var(--invite-rise)); }
.invitation-prelude { position: relative; top: calc(-1 * clamp(8px, 1.2vh, 12px)); flex: none; }
.ganesha-lockup { position: relative; width: clamp(136px, 15.3vw, 205px); aspect-ratio: 1; margin: -10px auto clamp(3px, .7vh, 8px); display: grid; place-items: center; transform: translateY(18px); }
.ganesha-lockup img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ganesha-back { width: 96.4% !important; height: 96.4% !important; inset: 1.8% !important; transform-origin: center; animation: rotate-clockwise 72s linear infinite; }
.ganesha-front { z-index: 1; width: 72% !important; height: 72% !important; inset: 14% !important; filter: drop-shadow(0 4px 8px rgba(30, 0, 6, .4)); }
.auspicious-heading {
  margin: 0 0 .25rem;
  color: var(--gold-bright);
  font-family: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  font-size: clamp(16px, 1.94vw, 23.5px);
  font-weight: 400;
  letter-spacing: .035em;
  text-shadow: 0 1px 11px rgba(250, 203, 88, .24);
}
.sanskrit-verse {
  max-width: 710px;
  margin: 0 auto clamp(14px, 2.2vh, 24px);
  color: #f7dda0;
  font-family: "Inknut Antiqua", "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  font-size: clamp(11px, 1.0935vw, 13.8px);
  line-height: 1.88;
  letter-spacing: .005em;
  text-shadow: 0 1px 10px rgba(15, 0, 3, .55);
}
.language-panel[hidden] { display: none !important; }
.language-panel { animation: copy-arrive 750ms var(--ease) both; }
.invite-copy > .language-panel:not([hidden]) { display: flex; flex: none; flex-direction: column; }
.couple-block { display: flex; flex: none; flex-direction: column; justify-content: center; }
.invite-copy .couple-block { transform: translateY(-18px); }
.partner-block { width: 100%; text-align: center; }
.invitation-footer { position: relative; flex: none; margin-top: 8px; padding-top: 0; transform: translateY(-38px); }
@keyframes copy-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.family-intro, .section-kicker {
  margin: 0 0 clamp(11px, 1.4vh, 16px);
  color: var(--gold-soft);
  font-size: clamp(14px, 1.25vw, 16px);
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.panel-en .family-intro { font-size: clamp(12px, 1.05vw, 14px); }
.couple-name {
  margin: 0;
  color: var(--gold-bright);
  font-family: "Great Vibes", cursive;
  font-size: clamp(50px, 6vw, 78px);
  line-height: .98;
  font-weight: 400;
  text-shadow: 0 3px 17px rgba(16, 0, 4, .5), 0 0 14px rgba(231, 190, 83, .2);
}
.family-line {
  max-width: 100%;
  margin: 8px auto 0;
  color: var(--text);
  font-size: clamp(16px, 1.85vw, 21px);
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 1px 9px rgba(20, 0, 5, .7);
}
.ampersand {
  margin: clamp(10px, 1.5vh, 16px) 0 clamp(5px, .9vh, 10px);
  color: var(--gold);
  font-family: "Great Vibes", cursive;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
}
.invitation-line {
  margin: clamp(16px, 2.2vh, 24px) 0 6px;
  color: var(--gold-bright);
  font-size: clamp(15.3px, 1.8vw, 21.6px);
  letter-spacing: .06em;
  font-weight: 600;
}
.wedding-date {
  margin: 5px 0 0;
  color: var(--gold-bright);
  font-family: "Lora", "Tiro Devanagari Hindi", serif;
  font-size: clamp(17.1px, 2.07vw, 24.3px);
  font-weight: 600;
  letter-spacing: .07em;
}
.hindi-name { font-family: "Amita", "Tiro Devanagari Hindi", serif; font-size: clamp(28px, 3.25vw, 43px); line-height: 1.25; margin: 7px 0; }
.hindi-family-intro { font-family: "Tiro Devanagari Hindi", serif; text-transform: none; letter-spacing: .02em; font-size: clamp(16px, 1.75vw, 20px); margin-bottom: 8px; }
.hindi-family { font-family: "Tiro Devanagari Hindi", serif; font-size: clamp(16px, 1.8vw, 21px); line-height: 1.55; margin: 3px auto 0; max-width: 770px; text-align: center; }
.hindi-ampersand { font-family: "Amita", "Tiro Devanagari Hindi", serif; font-size: clamp(28px, 3.1vw, 40px); margin: 5px 0 8px; }
.hindi-invitation { font-family: "Tiro Devanagari Hindi", serif; margin: 15px 0 4px; font-size: clamp(14.5px, 1.7vw, 19.5px); line-height: 1.55; }
.hindi-date { font-family: "Lora", "Tiro Devanagari Hindi", serif; font-size: clamp(16.2px, 1.89vw, 21.6px); line-height: 1.55; }
.scroll-cue {
  position: absolute;
  z-index: 7;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 32px;
  opacity: .75;
  animation: cue-bob 2.8s ease-in-out infinite;
}
@keyframes cue-bob { 0%,100% { translate: 0 0; } 50% { translate: 0 5px; } }

.page-venue, .page-events { padding-top: clamp(100px, 14vh, 160px); padding-bottom: clamp(90px, 13vh, 145px); }
.venue-copy { width: min(100%, 880px); }
.section-kicker { margin-bottom: 18px; font-family: "Cormorant Garamond", "Tiro Devanagari Hindi", serif; }
.venue-name {
  margin: 0 auto;
  color: var(--gold-bright);
  font-family: "Great Vibes", "Cormorant Garamond", serif;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.12;
  text-shadow: 0 3px 18px rgba(12, 0, 4, .48), 0 0 18px rgba(240, 200, 93, .15);
}
.hindi-venue { font-family: "Amita", "Tiro Devanagari Hindi", serif; font-size: clamp(34px, 5.1vw, 62px); line-height: 1.3; }
.venue-address {
  max-width: 710px;
  margin: clamp(16px, 2.3vh, 26px) auto 0;
  color: var(--text);
  font-size: clamp(19px, 2.35vw, 27px);
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(15, 0, 4, .72);
}
.hindi-address { font-family: "Tiro Devanagari Hindi", serif; font-size: clamp(17px, 2.1vw, 23px); }
.map-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: clamp(24px, 4vh, 42px);
  padding: 12px 25px;
  border: 1px solid rgba(255, 225, 150, .82);
  border-radius: 999px;
  color: #fff0bf;
  background: linear-gradient(135deg, rgba(121, 23, 42, .92), rgba(63, 5, 20, .96));
  box-shadow: 0 9px 30px rgba(11, 0, 4, .34), inset 0 0 0 1px rgba(255, 236, 190, .12);
  text-decoration: none;
  font-size: clamp(16px, 1.8vw, 20px);
  letter-spacing: .035em;
  transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease;
}
.map-button:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(11, 0, 4, .46), 0 0 18px rgba(242, 207, 122, .18); }
.map-arrow { font-family: Arial, sans-serif; font-size: 20px; }

.events-copy { width: min(100%, 950px); }
.event-groups { width: min(100%, 880px); margin: auto; }
.event-group { padding: clamp(10px, 2vh, 22px) 0; }
.event-date {
  margin: 0 0 clamp(10px, 1.6vh, 17px);
  color: var(--gold-bright);
  font-family: "Lora", "Tiro Devanagari Hindi", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: .025em;
  text-shadow: 0 2px 14px rgba(18, 0, 5, .62);
}
.event-line {
  margin: 7px 0;
  color: var(--text);
  font-size: clamp(23px, 2.9vw, 34px);
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(14, 0, 5, .78);
}
.event-time { color: var(--gold-bright); font-family: "Lora", "Tiro Devanagari Hindi", serif; }
.panel-en .event-time { white-space: nowrap; }
.event-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: clamp(3px, 1vh, 12px) 0; color: var(--gold); opacity: .82; }
.event-divider::before, .event-divider::after { content: ""; width: clamp(50px, 12vw, 145px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.event-divider::after { transform: scaleX(-1); }
.event-divider span { font-size: 16px; }
.hindi-events { font-family: "Tiro Devanagari Hindi", serif; }
.hindi-events .event-date { font-family: "Lora", "Amita", "Tiro Devanagari Hindi", serif; font-size: clamp(32px, 4.4vw, 48px); }
.hindi-events .event-line { font-size: clamp(21px, 2.6vw, 29px); line-height: 1.75; margin: 8px auto; max-width: 780px; }

.event-ending { width: min(100%, 800px); margin: clamp(16px, 3vh, 32px) auto 0; }
.event-ending .event-divider { margin: 0 auto clamp(12px, 2vh, 20px); }
.event-ending p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--gold-bright);
  font-size: clamp(21px, 2.6vw, 31px);
  font-style: italic;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(14, 0, 5, .78);
}
.hindi-ending { font-family: "Tiro Devanagari Hindi", serif; }
.hindi-ending p { font-size: clamp(19px, 2.35vw, 27px); line-height: 1.8; font-style: normal; }
.event-contact { margin: clamp(28px, 4vh, 46px) auto 0; color: var(--gold-bright); text-align: center; }
.event-contact .event-divider { margin: 0 auto clamp(12px, 2vh, 20px); }
.event-contact p { margin: 4px 0; text-shadow: 0 2px 12px rgba(14, 0, 5, .78); }
.event-contact .contact-brand { font-family: "Cormorant Garamond", "Tiro Devanagari Hindi", serif; font-size: clamp(19px, 2.2vw, 25px); letter-spacing: .04em; }
.event-contact .contact-number { font-family: "Lora", serif; font-size: clamp(18px, 1.9vw, 22px); letter-spacing: .05em; line-height: 1.45; }
.hindi-contact .contact-brand { font-family: "Tiro Devanagari Hindi", serif; }

@media (min-width: 901px) {
  .page-events { padding-block: clamp(44px, 6vh, 72px); }
  .event-group { padding: clamp(4px, .8vh, 10px) 0; }
  .event-date { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: clamp(4px, .9vh, 10px); }
  .event-line { font-size: clamp(21px, 2.1vw, 29px); line-height: 1.3; margin: 3px 0; }
  .hindi-events .event-date { font-size: clamp(29px, 3.2vw, 43px); }
  .hindi-events .event-line { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.45; margin: 4px auto; }
  .event-divider { margin-block: clamp(0px, .6vh, 7px); }
  .event-ending { margin-top: clamp(8px, 1.3vh, 15px); }
  .event-ending p { font-size: clamp(19px, 2vw, 26px); line-height: 1.25; }
  .hindi-ending p { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.45; }
  .event-contact { margin-top: clamp(10px, 1.8vh, 18px); }
  .event-contact .event-divider { margin-bottom: clamp(5px, .8vh, 9px); }
  .event-contact .contact-brand { font-size: clamp(17px, 1.7vw, 21px); }
  .event-contact .contact-number { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.25; }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  :root { --page-side: clamp(34px, 9vw, 48px); --edge: 10px; --invite-rise: clamp(52px, 13.6vw, 70px); --ganesha-drop: clamp(19.5px, 5.1vw, 26px); --ganesha-nudge: clamp(43.3px, 11.33vw, 58px); --be1-inward: max(0px, calc(clamp(15.36px, 5.12vw, 20.48px) - min(2.2svh, 18px))); }
  .opening-frame-desktop { display: none; }
  .opening-frame-mobile { display: block; opacity: .58; }
  .language-header { top: calc(env(safe-area-inset-top, 0px) + 12px); right: 11px; }
  .language-switch { gap: 7px; padding: 5px 10px; }
  .language-button { min-height: 32px; font-size: 15px; }
  .opening-screen { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .opening-peacock { max-width: none; z-index: 3; }
  .opening-peacock-left { left: 18.75%; top: 43.75%; width: min(49vw, 384px); transform: translate(-50%, -50%); }
  .opening-peacock-right { left: 81.25%; top: 56.25%; right: auto; width: min(53vw, 416px); transform: translate(-50%, -50%); }
  .opening-logo { grid-column: 2; grid-row: 1; width: clamp(208px, 58vw, 320px); }
  .music-toggle { right: max(11px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); min-height: 40px; padding: 7px 12px; font-size: 14px; }
  html { scroll-snap-type: y mandatory; }
  .invitation-page {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    padding-block-start: max(calc(env(safe-area-inset-top, 0px) + 58px), 8svh);
    padding-block-end: max(calc(env(safe-area-inset-bottom, 0px) + 58px), 7svh);
    overflow-x: clip;
    overflow-y: visible;
    scroll-snap-stop: always;
  }
  .page-invite { padding-block-start: max(calc(env(safe-area-inset-top, 0px) + 54px), 7svh); padding-block-end: max(calc(env(safe-area-inset-bottom, 0px) + 54px), 7svh); }
  .page-be1 { height: min(50.4svh, 420px); opacity: .42; }
  .page-be1-left { left: calc(-120px + var(--be1-inward)); }
  .page-be1-right { right: calc(-120px + var(--be1-inward)); }
  .page-copy { width: 100%; }
  .invite-copy { min-height: 0; padding-top: 0; }
  .invite-copy > .language-panel:not([hidden]) { margin-top: clamp(34px, 10vw, 42px); }
  .page-invite .invite-copy { top: calc(-1 * clamp(38px, 5.7vh, 48px) - var(--invite-rise)); }
  .page-invite .invitation-prelude { top: -12px; }
  .ganesha-lockup { width: clamp(130px, 34vw, 174px); margin-top: -5px; margin-bottom: 2px; transform: translateY(calc(-16px + 48.33%)); }
  .auspicious-heading, .sanskrit-verse { transform: translateY(calc(var(--ganesha-drop) + var(--ganesha-nudge))); }
  .ganesha-back { width: 108.5% !important; height: 108.5% !important; inset: -4.25% !important; }
  .ganesha-front { width: 72% !important; height: 72% !important; inset: 14% !important; }
  .auspicious-heading { font-size: 18px; }
  .sanskrit-verse { max-width: 340px; font-size: 12.6px; line-height: 1.82; margin-bottom: 15px; }
  .family-intro { font-size: 15px; margin-bottom: 16px; }
  .panel-en .family-intro { font-size: 13px; }
  .invite-copy .couple-block { position: relative; top: var(--ganesha-nudge); transform: translateY(-8px); }
  .invite-copy .invitation-footer { position: relative; top: var(--ganesha-nudge); }
  .couple-name { font-size: clamp(50px, 15vw, 64px); }
  .family-line { max-width: 350px; font-size: 18px; line-height: 1.72; margin-top: 10px; }
  .panel-en .couple-block .partner-block .family-line { font-size: clamp(15px, 4.1vw, 16px); line-height: 1.55; }
  .ampersand { font-size: 37px; margin: 14px 0 11px; }
  .invitation-line { font-size: 16.2px; line-height: 1.7; margin-top: 24px; }
  .wedding-date { font-size: 19.8px; margin-top: 9px; }
  .invitation-footer { margin-top: 10px; transform: translateY(-34px); }
  .hindi-name { font-size: clamp(27px, 8.1vw, 35px); margin: 8px 0; }
  .hindi-family-intro { font-size: 16px; margin-bottom: 11px; }
  .hindi-family { font-size: 17px; line-height: 1.82; margin-top: 7px; }
  .hindi-ampersand { font-size: 29px; margin: 12px 0; }
  .hindi-invitation { font-size: 15.2px; line-height: 1.8; margin-top: 18px; }
  .hindi-date { font-size: 17.1px; line-height: 1.7; margin-top: 9px; }
  .page-flower-bottom { width: min(84vw, 46svh, 384px); }
  .page-flower-top-left, .page-flower-top-right { width: min(90vw, 54svh, 475px); }
  .page-peacock-left { left: -8%; bottom: clamp(-24px, -3svh, -12px); width: min(49.4vw, 34svh, 325px); }
  .page-peacock-right { right: -8%; bottom: clamp(-24px, -3svh, -12px); width: min(49.4vw, 34svh, 325px); }
  .page-mandala-c1 { width: min(82vw, 370px); }
  .event-frame-corner { width: min(56vw, 30svh, 220px); opacity: .12; }
  .page-events.is-current .event-frame-corner { opacity: .63; }
  .page-venue, .page-events { padding-block-start: max(calc(env(safe-area-inset-top, 0px) + 64px), 9svh); padding-block-end: max(calc(env(safe-area-inset-bottom, 0px) + 58px), 7svh); }
  .section-kicker { font-size: 16px; margin-bottom: 14px; }
  .venue-name { font-size: clamp(48px, 13vw, 66px); line-height: 1.15; }
  .panel-en .venue-name { max-width: 100%; font-size: clamp(34px, 9vw, 42px); line-height: 1.22; }
  .hindi-venue { font-size: clamp(32px, 9vw, 44px); line-height: 1.42; }
  .venue-address { max-width: 350px; font-size: 18px; line-height: 1.6; margin-top: 18px; }
  .hindi-address { font-size: 16px; line-height: 1.8; }
  .desktop-break { display: none; }
  .map-button { min-height: 50px; margin-top: 25px; padding: 11px 20px; font-size: 16px; }
  .event-group { padding: 10px 0; }
  .event-date { font-size: clamp(32px, 9vw, 40px); margin-bottom: 13px; }
  .event-line { font-size: clamp(21px, 5.7vw, 23px); line-height: 1.6; margin: 9px auto; max-width: 345px; }
  .hindi-events .event-date { font-size: 34px; }
  .hindi-events .event-line { font-size: 19px; line-height: 1.8; }
  .event-ending { margin-top: 22px; }
  .event-ending p { font-size: 21px; line-height: 1.65; }
  .hindi-ending p { font-size: 19px; line-height: 1.85; }
  .event-contact { margin-top: 32px; }
  .event-contact .contact-brand { font-size: 19px; }
  .event-contact .contact-number { font-size: 18px; }
  .event-divider { margin: 4px 0; }
  .scroll-cue { bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 900px) and (orientation: portrait) {
  .page-flower-bottom { width: min(58.8vw, 32.2svh, 268.8px); }
  .page-flower-top-left, .page-flower-top-right { width: min(63vw, 37.8svh, 332.5px); }
  .page-peacock-left, .page-peacock-right { width: min(34.58vw, 23.8svh, 227.5px); }
}

@media (max-width: 380px) {
  :root { --page-side: clamp(30px, 9vw, 36px); }
  .language-switch { gap: 5px; padding: 4px 8px; }
  .language-button { font-size: 14px; }
  .sanskrit-verse { font-size: 11.7px; }
  .family-line { font-size: 17px; }
  .hindi-family { font-size: 16.5px; }
  .event-line { font-size: 18px; }
}

@media (max-height: 760px) {
  html { scroll-snap-type: y mandatory; }
  .invitation-page {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    padding-block-start: max(calc(env(safe-area-inset-top, 0px) + 48px), 7dvh);
    padding-block-end: max(calc(env(safe-area-inset-bottom, 0px) + 48px), 7dvh);
    overflow-y: visible;
    scroll-snap-stop: always;
  }
  .page-invite { padding-block-start: max(calc(env(safe-area-inset-top, 0px) + 46px), 6dvh); padding-block-end: max(calc(env(safe-area-inset-bottom, 0px) + 46px), 6dvh); }
  .page-venue, .page-events { padding-block-start: max(calc(env(safe-area-inset-top, 0px) + 50px), 7dvh); padding-block-end: max(calc(env(safe-area-inset-bottom, 0px) + 48px), 6dvh); }
  .page-invite .invite-copy { top: 0; }
  .page-invite .invitation-prelude { top: 0; }
  .ganesha-lockup { transform: translateY(0); }
  .auspicious-heading, .sanskrit-verse { transform: none; }
  .invite-copy .couple-block { top: 0; transform: none; }
  .invite-copy .invitation-footer { top: 0; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .petal-field { display: none; }
  .star { opacity: .5; animation: none; }
  .scroll-cue { animation: none; }
}
