/* ==========================================================
   Royal Heritage invitation — styles
   ========================================================== */

:root {
  --primary: #1d5287;
  --primary-deep: #1b497e;
  --primary-fg: #f5f9fc;
  --fg: #16263b;
  --text: #2b303b;
  --muted: #495d79;
  --bg: #f0f5f9;
  --cream: #e5edf5;
  --card: #e8f0f7;
  --border: #c1d1e1;
  --gold: #dbb330;
  --bronze: #a07a4a;
  --ivory: #f3e6c8;
  --blush: #f5e6e0;
  --popover: #f2ebdf;
  --popover-border: #e2dacf;
  --danger: #c2413b;

  --shadow-elegant: 0 10px 40px -10px rgba(43, 48, 59, .15);
  --shadow-gold: 0 4px 20px -4px rgba(215, 165, 66, .3);

  --f-script: "Dancing Script", cursive;
  --f-display: "Playfair Display", Georgia, serif;
  --f-body: "Lora", Georgia, serif;
  --f-calli: "Cormorant Garamond", Georgia, serif;
  --f-tag: "Marcellus", Georgia, serif;
  --f-door: "Great Vibes", "Dancing Script", cursive;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

/* Smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

img, svg, canvas, iframe { display: block; max-width: 100%; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.noscript-note {
  padding: 16px; text-align: center; background: var(--cream); color: var(--fg);
}

.icon {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--fill { fill: currentColor; }
.icon--inline { display: inline-block; vertical-align: -2px; color: var(--muted); }

/* Faint cross pattern behind the page */
.bg-pattern {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9a96e' fill-opacity='0.035'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ==========================================================
   Floating music control
   ========================================================== */
.music-toggle {
  position: fixed; z-index: 70;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 6px;
  border: 1px solid rgba(29, 82, 135, .5);
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  transition: background-color .25s, transform .25s;
}
.music-toggle[hidden] { display: none; }
.music-toggle:hover { background: #24609c; }
.music-toggle:active { transform: scale(.94); }
.music-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--primary); }
.music-toggle .icon { font-size: 16px; grid-area: 1 / 1; }
.music-toggle .icon-on { display: none; }
.music-toggle.is-playing .icon-on { display: block; }
.music-toggle.is-playing .icon-off { display: none; }
.music-toggle.is-playing::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid rgba(219, 179, 48, .7);
  animation: musicPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.music-toggle__state {
  position: absolute; right: calc(100% + 8px); top: 50%;
  transform: translate(6px, -50%);
  padding: 4px 10px; border-radius: 999px;
  background: rgba(22, 38, 59, .85); color: #fff;
  font-size: 12px; line-height: 1.4; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.music-toggle.show-state .music-toggle__state { opacity: 1; transform: translate(0, -50%); }

@keyframes musicPulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ==========================================================
   Opening: sunlit wall, bougainvillea and arched door
   ========================================================== */
.intro {
  --dw: min(60vw, 44vh, 440px);           /* doorway width  */
  --dh: calc(var(--dw) * 1.62);            /* doorway height */
  --dy: 3vh;                               /* vertical offset of doorway centre */
  position: fixed; inset: 0; z-index: 50;
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
  transition: opacity .7s ease;
}
.intro.is-fading { opacity: 0; pointer-events: none; }
.intro.is-done { display: none; }

.intro__zoom {
  position: absolute; inset: 0;
  transform-origin: 50% calc(50% + var(--dy) + var(--dh) * .08);
  will-change: transform;
}
.intro.is-zooming .intro__zoom {
  transform: scale(var(--zoom, 6));
  transition: transform 1.6s cubic-bezier(.55, .02, .8, .4);
}

/* The wall has an arch-shaped hole: the real hero scene shows through it */
.intro__wall {
  position: absolute; inset: 0;
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 162' preserveAspectRatio='none'%3E%3Cpath d='M0 163V50A50 50 0 0 1 100 50V163Z'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--arch), linear-gradient(#000, #000);
  -webkit-mask-size: var(--dw) var(--dh), 100% 100%;
  -webkit-mask-position: 50% calc(50% + var(--dy)), 0 0;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-image: var(--arch), linear-gradient(#000, #000);
  mask-size: var(--dw) var(--dh), 100% 100%;
  mask-position: 50% calc(50% + var(--dy)), 0 0;
  mask-repeat: no-repeat;
  mask-composite: exclude;
}
.intro__plaster {
  position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .34 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 90% 70% at 30% 18%, #fdfbf7 0%, #f3efe8 50%, #e5ded3 100%);
}
.intro__shadows {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .16;
  filter: blur(5px);
  transform-origin: 0 0;
  animation: leafSway 7s ease-in-out infinite alternate;
}
@keyframes leafSway {
  from { transform: translate(0, 0) skewX(-6deg); }
  to   { transform: translate(6px, 3px) skewX(-4deg); }
}

.intro__floor {
  position: absolute; left: 0; right: 0; bottom: 0;
  top: calc(50% + var(--dy) + var(--dh) / 2);
  background:
    repeating-linear-gradient(90deg, rgba(110, 80, 50, .1) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(110, 80, 50, .1) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, #d9c6ad 0%, #ccb293 45%, #bea080 100%);
  box-shadow: inset 0 10px 16px -10px rgba(70, 50, 30, .45);
}

.doorway {
  position: absolute; left: 50%; top: calc(50% + var(--dy));
  width: var(--dw); height: var(--dh);
  transform: translate(-50%, -50%);
}
.doorway__molding {
  position: absolute;
  inset: calc(var(--dw) * -.085) calc(var(--dw) * -.085) 0;
  border: calc(var(--dw) * .055) solid #f1ece4;
  border-bottom: 0;
  border-radius: calc(var(--dw) * .585) calc(var(--dw) * .585) 0 0;
  box-shadow:
    0 0 0 1px rgba(150, 128, 98, .22),
    3px 6px 14px rgba(90, 70, 45, .16),
    inset 0 0 0 1px rgba(150, 128, 98, .25);
  pointer-events: none;
}
.doors {
  position: absolute; inset: 0;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  border-radius: calc(var(--dw) / 2) calc(var(--dw) / 2) 0 0;
  overflow: hidden;
  perspective: calc(var(--dw) * 3.2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.doors:focus-visible { outline: 3px solid rgba(255, 255, 255, .95); outline-offset: calc(var(--dw) * .1); }

.door {
  position: absolute; top: 0; bottom: 0; width: 50.4%;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(90deg, #77a7bb 0%, #8dbdd0 30%, #89b9cc 70%, #79a9bd 100%);
  transition: transform 1.9s cubic-bezier(.45, .05, .2, 1), filter 1.9s ease;
  will-change: transform;
}
.door--left {
  left: 0; transform-origin: 0 50%;
  border-top-left-radius: calc(var(--dw) / 2) calc(var(--dw) / 2);
}
.door--right {
  right: 0; transform-origin: 100% 50%;
  border-top-right-radius: calc(var(--dw) / 2) calc(var(--dw) / 2);
}
.door__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.door--right .door__art { transform: scaleX(-1); }
.dp-outer { fill: rgba(30, 80, 100, .07); stroke: #5b8ca2; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.dp-inner { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dp-stile { fill: rgba(25, 65, 85, .3); }
.dp-hinge { fill: #6b6153; }

.door__script {
  position: absolute; top: 35%; width: 200%;
  text-align: center;
  font-family: var(--f-door);
  font-size: calc(var(--dw) * .205);
  line-height: .98;
  color: #1c4a61;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  pointer-events: none;
}
.door--left .door__script { left: 0; }
.door--right .door__script { right: 0; }

.doorway__recess {
  position: absolute; inset: 0;
  border-radius: calc(var(--dw) / 2) calc(var(--dw) / 2) 0 0;
  box-shadow:
    inset 0 0 0 calc(var(--dw) * .014) #ddd3c4,
    inset calc(var(--dw) * .02) calc(var(--dw) * .03) calc(var(--dw) * .06) rgba(60, 42, 25, .35);
  pointer-events: none;
}
.threshold {
  position: absolute; top: 100%; left: -14%; right: -14%;
  height: calc(var(--dw) * .065);
  background: linear-gradient(180deg, #f1ebe2, #d5ccbe);
  border-radius: 2px;
  box-shadow: 0 6px 14px rgba(70, 50, 30, .22);
}

.tap-hint {
  position: absolute; left: 0; right: 0; top: 67%;
  display: flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-display);
  font-size: clamp(14px, calc(var(--dw) * .07), 22px);
  letter-spacing: .04em;
  color: #1c4a61;
  pointer-events: none;
  animation: hintPulse 2.6s ease-in-out infinite;
  transition: opacity .4s;
}
.tap-hint__orn { width: 2.5em; height: .75em; }
.intro.is-opening .tap-hint { opacity: 0; animation: none; }
@keyframes hintPulse { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }

.intro__vines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }

/* Photo opening (config.backgrounds.intro). JS sets the stage/door geometry in px:
   --sl --st --sw --sh (stage = photo scaled to cover the screen), --dl --dt --dw --dh (door), --ar (arch rise),
   --img (photo URL) and --hole (arch-shaped mask). */
/* The door photo is painted straight away (no loading screen); the cut-out door layers sit exactly on top of it.
   Keep these paths in step with config.js backgrounds.intro. */
.intro-photo {
  position: absolute; inset: 0; overflow: hidden;
  background: #efe9df url("../assets/images/door-landscape.jpg") 50% 50% / cover no-repeat;
}
@media (max-aspect-ratio: 85/100) {
  .intro-photo { background-image: url("../assets/images/door-portrait.jpg"); }
}
.intro.is-opening .intro-photo { background: none; }
.intro-photo[hidden] { display: none; }
body.has-intro-photo .intro__zoom { display: none; }
.intro-photo__zoom {
  position: absolute; inset: 0;
  transform-origin: var(--zx, 50%) var(--zy, 50%);
  will-change: transform;
}
.intro.is-zooming .intro-photo__zoom {
  transform: scale(var(--zoom, 6));
  transition: transform 1.6s cubic-bezier(.55, .02, .8, .4);
}
.intro-photo__stage {
  position: absolute; left: var(--sl); top: var(--st); width: var(--sw); height: var(--sh);
  visibility: hidden;
}
.intro-photo.is-ready .intro-photo__stage { visibility: visible; }
.intro-photo__wall {
  position: absolute; inset: 0;
  background: var(--img) 0 0 / 100% 100% no-repeat;
  -webkit-mask-image: var(--hole), linear-gradient(#000, #000);
  -webkit-mask-size: var(--dw) var(--dh), 100% 100%;
  -webkit-mask-position: var(--dl) var(--dt), 0 0;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-image: var(--hole), linear-gradient(#000, #000);
  mask-size: var(--dw) var(--dh), 100% 100%;
  mask-position: var(--dl) var(--dt), 0 0;
  mask-repeat: no-repeat;
  mask-composite: exclude;
}
.intro-photo__leaves, .intro-photo__door {
  position: absolute; left: var(--dl); top: var(--dt); width: var(--dw); height: var(--dh);
  border-radius: calc(var(--dw) / 2) calc(var(--dw) / 2) 0 0 / var(--ar) var(--ar) 0 0;
}
.intro-photo__leaves {
  margin: 0; padding: 0; border: 0;
  background: transparent;
  overflow: hidden;
  perspective: calc(var(--dw) * 3.2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.intro-photo__leaves:focus-visible { outline: 3px solid rgba(255, 255, 255, .95); outline-offset: 6px; }
.intro-photo__door { pointer-events: none; }
.intro-photo__recess {
  position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset calc(var(--dw) * .02) calc(var(--dw) * .03) calc(var(--dw) * .06) rgba(50, 35, 20, .35);
  opacity: 0; transition: opacity 1s ease .3s;
}
.intro.is-opening .intro-photo__recess { opacity: 1; }
.leaf {
  position: absolute; top: 0; bottom: 0; width: 50%;
  overflow: hidden;
  background-image: var(--img);
  background-size: var(--sw) var(--sh);
  background-repeat: no-repeat;
  transition: transform 1.9s cubic-bezier(.45, .05, .2, 1), filter 1.9s ease;
  will-change: transform;
}
.leaf--left {
  left: 0; transform-origin: 0 50%;
  background-position: calc(-1 * var(--dl)) calc(-1 * var(--dt));
}
.leaf--right {
  right: 0; transform-origin: 100% 50%;
  background-position: calc(-1 * (var(--dl) + var(--dw) / 2)) calc(-1 * var(--dt));
}
.leaf .door__script {
  top: 23%;
  color: #fff6e3;
  text-shadow: 0 1px 2px rgba(10, 45, 55, .55), 0 0 16px rgba(10, 45, 55, .35);
}
.intro-photo .tap-hint {
  color: #fff6e3;
  text-shadow: 0 1px 2px rgba(10, 45, 55, .6), 0 0 10px rgba(10, 45, 55, .35);
}
.leaf--left .door__script { left: 0; }
.leaf--right .door__script { right: 0; }
.intro.is-opening .leaf--left  { transform: rotateY(82deg);  filter: brightness(.72); }
.intro.is-opening .leaf--right { transform: rotateY(-82deg); filter: brightness(.72); }

/* Hero photo (config.backgrounds.hero) */
.scene__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.scene__photo[hidden] { display: none; }
body.has-hero-photo .scene > :not(.scene__photo):not(.sprite) { display: none; }
/* blend the photo's floor into the message band below */
body.has-hero-photo .hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: 110px;
  background: linear-gradient(180deg, rgba(92, 86, 80, 0), #5c5650);
  pointer-events: none;
}

/* Video opening (only when config.intro.video is set) */
.intro__videotap { display: none; }
body.has-intro-video .intro__zoom { display: none; }
body.has-intro-video .intro__videotap {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  width: 100%; height: 100%;
  padding: 0 0 16vh; border: 0;
  background: transparent;
  cursor: pointer;
}
.intro__videotap:focus-visible { outline: 3px solid rgba(255, 255, 255, .9); outline-offset: -8px; }
.intro__videohint {
  font-family: var(--f-display); font-size: 18px; letter-spacing: .04em;
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 0 12px rgba(0, 0, 0, .5);
  animation: hintPulse 2.6s ease-in-out infinite;
}
.intro__videohint:empty { display: none; }
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #0f0f0f;
}
.hero__video[hidden] { display: none; }

.intro.is-zooming .intro__shadows { opacity: 0; animation: none; transition: opacity .35s ease; }
.intro.is-opening .door--left  { transform: rotateY(82deg);  filter: brightness(.78); }
.intro.is-opening .door--right { transform: rotateY(-82deg); filter: brightness(.78); }

/* ==========================================================
   Hero: balcony over the lake
   ========================================================== */
main { position: relative; }

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 72px 0 140px;
  background: #8db2cd;
  isolation: isolate;
}
.scene {
  position: absolute; inset: 0; z-index: -2;
  transform: scale(1.14);
  transform-origin: 50% 56%;
  transition: transform 2.8s cubic-bezier(.2, .65, .2, 1);
}
body.is-entering .scene, body.is-open .scene { transform: none; }

.scene__sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #7aa6cb 0%, #a6c6df 26%, #d0e1ed 44%, #e6eef3 52%);
}
.scene__clouds { position: absolute; left: 0; top: 0; width: 100%; height: 36%; }
.cloud { animation: drift 70s linear infinite alternate; }
.cloud--b { animation-duration: 90s; animation-direction: alternate-reverse; }
.cloud--c { animation-duration: 80s; }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(60px); } }

.scene__mountains { position: absolute; left: 0; width: 100%; bottom: 48%; height: 40%; }
.scene__lake {
  position: absolute; left: 0; right: 0; top: 52%; bottom: 0;
  background: linear-gradient(180deg, #b3cfdb 0%, #86adc0 18%, #6593ab 45%, #4f7f9b 100%);
}
.scene__shimmer { position: absolute; left: 0; top: 2%; width: 100%; height: 26%; }
.sh { stroke-width: 1.2; opacity: .15; vector-effect: non-scaling-stroke; animation: shimmer 4.5s ease-in-out infinite; }
.sh2 { animation-delay: -1.5s; }
.sh3 { animation-delay: -3s; }
@keyframes shimmer { 0%, 100% { opacity: .08; } 50% { opacity: .5; } }

.scene__balustrade {
  --bh: clamp(84px, 15vh, 150px);
  position: absolute; left: 0; right: 0; top: 66%; height: var(--bh);
  display: flex; flex-direction: column;
}
.rail--top {
  height: 17%;
  background: linear-gradient(180deg, #f6f2ea 0%, #ddd5c7 65%, #b6ac9c 100%);
  box-shadow: 0 4px 8px rgba(40, 30, 20, .22);
  position: relative; z-index: 1;
}
.balusters {
  flex: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='100' viewBox='0 0 40 100'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23aaa092'/%3E%3Cstop offset='.45' stop-color='%23efe9df'/%3E%3Cstop offset='1' stop-color='%23a39a8b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M13 0H27V5H25C25 12 32 18 32 31C32 44 24 51 22 57C21 61 24 65 26 69C30 77 30 87 28 94H30V100H10V94H12C10 87 10 77 14 69C16 65 19 61 18 57C16 51 8 44 8 31C8 18 15 12 15 5H13Z'/%3E%3C/svg%3E") repeat-x 0 0 / auto 100%;
}
.rail--base { height: 14%; background: linear-gradient(180deg, #e8e2d7, #c3baab); }

.scene__floor {
  position: absolute; left: 0; right: 0; bottom: 0;
  top: calc(66% + clamp(84px, 15vh, 150px));
  background:
    repeating-linear-gradient(45deg, rgba(90, 78, 66, .09) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(-45deg, rgba(90, 78, 66, .09) 0 1px, transparent 1px 38px),
    linear-gradient(180deg, #e6ddd1 0%, #d8ccbe 45%, #ccbfb2 100%);
}

.scene__urn {
  position: absolute;
  width: clamp(118px, 23vw, 280px);
  bottom: calc(34% - clamp(84px, 15vh, 150px) - 3%);
}
.scene__urn svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 8px 10px rgba(30, 20, 10, .25)); }
.scene__urn--left { left: max(-28px, -3vw); }
.scene__urn--right { right: max(-28px, -3vw); }
.scene__urn--right svg { transform: scaleX(-1); }

.scene__window {
  position: absolute; top: 0; bottom: 0;
  width: clamp(22px, 5vw, 78px);
  border: clamp(4px, .6vw, 8px) solid #f4f0e8;
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(25% - 3px), #f4f0e8 calc(25% - 3px) 25%),
    linear-gradient(160deg, rgba(255, 255, 255, .35), rgba(200, 220, 235, .12) 60%, rgba(255, 255, 255, .25));
  box-shadow: 0 0 18px rgba(0, 0, 0, .18);
}
.scene__window--left { left: 0; border-left-width: 0; }
.scene__window--right { right: 0; border-right-width: 0; }

.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .15) 45%, rgba(0, 0, 0, .55) 100%);
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.is-open .hero__shade { opacity: 1; }

.hero__content {
  position: relative;
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 24px;
  text-align: center;
}
.hero__heart { margin-bottom: 12px; color: var(--blush); font-size: 26px; }
.hero__tagline {
  margin-bottom: 4px;
  font-family: var(--f-tag);
  font-size: clamp(1.3rem, 1vw + 1.05rem, 2rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .75);
}
.hero__divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0; color: var(--blush); }
.hero__divider span { width: 64px; height: 1px; background: rgba(245, 230, 224, .45); }
.hero__divider .icon { font-size: 10px; }

.hero__names { margin: 0; font-weight: 400; display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero__names:focus { outline: none; }
.hero__name {
  display: block; max-width: 100%;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(2.9rem, min(6vw + 2.6rem, 10vh + 1.2rem), 7.5rem);
  line-height: 1.08;
  white-space: nowrap;
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .75);
  padding: 0 .08em;
}
.hero__name.is-wrapped { white-space: normal; }
.hero__sub {
  display: block; max-width: 28rem;
  margin: 4px 0 12px;
  padding: 0 16px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(.9rem, .5vw + .78rem, 1.15rem);
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .75), 0 1px 4px rgba(0, 0, 0, .5);
}
.hero__amp {
  display: block;
  margin: 2px 0 6px;
  font-family: var(--f-script);
  font-size: clamp(2rem, 3vw + 1.3rem, 3.3rem);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 72px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  translate: -50% 0;
  text-decoration: none;
  color: var(--blush);
  font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 12px rgba(0, 0, 0, .65);
}
.hero__scroll .icon {
  font-size: 28px; stroke-width: 3.25;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .9)) drop-shadow(0 0 6px rgba(0, 0, 0, .6));
  animation: bob 1.6s ease-in-out infinite;
}
.hero__scroll:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 6px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Hero entrance (after the doors open) */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}
.hero__heart.hero-anim { transform: scale(.8); }
.hero__tagline.hero-anim { transform: translateY(14px); }
.hero__amp.hero-anim, .hero__divider.hero-anim, .hero__scroll.hero-anim { transform: none; }
body.is-open .hero-anim { opacity: 1; transform: none; }
body.is-open .hero__amp.hero-anim { opacity: .85; }

/* ==========================================================
   Message band
   ========================================================== */
.message {
  position: relative;
  padding: 96px 24px;
  background: linear-gradient(180deg, #5c5650 0%, #5c5650 18%, #a0a1a2 55%, #e5edf5 100%);
  overflow: hidden;
}
.message__inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.message__orn { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--bronze); }
.message__orn:first-child { margin-bottom: 32px; }
.message__orn:last-child { margin-top: 32px; }
.message__orn span { width: 80px; height: 1px; background: linear-gradient(to right, transparent, var(--bronze)); }
.message__orn span:last-child { background: linear-gradient(to left, transparent, var(--bronze)); }
.message__orn .icon { font-size: 14px; }
.message__text {
  font-family: var(--f-calli);
  font-style: italic;
  font-size: clamp(1.5rem, 1vw + 1.25rem, 1.875rem);
  line-height: 1.625;
  color: var(--ivory);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* ==========================================================
   Generic section
   ========================================================== */
.section {
  position: relative;
  padding: 64px 24px;
  overflow: hidden;
  text-align: center;
}
.section--cream { background: var(--cream); }
.section__icon { display: block; margin: 0 auto 12px; font-size: 28px; color: var(--primary); }
.section__title {
  margin: 0 0 8px;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.15;
  color: var(--primary);
}
.section__text {
  max-width: 28rem; margin: 0 auto;
  color: var(--muted);
  line-height: 1.625;
  white-space: pre-line;
  overflow-wrap: break-word;
}
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0; color: var(--primary); }
.divider span { width: 64px; height: 1px; background: rgba(29, 82, 135, .3); }
.divider .icon { font-size: 10px; opacity: .5; }
.divider--top { margin-top: 0; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================
   Scratch to reveal
   ========================================================== */
#save-the-date { overflow: visible; z-index: 5; }
.scratch__title { display: grid; justify-items: center; color: var(--primary-deep); margin-bottom: 12px; }
.scratch__title > span {
  grid-area: 1 / 1;
  transition: opacity .6s ease, transform .6s var(--ease-out);
  animation: breathe 3.4s ease-in-out infinite;
}
.scratch__title-b { opacity: 0; transform: translateY(10px); }
#save-the-date.is-revealed .scratch__title-a { opacity: 0; transform: translateY(-10px); }
#save-the-date.is-revealed .scratch__title-b { opacity: 1; transform: none; }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.03; } }

.scratch {
  position: relative;
  width: 100%; max-width: 220px;
  margin: 0 auto;
  aspect-ratio: 13 / 12;
  filter: drop-shadow(0 10px 18px rgba(15, 35, 65, .3));
  -webkit-user-select: none;
  user-select: none;
}
.scratch__clip { position: absolute; inset: 0; clip-path: url(#heart-clip); overflow: hidden; }
.scratch__card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 28px 14%;
  text-align: center;
  background-color: #ecf2f9;
  background-image:
    radial-gradient(rgba(247, 250, 253, .9) 0%, rgba(212, 224, 237, .5) 70%, rgba(193, 208, 225, .6) 100%),
    radial-gradient(circle at 1px 1px, rgba(29, 58, 99, .1) 1px, transparent 1.5px),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .04) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .03) 0 1px, transparent 1px 10px);
  background-size: auto, 12px 12px, auto, auto;
}
.scratch__kicker {
  margin-bottom: 4px;
  font-family: var(--f-calli); font-style: italic; font-size: 20px;
  color: #295c8e;
  opacity: 0; transform: scale(.9);
  transition: opacity .6s ease .25s, transform .6s var(--ease-out) .25s;
}
#save-the-date.is-revealed .scratch__kicker { opacity: 1; transform: none; }
.scratch__date { font-family: var(--f-display); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--fg); overflow-wrap: anywhere; }
.scratch__weekday { font-family: var(--f-calli); font-size: 15px; color: #23538b; }
.scratch__weekday:empty { display: none; }
.scratch__time { margin-top: 4px; font-size: 11px; color: #404f64; }
.scratch__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  cursor: pointer; touch-action: none;
  transition: opacity .8s ease;
}
#save-the-date.is-revealed .scratch__canvas { opacity: 0; pointer-events: none; }
.scratch__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(rgba(0, 0, 0, 0) 78%, rgba(20, 8, 0, .5) 92%, rgba(10, 4, 0, .8) 100%);
  mix-blend-mode: multiply;
}
.scratch__gloss {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(at 38% 22%, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 32%);
}
.scratch__outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scratch__outline path { fill: none; stroke: hsl(212, 60%, 32%); stroke-width: 1.2; opacity: .7; }
.scratch__keyreveal {
  position: absolute; left: 50%; bottom: -14px;
  translate: -50% 0;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff;
  font-size: 13px; color: var(--primary);
  opacity: 0; pointer-events: none;
}
.scratch__keyreveal:focus-visible { opacity: 1; pointer-events: auto; outline: 2px solid var(--primary); outline-offset: 2px; }

/* Save the date */
.cal { position: relative; margin-top: 32px; display: flex; flex-direction: column; align-items: center; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border: 0; border-radius: 999px;
  background: var(--primary); color: var(--primary-fg);
  font-family: var(--f-body); font-size: 12px; font-weight: 600; line-height: 1.4;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, background-color .3s;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .5); background: #22609c; }
.btn-pill:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn-pill .icon { font-size: 16px; }

.cal__menu {
  position: absolute; z-index: 30;
  top: calc(100% + 12px); left: 50%;
  width: 288px; max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  border: 1px solid var(--popover-border);
  border-radius: 16px;
  background: rgba(242, 235, 223, .96);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow-elegant);
  overflow: hidden;
  text-align: left;
  animation: menuIn .22s var(--ease-out);
}
.cal__menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translate(-50%, -6px) scale(.97); } }
.cal__item {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border: 0; border-top: 1px solid var(--popover-border);
  background: transparent;
  font-size: 14px; color: var(--text); text-align: left;
  cursor: pointer;
  transition: background-color .2s;
}
.cal__item:first-child { border-top: 0; }
.cal__item:hover:not([aria-disabled="true"]), .cal__item:focus-visible { background: rgba(29, 82, 135, .07); outline: none; }
.cal__item[aria-disabled="true"] { color: rgba(43, 48, 59, .42); cursor: not-allowed; }
.cal__note { padding: 10px 16px 12px; border-top: 1px solid var(--popover-border); font-size: 12px; color: var(--muted); text-align: center; }

