/* =========================================================
   Isha & Arjun — Wedding Invitation
   Design tokens come from Documents/Project Document, sec. 4
   ========================================================= */
:root {
  --bg: #EFE6EC;
  --bg-2: #EADFE7;
  --panel: #F6EEF1;
  --fabric: #E3CCD2;
  --text: #3E3438;
  --muted: #7A6B72;
  --wisteria: #8E6A9A;
  --rose: #B5646F;
  --sage: #8A9A82;
  --gold: #C2A36B;
  --pearl: #FBF7F3;
  --marigold: #E0A04A;
  --door: #6B6556;
  --btn: #2F2A2C;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --caps: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --num: "Playfair Display", Georgia, serif;
  --hindi: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;

  --page-w: 480px;
  --gutter: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  color: var(--text);
  background: #E4D8E0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; height: 100svh; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* The invitation always looks like a phone card, even on desktop */
#page {
  max-width: var(--page-w);
  margin: 0 auto;
  background: linear-gradient(180deg, #F3ECF0 0%, var(--bg) 40%, var(--bg-2) 100%);
  box-shadow: 0 0 60px rgba(62, 52, 56, .12);
  overflow: hidden;
  position: relative;
}

/* ---------- type ---------- */
.title { font-weight: 400; font-size: 2.35rem; line-height: 1.1; margin: .2em 0 .25em; letter-spacing: .01em; }
.subtitle { font-size: 1.5rem; margin: 0 0 .6em; }
.label { font-family: var(--caps); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--muted); margin: .2em 0; }
.body-italic { font-style: italic; font-size: 1.12rem; color: var(--text); margin: .8em auto; max-width: 34ch; }
.hindi { font-family: var(--hindi); font-size: 1.7rem; color: var(--rose); margin: 0; }
.hindi.small { font-size: 1.25rem; margin-top: .6em; }
.rule { display: block; width: 44px; height: 1px; background: var(--muted); opacity: .6; margin: .7em auto; }

/* ---------- sections ---------- */
.section { position: relative; text-align: center; padding: 72px var(--gutter); }
.art-wrap { margin: 0 auto; }
.art-wrap svg, .art-wrap img { width: 100%; height: auto; }

/* =========================================================
   0. INTRO DOORS
   ========================================================= */
#intro { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
#intro.gone { display: none; }
.door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  pointer-events: auto;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06), rgba(0,0,0,.08) 60%, rgba(255,255,255,.04)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.04) 0 1px, transparent 1px 4px),
    var(--door);
}
.door-left { left: 0; box-shadow: inset -12px 0 24px rgba(0,0,0,.25); }
.door-right { right: 0; box-shadow: inset 12px 0 24px rgba(0,0,0,.25); }
.door-left::after, .door-right::after { /* stitched seam */
  content: ""; position: absolute; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(251,247,243,.5) 0 6px, transparent 6px 11px);
}
.door-left::after { right: 10px; }
.door-right::after { left: 10px; }
.seal {
  position: absolute; left: 0; top: 55%;
  width: 150px; transform: translate(-50%, -50%);
  background: none; border: 0; padding: 0; cursor: pointer;
  animation: sealPulse 2.4s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.seal:focus-visible { outline: 2px solid var(--pearl); outline-offset: 6px; border-radius: 50%; }
@keyframes sealPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.04); } }
.tap-hint {
  position: absolute; top: calc(55% + 110px); left: 50%; transform: translateX(-50%);
  margin: 0; font-family: var(--caps); letter-spacing: .25em; text-transform: uppercase;
  font-size: .72rem; color: rgba(251,247,243,.85); white-space: nowrap;
}

/* =========================================================
   1. HERO + CURTAIN
   ========================================================= */
.hero { position: relative; height: 100svh; min-height: 620px; max-height: 980px; overflow: hidden; }
.scroll-cue { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 5; opacity: 0; }
.scroll-cue span { display: block; width: 22px; height: 34px; border: 1.5px solid var(--muted); border-radius: 12px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: var(--muted); border-radius: 2px; animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* =========================================================
   2. WELCOME
   ========================================================= */
.welcome { padding-top: 24px; }
.garland-top { margin: 0 calc(var(--gutter) * -1) 24px; }
.peacocks { width: 82%; margin-top: 24px; }

/* =========================================================
   3. COUNTDOWN
   ========================================================= */
.countdown .art-wrap { margin: -40px calc(var(--gutter) * -1) 10px; }
.cd { display: flex; justify-content: center; gap: 18px; margin-top: 18px; }
.cd-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cd-num {
  width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--num); font-size: 1.85rem; color: var(--text);
  background: radial-gradient(circle at 35% 30%, #fff, var(--pearl) 45%, #EDE1DE);
  border: 3px double var(--gold);
  box-shadow: 0 4px 14px rgba(62,52,56,.12), inset 0 0 0 6px rgba(194,163,107,.12);
}

/* =========================================================
   4. INVITATION
   ========================================================= */
.necklace { margin: -20px calc(var(--gutter) * -1) 26px; }
.names-full { font-weight: 400; font-size: 2.1rem; line-height: 1.15; margin: .3em 0; display: flex; flex-direction: column; }
.names-full small { font-size: 1.1rem; font-style: italic; color: var(--muted); margin: .25em 0; }
.parents { font-size: .95rem; color: var(--muted); margin: .4em 0 1em; }
.date-line { font-size: 1.15rem; letter-spacing: .06em; margin: .4em 0; }

/* =========================================================
   5. EVENTS
   ========================================================= */
.frame {
  position: relative; padding: 18px 22px 30px;
  background: var(--panel);
  border: 1px solid #DCC9D2;
  outline: 1px solid #DCC9D2; outline-offset: -8px;
  box-shadow: 0 10px 30px rgba(62,52,56,.08);
}
.frame-garland { margin: -40px -34px 0; }
.venue-name { font-size: 1.6rem; margin: .25em 0 0; }
.venue-addr { margin-bottom: 1.2em; }
.event-list { display: grid; gap: 14px; margin: 10px 0 22px; text-align: left; }
.event {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start;
  padding: 14px 4px; border-top: 1px dashed #D5C3CC;
}
.event:first-child { border-top: 0; }
.event h3 { margin: 0; font-weight: 500; font-size: 1.35rem; }
.event .when { grid-column: 1 / -1; font-size: .98rem; color: var(--muted); font-style: italic; }
.event .where { grid-column: 1 / -1; font-family: var(--caps); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--muted); }
.event .cal { font-family: var(--caps); letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; background: none; border: 0; border-bottom: 1px solid currentColor; padding: 2px 0; cursor: pointer; color: var(--text); }

