:root {
  color-scheme: light;
  --paper: #f4ecdf;
  --paper-deep: #e8dbc5;
  --ink: #332a25;
  --wine: #561727;
  --wine-dark: #3d111e;
  --gold: #a77a3e;
  --gold-light: #d4b77d;
  --serif: "Cormorant Garamond", "Baskerville", Georgia, serif;
  --sans: "Montserrat", "Avenir Next", Arial, sans-serif;
  --script: "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  --couple-script: "Ephesis", "Snell Roundhand", "Apple Chancery", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.gate-closed { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

/* The entrance is built from the provided desktop and mobile door halves. */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: #f0e2cc;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.gate__panel {
  position: absolute;
  top: 0;
  width: 50.15%;
  height: 100%;
  overflow: hidden;
  will-change: transform;
  transition: transform 1.55s cubic-bezier(.77, 0, .18, 1);
}
.gate__panel--left { left: 0; transform-origin: left center; }
.gate__panel--right { right: 0; transform-origin: right center; }
.gate__panel picture, .gate__panel img { display: block; width: 100%; height: 100%; }
.gate__panel img { object-fit: cover; object-position: center; }
.gate__seal {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: clamp(94px, 13vw, 186px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 11px 18px rgba(46, 13, 19, .27));
  transition: filter .25s ease, scale .25s ease;
}
.gate__seal:hover { scale: 1.045; filter: drop-shadow(0 15px 20px rgba(46, 13, 19, .32)); }
.gate__seal img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gate__prompt {
  position: absolute;
  z-index: 4;
  top: calc(50% + clamp(62px, 8vw, 104px));
  left: 50%;
  margin: 0;
  color: var(--wine);
  font: 600 10px/1.2 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity .35s ease, transform .35s ease;
}
body.invitation-open .gate { pointer-events: none; }
body.invitation-open .gate__panel--left { transform: translateX(-103%); }
body.invitation-open .gate__panel--right { transform: translateX(103%); }
body.invitation-open .gate__seal { animation: seal-fall 1.15s cubic-bezier(.55, .05, .85, .28) forwards; }
body.invitation-open .gate__prompt { opacity: 0; transform: translate(-50%, 15px); }
body.invitation-open .gate { visibility: hidden; transition: visibility 0s linear 1.65s; }
@keyframes seal-fall {
  0% { transform: translate(-50%, -50%) rotate(0) scale(1); opacity: 1; }
  25% { transform: translate(-50%, -35%) rotate(-12deg) scale(.96); opacity: 1; }
  100% { transform: translate(-50%, 110vh) rotate(28deg) scale(.78); opacity: 0; }
}