/* ==========================================================
   Monogram card / photo carousel
   ========================================================== */
.gallery {
  position: relative;
  width: 100%; max-width: 448px;
  margin: 0 auto;
  aspect-ratio: 1.5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-elegant);
  user-select: none;
}
.mono {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 4l2 6 6 2-6 2-2 6-2-6-6-2 6-2z' fill='%23dbb330' fill-opacity='.07'/%3E%3C/svg%3E"),
    radial-gradient(120% 95% at 50% 38%, #2c67a4 0%, #1d5287 45%, #123760 100%);
  color: var(--ivory);
}
.mono::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 7s ease-in-out 1.5s infinite;
}
@keyframes sheen { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.mono__frame { position: absolute; inset: 12px; border: 1px solid rgba(219, 179, 48, .55); border-radius: 6px; pointer-events: none; }
.mono__frame::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(219, 179, 48, .22); border-radius: 3px; }
.mono__corner { position: absolute; width: 46px; height: 46px; color: var(--gold); opacity: .85; }
.mono__corner--tl { top: 6px; left: 6px; }
.mono__corner--tr { top: 6px; right: 6px; transform: scaleX(-1); }
.mono__corner--bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.mono__corner--br { bottom: 6px; right: 6px; transform: scale(-1, -1); }
.mono__center { position: relative; text-align: center; padding: 0 40px; }
.mono__letters { display: flex; align-items: center; justify-content: center; line-height: 1; }
.mono__letter {
  font-family: var(--f-script); font-weight: 600;
  font-size: clamp(52px, 15vw, 78px);
  background: linear-gradient(180deg, #f8e59c 0%, #dbb330 55%, #a8801c 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
  padding: 0 .06em;
}
.mono__amp { margin: 0 6px; font-family: var(--f-calli); font-style: italic; font-size: clamp(22px, 6vw, 30px); color: rgba(243, 230, 200, .8); }
.mono__names { margin-top: 6px; font-family: var(--f-tag); font-size: clamp(9px, 2.6vw, 11px); letter-spacing: .22em; text-transform: uppercase; color: rgba(243, 230, 200, .88); }
.mono__rule { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 8px; color: var(--gold); }
.mono__rule span { width: 40px; height: 1px; background: rgba(219, 179, 48, .5); }
.mono__rule .icon { font-size: 8px; }
.mono__date { font-family: var(--f-calli); font-style: italic; font-size: 15px; color: rgba(243, 230, 200, .85); }

.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; background: var(--card); }
.slide.is-active { opacity: 1; }
.slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); filter: blur(24px); opacity: .7; }
.slide__img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.gallery__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(240, 245, 249, .3), transparent); pointer-events: none; }
.gallery__dots { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: flex; gap: 8px; }
.gallery__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(22, 38, 59, .3); cursor: pointer; transition: width .3s, background-color .3s; }
.gallery__dot.is-active { width: 16px; background: var(--primary); }

