/* ==========================================================
   Theme: ROSE GATE
   Powder pink, champagne gold, ivory, rose ink.
   Script: Pinyon Script. Headings: Playfair Display. Text: Jost.
   ========================================================== */
:root {
  --ink: #4a2a2e; --ink-soft: #80585d; --rose: #c97b8b; --rose-deep: #a94f66;
  --gold: #b08650; --gold-lt: #e3c98f; --line: rgba(176, 134, 80, .4);
  --blush: #f7e4e6; --ivory: #fbf5ec; --paper: #fffaf4; --night: #3a1727;
  --font-script: 'Pinyon Script', 'Snell Roundhand', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --col: 480px; --pad-x: 24px; --pad-y: 118px; --focus: #a94f66; --entry-bg: #e9d3cf;
}
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='44' height='44'%3E%3Cpath d='M22 0L44 22L22 44L0 22Z' fill='none' stroke='%23b08650' stroke-opacity='.1'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #f8e6e8 0%, #fbf1e6 45%, #f8e4e6 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(150, 80, 90, .22)); }

/* ---------- 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: .02em; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, #d78d9d, #b5566c); border: 1px solid #a24960;
  box-shadow: 0 10px 20px -10px rgba(169, 79, 102, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn:active { transform: translateY(1px); }
.btn-alt { background: rgba(255, 250, 244, .7); 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, 244, .55); }
.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 plaque on the marble floor
   ========================================================== */
.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: 6px; min-width: 232px; padding: 14px 30px 13px;
  background: rgba(255, 250, 244, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--gold); border-radius: 999px 999px 18px 18px; outline: 1px solid rgba(176, 134, 80, .45); outline-offset: -6px;
  transition: opacity .45s ease;
}
.mono-line { display: flex; align-items: baseline; gap: 10px; font: 400 40px/1 var(--font-script); color: var(--ink); }
.mono-line i { font-size: 24px; color: var(--gold); 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(--rose-deep); flex: none; }
.tap-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--rose-deep); 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 500 18px/1 var(--font-display); color: var(--rose-deep); }
.is-opening .vo-plaque { opacity: 0; }

