:root {
  --ivory: #f3eddf;
  --paper: #f7f1e5;
  --ink: #211b18;
  --burgundy: #65111a;
  --burgundy-dark: #40070d;
  --olive: #4a4c2b;
  --moss: #252b1d;
  --gold: #b28a4d;
  --shadow: 0 24px 50px rgba(44, 23, 16, 0.18), 0 5px 12px rgba(34, 18, 11, 0.22);
  --serif: "Bodoni 72", Didot, "Times New Roman", serif;
  --body: "Iowan Old Style", Baskerville, Georgia, serif;
  --script: "Snell Roundhand", "Apple Chancery", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #ddd4c4; }
body {
  margin: 0;
  color: var(--ink);
  background: #ddd4c4;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; }
main { width: min(100%, 480px); margin: 0 auto; box-shadow: 0 0 80px rgba(40, 27, 20, 0.18); overflow: clip; }

.paper-section {
  position: relative;
  background-color: var(--ivory);
  background-image: linear-gradient(rgba(246, 240, 228, .88), rgba(246, 240, 228, .88)), url("assets/paper-embossed.webp");
  background-size: auto, 760px auto;
}
.velvet-section {
  position: relative;
  background: #4d0911 url("assets/burgundy-velvet.webp") center/cover;
}
.overline, .eyebrow, .small-caps, .section-kicker {
  margin: 0;
  font-family: var(--serif);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.section-kicker { text-align: center; color: var(--burgundy); }
.section-kicker--light { color: #f4e9d8; }
.script-title {
  margin: .15rem 0 1.2rem;
  font-family: var(--script);
  font-size: clamp(2.5rem, 12vw, 4rem);
  font-weight: 400;
  line-height: .88;
  text-align: center;
}
.script-title--light { color: var(--ivory); }
.reveal { opacity: 0; transform: translateY(24px) rotate(var(--reveal-rotate, 0deg)); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0) rotate(var(--final-rotate, 0deg)); }

/* Intro */
.intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--burgundy-dark) url("assets/burgundy-velvet.webp") center/cover;
  transition: opacity .8s ease, visibility .8s;
}
.intro.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.sealed-card {
  position: relative;
  width: min(88vw, 350px);
  min-height: 510px;
  padding: 66px 34px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--paper) url("assets/paper-embossed.webp") center/700px;
  border: 1px solid rgba(178,138,77,.5);
  box-shadow: var(--shadow);
  clip-path: polygon(0 2%, 4% 1%, 9% 2%, 15% 1%, 22% 2%, 29% 1%, 35% 2%, 43% 1%, 51% 2%, 58% 1%, 65% 2%, 72% 1%, 80% 2%, 87% 1%, 94% 2%, 100% 1%, 99% 100%, 0 99%);
  animation: introFloat 4s ease-in-out infinite;
}
.sealed-card::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(101,17,26,.25); pointer-events: none; }
.sealed-card__monogram { font-family: var(--script); font-size: 4.5rem; color: var(--olive); line-height: 1; }
.sealed-card__monogram span { font-size: 2.5rem; color: var(--gold); margin: 0 -.2em; }
.sealed-card h1 { margin: 1rem 0 .7rem; font: 400 2rem/1.05 var(--serif); text-transform: uppercase; letter-spacing: .04em; }
.wax-button, .mini-seal, .success-seal {
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #972d3d, var(--burgundy) 45%, #3c050a 100%);
  color: #e8c98f;
  box-shadow: inset 0 0 0 5px rgba(70, 5, 12, .35), 0 8px 16px rgba(55, 4, 10, .35);
}
.wax-button { position: relative; width: 76px; height: 76px; margin-top: auto; display: grid; flex: 0 0 auto; place-items: center; cursor: pointer; transition: transform .2s; }
.wax-button:active { transform: scale(.92); }
.wax-button::after { content: ""; position: absolute; inset: -8px; border: 1px solid rgba(101,17,26,.35); border-radius: 50%; pointer-events: none; animation: pulseSeal 2.4s infinite; }
.tap-note { margin: .8rem 0 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #6f6055; }
.intro__petal { position: absolute; width: 18px; height: 9px; background: #831725; border-radius: 100% 0 100% 0; opacity: .7; animation: petalFall 8s linear infinite; }
.intro__petal--one { left: 16%; top: -5%; }
.intro__petal--two { right: 12%; top: -10%; animation-delay: 3s; }

/* Hero */
.hero { min-height: 980px; padding: 38px 14px 70px; text-align: center; }
.hero__halo { position: absolute; width: 320px; height: 320px; left: 50%; top: 160px; transform: translateX(-50%); background: radial-gradient(circle, rgba(178,138,77,.18), transparent 70%); }
.bismillah { margin: 0; font-family: "Geeza Pro", serif; color: var(--olive); font-size: 1.75rem; }
.translation { width: 78%; margin: .15rem auto 1.8rem; font-size: .67rem; letter-spacing: .06em; color: #675d55; }
.hero-collage { position: relative; height: 760px; transform-style: preserve-3d; transition: transform .3s ease-out; }
.hero-collage__florals { position: absolute; z-index: 1; width: 85%; top: 8px; left: -17%; filter: drop-shadow(0 18px 20px rgba(31,19,9,.25)); animation: breathe 6s ease-in-out infinite; }
.hero-collage__envelope { position: absolute; z-index: 2; width: 97%; left: 1%; top: 220px; filter: drop-shadow(0 22px 25px rgba(37, 25, 15, .24)); transform: rotate(-1deg); }
.hero-collage__photo { position: absolute; z-index: 3; top: 36px; right: 5%; width: 56%; padding: 9px 9px 28px; background: #fffaf0; box-shadow: var(--shadow); --final-rotate: 4deg; }
.hero-collage__photo img { aspect-ratio: 4/5; object-fit: cover; }
.hero-collage__photo span { display: block; padding-top: 7px; font: .9rem var(--script); }
.hero-card {
  position: absolute;
  z-index: 4;
  top: 318px;
  left: 13%;
  width: 73%;
  min-height: 306px;
  padding: 38px 25px 32px;
  background: #f7f0e3;
  box-shadow: var(--shadow);
  clip-path: polygon(0 1%, 6% 0, 13% 1%, 20% 0, 27% 1%, 34% 0, 42% 1%, 49% 0, 56% 1%, 64% 0, 72% 1%, 80% 0, 88% 1%, 95% 0, 100% 1%, 99% 99%, 91% 100%, 82% 99%, 72% 100%, 62% 99%, 52% 100%, 42% 99%, 32% 100%, 22% 99%, 12% 100%, 0 99%);
}
.hero-card .tiny-copy { width: 90%; margin: .6rem auto 1rem; font-size: .8rem; }
.hero-card h2 { margin: 0; color: var(--burgundy); font: 400 2.3rem/.85 var(--script); }
.hero-card h2 em { display: block; color: var(--gold); font-size: 1.5rem; }
.ornament { margin: .8rem 0; color: var(--gold); }
.hero-date { margin: 0; font-family: var(--serif); font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-place { margin: .15rem 0 0; font-size: .8rem; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: #6c5d52; }
.scroll-cue span { display: block; width: 1px; height: 30px; margin: 0 auto 8px; background: var(--burgundy); animation: cue 1.8s ease-in-out infinite; }

/* Story */
.story { min-height: 1130px; padding: 80px 18px; }
.story-stack { position: relative; min-height: 900px; margin-top: 45px; }
.torn-card { position: absolute; z-index: 2; width: 84%; left: 8%; padding: 42px 30px; text-align: center; box-shadow: var(--shadow); }
.torn-card--olive { color: var(--ivory); background: var(--burgundy); --final-rotate: -2deg; }
.torn-card--bride { top: 0; }
.torn-card--groom { z-index: 3; top: 245px; left: 12%; width: 80%; color: var(--ivory); background: var(--burgundy); --final-rotate: 2deg; }
.torn-card h3 { margin: .45rem 0 .65rem; font: 2rem var(--script); line-height: 1; }
.torn-card h4 { margin: .35rem 0 0; color: #fff8e9; font: 1.25rem var(--serif); font-weight: 400; }
.torn-card h4 em { display: inline-block; margin: 0 .22em; color: #d7bb85; font-family: var(--script); font-weight: 400; }
.family-label { display: block; color: #d7bb85; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
.polaroid { position: absolute; z-index: 4; top: 500px; left: 2%; width: 58%; padding: 9px 9px 32px; background: #fffaf0; box-shadow: var(--shadow); --final-rotate: 6deg; }
.polaroid img { aspect-ratio: 4/5; object-fit: cover; }
.polaroid span { display: block; padding-top: 8px; text-align: center; font: 1rem var(--script); }
.story-medallion { position: absolute; z-index: 5; top: 605px; right: 0; width: 190px; height: 190px; display: grid; place-content: center; padding: 32px; text-align: center; background: #e9dcc2; border: 8px double rgba(255,250,238,.9); border-radius: 50%; box-shadow: var(--shadow); }
.story-medallion span { color: var(--burgundy); font-size: 1.3rem; }
.story-medallion p { margin: .35rem 0 0; font: .88rem var(--script); line-height: 1.15; }

/* Details */
.details { min-height: 990px; padding: 78px 14px 90px; overflow: hidden; }
.venue-collage { position: relative; min-height: 780px; }
.venue-art { position: absolute; z-index: 1; width: 130%; max-width: none; top: -15px; left: -15%; opacity: .82; mix-blend-mode: screen; }
.date-card { position: absolute; z-index: 2; top: 300px; left: 11%; width: 78%; min-height: 435px; padding: 42px 28px 32px; text-align: center; background: var(--paper); box-shadow: var(--shadow); clip-path: polygon(0 2%, 7% 0, 13% 2%, 20% 0, 26% 2%, 34% 0, 41% 2%, 48% 0, 55% 2%, 63% 0, 70% 2%, 78% 0, 85% 2%, 92% 0, 100% 2%, 99% 98%, 93% 100%, 85% 98%, 77% 100%, 69% 98%, 61% 100%, 53% 98%, 45% 100%, 37% 98%, 29% 100%, 21% 98%, 13% 100%, 5% 98%, 0 100%); }
.big-date { margin: .6rem 0; color: var(--burgundy); font: 3.9rem/.8 var(--serif); }
.big-date span { display: block; margin: .5rem 0; font-size: 1.1rem; letter-spacing: .2em; text-transform: uppercase; }
.date-card__line { width: 1px; height: 24px; margin: 1rem auto; background: var(--gold); }
.date-card p { font-size: .86rem; }
.arrival-note { color: #766559; font-style: italic; }
.button-row { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.paper-button { position: relative; min-height: 44px; display: inline-grid; place-items: center; padding: 0 15px; border: 1px solid var(--burgundy); border-radius: 30px; color: var(--paper); background: var(--burgundy); text-decoration: none; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; overflow: hidden; cursor: pointer; }
.paper-button::after { content: ""; position: absolute; inset: 0; translate: -130% 0; background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent); transition: translate .6s; }
.paper-button:hover::after, .paper-button:focus-visible::after { translate: 130% 0; }

/* Timeline */
.itinerary { padding: 90px 22px 70px; }
.timeline { position: relative; padding-top: 16px; }
.timeline__line { position: absolute; top: 25px; bottom: 28px; left: 123px; width: 1px; background: linear-gradient(transparent, var(--burgundy) 8%, var(--burgundy) 92%, transparent); transform-origin: top; transform: scaleY(0); transition: transform 1.4s ease; }
.timeline.is-drawn .timeline__line { transform: scaleY(1); }
.timeline-item { position: relative; width: 100%; display: grid; grid-template-columns: 42px 58px 18px minmax(0, 1fr); column-gap: 6px; align-items: center; padding: 15px 2px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.timeline-item > span:last-child { grid-column: 4; }
.timeline-item time { color: var(--burgundy); font: .7rem var(--serif); letter-spacing: .05em; }
.timeline-item strong { display: block; font: 1.05rem/1.2 var(--serif); }
.timeline-item small { display: block; max-height: 0; overflow: hidden; color: #73675f; line-height: 1.35; transition: max-height .35s; }
.timeline-item.is-active small { max-height: 4.2em; }
.timeline-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(101,17,26,.25); border-radius: 50%; background: var(--paper); color: var(--burgundy); transition: transform .3s, background .3s, color .3s; }
.timeline-item.is-active .timeline-icon { transform: scale(1.12) rotate(8deg); background: var(--burgundy); color: var(--ivory); }

.countdown { padding: 20px 18px 90px; }
.countdown-card { padding: 34px 18px; text-align: center; border: 1px solid rgba(178,138,77,.5); background: rgba(247,241,229,.78); box-shadow: 0 15px 35px rgba(53,35,23,.12); }
.countdown-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 18px; }
.countdown-grid span { padding: 10px 3px; border-left: 1px solid rgba(101,17,26,.16); }
.countdown-grid span:first-child { border-left: 0; }
.countdown-grid b { display: block; color: var(--burgundy); font: 1.6rem var(--serif); transition: transform .25s, opacity .25s; }
.countdown-grid b.flip { transform: translateY(-5px); opacity: .45; }
.countdown-grid small { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }

/* Special sections */
.mayilanchi { min-height: 560px; padding: 85px 0; display: grid; place-items: center; }
.mayilanchi-blob { width: min(calc(100% - 48px), 330px); max-width: none; min-height: 350px; justify-self: center; display: grid; place-content: center; padding: 54px clamp(30px, 10vw, 46px); color: var(--ivory); text-align: center; background: var(--burgundy); box-shadow: var(--shadow); border-radius: 47% 53% 42% 58% / 51% 35% 65% 49%; }
.mayilanchi-blob h2 { margin: .3rem 0; font: 3.5rem var(--script); }
.mayilanchi-blob p { font-size: .9rem; }
.henna-mark { color: var(--gold); font-size: 2rem; }
.event-meta { color: #e6cda5; }
.dress { min-height: 780px; padding: 80px 26px; }
.dress-arch { min-height: 600px; padding: 70px 35px 44px; text-align: center; color: var(--ivory); background: linear-gradient(rgba(37,43,29,.89), rgba(37,43,29,.94)), url("assets/paper-embossed.webp") center/700px; border: 2px solid #c8ae78; border-radius: 180px 180px 10px 10px; box-shadow: var(--shadow); transition: background-color .5s, box-shadow .5s; }
.dress-arch p { font-size: .92rem; }
.dress-figure { margin: 12px 0 20px; font-size: 5rem; line-height: 1; color: rgba(232,207,164,.78); text-shadow: 0 7px 20px rgba(0,0,0,.18); }
.palette { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.palette button { width: 36px; height: 36px; border: 2px solid rgba(255,255,255,.7); border-radius: 4px; background: var(--swatch); box-shadow: 0 4px 8px rgba(0,0,0,.25); cursor: pointer; transition: transform .25s; }
.palette button:active, .palette button.is-active { transform: translateY(-7px) scale(1.1); }
.palette-name { display: block; margin-top: 12px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #dbc08d; }
.feast { padding: 65px 18px 90px; }
.image-card { position: relative; min-height: 650px; overflow: hidden; box-shadow: var(--shadow); border-radius: 180px 180px 0 0; }
.image-card > img { width: 100%; height: 650px; object-fit: cover; }
.image-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(25,31,18,.9) 72%); }
.image-card__copy { position: absolute; z-index: 2; inset: auto 28px 38px; color: var(--ivory); text-align: center; }
.image-card__copy h2 { margin: .2rem 0; font: 3rem var(--script); }
.steam { height: 35px; display: flex; justify-content: center; gap: 8px; }
.steam i { width: 1px; height: 25px; display: block; background: rgba(255,255,255,.6); border-radius: 50%; opacity: 0; transform: translateY(12px); }
.image-card.in-view .steam i { animation: steam 2s ease-out forwards; }
.image-card.in-view .steam i:nth-child(2) { animation-delay: .25s; }
.image-card.in-view .steam i:nth-child(3) { animation-delay: .5s; }
.travel { padding: 55px 18px 90px; }
.travel-card { position: relative; min-height: 770px; overflow: hidden; border-radius: 180px 180px 0 0; box-shadow: var(--shadow); }
.travel-card > img { width: 100%; height: 770px; object-fit: cover; }
.travel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 26%, rgba(37,43,29,.18) 45%, rgba(27,31,21,.94) 72%); }
.travel-card__copy { position: absolute; z-index: 2; inset: auto 24px 26px; color: var(--ivory); text-align: center; }
.travel-card__copy > p { font-size: .86rem; }
.fold-list { margin-top: 14px; border-top: 1px solid rgba(244,237,223,.28); }
.fold-list button { width: 100%; min-height: 48px; display: flex; justify-content: space-between; align-items: center; padding: 0 5px; border: 0; border-bottom: 1px solid rgba(244,237,223,.28); color: inherit; background: transparent; text-align: left; cursor: pointer; }
.fold-list button span { transition: transform .3s; }
.fold-list button[aria-expanded="true"] span { transform: rotate(45deg); }
.fold-list div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s; }
.fold-list div p { min-height: 0; overflow: hidden; margin: 0; font-size: .78rem; text-align: left; }
.fold-list div.is-open { grid-template-rows: 1fr; }
.fold-list div.is-open p { padding: 10px 5px 14px; }
.guest-note { min-height: 500px; display: grid; place-items: center; padding: 70px 20px; }
.guest-note__flower { width: 320px; height: 300px; display: grid; place-content: center; padding: 50px; text-align: center; color: var(--ivory); background: var(--burgundy); clip-path: polygon(50% 0,61% 14%,78% 8%,84% 25%,100% 34%,89% 50%,100% 66%,82% 73%,75% 92%,57% 82%,43% 100%,31% 82%,12% 90%,15% 70%,0 61%,12% 47%,2% 31%,21% 25%,27% 7%,43% 15%); filter: drop-shadow(0 17px 20px rgba(56,30,23,.25)); }
.guest-note__flower span { color: #d9b97d; font-size: 2rem; }
.guest-note__flower p { font: 1.2rem var(--serif); text-transform: uppercase; line-height: 1.35; }
.gifts { min-height: 760px; padding: 50px 10px; }
.gift-tray { position: relative; min-height: 650px; }
.gift-tray > img { width: 100%; height: 650px; object-fit: cover; filter: drop-shadow(0 24px 30px rgba(0,0,0,.42)); }
.gift-tray__copy { position: absolute; inset: 180px 72px auto; text-align: center; }
.gift-tray__copy .script-title { font-size: 2.5rem; }
.gift-tray__copy p { font-size: .82rem; }

/* RSVP */
.rsvp { padding: 76px 16px 84px; }
.rsvp-deadline { max-width: 330px; margin: 0 auto; text-align: center; color: #77695e; }
.rsvp-envelope { position: relative; margin-top: 30px; background: var(--olive); border: 1px solid rgba(178,138,77,.52); box-shadow: var(--shadow); overflow: hidden; }
.rsvp-envelope__flap { position: relative; z-index: 3; width: 100%; height: 226px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; border: 0; color: var(--ivory); background: linear-gradient(142deg, rgba(255,255,255,.045) 0 49.6%, transparent 50%) 0 0/50% 100% no-repeat, linear-gradient(218deg, rgba(0,0,0,.07) 0 49.6%, transparent 50%) 100% 0/50% 100% no-repeat, #4c5032; cursor: pointer; transition: height .45s cubic-bezier(.2,.8,.2,1), background-color .3s; }
.rsvp-envelope__flap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(153deg, transparent 49.5%, rgba(232,201,143,.2) 50%, transparent 50.5%); pointer-events: none; }
.rsvp-envelope__flap:active { background-color: #42462b; }
.mini-seal { position: relative; z-index: 1; width: 68px; height: 68px; flex: 0 0 auto; display: grid; place-items: center; font: 1.05rem var(--serif); transition: width .4s, height .4s; }
.rsvp-envelope__label { position: relative; z-index: 1; display: grid; gap: 2px; text-align: center; text-transform: uppercase; }
.rsvp-envelope__label strong { font: 400 .78rem var(--serif); letter-spacing: .2em; }
.rsvp-envelope__label small { color: #d7c8aa; font-size: .58rem; letter-spacing: .12em; }
.rsvp-form { position: relative; z-index: 2; max-height: 0; margin: 0 10px; padding: 0 18px; overflow: hidden; visibility: hidden; background: var(--paper); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: max-height .8s cubic-bezier(.2,.8,.2,1), padding .55s, opacity .35s, transform .55s, visibility 0s .8s; }
.rsvp-envelope.is-open .rsvp-envelope__flap { height: 88px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 20px; }
.rsvp-envelope.is-open .mini-seal { width: 48px; height: 48px; }
.rsvp-envelope.is-open .rsvp-envelope__label { text-align: left; }
.rsvp-envelope.is-open .rsvp-envelope__label small { display: none; }
.rsvp-envelope.is-open .rsvp-form { max-height: 1500px; margin-bottom: 10px; padding: 28px 18px 32px; visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.rsvp-form > label, .rsvp-form legend { display: block; margin-top: 20px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.rsvp-form > label:first-child { margin-top: 0; }
.rsvp-form input:not([type="radio"]):not([type="checkbox"]), .rsvp-form textarea { width: 100%; min-height: 48px; margin-top: 6px; padding: 10px 4px; border: 0; border-bottom: 1px solid rgba(33,27,24,.35); border-radius: 0; background: transparent; outline: none; font-size: 16px; }
.rsvp-form textarea { min-height: 84px; resize: vertical; }
.rsvp-form input:focus, .rsvp-form textarea:focus { border-color: var(--burgundy); }
.rsvp-form fieldset { margin: 22px 0 0; padding: 0; border: 0; }
.choice { display: block; margin-top: 8px; }
.choice input, .event-chips input { position: absolute; opacity: 0; }
.choice span, .event-chips span { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 10px 12px; border: 1px solid rgba(101,17,26,.22); background: #eee4d1; font-size: .76rem; text-align: center; cursor: pointer; transition: transform .2s, color .2s, background .2s; }
.choice input:checked + span, .event-chips input:checked + span { color: var(--ivory); background: var(--burgundy); transform: translateY(2px); box-shadow: inset 0 3px 6px rgba(0,0,0,.25); }
.choice input:focus-visible + span, .event-chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.event-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.guest-counter { width: 100%; min-height: 48px; margin-top: 9px; display: grid; grid-template-columns: 52px 1fr 52px; place-items: center; border: 1px solid rgba(101,17,26,.25); }
.guest-counter button { width: 52px; height: 48px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; }
.submit-rsvp { width: 100%; min-height: 54px; margin-top: 30px; border: 0; color: var(--ivory); background: var(--burgundy); text-transform: uppercase; letter-spacing: .15em; cursor: pointer; transition: border-radius .5s, width .5s, transform .2s; }
.submit-rsvp:active { transform: scale(.97); }
.rsvp-form.is-sending .submit-rsvp { width: 60px; border-radius: 50%; }
.rsvp-success { display: none; padding: 70px 30px; color: var(--ivory); text-align: center; }
.rsvp-success.is-visible { display: block; }
.success-seal { width: 76px; height: 76px; margin: 0 auto; display: grid; place-items: center; font-size: 1.6rem; animation: stamp .6s cubic-bezier(.2,.8,.2,1); }
.rsvp-success h3 { margin: 18px 0 4px; font: 3rem var(--script); }

@media (max-width: 359px) {
  .rsvp { padding-inline: 12px; }
  .event-chips { grid-template-columns: 1fr; }
}

.footer { min-height: 650px; padding: 80px 20px calc(45px + env(safe-area-inset-bottom)); display: grid; place-items: center; color: var(--ivory); text-align: center; }
.footer__arch { width: 100%; min-height: 490px; display: grid; place-content: center; padding: 60px 28px 35px; border: 1px solid rgba(224,191,130,.65); border-radius: 200px 200px 0 0; background: rgba(63,7,13,.56); }
.footer__arch .bismillah { color: #dfc28b; }
.footer h2 { margin: .5rem 0; font: 3.1rem var(--script); }
.footer h2 em { color: #d9b97d; }
.footer-actions { display: flex; justify-content: center; gap: 8px; margin: 30px 0 42px; }
.footer-actions button, .footer-actions a { min-height: 44px; display: grid; place-items: center; padding: 0 14px; border: 1px solid rgba(255,255,255,.6); color: inherit; background: transparent; text-decoration: none; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.footer small { color: #d9c8b3; }

/* Utilities */
.scroll-thread { position: fixed; z-index: 50; top: 0; right: max(7px, calc((100vw - 480px)/2 + 7px)); width: 2px; height: 100vh; background: rgba(101,17,26,.12); }
.scroll-thread span { display: block; width: 100%; height: 0; background: var(--burgundy); box-shadow: 0 0 0 1px rgba(245,233,212,.5); }
.bookmark { position: fixed; z-index: 40; right: max(15px, calc((100vw - 480px)/2 + 15px)); bottom: calc(18px + env(safe-area-inset-bottom)); width: 42px; height: 62px; border: 0; color: var(--ivory); background: var(--burgundy); clip-path: polygon(0 0,100% 0,100% 82%,50% 100%,0 82%); box-shadow: 0 10px 18px rgba(45,18,15,.25); transform: translateY(100px); transition: transform .4s; cursor: pointer; }
.bookmark.is-visible { transform: translateY(0); }
.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); translate: -50% 100px; max-width: calc(100vw - 40px); padding: 12px 18px; color: var(--ivory); background: var(--moss); box-shadow: var(--shadow); opacity: 0; transition: translate .35s, opacity .35s; text-align: center; }
.toast.is-visible { translate: -50% 0; opacity: 1; }
.petal-burst { position: fixed; z-index: 130; width: 11px; height: 6px; border-radius: 100% 0 100% 0; background: var(--burgundy); pointer-events: none; animation: burst .9s ease-out forwards; }

@keyframes introFloat { 50% { transform: translateY(-7px) rotate(.4deg); } }
@keyframes pulseSeal { 0%,100% { transform: scale(.8); opacity: 0; } 45% { opacity: .6; } 70% { transform: scale(1.25); opacity: 0; } }
@keyframes petalFall { to { transform: translate(50px, 115vh) rotate(720deg); } }
@keyframes breathe { 50% { transform: translateY(-5px) rotate(.6deg) scale(1.012); } }
@keyframes cue { 0%,100% { transform: scaleY(.35); transform-origin: top; opacity: .3; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes steam { 0% { opacity: 0; transform: translateY(14px) scaleX(1); } 35% { opacity: .8; } 100% { opacity: 0; transform: translateY(-15px) scaleX(4); } }
@keyframes stamp { 0% { transform: translateY(-80px) scale(1.5); opacity: 0; } 70% { transform: translateY(5px) scale(.95); } 100% { transform: none; opacity: 1; } }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(540deg); opacity: 0; } }

@media (min-width: 700px) {
  body { padding: 28px 0; }
  main { border-radius: 4px; }
  .intro { padding: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .15s !important; }
  .reveal { transform: none; }
  .parallax { transform: none !important; }
}
