@font-face {
  font-family: "Great Vibes";
  src: url("public/fonts/great-vibes-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("public/fonts/cormorant-garamond-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --burgundy: #5b0c13;
  --burgundy-dark: #3e070c;
  --olive: #4a4b2a;
  --olive-light: #666541;
  --ivory: #f4efe5;
  --parchment: #e8dcc7;
  --ink: #493b37;
  --gold: #b99a61;
  --shadow: 0 18px 35px rgba(47, 22, 19, 0.2), 0 3px 8px rgba(47, 22, 19, 0.14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --stamp: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #241c1b; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background: #241c1b;
  overflow-x: hidden;
}
body:not(.gate-open) { overflow: hidden; cursor: pointer; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.site-shell {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
  overflow: clip;
  background: var(--ivory);
  box-shadow: 0 0 80px rgba(0,0,0,.38);
}

.paper-section {
  position: relative;
  background-color: var(--ivory);
  background-image: linear-gradient(rgba(249,246,239,.18), rgba(249,246,239,.18)), url("public/assets/paper-embossed-ivory.webp");
  background-size: 670px auto;
}

.burgundy-section {
  position: relative;
  color: var(--ivory);
  background:
    radial-gradient(circle at 14% 8%, rgba(147,43,50,.32), transparent 27%),
    radial-gradient(circle at 86% 76%, rgba(36,0,3,.4), transparent 34%),
    var(--burgundy);
}

.eyebrow, .sanskrit, .wedding-label, .event-date, .gate-date {
  font-size: .7rem;
  line-height: 1.5;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.invitation-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  min-height: 100svh;
  padding: 28px;
  overflow: hidden;
  color: var(--ivory);
  text-align: center;
  background:
    radial-gradient(circle at 50% 33%, rgba(130,44,50,.5), transparent 35%),
    var(--burgundy-dark);
  transition: opacity .85s var(--ease), visibility .85s;
}
.gate-open .invitation-gate { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-open .gate-flap { transform: rotateX(178deg); }
.gate-open .gate-letter { transform: translateY(-52px); }
.gate-flower { position: absolute; font-size: 11rem; opacity: .025; animation: slowSpin 24s linear infinite; }
.gate-flower--one { top: -40px; left: -50px; }
.gate-flower--two { right: -55px; bottom: -45px; animation-direction: reverse; }
.invitation-gate .eyebrow { margin: 0 0 5px; color: #d4c5a6; }
.gate-envelope { position: relative; width: 208px; height: 137px; margin: 38px 0 18px; perspective: 900px; }
.gate-pocket { position: absolute; inset: 0; z-index: 2; background: var(--olive); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); box-shadow: var(--shadow); }
.gate-pocket::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(185,154,97,.55); clip-path: inherit; }
.gate-flap { position: absolute; inset: 0; z-index: 3; transform-origin: top; clip-path: polygon(0 0, 100% 0, 50% 62%); background: #5c5d34; transition: transform 1s var(--ease); backface-visibility: hidden; }
.gate-flap::after { content: "❈"; position: absolute; inset: 18px 0 auto; color: var(--gold); font-size: 2.4rem; }
.gate-letter { position: absolute; z-index: 1; left: 18px; right: 18px; top: -12px; height: 124px; display: grid; place-items: center; color: var(--burgundy); background: var(--ivory); border: 1px solid rgba(185,154,97,.5); transition: transform 1.1s .1s var(--ease); }
.gate-letter span { font-size: 1.8rem; letter-spacing: .14em; }
.invitation-gate h1 { margin: 0; font-weight: 400; line-height: .84; }
.invitation-gate h1 span { display: block; font-size: clamp(3.4rem, 17vw, 5rem); font-family: "Snell Roundhand", "Segoe Script", cursive; }
/* Same optical centring as the hero: the R's loop pulls the ink left of the &. */
.invitation-gate h1 span:last-child { transform: translateX(-.2em); }
.invitation-gate h1 b { display: block; margin: 9px; color: var(--gold); font-weight: 400; font-style: italic; }
.gate-date { margin: 8px 0 22px; }
.wax-button {
  position: relative;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  color: #e9d7b5;
  background: radial-gradient(circle at 38% 32%, #a92330, #650c14 58%, #41080d 72%);
  box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 0 0 4px rgba(255,255,255,.05), inset 0 0 0 7px rgba(35,0,0,.15);
  cursor: pointer;
  transition: transform .18s var(--stamp), box-shadow .18s;
}
.wax-button::before, .wax-button::after { content: ""; position: absolute; inset: -5px; z-index: -1; border-radius: 45% 56% 43% 55%; background: #6f0c15; transform: rotate(20deg); }
.wax-button::after { transform: rotate(65deg); }
.wax-button:active { transform: scale(.92); box-shadow: 0 3px 8px rgba(0,0,0,.35), inset 0 3px 8px rgba(0,0,0,.3); }
.wax-button span { display: block; font-size: 1.6rem; }
.wax-button small { position: absolute; width: 180px; top: 96px; left: 50%; transform: translateX(-50%); text-transform: uppercase; letter-spacing: .13em; font-size: .62rem; }

.progress { position: fixed; z-index: 50; top: 0; left: calc(50% + min(220px, 50vw) - 5px); width: 2px; height: 100svh; background: rgba(91,12,19,.12); pointer-events: none; }
.progress span { display: block; width: 100%; height: 0; background: var(--burgundy); }
.progress i { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); color: var(--burgundy); font-style: normal; font-size: .8rem; }

.music-disc {
  position: fixed;
  z-index: 40;
  right: max(14px, calc(50vw - 214px));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 61px;
  height: 61px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: white;
  background: repeating-radial-gradient(circle, #12100f 0 4px, #272321 5px 6px);
  box-shadow: 0 8px 20px rgba(0,0,0,.33);
  cursor: pointer;
  transition: transform .2s var(--stamp);
}
.music-disc::before { content: ""; position: absolute; inset: 19px; border-radius: 50%; background: var(--burgundy); box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.music-disc i { position: relative; z-index: 1; font-style: normal; font-size: .72rem; }
.music-ring { position: absolute; inset: -18px; display: grid; place-items: center; color: var(--burgundy); font-size: .5rem; line-height: 1.1; letter-spacing: .1em; text-transform: uppercase; border: 1px dashed rgba(91,12,19,.45); border-radius: 50%; opacity: 0; transition: opacity .25s; }
.music-disc:hover .music-ring, .music-disc:focus-visible .music-ring { opacity: 1; }
.music-disc[aria-pressed="true"] { animation: recordSpin 3s linear infinite; }
.music-disc:active { transform: scale(.92); }

/* Original embossed ivory paper (via .paper-section), with drifting petals. */
.hero { --env-top: 14px; padding: 0 20px 112px; position: relative; isolation: isolate; container-type: inline-size; overflow: hidden; }
.hero-scene { position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.hero-petals i { position: absolute; top: -40px; left: var(--x); width: 22px; height: 22px; background: url("public/assets/hero-petals.webp") calc(var(--s) * -22px) 0 / 176px 22px no-repeat; opacity: 0; animation: heroPetal var(--t) var(--d) linear infinite; }
.sanskrit { margin: 0; color: var(--burgundy); text-align: center; }
.hero-heading { position: relative; z-index: 10; display: grid; justify-items: center; gap: 14px; padding: 58px 0 26px; color: var(--burgundy); text-align: center; }
.hero-heading p { max-width: 340px; margin: 0; font-family: "Snell Roundhand", "Segoe Script", cursive; font-size: clamp(1.5rem, 7.6cqw, 1.9rem); line-height: 1.3; color: #6b3a2c; }
.hero-heading h2 { margin: 0; font-weight: 400; line-height: .74; }
.hero-heading h2 span { display: block; font-family: "Snell Roundhand", "Segoe Script", cursive; font-size: clamp(5rem, 27cqw, 7rem); color: var(--burgundy); text-shadow: 0 2px 14px rgba(255,250,240,.75); }
/* Balance the calligraphic R and trailing flourish beneath the ampersand. */
.hero-heading h2 span:last-child { transform: translateX(-.2em); }
.hero-heading h2 em { display: block; margin: 16px; color: #a17b39; font-size: 1.5rem; font-weight: 400; }

.hero-collage { position: relative; z-index: 2; container-type: inline-size; height: calc(var(--env-top) + max(160cqw, 112cqw + 190px)); margin: 0 -20px; perspective: 1000px; }
.hero-envelope { position: absolute; z-index: 1; width: 110%; max-width: none; left: -5%; top: var(--env-top); filter: drop-shadow(0 16px 15px rgba(49,32,22,.18)); transform: rotate(-1deg); }
/* The card now carries a save-the-date monogram; keep it above the pocket's V edge. */
.hero-letter { position: absolute; z-index: 5; top: calc(var(--env-top) + 39.5cqw); left: 24.5%; width: 54%; display: flex; flex-direction: column; align-items: center; gap: 1.5cqw; padding: 4px 8px; color: var(--burgundy); text-align: center; rotate: 5deg; }
.hero-letter p, .hero-letter small { margin: 0; }
.letter-kicker { font-family: "Snell Roundhand", "Segoe Script", cursive; font-size: 5cqw; line-height: 1.1; color: #8a6a35; }
.letter-logo { width: 22cqw; margin: 0 0 .6cqw; }
.hero-letter strong { font-size: 3.7cqw; font-weight: 500; line-height: 1.1; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.hero-letter strong sup { margin-left: .05em; font-size: .55em; letter-spacing: .02em; text-transform: lowercase; vertical-align: .7em; line-height: 0; }
.hero-letter-fleuron { width: 50%; margin-top: .2cqw; }
.hero-letter small { margin-top: -.4cqw; font-family: "Snell Roundhand", "Segoe Script", cursive; font-size: 3.7cqw; color: #8a6a35; }
.polaroid { margin: 0; padding: 9px 9px 30px; background: #fbf8f0; box-shadow: var(--shadow); }
.polaroid img { width: 100%; height: 100%; object-fit: cover; }
.polaroid figcaption { margin-top: 8px; text-align: center; font-family: "Snell Roundhand", cursive; font-size: .82rem; }
.tilt-card { transform-style: preserve-3d; transition: transform .38s var(--ease), box-shadow .25s; }
.tilt-card:active { box-shadow: 0 7px 14px rgba(47,22,19,.18); }
.pinned-note { position: absolute; z-index: 6; top: calc(var(--env-top) + 112cqw); left: 4%; width: 45%; min-height: 150px; display: grid; align-content: center; padding: 30px 18px 22px; color: var(--ivory); text-align: center; background: linear-gradient(145deg, #3f4527, #5a5b34); box-shadow: var(--shadow); transform: rotate(1.5deg); transform-origin: 50% 8px; }
.pinned-note i { position: absolute; top: -9px; left: 50%; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ad2e39, #5b0c13 65%); box-shadow: 0 5px 6px rgba(0,0,0,.26); }
.pinned-note small { display: block; font-family: "Snell Roundhand", cursive; font-size: .9rem; }
.pinned-note strong { display: block; margin: 10px 0; font-size: .79rem; letter-spacing: .08em; line-height: 1.4; }
.pinned-note p { margin: 0; font-size: .95rem; line-height: 1.55; letter-spacing: .02em; }
.pinned-note.is-visible { animation: noteSwing 1.6s .5s var(--ease) both; }
.wreath-button { position: absolute; z-index: 11; top: calc(var(--env-top) + 109cqw); right: -3%; width: 45%; aspect-ratio: 1; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.wreath-button img { position: absolute; inset: 0; width: 100%; animation: wreathBreathe 7s ease-in-out infinite; filter: drop-shadow(0 12px 10px rgba(44,15,13,.18)); }
.wreath-button span { position: relative; z-index: 1; display: grid; align-content: center; width: 108px; min-height: 108px; margin: auto; padding: 12px 6px; border-radius: 50%; color: var(--burgundy); background: #f8f2e5; box-shadow: 0 0 0 1px rgba(185,154,97,.35); font-size: .65rem; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.wreath-button em { font-family: "Snell Roundhand", cursive; font-size: 1.3rem; letter-spacing: 0; text-transform: none; }
.wreath-button:active img { transform: scale(.92) rotate(-4deg); }
.scroll-cue { position: absolute; z-index: 15; bottom: 22px; color: #5b3a26; left: 50%; display: grid; min-height: 48px; justify-items: center; align-content: center; border: 0; background: transparent; transform: translateX(-50%); cursor: pointer; }
.scroll-cue span { margin-right: -.16em; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; }
.scroll-cue i { font-style: normal; font-size: 1.25rem; animation: bob 1.8s ease-in-out infinite; }

.section-heading { position: relative; z-index: 3; text-align: center; }
.section-heading p, .script-kicker { margin: 0 0 -5px; font-family: "Snell Roundhand", "Segoe Script", cursive; font-size: 2.3rem; line-height: 1; }
.section-heading h2 { margin: 0; font-weight: 400; font-size: 2.4rem; letter-spacing: .05em; }
.section-heading.light { color: var(--ivory); }

.details { min-height: 975px; padding: 48px 24px 60px; overflow: hidden; }
.details::before, .details::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(130,28,37,.35); filter: blur(2px); }
.details::before { left: -120px; top: -100px; }
.details::after { right: -130px; bottom: -80px; }
.envelope-back { position: absolute; z-index: 1; top: 218px; left: 14%; width: 72%; height: 215px; background: linear-gradient(150deg, #68673d, #3b4228); box-shadow: var(--shadow); transform: rotate(2deg); }
.envelope-back::before { content: "❈"; position: absolute; right: 28px; top: 22px; color: rgba(185,154,97,.52); font-size: 3rem; }
.torn-card { position: relative; z-index: 2; width: 82%; margin: 72px auto 0; padding: 30px 20px 28px; color: var(--ink); text-align: center; background: var(--ivory); filter: drop-shadow(0 16px 16px rgba(30,0,3,.27)); clip-path: polygon(2% 0, 97% 1%, 100% 5%, 98% 11%, 100% 18%, 98% 27%, 100% 35%, 98% 44%, 100% 53%, 98% 61%, 100% 70%, 97% 79%, 100% 88%, 98% 96%, 94% 100%, 86% 98%, 77% 100%, 67% 98%, 57% 100%, 47% 98%, 38% 100%, 28% 98%, 18% 100%, 8% 98%, 1% 100%, 2% 91%, 0 82%, 2% 72%, 0 61%, 2% 51%, 0 41%, 2% 30%, 0 20%, 2% 10%); }
.torn-card h3 { margin: 0; font-weight: 400; line-height: .9; font-size: 2rem; text-transform: uppercase; }
.torn-card h3 span { display: block; }
.torn-card h3 span + br { display: none; }
.torn-card h3::after { content: ""; display: block; width: 35px; height: 1px; margin: 15px auto; background: var(--gold); }
.torn-card h3 span:last-child, .torn-card h3 { font-family: Georgia, serif; }
.event-date { color: var(--burgundy); font-size: .55rem; }
.torn-card img { width: 82%; max-height: 205px; margin: 10px auto; object-fit: contain; filter: sepia(.25) saturate(.75); }
.torn-card h4 { margin: 12px 0 3px; font-size: .71rem; letter-spacing: .12em; }
.torn-card p:not(.event-date) { margin: 0; font-size: .72rem; line-height: 1.45; }
.ornament { margin: 5px; color: var(--gold); }
.pill-button, .cream-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 0 18px; border: 0; border-radius: 999px; color: white; background: var(--burgundy); font-size: .66rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; cursor: pointer; box-shadow: 0 5px 12px rgba(42,0,3,.2); transition: transform .18s var(--stamp), box-shadow .18s; }
.pill-button:active, .cream-button:active { transform: scale(.96); box-shadow: 0 2px 5px rgba(42,0,3,.2); }
.wedding-countdown { position: relative; container-type: inline-size; display: grid; align-items: center; min-height: 280px; padding: 52px clamp(24px, 6vw, 32px); color: var(--ivory); text-align: center; background: #480500 url("public/assets/countdown-minimal-960.webp") center / cover no-repeat; }
.countdown-content { display: grid; gap: 28px; width: 100%; min-width: 0; margin: 0 auto; max-width: 396px; }
.wedding-countdown h2 { margin: 0; color: #fff5df; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(.95rem, 5cqw, 1.25rem); font-weight: 400; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.wedding-countdown-digits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; }
.wedding-countdown-digits[hidden] { display: none; }
.wedding-countdown-digits > div { position: relative; display: flex; flex-direction: column-reverse; gap: 14px; min-width: 0; padding: 0 4px; }
.wedding-countdown-digits > div + div::before { content: ":"; position: absolute; left: 0; top: 0; transform: translateX(-50%); color: #fff5df; font-family: "Times New Roman", Times, serif; font-weight: 400; font-style: normal; font-size: clamp(2rem, 14cqw, 3.5rem); line-height: 1; }
.wedding-countdown-digits dd { margin: 0; color: #fff5df; font-family: "Times New Roman", Times, serif; font-weight: 400; font-style: normal; font-size: clamp(2rem, 14cqw, 3.5rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.wedding-countdown-digits dt { color: #fff5df; font-size: clamp(.5625rem, 2.7cqw, .75rem); line-height: 1.3; letter-spacing: .05em; text-transform: uppercase; }

.countdown { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 35px; }
.countdown div { padding: 12px 2px; text-align: center; border: 1px solid rgba(244,239,229,.28); background: rgba(255,255,255,.04); }
.countdown strong { display: block; font-weight: 400; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .54rem; letter-spacing: .12em; text-transform: uppercase; }

.itinerary { padding: 57px 27px 30px; }
.itinerary .section-heading { margin-bottom: 38px; color: var(--burgundy); }
.itinerary .section-heading h2 { font-family: "Snell Roundhand", cursive; font-size: 3rem; letter-spacing: 0; }
.timeline { position: relative; padding-left: 17px; }
.timeline-item { position: relative; z-index: 2; display: grid; grid-template-columns: 72px 1fr; width: 100%; min-height: 89px; padding: 4px 0; border: 0; text-align: left; background: transparent; cursor: pointer; }
.timeline-item > i { align-self: start; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #b6ad9d; border-radius: 50%; color: var(--burgundy); background: var(--ivory); font-style: normal; transform: scale(.7) rotate(-8deg); transition: transform .5s var(--stamp), background .25s, color .25s; }
.timeline.is-visible .timeline-item > i { transform: scale(1) rotate(0); }
.timeline-item:nth-of-type(3) > i { transition-delay: .12s; }.timeline-item:nth-of-type(4) > i { transition-delay: .2s; }.timeline-item:nth-of-type(5) > i { transition-delay: .28s; }.timeline-item:nth-of-type(6) > i { transition-delay: .36s; }.timeline-item:nth-of-type(7) > i { transition-delay: .44s; }
.timeline-item b { display: block; color: var(--burgundy); font-size: .65rem; letter-spacing: .11em; }
.timeline-item strong { display: block; margin-top: 2px; font-size: 1.03rem; font-weight: 500; }
.timeline-item small { display: block; max-height: 0; overflow: hidden; opacity: 0; font-style: italic; transition: max-height .35s var(--ease), opacity .25s, margin .35s; }
.timeline-item[aria-expanded="true"] small { max-height: 35px; margin-top: 5px; opacity: .72; }
.timeline-item[aria-expanded="true"] > i { color: var(--ivory); background: var(--burgundy); transform: scale(1.08); }

.rituals { min-height: 650px; padding: 56px 20px 70px; }
.ritual-tabs { display: flex; gap: 7px; margin: 32px -20px 24px; padding: 0 20px 6px; overflow-x: auto; scrollbar-width: none; }
.ritual-tabs::-webkit-scrollbar { display: none; }
.ritual-tabs button { flex: 0 0 auto; min-height: 44px; padding: 0 17px; border: 1px solid rgba(244,239,229,.38); border-radius: 999px; color: var(--ivory); background: transparent; cursor: pointer; transition: background .25s, color .25s, transform .2s; }
.ritual-tabs button[aria-selected="true"] { color: var(--burgundy); background: var(--ivory); transform: translateY(-2px); }
.ritual-card { position: relative; min-height: 310px; padding: 54px 33px 35px; color: var(--ink); text-align: center; background: var(--ivory); box-shadow: var(--shadow); clip-path: polygon(50% 0, 57% 3%, 65% 1%, 71% 5%, 79% 4%, 84% 9%, 92% 10%, 94% 17%, 99% 22%, 97% 31%, 100% 39%, 97% 47%, 100% 56%, 96% 64%, 98% 72%, 93% 79%, 91% 87%, 83% 89%, 77% 95%, 68% 94%, 60% 99%, 51% 96%, 43% 100%, 35% 96%, 27% 98%, 21% 92%, 13% 90%, 10% 82%, 4% 78%, 5% 69%, 1% 62%, 4% 53%, 0 45%, 4% 37%, 1% 28%, 6% 21%, 7% 13%, 15% 10%, 21% 4%, 30% 5%, 38% 1%); }
.ritual-card > span { color: var(--burgundy); font-size: .62rem; letter-spacing: .16em; }
.ritual-card h3 { margin: 17px 0 12px; color: var(--burgundy); font-family: "Snell Roundhand", cursive; font-size: 2.35rem; font-weight: 400; }
.ritual-card p { margin: 0 auto; max-width: 270px; line-height: 1.6; font-size: .87rem; }
.rangoli { margin-top: 22px; color: var(--gold); font-size: 2.2rem; }
.ritual-card.changing { animation: paperChange .45s var(--ease); }

.family-note { display: grid; place-items: center; min-height: 500px; padding: 50px 24px; }
.flower-blob { display: grid; place-content: center; width: min(88vw, 345px); aspect-ratio: 1; padding: 62px; color: var(--ivory); text-align: center; background: var(--burgundy); border-radius: 43% 57% 48% 52% / 55% 42% 58% 45%; box-shadow: var(--shadow); animation: blobMorph 12s ease-in-out infinite; }
.flower-blob span { font-size: 2.2rem; }
.flower-blob p { font-size: .77rem; line-height: 1.55; }
.flower-blob strong { font-weight: 500; }

.travel, .dress-code { padding: 72px 23px; }
.travel { padding-top: 22px; }
.arch-card { position: relative; min-height: 660px; padding: 76px 26px 35px; overflow: hidden; color: var(--ivory); text-align: center; background: linear-gradient(145deg, #565a35, #3b4329); border-radius: 48% 48% 8px 8px / 25% 25% 8px 8px; box-shadow: var(--shadow), inset 0 0 0 7px #ece3cf, inset 0 0 0 9px rgba(185,154,97,.6); }
.wax-seal { position: absolute; z-index: 4; top: 10px; left: 50%; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 45% 55% 47% 53%; color: #ddc79f; background: radial-gradient(circle at 35% 30%, #a82732, #5b0c13 65%); box-shadow: 0 7px 10px rgba(0,0,0,.3); transform: translateX(-50%) rotate(-7deg); }
.route { height: 42px; margin: 4px 0 2px; }
.route span { display: inline-block; width: 120px; border-top: 1px dashed rgba(244,239,229,.75); transform: rotate(-9deg); }
.route i { position: relative; left: -4px; display: inline-block; font-style: normal; transform: rotate(-12deg); }
.arch-card.is-visible .route i { animation: flyIn 1.6s .6s var(--ease) both; }
.arch-card .script-kicker { font-size: 2.75rem; }
.arch-card h2 { margin: 4px auto 15px; max-width: 285px; font-weight: 400; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.arch-card img { width: calc(100% + 52px); height: 270px; margin: 18px -26px 22px; object-fit: cover; mix-blend-mode: luminosity; opacity: .78; border-top: 1px solid rgba(244,239,229,.4); border-bottom: 1px solid rgba(244,239,229,.4); }
.arch-card > p:not(.script-kicker) { font-size: .8rem; line-height: 1.55; }
.cream-button { color: var(--olive); background: var(--ivory); }

.dress-code { padding-top: 18px; }
.dress-card { min-height: 570px; padding-top: 92px; }
.dress-card h2 { margin: -3px auto 20px; font-family: "Snell Roundhand", cursive; font-size: 3rem; letter-spacing: 0; text-transform: none; }
.outfit { display: grid; place-items: center; width: 130px; height: 150px; margin: 12px auto; color: var(--gold); font-size: 5rem; border: 1px solid rgba(244,239,229,.22); border-radius: 50% 50% 8px 8px; }
.swatches { display: flex; justify-content: center; gap: 12px; margin: 24px 0 20px; }
.swatches button { width: 44px; height: 44px; border: 3px solid transparent; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px rgba(255,255,255,.45); cursor: pointer; transition: transform .22s var(--stamp), border-color .22s; }
.swatches button.active { border-color: var(--ivory); transform: scale(1.18); }
.dress-card small { display: block; opacity: .75; font-size: .68rem; }

.story { min-height: 790px; padding: 58px 25px 70px; }
.story-photo { width: 82%; margin: 45px auto 30px; padding: 10px 10px 38px; color: var(--ink); background: var(--ivory); box-shadow: 0 18px 35px rgba(28,0,2,.35); transform: rotate(-3deg); }
.story-photo img { width: 100%; height: auto; }
.story-photo figcaption { margin-top: 13px; text-align: center; font-family: "Snell Roundhand", cursive; }
.story-copy { text-align: center; }
.story-copy span { font-size: .72rem; letter-spacing: .14em; }
.story-copy i { display: inline-block; width: 80px; margin: 0 10px 3px; border-top: 1px solid rgba(244,239,229,.5); }
.story-copy p { max-width: 330px; margin: 20px auto 0; font-size: .83rem; line-height: 1.65; }

.rsvp { min-height: 860px; padding: 110px 20px 75px; overflow: hidden; }
.rsvp-floral { position: absolute; z-index: 1; top: 25px; right: -55%; width: 145%; max-width: none; transform: rotate(12deg); filter: drop-shadow(0 15px 15px rgba(28,0,2,.3)); }
.rsvp-envelope { position: relative; z-index: 2; margin-top: 120px; padding: 20px 16px 30px; background: #687047; box-shadow: 0 25px 35px rgba(31,0,3,.35); }
.rsvp-envelope::before, .rsvp-envelope::after { content: ""; position: absolute; inset: 0; z-index: 1; background: #535a36; clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); pointer-events: none; }
.rsvp-envelope::after { background: rgba(185,154,97,.12); clip-path: polygon(0 100%, 50% 54%, 100% 100%); }
.rsvp-card { position: relative; z-index: 2; min-height: 560px; padding: 34px 25px; color: var(--ink); text-align: center; background: var(--ivory); box-shadow: var(--shadow); transform: translateY(-80px); transition: transform .7s var(--ease); }
.rsvp-envelope.is-visible .rsvp-card { transform: translateY(-120px); }
.rsvp-card .script-kicker { color: var(--burgundy); }
.rsvp-card h2 { margin: -3px 0 3px; color: var(--burgundy); font-size: 3rem; font-weight: 400; }
.rsvp-card > p { margin: 0 0 24px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.rsvp-card form { display: grid; gap: 17px; text-align: left; }
.rsvp-card form[hidden] { display: none; }
.rsvp-card label, .rsvp-card legend { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.rsvp-card input[type="text"], .rsvp-card input:not([type]), .rsvp-card select { width: 100%; min-height: 44px; margin-top: 7px; padding: 0 4px; border: 0; border-bottom: 1px solid #b9a88e; border-radius: 0; color: var(--ink); background: transparent; outline: none; }
.rsvp-card input:focus, .rsvp-card select:focus { border-color: var(--burgundy); box-shadow: 0 2px 0 var(--burgundy); }
.rsvp-card fieldset { display: grid; gap: 10px; padding: 13px 0 0; border: 0; border-top: 1px solid #d7cbbb; }
.rsvp-card fieldset label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.rsvp-card input[type="radio"] { accent-color: var(--burgundy); }
.rsvp-card .pill-button { justify-self: center; margin-top: 2px; }
.rsvp-success { display: none; place-content: center; min-height: 380px; }
.rsvp-success.show { display: grid; animation: stampIn .7s var(--stamp); }
.rsvp-success .success-seal { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto; border-radius: 48% 52% 45% 55%; color: #e7d1ac; background: var(--burgundy); box-shadow: var(--shadow); }
.rsvp-success h3 { margin: 24px 0 7px; color: var(--burgundy); font-family: "Snell Roundhand", cursive; font-size: 2.6rem; font-weight: 400; }
.rsvp-success p { max-width: 260px; line-height: 1.5; }

.footer { min-height: 420px; padding: 76px 25px 40px; text-align: center; }
/* Bold closing lines: Baskerville on iPhone and Mac, Georgia elsewhere. */
.footer > p, .footer > small { font-family: Baskerville, "Baskerville Old Face", Georgia, serif; font-weight: 700; color: #4a2a22; }
.footer > p { margin-top: 28px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer h2 { margin: 13px 0; color: var(--burgundy); font-family: "Snell Roundhand", "Segoe Script", cursive; font-size: clamp(2.1rem, 10vw, 2.8rem); font-weight: 700; }
.footer > small { display: block; font-size: 1rem; line-height: 1.5; letter-spacing: .04em; }
.footer button { display: block; min-height: 44px; margin: 50px auto 0; padding: 0 14px; border: 1px solid rgba(91,12,19,.25); border-radius: 99px; color: var(--burgundy); background: transparent; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }

.petal-layer { position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden; }
.petal { position: absolute; top: -30px; width: 14px; height: 20px; border-radius: 80% 0 80% 20%; background: var(--petal, #8e1420); opacity: .9; animation: petalFall var(--duration, 3.2s) var(--delay, 0s) var(--ease) forwards; }

.reveal { opacity: 0; transform: translateY(17px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

button:focus-visible, a:focus-visible, .tilt-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.paper-section button:focus-visible, .paper-section a:focus-visible { outline-color: var(--burgundy); }

@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes recordSpin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(7px); } }
@keyframes noteSwing { 0% { transform: rotate(7deg); } 35% { transform: rotate(-4deg); } 70% { transform: rotate(3deg); } 100% { transform: rotate(1.5deg); } }
@keyframes wreathBreathe { 50% { transform: scale(1.025) rotate(1.5deg); } }
@keyframes blobMorph { 50% { border-radius: 55% 45% 54% 46% / 44% 56% 43% 57%; transform: rotate(1deg); } }
@keyframes paperChange { 45% { transform: scale(.975) rotate(-1deg); opacity: .65; } }
@keyframes flyIn { from { transform: translate(-100px, 18px) rotate(-16deg); opacity: 0; } }
@keyframes stampIn { from { transform: scale(.65) rotate(-8deg); opacity: 0; } }
@keyframes heroPetal { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 8% { opacity: .95; } 50% { transform: translate(calc(var(--r) * 28px), 520px) rotate(calc(var(--r) * 260deg)); } 85% { opacity: .9; } 100% { opacity: 0; transform: translate(calc(var(--r) * -10px), 1050px) rotate(calc(var(--r) * 540deg)); } }
@keyframes petalFall { to { transform: translate(var(--drift, 35px), 105svh) rotate(620deg); opacity: .1; } }

.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }

@media (min-width: 700px) {
  body { padding: 28px 0; background: radial-gradient(circle at top, #6d4a43, #241c1b 48%); }
  .site-shell { border-radius: 38px; }
  .invitation-gate { inset: 28px auto; left: 50%; width: 460px; border-radius: 38px; transform: translateX(-50%); box-shadow: 0 20px 80px rgba(0,0,0,.45); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Keep the supplied venues readable, including when timeline cards expand. */
.timeline-item[aria-expanded="true"] small { max-height: 80px; line-height: 1.5; }
.countdown-caption { margin: 30px 20px -14px; text-align: center; font-size: .72rem; line-height: 1.5; }

/* Full-height portrait artwork with accessible, selectable event details. */
/* One celebration per iPhone screen: the 9:16 art fills the visible Safari area and the details sit in its open centre. */
.event-screen { position: relative; isolation: isolate; display: grid; place-items: center; height: 100svh; min-height: 540px; max-height: 1000px; padding: 28px 0 60px; overflow: hidden; background: #83a8b7; color: #172f3a; text-align: center; font-family: "Cormorant Garamond", Georgia, serif; }
.event-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center center; }
.event-screen::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent 3%, rgba(228,239,232,.12) 16%, rgba(237,242,231,.38) 30%, transparent 49%, transparent 80%, rgba(12,26,30,.65) 100%); }
.event-copy { position: relative; width: 100%; padding: 0 25px; }
.event-kicker { max-width: 285px; margin: 0 auto 18px; font-size: .72rem; line-height: 1.8; letter-spacing: .14em; font-weight: 400; color: #fff3de; text-shadow: 0 1px 8px rgba(9,34,48,.65); text-transform: uppercase; }
.event-copy h2 { margin: 0; font-family: "Great Vibes", cursive; font-style: normal; font-size: clamp(4.3rem, 19vw, 5.5rem); line-height: 1.15; font-weight: 400; letter-spacing: 0; }
.event-copy h2 em { display: block; margin: 4px 0 0; font: inherit; }
.event-title-prefix { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: .52em; line-height: 1.05; }
.event-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px auto; color: #71502d; font-size: .8rem; }
.event-divider::before, .event-divider::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .65; }
.event-date { margin: 0 0 12px; font-size: .76rem; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; }
.event-venue { margin: 0; font-size: 1.45rem; line-height: 1.35; }
.event-venue span { display: block; margin-top: 5px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.event-map { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin: 17px 0 0; padding: 0 20px; border: 1px solid rgba(23,47,58,.55); border-radius: 99px; color: #172f3a; background: rgba(243,242,226,.55); font-size: .72rem; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.event-map:hover { background: rgba(243,242,226,.85); }
.event-map:focus-visible, .event-next:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.event-next { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: grid; place-items: center; gap: 4px; min-height: 44px; padding: 5px 16px; border-radius: 99px; color: #fff5de; background: var(--next-bg, rgba(20,10,6,.35)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-decoration: none; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.event-next span { font-size: 1rem; }

/* Floral cocktail stationery, with details in the open ivory centre. */
.sangeet-screen { --next-bg: rgba(255,251,244,.82); color: #4b1020; background: #faf7f0; }
.sangeet-screen::before { background: none; }
/* Sangeeth Sundowner: keep the details between the arch line and the orchids, below the hibiscus. */
.sangeet-screen { padding-top: 150px; }
.sangeet-screen .event-copy { padding: 0 64px 0 26px; }
.event-screen.sangeet-screen .event-copy h2 { font-size: clamp(2.3rem, 10.5vw, 2.9rem); white-space: nowrap; }
.sangeet-screen .event-divider { color: #646b40; }
.sangeet-screen .event-date { color: #4b1020; font-size: .82rem; font-weight: 600; letter-spacing: .06em; }
.sangeet-screen .event-map { color: #4b1020; border-color: #747b50; background: rgba(255,252,245,.9); font-weight: 600; }
.sangeet-screen .event-map:hover { background: #fffaf0; }
.sangeet-screen .event-next { color: #4b1020; text-shadow: 0 1px 4px #fffaf0; font-weight: 600; }

/* Saffron arch artwork with maroon event details in the open centre. */
.haldi-screen { --next-bg: rgba(255,232,190,.85); color: #5b0c13; background: #ec870b; }
.haldi-screen::before { background: linear-gradient(180deg, transparent 12%, rgba(255,193,83,.14) 30%, transparent 68%, transparent 85%, rgba(255,223,158,.75) 100%); }
.haldi-screen .event-copy { padding-inline: 30px; color: #280706; text-shadow: 0 1px 1px rgba(255,224,163,.6); }
.haldi-screen .event-copy h2 { font-size: clamp(3.3rem, 16vw, 4.5rem); -webkit-text-stroke: .35px currentColor; }
.haldi-amp { font-size: .65em; }
.haldi-screen .event-divider { color: #48100b; margin-block: 20px; }
.haldi-screen .event-date { color: #280706; font-size: .88rem; font-weight: 700; letter-spacing: .05em; }
.haldi-screen .event-venue { font-weight: 700; font-size: 1.6rem; }
.haldi-screen .event-map { color: #3e070c; border-color: #5b0c13; background: rgba(255,236,194,.95); font-size: .8rem; font-weight: 600; }
.haldi-screen .event-map:hover { background: #fff4df; }
.haldi-screen .event-next { color: #280706; font-weight: 600; text-shadow: 0 1px 5px #ffe8bd; }

/* Brass bells and banana-leaf stationery with an open ivory centre. */
.muhurtham-screen { --next-bg: rgba(255,250,237,.86); color: #3b4525; background: #faf5e9; }
.muhurtham-screen::before { background: none; }
.muhurtham-screen .event-copy { padding-inline: 35px; }
.muhurtham-screen .event-copy h2 { font-size: clamp(2.9rem, 14vw, 4rem); }
/* Keep the venue line inside the gap between the banana leaves. */
.event-screen.muhurtham-screen .event-venue { font-size: clamp(1rem, 4.4vw, 1.12rem); }
.muhurtham-screen .event-divider { margin-block: 12px; }
.muhurtham-screen .event-kicker { color: #7b5934; text-shadow: none; }

.muhurtham-screen .event-divider { color: #9b782e; }
.muhurtham-screen .event-date { color: #4b1020; font-size: .82rem; font-weight: 600; letter-spacing: .06em; }
.muhurtham-screen .event-map { color: #3b4525; border-color: #70784d; background: rgba(255,251,237,.9); font-weight: 600; }
.muhurtham-screen .event-next { color: #624522; text-shadow: 0 1px 5px #fff8e5; }

/* Reference-inspired wedding portrait, with live details in the open centre. */
.wedding-screen { --next-bg: rgba(60,14,4,.6); color: #ffedcb; background: #73270e; }
.wedding-screen::before { background: linear-gradient(180deg, transparent 8%, rgba(42,10,2,.16) 20%, rgba(42,10,2,.16) 55%, transparent 67%, transparent 87%, rgba(42,10,2,.7) 100%); }
.wedding-screen .event-copy { text-shadow: 0 2px 8px rgba(45,12,2,.5); }
.wedding-screen .event-kicker, .wedding-screen .event-date { color: #ffedcb; }
.wedding-screen .event-divider { color: #e2bb76; }
.wedding-screen .event-map { color: #ffedcb; border-color: #dfb878; background: rgba(69,19,5,.55); }
.wedding-screen .event-map:hover { background: rgba(69,19,5,.8); }
.wedding-screen .event-next { color: #ffedcb; text-shadow: 0 2px 6px #401304; }

/* Reference-inspired Reception decor, with live text in the dark centre. */
.reception-screen { --next-bg: rgba(2,16,24,.62); color: #fff1d8; background: #031822; font-family: "Cormorant Garamond", Georgia, serif; }
.reception-screen::before { background: linear-gradient(180deg, transparent 26%, rgba(0,10,18,.12) 40%, transparent 73%, rgba(0,10,18,.8) 100%); }
.reception-screen .event-copy { padding-inline: 28px; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.reception-screen .event-kicker { color: #f4dfba; }

.reception-screen .event-divider { color: #d9b77a; }
.reception-screen .event-date { color: #f4dfba; }


.reception-screen .event-map { color: #fff1d8; border-color: #d9b77a; background: rgba(3,24,34,.75); }
.reception-screen .event-map:hover { background: rgba(217,183,122,.18); }
.reception-screen .event-next { text-shadow: 0 2px 6px #000; }
@media (max-width: 360px) { .reception-screen .event-copy { padding-right: 20px; padding-left: 20px; }  }


/* Show the bespoke invitation straight on for easy reading. */
.invitation-photo { width: 92%; padding: 8px 8px 22px; transform: none; }

/* Compact travel card after removing its ornamental image and seal. */
.travel .arch-card { min-height: 430px; padding: 60px 26px 48px; }
.travel .arch-card > p:not(.script-kicker) { margin-top: 32px; }

/* Short Safari viewports (iPhone SE, toolbars showing): tighten the details so they stay in the art's open centre. */
@media (max-height: 640px) {
  .event-screen .event-copy h2 { font-size: clamp(2.9rem, 12svh, 4rem); line-height: 1.1; }
  .event-screen .event-divider { margin-block: 9px; }
  .event-screen .event-date { margin-bottom: 8px; }
  .event-screen .event-venue { font-size: 1.25rem; }
  .event-screen .event-map { margin-top: 12px; }
}

/* Shared compact typography across all event cards. */
@media (max-width: 360px) { .event-copy { padding-right: 20px; padding-left: 20px; } .event-kicker { font-size: .64rem; } }
@media (max-height: 740px) { .event-kicker { margin-bottom: 12px; } .event-divider { margin: 12px auto; } }

/* Shared function-card hierarchy: script title, display date, then venue. */
.event-screen .event-copy h2 { margin-bottom: 26px; }
.event-screen .event-date { margin: 0 0 27px; font-size: clamp(1.8rem, 8vw, 2.3rem); font-weight: 400; line-height: 1.15; letter-spacing: 0; text-transform: none; }
.event-date time { display: flex; justify-content: center; align-items: baseline; gap: .18em; white-space: nowrap; }
.event-date time > span:first-child { font-variant: small-caps; }
.event-date time i { font-style: normal; font-weight: 400; opacity: .8; }
.event-screen .event-venue { margin: 0 auto; max-width: 330px; font-size: clamp(1.05rem, 4.7vw, 1.35rem); font-weight: 500; line-height: 1.5; font-variant: small-caps; }
.event-venue small { font: inherit; }
.event-venue small::after { content: " –"; }
.event-screen .event-venue span { display: block; margin-top: 0; font: inherit; letter-spacing: .06em; }
/* Full street address under a venue name, in plain lettering so it stays compact. */
.event-screen .event-venue .event-address { margin-top: 6px; font-variant: normal; text-transform: none; font-size: .95rem; line-height: 1.4; letter-spacing: .01em; }
.event-screen .event-map { margin-top: 22px; }
@media (max-height: 740px) {
  .event-screen .event-copy h2 { margin-bottom: 21px; }
  .event-screen .event-date { margin-bottom: 22px; }
}

/* Celebration start times, between the date and venue. */
.event-screen .event-date { margin-bottom: 12px; }
.event-time { margin: 0 0 22px; font-size: 1rem; line-height: 1.5; letter-spacing: .04em; }
.event-time time { font-weight: 600; }
@media (max-height: 740px) { .event-time { margin-bottom: 16px; } }
