/* Rayven Chesca XVIII — "Premiere Night" invitation styles, v1.2 */

/* ---------- Fonts (bundled, SIL OFL 1.1) ---------- */
@font-face { font-family: Premiere; src: url("./serif.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: Premiere; src: url("./serif-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: Premiere; src: url("./serif-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Premiere; src: url("./serif-medium-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: Marquee; src: url("./caps.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Marquee; src: url("./caps-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Vibes; src: url("./script.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;
  --ink: #12060a;
  --night: #1a080d;
  --velvet: #2c0b12;
  --wine: #5e1521;
  --crimson: #8f1d2c;
  --ivory: #fcf2e4;
  --champagne: #f3dcb8;
  --gold: #dcb07a;
  --gold-soft: #e8c592;
  --gold-deep: #a8773f;
  --muted: #d6bba6;
  --paper-ink: #3b131c;
  --paper-wine: #7a2232;
  --line: #dcb07a59;
  --foil: linear-gradient(105deg, #b8834a 0%, #f7deae 18%, #d1a066 34%, #fff3d4 50%, #c48f53 66%, #f3d39f 82%, #b8834a 100%);
  --serif: Premiere, "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --caps: Marquee, Cinzel, "Trajan Pro", Georgia, serif;
  --script: Vibes, "Great Vibes", "Snell Roundhand", cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 300px;
  font: 500 18px/1.6 var(--serif);
  color: var(--ivory); background: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; }
h1:focus, #invitation:focus { outline: none; }
::selection { background: #8f1d2c; color: #fff4e4; }

.wrap { width: min(100% - clamp(40px, 9vw, 150px), 1200px); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only, .screen-reader-text, .cl-honeypot {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 120; top: 14px; left: 14px; padding: 10px 16px; border-radius: 999px;
  background: var(--ivory); color: var(--ink); font: 400 12px var(--caps); letter-spacing: .14em;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.icon {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.icon-sparkle { stroke: none; fill: currentColor; }

/* Gold foil text */
.foil {
  background: var(--foil); background-size: 220% 100%; background-position: 0 50%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-inline: .06em; margin-inline: -.06em;
}
@media (forced-colors: active) { .foil { -webkit-text-fill-color: currentColor; color: CanvasText; background: none; } }

.eyebrow {
  font: 400 12px/1.5 var(--caps); letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-soft);
}

/* Shell ornament from the printed card */
.ornament {
  display: flex; align-items: center; gap: 12px;
  width: clamp(190px, 24vw, 260px); margin-inline: auto; color: var(--gold);
}
.ornament > span { position: relative; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament > span:last-child { background: linear-gradient(-90deg, transparent, currentColor); }
.ornament > span::after {
  content: ""; position: absolute; top: -2.5px; width: 6px; height: 6px;
  background: currentColor; transform: rotate(45deg);
}
.ornament > span:first-child::after { right: 8px; }
.ornament > span:last-child::after { left: 8px; }
.ornament .icon { width: 34px; height: 26px; }

/* ---------- Buttons ---------- */
.button {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: 999px;
  font: 400 12px/1.25 var(--caps); letter-spacing: .22em; text-transform: uppercase; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.button .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button:hover .icon-arrow { transform: translateX(4px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: default; transform: none; opacity: .75; }
.button::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, #ffffff55 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.button:hover::after { transform: translateX(120%); }
.button-gold {
  color: #2b0c12; border-color: #fbe3b6;
  background: linear-gradient(105deg, #d7a668, #f6dba8 40%, #e3b77c 70%, #f3d39e);
  box-shadow: 0 12px 34px #d49a5a2e, inset 0 1px 0 #fff6dd;
}
.button-gold:hover { box-shadow: 0 16px 40px #e6ae6a4d, inset 0 1px 0 #fff6dd; }
.button-velvet {
  color: #ffe9c8; border-color: #e3b882;
  background: radial-gradient(120% 140% at 30% 0%, #a3233a 0%, #6a1222 45%, #3a0912 100%);
  box-shadow: 0 12px 36px #0705068f, inset 0 0 0 4px #e3b88214, inset 0 1px 0 #ffd9a333;
}
.button-velvet:hover { border-color: #ffe0ab; box-shadow: 0 16px 42px #070506a8, 0 0 30px #c2304a40, inset 0 0 0 4px #e3b88224; }
.button-ink { color: #fff3e1; background: linear-gradient(115deg, #7c1c2d, #521220); border-color: #5c1424; }
.button-ink:hover { background: linear-gradient(115deg, #922235, #63162a); }
.button-outline { color: var(--paper-wine); border-color: #9a5b5f; background: transparent; }
.button-outline:hover { background: #7a22320f; border-color: var(--paper-wine); }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 400 12px var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--champagne);
  border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.text-link .icon { width: 16px; height: 16px; }
.text-link:hover { color: #fff; }

/* ---------- Sparkles ---------- */
.sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.sparkles i {
  position: absolute; width: 14px; height: 14px; opacity: 0;
  background: radial-gradient(circle, #fffaf0 0 18%, #f4d39b 40%, #d9a463 70%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle 4.8s ease-in-out infinite;
}
.sparkles i:nth-child(1) { top: 16%; left: 12%; animation-delay: .2s; }
.sparkles i:nth-child(2) { top: 28%; left: 86%; width: 10px; height: 10px; animation-delay: 1.4s; }
.sparkles i:nth-child(3) { top: 64%; left: 7%; width: 9px; height: 9px; animation-delay: 2.5s; }
.sparkles i:nth-child(4) { top: 12%; left: 62%; width: 18px; height: 18px; animation-delay: 3.2s; }
.sparkles i:nth-child(5) { top: 78%; left: 90%; width: 12px; height: 12px; animation-delay: .9s; }
.sparkles i:nth-child(6) { top: 46%; left: 48%; width: 8px; height: 8px; animation-delay: 4s; }
.sparkles i:nth-child(7) { top: 86%; left: 34%; width: 11px; height: 11px; animation-delay: 2s; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  45% { opacity: .95; transform: scale(1) rotate(45deg); }
  60% { opacity: .7; }
}

/* ---------- Curtain opener ---------- */
.curtain { display: none; }
.has-js .curtain {
  display: grid; place-items: center; position: fixed; z-index: 100; isolation: isolate; inset: 0;
  overflow: hidden; background: #12060a; transition: opacity .86s ease;
}
.has-js body:not(.entered) { overflow: hidden; }
.curtain::before {
  content: ""; position: absolute; inset: -30px; z-index: -3;
  background: linear-gradient(0deg, #150509b8, #17060970), url("./curtain.webp") center 57% / cover;
  filter: blur(22px) saturate(1.1); opacity: .55;
}
.curtain-scene {
  width: min(100%, 56.25svh); height: 100%; position: absolute; z-index: -2;
  background: #16090c url("./curtain.webp") center / cover no-repeat;
  box-shadow: 0 0 90px 36px #0a0407c4;
}
.curtain-scene video { height: 100%; object-fit: cover; object-position: center; }
.curtain-shadow {
  position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(ellipse 60% 55% at center 46%, #0a020555 0%, #13050a26 55%, #0d0507b8 100%),
    linear-gradient(0deg, #100308a8, transparent 34%, transparent 70%, #11040866);
  transition: opacity .55s ease;
}
.curtain-glow {
  position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(38% 30% at 50% 40%, #ffcf8a24, transparent 70%);
  animation: glow 6s ease-in-out infinite alternate; transition: opacity .55s ease;
}
@keyframes glow { from { opacity: .55; } to { opacity: 1; } }
.curtain-border {
  position: absolute; pointer-events: none;
  inset: clamp(10px, 2.2vw, 32px); border: 1px solid #e8b87b5e; transition: opacity .5s ease;
}
.curtain-border::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid #e8b87b24;
}
.curtain-border i { position: absolute; width: 12px; height: 12px; border: 1px solid #ebc28d9d; background: #2c100e; transform: rotate(45deg); }
.curtain-border i:nth-child(1) { top: -6px; left: -6px; }
.curtain-border i:nth-child(2) { top: -6px; right: -6px; }
.curtain-border i:nth-child(3) { bottom: -6px; left: -6px; }
.curtain-border i:nth-child(4) { bottom: -6px; right: -6px; }
.curtain-cover {
  position: relative; z-index: 1;
  display: grid; justify-items: center; text-align: center; padding: 0 18px;
  transform: translateY(-2vh); transition: transform .7s ease, opacity .5s ease;
}
.seal {
  width: 64px; height: 64px; display: grid; align-content: center; justify-items: center;
  background: radial-gradient(circle at 40% 30%, #6a1b26, #3a0d15 70%);
  border: 1px solid #e6bf8a; outline: 1px solid #efc99d55; outline-offset: 4px;
  border-radius: 50%; color: #ffe0b6; box-shadow: 0 8px 26px #0008;
}
.seal span:first-child { font: 400 30px/.9 var(--script); margin-top: 4px; }
.seal span:last-child { margin-top: 3px; font: 400 8px/1 var(--caps); letter-spacing: .24em; }
.curtain-kicker { margin-top: 22px; font: 400 11px/1 var(--caps); letter-spacing: .44em; text-transform: uppercase; color: #f3d3a4; text-shadow: 0 2px 12px #000; }
.curtain-title {
  margin: 2px 0 2px; font: italic 300 clamp(88px, 12vw, 168px)/1 var(--serif); letter-spacing: -.05em;
  filter: drop-shadow(0 4px 28px #030104e6);
}
.curtain-title .foil { animation: foil 9s linear infinite; }
.curtain-caption { font: 400 12px/1.9 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: #fbe6c9; text-shadow: 0 2px 14px #000; }
.curtain-cover .ornament { margin-block: 18px 24px; width: 190px; }
.curtain-date { color: #ffe4c4; margin-top: 22px; font: 400 10px/1.4 var(--caps); letter-spacing: .3em; text-transform: uppercase; text-shadow: 0 2px 12px #000; }
.curtain .sparkles { z-index: 0; }
.curtain .sparkles i:nth-child(1) { top: 22%; left: 38%; }
.curtain .sparkles i:nth-child(2) { top: 30%; left: 63%; }
.curtain .sparkles i:nth-child(3) { top: 58%; left: 34%; }
.curtain .sparkles i:nth-child(4) { top: 18%; left: 56%; }
.curtain .sparkles i:nth-child(5) { top: 66%; left: 64%; }
.curtain .sparkles i:nth-child(6) { top: 42%; left: 30%; }
.curtain-controls { position: absolute; z-index: 2; bottom: max(37px, calc(env(safe-area-inset-bottom) + 24px)); right: clamp(28px, 4.7vw, 72px); display: flex; gap: 6px; }
.curtain-controls button {
  border: 1px solid #d3a57770; border-radius: 30px; background: #170a0cdc; color: #fff0dc;
  min-height: 42px; padding: 0 16px; font: 400 10px var(--caps); letter-spacing: .18em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.curtain-controls button:hover { background: #46161c; }
.curtain[data-state="playing"] .curtain-cover, .curtain[data-state="revealing"] .curtain-cover { opacity: 0; transform: translateY(-4vh); pointer-events: none; }
.curtain[data-state="playing"] :is(.curtain-shadow, .curtain-border, .curtain-glow, .sparkles) { opacity: .15; }
.curtain[data-state="revealing"] { opacity: 0; pointer-events: none; }
@keyframes foil { from { background-position: 0 50%; } to { background-position: 220% 50%; } }

/* ---------- Header ---------- */
#invitation { position: relative; background: var(--night); }
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  background: linear-gradient(#12050899, #12050800);
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled {
  background: #14070bd9; border-bottom-color: #dcb07a33;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px #0000004d;
}
.header-wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-seal {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid #dcb07a8c; box-shadow: inset 0 0 0 3px #12060a, inset 0 0 0 4px #dcb07a33;
  color: var(--gold-soft); font: 400 23px/1 var(--script); padding-top: 4px;
}
.brand-name { font: italic 300 30px/1 var(--serif); letter-spacing: -.02em; color: #fff1df; }
.brand small { font: 400 11px var(--caps); letter-spacing: .3em; color: var(--gold); margin-top: 4px; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); }
.site-header nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font: 400 11px var(--caps); letter-spacing: .24em; text-transform: uppercase; color: #f0d8c5;
  transition: color .2s ease;
}
.site-header nav a:not(.nav-rsvp)::after {
  content: ""; position: absolute; left: 0; right: .24em; bottom: 10px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease);
}
.site-header nav a:hover, .site-header nav a.is-active { color: #fff7e7; }
.site-header nav a:hover::after, .site-header nav a.is-active::after { transform: scaleX(1); }
.site-header nav .nav-rsvp {
  min-height: 38px; padding: 0 18px 0 20px; border: 1px solid #e8c592a6; border-radius: 999px; color: #fbdcae;
  transition: background-color .25s ease, color .25s ease;
}
.site-header nav .nav-rsvp:hover, .site-header nav .nav-rsvp.is-active { background: var(--gold-soft); color: #2b0c12; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: max(100svh, 760px);
  display: grid; align-items: center;
  padding-block: 112px 84px;
}
.hero-velvet {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(42% 52% at 76% 46%, #b2304566 0%, #6b162400 70%),
    radial-gradient(30% 34% at 76% 30%, #ffd59a26 0%, transparent 72%),
    radial-gradient(70% 60% at 10% 100%, #3b0c1599, transparent 70%),
    repeating-linear-gradient(90deg, #0000 0, #00000038 3.2%, #ffffff07 6.4%, #0000 9.6%),
    linear-gradient(180deg, #170609 0%, #2a0a11 55%, #170609 100%);
}
.hero-velvet::before {
  content: ""; position: absolute; inset: 0;
  background:
    url("./velvet-fold.webp") left -40px top -20px / clamp(260px, 34vw, 560px) auto no-repeat,
    url("./velvet-hem.webp") 50% 100% / max(100%, 900px) auto no-repeat;
  opacity: .5; filter: blur(1px);
}
.hero-velvet::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--night) 0%, transparent 18%);
}
.hero .sparkles { z-index: -1; }
.hero-grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  grid-template-areas: "copy portrait";
  gap: clamp(36px, 5vw, 84px);
}
.hero-copy { grid-area: copy; position: relative; z-index: 1; }
.hero-portrait { grid-area: portrait; justify-self: center; position: relative; width: min(100%, 430px); padding-bottom: 26px; }
.hero-portrait::before {
  content: ""; position: absolute; inset: -14% -22% -6%; z-index: -1;
  background: radial-gradient(closest-side, #f6c6873b, #b2304526 55%, transparent);
}

/* Arch frames */
.arch-frame {
  position: relative; padding: 11px;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
  border: 1px solid #e3ba82b0; border-radius: 1000px 1000px 8px 8px;
  background: linear-gradient(180deg, #2a0b11, #170609);
  box-shadow: 0 40px 80px #0a0204c4, inset 0 0 0 1px #00000080;
}
.arch-frame::before {
  content: ""; position: absolute; inset: -10px; pointer-events: none;
  border: 1px solid #e3ba8240; border-radius: 1000px 1000px 12px 12px;
}
.arch {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 1000px 1000px 3px 3px; background: #2a0b11;
}
.arch::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px #f3d39f66, inset 0 -60px 80px -30px #14050acc;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait .arch img { object-position: 64% 32%; }
.hero-portrait .arch-frame::after {
  /* Marquee bulbs */
  content: ""; position: absolute; inset: -24px -24px 34%; pointer-events: none;
  border: 3px dotted #ffdca3; border-bottom: 0; border-radius: 1000px 1000px 0 0;
  filter: drop-shadow(0 0 3px #ffc679) drop-shadow(0 0 7px #f0a85a99);
  opacity: .75;
  -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent);
  animation: bulbs 3.2s ease-in-out infinite alternate;
}
@keyframes bulbs { from { opacity: .5; } to { opacity: .9; } }
.plaque {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 2px; min-width: 190px; padding: 10px 22px 9px;
  background: linear-gradient(180deg, #6d1625, #3c0a14); border: 1px solid #e3ba82;
  box-shadow: 0 10px 26px #0009, inset 0 0 0 3px #3c0a14, inset 0 0 0 4px #e3ba8255;
  border-radius: 4px; text-align: center; white-space: nowrap;
}
.plaque span { font: 400 9px var(--caps); letter-spacing: .4em; text-transform: uppercase; color: #f1d2a4; }
.plaque b { font: 600 20px/1 var(--caps); letter-spacing: .26em; padding-left: .26em; background: var(--foil); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero-copy .eyebrow { margin-bottom: 8px; }
.hero h1 {
  display: grid; grid-template-columns: max-content max-content; justify-content: start;
  grid-template-areas: ". turns" "nick age"; align-items: end; column-gap: .2em;
  margin: 10px 0 8px; font-size: clamp(60px, 7vw, 108px); line-height: .9;
}
.hero-nick {
  grid-area: nick; padding: 0 .08em .02em 0; margin-left: -.04em;
  font: 400 1.5em/1.05 var(--script); color: #fff1de;
  text-shadow: 0 6px 40px #12030699, 0 0 24px #f6c68726;
}
.hero-turns {
  grid-area: turns; justify-self: center; margin: 0 0 -.25em .1em;
  font: 400 clamp(12px, 1.1vw, 15px)/1 var(--caps); letter-spacing: .5em; padding-left: .5em;
  text-transform: uppercase; color: var(--champagne);
}
.hero-age {
  grid-area: age; cursor: pointer; font-variant-numeric: lining-nums; font-size: 1.95em; font-style: italic; font-weight: 300; letter-spacing: -.06em; line-height: .78;
  filter: drop-shadow(0 6px 30px #f0b4723b);
}
.hero-age .foil { animation: foil 10s linear infinite; padding-right: .12em; }
.hero-tagline { display: grid; gap: 4px; margin-top: 18px; }
.tag-lead { font: italic 500 15px/1.4 var(--serif); letter-spacing: .32em; text-transform: uppercase; color: var(--champagne); }
.tag-glamour { font: 600 clamp(40px, 4.9vw, 70px)/1 var(--caps); letter-spacing: .02em; justify-self: start; }
.tag-coast { font: 400 clamp(15px, 1.65vw, 23px)/1.2 var(--caps); letter-spacing: .36em; color: #f6e1c0; }
.hero-ornament { margin: 26px 0 0; }
.hero-facts {
  display: grid; grid-template-columns: max-content max-content; justify-content: start; row-gap: 16px;
  margin: 24px 0 0; padding: 0; list-style: none;
}
.hero-facts li:last-child { grid-column: 1 / -1; padding-left: 0; }
.hero-facts li {
  display: flex; align-items: center; gap: 11px; padding: 4px 22px;
  font: 400 12px/1.35 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: #fbe9d0;
}
.hero-facts li:first-child { padding-left: 0; }
.hero-facts li:nth-child(2) { border-left: 1px solid #dcb07a59; }
.hero-facts .icon { width: 24px; height: 24px; color: var(--gold-soft); }
.hero-facts a { display: inline-flex; align-items: center; gap: 11px; border-bottom: 1px solid transparent; transition: color .2s ease; }
.hero-facts a:hover { color: #fff; }
.hero-facts a:hover .icon { animation: bob .6s ease-in-out 2; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.hero-facts small { display: block; margin-top: 3px; font: italic 500 16px/1.1 var(--serif); letter-spacing: .06em; text-transform: none; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }

.has-js body.entered .hero-copy > * { animation: rise 1s var(--ease) both; }
.has-js body.entered .hero-copy > :nth-child(2) { animation-delay: .08s; }
.has-js body.entered .hero-copy > :nth-child(3) { animation-delay: .16s; }
.has-js body.entered .hero-copy > :nth-child(4) { animation-delay: .24s; }
.has-js body.entered .hero-copy > :nth-child(5) { animation-delay: .32s; }
.has-js body.entered .hero-copy > :nth-child(6) { animation-delay: .4s; }
.has-js body.entered .hero-copy > :nth-child(7) { animation-delay: .48s; }
.has-js body.entered .hero-portrait { animation: portrait-in 1.3s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes portrait-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin-bottom: clamp(34px, 5vw, 58px); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(54px, 7.4vw, 106px); line-height: .92; letter-spacing: -.045em; color: #fff3e6;
}
.section-head h2 em { font-style: italic; color: var(--gold-soft); padding-right: .08em; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .section-head h2 em {
    background: var(--foil); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
}
.section-head .ornament { margin-top: 22px; }

/* ---------- Save the date / ticket ---------- */
.details {
  position: relative; padding-block: clamp(76px, 9vw, 124px) clamp(64px, 7vw, 96px);
  background:
    radial-gradient(60% 50% at 50% 0%, #6b1a26b3, transparent 70%),
    radial-gradient(50% 40% at 50% 100%, #3a0c15, transparent 70%),
    var(--night);
}
.details::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(80%, 900px); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #dcb07a80, transparent);
}
.details-wrap { width: min(100% - 40px, 920px); }
.ticket-shadow { filter: drop-shadow(0 0 1px #e7c28f) drop-shadow(0 30px 40px #07010394); }
.ticket {
  --stub: 260px; --notch: 17px;
  position: relative; display: grid; grid-template-columns: var(--stub) 1fr;
  border-radius: 16px; overflow: hidden; color-scheme: light;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
  -webkit-mask:
    radial-gradient(circle var(--notch) at var(--stub) 0, #0000 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at var(--stub) 0, #0000 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}
.ticket-stub {
  position: relative; display: grid; align-content: center; justify-items: center; gap: 14px;
  padding: 38px 22px; text-align: center; color: var(--champagne);
  background:
    radial-gradient(120% 80% at 30% 0%, #a3263a 0%, #6a1222 45%, #3c0a14 100%);
  border-right: 2px dashed #f0cf9c80;
}
.ticket-stub::before {
  content: ""; position: absolute; inset: 12px 14px 12px 12px; pointer-events: none;
  border: 1px solid #f0cf9c4d; border-radius: 9px;
}
.stub-label { font: 400 10px var(--caps); letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: #f6d9ab; }
.ticket-stub time { display: grid; justify-items: center; font-variant-numeric: lining-nums; }
.ticket-stub .date-month { font: 400 13px var(--caps); letter-spacing: .38em; padding-left: .38em; text-transform: uppercase; color: #fbe6c6; }
.ticket-stub strong { font: italic 300 clamp(110px, 13vw, 150px)/.86 var(--serif); letter-spacing: -.06em; padding-right: .14em; margin-block: 4px; filter: drop-shadow(0 4px 14px #0006); }
.ticket-stub .date-year { font: 400 13px var(--caps); letter-spacing: .5em; padding-left: .5em; color: #fbe6c6; }
.stub-seal {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid #f0cf9c99; font: 400 26px/1 var(--script); color: #fbdcae; padding-top: 6px;
}
.stub-seal small { font: 400 6px var(--caps); letter-spacing: .24em; margin-top: -3px; }
.ticket-main {
  position: relative; align-self: stretch; display: grid; align-content: center;
  padding: clamp(34px, 5vw, 56px) clamp(28px, 5vw, 60px);
  color: var(--paper-ink);
  background:
    radial-gradient(90% 70% at 100% 0%, #fffaf1 0%, transparent 60%),
    linear-gradient(125deg, #fbefd9 0%, #f3dfbd 55%, #f8e7cf 100%);
}
.ticket-main::before, .ticket-main::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 9px;
}
.ticket-main::before { inset: 12px 12px 12px 14px; border: 1px solid #b0805a73; }
.ticket-main::after { inset: 17px 17px 17px 19px; border: 1px solid #b0805a30; }
.date-weekday { font: 400 12px/1.4 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--paper-wine); }
.date-weekday span { margin: 0 .3ch; }
.date-venue { text-wrap: balance; margin-top: 12px; font: 300 clamp(40px, 5.4vw, 64px)/.98 var(--serif); letter-spacing: -.03em; color: #33101a; }
.date-city { margin-top: 8px; font: italic 500 24px/1.2 var(--serif); color: #6c3f47; }
.date-attire { margin-top: 14px; font: italic 500 19px/1.4 var(--serif); color: #5a2f37; }
.date-attire span { font: normal 400 10px var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--paper-wine); margin-right: 10px; }
.date-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 26px; }
.date-actions .button { min-height: 46px; padding: 0 20px; font-size: 11px; gap: 10px; letter-spacing: .18em; }
.date-actions .button .icon { width: 17px; height: 17px; }
.countdown-block { margin-top: clamp(46px, 6vw, 70px); text-align: center; }
.countdown-title { font: 400 11px var(--caps); letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.countdown-block:has(.countdown[hidden]) { display: none; }
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.6vw, 16px);
  width: min(100%, 640px); margin: 0 auto;
}
.countdown > span {
  position: relative; display: grid; justify-items: center; gap: 6px; min-width: 0;
  padding: clamp(16px, 2.4vw, 24px) 6px clamp(14px, 2vw, 20px);
  border: 1px solid #dcb07a4d; border-radius: 12px;
  background: linear-gradient(180deg, #ffffff0a, #ffffff03);
  box-shadow: inset 0 1px 0 #ffffff0f;
}
.countdown > span::before {
  content: ""; position: absolute; inset: 4px; border: 1px solid #dcb07a1f; border-radius: 9px; pointer-events: none;
}
.countdown b {
  font: 300 clamp(38px, 5.6vw, 62px)/1 var(--serif); font-variant-numeric: tabular-nums lining-nums;
  background: var(--foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.countdown small { font: 400 10px var(--caps); letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; color: var(--muted); }

/* ---------- Celebration ---------- */
.celebration {
  position: relative; isolation: isolate;
  padding-block: clamp(72px, 8.5vw, 116px) clamp(70px, 8vw, 110px);
  background:
    radial-gradient(50% 40% at 15% 40%, #6b1a2655, transparent 70%),
    radial-gradient(40% 40% at 90% 90%, #4a101b66, transparent 70%),
    linear-gradient(180deg, #170609, #200a0f 50%, #160609);
}
.celebration::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(80%, 900px); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #dcb07a80, transparent);
}
.celebration-grid {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center;
  gap: clamp(36px, 6vw, 96px); max-width: 1080px; margin: 0 auto;
}
.celebration-photo { position: relative; width: min(100%, 420px); justify-self: center; }
.celebration-photo .arch { aspect-ratio: 3 / 4.1; }
.celebration-photo .arch img { object-position: 50% 58%; }
.celebration-photo figcaption {
  margin-top: 22px; text-align: center; font: 400 11px/1.5 var(--caps); letter-spacing: .32em; text-transform: uppercase; color: var(--champagne);
}
.celebration-photo figcaption small { display: block; font: italic 500 17px var(--serif); letter-spacing: .04em; text-transform: none; color: var(--muted); }
.traditions-intro { text-wrap: pretty; margin-bottom: 14px; font: italic 500 20px/1.45 var(--serif); color: var(--muted); }
.traditions details { border-bottom: 1px solid #dcb07a33; }
.traditions details:first-of-type { border-top: 1px solid #dcb07a33; }
.traditions summary {
  display: grid; grid-template-columns: 54px 58px minmax(0, 1fr) 22px; align-items: center; gap: 14px;
  padding: 18px 10px; list-style: none; cursor: pointer; border-radius: 6px;
  transition: background-color .25s ease;
}
.traditions summary::-webkit-details-marker { display: none; }
.traditions summary:hover { background: #ffffff08; }
.traditions details[open] summary { background: linear-gradient(90deg, #8f1d2c2e, transparent); }
.tradition-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid #dcb07a80; color: var(--gold-soft);
  background: radial-gradient(circle at 40% 30%, #5e152166, transparent 70%);
  box-shadow: inset 0 0 0 4px #12060a, inset 0 0 0 5px #dcb07a26;
  transition: transform .4s var(--ease), border-color .3s ease;
}
.tradition-icon .icon { width: 27px; height: 27px; }
.traditions summary:hover .tradition-icon { transform: rotate(-8deg); border-color: var(--gold-soft); }
.tradition-number { font: italic 300 52px/1 var(--serif); font-variant-numeric: lining-nums; letter-spacing: -.04em; justify-self: center; padding-right: .1em; }
.tradition-name { font: 500 clamp(22px, 2.3vw, 28px)/1.15 var(--serif); color: #fff1df; }
.tradition-name small { display: block; margin-top: 5px; font: 400 10px/1.3 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.details-plus { position: relative; width: 22px; height: 22px; color: var(--gold-soft); border: 1px solid #dcb07a66; border-radius: 50%; }
.details-plus::before, .details-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1px; background: currentColor; translate: -50% -50%; transition: transform .3s var(--ease); }
.details-plus::after { transform: rotate(90deg); }
details[open] .details-plus::after { transform: rotate(0); }
.traditions details p { padding: 0 10px 20px calc(54px + 58px + 28px + 10px); font: italic 500 20px/1.5 var(--serif); color: #f0d4bd; }
.traditions details::details-content {
  block-size: 0; overflow-y: clip;
  transition: block-size .45s var(--ease), content-visibility .45s allow-discrete;
}
.traditions details[open]::details-content { block-size: auto; }
.evening-list {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  margin: clamp(48px, 6vw, 72px) auto 0; padding: 0; list-style: none; max-width: 720px;
}
.evening-list li {
  flex: 1 1 0; min-width: 150px; display: grid; justify-items: center; gap: 10px; padding: 6px 18px;
  font: italic 500 24px/1.1 var(--serif); color: #f6dfc6; text-align: center;
}
.evening-list li + li { border-left: 1px solid #dcb07a4d; }
.evening-list .icon { width: 38px; height: 38px; color: var(--gold-soft); stroke-width: 1.1; }

/* ---------- RSVP ---------- */
.reply-section {
  position: relative; isolation: isolate;
  padding-block: clamp(80px, 10vw, 140px) clamp(80px, 10vw, 130px);
  background:
    radial-gradient(70% 55% at 50% 0%, #7a1f2cd9, #4a0f1a80 45%, transparent 75%),
    repeating-linear-gradient(90deg, #0000 0, #0000003d 2.6%, #ffffff08 5.2%, #0000 7.8%),
    linear-gradient(180deg, #3a0c15, #250910 55%, #160609);
}
.reply-section::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("./velvet-hem.webp") 50% 100% / max(900px, 100%) auto no-repeat;
  opacity: .6;
}
.reply-grid { width: min(100% - 36px, 660px); }
.reply-lede { text-wrap: balance; margin-top: 18px; font: italic 500 22px/1.4 var(--serif); color: var(--champagne); }
.reply-paper {
  position: relative; color-scheme: light; color: var(--paper-ink);
  margin-top: 46px; padding: clamp(58px, 8vw, 78px) clamp(22px, 6.5vw, 66px) clamp(32px, 6vw, 58px);
  background:
    radial-gradient(80% 50% at 50% 0%, #fffaf2, transparent 70%),
    linear-gradient(135deg, #fff3de 0%, #f5e4c8 45%, #fbeedb 100%);
  border-radius: 8px;
  box-shadow: 0 40px 90px #0e0306b3, 0 0 0 1px #f0d2a3, 0 0 0 5px #2f0a12, 0 0 0 6px #dcb07a66;
}
.reply-paper::before, .reply-paper::after { content: ""; position: absolute; pointer-events: none; border-radius: 4px; }
.reply-paper::before { inset: 10px; border: 1px solid #b0805a80; }
.reply-paper::after { inset: 15px; border: 1px solid #b0805a33; }
.wax-seal {
  position: absolute; z-index: 2; top: -40px; left: 50%; translate: -50% 0;
  display: grid; place-items: center; width: 82px; height: 82px;
  border-radius: 48% 52% 50% 47% / 51% 47% 53% 49%;
  background: radial-gradient(circle at 36% 28%, #c23246 0%, #8a1628 42%, #560c19 100%);
  box-shadow: 0 10px 22px #2a050c80, inset 0 2px 3px #ffffff40, inset 0 -6px 10px #00000059;
}
.wax-seal::before {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  border: 1px solid #f3c98f80; box-shadow: inset 0 1px 2px #0005, 0 1px 0 #ffffff26;
}
.wax-seal span { font: 400 40px/1 var(--script); color: #f6d39c; padding-top: 8px; text-shadow: 0 -1px 0 #5a0b17, 0 1px 1px #ffffff40; }
.reply-form { position: relative; z-index: 1; display: grid; gap: 18px; }
.form-kicker { text-wrap: balance; text-align: center; font: 400 11px/1.6 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: #8a5236; margin-bottom: 4px; }
.field { display: grid; gap: 8px; }
.field > label, .attendance legend, .guest-count > label {
  font: 600 11px/1.3 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--paper-wine);
}
.field label small { margin-left: 6px; font: italic 500 15px var(--serif); letter-spacing: 0; text-transform: none; color: #8a6a66; }
.reply-form input:not([type="radio"]):not([type="number"]), .reply-form textarea {
  width: 100%; min-width: 0; min-height: 52px; padding: 11px 16px;
  font: 500 20px/1.35 var(--serif); color: #2f0f17;
  border: 1px solid #d3b48f; border-radius: 10px; background: #fffaf3;
  box-shadow: inset 0 1px 2px #6b3a2214;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.reply-form textarea { display: block; min-height: 104px; resize: vertical; }
.reply-form ::placeholder { color: #a58a7f; font-style: italic; }
.reply-form input:not([type="radio"]):focus, .reply-form textarea:focus {
  outline: none; border-color: #8f2b3b; background: #fff; box-shadow: 0 0 0 4px #8f2b3b1f;
}
.reply-form :is(button, a):focus-visible { outline-color: #8f2b3b; }
.attendance { margin: 2px 0 0; padding: 0; min-width: 0; border: 0; }
.attendance legend { padding: 0; margin-bottom: 10px; }
.attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.attendance-options label { position: relative; display: block; cursor: pointer; }
.attendance-options input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.option-card {
  position: relative; display: grid; justify-items: center; gap: 3px; height: 100%;
  padding: 20px 12px 18px; text-align: center;
  border: 1px solid #d3b48f; border-radius: 12px; background: #fffaf3;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .25s ease, transform .25s var(--ease);
}
.option-card .icon { width: 32px; height: 32px; margin-bottom: 6px; color: var(--paper-wine); stroke-width: 1.2; }
.option-card b { font: 500 21px/1.15 var(--serif); color: #33101a; }
.option-card small { font: italic 500 15px/1.3 var(--serif); color: #8a6a66; }
.attendance-options label:hover .option-card { border-color: #b07a5e; transform: translateY(-2px); }
.attendance-options label:has(:focus-visible) .option-card { outline: 2px solid #8f2b3b; outline-offset: 3px; }
.attendance-options label:has(:checked) .option-card {
  border-color: #8f2b3b; background: linear-gradient(180deg, #fff, #f8e6d2);
  box-shadow: 0 0 0 1px #8f2b3b, 0 12px 26px #6b16221f;
}
.attendance-options label:has(:checked) .option-card::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: #8f2b3b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff4e2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.6 4.4 4.4L19 7.4'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.guest-count {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 12px 12px 12px 18px; border: 1px dashed #c9a47e; border-radius: 12px; background: #fff7ec80;
}
.stepper { display: flex; gap: 6px; align-items: center; }
.stepper button {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0 0 2px;
  border: 1px solid #a7766a; border-radius: 50%; background: #fffaf3; color: var(--paper-wine);
  font: 400 22px/1 var(--serif); transition: background-color .2s ease, color .2s ease;
}
.stepper button:not(:disabled):hover { background: var(--paper-wine); color: #fff4e2; }
.stepper button:disabled { opacity: .4; cursor: default; }
.stepper input[type="number"] {
  width: 52px; min-height: 42px; padding: 0; border: 0; background: transparent; text-align: center;
  font: 300 34px/1 var(--serif); font-variant-numeric: lining-nums; color: #33101a; appearance: textfield; -moz-appearance: textfield;
}
.stepper input[type="number"]:focus-visible { outline: 2px solid #8f2b3b; outline-offset: 2px; border-radius: 6px; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.voice-row { display: grid; gap: 10px; justify-items: start; }
.cl-voice-button {
  display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 20px 0 16px; border: 1px solid #c49a78; border-radius: 999px;
  background: #fff7ec; color: var(--paper-wine);
  font: 400 11px/1.2 var(--caps); letter-spacing: .18em; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cl-voice-button .icon { width: 20px; height: 20px; }
.cl-voice-button:hover:not(:disabled) { border-color: var(--paper-wine); background: #fff; }
.cl-voice-button:disabled { opacity: .7; cursor: default; }
.cl-voice-button.is-recording { background: #8f1d2c; border-color: #8f1d2c; color: #fff3e2; animation: recording 1.4s ease-in-out infinite; }
@keyframes recording { 0%, 100% { box-shadow: 0 0 0 0 #8f1d2c66; } 50% { box-shadow: 0 0 0 9px #8f1d2c00; } }
.cl-voice-status { font: italic 500 16px/1.4 var(--serif); color: #6c4a4a; }
#voice-preview { display: grid; justify-items: start; gap: 8px; width: 100%; }
#voice-audio { width: min(100%, 340px); }
#voice-remove { padding: 4px 0; border: 0; background: none; color: var(--paper-wine); font: italic 500 16px var(--serif); text-decoration: underline; text-underline-offset: 3px; }
.button-send { width: 100%; min-height: 58px; margin-top: 6px; font-size: 13px; }
.rsvp-feedback { font: italic 500 17px/1.4 var(--serif); color: #8f1d2c; text-align: center; }
.rsvp-feedback:empty, .cl-voice-status:empty { display: none; }
.preview-note { color: #705053; text-align: center; margin-top: 3px; font-size: 15px; }

/* RSVP receipt (after submitting) */
.cl-receipt { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; text-align: center; }
.cl-receipt .cl-eyebrow { font: 400 11px var(--caps); letter-spacing: .34em; text-transform: uppercase; color: #8a5236; }
.cl-receipt h3 { font: 300 clamp(34px, 5.4vw, 48px)/1.02 var(--serif); letter-spacing: -.02em; color: #33101a; }
.cl-receipt-name { font: 400 clamp(34px, 6vw, 46px)/1.2 var(--script); color: var(--paper-wine); }
.cl-receipt-ticket {
  width: 100%; margin: 10px 0 4px; padding: 20px 18px 18px;
  border: 1px dashed #b98a66; border-radius: 12px; background: #fff8ee;
  display: grid; justify-items: center; gap: 6px; font-size: 18px; color: #4a2129;
}
.cl-receipt .cl-receipt-meta { max-width: none; }
.cl-receipt-ticket .cl-receipt-meta { font: 400 11px/1.6 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--paper-wine); }
.cl-receipt-code {
  display: inline-block; justify-self: center; margin-top: 6px; padding: 8px 16px;
  border: 1px solid #8f2b3b; border-radius: 6px; background: #fff;
  font: 600 16px var(--caps); letter-spacing: .14em; color: #5a1220;
}
.cl-receipt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.cl-receipt-actions a { min-height: 48px; padding: 0 22px; font-size: 11px; }
.cl-receipt p { max-width: 42ch; margin-inline: auto; text-wrap: balance; }
.cl-receipt .cl-receipt-note { font: italic 500 17px/1.45 var(--serif); color: #6c4a4a; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; padding-block: clamp(64px, 8vw, 96px) 44px; text-align: center;
  background: radial-gradient(60% 80% at 50% 0%, #3a0c1580, transparent 70%), var(--ink);
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(80%, 900px); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #dcb07a99, transparent);
}
.footer-inner { display: grid; justify-items: center; }
.footer-note { margin-top: 22px; font: 400 11px var(--caps); letter-spacing: .4em; padding-left: .4em; text-transform: uppercase; color: var(--champagne); }
.hashtag {
  margin-top: 12px; padding: 4px 8px; border: 0; background: none;
  font: italic 300 clamp(32px, 5vw, 60px)/1.15 var(--serif); letter-spacing: -.01em;
  background-image: var(--foil); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transition: background-position 1.2s var(--ease); overflow-wrap: anywhere; font-variant-numeric: lining-nums;
}
.hashtag:hover { background-position: 100% 50%; }
.hashtag-hint { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font: italic 500 16px var(--serif); color: #b99a88; }
.hashtag-hint .icon { width: 15px; height: 15px; color: var(--gold); }
.footer-sign { margin-top: 34px; font: 400 10px var(--caps); letter-spacing: .36em; text-transform: uppercase; color: #9c8072; }
.footer-sign span { margin-inline: .4em; color: var(--gold-deep); }

html:not(.has-js) #copy-hashtag { pointer-events: none; }
html:not(.has-js) .hashtag-hint { display: none; }

/* ---------- Scroll reveal (enabled by invitation.js) ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1.1s var(--ease); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-facts li { padding-inline: 16px; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding-block: 104px 72px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "portrait" "copy"; justify-items: center; text-align: center; gap: 42px; }
  .hero-portrait { width: min(76vw, 360px); }
  .hero-velvet { background:
    radial-gradient(70% 34% at 50% 24%, #b2304566 0%, transparent 70%),
    radial-gradient(50% 24% at 50% 18%, #ffd59a26 0%, transparent 72%),
    repeating-linear-gradient(90deg, #0000 0, #00000038 5%, #ffffff07 10%, #0000 15%),
    linear-gradient(180deg, #170609 0%, #2a0a11 55%, #170609 100%); }
  .hero-copy { display: grid; justify-items: center; }
  .hero h1 { justify-content: center; }
  .tag-glamour { justify-self: center; }
  .hero-ornament { margin-inline: auto; }
  .hero-facts { justify-content: center; }
  .hero-facts li:first-child { padding-left: 22px; }
  .hero-facts li:last-child { justify-content: center; }
  .hero-actions { justify-content: center; }
  .celebration-grid { grid-template-columns: 1fr; }
  .celebration-photo { width: min(100%, 560px); }
  .celebration-photo .arch { aspect-ratio: 4 / 3.3; }
  .celebration-photo .arch img { object-position: 50% 54%; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 36px); }
  .header-wrap { min-height: 60px; }
  .site-header nav a:not(.nav-rsvp) { display: none; }
  .brand-name { font-size: 26px; }
  .brand-seal { width: 34px; height: 34px; font-size: 20px; }
  .hero { padding-block: 92px 60px; }
  .hero-portrait { width: min(74vw, 300px); padding-bottom: 22px; }
  .hero-portrait .arch-frame::after { inset: -19px -19px 34%; border-width: 2.5px; }
  .plaque { min-width: 160px; padding: 8px 16px 7px; }
  .plaque b { font-size: 17px; }
  .hero h1 { font-size: clamp(50px, 14vw, 70px); }
  .hero-turns { font-size: 11px; }
  .tag-lead { font-size: 13px; letter-spacing: .26em; }
  .tag-glamour { font-size: clamp(34px, 10vw, 46px); }
  .tag-coast { font-size: clamp(12px, 3.6vw, 16px); letter-spacing: .3em; }
  .hero-facts { grid-template-columns: max-content; justify-items: start; row-gap: 12px; margin-top: 22px; }
  .hero-facts li, .hero-facts li:first-child { padding: 0; text-align: left; }
  .hero-facts li:nth-child(2) { border-left: 0; }
  .hero-facts li:last-child { justify-content: start; }
  .hero-facts a { text-align: left; }
  .hero-actions { flex-direction: column; gap: 6px; margin-top: 28px; }
  .section-head h2 { font-size: clamp(50px, 14vw, 72px); }
  .ticket { --stub-h: 176px; grid-template-columns: 1fr; grid-template-rows: var(--stub-h) auto;
    -webkit-mask:
      radial-gradient(circle var(--notch) at 0 var(--stub-h), #0000 97%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% var(--stub-h), #0000 97%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle var(--notch) at 0 var(--stub-h), #0000 97%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% var(--stub-h), #0000 97%, #000) right / 51% 100% no-repeat;
  }
  .ticket-stub { grid-template-columns: auto 1fr auto; align-items: center; justify-items: center; gap: 10px; padding: 18px 26px; border-right: 0; border-bottom: 2px dashed #f0cf9c80; }
  .ticket-stub::before { inset: 12px 12px 14px; }
  .stub-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; letter-spacing: .4em; }
  .ticket-stub time { grid-template-columns: auto auto; grid-template-areas: "day month" "day year"; align-items: center; column-gap: 12px; justify-content: center; }
  .ticket-stub strong { grid-area: day; font-size: 108px; margin: 0; }
  .ticket-stub .date-month { grid-area: month; align-self: end; font-size: 12px; }
  .ticket-stub .date-year { grid-area: year; align-self: start; font-size: 12px; margin-top: 6px; }
  .stub-seal { width: 46px; height: 46px; font-size: 22px; }
  .ticket-main { text-align: center; padding: 34px 24px 32px; }
  .ticket-main::before { inset: 14px 12px 12px; }
  .ticket-main::after { inset: 19px 17px 17px; }
  .date-venue { font-size: clamp(38px, 11vw, 48px); }
  .date-city { font-size: 22px; }
  .date-actions { justify-content: center; }
  .date-actions .button { flex: 1 1 200px; }
  .countdown > span { padding-inline: 2px; }
  .countdown small { font-size: 8px; letter-spacing: .18em; padding-left: .18em; }
  .traditions-intro { text-align: center; font-size: 18px; }
  .traditions summary { grid-template-columns: 46px 42px minmax(0, 1fr) 22px; gap: 10px; padding: 14px 4px; }
  .tradition-icon { width: 46px; height: 46px; }
  .tradition-icon .icon { width: 23px; height: 23px; }
  .tradition-number { font-size: 40px; }
  .tradition-name { font-size: 21px; }
  .tradition-name small { font-size: 9px; letter-spacing: .24em; }
  .traditions details p { padding: 0 6px 18px calc(46px + 42px + 20px + 4px); font-size: 18px; }
  .evening-list li { min-width: 0; padding: 4px 8px; font-size: 20px; }
  .evening-list .icon { width: 32px; height: 32px; }
  .reply-paper { margin-top: 50px; }
  .attendance-options { gap: 10px; }
  .option-card { padding: 18px 8px 16px; }
  .option-card b { font-size: 19px; }
  .guest-count { padding-left: 14px; }
}
@media (max-width: 380px) {
  .attendance-options { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .evening-list li { font-size: 18px; }
  .ticket-stub { padding-inline: 20px; }
  .stub-seal { display: none; }
  .ticket-stub { grid-template-columns: auto 1fr; }
}

@media (max-width: 590px) {
  .curtain::before { opacity: .24; }
  .curtain-scene { width: 100%; box-shadow: none; }
  .curtain-cover { transform: translateY(-3svh); }
  .curtain-controls { bottom: max(25px, calc(env(safe-area-inset-bottom) + 15px)); right: 22px; }
  .curtain-border i { width: 9px; height: 9px; }
  .curtain-caption { font-size: 11px; }
}
@media (max-height: 520px) {
  .seal { width: 44px; height: 44px; }
  .seal span:first-child { font-size: 21px; }
  .seal span:last-child { font-size: 6px; }
  .curtain-kicker { margin-top: 10px; }
  .curtain-title { font-size: 70px; }
  .curtain-cover .ornament { margin-block: 9px 10px; }
  .curtain-cover .button { min-height: 44px; }
  .curtain-date { margin-top: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation: none !important; }
  .sparkles i { opacity: .6; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .curtain, .site-header, .sparkles, .footer-actions, .hashtag-hint { display: none !important; }
  body, #invitation { background: #fff; color: #222; }
}

/* =====================================================================
   v1.3 — venue, gallery, lightbox and interactive touches
   ===================================================================== */

/* Cursor spotlight, scroll cue, progress bar */
.hero-spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(560px circle at var(--mx, 70%) var(--my, 40%), #ffd9a021, transparent 62%);
}
.hero.is-lit .hero-spot { opacity: 1; }
.hero-age { transition: transform .3s var(--ease); }
.hero-age:hover { transform: scale(1.04) rotate(-2deg); }
.hero-age:active { transform: scale(.96); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  display: grid; justify-items: center; width: 26px; height: 42px; padding-top: 8px;
  border: 1px solid #dcb07a80; border-radius: 14px; transition: border-color .2s ease;
}
.scroll-cue span { width: 3px; height: 8px; border-radius: 2px; background: var(--gold-soft); animation: cue 1.8s ease-in-out infinite; }
.scroll-cue:hover { border-color: var(--gold-soft); }
@keyframes cue { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--foil); transform-origin: 0 50%; transform: scaleX(0); }

/* 3D tilt + glare */
.hero-portrait.is-tilting .arch-frame, .ticket.is-tilting { transition: transform .12s linear; }
.hero-portrait .arch-frame { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.ticket-glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), #fff7e47a, transparent 40%);
  mix-blend-mode: soft-light;
}
.ticket.is-tilting .ticket-glare { opacity: 1; }

/* Shared bits */
.section-lede { margin-top: 18px; font: italic 500 21px/1.4 var(--serif); color: var(--champagne); text-wrap: balance; }
.button-ghost { color: var(--champagne); border-color: #dcb07a8c; background: #ffffff05; }
.button-ghost:hover { background: #dcb07a1a; border-color: var(--gold-soft); color: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px;
  border: 1px solid #dcb07a4d; border-radius: 999px; background: #ffffff06; color: #f0d8c5;
  font: 400 10px var(--caps); letter-spacing: .2em; text-transform: uppercase;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.chip .icon { width: 17px; height: 17px; color: var(--gold-soft); }
.chip:hover { border-color: var(--gold-soft); background: #dcb07a14; color: #fff; transform: translateY(-1px); }
.chip[aria-expanded="true"] { background: #dcb07a24; border-color: var(--gold-soft); color: #fff; }
.round-button {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0;
  border: 1px solid #dcb07a66; border-radius: 50%; background: #12060acc; color: var(--gold-soft);
  transition: background-color .2s ease, color .2s ease, opacity .2s ease, transform .2s var(--ease);
}
.round-button .icon { width: 20px; height: 20px; }
.round-button:hover:not(:disabled) { background: var(--gold-soft); color: #2b0c12; transform: scale(1.06); }
.round-button:disabled { opacity: .3; cursor: default; }

/* ---------- Venue ---------- */
.venue {
  position: relative; isolation: isolate;
  padding-block: clamp(72px, 8.5vw, 116px) clamp(76px, 9vw, 120px);
  background:
    radial-gradient(50% 50% at 80% 40%, #5e152166, transparent 70%),
    radial-gradient(40% 40% at 10% 90%, #3a0c1580, transparent 70%),
    linear-gradient(180deg, #160609, #1e080d 50%, #170609);
}
.venue::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(80%, 900px); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #dcb07a80, transparent);
}
.venue-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center;
  gap: clamp(40px, 6vw, 96px); max-width: 1100px; margin: 0 auto;
}
.postcard {
  position: relative; padding: 14px 14px 62px; color-scheme: light;
  background: radial-gradient(80% 60% at 20% 0%, #fffaf1, transparent 70%), linear-gradient(135deg, #fbf0dc, #f1dcb8);
  border-radius: 6px; rotate: -2.4deg;
  box-shadow: 0 34px 70px #000000a6, 0 0 0 1px #ead1a8;
  transition: rotate .7s var(--ease), scale .7s var(--ease), box-shadow .7s ease;
}
.postcard:hover { rotate: 0deg; scale: 1.015; box-shadow: 0 44px 90px #000000bf, 0 0 0 1px #f3dcb4; }
.postcard-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: #2a0b11; box-shadow: inset 0 0 0 1px #0000002e; }
.postcard-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: transform 1.4s var(--ease), opacity .5s ease; }
.postcard:hover .postcard-photo { transform: scale(1.05); }
.postcard-map { position: absolute; inset: 0; background: #e9dcc8; }
.postcard-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: sepia(.28) saturate(.9) contrast(.97); }
.postcard.is-map .postcard-photo { opacity: 0; }
.postcard-caption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 400 clamp(26px, 3vw, 34px)/1 var(--script); color: var(--paper-wine); }
.postcard-stamp {
  position: absolute; top: -20px; right: -16px; display: grid; place-items: center; align-content: center; gap: 2px;
  width: 78px; height: 94px; rotate: 7deg; color: #f6d39c; text-align: center;
  background:
    radial-gradient(circle at 40% 28%, #b12a3e, #6a1222 60%, #4c0b17) center / calc(100% - 9px) calc(100% - 9px) no-repeat,
    radial-gradient(circle at 5px 5px, #0000 3.4px, #7c1426 3.9px) -5px -5px / 10px 10px;
  filter: drop-shadow(0 6px 10px #0006);
  transition: rotate .7s var(--ease);
}
.postcard-stamp::before { content: ""; position: absolute; inset: 11px; border: 1px solid #f6d39c80; }
.postcard-stamp b { font: 400 34px/1 var(--script); padding-top: 6px; }
.postcard-stamp small { font: 400 8px var(--caps); letter-spacing: .26em; }
.postcard:hover .postcard-stamp { rotate: -3deg; }
.venue-when { font: 400 11px/1.6 var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.venue-when span { margin: 0 .3ch; }
.venue-name { margin-top: 12px; font: 300 clamp(42px, 4.8vw, 64px)/.98 var(--serif); letter-spacing: -.03em; color: #fff3e6; text-wrap: balance; }
.venue-city { margin-top: 8px; font: italic 500 24px/1.2 var(--serif); color: var(--muted); }
.venue-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.venue-actions .button { min-height: 50px; padding-inline: 24px; }
.venue-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- Gallery reel ---------- */
.gallery {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(72px, 8.5vw, 116px) clamp(70px, 8vw, 110px);
  background:
    radial-gradient(60% 40% at 50% 0%, #4a101b80, transparent 70%),
    linear-gradient(180deg, #170609, #12060a);
}
.gallery::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(80%, 900px); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #dcb07a80, transparent);
}
.reel-scroller {
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, calc((100vw - 1200px) / 2));
  scrollbar-width: none; cursor: grab; padding-block: 6px 14px;
}
.reel-scroller::-webkit-scrollbar { display: none; }
.reel-scroller:focus-visible { outline-offset: -2px; }
.reel-scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel-scroller.is-dragging .frame-button { pointer-events: none; }
.reel-strip {
  position: relative; display: flex; gap: 18px; width: max-content; margin: 0 auto;
  padding: 48px max(24px, calc((100vw - 1200px) / 2)); list-style: none;
  background: #0b0406; box-shadow: inset 0 1px 0 #dcb07a2e, inset 0 -1px 0 #dcb07a2e, 0 30px 60px #0008;
}
.reel-strip::before, .reel-strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 24px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='24'%3E%3Crect x='8' y='6' width='14' height='12' rx='3' fill='%23ead3ad' fill-opacity='.82'/%3E%3C/svg%3E") 0 50% / 30px 24px repeat-x;
}
.reel-strip::before { top: 6px; }
.reel-strip::after { bottom: 6px; }
.reel { --fh: clamp(300px, 30vw, 400px); }
.frame { position: relative; flex: none; scroll-snap-align: start; }
.frame-number { position: absolute; top: -17px; left: 2px; font: 600 9px/1 var(--caps); letter-spacing: .22em; color: #e8a548; pointer-events: none; }
.frame-button {
  position: relative; display: block; height: var(--fh); width: min(calc(var(--fh) * var(--ar, .8)), 88vw); padding: 0; overflow: hidden;
  border: 0; border-radius: 3px; background: #2a0b11; cursor: zoom-in; box-shadow: 0 0 0 1px #000;
}
.frame-button img {
  width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none;
  filter: sepia(.18) saturate(.9) brightness(.92);
  transition: filter .6s ease, transform 1s var(--ease);
}
.frame-button:hover img, .frame-button:focus-visible img { filter: none; transform: scale(1.06); }
.frame-button:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.frame-zoom {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid #dcb07a80; border-radius: 50%; background: #12060acc; color: var(--gold-soft);
  opacity: 0; transform: scale(.8); transition: opacity .3s ease, transform .3s var(--ease);
}
.frame-zoom .icon { width: 16px; height: 16px; }
.frame-button:hover .frame-zoom, .frame-button:focus-visible .frame-zoom { opacity: 1; transform: none; }
.frame-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 14px 12px; text-align: left;
  background: linear-gradient(transparent, #12060aeb); font: italic 500 17px/1.3 var(--serif); color: #fbe9d0;
  transform: translateY(100%); transition: transform .45s var(--ease);
}
.frame-button:hover .frame-caption, .frame-button:focus-visible .frame-caption { transform: none; }
@media (hover: none) { .frame-caption { transform: none; } .frame-zoom { opacity: 1; transform: none; } }
.reel-controls { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.reel-scroller.is-static ~ .reel-controls { display: none; }
.reel-scroller.is-static { cursor: default; }
.reel-progress { flex: 1; height: 2px; overflow: hidden; border-radius: 2px; background: #dcb07a26; }
.reel-progress span { display: block; height: 100%; background: var(--foil); transform-origin: 0 50%; transform: scaleX(.06); transition: transform .2s linear; }
.reel-count { min-width: 76px; text-align: center; font: 400 12px var(--caps); letter-spacing: .2em; color: var(--muted); }
.reel-count b { font-weight: 400; color: var(--gold-soft); }
.reveal-ready .reel .frame { opacity: 0; transform: translateX(46px); }
.reveal-ready .reel.is-visible .frame { animation: frame-in .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + .1s); }
@keyframes frame-in { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0b0407f5; color: var(--ivory); overflow: hidden;
}
.lightbox::backdrop { background: #0b0407e6; }
.lightbox[open] { animation: lb-in .35s ease both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
html.lightbox-open { overflow: hidden; }
.lightbox-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 72px 90px 56px; touch-action: pan-y; }
.lightbox-figure { display: grid; justify-items: center; gap: 16px; max-width: 100%; }
.lightbox-figure img {
  width: auto; max-width: min(100%, 1100px); max-height: calc(100dvh - 180px); object-fit: contain;
  border-radius: 4px; box-shadow: 0 30px 80px #000c, 0 0 0 1px #dcb07a40; user-select: none; -webkit-user-drag: none;
}
.lightbox-figure figcaption { max-width: 60ch; text-align: center; font: italic 500 21px/1.35 var(--serif); color: var(--champagne); }
.lightbox-count { position: absolute; top: 28px; left: 50%; translate: -50% 0; font: 400 12px var(--caps); letter-spacing: .3em; color: var(--muted); }
.lightbox .round-button { position: absolute; z-index: 2; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 22px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 22px; top: 50%; translate: 0 -50%; }

/* ---------- Toast, confetti ---------- */
.toast {
  position: fixed; z-index: 130; left: 50%; bottom: 32px; translate: -50% 18px; opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 22px; border-radius: 999px; text-align: center;
  background: linear-gradient(105deg, #d7a668, #f6dba8 50%, #e3b77c); color: #2b0c12;
  font: 400 11px/1.4 var(--caps); letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 14px 40px #000a; transition: opacity .3s ease, translate .45s var(--ease);
}
.toast.is-visible { opacity: 1; translate: -50% 0; }
.fx-canvas { position: fixed; inset: 0; z-index: 140; width: 100%; height: 100%; pointer-events: none; }

/* ---------- RSVP extras ---------- */
.attendance-note { margin-top: 12px; text-align: center; font: italic 500 18px/1.4 var(--serif); color: var(--paper-wine); }
.attendance-note:empty { display: none; }
.char-count { margin-top: -2px; text-align: right; font: 400 10px var(--caps); letter-spacing: .14em; color: #a58a7f; }
.reveal-ready .traditions details { opacity: 0; }
.reveal-ready .traditions.is-visible details { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + .15s); }

/* ---------- Footer credit ---------- */
.footer-sign { margin-top: 30px; }
.footer-credit {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 7px;
  margin-top: 14px; font: italic 500 17px var(--serif); color: #c4a592;
}
.footer-credit .icon { width: 15px; height: 15px; color: #d23a50; fill: currentColor; stroke: currentColor; animation: heartbeat 1.6s ease-in-out infinite; }
.footer-credit span { font: normal 400 11px var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); }
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

/* ---------- Mobile dock ---------- */
.dock { display: none; }
@media (max-width: 900px) {
  .site-header nav a:not(.nav-rsvp) { display: none; }
  .scroll-cue { display: none; }
  .dock {
    position: fixed; z-index: 55; left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
    display: flex; gap: 2px; padding: 6px; translate: -50% 0;
    border: 1px solid #dcb07a4d; border-radius: 999px; background: #16070bdb;
    -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 14px 40px #000000b3;
    transition: transform .5s var(--ease), opacity .3s ease;
  }
  body:not(.past-hero) .dock { transform: translateY(150%); opacity: 0; pointer-events: none; }
  .dock a {
    display: grid; justify-items: center; gap: 3px; min-width: 62px; padding: 8px 8px 6px; border-radius: 999px;
    color: #e9d2bd; font: 400 8.5px/1.2 var(--caps); letter-spacing: .14em; text-transform: uppercase;
    transition: background-color .25s ease, color .25s ease;
  }
  .dock .icon { width: 20px; height: 20px; }
  .dock a.is-active { background: linear-gradient(105deg, #d7a668, #f6dba8 50%, #e3b77c); color: #2b0c12; }
  .site-footer { padding-bottom: 116px; }
  .toast { bottom: 96px; }
  .venue-grid { grid-template-columns: 1fr; gap: 56px; }
  .postcard { width: min(100%, 560px); justify-self: center; }
  .venue-card { text-align: center; }
  .venue-actions, .venue-tools { justify-content: center; }
}
@media (max-width: 680px) {
  .postcard { padding: 10px 10px 50px; rotate: -1.6deg; }
  .postcard-stamp { width: 62px; height: 76px; top: -16px; right: -8px; }
  .postcard-stamp b { font-size: 27px; }
  .venue-actions .button { flex: 1 1 140px; }
  .reel { --fh: min(62vh, 360px); }
  .reel-strip { gap: 14px; padding-block: 44px; }
  .reel-controls { gap: 12px; }
  .lightbox-stage { padding: 64px 10px 104px; }
  .lightbox-figure img { max-height: calc(100dvh - 220px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 26px; translate: none; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
  .section-lede { font-size: 19px; }
}
@media (max-width: 380px) {
  .dock a { min-width: 0; padding-inline: 7px; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reel .frame, .reveal-ready .traditions details { opacity: 1; transform: none; }
  .postcard, .postcard:hover { rotate: 0deg; scale: 1; }
}