/* coded fallback gate (only if the clip cannot load) */
.ep-scene { position: absolute; inset: 0; background: linear-gradient(#f6d9dd, #f3e4d0); 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; box-shadow: 0 0 0 6px rgba(255, 250, 244, .7), 0 0 0 7px var(--line); overflow: hidden; }
.ep-inner { position: absolute; inset: 0; background: radial-gradient(circle at 50% 70%, #fff3e6, #f2c9cf 70%, #e6b4bd); }
.ep-leaf { position: absolute; top: 0; bottom: 0; width: 50%; background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(176, 134, 80, .7) 14px 16px), linear-gradient(180deg, #fbf5ec, #efdfcf); border: 1px solid var(--gold); 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 is the background
   ========================================================== */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: max(100svh, 740px); padding: 40px 22px 34px; text-align: center; isolation: isolate;
  background-color: #f6d9dd; background-image: var(--hero-image, linear-gradient(180deg, #f6d9dd, #f8e8e0)); background-size: cover; background-position: center top;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 246, 242, .82) 0%, rgba(255, 246, 242, .62) 60%, rgba(255, 246, 242, .12) 88%); }
.hero-inner { padding: 8px 6px 0; }
.hero-crest { width: 98px; margin: 0 auto 6px; }
.invocations { display: flex; flex-direction: column; gap: 3px; margin: 4px auto 10px; }
.invocation { font: 500 12px/1.35 'Jost', sans-serif; letter-spacing: .09em; color: var(--rose-deep); }
.divine-blessings { max-width: 340px; margin: 0 auto 10px; padding: 9px 14px; background: rgba(255, 250, 244, .72); border: 1px solid var(--line); border-radius: 14px; }
.divine-label { font: italic 400 12.5px/1.3 var(--font-display); color: var(--ink-soft); margin-bottom: 3px; }
.divine-name { font: 500 13px/1.35 'Jost', sans-serif; color: var(--ink); }
.together { font: italic 400 15px/1.35 var(--font-display); color: var(--ink-soft); margin-top: 6px; }
.names { display: flex; flex-direction: column; align-items: center; margin: 6px 0 8px; font: 400 clamp(58px, 18vw, 82px)/1.05 var(--font-script); color: var(--ink); }
.name { display: block; white-space: nowrap; }
.amp { font-size: .42em; line-height: 1; color: var(--gold); margin: 0; }
.hero-card { max-width: 372px; margin: 12px auto 0; padding: 15px 16px; background: rgba(255, 250, 244, .85); -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, 64, .5); }
.parents { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 auto; }
.parent { min-width: 0; overflow-wrap: break-word; }
.parent .p-who { display: block; font: italic 600 15px/1.2 var(--font-display); color: var(--rose-deep); margin-bottom: 2px; }
.parent span { display: block; font: italic 400 12.5px/1.3 var(--font-display); color: var(--ink-soft); }
.parent b { display: block; font-weight: 500; font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.message { margin: 12px auto 0; padding-top: 10px; border-top: 1px solid var(--line); font: italic 400 15px/1.5 var(--font-display); }
.guest-chip { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.guest-chip b { color: var(--rose-deep); font-weight: 500; }
.cue {
  position: relative; z-index: 2; align-self: center; max-width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 22px auto calc(4px + env(safe-area-inset-bottom)); padding: 11px 18px; border-radius: 999px; font: 500 12.5px/1.2 'Jost', sans-serif; letter-spacing: .04em; text-decoration: none; color: var(--ink);
  background: rgba(255, 250, 244, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--gold);
}
.cue svg { flex: none; 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, .invocations, .divine-blessings, .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 .invocations { animation: fadeUp .7s ease .03s both; }
body.is-live .divine-blessings { animation: fadeUp .7s ease .06s both; }
body.is-live .together { animation: fadeUp .7s ease .09s 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: translateY(12px); } to { opacity: 1; transform: none; } }

/* ==========================================================
   PAGES: shared look. Each page = blurred clip frame + colour wash + decor
   ========================================================== */
.pg { text-align: center; padding: var(--pad-y) var(--pad-x); }
.pg-bg { filter: blur(6px) saturate(.9); 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(251, 240, 236, 0), rgba(251, 240, 236, .5) 18%, rgba(251, 245, 236, .55) 82%, rgba(251, 240, 236, 0)); }
.pg h2 { font: 400 clamp(46px, 14vw, 58px)/1.05 var(--font-script); color: var(--rose-deep); }
.sub { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }

/* decor pieces */
.branch { position: absolute; width: 128px; height: auto; filter: drop-shadow(0 6px 8px rgba(120, 60, 70, .18)); }
.corner { position: absolute; width: 118px; height: auto; filter: drop-shadow(0 3px 4px rgba(120, 60, 70, .18)); }
.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); }
.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, #f8cfd6, #e79aab); opacity: .8; animation: fall var(--d) linear var(--dl) infinite; will-change: transform; }
.petals.is-gold i { background: linear-gradient(135deg, #f6e2a8, #cfa457); opacity: .75; }
@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, 244, .85), 0 0 0 8.5px var(--gold-lt), 0 26px 40px -18px rgba(120, 50, 64, .55);
}
.scratch-prize { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 20px; background: radial-gradient(120% 90% at 50% 40%, #fffdf8, #f8ebdc); }
.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, 244, .9), inset 0 0 0 5px var(--line); pointer-events: none; }
.sp-dow { font: italic 400 15px/1.1 var(--font-display); color: var(--ink-soft); text-transform: capitalize; }
.sp-day { font: 400 66px/1 var(--font-display); color: var(--ink); margin: 4px 0 3px; }
.sp-mon { font: 500 15px/1.15 'Jost', sans-serif; letter-spacing: .06em; color: var(--rose-deep); text-transform: capitalize; }
.sp-time { margin-top: 8px; max-width: 24ch; font-size: 13px; line-height: 1.3; 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 20px var(--font-display); margin-bottom: 14px; }
.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, 244, .82); 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 24px 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, 244, .88); border: 1.5px solid var(--gold); box-shadow: 0 8px 18px -10px rgba(120, 60, 70, .5); }
.pg-icon svg { width: 40px; height: 40px; }
.pg-kicker { max-width: 34ch; margin: 4px auto 8px; font: 500 12.5px/1.4 'Jost', sans-serif; letter-spacing: .08em; color: var(--ink-soft); text-transform: uppercase; }
.fn-page .pg-title { font: 400 clamp(32px, 8.5vw, 42px)/1.18 var(--font-display); color: var(--rose-deep); text-wrap: balance; }
.fn-scratch .scratch { margin-top: 16px; }
.fn-scratch .pg-facts { margin-top: 18px; }
.fn-page .after-reveal { margin-top: 22px; }
.fn-page .after-reveal .tile { background: rgba(58, 23, 39, .55); border-color: rgba(227, 201, 143, .42); }
.fn-page .after-reveal h3 { color: #f3dca4; }
.dateplate {
  width: 178px; margin: 18px auto 22px; padding: 32px 12px 18px; color: #4a2a2e;
  background: linear-gradient(180deg, #fffaf4, #fbeee2); border: 1.5px solid var(--gold); border-radius: 999px 999px 16px 16px;
  box-shadow: 0 0 0 5px rgba(255, 250, 244, .6), 0 0 0 6.5px var(--gold-lt), 0 20px 34px -16px rgba(110, 50, 64, .5);
}
.dp-dow { font: italic 400 15px/1 var(--font-display); color: #80585d; text-transform: capitalize; }
.dp-day { font: 400 76px/1 var(--font-display); margin: 6px 0 4px; }
.dp-mon { font: 500 14px/1 'Jost', sans-serif; letter-spacing: .05em; color: #a94f66; text-transform: capitalize; }
.pg-facts { width: min(100%, 340px); margin: 0 auto; padding: 4px 18px; text-align: left; background: rgba(255, 250, 244, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); 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, 46, .3); }
.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: dusk, lilac-blush wash */
.pg-sangeet .pg-bg { filter: blur(6px) saturate(1.05) hue-rotate(-14deg); opacity: .62; }
.pg-sangeet::before { background: linear-gradient(180deg, rgba(240, 220, 236, 0), rgba(238, 214, 232, .62) 16%, rgba(246, 222, 230, .66) 84%, rgba(246, 222, 230, 0)); }
/* wedding: the gate itself, ivory and gold, a little larger */
.pg-wedding .pg-bg { filter: blur(4px) saturate(.95); opacity: .78; }
.pg-wedding::before { background: linear-gradient(180deg, rgba(255, 247, 232, 0), rgba(255, 247, 232, .5) 16%, rgba(252, 240, 224, .55) 84%, rgba(252, 240, 224, 0)); }
.pg-wedding .dateplate { width: 196px; padding-top: 38px; }
.pg-wedding .pg-inner { padding-top: 40px; }
.pg-wedding .dp-day { font-size: 88px; }
/* reception: night, wine and gold */
.pg-reception { --ink: #fbeee8; --ink-soft: #e6c8c6; --line: rgba(227, 201, 143, .4); --focus: #e3c98f; color: var(--ink); }
.pg-reception { padding-top: 130px; padding-bottom: 130px; }
.pg-reception .pg-bg { filter: blur(6px) brightness(.5) saturate(1.25) hue-rotate(-12deg); opacity: .9; }
.pg-reception::before { background: linear-gradient(180deg, rgba(58, 23, 39, 0), rgba(58, 23, 39, .94) 17%, rgba(76, 30, 50, .74) 50%, rgba(46, 18, 32, .94) 83%, rgba(46, 18, 32, 0)); }
.pg-reception h2, .pg-reception .pg-title { color: #f3dca4; }
.pg-reception .pg-facts { background: rgba(58, 23, 39, .6); border-color: rgba(227, 201, 143, .45); }
.pg-reception .pg-facts svg { color: #e3c98f; }
.pg-reception .btn { background: linear-gradient(180deg, #f0dba0, #c99a49); color: #4a2a2e; border-color: #b58a3c; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
.pg-reception .chip-btn { background: rgba(58, 23, 39, .5); }
.pg-reception .pg-icon { background: rgba(58, 23, 39, .7); }

/* ==========================================================
   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, .42), 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, 244, .7), 0 22px 36px -18px rgba(110, 50, 64, .55);
}
.card-art { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 250, 244, .8); border: 1px solid var(--gold); }
.card-art svg { width: 46px; height: 46px; }
.deck-card h3 { margin: 14px 0 12px; font: 400 40px/1 var(--font-script); }
.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, 46, .16); font-size: 14.5px; line-height: 1.35; }
.facts svg { width: 18px; height: 18px; flex: none; margin-top: 1px; opacity: .8; }
.theme-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 7px 14px; border-radius: 999px; background: rgba(255, 250, 244, .75); font-size: 13px; color: var(--ink); }
.theme-chip i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(74, 42, 46, .3); }
.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; }
.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(110, 50, 64, .55); }
.polaroid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--blush); }
.polaroid figcaption { display: grid; place-items: center; min-height: 3em; padding: 6px 4px 4px; font: 400 22px/1.15 var(--font-script); color: var(--rose-deep); text-wrap: balance; }
.story-sec .deck-ui { margin-top: 8px; }
.couple-frame { margin: 22px auto 0; }
.couple-polaroid { width: min(82%, 290px); padding: 12px 12px 6px; }
.couple-polaroid img { aspect-ratio: 2 / 3; object-position: center 25%; }
.couple-polaroid figcaption { min-height: 2.2em; font-size: 32px; color: var(--ink); }
.couple-tagline { max-width: 30ch; margin: 18px auto 0; font: italic 400 18px/1.45 var(--font-display); color: var(--rose-deep); }

/* ==========================================================
   BLESSINGS & SOCIALS
   ========================================================== */
.bless-title { font: 400 clamp(34px, 9vw, 44px)/1.12 var(--font-display) !important; color: var(--rose-deep); }
.bless-card { display: grid; gap: 14px; max-width: 380px; margin: 22px auto 0; padding: 26px 20px; background: rgba(255, 250, 244, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 22px 36px -22px rgba(110, 50, 64, .48); }
.bless-quote { font: italic 400 18px/1.5 var(--font-display); color: var(--ink); }
.bless-siblings { font-size: 15px; line-height: 1.45; color: var(--rose-deep); font-weight: 500; }
.bless-signoff { font-size: 14.5px; color: var(--ink-soft); }
.bless-tag { display: inline-block; justify-self: center; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--gold); background: rgba(255, 250, 244, .9); font: 500 13px/1 'Jost', sans-serif; letter-spacing: .12em; color: var(--rose-deep); }
.bless-note { font: italic 400 15.5px/1.45 var(--font-display); color: var(--ink); }
.bless-date { padding: 12px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bless-date b { display: block; font: 500 22px/1.2 var(--font-display); letter-spacing: .1em; color: var(--ink); }
.bless-date span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); }
.bless-ig { margin-top: 4px; font-size: 14px; padding: 12px 18px; }

/* ==========================================================
   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, 244, .75), 0 20px 34px -18px rgba(110, 50, 64, .5); 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: 500 26px/1.2 var(--font-display); 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
   ========================================================== */
.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, 244, .84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 22px 36px -22px rgba(110, 50, 64, .5); }
#rsvp-form label { font-size: 13.5px; letter-spacing: .04em; color: var(--ink-soft); }
.attend-wrap { display: grid; gap: 8px; margin-top: 2px; }
.rsvp-lbl { font-size: 13.5px; letter-spacing: .04em; color: var(--ink-soft); }
input[type=text], textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fffdfa; font-size: 16px; resize: vertical; }
input[type=text]:focus, textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 10px; text-align: center; font-weight: 500; font-size: 14.5px; border: 1px solid var(--gold); border-radius: 14px; background: #fffdfa; color: var(--ink); transition: background .2s ease, color .2s ease; }
.chip input:checked + span { background: linear-gradient(180deg, #d78d9d, #b5566c); color: #fff; border-color: #a24960; }
.chip input:focus-visible + span { outline: 2px solid var(--rose-deep); outline-offset: 3px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper span { flex: 1; color: var(--ink-soft); }
.stepper output { min-width: 2ch; text-align: center; font: 400 30px var(--font-display); }
.form-err { color: #9a2b3c; font-weight: 500; }
.form-done { text-align: center; font-weight: 500; }

/* ==========================================================
   CLOSING
   ========================================================== */
.closing { padding-block: 96px 120px; }
.closing .pg-bg { opacity: .75; -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(40px, 12vw, 52px); padding-inline: 6px; }
.family { margin-top: 16px; font: italic 400 21px var(--font-display); color: var(--ink-soft); }
.rule { width: 150px; height: auto; margin: 30px auto 0; }

/* ---------- floating bits ---------- */
.toast { padding: 12px 20px; background: var(--night); color: #f3dca4; 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-width: 360px) { .parents { grid-template-columns: 1fr; gap: 10px; } }
@media (max-height: 700px) { .vo-plaque { padding: 11px 24px; bottom: 3.5dvh; } .mono-line { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) {
  .ch, .hero-crest, .invocations, .divine-blessings, .together, .amp, .hero-card, .guest-chip, .cue { opacity: 1; }
  .petals, .scratch .shine { display: 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(244, 227, 226, 0), rgba(244, 227, 226, .5) 40%, rgba(244, 227, 226, .88) 74%, #f4e3e2 98%); }
