/* ==========================================================
   Theme: SAFFRON COURTYARD
   Saffron yellow, bougainvillea magenta, terracotta, warm cream, deep brown ink.
   Names + headings: DM Serif Display. Script: Great Vibes. Text: Jost.
   ========================================================== */
:root {
  --ink: #4a2a14; --ink-soft: #7a5632; --mag: #a8174f; --mag-lt: #d4308a; --saff: #e8a317; --gold: #b9700f; --gold-lt: #f3c969;
  --line: rgba(185, 112, 15, .38); --cream: #fff6e4; --paper: #fffaf0; --night: #3a1a24; --terra: #c4683f;
  --font-script: 'Great Vibes', 'Snell Roundhand', Georgia, serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --col: 480px; --pad-x: 24px; --pad-y: 124px; --focus: #a8174f; --entry-bg: #e9b36a;
}
body {
  font: 400 16px/1.55 'Jost', system-ui, sans-serif; color: var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Ccircle cx='24' cy='24' r='9' fill='none' stroke='%23e8a317' stroke-opacity='.16'/%3E%3Ccircle cx='24' cy='24' r='3' fill='%23e8a317' fill-opacity='.14'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fde8c8 0%, #fff3df 45%, #fbe0c0 100%);
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
.cap { text-transform: capitalize; }

/* ---------- Ganesh Ji seal ---------- */
.seal { width: 100%; }
.seal img { width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(110, 50, 10, .3)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 28px; border-radius: 999px;
  font: 500 15px/1 'Jost', sans-serif; letter-spacing: .03em; text-decoration: none; color: #3a2008;
  background: linear-gradient(180deg, #ffd25c, #e39a14); border: 1px solid #b97a10;
  box-shadow: 0 10px 20px -10px rgba(150, 80, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn:active { transform: translateY(1px); }
.btn-alt { background: rgba(255, 250, 240, .78); color: var(--ink); border-color: var(--gold); box-shadow: none; }
.btn-big { width: 100%; min-height: 56px; font-size: 16px; }
.link-btn { margin-top: 16px; min-height: 44px; padding: 0 10px; font-size: 14px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line); }
.chip-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--gold); border-radius: 999px; font-size: 13px; color: inherit; text-decoration: none; background: rgba(255, 250, 240, .65); }
.round { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); background: var(--paper); color: var(--ink); }
.round:active { background: var(--gold-lt); }

/* ==========================================================
   ENTRY: the clip + a cream plaque on the courtyard steps
   ========================================================== */
.vo-plaque {
  position: absolute; left: 50%; bottom: calc(5.5dvh + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 232px; padding: 15px 30px 14px;
  background: rgba(255, 246, 228, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--gold); border-radius: 999px 999px 18px 18px; outline: 1px solid rgba(185, 112, 15, .4); outline-offset: -6px;
  box-shadow: 0 14px 30px -12px rgba(90, 40, 0, .6);
  transition: opacity .45s ease;
}
.mono-line { display: flex; align-items: baseline; gap: 10px; font: 400 34px/1 var(--font-display); color: var(--ink); }
.mono-line i { font: 400 30px/1 var(--font-script); color: var(--mag); font-style: normal; }
.tap-sticker { display: flex; align-items: center; gap: 10px; }
.tap-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mag); flex: none; }
.tap-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--mag); animation: ping 1.9s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
.tap-text { white-space: nowrap; font: italic 400 19px/1 var(--font-display); color: var(--mag); }
.is-opening .vo-plaque { opacity: 0; }