/* Full-bleed sticky chapters overlap as the next page scrolls over the last. */
.chapters { position: relative; isolation: isolate; background: var(--paper); }
.chapter {
  position: sticky;
  top: 0;
  z-index: var(--layer, 1);
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}
.chapter__background {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: var(--paper);
}
.chapter.is-transitioning .chapter__background {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, var(--chapter-edge-opacity, .4)) 0%, #000 12%, #000 88%, rgba(0, 0, 0, var(--chapter-edge-opacity, .4)) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, var(--chapter-edge-opacity, .4)) 0%, #000 12%, #000 88%, rgba(0, 0, 0, var(--chapter-edge-opacity, .4)) 100%);
}
.chapter__content {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 48px), 920px);
  margin: auto;
  padding: clamp(42px, 7vh, 78px) 0;
  text-align: center;
}
.chapter__art { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.art { position: absolute; display: block; height: auto; object-fit: contain; user-select: none; }
.entrance { opacity: 1; transform: translate3d(0, 0, 0) scale(1); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.chapter.is-seen .entrance { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.motion-ready .chapter:not(.is-seen) .entrance { opacity: 0; transform: translate3d(0, 22px, 0) scale(.97); }
.reveal { opacity: 1; transform: none; }
.motion-ready .chapter:not(.is-seen) .reveal { opacity: 0; transform: translate3d(0, 20px, 0); }
.motion-ready .chapter.is-seen .reveal { opacity: 1; transform: translate3d(0, 0, 0); transition: opacity .72s ease, transform .82s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0ms); }
.role-label, .eyebrow, .scroll-cue, .invitation-kicker, .ceremony-label, .event-time, .event-year, .date-line {
  font-family: var(--sans);
}
.role-label {
  margin: 0 0 4px;
  color: var(--wine);
  font-size: clamp(10px, .72vw, 12px);
  font-weight: 600;
  letter-spacing: .24em;
  line-height: 1.35;
  text-transform: uppercase;
}
.fine-divider, .event-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
}
.fine-divider { margin: clamp(12px, 2vh, 22px) auto; }
.fine-divider span, .event-rule span { width: clamp(48px, 7vw, 90px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.fine-divider b, .event-rule b { font-size: 15px; font-weight: 400; }
.scroll-cue {
  position: absolute;
  z-index: 7;
  bottom: clamp(12px, 2.5vh, 24px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(67, 43, 32, .76);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.scroll-cue i { font: 23px/1 var(--serif); animation: cue-bob 1.9s ease-in-out infinite; }
@keyframes cue-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* First page: the calligraphy and names have a clear hierarchy and even spacing. */
.chapter--invitation .chapter__background { background-image: url("assets/desktop-page-1.jpg"); }
.invitation-copy { width: min(58vw, 835px); margin: auto; }
.bismillah { display: block; width: clamp(190px, 21vw, 290px); max-height: 82px; object-fit: contain; margin: 0 auto 5px; }
.quran-verse { max-width: 700px; margin: 0 auto; font-size: clamp(17px, 1.38vw, 21px); font-style: italic; font-weight: 500; line-height: 1.38; }
.verse-line { display: inline; }
.quran-citation { margin: 5px 0 0; color: var(--wine); font-size: clamp(12px, .95vw, 15px); letter-spacing: .09em; }
.couple-names { margin: 0 auto; }
.script-name {
  margin: 0;
  color: var(--wine);
  font: 400 clamp(42px, 4.55vw, 66px)/.95 var(--couple-script);
  text-shadow: 0 1px 0 rgba(255,255,255,.46);
}
.script-name--groom { font-size: clamp(39px, 4.3vw, 61px); }
#bride-name:focus { outline: none; }
.family-line { max-width: 560px; margin: 5px auto 0; font-size: clamp(15px, 1.18vw, 18px); line-height: 1.25; }
.couple-names .family-line { margin-top: 8px; }
.ampersand { margin: 16px 0 18px; color: var(--gold); font: 400 clamp(29px, 3vw, 43px)/1 var(--script); }
.floral-sweep { z-index: 1; left: 0; bottom: 0; width: clamp(440px, 48vw, 760px); height: auto; object-fit: contain; object-position: left bottom; }

/* Haldi & Mehndi: moving umbrellas and butterflies frame the invitation details. */
.chapter--haldi .chapter__background { background-image: url("assets/haldi-desktop-bg.png"); }
.haldi-copy { width: min(52vw, 720px); padding-top: clamp(48px, 7vh, 82px); padding-bottom: clamp(100px, 17vh, 170px); }
.haldi-copy .eyebrow { margin-bottom: 17px; }
.haldi-title { margin: 0; color: var(--wine); font: 400 clamp(62px, 6.5vw, 92px)/1.02 var(--couple-script); }
.haldi-title span { display: block; margin: -2px 0; font-size: .68em; line-height: .92; }
.haldi-copy .event-rule { margin: 20px auto; }
.haldi-date { margin: 0; color: var(--ink); font: 500 clamp(17px, 1.45vw, 21px)/1.4 var(--sans); letter-spacing: .1em; }
.haldi-time { margin: 9px 0 0; color: var(--wine); font: 500 clamp(15px, 1.2vw, 18px)/1.35 var(--sans); letter-spacing: .12em; }
.haldi-venue { margin-top: 21px; }
.haldi-venue .venue-name { margin-top: 9px; font-family: var(--couple-script); font-size: clamp(32px, 3.4vw, 44px); font-weight: 400; }
.haldi-art { overflow: hidden; }
.haldi-flight { opacity: .9; transform-origin: center; }
.motion-ready .chapter:not(.is-seen) .haldi-flight { opacity: 0; }
.chapter.is-seen .haldi-flight--east { animation: haldi-fly-east var(--flight-time, 27s) linear var(--flight-delay, 0s) infinite; }
.chapter.is-seen .haldi-flight--west { animation: haldi-fly-west var(--flight-time, 29s) linear var(--flight-delay, 0s) infinite; }
.haldi-umbrella { width: clamp(127px, 12vw, 171px); }
.haldi-umbrella--one { top: 2%; --flight-time: 32s; --flight-delay: -2s; }
.haldi-umbrella--two { top: 59%; --flight-time: 34s; --flight-delay: -3s; }
.haldi-umbrella--three { top: 79%; --flight-time: 36s; --flight-delay: -17s; }
.haldi-flight--east { left: -18%; }
.haldi-flight--west { right: -18%; }
@keyframes haldi-fly-east {
  0% { opacity: 0; transform: translate3d(-4vw, 8px, 0) rotate(-8deg); }
  9% { opacity: .9; }
  48% { transform: translate3d(67vw, -16px, 0) rotate(3deg); }
  91% { opacity: .9; }
  100% { opacity: 0; transform: translate3d(145vw, 9px, 0) rotate(8deg); }
}
@keyframes haldi-fly-west {
  0% { opacity: 0; transform: translate3d(4vw, -8px, 0) rotate(8deg); }
  9% { opacity: .9; }
  52% { transform: translate3d(-68vw, 15px, 0) rotate(-3deg); }
  91% { opacity: .9; }
  100% { opacity: 0; transform: translate3d(-145vw, -9px, 0) rotate(-8deg); }
}
.butterfly-field { position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; }
.butterfly-flight { position: absolute; top: 0; left: 0; z-index: 3; width: clamp(42px, 4vw, 62px); height: auto; opacity: .92; filter: drop-shadow(0 3px 5px rgba(74, 37, 36, .14)); will-change: transform; }
.motion-ready .chapter:not(.is-seen) .butterfly-flight { opacity: 0; }
.chapter.is-seen .butterfly-flight--one { animation: butterfly-route-one 40s ease-in-out -4s infinite; }
.chapter.is-seen .butterfly-flight--two { animation: butterfly-route-two 46s ease-in-out -13s infinite; }
.chapter.is-seen .butterfly-flight--three { animation: butterfly-route-three 42s ease-in-out -8s infinite; }
.chapter.is-seen .butterfly-flight--four { animation: butterfly-route-four 52s ease-in-out -22s infinite; }
@keyframes butterfly-route-one {
  0% { opacity: 0; transform: translate3d(3vw, 75vh, 0) rotate(-8deg); }
  8% { opacity: .92; }
  22% { transform: translate3d(18vw, 52vh, 0) rotate(11deg); }
  38% { transform: translate3d(33vw, 66vh, 0) rotate(-12deg); }
  54% { transform: translate3d(48vw, 37vh, 0) rotate(8deg); }
  71% { transform: translate3d(66vw, 48vh, 0) rotate(-10deg); }
  87% { transform: translate3d(82vw, 18vh, 0) rotate(13deg); }
  100% { opacity: 0; transform: translate3d(102vw, 31vh, 0) rotate(-8deg); }
}
@keyframes butterfly-route-two {
  0% { opacity: 0; transform: translate3d(96vw, 15vh, 0) rotate(8deg) scale(.9); }
  9% { opacity: .92; }
  23% { transform: translate3d(78vw, 35vh, 0) rotate(-13deg) scale(1); }
  41% { transform: translate3d(60vw, 13vh, 0) rotate(10deg) scale(.94); }
  57% { transform: translate3d(47vw, 43vh, 0) rotate(-8deg) scale(1.04); }
  74% { transform: translate3d(28vw, 30vh, 0) rotate(14deg) scale(.92); }
  91% { transform: translate3d(11vw, 60vh, 0) rotate(-10deg) scale(1); }
  100% { opacity: 0; transform: translate3d(-10vw, 49vh, 0) rotate(7deg) scale(.96); }
}
@keyframes butterfly-route-three {
  0% { opacity: 0; transform: translate3d(21vw, 96vh, 0) rotate(3deg) scale(.82); }
  9% { opacity: .9; }
  25% { transform: translate3d(12vw, 77vh, 0) rotate(-12deg) scale(1); }
  42% { transform: translate3d(31vw, 57vh, 0) rotate(9deg) scale(.9); }
  59% { transform: translate3d(55vw, 72vh, 0) rotate(-14deg) scale(1.04); }
  76% { transform: translate3d(71vw, 50vh, 0) rotate(8deg) scale(.92); }
  90% { transform: translate3d(87vw, 63vh, 0) rotate(-11deg) scale(1); }
  100% { opacity: 0; transform: translate3d(102vw, 42vh, 0) rotate(6deg) scale(.9); }
}
@keyframes butterfly-route-four {
  0% { opacity: 0; transform: translate3d(82vw, 101vh, 0) rotate(-6deg) scale(.95); }
  8% { opacity: .92; }
  24% { transform: translate3d(91vw, 78vh, 0) rotate(12deg) scale(.88); }
  40% { transform: translate3d(70vw, 61vh, 0) rotate(-9deg) scale(1); }
  58% { transform: translate3d(58vw, 82vh, 0) rotate(13deg) scale(.9); }
  75% { transform: translate3d(36vw, 59vh, 0) rotate(-12deg) scale(1.03); }
  91% { transform: translate3d(17vw, 76vh, 0) rotate(9deg) scale(.92); }
  100% { opacity: 0; transform: translate3d(-5vw, 56vh, 0) rotate(-6deg) scale(.96); }
}

/* Second page: musical illustrations sit around the copy, never behind it. */
.chapter--gaana .chapter__background { background-image: url("assets/desktop-page-2.jpg"); }
.gaana-copy { width: min(58vw, 820px); padding-top: clamp(58px, 12vh, 120px); padding-bottom: clamp(180px, 25vh, 240px); }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 10px; font-weight: 500; letter-spacing: .25em; line-height: 1.5; text-transform: uppercase; }
.gaana-copy .eyebrow { margin-bottom: 24px; }
.event-script { margin: 0; color: var(--wine); font: 400 clamp(54px, 6vw, 86px)/1.08 var(--couple-script); }
.event-script span { display: block; }
.event-script .event-amp { margin: .05em 0 .12em; font-size: .72em; line-height: .9; }
.event-rule { margin: clamp(17px, 2.5vh, 25px) auto; }
.date-line { margin: 0; color: var(--ink); font-size: clamp(13px, 1.05vw, 16px); font-weight: 500; letter-spacing: .17em; }
.date-line span { margin: 0 .4em; color: var(--gold); }
.event-year { margin: 8px 0 0; color: var(--wine); font-size: clamp(18px, 1.7vw, 24px); letter-spacing: .2em; }
.event-time { margin: 12px 0 0; color: var(--wine); font-size: clamp(18px, 1.55vw, 23px); font-weight: 500; letter-spacing: .12em; }
.venue-short { margin-top: clamp(16px, 2.5vh, 26px); }
.venue-name { margin: 3px 0 0; color: var(--wine); font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; line-height: 1.15; }
.instrument { filter: drop-shadow(0 8px 10px rgba(68, 39, 27, .14)); }
.instrument--shehnai { top: 10%; left: 2.5%; width: clamp(165px, 19vw, 290px); transform: rotate(-4deg); }
.instrument--harmonium { left: 2.8%; bottom: 2%; width: clamp(190px, 23vw, 340px); }
.instrument--tabla { left: 41%; bottom: 1%; width: clamp(170px, 21vw, 300px); }
.instrument--sitar { right: 2%; bottom: 8%; width: clamp(180px, 21vw, 310px); transform: rotate(1deg); }
.music-notes, .star-field { position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; }
.music-notes span {
  position: absolute;
  top: -10%;
  z-index: 2;
  color: rgba(86, 23, 39, .55);
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 22px);
  animation: notes-fall 18s linear infinite;
}
.music-notes span:nth-child(1) { left: 12%; animation-delay: -3s; animation-duration: 17s; }
.music-notes span:nth-child(2) { left: 29%; animation-delay: -9s; animation-duration: 20s; }
.music-notes span:nth-child(3) { left: 48%; animation-delay: -13s; animation-duration: 18s; }
.music-notes span:nth-child(4) { left: 68%; animation-delay: -5s; animation-duration: 22s; }
.music-notes span:nth-child(5) { left: 86%; animation-delay: -16s; animation-duration: 19s; }
.music-notes span:nth-child(6) { left: 5%; animation-delay: -11s; animation-duration: 18s; scale: .8; }
.music-notes span:nth-child(7) { left: 18%; animation-delay: -4s; animation-duration: 21s; scale: .72; }
.music-notes span:nth-child(8) { left: 35%; animation-delay: -15s; animation-duration: 16s; scale: .9; }
.music-notes span:nth-child(9) { left: 42%; animation-delay: -7s; animation-duration: 19s; scale: .76; }
.music-notes span:nth-child(10) { left: 56%; animation-delay: -19s; animation-duration: 22s; scale: .84; }
.music-notes span:nth-child(11) { left: 62%; animation-delay: -10s; animation-duration: 17s; scale: .7; }
.music-notes span:nth-child(12) { left: 76%; animation-delay: -2s; animation-duration: 20s; scale: .88; }
.music-notes span:nth-child(13) { left: 82%; animation-delay: -13s; animation-duration: 23s; scale: .74; }
.music-notes span:nth-child(14) { left: 94%; animation-delay: -6s; animation-duration: 18s; scale: .82; }
.music-notes span:nth-child(15) { left: 2%; animation-delay: -17s; animation-duration: 21s; scale: .68; }
@keyframes notes-fall {
  0% { translate: 0 -5vh; rotate: 0deg; opacity: 0; }
  12% { opacity: .84; }
  55% { translate: 16px 50vh; rotate: 12deg; }
  100% { translate: -14px 112vh; rotate: 28deg; opacity: 0; }
}

/* Third page: a quiet ceremonial composition framed by the supplied arch and lanterns. */
.chapter--nikah .chapter__background { background-image: url("assets/desktop-page-3.jpg"); }
.nikah-copy { width: min(48vw, 700px); padding-top: clamp(110px, 17vh, 165px); padding-bottom: clamp(118px, 17vh, 165px); }
.invitation-kicker { margin: 0 auto 6px; color: var(--wine); font-size: clamp(10px, .8vw, 12px); font-weight: 500; letter-spacing: .19em; line-height: 1.65; text-transform: uppercase; }
.nikah-script { margin: 18px 0 0; color: var(--wine); font: 400 clamp(68px, 7.3vw, 104px)/.9 var(--couple-script); }
.ceremony-label { margin: 7px 0 0; color: var(--wine); font-size: clamp(13px, 1.2vw, 17px); font-weight: 600; letter-spacing: .34em; text-transform: uppercase; }
.nikah-copy .event-rule { margin: clamp(12px, 1.8vh, 18px) auto; }
.nikah-message { max-width: 620px; margin: 0 auto; color: #382a23; font-size: clamp(15px, 1.22vw, 18px); font-weight: 500; line-height: 1.38; }
.nikah-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 4vw, 52px); max-width: 520px; margin: clamp(19px, 3vh, 32px) auto 0; padding-top: 16px; border-top: 1px solid rgba(167,122,62,.42); }
.detail-item p:last-child { margin: 4px 0 0; color: var(--wine); font-size: clamp(17px, 1.45vw, 21px); font-weight: 600; }
.nikah-venue { margin-top: clamp(18px, 2.8vh, 27px); }
.text-link { display: inline-block; margin-top: 16px; color: var(--wine); font: 500 10px/1.4 var(--sans); letter-spacing: .16em; text-decoration: none; text-transform: uppercase; border-bottom: 1px solid rgba(86,23,39,.45); padding-bottom: 4px; }
.text-link span { padding-left: 5px; }
.nikah-couple-art { z-index: 2; left: -2%; bottom: 0; width: clamp(250px, 27vw, 390px); max-height: 48vh; transform-origin: left bottom; }
.motion-ready .chapter:not(.is-seen) .nikah-couple-art { transform: translateY(18px) scale(.98); }
.chapter.is-seen .nikah-couple-art { transform: translateY(0) scale(1); }
.moon-star { z-index: 3; top: 1.5%; left: 50%; width: clamp(112px, 12vw, 160px); transform: translateX(-50%); }
.motion-ready .chapter:not(.is-seen) .moon-star { transform: translateX(-50%) translateY(18px) scale(.96); }
.chapter.is-seen .moon-star { transform: translateX(-50%) scale(1); }
.lantern { z-index: 2; top: 0; width: clamp(150px, 18vw, 250px); }
.lantern--left { left: 14%; }
.lantern--right { right: 14%; }
.gold-florals { z-index: 2; right: 0; bottom: 0; width: clamp(170px, 18vw, 270px); max-height: 32vh; object-position: right bottom; }
.star-field span {
  position: absolute;
  top: -10%;
  z-index: 3;
  color: #fffef7;
  font-size: clamp(10px, 1vw, 15px);
  -webkit-text-stroke: .35px rgba(255, 219, 92, .95);
  text-shadow: 0 0 4px rgba(255, 249, 204, .95), 0 0 9px rgba(255, 224, 111, .9), 0 0 15px rgba(233, 183, 49, .65);
  animation: stars-fall 17s linear infinite;
}
.star-field span:nth-child(1) { left: 8%; animation-delay: -1s; animation-duration: 15s; }
.star-field span:nth-child(2) { left: 24%; animation-delay: -5s; animation-duration: 20s; }
.star-field span:nth-child(3) { left: 41%; animation-delay: -9s; animation-duration: 17s; }
.star-field span:nth-child(4) { left: 59%; animation-delay: -3s; animation-duration: 21s; }
.star-field span:nth-child(5) { left: 77%; animation-delay: -7s; animation-duration: 18s; }
.star-field span:nth-child(6) { left: 91%; animation-delay: -12s; animation-duration: 22s; }
.star-field span:nth-child(7) { left: 2%; animation-delay: -8s; animation-duration: 18s; scale: .78; }
.star-field span:nth-child(8) { left: 14%; animation-delay: -11s; animation-duration: 17s; scale: .72; }
.star-field span:nth-child(9) { left: 31%; animation-delay: -6s; animation-duration: 21s; scale: .86; }
.star-field span:nth-child(10) { left: 36%; animation-delay: -14s; animation-duration: 16s; scale: .7; }
.star-field span:nth-child(11) { left: 50%; animation-delay: -2s; animation-duration: 19s; scale: .9; }
.star-field span:nth-child(12) { left: 54%; animation-delay: -17s; animation-duration: 22s; scale: .75; }
.star-field span:nth-child(13) { left: 68%; animation-delay: -9s; animation-duration: 18s; scale: .82; }
.star-field span:nth-child(14) { left: 72%; animation-delay: -5s; animation-duration: 20s; scale: .68; }
.star-field span:nth-child(15) { left: 85%; animation-delay: -13s; animation-duration: 16s; scale: .88; }
.star-field span:nth-child(16) { left: 97%; animation-delay: -3s; animation-duration: 22s; scale: .74; }
.star-field span:nth-child(17) { left: 18%; animation-delay: -18s; animation-duration: 19s; scale: .8; }
.star-field span:nth-child(18) { left: 47%; animation-delay: -7s; animation-duration: 15s; scale: .7; }
.star-field span:nth-child(19) { left: 63%; animation-delay: -12s; animation-duration: 21s; scale: .92; }
.star-field span:nth-child(20) { left: 81%; animation-delay: -1s; animation-duration: 17s; scale: .76; }
.star-field span:nth-child(21) { left: 5%; animation-delay: -15s; animation-duration: 20s; scale: .84; }
.star-field span:nth-child(22) { left: 28%; animation-delay: -4s; animation-duration: 22s; scale: .72; }
.star-field span:nth-child(23) { left: 45%; animation-delay: -10s; animation-duration: 16s; scale: .86; }
.star-field span:nth-child(24) { left: 95%; animation-delay: -16s; animation-duration: 18s; scale: .7; }
@keyframes stars-fall {
  0% { translate: 0 -5vh; rotate: 0deg; opacity: 0; }
  12% { opacity: .96; }
  55% { translate: 16px 50vh; rotate: 12deg; }
  100% { translate: -14px 112vh; rotate: 28deg; opacity: 0; }
}

/* Final venue page: a simple, readable directions card and the supplied map link. */
.chapter--venue .chapter__background { background-image: url("assets/desktop-page-1.jpg"); }
.venue-card {
  position: relative;
  z-index: 4;
  width: min(88vw, 620px);
  margin: auto;
  padding: clamp(30px, 5vw, 60px) clamp(24px, 5vw, 64px);
  border: 1px solid rgba(167,122,62,.56);
  outline: 1px solid rgba(167,122,62,.25);
  outline-offset: 7px;
  background: rgba(250, 246, 238, .91);
  box-shadow: 0 18px 55px rgba(65, 43, 27, .13);
  text-align: center;
}
.venue-card .eyebrow { margin-bottom: 13px; }
.map-mark { width: 43px; height: 43px; margin: 0 auto 14px; color: var(--gold); }
.map-mark svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.venue-title { margin: 22px 0 0; color: var(--wine); font: 400 clamp(38px, 4.7vw, 62px)/1.05 var(--couple-script); }
.directions-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 48px;
  margin-top: 23px;
  padding: 12px 23px;
  border: 1px solid var(--wine);
  border-radius: 2px;
  background: var(--wine);
  color: #fffaf3;
  font: 500 11px/1.3 var(--sans);
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 6px 17px rgba(86,23,39,.17);
  transition: background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.directions-button:hover { transform: translateY(-2px); background: var(--wine-dark); box-shadow: 0 10px 21px rgba(86,23,39,.22); }
.directions-button span { font-size: 15px; }
.venue-signoff { margin: 21px 0 0; color: #594b40; font-size: 16px; font-style: italic; }
.site-footer {
  position: absolute;
  z-index: 5;
  bottom: 22px;
  left: 0;
  width: 100%;
  color: #594b40;
  font: 500 9px/1.5 var(--sans);
  letter-spacing: .15em;
  text-align: center;
  text-transform: uppercase;
}
.site-footer i { padding: 0 5px; color: var(--gold); font-style: normal; }

/* Sparse drifting petals: ornamental only, and kept behind the invitation copy. */
.petal-field { position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; }
.petal {
  position: absolute;
  top: -12%;
  width: 8px;
  height: 13px;
  border-radius: 95% 10% 95% 10%;
  background: linear-gradient(140deg, #e86b7e, #a51f3d);
  opacity: .504;
  animation: petal-drift 14s linear infinite;
}
.petal--one { left: 7%; animation-delay: -3s; }
.petal--two { left: 17%; animation-delay: -8s; animation-duration: 17s; transform: scale(.7); }
.petal--three { left: 28%; animation-delay: -5s; animation-duration: 16s; transform: scale(.85); }
.petal--four { left: 39%; animation-delay: -11s; animation-duration: 19s; transform: scale(.62); }
.petal--five { left: 49%; animation-delay: -14s; animation-duration: 20s; transform: scale(.65); }
.petal--six { left: 59%; animation-delay: -7s; animation-duration: 16s; transform: scale(.72); }
.petal--seven { left: 69%; animation-delay: -12s; animation-duration: 18s; transform: scale(.8); }
.petal--eight { left: 79%; animation-delay: -2s; animation-duration: 15s; transform: scale(.63); }
.petal--nine { left: 89%; animation-delay: -9s; animation-duration: 21s; transform: scale(.75); }
.petal--ten { left: 94%; animation-delay: -16s; animation-duration: 19s; transform: scale(.58); }
.petal--eleven { left: 2%; animation-delay: -7s; animation-duration: 22s; transform: scale(.55); }
.petal--twelve { left: 12%; animation-delay: -13s; animation-duration: 18s; transform: scale(.7); }
.petal--thirteen { left: 22%; animation-delay: -4s; animation-duration: 20s; transform: scale(.65); }
.petal--fourteen { left: 33%; animation-delay: -15s; animation-duration: 17s; transform: scale(.75); }
.petal--fifteen { left: 44%; animation-delay: -6s; animation-duration: 23s; transform: scale(.55); }
.petal--sixteen { left: 54%; animation-delay: -11s; animation-duration: 19s; transform: scale(.8); }
.petal--seventeen { left: 64%; animation-delay: -3s; animation-duration: 16s; transform: scale(.62); }
.petal--eighteen { left: 74%; animation-delay: -18s; animation-duration: 22s; transform: scale(.72); }
.petal--nineteen { left: 84%; animation-delay: -9s; animation-duration: 18s; transform: scale(.58); }
.petal--twenty { left: 97%; animation-delay: -14s; animation-duration: 21s; transform: scale(.66); }
@keyframes petal-drift { 0% { translate: 0 -6vh; rotate: 0deg; opacity: 0; } 12% { opacity: .6552; } 52% { translate: 24px 50vh; rotate: 170deg; } 100% { translate: -8px 112vh; rotate: 350deg; opacity: 0; } }

@media (max-width: 1100px) and (min-width: 761px) {
  .invitation-copy { width: min(70vw, 800px); margin: auto; }
  .instrument--shehnai { width: 18vw; left: 1%; }
  .instrument--harmonium { width: 23vw; left: 1%; }
  .instrument--tabla { width: 21vw; left: 40%; }
  .instrument--sitar { width: 19vw; right: 0; }
  .nikah-copy { width: 50vw; }
  .lantern--left { left: 11%; }
  .lantern--right { right: 11%; }
}

@media (max-width: 760px) {
  .gate__panel { width: 50.5%; }
  .gate__panel img { object-position: center; }
  .gate__seal { width: clamp(88px, 25vw, 128px); }
  .gate__prompt { top: calc(50% + clamp(65px, 20vw, 88px)); font-size: 9px; letter-spacing: .18em; }

  .chapter { min-height: 100svh; }
  .chapter__content { width: min(calc(100% - 34px), 560px); padding: 34px 0 60px; }
  .chapter--invitation .chapter__background { background-image: url("assets/mobile-page-1.jpg"); }
  .invitation-copy { width: min(calc(100% - 44px), 540px); margin: auto; padding: 18px 0 185px; }
  .bismillah { width: 100%; max-width: 436px; max-height: 124px; margin: -12px auto 2px; }
  .quran-verse { width: 100%; max-width: 500px; font-size: clamp(11.5px, 3.08vw, 12.5px); line-height: 1.32; }
  .verse-line { display: block; }
  .quran-citation { margin-top: 3px; font-size: 11px; }
  .fine-divider { margin: 8px auto; }
  .fine-divider span, .event-rule span { width: 48px; }
  .fine-divider b, .event-rule b { font-size: 12px; }
  .role-label { margin-bottom: 2px; font-size: 9px; letter-spacing: .2em; }
  .script-name { font-size: clamp(37px, 10vw, 48px); }
  .script-name--groom { font-size: clamp(35px, 9.5vw, 45px); }
  .family-line { max-width: 350px; margin-top: 8px; font-size: clamp(13px, 3.55vw, 15px); line-height: 1.2; }
  .ampersand { margin: 14px 0 16px; font-size: 29px; }
  .floral-sweep { left: 0; bottom: 0; width: min(82vw, 400px); height: auto; object-fit: contain; object-position: left bottom; }
  .scroll-cue { bottom: 9px; font-size: 8px; }

  .chapter--haldi .chapter__background { background-image: url("assets/haldi-mobile-bg.png"); }
  .haldi-copy { width: min(84vw, 470px); padding: 12vh 0 28vh; }
  .haldi-copy .eyebrow { margin-bottom: 13px; font-size: 8px; letter-spacing: .18em; }
  .haldi-title { font-size: clamp(52px, 14vw, 68px); line-height: 1; }
  .haldi-title span { margin: 0; font-size: .62em; }
  .haldi-copy .event-rule { margin: 12px auto; }
  .haldi-date { font-size: clamp(14px, 3.9vw, 17px); letter-spacing: .07em; }
  .haldi-time { margin-top: 6px; font-size: clamp(13px, 3.7vw, 15px); }
  .haldi-venue { margin-top: 14px; }
  .haldi-venue .venue-name { margin-top: 6px; font-size: clamp(28px, 8vw, 36px); }
  .haldi-umbrella { width: clamp(97px, 28.7vw, 127px); }
  .haldi-umbrella--one { top: 2%; --flight-time: 32s; --flight-delay: -2s; }
  .haldi-umbrella--two { top: 59%; --flight-time: 34s; --flight-delay: -3s; }
  .haldi-umbrella--three { top: 79%; --flight-time: 36s; --flight-delay: -17s; }
  .haldi-flight--east { left: -22%; }
  .haldi-flight--west { right: -22%; }
  .butterfly-flight { width: 38px; }
  .chapter--gaana .chapter__background { background-image: url("assets/mobile-page-2.jpg"); }
  .gaana-copy { width: min(84vw, 470px); padding: 21vh 0 20vh; }
  .gaana-copy .eyebrow { margin-bottom: 19px; font-size: 8px; letter-spacing: .18em; }
  .event-script { max-width: 100%; font-size: clamp(42px, 12vw, 56px); line-height: 1.08; }
  .gaana-copy .event-rule { margin: 15px auto; }
  .date-line { font-size: clamp(10px, 3vw, 12px); letter-spacing: .09em; white-space: nowrap; }
  .date-line span { margin: 0 .22em; }
  .event-year { margin-top: 5px; font-size: 17px; }
  .event-time { margin-top: 6px; font-size: 17px; }
  .venue-short { margin-top: 11px; }
  .venue-name { font-size: clamp(20px, 5.8vw, 25px); }
  .instrument--shehnai { top: 10%; left: -6%; width: 39vw; }
  .instrument--harmonium { left: -5%; bottom: 5%; width: 38vw; }
  .instrument--tabla { left: 38%; bottom: 5%; width: 31vw; }
  .instrument--sitar { right: -8%; bottom: 12%; width: 42vw; }
  .music-notes span { font-size: 15px; }

  .chapter--nikah .chapter__background { background-image: url("assets/mobile-page-3.jpg"); }
  .nikah-copy { width: min(84vw, 460px); padding: 18vh 0 24vh; }
  .invitation-kicker { font-size: 9px; letter-spacing: .12em; line-height: 1.55; }
  .nikah-script { margin-top: 14px; font-size: clamp(66px, 18vw, 86px); }
  .ceremony-label { margin-top: 3px; font-size: 11px; letter-spacing: .28em; }
  .nikah-copy .event-rule { margin: 9px auto; }
  .nikah-message { font-size: clamp(13px, 3.65vw, 15px); line-height: 1.28; }
  .nikah-details { gap: 12px; max-width: 400px; margin-top: 12px; padding-top: 10px; }
  .detail-item p:last-child { margin-top: 2px; font-size: clamp(14px, 4vw, 17px); }
  .nikah-venue { margin-top: 12px; }
  .nikah-venue .venue-name { font-size: clamp(19px, 5.4vw, 23px); }
  .text-link { margin-top: 11px; font-size: 9px; }
  .nikah-couple-art { left: -8%; bottom: 0; width: clamp(218px, 64vw, 282px); max-height: 38.4vh; }
  .moon-star { top: 2.5%; width: clamp(90px, 25vw, 112px); }
  .lantern { top: 0; width: clamp(95px, 26vw, 120px); }
  .lantern--left { left: 1%; }
  .lantern--right { right: 1%; }
  .gold-florals { right: 0; bottom: 0; width: clamp(135px, 36vw, 180px); max-height: 25vh; }
  .star-field span { font-size: 12px; }

  .chapter--venue .chapter__background { background-image: url("assets/mobile-page-1.jpg"); }
  .venue-card { width: min(86vw, 500px); padding: 32px 22px 28px; }
  .venue-card .eyebrow { font-size: 8px; }
  .map-mark { width: 37px; height: 37px; margin-bottom: 10px; }
  .venue-title { margin-top: 18px; font-size: clamp(39px, 10vw, 52px); }
  .directions-button { min-height: 44px; margin-top: 17px; padding: 11px 17px; font-size: 9px; }
  .venue-signoff { margin-top: 16px; font-size: 14px; }
  .site-footer { bottom: 12px; padding: 0 12px; font-size: 8px; letter-spacing: .1em; }
}

@media (max-height: 730px) and (min-width: 761px) {
  .chapter__content { padding-top: 24px; padding-bottom: 28px; }
  .invitation-copy { width: min(57vw, 760px); }
  .bismillah { width: 205px; max-height: 55px; }
  .quran-verse { font-size: 16px; }
  .fine-divider { margin: 7px auto; }
  .script-name { font-size: 48px; }
  .script-name--groom { font-size: 45px; }
  .family-line, .closing-invitation { font-size: 14px; }
  .ampersand { margin: 12px 0 14px; font-size: 31px; }
  .gaana-copy { padding-top: 50px; padding-bottom: 140px; }
  .event-script { font-size: 62px; }
  .nikah-copy { padding-top: 72px; padding-bottom: 72px; }
  .nikah-script { font-size: 72px; }
  .nikah-message { font-size: 15px; }
  .nikah-details { margin-top: 14px; }
}

@media (max-height: 720px) and (max-width: 760px) {
  .chapter { position: relative; min-height: 100svh; }
  .invitation-copy { padding-top: 18px; padding-bottom: 160px; }
  .haldi-copy { padding-top: 10vh; padding-bottom: 24vh; }
  .gaana-copy { padding-top: 21vh; padding-bottom: 11vh; }
  .nikah-copy { padding-top: 15vh; padding-bottom: 22vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .motion-ready .chapter:not(.is-seen) .reveal,
  .motion-ready .chapter:not(.is-seen) .entrance { opacity: 1; transform: none; }
  .chapter--haldi.is-seen .haldi-flight { animation: none !important; opacity: .9 !important; transform: none !important; }
  .chapter--haldi.is-seen .butterfly-flight { animation: none !important; opacity: .9 !important; transform: none !important; }
  body.invitation-open .gate { transition-delay: 0s; }
}
