: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; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background: #241c1b;
  overflow-x: hidden;
}
body:not(.gate-open) { overflow: hidden; }
body:not(.gate-open), body:not(.gate-open) * { 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(2.7rem, 13vw, 4.3rem); font-family: "Snell Roundhand", "Segoe Script", cursive; }
.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: 140px; 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: 50%; transform: translateX(-50%); width: min(100%, 460px); height: 3px; pointer-events: none; }
.progress span { display: block; width: 0; height: 100%; background: var(--gold); }

.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); }

.hero { min-height: 1110px; padding: 28px 20px 72px; }
.sanskrit { margin: 0; color: var(--burgundy); text-align: center; }
.hero-heading { position: relative; z-index: 10; text-align: center; }
.hero-heading > p:first-child { margin: 21px 0 26px; font-size: .74rem; font-style: italic; }
.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(2.7rem, 13vw, 4.3rem); color: var(--burgundy); }
.hero-heading h2 em { display: block; margin: 12px; color: var(--gold); font-size: 1.2rem; font-weight: 400; }
.wedding-label { margin-top: 18px; }

.hero-collage { position: relative; height: 785px; margin: 7px -20px 0; perspective: 1000px; }
.hero-envelope { position: absolute; z-index: 1; width: 110%; max-width: none; left: -5%; top: 94px; filter: drop-shadow(0 16px 15px rgba(49,32,22,.18)); transform: rotate(-1deg); }
.hero-letter { position: absolute; z-index: 5; top: 286px; left: 19%; width: 62%; color: var(--burgundy); text-align: center; transform: rotate(-1.5deg); }
.hero-letter p { margin: 0; font-family: "Snell Roundhand", cursive; font-size: 1.05rem; }
.hero-letter strong { display: block; margin: 6px 0 0; font-weight: 400; line-height: 1; }
.hero-letter strong span { display: block; font-family: "Snell Roundhand", "Segoe Script", cursive; font-size: clamp(1.7rem, 8vw, 2.05rem); }
.hero-letter strong i { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 2px; font-family: Georgia, serif; font-size: 1rem; color: var(--gold); }
.hero-letter strong i::before, .hero-letter strong i::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-letter strong i::after { transform: scaleX(-1); }
.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; }
.hero .polaroid { position: absolute; z-index: 8; width: 42%; height: 220px; left: 9%; top: 62px; transform: rotate(-8deg); }
.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); }
.date-medallion { position: absolute; z-index: 9; top: 425px; right: 3%; display: grid; place-content: center; width: 158px; aspect-ratio: 1; text-align: center; background: #ddd0b6; border-radius: 44% 56% 52% 48%; box-shadow: var(--shadow), inset 0 0 0 8px #f5eee0, inset 0 0 0 10px #c2b08e; transform: rotate(5deg); }
.date-medallion::before { content: ""; position: absolute; inset: -11px; border: 2px dotted #c3b594; border-radius: 50%; }
.date-medallion small { font-family: "Snell Roundhand", cursive; font-size: 1rem; }
.date-medallion em { margin-top: 4px; font-style: normal; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.date-medallion strong { margin: 2px 0 3px; color: var(--burgundy); font-size: 2.25rem; font-weight: 400; line-height: 1; white-space: nowrap; }
.date-medallion span { font-size: .7rem; letter-spacing: .3em; }
.pinned-note { position: absolute; z-index: 6; top: 482px; left: 7%; width: 47%; min-height: 185px; padding: 31px 18px 20px; 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: .86rem; line-height: 1.3; }
.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: .66rem; line-height: 1.45; }
.pinned-note.is-visible { animation: noteSwing 1.6s .5s var(--ease) both; }
.wreath-button { position: absolute; z-index: 11; top: 585px; right: 0; display: grid; place-items: center; padding: 0; width: 190px; 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; place-content: center; width: 108px; aspect-ratio: 1; border-radius: 50%; background: var(--burgundy); border: 1px solid var(--gold); box-shadow: 0 2px 12px rgba(0,0,0,.2); line-height: 1.5; color: var(--ivory); font-size: .69rem; letter-spacing: .08em; 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: 18px; 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 { 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; }
.details-art { position: relative; width: 82%; margin: 10px auto; }
.torn-card img { position: relative; z-index: 1; width: 100%; max-height: 205px; margin: 0 auto; object-fit: contain; filter: sepia(.25) saturate(.75); animation: artGlow 6s ease-in-out infinite; }
.event-venue { margin: 0 0 4px; color: var(--burgundy); font-size: .7rem !important; letter-spacing: .14em; text-transform: uppercase; }
.torn-card .ornament { display: inline-block; animation: ornamentSway 3.5s ease-in-out infinite; }
.torn-card h4 + p + .ornament + h4 + p + .ornament { animation-delay: .8s; }

.sky-lanterns { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky-lanterns i { position: absolute; bottom: -60px; left: var(--x); width: var(--w, 16px); height: calc(var(--w, 16px) * 1.35); border-radius: 30% 30% 45% 45%; background: linear-gradient(#ffd98a, #e98a2b 70%, #b5471b); box-shadow: 0 0 14px 4px rgba(255,180,80,.45); opacity: 0; animation: lanternRise var(--d) var(--delay) linear infinite; }
.sky-lanterns i:nth-child(1) { --x: 8%; --d: 16s; --delay: 0s; }
.sky-lanterns i:nth-child(2) { --x: 26%; --w: 11px; --d: 20s; --delay: 5s; }
.sky-lanterns i:nth-child(3) { --x: 48%; --w: 13px; --d: 18s; --delay: 9s; }
.sky-lanterns i:nth-child(4) { --x: 70%; --d: 17s; --delay: 2.5s; }
.sky-lanterns i:nth-child(5) { --x: 86%; --w: 10px; --d: 22s; --delay: 7s; }
.sky-lanterns i:nth-child(6) { --x: 60%; --w: 9px; --d: 24s; --delay: 13s; }
.temple-bells { position: absolute; inset: 0 0 auto; z-index: 2; height: 0; pointer-events: none; }
.temple-bells i { position: absolute; top: 0; width: 2px; height: 70px; background: linear-gradient(var(--gold), #8b6a35); transform-origin: top center; animation: bellSwing 3.2s ease-in-out infinite; }
.temple-bells i::after { content: ""; position: absolute; left: -11px; bottom: -20px; width: 24px; height: 24px; border-radius: 50% 50% 18% 18% / 70% 70% 20% 20%; background: radial-gradient(circle at 35% 30%, #f3d78f, #b9893b 55%, #7c5520); box-shadow: 0 4px 8px rgba(0,0,0,.3); }
.temple-bells i:nth-child(1) { left: 12%; }
.temple-bells i:nth-child(2) { right: 12%; height: 52px; animation-delay: -1.6s; }
.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); }
.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 70px; }
.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: 104px; padding: 4px 0; border: 0; text-align: left; background: transparent; cursor: pointer; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; z-index: -1; top: 25px; bottom: -25px; left: 20px; width: 1px; background: rgba(91,12,19,.35); }
.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 strong { font-family: "Snell Roundhand", "Segoe Script", cursive; font-size: 1.7rem; font-weight: 400; color: var(--burgundy); line-height: 1.15; }
.timeline-item small { display: block; margin-top: 2px; font-size: .78rem; font-style: italic; opacity: .8; }
.timeline-item > span { transition: transform .3s var(--ease); }
.timeline-item:active > span { transform: translateX(4px); }
.timeline-item:active > i, .timeline-item:focus-visible > i { color: var(--ivory); background: var(--burgundy); transform: scale(1.08); }
.timeline.is-visible .timeline-item > i { animation: iconPulse 4s ease-in-out infinite; }
.timeline.is-visible .timeline-item:nth-of-type(2) > i { animation-delay: 1s; }
.timeline.is-visible .timeline-item:nth-of-type(3) > i { animation-delay: 2s; }
.timeline.is-visible .timeline-item:nth-of-type(4) > i { animation-delay: 3s; }
.timeline-hint { margin: 18px 0 0; text-align: center; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }

.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 > :not(.ritual-motion) { position: relative; z-index: 1; }
.ritual-card.is-visible { animation: cardFloat 6s ease-in-out infinite; }
.ritual-time { 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: 18px; color: var(--gold); font-size: 2.2rem; animation: slowSpin 14s linear infinite; }
.ritual-venue { margin: 16px auto 0 !important; color: var(--burgundy); font-size: .74rem !important; letter-spacing: .08em; text-transform: uppercase; }
.ritual-venue i { font-style: normal; }
.ritual-actions { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 8px; }
.pill-button--outline { color: var(--burgundy); background: transparent; border: 1px solid var(--burgundy); box-shadow: none; }
.pill-button--outline span { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
.pill-button[hidden] { display: none; }

/* Per-celebration motion layer */
.ritual-motion { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ritual-motion span { position: absolute; bottom: -40px; left: var(--x); width: var(--s); height: var(--s); opacity: 0; animation: var(--anim, gulal) var(--d) var(--delay) ease-in-out infinite; }
.ritual-motion span:nth-child(1) { --x: 8%; --s: 46px; --d: 6s; --delay: 0s; --c: #f2b632; }
.ritual-motion span:nth-child(2) { --x: 24%; --s: 30px; --d: 7s; --delay: 1.2s; --c: #e2577a; }
.ritual-motion span:nth-child(3) { --x: 41%; --s: 38px; --d: 5.5s; --delay: 2.6s; --c: #7fae3c; }
.ritual-motion span:nth-child(4) { --x: 60%; --s: 52px; --d: 6.5s; --delay: .6s; --c: #f08a24; }
.ritual-motion span:nth-child(5) { --x: 78%; --s: 34px; --d: 7.5s; --delay: 3.1s; --c: #e2577a; }
.ritual-motion span:nth-child(6) { --x: 88%; --s: 42px; --d: 6s; --delay: 1.8s; --c: #f2b632; }
.ritual-motion span:nth-child(7) { --x: 15%; --s: 26px; --d: 8s; --delay: 4s; --c: #f08a24; }
.ritual-motion span:nth-child(8) { --x: 70%; --s: 28px; --d: 7s; --delay: 4.6s; --c: #7fae3c; }
/* Rang: clouds of haldi and gulal */
.ritual-card[data-ritual="rang"] .ritual-motion span { border-radius: 50%; background: radial-gradient(circle, var(--c) 0 30%, transparent 70%); filter: blur(2px); }
/* Mehfil: floating music notes */
.ritual-card[data-ritual="mehfil"] .ritual-motion span { --anim: noteFloat; width: auto; height: auto; color: var(--gold); font-size: calc(var(--s) * .55); }
.ritual-card[data-ritual="mehfil"] .ritual-motion span::before { content: "♪"; }
.ritual-card[data-ritual="mehfil"] .ritual-motion span:nth-child(even)::before { content: "♫"; color: var(--burgundy); opacity: .7; }
/* Milan: drifting marigold petals */
.ritual-card[data-ritual="milan"] .ritual-motion span { --anim: petalDrift; top: -30px; bottom: auto; width: 11px; height: 15px; border-radius: 80% 0 80% 20%; background: var(--c); }
/* Jashn: twinkling sparkles */
.ritual-card[data-ritual="jashn"] .ritual-motion span { --anim: twinkle; top: calc(var(--s) * 1.4%); bottom: auto; width: auto; height: auto; color: var(--gold); font-size: calc(var(--s) * .45); }
.ritual-card[data-ritual="jashn"] .ritual-motion span::before { content: "✦"; }
.ritual-card[data-ritual="jashn"] .ritual-motion span:nth-child(3n)::before { content: "✧"; }
.ritual-card .pill-button { margin-top: 20px; font-size: .65rem; letter-spacing: .03em; }
.venue-links { display: grid; gap: 12px; justify-items: center; margin-top: 22px; }
.venue-links .cream-button { width: 100%; font-size: .65rem; letter-spacing: .03em; }
.ritual-card.changing { animation: paperChange .45s var(--ease); }

.family-note { display: grid; place-items: center; min-height: 540px; padding: 50px 18px; }
.flower-blob { display: grid; place-content: center; width: min(92vw, 390px); aspect-ratio: 1; padding: 44px 46px; 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 { margin: 6px 0; font-size: .74rem; line-height: 1.5; letter-spacing: .04em; }
.flower-blob strong { font-weight: 500; font-size: .86rem; }
.flower-blob .family-lead { font-style: italic; font-size: .8rem; }
.flower-blob .family-celebrating { margin: 8px 0 10px; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.flower-blob .family-celebrating strong { display: block; margin-top: 2px; font-family: "Snell Roundhand", "Segoe Script", cursive; font-size: 1.7rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: #ecd9b0; }

.travel { padding: 52px 23px; }
.arch-card { position: relative; padding: 110px 26px 35px; overflow: hidden; color: var(--ivory); text-align: center; background: linear-gradient(145deg, #565a35, #3b4329); border-radius: 210px 210px 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: 28px; 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%); line-height: 1; }
.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 { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 22px auto; 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); }

.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; }
.footer > p { margin-top: 28px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.footer h2 { margin: 13px 0; color: var(--burgundy); font-family: "Snell Roundhand", cursive; font-size: 3.4rem; font-weight: 400; }
.footer > .footer-signoff { margin: 0; font-size: 1rem; font-style: italic; letter-spacing: .02em; text-transform: none; }
.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; }
.diya { position: relative; width: 90px; height: 43px; margin: 0 auto; border-radius: 8% 8% 50% 50%; background: linear-gradient(#d9b66d, #8f5a22); box-shadow: inset 0 4px 0 #f3d997, 0 9px 14px rgba(57,28,10,.2); }
.diya i { position: absolute; left: 50%; bottom: 33px; width: 18px; height: 36px; border-radius: 60% 40% 55% 45%; background: radial-gradient(circle at 50% 75%, #fff9c7 0 15%, #ffba35 38%, #b3251e 72%); transform: translateX(-50%) rotate(3deg); filter: drop-shadow(0 0 8px #ffbc43); animation: flame 1.4s ease-in-out infinite alternate; }
.diya span { position: absolute; inset: 10px 25px; border: 1px solid rgba(91,12,19,.3); border-radius: 50%; }

.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 flame { 50% { transform: translateX(-50%) rotate(-4deg) scaleY(.9); } }
@keyframes iconPulse { 0%, 80%, 100% { box-shadow: 0 0 0 0 rgba(91,12,19,0); } 88% { box-shadow: 0 0 0 7px rgba(91,12,19,.12); } }
@keyframes cardFloat { 50% { transform: translateY(-5px); } }
@keyframes nudge { 50% { transform: translateX(4px); } }
@keyframes gulal { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: .75; } 100% { transform: translateY(-300px) scale(1.8); opacity: 0; } }
@keyframes noteFloat { 0% { transform: translate(0, 0) rotate(-10deg); opacity: 0; } 20% { opacity: .8; } 50% { transform: translate(14px, -170px) rotate(8deg); } 100% { transform: translate(-8px, -340px) rotate(-6deg); opacity: 0; } }
@keyframes petalDrift { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 15% { opacity: .85; } 100% { transform: translate(30px, 420px) rotate(400deg); opacity: 0; } }
@keyframes twinkle { 0%, 100% { transform: scale(.3) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: .9; } }
@keyframes artGlow { 50% { filter: sepia(.15) saturate(.95) drop-shadow(0 0 10px rgba(240,170,80,.45)); } }
@keyframes ornamentSway { 50% { transform: rotate(14deg) scale(1.1); } }
@keyframes lanternRise { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: .9; } 50% { transform: translate(18px, -520px); } 90% { opacity: .6; } 100% { transform: translate(-10px, -1050px); opacity: 0; } }
@keyframes bellSwing { 0%, 100% { transform: rotate(7deg); } 50% { transform: rotate(-7deg); } }
@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; }
}