/* coded fallback door (only if the clip cannot load) */
.ep-scene { position: absolute; inset: 0; background: linear-gradient(#fff6e4, #f6dcb4); overflow: hidden; }
.ep-frame { position: absolute; left: 12%; right: 12%; top: 14%; bottom: 28%; perspective: 1200px; border: 1px solid var(--gold); border-radius: 999px 999px 0 0; overflow: hidden; }
.ep-inner { position: absolute; inset: 0; background: radial-gradient(circle at 50% 70%, #fff3d0, #f2c27a 70%, #e0a060); }
.ep-leaf { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(180deg, #f2b81c, #dc9a0c); border: 1px solid #b97a10; transition: transform 1.8s cubic-bezier(.55, .02, .25, 1) .15s; }
.ep-left { left: 0; transform-origin: 0 50%; } .ep-right { left: 50%; transform-origin: 100% 50%; }
.is-opening .ep-left { transform: rotateY(-112deg); } .is-opening .ep-right { transform: rotateY(112deg); }

/* ==========================================================
   HERO: the clip's last frame (sunset sky over the courtyard wall) is the background
   ========================================================== */
.hero {
  position: relative; min-height: max(100svh, 760px); padding: 0; text-align: center; isolation: isolate;
  background-color: #f2c99a; background-image: var(--hero-image, linear-gradient(180deg, #f6d4a8, #f2c99a)); background-size: cover; background-position: center bottom;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 244, 226, .72) 0%, rgba(255, 244, 226, .5) 55%, rgba(255, 244, 226, 0) 82%); }
.hero-inner { padding: 28px 26px 0; }
.hero-crest { width: 108px; margin: 0 auto 4px; }
.invocation { max-width: 34ch; margin: 0 auto 6px; font: italic 400 14.5px/1.38 var(--font-display); color: var(--mag); }
.together { font: italic 400 17px/1.3 var(--font-display); color: var(--ink-soft); }
.names { display: flex; flex-direction: column; align-items: center; margin: 4px 0 8px; font: 400 clamp(54px, 17vw, 72px)/1 var(--font-display); color: var(--ink); }
.name { display: block; white-space: nowrap; }
.amp { font: 400 clamp(44px, 13vw, 56px)/.9 var(--font-script); color: var(--mag); margin: -2px 0; }
.hero-card { max-width: 372px; margin: 12px auto 0; padding: 16px 16px 15px; background: rgba(255, 248, 235, .84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 30px -20px rgba(110, 50, 10, .55); }
.parents { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 auto 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.parent span { display: block; font: italic 400 15px/1.3 var(--font-display); color: var(--ink-soft); }
.parent b { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.parent em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; line-height: 1.25; color: var(--ink-soft); }
.message { margin: 0 auto; font: italic 400 17px/1.45 var(--font-display); }
.hashtag-chip { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--mag); background: rgba(243, 201, 105, .32); border: 1px solid var(--line); }
.guest-chip { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.guest-chip b { color: var(--mag); font-weight: 500; }
.cue {
  position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--ink);
  background: rgba(255, 248, 235, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--gold);
}
.cue svg { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* hero entrance: starts about a second before the clip ends, finishes as it does */
.ch, .hero-crest, .together, .amp, .hero-card, .guest-chip, .cue { opacity: 0; }
.ch { display: inline-block; }
body.is-live .ch { animation: chIn .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * .05s + .1s); }
body.is-live .hero-crest { animation: fadeUp .7s ease .0s both; }
body.is-live .together { animation: fadeUp .7s ease .05s both; }
body.is-live .amp { animation: fadeUp .7s ease .3s both; }
body.is-live .hero-card { animation: fadeUp .7s ease .45s both; }
body.is-live .guest-chip { animation: fadeUp .7s ease .65s both; }
body.is-live .cue { animation: cueIn .7s ease .75s both; }
@keyframes chIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cueIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ==========================================================
   PAGES: shared look. Each page = blurred clip frame + warm wash + decor
   ========================================================== */
.pg { text-align: center; padding: var(--pad-y) var(--pad-x); }
.pg-bg { filter: blur(6px) saturate(1); opacity: .6; -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 20%, #000 80%, transparent 96%); mask-image: linear-gradient(180deg, transparent 4%, #000 20%, #000 80%, transparent 96%); }
.pg::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(255, 243, 223, 0), rgba(255, 243, 223, .55) 18%, rgba(255, 243, 223, .6) 82%, rgba(255, 243, 223, 0)); }
.pg h2 { font: 400 clamp(36px, 11vw, 46px)/1.1 var(--font-display); color: var(--mag); }
.sub { margin-top: 10px; font: italic 400 18px/1.4 var(--font-display); color: var(--ink-soft); }

/* decor pieces */
.bough { position: absolute; width: 104px; height: auto; filter: drop-shadow(0 6px 8px rgba(90, 40, 20, .2)); }
.corner { position: absolute; width: 118px; height: auto; filter: drop-shadow(0 3px 4px rgba(90, 40, 20, .2)); }
.c-tl { top: 12px; left: 8px; } .c-tr { top: 12px; right: 8px; transform: scaleX(-1); }
.c-bl { bottom: 12px; left: 8px; transform: scaleY(-1); } .c-br { bottom: 12px; right: 8px; transform: scale(-1, -1); }
.toran { position: absolute; left: 0; top: -2px; width: 100%; height: auto; max-width: 520px; left: 50%; transform: translateX(-50%); overflow: visible; filter: drop-shadow(0 5px 6px rgba(90, 40, 0, .25)); }
.strand { transform-box: fill-box; transform-origin: 50% 0; animation: sway var(--sw) ease-in-out var(--dl) infinite alternate; }
@keyframes sway { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
.bunting { position: absolute; left: 0; width: 100%; height: 50px; overflow: visible; filter: drop-shadow(0 3px 3px rgba(90, 40, 0, .22)); }
.b-top { top: -4px; } .b-top2 { top: 22px; opacity: .9; }
.lights { position: absolute; left: 0; width: 100%; height: 62px; overflow: visible; }
.l-top { top: -6px; } .l-top2 { top: 20px; opacity: .85; }
.bulb { animation: bulb 3.2s ease-in-out infinite; }
@keyframes bulb { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.petals i { position: absolute; top: -24px; width: var(--sz); height: calc(var(--sz) * .72); border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #f58ac0, #c21f78); opacity: .82; animation: fall var(--d) linear var(--dl) infinite; will-change: transform; }
.petals.is-gold i { background: linear-gradient(135deg, #ffd25c, #ee8a14); opacity: .8; }
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(calc(var(--sw) * -1), 55vh, 0) rotate(260deg); }
  100% { transform: translate3d(var(--sw), 112vh, 0) rotate(540deg); }
}
.tw-field { position: absolute; inset: 0; }
.tw { position: absolute; width: var(--s); height: var(--s); background: #fff2c4; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: tw 3.4s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: .95; transform: scale(1.1); } }

/* ---------- date reveal ---------- */
.date-sec { padding-bottom: 84px; }
.date-sec .pg-bg { opacity: .7; }
.scratch {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  width: min(100%, 340px); aspect-ratio: 5 / 4; margin: 24px auto 0; border-radius: 18px; background: var(--paper);
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 7px rgba(255, 250, 240, .88), 0 0 0 8.5px var(--gold-lt), 0 26px 40px -18px rgba(130, 60, 0, .6);
}
.scratch-prize { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; background: radial-gradient(120% 90% at 50% 40%, #fffdf6, #fbe9c8); }
.scratch-prize::before { content: ''; position: absolute; inset: 9px; border: 1px solid var(--gold); border-radius: 12px; box-shadow: inset 0 0 0 4px rgba(255, 250, 240, .9), inset 0 0 0 5px var(--line); pointer-events: none; }
.sp-dow { font: italic 400 19px/1 var(--font-display); color: var(--ink-soft); text-transform: capitalize; }
.sp-day { font: 400 76px/1 var(--font-display); color: var(--ink); margin: 6px 0 2px; }
.sp-mon { font: 500 16px/1 'Jost', sans-serif; letter-spacing: .08em; color: var(--mag); text-transform: capitalize; }
.sp-time { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }
.scratch canvas { border-radius: 18px; }
.scratch .coin {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c9, #e0b865 55%, #a87c32); border: 1.5px solid #8d6a2a;
  box-shadow: 0 4px 8px rgba(70, 40, 10, .45), inset 0 0 0 3px rgba(255, 244, 200, .35);
}
.scratch .shine { background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .6) 50%, transparent 62%) 0 0 / 260% 100% no-repeat; mix-blend-mode: soft-light; animation: shine 4.6s ease-in-out 1s infinite; }
@keyframes shine { 0% { background-position: 130% 0; } 38%, 100% { background-position: -80% 0; } }
.scratch.is-revealed .shine { mix-blend-mode: normal; animation: shineOnce 1.3s ease-out .1s 1 both; }
@keyframes shineOnce { 0% { background-position: 130% 0; opacity: .85; } 100% { background-position: -60% 0; opacity: 0; } }
.scratch.is-revealed .sp-day { animation: pop .8s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes pop { from { transform: scale(.82); opacity: .4; } to { transform: none; opacity: 1; } }
.after-reveal { margin-top: 30px; }
.after-reveal.is-in { animation: fadeUp .8s ease both; }
.after-reveal h3 { font: italic 400 24px var(--font-display); margin-bottom: 14px; color: var(--mag); }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: center; padding: 14px 2px 11px; background: rgba(255, 250, 240, .86); border: 1px solid var(--line); border-radius: 999px 999px 14px 14px; }
.tile b { font: 400 clamp(28px, 9vw, 36px)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.tile span { margin-top: 5px; font-size: 12px; color: var(--ink-soft); }
.count-done { font: italic 400 26px var(--font-display); }

/* ==========================================================
   FUNCTION PAGES: one full page each (sangeet / wedding / reception)
   ========================================================== */
.fn-page { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.pg-icon { width: 68px; height: 68px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 250, 240, .9); border: 1.5px solid var(--gold); box-shadow: 0 8px 18px -10px rgba(120, 60, 0, .55); }
.pg-icon svg { width: 40px; height: 40px; }
.fn-page .pg-title { font: 400 clamp(34px, 10.2vw, 44px)/1.1 var(--font-display); color: var(--mag); padding-inline: 4px; }
.dateplate {
  width: 178px; margin: 18px auto 22px; padding: 32px 12px 18px; color: var(--ink);
  background: linear-gradient(180deg, #fffaf0, #fdecd0); border: 1.5px solid var(--gold); border-radius: 999px 999px 16px 16px;
  box-shadow: 0 0 0 5px rgba(255, 250, 240, .65), 0 0 0 6.5px var(--gold-lt), 0 20px 34px -16px rgba(120, 60, 0, .55);
}
.dp-dow { font: italic 400 18px/1 var(--font-display); color: #7a5632; text-transform: capitalize; }
.dp-day { font: 400 74px/1 var(--font-display); margin: 6px 0 4px; }
.dp-mon { font: 500 14px/1 'Jost', sans-serif; letter-spacing: .07em; color: var(--mag); text-transform: capitalize; }
.pg-facts { width: min(100%, 340px); margin: 0 auto; padding: 4px 18px; text-align: left; background: rgba(255, 250, 240, .84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 18px; }
.pg-facts li { display: flex; gap: 13px; align-items: flex-start; padding: 13px 0; }
.pg-facts li + li { border-top: 1px solid var(--line); }
.pg-facts svg { flex: none; margin-top: 2px; color: var(--gold); }
.pg-facts b { display: block; font-weight: 500; line-height: 1.35; }
.pg-facts em { display: block; font-style: normal; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.swatch-line { display: flex !important; align-items: center; gap: 7px; margin-top: 3px; }
.swatch-line i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(74, 42, 20, .35); }
.pg-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 24px; }
.cal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 13.5px; }
.cal span { flex-basis: 100%; color: var(--ink-soft); }

/* sangeet: bougainvillea pink dusk, bunting overhead */
.pg-sangeet { padding-top: 130px; }
.pg-sangeet .pg-bg { filter: blur(6px) saturate(1.1) hue-rotate(-22deg); opacity: .66; }
.pg-sangeet::before { background: linear-gradient(180deg, rgba(252, 226, 236, 0), rgba(252, 220, 234, .62) 16%, rgba(255, 230, 224, .66) 84%, rgba(255, 230, 224, 0)); }
/* wedding: the yellow door itself, saffron gold, marigold toran */
.pg-wedding { padding-top: 128px; }
.pg-wedding .pg-bg { filter: blur(4px) saturate(1.05); opacity: .8; }
.pg-wedding::before { background: linear-gradient(180deg, rgba(255, 238, 190, 0), rgba(255, 236, 184, .5) 16%, rgba(255, 238, 200, .55) 84%, rgba(255, 238, 200, 0)); }
.pg-wedding .dateplate { width: 196px; padding-top: 38px; }
.pg-wedding .dp-day { font-size: 86px; }
/* reception: courtyard after dark, plum and terracotta, fairy lights */
.pg-reception { --ink: #fdeede; --ink-soft: #ecd0bc; --line: rgba(243, 201, 105, .4); --focus: #f3c969; color: var(--ink); padding-top: 140px; padding-bottom: 130px; }
.pg-reception .pg-bg { filter: blur(6px) brightness(.42) saturate(1.2) hue-rotate(-18deg); opacity: .9; }
.pg-reception::before { background: linear-gradient(180deg, rgba(48, 18, 36, 0), rgba(48, 18, 36, .93) 17%, rgba(70, 26, 44, .76) 50%, rgba(42, 16, 32, .93) 83%, rgba(42, 16, 32, 0)); }
.pg-reception h2, .pg-reception .pg-title { color: #ffd98a; }
.pg-reception .pg-facts { background: rgba(48, 18, 36, .66); border-color: rgba(243, 201, 105, .45); }
.pg-reception .pg-facts svg { color: #f3c969; }
.pg-reception .dateplate { color: #fdeede; background: linear-gradient(180deg, #5a2440, #3a1626); border-color: #f3c969; box-shadow: 0 0 0 5px rgba(48, 18, 36, .7), 0 0 0 6.5px rgba(243, 201, 105, .7), 0 20px 34px -16px rgba(0, 0, 0, .7); }
.pg-reception .dp-dow { color: #ecd0bc; } .pg-reception .dp-day { color: #ffd98a; } .pg-reception .dp-mon { color: #fdeede; }
.pg-reception .chip-btn { background: rgba(48, 18, 36, .55); }
.pg-reception .pg-icon { background: rgba(48, 18, 36, .75); }
.pg-reception .swatch-line i { border-color: rgba(253, 238, 222, .5); }

/* ==========================================================
   MORE CELEBRATIONS: card deck
   ========================================================== */
.more-sec { --deck-h: 470px; }
.deck { margin-top: 30px; }
.deck-card {
  display: flex; flex-direction: column; align-items: center; padding: 38px 22px 22px; text-align: center; color: var(--on);
  background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 55%), var(--card);
  border: 1.5px solid var(--gold); border-radius: 165px 165px 22px 22px; box-shadow: 0 0 0 5px rgba(255, 250, 240, .72), 0 22px 36px -18px rgba(120, 60, 0, .6);
}
.card-art { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 250, 240, .85); border: 1px solid var(--gold); }
.card-art svg { width: 46px; height: 46px; }
.deck-card h3 { margin: 14px 0 12px; font: 400 36px/1.05 var(--font-display); }
.facts { width: 100%; text-align: left; }
.facts li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid rgba(74, 42, 20, .2); font-size: 14.5px; line-height: 1.35; }
.facts svg { width: 18px; height: 18px; flex: none; margin-top: 1px; opacity: .85; }
.theme-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 7px 14px; border-radius: 999px; background: rgba(255, 250, 240, .8); font-size: 13px; color: var(--ink); }
.theme-chip i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(74, 42, 20, .35); }
.deck-ui { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 44px; }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 210px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; transition: background .2s ease; }
.dots button.is-on { background: var(--gold); }

/* ==========================================================
   STORY
   ========================================================== */
.reel { margin-inline: calc(var(--pad-x) * -1); margin-top: 18px; }
.reel.reel-single { padding-inline: 0; justify-content: center; overflow: visible; }
.reel.reel-single .polaroid { width: min(74%, 268px); transform: rotate(-1deg); }
.polaroid { position: relative; width: min(66%, 232px); margin: 0 auto; padding: 11px 11px 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; transform: rotate(var(--tilt, 0deg)); box-shadow: 0 18px 28px -16px rgba(120, 60, 0, .6); }
.polaroid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 26%; background: #fde8c8; }
.polaroid figcaption { display: grid; place-items: center; min-height: 3em; padding: 6px 4px 4px; font: 400 24px/1.1 var(--font-script); color: var(--mag); text-wrap: balance; }
.story-sec .deck-ui { margin-top: 8px; }

/* ==========================================================
   LOCATION
   ========================================================== */
.loc-sec .pg-inner { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.loc-sec h2 { margin-bottom: -4px; }
.map { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1.5px solid var(--gold); border-radius: 22px; box-shadow: 0 0 0 6px rgba(255, 250, 240, .78), 0 20px 34px -18px rgba(120, 60, 0, .55); text-decoration: none; }
.map-svg { width: 100%; height: 100%; }
.map-chip { position: absolute; left: 12px; bottom: 12px; padding: 7px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; border: 1px solid var(--gold); }
.pin-g { animation: hop 1.6s ease-in-out infinite; }
@keyframes hop { 50% { transform: translateY(-7px); } }
.pulse { transform-box: fill-box; transform-origin: center; animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { transform: scale(.4); opacity: .95; } to { transform: scale(2.6); opacity: 0; } }
.addr h3 { font: 400 28px/1.2 var(--font-display); color: var(--ink); margin-bottom: 8px; }
.addr p { margin: 0 auto; max-width: 30ch; font-size: 15.5px; color: var(--ink-soft); }
.row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 4px; }

/* ==========================================================
   RSVP: name + WhatsApp only
   ========================================================== */
.rsvp-sec .pg-inner { display: flex; flex-direction: column; align-items: center; }
#rsvp-form { display: grid; gap: 14px; width: 100%; margin-top: 28px; padding: 24px 20px; text-align: left; background: rgba(255, 250, 240, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 22px 36px -22px rgba(120, 60, 0, .55); }
#rsvp-form label { font-size: 14.5px; color: var(--ink-soft); }
input[type=text], textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; color: var(--ink); font-size: 16px; resize: vertical; }
input[type=text]:focus, textarea:focus { outline: 2px solid var(--mag); outline-offset: 1px; }
.form-err { color: #a3202a; font-weight: 500; }
.form-done { text-align: center; font-weight: 500; }
.rsvp-notes { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 16px; }
.rsvp-note-pill { padding: 10px 14px; border-radius: 14px; background: rgba(255, 250, 240, .82); border: 1px solid var(--line); font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.rsvp-note-pill b { color: var(--ink); font-weight: 500; }

/* ==========================================================
   CLOSING
   ========================================================== */
.closing { padding-block: 150px 120px; }
.closing .pg-bg { opacity: .8; -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 34%); mask-image: linear-gradient(180deg, transparent 4%, #000 34%); }
.closing-crest { width: 150px; margin: 0 auto 14px; }
.closing h2 { font-size: clamp(32px, 9.6vw, 40px); padding-inline: 6px; line-height: 1.15; }
.family { margin-top: 16px; font: italic 400 22px var(--font-display); color: var(--ink-soft); }
.closing-note { margin: 10px auto 0; max-width: 30ch; font-size: 14px; color: var(--ink-soft); }
.closing-tag { display: inline-block; margin-top: 12px; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--mag); background: rgba(255, 248, 235, .85); border: 1px solid var(--line); }
.rule { width: 150px; height: auto; margin: 30px auto 0; }

/* ---------- floating bits ---------- */
.toast { padding: 12px 20px; background: var(--night); color: #ffd98a; border: 1px solid var(--gold); border-radius: 999px; font-size: 15px; text-align: center; }
.music { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--night); border: 1px solid var(--gold); --focus: var(--gold-lt); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.eq i { width: 3px; height: 6px; border-radius: 2px; background: var(--gold-lt); }
.music.is-playing .eq i { animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s !important; } .eq i:nth-child(3) { animation-delay: -.6s !important; } .eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 18px; } }
.music:not(.is-playing)::after { content: ''; position: absolute; width: 30px; height: 1.5px; background: var(--gold-lt); transform: rotate(-45deg); }

@media (max-height: 700px) { .vo-plaque { padding: 11px 24px; bottom: 3.5dvh; } .mono-line { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) {
  .ch, .hero-crest, .together, .amp, .hero-card, .guest-chip, .cue { opacity: 1; }
  .petals, .scratch .shine, .strand { display: none; animation: none; }
}

/* four-corner border on the hero too */
.hero .decor { z-index: 0; }
.hero-inner { position: relative; z-index: 1; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 270px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(251, 232, 203, 0), rgba(251, 232, 203, .55) 48%, rgba(251, 232, 203, .9) 82%, #fbe8cb 99%); }