.link-btn {
  display: inline-flex; align-items: center; gap: 8px; margin: 6px 8px;
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem;
  color: var(--text); text-decoration: none; background: none; border: 0;
  border-bottom: 1px solid rgba(62,52,56,.4); padding: 4px 0; cursor: pointer;
}
.link-btn .ico { font-size: 1rem; }

/* =========================================================
   6. DRESS CODE
   ========================================================= */
.dresscode { padding-top: 0; }
.hanging { margin: 0 calc(var(--gutter) * -1) 6px; }
.swatch-list { display: grid; gap: 16px; margin-top: 24px; }
.swatch-row { display: flex; align-items: center; gap: 14px; text-align: left; }
.swatch-row .dots { display: flex; }
.swatch-row .dots i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--pearl); margin-left: -8px; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.swatch-row .dots i:first-child { margin-left: 0; }
.swatch-row b { font-weight: 500; font-size: 1.15rem; display: block; }
.swatch-row span { font-style: italic; color: var(--muted); font-size: .98rem; }

/* =========================================================
   7. STORY
   ========================================================= */
.arch-box { position: relative; width: 100%; max-width: 380px; margin: 0 auto; }
.arch-text { position: absolute; left: 19%; right: 19%; top: 21%; }
.arch-text .body-italic { font-size: 1.02rem; }

/* =========================================================
   8. TIMELINE
   ========================================================= */
.timeline { padding-top: 110px; }
.corners { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; pointer-events: none; }
.corners > div { width: 92px; }
.corners .flip { transform: scaleX(-1); }
.tl { position: relative; margin: 34px auto 10px; max-width: 340px; }
.tl-line { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; margin-left: -1px; }
.tl-line::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(62,52,56,.28) 0 3px, transparent 3px 8px); }
.tl-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: repeating-linear-gradient(180deg, var(--text) 0 3px, transparent 3px 8px); }
.tl-pearl { position: absolute; left: 50%; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--pearl) 50%, #DCCFCB); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.tl-item { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 104px; }
.tl-icon-wrap { display: flex; justify-content: flex-end; padding-right: 28px; }
.tl-icon-wrap svg { width: 58px; height: 58px; }
.tl-copy { text-align: left; padding-left: 26px; }
.tl-time { font-family: var(--num); font-size: 1.15rem; }
.tl-title { font-family: var(--caps); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--muted); line-height: 1.35; }

/* =========================================================
   9. BRUNCH
   ========================================================= */
