:root {
  --paper: #F7F3EA;
  --paper-2: #EFE8DA;
  --ink: #5B4636;
  --ink-soft: #8A7462;
  --sage: #8A9A7B;
  --sage-deep: #5F6F55;
  --gold: #B8975A;
  --gold-soft: #D9C29A;
  --blush: #E9D8C8;
  --night: #2A2B3A;
  --script: "Pinyon Script", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --gutter: clamp(20px, 6vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper) url("assets/art/paper.webp") center top / 520px repeat;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, 1.1vw + 13px, 21px);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; height: 100svh; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.script { font-family: var(--script); font-weight: 400; line-height: 1.1; color: var(--ink); }
.lede { font-style: italic; color: var(--ink-soft); font-size: 1.05em; }

.sec-head { text-align: center; padding: 0 var(--gutter); }
.sec-head .script { font-size: clamp(52px, 9vw, 96px); margin: .1em 0 .15em; }

.btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 26px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
  transition: background .4s var(--ease), color .4s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--gold); color: #fff; }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); width: 100%; padding: 16px; }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); }

/* ───────── 0 · Envelope gate ───────── */
.gate {
  --ew: min(78vw, 42svh, 430px);   /* envelope width */
  --eh: calc(var(--ew) * 1.32);
  --etop: calc(57svh - var(--eh) / 2);
  --seal: calc(var(--ew) * .36);
  position: fixed; inset: 0; z-index: 50;
  cursor: pointer; outline: none; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.gate-bg { position: absolute; inset: 0; background: #EEE7D9 url("assets/art/paper.webp") center / 520px repeat; }
.gate-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 58%, rgba(255, 255, 255, .45), rgba(91, 70, 54, .14)); }
.gate-flower { position: absolute; width: clamp(190px, 48vw, 500px); max-width: none; pointer-events: none; }
.gate-flower--tl { left: -13%; top: -9%; }
.gate-flower--br { right: -13%; bottom: -9%; scale: -1 -1; }
.gate-top { position: absolute; left: 0; right: 0; top: max(4svh, calc(var(--etop) - 54px)); text-align: center; color: var(--ink); }
.gate-tap {
  position: absolute; left: 0; right: 0; top: calc(var(--etop) + var(--eh) + 26px); text-align: center;
  font-family: var(--sans); font-size: 10px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold);
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .35; } }
.env { position: absolute; left: 0; right: 0; margin: 0 auto; top: var(--etop); width: var(--ew); height: var(--eh); }
.env > * { position: absolute; }
.env-back {
  inset: 0; z-index: 0; border-radius: 3px; overflow: hidden;
  background: #E9E0CF url("assets/art/paper.webp") center / 420px;
  box-shadow: 0 2px 4px rgba(91, 70, 54, .12), 0 40px 70px -30px rgba(91, 70, 54, .45);
}
.env-liner, .flap-inner {
  background:
    url("assets/art/florals.webp") center 20% / 70% no-repeat,
    linear-gradient(180deg, #A7B297, #8E9C80);
}
.env-liner { position: absolute; inset: 0; opacity: .95; }
.flap-inner { background-position: center 88%, center; }
.env-flap { left: 0; top: 0; width: 100%; height: 50%; z-index: 4; transform-origin: 50% 0; transform-style: preserve-3d; }
.flap-front-wrap { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 7px 7px rgba(91, 70, 54, .2)); }
.flap-front {
  position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(91, 70, 54, .04)), var(--paper) url("assets/art/paper.webp") center / 420px;
}
/* The inner face is pre-flipped about its centre, so it's cut point-up: after the flap swings open
   the wide edge stays on the hinge and the point rises above the envelope. */