/* ==========================================================
   Countdown
   ========================================================== */
.countdown { display: flex; justify-content: center; gap: 8px; }
.countdown__unit { text-align: center; }
.countdown__box {
  width: 56px; margin-bottom: 8px;
  padding: 8px 4px;
  border: 1px solid rgba(29, 82, 135, .2);
  border-radius: 8px;
  background: rgba(29, 82, 135, .1);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.countdown__num {
  display: block;
  font-family: var(--f-display); font-weight: 700;
  font-size: 1.5rem; line-height: 1.33;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.countdown__num.tick { animation: tick .5s var(--ease-out); }
@keyframes tick { from { opacity: 0; transform: translateY(-8px); } }
.countdown__label { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.countdown__note { margin-top: 20px; font-family: var(--f-calli); font-style: italic; font-size: 17px; color: var(--muted); }

/* ==========================================================
   Timeline
   ========================================================== */
.timeline { max-width: 28rem; margin: 0 auto; display: grid; gap: 32px; text-align: left; }
.tl-day__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tl-day__head span { flex: 1; height: 1px; background: rgba(29, 82, 135, .3); }
.tl-day__label {
  font-family: var(--f-display); font-weight: 600; font-size: 14px;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--primary); text-align: center;
}
.tl-items { display: grid; gap: 16px; }
.tl-item { display: flex; gap: 16px; align-items: baseline; }
.tl-item__time { width: 6.25rem; flex-shrink: 0; text-align: right; font-size: 14px; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; line-height: 1.35; }
.tl-item__body { flex: 1; min-width: 0; padding-left: 16px; border-left: 1px solid rgba(29, 82, 135, .3); }
.tl-item__title { font-family: var(--f-display); font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--primary); overflow-wrap: anywhere; }
.tl-item__note { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ==========================================================
   Venue
   ========================================================== */
.venue__info { margin-bottom: 32px; }
.venue__name { margin-bottom: 8px; font-family: var(--f-display); font-weight: 600; font-size: 20px; color: var(--fg); overflow-wrap: anywhere; }
.venue__address { color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.venue__map {
  max-width: 42rem; margin: 0 auto 32px;
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-elegant);
}
.venue__map iframe { width: 100%; height: 300px; border: 0; }
.map-ph {
  position: relative; height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%23d2deea' stroke-linecap='round'%3E%3Cpath stroke-width='14' d='M-20 210 C120 180 200 240 330 200 S520 120 640 150'/%3E%3Cpath stroke-width='9' d='M180 -20 C200 80 160 160 220 320'/%3E%3Cpath stroke-width='9' d='M430 -20 C410 90 470 170 440 320'/%3E%3Cpath stroke-width='4' d='M-20 80 H640 M-20 130 C150 120 300 140 640 110 M60 -20 V320 M300 -20 C310 100 290 200 300 320 M540 -20 V320'/%3E%3C/g%3E%3Cg fill='%23dbe7df'%3E%3Cellipse cx='110' cy='40' rx='60' ry='26'/%3E%3Cellipse cx='520' cy='250' rx='70' ry='30'/%3E%3C/g%3E%3C/svg%3E") center / cover,
    var(--card);
  color: var(--muted);
}
.map-ph__pin {
  position: relative;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--primary);
  box-shadow: 0 6px 18px -6px rgba(29, 82, 135, .45);
}
.map-ph__pin .icon { font-size: 26px; }
.map-ph__pin::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(29, 82, 135, .35);
  animation: musicPulse 2.6s ease-out infinite;
}
.map-ph__text { max-width: 20rem; font-family: var(--f-calli); font-style: italic; font-size: 18px; line-height: 1.4; background: rgba(232, 240, 247, .85); padding: 2px 10px; border-radius: 6px; }
.venue__actions { display: flex; justify-content: center; }
.venue__actions:empty { display: none; }