.brunch-art { width: 80%; margin: 18px auto 10px; }
.brunch-when { font-style: italic; margin: .8em 0 .2em; }
.brunch-when .sep { margin: 0 .5em; color: var(--rose); }
.small-addr { color: var(--muted); font-size: .98rem; margin: 0 0 .6em; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* =========================================================
   10. GIFTS
   ========================================================= */
.envelope { width: 120px; margin-top: 30px; }

/* =========================================================
   11. RSVP
   ========================================================= */
.rsvp { padding-bottom: 40px; }
.urn { position: absolute; right: 6px; top: 60px; width: 70px; opacity: .9; }
.rsvp-form { text-align: left; margin-top: 28px; }
.field { display: block; border: 0; padding: 0; margin: 0 0 22px; font-size: 1.08rem; }
.field legend { padding: 0; margin-bottom: 6px; }
.field input[type=text], .field input[type=tel], .field select, .field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  font-family: var(--serif); font-size: 16px; color: var(--text);
  background: rgba(251,247,243,.7); border: 1px solid #D3C1CA; border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wisteria); background: #fff; }
.choice { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-style: italic; }
.choice input { accent-color: var(--text); width: 18px; height: 18px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.note { font-style: italic; color: var(--muted); font-size: .98rem; margin: -8px 0 22px; }
.if-attending[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: var(--rose); font-style: italic; margin: 0 0 12px; }
.send-btn {
  width: 100%; padding: 15px; border: 0; cursor: pointer;
  background: var(--btn); color: var(--pearl);
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .25em; font-size: .85rem;
}
.send-btn[disabled] { opacity: .6; cursor: wait; }
.thanks { padding: 30px 10px; }

/* =========================================================
   12. FOOTER
   ========================================================= */
.footer { text-align: center; padding: 40px var(--gutter) 34px; }
.footer-names { font-size: 2.4rem; margin: 0; }
.hashtag { font-style: italic; color: var(--rose); margin: .3em 0 1.2em; }
.footer .art-wrap { opacity: .85; }
.credit { font-size: .85rem; color: var(--muted); font-style: italic; margin-top: 16px; }

/* ---------- music ---------- */
.music-btn { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(251,247,243,.9); cursor: pointer; font-size: 1.1rem; }
.music-btn.off { opacity: .55; text-decoration: line-through; }

/* ---------- reveal default (JS adds .in) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); }

/* ---------- small phones ---------- */
@media (max-width: 360px) {
  :root { --gutter: 20px; }
  .names { font-size: 2.6rem; }
  .cd-num { width: 74px; height: 74px; font-size: 1.6rem; }
  .title { font-size: 2.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .seal { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* fixes after first review */
.event p { margin: 0; }
.event h3 { line-height: 1.2; }

/* =========================================================
   REAL ARTWORK (Phase 2)
   ========================================================= */
:root { --bg: #F3E8E8; --bg-2: #EEDFE0; --panel: #F8EFEE; }
body { background: #E9D9DA; }
#page { background: linear-gradient(180deg, #F7EEEE 0%, var(--bg) 40%, var(--bg-2) 100%); }

/* intro doors: real fabric */
.door {
  background:
    linear-gradient(90deg, rgba(255,255,255,.05), rgba(0,0,0,.10) 70%, rgba(255,255,255,.04)),
    url(../assets/img/door-texture.webp) center / cover, var(--door);
}
.door-right { background-position: right center; }
.seal { width: 158px; }
.seal img { width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(40,30,30,.35)); }
.seal-letters {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .08em;
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2.7rem; color: #7A5526; letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(255,245,235,.7);
}
.seal-letters em { font-size: .6em; margin: 0 .12em; color: #8E6A34; }
.tap-hint { top: calc(55% + 120px); }

/* hero: open frame underneath, closed curtain halves on top */
.hero { background: #E7BFB6; }
.hero-img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-video { z-index: 3; }
.hero-closed { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-half {
  position: absolute; inset: 0;
  background-size: cover; background-position: 50% 100%;
  /* only the curtain moves: keep the valance and the haveli from the open frame */
  -webkit-mask-image: linear-gradient(180deg, transparent 5%, #000 11%, #000 52%, transparent 60%);
          mask-image: linear-gradient(180deg, transparent 5%, #000 11%, #000 52%, transparent 60%);
  will-change: transform, opacity;
}
.hero-half.left { clip-path: inset(0 50% 0 0); transform-origin: 0% 50%; }
.hero-half.right { clip-path: inset(0 0 0 50%); transform-origin: 100% 50%; }
.hero-names { position: absolute; left: 0; right: 0; top: 16%; z-index: 4; text-align: center; }
.names { font-weight: 400; line-height: 1.02; margin: 0; display: flex; flex-direction: column; align-items: center; }
.names .amp { font-size: 2rem; font-style: italic; margin: .05em 0; }
.hero-date { font-style: italic; letter-spacing: .12em; font-size: 1.1rem; margin: .7em 0 .1em; }
.names { font-size: 3.1rem; color: #3A2C30; text-shadow: 0 1px 12px rgba(255,236,232,.55); }
.names .amp { color: #8E5A50; }
.hero-date { color: #4E3B40; }
.hero-place { color: #5E474D; }
.scroll-cue span { border-color: #5E474D; }
.scroll-cue span::after { background: #5E474D; }

/* section artwork sizes */
.garland-top { margin: 0 -6px 18px; }
.peacocks { width: 78%; margin-top: 22px; }
.cd-divider { width: 86%; margin-bottom: 8px; }
.countdown .art-wrap.cd-divider { margin: 0 auto 8px; }
.necklace { margin: -10px -6px 22px; }
.frame-garland { margin: -34px -26px 4px; }
.venue-art { width: 92%; margin: 4px auto 14px; }
.hanging { margin: 0 -4px 10px; }
.guests { width: 104%; margin: 22px -2% 6px; }
.corners > div { width: 112px; }
.corners .flip { transform: scaleX(-1); }
.tl-icon-wrap img { width: 64px; height: 64px; object-fit: contain; }
.brunch-art { width: 86%; }
.gift-frame { position: relative; max-width: 330px; margin: 0 auto; }
.gift-text { position: absolute; left: 18%; right: 18%; top: 20%; bottom: 14%; display: flex; flex-direction: column; justify-content: center; }
.gift-text .title { margin-top: 0; }
.gift-text .body-italic { font-size: 1.04rem; color: #3A2C30; }
.envelope { width: 150px; margin-top: 26px; }
.urn { width: 82px; top: 52px; }
.footer .art-wrap { opacity: .9; mix-blend-mode: multiply; }
.frame { background: rgba(250,243,242,.85); }

/* story text fits inside the arch; kalash sits under the RSVP deadline */
.arch-box { width: calc(100% + 36px); max-width: 420px; margin: 0 -18px; }
.story { padding-left: calc(var(--gutter) - 4px); padding-right: calc(var(--gutter) - 4px); }
.arch-text { left: 24%; right: 24%; top: 25%; }
.arch-text .title { font-size: 1.9rem; margin-top: 0; }
.arch-text .rule { margin: .35em auto .5em; }
.arch-text .body-italic { font-size: .93rem; line-height: 1.45; margin-top: .4em; }
.urn { position: static; width: 92px; margin: 14px auto 0; opacity: 1; }
@media (max-width: 360px) { .arch-text { top: 23%; } .arch-text .body-italic { font-size: .86rem; } }
.arch-text { left: 26%; right: 26%; top: 29%; }
@media (max-width: 370px) { .arch-text { left: 25%; right: 25%; top: 28%; } .arch-text .title { font-size: 1.65rem; } .arch-text .body-italic { font-size: .82rem; } }

/* =========================================================
   LAYOUT PASS v2 — spacing and sizes matched to the reference reel:
   decorations run edge to edge, text sits right under them,
   sections flow into each other with little empty space.
   ========================================================= */
:root { --sec: 26px; }
.section { padding: var(--sec) var(--gutter); }
.bleed, .garland-top, .necklace, .hanging, .cd-divider, .timeline > .art-wrap:last-child {
  width: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
}
.title { margin: .1em 0 .2em; }
.body-italic { margin: .5em auto; }

/* welcome: garland, text and peacocks as one composition */
.welcome { padding-top: 6px; padding-bottom: 0; }
.garland-top { margin-top: 0; margin-bottom: 4px; }
.welcome .hindi { margin-top: 0; }
.peacocks { width: 70%; margin: 6px auto 0; }

/* countdown: divider directly above the title */
.countdown { padding-top: 22px; padding-bottom: 6px; }
.countdown .art-wrap.cd-divider { margin-top: 0; margin-bottom: 2px; }
.cd { margin-top: 8px; gap: 16px; }
.cd-item { gap: 6px; }

/* invitation: pearl necklace full width, names right under it */
.invitation { padding-top: 0; padding-bottom: 8px; }
.necklace { margin-top: 0; margin-bottom: -4px; }
.invitation .body-italic:first-of-type { margin-top: 0; }
.names-full { margin: .15em 0; }
.parents { margin: .3em 0 .6em; }

/* celebrations card */
.events { padding-top: 34px; padding-bottom: 12px; }
.venue-art { width: 84%; margin: 2px auto 6px; }
.event-list { margin: 4px 0 14px; gap: 6px; }
.event { padding: 10px 4px; }

/* dress code */
.dresscode { padding-top: 22px; padding-bottom: 8px; }
.hanging { margin-top: 0; margin-bottom: 0; }
.dresscode .subtitle { margin-bottom: .2em; }
.guests { width: auto; margin: 10px calc(var(--gutter) * -0.6) 0; }
.swatch-list { margin-top: 14px; gap: 10px; }

/* story arch */
.story { padding-top: 22px; padding-bottom: 0; }

/* timeline: corner flowers frame the heading */
.timeline { padding-top: 64px; padding-bottom: 4px; }
.corners > div { width: 96px; }
.tl { margin: 14px auto 4px; }
.tl-item { min-height: 80px; }
.timeline > .art-wrap:last-child { margin-top: 10px; }

/* brunch: starts right under the leaf divider */
.brunch { padding-top: 8px; padding-bottom: 10px; }
.brunch .rule { margin: .4em auto .2em; }
.brunch-art { width: 76%; margin: 6px auto 4px; }

/* blessings + envelope + RSVP */
.gifts { padding-top: 20px; padding-bottom: 0; }
.gift-frame { max-width: 310px; }
.envelope { width: 112px; margin-top: 8px; }
.rsvp { padding-top: 22px; }
.rsvp-form { margin-top: 16px; }
.urn { margin-top: 8px; }
.footer { padding-top: 10px; }

/* desktop / laptop: fill the empty sides with a soft, blurred view of the hero */
@media (min-width: 620px) {
  body { background: #E9D9DA url(../assets/img/hero-video-end.webp) center / cover fixed; }
  body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: rgba(243, 228, 228, .62); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
  #page { z-index: 1; box-shadow: 0 0 80px rgba(62, 40, 44, .22); }
}

/* =========================================================
   REEL MATCH v3 — palette, type and section composition
   taken from the reference reel (muted dusty lavender-pink)
   ========================================================= */
:root {
  --bg: #EFE5EA; --bg-2: #E9DDE4; --panel: #F4ECEF;
  --text: #4A3F45; --muted: #8A7B83; --rose: #A9707B; --sage: #9AA592; --gold: #B9A27E;
}
#page { background: linear-gradient(180deg, #F2E9ED 0%, var(--bg) 35%, var(--bg-2) 100%); }
body { color: var(--text); }
.title { font-size: 2.05rem; font-weight: 400; letter-spacing: .01em; }
.body-italic { font-size: 1.04rem; color: #5A4E55; max-width: 32ch; }
.label { color: var(--muted); }
.hindi { color: var(--rose); font-size: 1.45rem; }
.names-full { font-size: 1.95rem; }

/* Welcome: one composed panel (wisteria top, flowers down sides, peacocks + bead band) */
.welcome { padding: 0 0 0; }
.welcome-panel { position: relative; padding: 0 0 0; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #F6EEF1 0%, rgba(246,238,241,0) 70%); }
.wp-top { margin: 0 -2px -18px; }
.wp-side { position: absolute; top: 22%; width: 70px; opacity: .95; }
.wp-side.left { left: -6px; transform: rotate(90deg) scaleY(-1); transform-origin: 50% 50%; }
.wp-side.right { right: -6px; transform: rotate(-90deg); }
.wp-side img { width: 100%; }
.wp-text { position: relative; padding: 0 64px; text-align: center; }
.wp-text .hindi { margin: 0; }
.welcome .peacocks { width: 64%; margin: 4px auto -6px; }
.bead-band { height: 18px; margin: 0;
  background:
    radial-gradient(circle at 6px 9px, #FBF7F3 4px, #DCCFCB 4.6px, transparent 5.2px) 0 0 / 22px 18px repeat-x,
    radial-gradient(circle at 17px 9px, #A9B39F 2.6px, transparent 3.2px) 0 0 / 22px 18px repeat-x,
    linear-gradient(#C9CFC0, #C9CFC0) 0 8px / 100% 2px no-repeat; }

/* Countdown: garland right above the title, dusty-rose pearl medallions */
.countdown { padding-top: 18px; padding-bottom: 4px; }
.cd-garland { margin: 0 calc(var(--gutter) * -1) -6px; }
.cd { gap: 18px; margin-top: 6px; }
.cd-num {
  width: 80px; height: 80px; font-size: 1.7rem; color: #5A4048;
  background: radial-gradient(circle at 38% 32%, #F3E1E4 0%, #E3C6CC 55%, #D6B4BC 100%);
  border: 0; box-shadow: 0 3px 8px rgba(90,64,72,.18), inset 0 0 0 4px rgba(255,255,255,.35);
  position: relative;
}
.cd-num::before { content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(circle, #FBF7F3 2.3px, #DCCFCB 2.8px, transparent 3.3px) 0 0 / 9px 9px;
  -webkit-mask: radial-gradient(circle, transparent 41px, #000 42px, #000 46px, transparent 47px);
          mask: radial-gradient(circle, transparent 41px, #000 42px, #000 46px, transparent 47px); }
.cd-item .label { font-size: .66rem; }

/* Invitation */
.invitation { padding-bottom: 4px; }
.necklace { margin-bottom: 0; }

/* Celebrations: plain stitched card with flowers in the two top corners */
.events { padding-top: 28px; }
.frame { padding: 34px 22px 22px; background: rgba(247,240,242,.9); border-color: #DCCBD3; outline-color: #E4D6DC;
  outline-style: dashed; box-shadow: 0 6px 18px rgba(74,63,69,.07); }
.card-corner { position: absolute; top: -16px; width: 96px; pointer-events: none; }
.card-corner.left { left: -14px; }
.card-corner.right { right: -14px; transform: scaleX(-1); }
.event .dress { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 3px 0 0;
  font-style: italic; color: var(--muted); font-size: .93rem; }
.event .dress .dots { display: inline-flex; flex: none; }
.event .dress .dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #FBF7F3; margin-left: -4px; }
.event .dress .dots i:first-child { margin-left: 0; }

/* Dress code: vine curtain hangs straight out of the card, title sits among the strands */
.dresscode { padding-top: 0; }
.hanging { margin-top: -6px; margin-bottom: -48px; position: relative; z-index: 0; }
.dresscode .title, .dresscode .subtitle, .dresscode .body-italic { position: relative; z-index: 1; }
.dresscode .subtitle { font-size: 1.3rem; }
.guests { width: 92%; margin: 8px auto 0; }

/* Timeline: clean, small icons, no corner flowers */
.timeline { padding-top: 26px; }
.tl-item { min-height: 72px; }
.tl-icon-wrap img { width: 46px; height: 46px; }
.tl-time { font-size: 1.02rem; }

/* Brunch */
.brunch-art { width: 62%; }

/* Gifts */
.gift-frame { max-width: 300px; }
.envelope { width: 92px; }

/* RSVP: urn tucked beside the form, as in the reel */
.rsvp { position: relative; }
.urn { position: absolute; right: 2px; top: 150px; width: 74px; margin: 0; z-index: 0; opacity: .95; }
.rsvp-form { position: relative; z-index: 1; }
.field input[type=text], .field input[type=tel], .field select, .field textarea { background: rgba(247,240,242,.75); border-color: #D9C9D1; }
.send-btn { background: #4A3F45; }

/* Desktop sides */
@media (min-width: 620px) { body::before { background: rgba(240, 230, 235, .66); } }
.urn { top: 255px; right: 0; width: 82px; }
.urn { top: 318px; }

/* =========================================================
   v2 ARTWORK — welcome panel + ceremony card as stretchable frames
   (corners/swans keep their shape; only the side vines extend)
   ========================================================= */
:root { --W: min(100vw, 480px); }
.welcome { padding: 0; }
.welcome-panel {
  background: none; overflow: visible;
  border-style: solid;
  border-image: url(../assets/img/welcome-panel.webp) 440 140 400 140 fill / calc(var(--W) * .392) calc(var(--W) * .125) calc(var(--W) * .357) calc(var(--W) * .125) round;
  padding: 0 4px; min-height: calc(var(--W) * 1.12);
  display: flex; align-items: center; justify-content: center;
}
.wp-text { padding: 0; margin: calc(var(--W) * -.09) 0 calc(var(--W) * -.05); }
.wp-text .title { font-size: 1.85rem; }
.wp-text .body-italic { font-size: 1rem; max-width: 27ch; }

.events { padding-left: 14px; padding-right: 14px; }
.card-frame {
  background: none; border: 0; outline: 0; box-shadow: none;
  border-style: solid;
  border-image: url(../assets/img/ceremony-card.webp) 450 190 190 190 fill / calc((var(--W) - 28px) * .401) calc((var(--W) - 28px) * .169) calc((var(--W) - 28px) * .169) calc((var(--W) - 28px) * .169) round;
  padding: 0 2px 4px;
}
.card-frame .title { margin-top: calc(var(--W) * -.17); }
.card-frame .event { border-top-color: rgba(185,160,170,.5); }
.card-frame {
  --cw: calc(var(--W) - 28px);
  border-width: calc(var(--cw) * .30) calc(var(--cw) * .135) calc(var(--cw) * .15) calc(var(--cw) * .135);
  border-image-width: calc(var(--cw) * .401) calc(var(--cw) * .169) calc(var(--cw) * .169) calc(var(--cw) * .169);
  padding: 0 0 6px;
}
.card-frame .title { margin-top: calc(var(--cw) * -.12); }
.card-frame .event { padding: 9px 0; }
.card-frame .event h3 { font-size: 1.22rem; }
.card-frame .event .cal { font-size: .62rem; letter-spacing: .1em; }
.events { padding-left: 6px; padding-right: 6px; }
.card-frame {
  border-image-source: url(../assets/img/ceremony-card.webp);
  border-image-slice: 450 240 190 240 fill;
  border-image-width: 108px 58px 46px 58px;
  border-image-repeat: round;
  border-width: 92px 54px 42px 54px;
}
.card-frame .title { margin-top: -38px; }
.card-frame { border-image-repeat: stretch round; }

/* =========================================================
   SCRATCH TO REVEAL
   ========================================================= */
.scratch { padding-top: 22px; padding-bottom: 10px; }
.script-title { position: relative; height: 3.1rem; margin: 0; font-weight: 400; }
.script-title .st { position: absolute; left: 0; right: 0; top: 0;
  font-family: "Pinyon Script", "Cormorant Garamond", cursive; font-size: 2.45rem; color: #5A4048;
  transition: opacity .7s ease, transform .7s ease; }
.script-title .st-after { opacity: 0; transform: translateY(8px); }
.scratch.revealed .st-before { opacity: 0; transform: translateY(-8px); }
.scratch.revealed .st-after { opacity: 1; transform: none; }
.mini-divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px 0 14px; color: #B98A98; font-size: .7rem; }
.mini-divider i { width: 54px; height: 1px; background: #CDB7BF; }

.heart-wrap { position: relative; width: min(70vw, 280px); aspect-ratio: 100 / 90; margin: 0 auto; }
.heart-under, .scratch-canvas, .heart-shine { position: absolute; inset: 0; }
.heart-shape { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 14px rgba(90,64,72,.14)); }
.hs-fill { fill: #FAF4F3; }
.hs-line { fill: none; stroke: #CBB2BA; stroke-width: .6; stroke-dasharray: 1.6 1.4; }
.heart-text { position: absolute; left: 14%; right: 14%; top: 17%; bottom: 26%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; }
.ht-small { font-family: "Pinyon Script", cursive; font-size: 1.35rem; color: #A9707B; line-height: 1; }
.ht-date { font-size: 1.42rem; font-weight: 500; color: #4A3F45; line-height: 1.15; margin-top: 4px; }
.ht-day { font-style: italic; font-size: .95rem; color: #7A6B72; }
.ht-place { font-family: var(--caps); text-transform: uppercase; letter-spacing: .22em; font-size: .64rem; color: #8A7B83; margin-top: 3px; }
.scratch-canvas { touch-action: none; cursor: grab; transition: opacity .8s ease; -webkit-tap-highlight-color: transparent; }
.scratch-canvas:focus-visible { outline: 2px solid #A48FAA; outline-offset: 6px; border-radius: 40%; }
.scratch.revealed .scratch-canvas { opacity: 0; pointer-events: none; }

/* a slow shimmer across the foil until the guest starts scratching */
.heart-shine { pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90' preserveAspectRatio='none'%3E%3Cpath d='M50 88 C20 66 0 46 0 26 C0 10 12 0 26 0 C37 0 45 6 50 15 C55 6 63 0 74 0 C88 0 100 10 100 26 C100 46 80 66 50 88Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90' preserveAspectRatio='none'%3E%3Cpath d='M50 88 C20 66 0 46 0 26 C0 10 12 0 26 0 C37 0 45 6 50 15 C55 6 63 0 74 0 C88 0 100 10 100 26 C100 46 80 66 50 88Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
  animation: heartShine 2.8s ease-in-out infinite; }
@keyframes heartShine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -150% 0; } }
.scratch.scratching .heart-shine, .scratch.revealed .heart-shine { display: none; }

.scratch-hint { margin: 10px 0 0; font-style: italic; font-size: .95rem; color: #8A7B83; transition: opacity .5s; }
.scratch-hint::before { content: "✦ "; color: #B9A27E; }
.scratch.scratching .scratch-hint, .scratch.revealed .scratch-hint { opacity: 0; }

.save-date-btn { display: inline-flex; align-items: center; gap: 10px; margin: 14px auto 0;
  padding: 11px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: #4A3F45; color: #FBF7F3; box-shadow: 0 6px 16px rgba(74,63,69,.25);
  font-family: var(--caps); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  transition: transform .2s, box-shadow .2s; }
.save-date-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(74,63,69,.3); }
.save-date-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.save-date-btn .ico-heart { fill: currentColor; stroke: none; }
.scratch.revealed .save-date-btn { animation: btnPulse 1.4s ease 1s 2; }
@keyframes btnPulse { 50% { transform: scale(1.05); box-shadow: 0 10px 24px rgba(74,63,69,.35); } }

.confetti-canvas { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .heart-shine { display: none; } }

/* swap: curved pearl necklace under the heart + button, flat garland above the invitation */
.scratch-hint { margin: 4px 0 0; font-size: .9rem; }
.save-date-btn { margin-top: 6px; position: relative; z-index: 2; }
.scratch { padding-bottom: 0; }
.countdown { padding-top: 0; }
.cd-necklace { margin: -64px calc(var(--gutter) * -1) -8px; position: relative; z-index: 1; pointer-events: none; }
.invitation { padding-top: 10px; }
.inv-garland { margin: 0 calc(var(--gutter) * -1) 2px; }

/* ---- countdown block: edge-to-edge panels, bigger medallions, centred ---- */
.countdown .art-wrap { margin: -80px calc(var(--gutter) * -1) 10px; }
.countdown .art-wrap.cd-necklace, .inv-garland {
  margin-left: calc(var(--gutter) * -1 - 4%); margin-right: calc(var(--gutter) * -1 - 4%);
}
.cd { gap: 14px; margin-top: 10px; }
.cd-item { gap: 9px; }
.cd-num {
  width: 98px; height: 98px; display: flex; align-items: center; justify-content: center;
  font-size: 2.05rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; padding: 0;
}
.cd-num::before {
  -webkit-mask: radial-gradient(circle, transparent 50px, #000 51px, #000 55px, transparent 56px);
          mask: radial-gradient(circle, transparent 50px, #000 51px, #000 55px, transparent 56px);
}
.cd-item .label { font-size: .7rem; letter-spacing: .24em; padding-left: .24em; }
@media (max-width: 370px) {
  .cd { gap: 10px; }
  .cd-num { width: 86px; height: 86px; font-size: 1.8rem; }
  .cd-num::before { -webkit-mask: radial-gradient(circle, transparent 44px, #000 45px, #000 49px, transparent 50px);
                            mask: radial-gradient(circle, transparent 44px, #000 45px, #000 49px, transparent 50px); }
}
.invitation { padding-top: 0; }
.inv-garland { margin-top: -19px; }

/* ---- Our Story: text fills the arch ---- */
.arch-text { left: 25%; right: 25%; top: 25%; bottom: 13%; display: flex; flex-direction: column; justify-content: center; }
.arch-text .title { font-size: 2.15rem; margin: 0; }
.arch-text .rule { margin: .45em auto .6em; }
.story-body .body-italic { font-size: 1.08rem; line-height: 1.55; margin: 0 auto .7em; max-width: none; color: #4F444A; }
.story-sign { font-family: "Pinyon Script", cursive; font-size: 1.55rem; color: #A9707B; margin: .1em 0 0; }
@media (max-width: 400px) {
  .arch-text { left: 24%; right: 24%; top: 24%; }
  .arch-text .title { font-size: 1.85rem; }
  .story-body .body-italic { font-size: .94rem; line-height: 1.45; margin-bottom: .55em; }
  .story-sign { font-size: 1.35rem; }
}
@media (max-width: 365px) {
  .story-body .body-italic { font-size: .86rem; line-height: 1.4; }
}
/* Our Story v2: text sized to the arch itself (scales with the arch on every phone) */
.arch-box { container-type: inline-size; }
.arch-text { left: 27%; right: 27%; top: 27.5%; bottom: 5%; justify-content: center; }
.arch-text .title { font-size: 8.2cqw; line-height: 1.05; }
.arch-text .rule { width: 9cqw; margin: 2cqw auto 3cqw; }
.story-body .body-italic { font-size: 4.15cqw; line-height: 1.42; margin: 0 auto 2.6cqw; }
.story-sign { font-size: 6.4cqw; margin-top: .5cqw; }
@media (max-width: 400px) {
  .arch-text .title { font-size: 8.2cqw; }
  .story-body .body-italic { font-size: 4.15cqw; line-height: 1.42; margin-bottom: 2.6cqw; }
  .story-sign { font-size: 6.4cqw; }
}

/* ---- page-wide spacing pass ---- */
.invitation { padding-bottom: 0; }
.invitation .hindi.small { margin: .4em 0 0; }
.events { padding-top: 22px; padding-bottom: 6px; }
.hanging { margin-bottom: -26px; }
.dresscode .title { margin-top: 0; text-shadow: 0 0 6px #EFE5EA, 0 0 12px #EFE5EA; }
.dresscode { padding-bottom: 0; }
.story { padding-top: 14px; }
.timeline { padding-top: 18px; }
.brunch { padding-bottom: 0; }
.brunch .btn-row { margin-top: 4px; }
.gifts { padding-top: 16px; }
.rsvp { padding-top: 14px; }

/* =========================================================
   PREMIUM PASS — readability, timeline, brunch, motion
   ========================================================= */
/* readable text: darker greys/plums on the pale pink */
:root { --muted: #6A5B63; --text: #3F3439; }
.label, .tl-title, .event .where, .ht-place, .cd-item .label { color: #6A5B63; }
.body-italic, .story-body .body-italic, .gift-text .body-italic, .wp-text .body-italic { color: #43373D; }
.event .when, .event .dress, .ht-day, .scratch-hint, .note, .small-addr, .parents, .credit { color: #5E5057; }
.hero-place { color: #4E3B41; }
.hero-date { color: #3F3035; }
.names-full small, .hashtag, .hindi { color: #9A5E6A; }
.field, .field legend, .choice { color: #3F3439; }
.field input::placeholder, .field textarea::placeholder { color: #8C7C84; }

/* section titles: blur-in + a line that draws itself */
.fx-title { opacity: 0; filter: blur(6px); transform: translateY(14px); transition: opacity 1s ease, filter 1s ease, transform 1s ease; }
.fx-title.in { opacity: 1; filter: none; transform: none; }
.section > .title.fx-title::after { content: ""; display: block; width: 46px; height: 1px; margin: .32em auto 0;
  background: linear-gradient(90deg, transparent, #B98A98, transparent); transform: scaleX(0); transition: transform 1.1s .35s ease; }
.section > .title.fx-title.in::after { transform: scaleX(1); }
.script-title.fx-title .st { transition-property: opacity, transform; }

/* invitation names: letters glide in */
.names-full > span .ch { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(3px);
  transition: opacity .6s ease, transform .6s ease, filter .6s ease; }
.names-full > span.in .ch { opacity: 1; transform: none; filter: none; }

/* ---------- Timeline ---------- */
.tl { max-width: 380px; margin: 18px auto 6px; }
.tl-item { min-height: 112px; grid-template-columns: 1fr 1fr; }
.tl-icon-wrap { padding-right: 30px; }
.tl-icon-wrap img { width: 84px; height: 84px; object-fit: contain;
  opacity: .55; filter: grayscale(.35) drop-shadow(0 4px 6px rgba(80,50,60,.12));
  transform: scale(.88); transition: transform .6s cubic-bezier(.2,.9,.3,1.3), opacity .6s, filter .6s; }
.tl-copy { padding-left: 30px; opacity: .55; transform: translateX(-8px); transition: opacity .6s, transform .6s; }
.tl-time { font-size: 1.4rem; line-height: 1.15; color: #3F3439; }
.tl-title { font-size: .84rem; letter-spacing: .16em; margin-top: 3px; }
.tl-item.active .tl-icon-wrap img { opacity: 1; filter: drop-shadow(0 6px 12px rgba(150,90,105,.28)); transform: scale(1); }
.tl-item.active .tl-copy { opacity: 1; transform: none; }
.tl-item.active .tl-time { color: #8E4F5E; }
.tl-line { top: 0; bottom: 0; }
.tl-line::before { background: repeating-linear-gradient(180deg, rgba(63,52,57,.22) 0 3px, transparent 3px 8px); }
.tl-fill { background: linear-gradient(180deg, #D9A3AE, #A9707B); width: 2px; border-radius: 2px; }
.tl-pearl { top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #FBF4F1 45%, #E2CFCC 100%);
  box-shadow: 0 0 0 4px rgba(233,198,206,.45), 0 0 18px 6px rgba(233,190,200,.6), 0 3px 6px rgba(0,0,0,.15); will-change: transform; }
.tl-pearl i { position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(201,138,152,.55); animation: pearlPing 2s ease-out infinite; }
@keyframes pearlPing { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@media (max-width: 370px) { .tl-icon-wrap img { width: 70px; height: 70px; } .tl-time { font-size: 1.22rem; } .tl-icon-wrap { padding-right: 22px; } .tl-copy { padding-left: 22px; } }

/* ---------- Brunch ---------- */
.brunch-stage { position: relative; width: 82%; margin: 8px auto 0; }
.brunch-stage .brunch-art { width: 100%; margin: 0; position: relative; z-index: 1; }
.sun-glow { position: absolute; left: 50%; top: 42%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,236,226,.95) 0%, rgba(246,214,214,.55) 35%, rgba(239,229,234,0) 65%);
  animation: glowBreath 6s ease-in-out infinite; z-index: 0; }
@keyframes glowBreath { 50% { transform: translate(-50%, -50%) scale(1.08); opacity: .8; } }
.steam { position: absolute; bottom: 30%; width: 10px; height: 34px; border-radius: 50%; z-index: 2;
  background: radial-gradient(ellipse, rgba(255,255,255,.85), rgba(255,255,255,0) 70%); filter: blur(2px);
  opacity: 0; animation: steam 4.5s ease-in infinite; }
.steam.s1 { left: 30%; } .steam.s2 { left: 50%; animation-delay: 1.5s; } .steam.s3 { left: 68%; animation-delay: 3s; }
@keyframes steam { 0% { transform: translateY(0) scaleX(1); opacity: 0; } 25% { opacity: .8; } 100% { transform: translateY(-46px) scaleX(1.8); opacity: 0; } }
.brunch-card { position: relative; margin: -4px auto 0; padding: 20px 18px 14px; max-width: 330px;
  background: linear-gradient(180deg, rgba(250,244,244,.92), rgba(244,234,237,.92));
  border: 1px solid #E2D0D6; border-radius: 160px 160px 18px 18px / 46px 46px 18px 18px;
  box-shadow: 0 10px 26px rgba(90,60,70,.09); }
.brunch-card::before { content: ""; position: absolute; inset: 6px; border: 1px dashed #D9C3CB; border-radius: inherit; pointer-events: none; }
.brunch-card .venue-name { margin-top: 0; }
.brunch-card .btn-row { margin-top: 6px; }
.brunch-card .link-btn { padding: 8px 14px; border: 1px solid #CDB4BD; border-radius: 999px; background: rgba(255,255,255,.55); transition: background .25s, transform .25s; }
.brunch-card .link-btn:hover { background: #fff; transform: translateY(-1px); }

/* ---------- Countdown numbers flip softly when they change ---------- */
.cd-num.tick { animation: tickFlip .6s ease; }
@keyframes tickFlip { 0% { transform: rotateX(0); } 45% { transform: rotateX(80deg); opacity: .4; } 100% { transform: rotateX(0); } }
.cd-num { animation: medallionBreath 5s ease-in-out infinite; }
.cd-item:nth-child(2) .cd-num { animation-delay: .8s; } .cd-item:nth-child(3) .cd-num { animation-delay: 1.6s; }
@keyframes medallionBreath { 50% { box-shadow: 0 6px 16px rgba(150,90,105,.26), inset 0 0 0 4px rgba(255,255,255,.4); } }

/* ---------- Hanging flowers sway in a light breeze ---------- */
.hanging img { transform-origin: 50% 0; animation: sway 7s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0) skewX(0); } 50% { transform: rotate(.4deg) skewX(-1.2deg); } }

/* ---------- Save the Date: a satin shimmer ---------- */
.save-date-btn { overflow: hidden; }
.save-date-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); animation: btnShine 3.6s ease-in-out 1.5s infinite; }
@keyframes btnShine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.send-btn { position: relative; overflow: hidden; transition: background .25s, transform .2s; }
.send-btn:hover { background: #5A4C53; transform: translateY(-1px); }

/* ---------- Blessings frame: soft glow ---------- */
.gift-frame img { animation: frameGlow 6s ease-in-out infinite; }
@keyframes frameGlow { 50% { filter: drop-shadow(0 0 14px rgba(240,200,210,.65)); } }

/* ---------- Ambient petals over the hero ---------- */
.hero-petals { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 2s; }
.hero-petals.on { opacity: 1; }
.hero-petals i { position: absolute; top: -30px; width: 16px; height: 13px; border-radius: 60% 40% 60% 40% / 70% 50% 50% 30%;
  background: radial-gradient(circle at 30% 30%, #FBE9EC, #D99AA3 60%, #B96B79); opacity: .85;
  transform: scale(var(--s)); animation: heroPetal 12s linear infinite; }
@keyframes heroPetal {
  0% { transform: translate(0, -20px) rotate(0) scale(var(--s)); opacity: 0; }
  10% { opacity: .85; }
  50% { transform: translate(calc(var(--dx) * .5), 50vh) rotate(200deg) scale(var(--s)); }
  90% { opacity: .7; }
  100% { transform: translate(var(--dx), 105vh) rotate(420deg) scale(var(--s)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .fx-title, .names-full > span .ch { opacity: 1 !important; filter: none !important; transform: none !important; }
  .hanging img, .cd-num, .gift-frame img, .save-date-btn::after, .sun-glow, .steam, .tl-pearl i { animation: none !important; }
  .steam { display: none; }
  .tl-icon-wrap img, .tl-copy { opacity: 1; transform: none; filter: none; }
}
.brunch > .rule { display: none; }

/* brunch: no card, just the text on the page */
.brunch-card { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 6px 0 0; max-width: none; margin-top: 4px; }
.brunch-card::before { display: none; }
.brunch-card .btn-row { flex-direction: row; gap: 8px; }
.steam { display: none; }
/* timeline line now runs from the first event to the last */
.tl-pearl { transition: none; }

/* four live medallions: days · hours · minutes · seconds */
.cd { gap: 10px; }
.cd-num { width: 76px; height: 76px; font-size: 1.7rem; }
.cd-num::before {
  -webkit-mask: radial-gradient(circle, transparent 39px, #000 40px, #000 44px, transparent 45px);
          mask: radial-gradient(circle, transparent 39px, #000 40px, #000 44px, transparent 45px); }
.cd-item .label { font-size: .64rem; letter-spacing: .18em; }
.cd-num.tick { animation: tickFlip .5s ease; }
.cd-done { font-family: "Pinyon Script", cursive; font-size: 1.9rem; color: #8E4F5E; margin: 4px 0 6px; }
@media (min-width: 420px) {
  .cd { gap: 14px; }
  .cd-num { width: 86px; height: 86px; font-size: 1.9rem; }
  .cd-num::before { -webkit-mask: radial-gradient(circle, transparent 44px, #000 45px, #000 49px, transparent 50px);
                            mask: radial-gradient(circle, transparent 44px, #000 45px, #000 49px, transparent 50px); }
}
@media (max-width: 370px) {
  .cd { gap: 7px; }
  .cd-num { width: 68px; height: 68px; font-size: 1.5rem; }
  .cd-num::before { -webkit-mask: radial-gradient(circle, transparent 35px, #000 36px, #000 40px, transparent 41px);
                            mask: radial-gradient(circle, transparent 35px, #000 36px, #000 40px, transparent 41px); }
}

/* ---------- sound button (bottom-right, inside the card on desktop) ---------- */
.sound-btn { position: fixed; z-index: 45; bottom: calc(16px + env(safe-area-inset-bottom));
  right: max(14px, calc(50vw - 240px + 14px));
  width: 48px; height: 48px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: #6B4552;
  background: radial-gradient(circle at 35% 30%, #fff, #F6EBEE 60%, #EBD9DF);
  border: 1px solid #D9BCC5; box-shadow: 0 6px 16px rgba(90,60,70,.22), inset 0 0 0 3px rgba(255,255,255,.6);
  -webkit-tap-highlight-color: transparent; transition: transform .2s, box-shadow .2s; }
.sound-btn[hidden] { display: none; }
.sound-btn:active { transform: scale(.94); }
.sound-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.sound-btn svg path:first-child { fill: currentColor; stroke: none; }
.sound-btn .ico-on { display: none; } .sound-btn.on .ico-on { display: block; } .sound-btn.on .ico-off { display: none; }
.sound-btn.on .w1 { animation: wave 1.6s ease-in-out infinite; } .sound-btn.on .w2 { animation: wave 1.6s ease-in-out .3s infinite; }
@keyframes wave { 50% { opacity: .35; } }
.sound-btn .eq { display: none; }
.sound-btn.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(185,120,138,.5);
  animation: soundRing 2.4s ease-out infinite; }
@keyframes soundRing { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.music-btn { display: none !important; }

/* ---------- footer credit with brand link ---------- */
.credit { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .9rem; color: #5E5057; margin-top: 18px; padding-bottom: 64px; }
.credit-heart { width: 14px; height: 13px; fill: #B5646F; animation: heartBeat 1.6s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes heartBeat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(.95); } 45% { transform: scale(1.12); } }
.brand-link { color: #7E4757; text-decoration: none; font-style: normal; font-weight: 500; letter-spacing: .02em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s; padding-bottom: 1px; }
.brand-link:hover, .brand-link:focus-visible { background-size: 100% 1px; }
@media (prefers-reduced-motion: reduce) { .credit-heart, .sound-btn.on::after, .sound-btn.on .w1, .sound-btn.on .w2 { animation: none; } }

/* Our Story: arch exactly centred */
.story { padding-left: 0; padding-right: 0; }
.arch-box { width: min(92%, 420px); max-width: 420px; margin: 0 auto; }

/* intro: seal, letters and hint fade in together once loaded */
#intro .seal, #intro .tap-hint { opacity: 0; transition: opacity .7s ease; }
#intro.ready .seal, #intro.ready .tap-hint { opacity: 1; }
#intro:not(.ready) .seal { animation: none; }
.door { background-color: #6E6858; }

/* artistic calligraphic Devanagari */
:root { --hindi: "Amita", "Tiro Devanagari Hindi", serif; }
.hindi { font-family: var(--hindi); font-weight: 700; font-size: 1.85rem; line-height: 1.5; letter-spacing: .01em;
  color: #9A5868; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.hindi.small { font-size: 1.55rem; }
.wp-text .hindi { font-size: 1.9rem; margin-bottom: -.1em; }
.thanks .hindi { font-size: 2.1rem; }

/* ---------- small phones (≤ 370px: iPhone SE, Galaxy S8 and similar) ---------- */
@media (max-width: 370px) {
  :root { --gutter: 18px; }
  .events { padding-left: 2px; padding-right: 2px; }
  .card-frame { border-image-width: 96px 46px 40px 46px; border-width: 86px 40px 36px 40px; }
  .card-frame .title { font-size: 1.75rem; margin-top: -30px; }
  .card-frame .venue-name { font-size: 1.35rem; }
  .card-frame .venue-addr { letter-spacing: .12em; font-size: .64rem; }
  .card-frame .event h3 { font-size: 1.1rem; }
  .card-frame .event .when { font-size: .84rem; }
  .card-frame .event .where { font-size: .62rem; letter-spacing: .1em; }
  .card-frame .event .dress { font-size: .82rem; }
  .card-frame .event .cal { font-size: .56rem; letter-spacing: .06em; }
  .tl-item { grid-template-columns: .85fr 1.15fr; min-height: 96px; }
  .tl-icon-wrap { padding-right: 18px; }
  .tl-icon-wrap img { width: 62px; height: 62px; }
  .tl-copy { padding-left: 18px; }
  .tl-time { font-size: 1.15rem; }
  .tl-title { font-size: .7rem; letter-spacing: .1em; }
  .title { font-size: 1.85rem; }
  .script-title .st { font-size: 2.15rem; }
  .sound-btn { width: 40px; height: 40px; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .sound-btn svg { width: 19px; height: 19px; }
  .rsvp-form .field { font-size: 1rem; }
}
/* phone turned sideways: keep the seal and hint inside the short screen */
@media (max-height: 480px) and (orientation: landscape) {
  .seal { width: 120px; top: 50%; }
  .tap-hint { top: calc(50% + 86px); }
}
@media (max-width: 370px) {
  .tl-item { grid-template-columns: 1fr 1fr; }
  .tl-copy { padding-left: 16px; }
  .tl-icon-wrap { padding-right: 16px; }
}
@media (max-width: 370px) { .tl-copy { padding-left: 20px; } .tl-item:not(.active) .tl-copy { transform: translateX(-3px); } }