.flap-inner { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: rotateX(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.env-seal {
  position: absolute; left: 0; right: 0; margin: 0 auto; top: calc(100% - var(--seal) / 2); width: var(--seal); height: auto;
  filter: drop-shadow(0 6px 10px rgba(91, 70, 54, .3));
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.env-card {
  left: 6%; right: 6%; top: 3%; height: 93%; z-index: 2;
  background: #FFFDF8 url("assets/art/paper.webp") center / 360px;
  box-shadow: 0 1px 3px rgba(91, 70, 54, .15), 0 -6px 18px -8px rgba(91, 70, 54, .2);
  display: grid; place-items: start center;
}
.card-inner { margin: 6% 6% 0; padding: 12% 4% 0; border: 1px solid rgba(184, 151, 90, .5); outline: 1px solid rgba(184, 151, 90, .25); outline-offset: 4px; height: 88%; width: 88%; text-align: center; }
.card-inner .cross { width: 14px; height: 21px; margin: 0 auto 14px; }
.card-names { font-family: var(--script); font-size: calc(var(--ew) * .15); line-height: 1.1; margin: 10px 0 6px; }
.card-names span, .pocket-names span { font-family: var(--serif); font-style: italic; font-size: .5em; color: var(--gold); }
.card-date { font-family: var(--sans); font-weight: 300; letter-spacing: .4em; font-size: 11px; }
.env-pocket {
  inset: 0; z-index: 3; border-radius: 3px;
  clip-path: polygon(0 0, 50% 47%, 100% 0, 100% 100%, 0 100%);
  background: var(--paper) url("assets/art/paper.webp") center / 420px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 9%;
}
.pocket-folds { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-l { fill: rgba(91, 70, 54, .035); }
.pf-r { fill: rgba(91, 70, 54, .06); }
.pf-b { fill: rgba(255, 255, 255, .22); stroke: rgba(91, 70, 54, .1); stroke-width: .25; }
.pocket-names { position: relative; font-family: var(--script); font-size: calc(var(--ew) * .12); line-height: 1; }
.pocket-place { position: relative; margin-top: 8px; font-family: var(--sans); font-weight: 300; letter-spacing: .32em; font-size: 9px; text-transform: uppercase; color: var(--ink-soft); }

/* ───────── fixed chrome ───────── */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
.thread { position: fixed; left: 14px; top: 18svh; bottom: 18svh; width: 1px; background: rgba(184, 151, 90, .18); z-index: 31; pointer-events: none; }
.thread span { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); }
.music {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(184, 151, 90, .6);
  background: rgba(247, 243, 234, .8); backdrop-filter: blur(8px);
  display: grid; place-items: center; cursor: pointer;
}
.music[hidden] { display: none; }
.music svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.music i { display: none; }
.music.is-playing svg { display: none; }
.music.is-playing { grid-auto-flow: column; gap: 3px; align-content: center; justify-content: center; }
.music.is-playing i { display: block; width: 2px; height: 14px; background: var(--gold); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.music.is-playing i:nth-child(3) { animation-delay: -.3s; }
.music.is-playing i:nth-child(4) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ───────── 1 · Hero ───────── */
.hero { position: relative; height: 100svh; overflow: hidden; }
.stage { position: absolute; inset: 0; overflow: hidden; }
.l { position: absolute; will-change: transform; }
.l-bg { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 40%; }
.stage picture { display: contents; }
.l-glow {
  position: absolute; left: 50%; top: 31%; width: 90%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 238, 200, .7), rgba(255, 238, 200, 0) 60%);
  mix-blend-mode: screen; pointer-events: none;
  animation: glow 6s ease-in-out infinite;
}
@keyframes glow { 50% { opacity: .55; transform: translate(-50%, -50%) scale(1.06); } }
.l-arch { left: 0; right: 0; margin: 0 auto; bottom: 4%; width: min(98vw, 46svh); max-width: none; transform-origin: 50% 70%; }
.l-couple { left: 0; right: 0; margin: 0 auto; bottom: 2.5%; height: 36%; width: auto; max-width: none; transform-origin: 50% 100%; filter: drop-shadow(0 18px 18px rgba(91, 70, 54, .18)); }
.hero-copy {
  position: absolute; left: 0; right: 0; top: 5.5svh;
  text-align: center; padding: 0 20px;
  text-shadow: 0 1px 18px rgba(255, 248, 235, .9);
}
.hero-pre { color: var(--ink); }
.hero-names {
  font-family: var(--script); font-weight: 400;
  font-size: min(15.5vw, 8.6svh, 112px);
  line-height: .9;
  margin: 10px 0 4px;
  display: flex; flex-direction: column; align-items: center;
}
.hero-names .amp { font-family: var(--serif); font-style: italic; font-size: .42em; color: var(--gold); margin: .02em 0 .06em; }
.hero-sub { font-style: italic; font-size: 1.05em; }
.hero-date { font-family: var(--sans); font-weight: 300; letter-spacing: .4em; font-size: 13px; margin-top: 10px; }
.l-flower { position: absolute; z-index: 3; pointer-events: none; width: clamp(220px, 60vw, 560px); height: auto; max-width: none; }
.l-flower--tl { left: -14%; top: -10%; }
.l-flower--br { right: -14%; bottom: -10%; scale: -1 -1; }
.scroll-cue {
  position: absolute; z-index: 4; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 9px; letter-spacing: .4em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 8px rgba(91, 70, 54, .5);
}
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(#fff, transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ───────── 2 · Verse ───────── */
.verse { min-height: 100svh; display: grid; place-items: center; padding: 0 var(--gutter); text-align: center; }
.verse-inner { max-width: 760px; }
.cross { width: 22px; height: 33px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; margin: 0 auto 28px; }
.verse-text { font-style: italic; font-size: clamp(30px, 6.4vw, 58px); line-height: 1.22; color: var(--ink); }
.verse-text .w { opacity: .14; transition: none; }
.verse-ref { margin-top: 28px; }

/* ───────── 3 · Story ───────── */
.story { position: relative; padding: 18svh 0 14svh; }
.story-thread { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.story-thread .t-glow { fill: none; stroke: rgba(217, 194, 154, .4); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.story-thread .t-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.story-thread .t-ghost { fill: none; stroke: rgba(184, 151, 90, .14); stroke-width: 1; stroke-dasharray: 2 6; }
.chapter {
  position: relative; z-index: 1;
  display: grid; gap: 28px; align-items: center;
  padding: 14svh var(--gutter) 0;
  max-width: 1080px; margin: 0 auto;
}
@media (min-width: 820px) {
  .chapter { grid-template-columns: 1.1fr 1fr; gap: 72px; }
  .chapter--r .print { order: 2; }
}
.print {
  background: #fffdf8;
  padding: 12px 12px 46px;
  box-shadow: 0 1px 2px rgba(91, 70, 54, .12), 0 24px 50px -18px rgba(91, 70, 54, .35);
  width: min(86%, 440px);
  justify-self: center;
}
.print--l { rotate: -2.2deg; }
.print--r { rotate: 1.8deg; }
.print--wide { width: min(94%, 560px); }
.print-img { overflow: hidden; aspect-ratio: 4 / 5; }
.print--wide .print-img { aspect-ratio: 3 / 2; }
.print-img img { width: 100%; height: 118%; object-fit: cover; will-change: transform, filter; }
.chapter-copy { text-align: center; max-width: 420px; justify-self: center; }
.numeral { font-size: 15px; letter-spacing: .3em; color: var(--gold); }
.chapter-copy .script { font-size: clamp(40px, 8vw, 70px); margin: 4px 0 10px; }
.chapter-copy p:last-child { color: var(--ink-soft); }
.story-end { text-align: center; font-size: clamp(24px, 5vw, 38px); padding: 14svh var(--gutter) 0; }
.story-end em { color: var(--gold); }

/* ───────── 4 · Families ───────── */
.families { padding: 14svh 0; text-align: center; }
.fam-grid { display: grid; gap: 30px; justify-content: center; margin-top: 48px; padding: 0 var(--gutter); }
@media (min-width: 820px) {
  .fam-grid { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 48px; }
  .fam .script { white-space: nowrap; font-size: clamp(40px, 4.6vw, 64px); }
}
.fam .script { font-size: clamp(44px, 8vw, 64px); margin: 6px 0 8px; }
.fam-of { font-style: italic; color: var(--ink-soft); }
.fam-parents { font-size: 1.1em; }
.fam-parents span { color: var(--gold); }
.fam-divider svg { width: 18px; height: 27px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; }
.memory { margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 18px; font-style: italic; color: var(--ink-soft); padding: 0 var(--gutter); }
.candles { position: relative; width: min(56vw, 250px); }
.candles img { width: 100%; animation: breath 5s ease-in-out infinite; }
.candles .glow {
  position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 214, 140, .5), rgba(255, 200, 120, .16) 38%, rgba(255, 200, 120, 0) 68%);
  animation: flick 2.6s ease-in-out infinite;
}
.candles .g1 { left: 45.7%; top: 9.6%; }
.candles .g2 { left: 33.2%; top: 33%; width: 46%; animation-duration: 3.1s; animation-delay: -1.2s; }
.candles .g3 { left: 62.5%; top: 23.6%; width: 50%; animation-duration: 2.2s; animation-delay: -.6s; }
@keyframes flick { 0%, 100% { opacity: .9; scale: 1; } 20% { opacity: .65; scale: .96; } 45% { opacity: 1; scale: 1.05; } 70% { opacity: .75; scale: .98; } }
@keyframes breath { 50% { filter: brightness(1.04); } }

/* ───────── 5 · Date ───────── */
.date { padding: 14svh 0; text-align: center; }
.cal { width: min(88vw, 420px); margin: 36px auto 0; }
.cal-month { font-family: var(--sans); font-weight: 300; letter-spacing: .32em; text-transform: uppercase; font-size: 15px; margin-bottom: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 14px; font-size: 18px; }
.cal-grid .dow { font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.cal-grid .d { position: relative; }
.cal-grid .d--15 { color: var(--ink); font-weight: 500; }
.cal-grid .d--15 svg { position: absolute; left: 50%; top: 50%; width: 58px; height: 46px; transform: translate(-50%, -52%); overflow: visible; }
.cal-grid .d--15 path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.date-line { margin-top: 36px; font-size: 1.15em; }
.countdown { display: flex; justify-content: center; gap: clamp(14px, 5vw, 40px); margin-top: 26px; }
.countdown b { display: block; font-weight: 400; font-size: clamp(34px, 8vw, 54px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-family: var(--sans); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }

/* ───────── 6 · Church ───────── */
.church { position: relative; height: 100svh; overflow: hidden; background: #F4E7D2; }
.church-stage { position: absolute; inset: 0; }
.ch-inside { position: absolute; inset: 0; will-change: transform; }
.ch-in { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ch-world { position: absolute; inset: 0; will-change: transform; }
.ch-wide { position: absolute; max-width: none; display: none; }
.ch-front { position: absolute; }
.ch-facade { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.ch-doorway { position: absolute; left: 39.298%; top: 43.436%; width: 20.89%; height: 36.13%; perspective: 700px; }
.door { position: absolute; top: 0; height: 100%; width: 50%; max-width: none; will-change: transform; }
.door-l { left: 0; transform-origin: 0 50%; }
.door-r { right: 0; transform-origin: 100% 50%; }
@media (min-aspect-ratio: 1/1) {
  .ch-wide { display: block; }
  .ch-front { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
}
.ch-copy-a { position: absolute; left: 0; right: 0; bottom: 0; padding: 16svh 0 7svh; text-align: center; background: linear-gradient(rgba(247, 243, 234, 0), rgba(247, 243, 234, .92) 55%); }
.ch-copy-a .script { font-size: clamp(56px, 12vw, 104px); }
.ch-copy-a .label { color: var(--ink); }
.ch-card, .venue-card {
  background: rgba(250, 246, 238, .88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 151, 90, .35);
  padding: 30px 28px;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(91, 70, 54, .45);
}
.ch-card { position: absolute; left: 0; right: 0; margin: 0 auto; bottom: 8svh; width: min(88vw, 420px); transform-origin: 50% 50%; will-change: transform; }
.ch-card h3, .venue-card h3 { font-weight: 500; font-size: clamp(26px, 5vw, 34px); margin: 8px 0 4px; }
.ch-time { margin-top: 12px; font-style: italic; }

/* ───────── 7 · Events ───────── */
.events { padding: 16svh 0 10svh; }
.day-tag { text-align: center; margin: 12svh 0 30px; font-size: clamp(26px, 5vw, 34px); }
.day-tag span { display: block; font-family: var(--sans); font-weight: 300; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.ev {
  position: relative; overflow: hidden;
  width: min(90vw, 620px); margin: 0 auto 26px;
  border: 1px solid rgba(184, 151, 90, .35);
  background: rgba(255, 253, 248, .7);
  text-align: center;
  padding: 34px 26px;
}
.ev h3 { font-weight: 500; font-size: clamp(28px, 6vw, 38px); line-height: 1.15; margin: 6px 0; }
.ev h3 em { font-weight: 400; color: var(--ink-soft); font-size: .7em; }
.ev-time { font-family: var(--sans); font-weight: 300; font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.ev--roldi { background: linear-gradient(180deg, rgba(255, 244, 205, .9), rgba(255, 252, 240, .85)); padding-top: 0; }
.ev-art { width: 88%; margin: 0 auto 14px; }
.dress { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: .95em; }
.dress .label { width: 100%; margin-bottom: 4px; }
.sw { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(91, 70, 54, .2); }
.sw--y { background: #F2C230; }
.sw--w { background: #fff; margin-left: 10px; }
.dress .or { font-style: italic; color: var(--ink-soft); margin-left: 6px; }
.ev--sangeet { background: radial-gradient(ellipse at 50% 30%, #4A3F5C, #2B2B40 70%); color: #F4EBDD; border-color: rgba(217, 194, 154, .4); padding-top: 10px; }
.ev--sangeet .ev-time { color: var(--gold-soft); }
.ev--reception { color: #fff; min-height: 380px; display: grid; align-items: end; padding: 0; border: 0; }
.ev-bg { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }
.ev--reception .ev-body { position: relative; padding: 90px 24px 30px; background: linear-gradient(transparent, rgba(30, 30, 45, .75)); }
.ev--reception .ev-time { color: var(--gold-soft); }
.venue { position: relative; margin: 14svh auto 0; width: min(100vw, 900px); }
.venue-img { overflow: hidden; height: 78svh; }
.venue-img img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 65%; }
.venue-card { position: relative; width: min(88vw, 440px); margin: -90px auto 0; }

/* ───────── 8 · Lifetime ───────── */
.life { position: relative; height: 100svh; overflow: hidden; }
.life-stage { position: absolute; inset: 0; }
.life-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; transform-origin: 50% 70%; }
.life-dusk { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(150, 96, 120, .5), rgba(236, 160, 110, .22) 45%, rgba(236, 160, 110, 0) 70%); mix-blend-mode: multiply; opacity: 0; }
.life-copy { position: absolute; left: 0; right: 0; top: 9svh; text-align: center; padding: 0 var(--gutter); }
.life-q { font-style: italic; font-size: clamp(28px, 6vw, 48px); line-height: 1.25; text-shadow: 0 1px 20px rgba(255, 248, 235, .9); }
.life-copy .label { margin-top: 14px; color: var(--ink); }
.life-two { position: absolute; left: 0; right: 0; top: -1svh; font-size: clamp(50px, 12vw, 92px); color: #fff; text-shadow: 0 2px 28px rgba(120, 70, 60, .6); opacity: 0; }

/* ───────── 9 · RSVP ───────── */
.rsvp { padding: 16svh 0 12svh; }
.form { width: min(90vw, 520px); margin: 40px auto 0; display: grid; gap: 26px; }
.field { border: 0; display: grid; gap: 10px; }
.field > span, .field legend { font-family: var(--sans); font-weight: 300; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.field input:not([type]), .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(91, 70, 54, .3);
  padding: 8px 2px; font-size: 1.1em; outline: none; border-radius: 0;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.pill { display: block; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: block; padding: 12px 18px; border: 1px solid rgba(91, 70, 54, .22); border-radius: 999px; text-align: center; transition: all .35s var(--ease); background: rgba(255, 255, 255, .4); }
.pill input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.ifyes { transition: opacity .4s var(--ease); }
.form.is-no .ifyes { opacity: .3; pointer-events: none; }
.stepper { display: flex; align-items: center; gap: 22px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(91, 70, 54, .3); background: transparent; cursor: pointer; font-size: 20px; }
.stepper output { font-size: 1.5em; min-width: 1.5em; text-align: center; }
.form-note { text-align: center; font-style: italic; min-height: 1.5em; color: #9A5B45; }
.field input[type="tel"] { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(91, 70, 54, .3); padding: 8px 2px; font-size: 1.1em; outline: none; border-radius: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn--solid:disabled { opacity: .6; cursor: progress; }
.rsvp-done { width: min(90vw, 520px); margin: 40px auto 0; text-align: center; display: grid; justify-items: center; gap: 6px; }
.rsvp-done[hidden] { display: none; }
.rsvp-done .tick { width: 64px; height: 64px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.rsvp-done .script { font-size: clamp(48px, 10vw, 72px); }
.rsvp-done p { font-style: italic; font-size: 1.15em; max-width: 26em; }
.rsvp-done .btn { margin-top: 14px; }
.gift { text-align: center; margin-top: 12svh; padding: 0 var(--gutter); }
.gift p:last-child { font-size: clamp(24px, 5vw, 34px); font-style: italic; margin-top: 8px; }

/* ───────── 10 · Finale ───────── */
.finale { position: relative; height: 100svh; overflow: hidden; color: #fff; }
.fin-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.fin-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 28, 20, .45), rgba(40, 28, 20, .05) 40%, rgba(40, 28, 20, .55)); }
.fin-copy { position: absolute; left: 0; right: 0; top: 12svh; text-align: center; text-shadow: 0 2px 24px rgba(40, 28, 20, .5); }
.fin-names .amp { color: var(--gold-soft); }
.fin-line { position: absolute; left: 0; right: 0; bottom: 7svh; text-shadow: 0 2px 24px rgba(40, 28, 20, .6); text-align: center; font-family: var(--script); font-size: clamp(44px, 10vw, 80px); }

/* wide screens: keep faces clear of the type */
@media (min-aspect-ratio: 1/1) {
  .l-bg { object-position: 50% 75%; }
  .hero-names { flex-direction: row; align-items: baseline; justify-content: center; gap: .18em; font-size: min(7vw, 12.5svh, 124px); }
  .hero-names .amp { margin: 0; font-size: .42em; }
  .l-flower { width: min(30vw, 46svh, 440px); }
  .l-flower--tl { left: -6%; top: -16%; }
  .l-flower--br { right: -6%; bottom: -16%; }
  .life-img { object-position: 50% 60%; }
  .fin-img { object-position: 50% 18%; }
  .fin-copy { top: 7svh; }
  .fin-names { font-size: min(8vw, 13svh); }
}

@media (prefers-reduced-motion: reduce) {
  .gate-tap, .l-glow, .scroll-cue i, .candles img, .candles .glow { animation: none; }
}