/* ==========================================================
   RSVP
   ========================================================== */
.corner { position: absolute; width: 64px; height: 64px; color: var(--primary); opacity: .2; pointer-events: none; }
.corner--bl { left: 16px; bottom: 16px; transform: scaleY(-1); }
.corner--br { right: 16px; bottom: 16px; transform: scale(-1, -1); }
.corner--tl { left: 8px; top: 8px; width: 48px; height: 48px; opacity: .15; }
.corner--tr { right: 8px; top: 8px; width: 48px; height: 48px; opacity: .15; transform: scaleX(-1); }

.rsvp__form { max-width: 28rem; margin: 0 auto; display: grid; gap: 16px; text-align: left; }
.field { display: grid; gap: 8px; }
.field label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1; color: var(--fg); }
.field label .icon { font-size: 14px; }
.req { margin-left: -6px; color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--fg);
  font-size: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transition: box-shadow .2s, border-color .2s;
}
.field input, .field select { height: 42px; }
.field textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.field ::placeholder { color: var(--muted); opacity: .85; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(29, 82, 135, .6);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
.select select:invalid { color: var(--muted); }
.select .icon { position: absolute; right: 12px; top: 50%; translate: 0 -50%; font-size: 16px; opacity: .5; pointer-events: none; }

.rsvp__demo {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px;
  border: 1px dashed rgba(29, 82, 135, .35);
  border-radius: 8px;
  background: rgba(29, 82, 135, .06);
  font-size: 13px; line-height: 1.5; color: var(--muted);
}
.rsvp__demo[hidden] { display: none; }
.rsvp__demo .icon { font-size: 16px; margin-top: 2px; color: var(--primary); }
.rsvp__demo strong { color: var(--fg); font-weight: 600; }

.btn-block {
  width: 100%; height: 42px;
  border: 0; border-radius: 6px;
  background: var(--primary); color: var(--primary-fg);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.btn-block:hover { opacity: .92; }
.btn-block:active { transform: translateY(1px); }
.btn-block:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn-block:disabled { opacity: .6; cursor: progress; }

.rsvp__status { font-size: 14px; line-height: 1.5; text-align: center; color: var(--fg); }
.rsvp__status:empty { display: none; }
.rsvp__status.is-error { color: var(--danger); }
.rsvp__status.is-note { padding: 10px 12px; border-radius: 8px; background: rgba(219, 179, 48, .12); color: var(--fg); }
.rsvp__status.is-success { color: #1f6b3a; }
.rsvp__contact { margin-top: 24px; font-size: 14px; color: var(--muted); }
.rsvp__contact a { color: var(--primary); font-weight: 600; text-decoration: none; }
.rsvp__contact a:hover { text-decoration: underline; }
.rsvp { padding-bottom: 96px; }

/* ==========================================================
   Closing & footer
   ========================================================== */
.closing__inner { max-width: 32rem; margin: 0 auto; }
.closing__wave { width: 100%; height: auto; aspect-ratio: 10 / 1; color: var(--primary); margin-bottom: 32px; }
.closing__wave--flip { transform: rotate(180deg); margin: 32px 0 0; }
.closing__text { margin-bottom: 16px; font-family: var(--f-script); font-size: 2.25rem; line-height: 1.5; color: var(--primary); }
.closing__names { font-family: var(--f-script); font-size: 1.5rem; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }

.footer {
  position: relative;
  padding: 40px 36px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer__names { font-family: var(--f-script); font-size: 1.25rem; color: var(--primary); overflow-wrap: anywhere; }

/* ==========================================================
   Confetti
   ========================================================== */
.confetti { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -40px; display: block; will-change: transform, opacity; }

/* ==========================================================
   Larger screens
   ========================================================== */
@media (min-width: 640px) {
  .scratch { max-width: 260px; }
  .countdown { gap: 16px; }
  .countdown__box { width: 80px; padding: 12px; }
  .countdown__num { font-size: 2.25rem; line-height: 1.12; }
  .countdown__label { font-size: 12px; }
}

@media (min-width: 768px) {
  .message { padding: 128px 24px; }
  .section { padding: 80px 24px; }
  .section__title { font-size: 3rem; }
  .btn-pill { font-size: 14px; }
  .countdown { gap: 24px; }
  .countdown__box { width: 96px; padding: 16px 12px; }
  .countdown__num { font-size: 3rem; line-height: 1; }
  .countdown__label { font-size: 14px; }
  .tl-day__label { font-size: 16px; }
  .field input, .field select, .field textarea { font-size: 14px; }
  .closing__text { font-size: 3rem; }
  .footer { padding-left: 48px; padding-right: 48px; }
  .hero__scroll { bottom: 64px; }
}

@media (max-height: 640px) and (max-width: 767px) {
  .hero { padding-bottom: 110px; }
  .hero__scroll { bottom: 40px; }
}

/* ==========================================================
   Reduced motion
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal, .hero-anim, .scene { transform: none !important; }
  .reveal { transition: opacity .4s ease; }
  .hero-anim { transition: opacity .6s ease; transition-delay: 0s; }
  .door, .leaf, .intro__zoom, .intro-photo__zoom { transition: none !important; }
  .mono::after { display: none; }
}
