/* =====================================================================
   THE AB WEDDING — WHITE & GOLD LIGHT THEME
   Loaded after style.css; overrides palette + adds light effects.
   ===================================================================== */

:root {
  --black: #ffffff;           /* base surface (was black) */
  --ink: #fbf9f5;
  --ink-2: #f5f1ea;
  --pearl: #f8f5ef;
  --line: rgba(184, 145, 63, .24);
  --line-2: rgba(184, 145, 63, .48);
  --gold: #b8913f;
  --gold-hi: #d8b464;
  --gold-lo: #8a6524;
  --gold-soft: #ead7a4;
  --text: #2b2620;
  --muted: #8a8072;
  --dim: #b9ae9c;
  --shadow: rgba(120, 92, 40, .18);
}

html, body { background: #fff; }
body { color: var(--text); }
::selection { background: rgba(216, 180, 100, .35); color: var(--text); }

/* richer, readable metallic gold on white */
.gold, .hero__amp, .hero__date, .std__date, .finale__mono, .card__mono, .finale__sign {
  background-image: linear-gradient(100deg, #8a6524 0%, #b8913f 22%, #e2c47c 40%, #fff3cf 48%, #e2c47c 56%, #b8913f 74%, #8a6524 100%);
}

/* grain → barely-there warm paper tooth */
.grain { opacity: .035; filter: invert(1); mix-blend-mode: multiply; }

/* letterbox → luminous white bars with a gold hairline */
.letterbox span { background: #fff; }
.letterbox span:first-child { box-shadow: 0 1px 0 var(--line-2), 0 10px 30px rgba(184, 145, 63, .12); }
.letterbox span:last-child { box-shadow: 0 -1px 0 var(--line-2), 0 -10px 30px rgba(184, 145, 63, .12); }

.bloom {
  background: radial-gradient(circle at 50% 46%, #fff 0%, rgba(255, 249, 232, .98) 26%, rgba(240, 214, 150, .55) 48%, rgba(255, 255, 255, 0) 74%);
}

/* =====================================================================
   INTRO — pearl room full of light
   ===================================================================== */
.intro {
  background:
    radial-gradient(ellipse 70% 45% at 50% 42%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 120% 70% at 50% 115%, #f6efe1 0%, rgba(246, 239, 225, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #fdfcf9 60%, #f9f5ee 100%);
}
.intro::after { background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0), rgba(255, 255, 255, .9) 75%); }
.intro.is-opening::after { opacity: .6; }

.intro__halo {
  background: radial-gradient(circle, rgba(232, 196, 112, .2) 0%, rgba(232, 196, 112, .07) 18%, rgba(255, 255, 255, 0) 42%);
}

/* rotating god-rays behind the envelope */
.intro__rays {
  position: absolute; left: 50%; top: 44%; width: 170vmax; height: 170vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(214, 176, 92, .08) 0deg 2.5deg, rgba(255, 255, 255, 0) 2.5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .5) 16%, transparent 42%);
  mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .5) 16%, transparent 42%);
  animation: rays 80s linear infinite;
  pointer-events: none;
}
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }

.intro__beam {
  background: linear-gradient(90deg, transparent, rgba(236, 206, 130, .10) 42%, rgba(255, 240, 200, .28) 50%, rgba(236, 206, 130, .10) 58%, transparent);
  filter: blur(14px);
}
.intro__beam--2 { width: 34vmax; animation-duration: 19s; animation-direction: alternate-reverse; opacity: .8; }

.brand-text { color: var(--muted); }
.intro__names { color: var(--text); }
.intro__hint { color: var(--muted); }

/* ---------- envelope: pearl paper, gold foil ---------- */
.env__shadow { background: radial-gradient(ellipse at center, rgba(120, 90, 40, .38), transparent 70%); filter: blur(14px); }

.env__back {
  background: linear-gradient(160deg, #ffffff 0%, #f7f4ee 55%, #efe9df 100%);
  box-shadow:
    0 40px 70px -30px rgba(120, 90, 40, .45),
    0 12px 24px -12px rgba(120, 90, 40, .18),
    0 0 0 1px rgba(184, 145, 63, .45) inset,
    0 0 0 4px rgba(255, 255, 255, .9) inset,
    0 0 0 5px rgba(184, 145, 63, .25) inset;
}
.env__back::after { opacity: .5; mix-blend-mode: multiply; filter: invert(1) opacity(.25); }
.env__lining {
  background:
    repeating-linear-gradient(45deg, rgba(160, 120, 50, .35) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-45deg, rgba(160, 120, 50, .35) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #f1dfae, #d9bc78);
}
.env__glow { background: radial-gradient(ellipse 60% 55% at 50% 60%, #fffaf0, rgba(240, 210, 140, .7) 40%, transparent 72%); }

.card {
  background: linear-gradient(170deg, #ffffff 0%, #fdfaf3 60%, #f7f1e4 100%);
  box-shadow: 0 0 0 1px rgba(184, 145, 63, .55), 0 18px 34px -14px rgba(120, 90, 40, .35);
}
.card__frame { border-color: rgba(184, 145, 63, .5); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(184, 145, 63, .22); }
.card__eyebrow { color: var(--muted); }
.card__names { color: var(--text); }
.intro.is-rise .card { box-shadow: 0 0 0 1px rgba(184, 145, 63, .7), 0 -10px 60px rgba(240, 210, 140, .55); }

.env__pocket { filter: drop-shadow(0 -1px 0 rgba(184, 145, 63, .85)) drop-shadow(0 -8px 12px rgba(120, 90, 40, .14)); }
.env__fold--l { background: linear-gradient(100deg, #fdfcfa 0%, #f2eee7 100%); }
.env__fold--r { background: linear-gradient(260deg, #fdfcfa 0%, #f2eee7 100%); }
.env__fold--b { background: linear-gradient(0deg, #f1ece4 0%, #ffffff 100%); }

.env__flap-face--out {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolyline points='0,0 50,100 100,0' fill='none' stroke='%23b8913f' stroke-opacity='.95' stroke-width='1.6' vector-effect='non-scaling-stroke'/%3E%3Cpolyline points='4,0 50,92 96,0' fill='none' stroke='%23d8b464' stroke-opacity='.5' stroke-width='.8' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    linear-gradient(180deg, #ffffff 0%, #f8f5ef 60%, #f1ece3 100%);
  box-shadow: none;
}
.env__flap-face--in {
  background:
    repeating-linear-gradient(45deg, rgba(160, 120, 50, .3) 0 1px, transparent 1px 8px),
    linear-gradient(0deg, #ecd8a2, #f8eccb);
}

/* sheen: warm champagne glint that reads on white */
.env__sheen {
  background: linear-gradient(115deg, transparent calc(var(--mx) - 20%), rgba(232, 200, 120, .10) calc(var(--mx) - 5%), rgba(255, 236, 180, .45) var(--mx), rgba(232, 200, 120, .10) calc(var(--mx) + 5%), transparent calc(var(--mx) + 20%));
  mix-blend-mode: normal;
}

/* wax seal: softer drop on white, gentle golden pulse */
.seal { filter: drop-shadow(0 6px 10px rgba(120, 90, 40, .25)); }
.seal::before {
  content: ''; position: absolute; inset: -40%; border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 210, 140, .55), rgba(240, 210, 140, 0) 62%);
  animation: sealAura 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sealAura { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: .9; transform: scale(1.08); } }
.seal.is-broken::before { opacity: 0; animation: none; transition: opacity .6s; }

/* sparkle twinkles placed around envelope (generated in JS) */
.twinkle {
  position: absolute; width: var(--s, 14px); height: var(--s, 14px); pointer-events: none; z-index: 1;
  background: radial-gradient(circle, #fff 0 12%, rgba(255, 236, 180, .9) 18%, transparent 60%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0C10.8 6.5 13.5 9.2 20 10C13.5 10.8 10.8 13.5 10 20C9.2 13.5 6.5 10.8 0 10C6.5 9.2 9.2 6.5 10 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0C10.8 6.5 13.5 9.2 20 10C13.5 10.8 10.8 13.5 10 20C9.2 13.5 6.5 10.8 0 10C6.5 9.2 9.2 6.5 10 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  background-color: #d8b464;
  opacity: 0;
  animation: twinkle var(--t, 3s) var(--dl, 0s) ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* =====================================================================
   SITE
   ===================================================================== */
.sec-title { color: var(--text); }

/* hero: photo melts into white */
.hero__veil {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .78) 60%, rgba(255, 255, 255, .96) 76%, #fff 100%),
    radial-gradient(ellipse at 50% 30%, rgba(255, 240, 200, .25), transparent 60%);
}
.hero__names { color: var(--text); text-shadow: 0 2px 30px rgba(255, 255, 255, .9); }
.hero__sub { color: var(--text); }
.hero__eyebrow { color: var(--gold); }
.scroll-cue__txt { color: var(--muted); }

/* save the date */
.std {
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, #fffaf0 0%, rgba(255, 250, 240, 0) 70%),
    #fff;
}
.std__glow { background: radial-gradient(circle, rgba(232, 196, 112, .22), transparent 60%); }
.std__word { -webkit-text-stroke: 1px rgba(184, 145, 63, .75); background-image: linear-gradient(90deg, #e2c47c, #b8913f 45%, #8a6524); }
.std__word--mid { background: none; -webkit-text-stroke: 0; }
.count__num { color: var(--gold); text-shadow: 0 0 24px rgba(232, 196, 112, .45); }

/* story */
.story { background: linear-gradient(180deg, #fff, var(--pearl) 50%, #fff); }
.chapter__img { box-shadow: 0 30px 60px -30px var(--shadow); }
.chapter__img::after { background: linear-gradient(180deg, transparent 55%, rgba(255, 255, 255, .55)); }
.chapter__float { box-shadow: 0 24px 50px -16px rgba(120, 90, 40, .35), 0 0 0 6px #fff, 0 0 0 7px var(--line-2); }
.chapter__title { color: var(--text); }
.chapter__num { -webkit-text-stroke: 1px rgba(184, 145, 63, .7); }

/* timeline */
.timeline { background: linear-gradient(180deg, #fff, #fbf6ea 50%, #fff); }
.tl__dot { background: #fff; }
.tl__time { color: var(--dim); }
.tl__item.on .tl__time { color: var(--gold); }
.tl__item.on .tl__dot { background: var(--gold-hi); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(232, 196, 112, .2), 0 0 16px rgba(232, 196, 112, .9); }
.tl__fill { box-shadow: 0 0 10px rgba(232, 196, 112, .9); }

/* places */
.place__img { box-shadow: 0 30px 60px -30px var(--shadow); }
.place__img::after { background: linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 30%, transparent 55%, #fff); }
.place__panel {
  background: rgba(255, 255, 255, .78);
  border-color: var(--line-2);
  box-shadow: 0 30px 60px -30px rgba(120, 90, 40, .3), inset 0 0 0 4px rgba(255, 255, 255, .7);
}
.place__name { color: var(--text); }
.place__time { color: var(--gold); }
.btn-map { color: var(--gold-lo); background: #fff; }
.btn-map:hover, .btn-map:focus-visible { color: #fff; }

/* gallery */
.gallery { background: linear-gradient(180deg, #fff, var(--pearl)); }
.gallery__count span:first-child { color: var(--gold); }
.reel__slide { box-shadow: 0 30px 50px -30px rgba(120, 90, 40, .45); }
.reel__slide::after { background: linear-gradient(180deg, transparent 60%, rgba(40, 30, 15, .55)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.reel__slide figcaption { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.reel__hint { color: var(--muted); }

.lb { background: rgba(255, 255, 255, .97); }
.lb__cap { color: var(--gold); }

/* rsvp */
.rsvp { background: radial-gradient(ellipse 90% 60% at 50% 55%, #fdf6e6, #fff 70%); }
.rsvp__glow { background: radial-gradient(ellipse, rgba(232, 196, 112, .18), transparent 62%); }
.rsvp__panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(253, 249, 240, .88));
  border-color: var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(120, 90, 40, .4), inset 0 0 0 5px rgba(255, 255, 255, .9), inset 0 0 0 6px var(--line);
}
.field input, .field textarea { color: var(--text); }
.field__line { background: rgba(43, 38, 32, .14); }
.choice__opt.is-on { color: #fff; }
.stepper__ctl button { color: var(--gold); background: #fff; }
.stepper__ctl output { color: var(--text); }
.chip.is-on { color: var(--gold-lo); background: rgba(232, 196, 112, .14); }
.btn-confirm { background: #fff; color: var(--gold-lo); }
.btn-confirm:hover, .btn-confirm:focus-visible { color: #fff; }
.btn-confirm::after { background: linear-gradient(100deg, transparent, rgba(232, 196, 112, .35), transparent); }
.btn-confirm__spin { border-color: rgba(184, 145, 63, .25); border-top-color: var(--gold); }
.thanks { background: linear-gradient(160deg, #fff, #fdf8ee); }
.thanks__title { color: var(--text); }
.thanks__txt { color: var(--gold); }
.thanks__mark path { stroke: var(--gold); }

/* finale */
.finale { background: radial-gradient(ellipse 70% 50% at 50% 42%, #fff6e2, #fff 70%); }
.finale::after { background: linear-gradient(transparent, #fbf6ea); }
.finale__glow { background: radial-gradient(circle, rgba(232, 196, 112, .35), transparent 62%); }
.finale__mono { filter: drop-shadow(0 6px 24px rgba(184, 145, 63, .3)); }
.finale__quote { color: var(--text); }
.finale__foot { color: var(--muted); }

/* music button */
.music {
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 10px 30px -10px rgba(120, 90, 40, .35);
}

/* =====================================================================
   SMALL PHONES
   ===================================================================== */
@media (max-width: 380px) {
  .intro { gap: 1.4rem; padding-top: 3.6rem; }
  .env { width: 88vw; }
  .intro__names { font-size: 1.75rem; }
  .cta-text { letter-spacing: .36em; }
  .tl { --col: 5.2rem; }
  .tl__time { font-size: 1.9rem; }
  .count__lbl { letter-spacing: .22em; }
  .place__panel { padding: 1.8rem 1.25rem 1.6rem; }
  .chip { padding: .65rem .8rem; }
}
@media (max-height: 640px) {
  .intro { gap: 1rem; }
  .intro__cta { margin-top: .6rem; }
  .hero__content { padding-bottom: calc(13svh + var(--safe-b)); }
}

/* hidden YouTube audio host */
.yt-host { position: fixed; left: -9999px; top: 0; width: 200px; height: 200px; pointer-events: none; }


/* =====================================================================
   PURE WHITE — no yellow wash (overrides above)
   ===================================================================== */
:root { --pearl: #fafafa; --ink: #fafafa; --ink-2: #f4f4f4; --shadow: rgba(60, 50, 40, .14); }
.intro { background: radial-gradient(ellipse 90% 60% at 50% 45%, #ffffff 0%, #ffffff 55%, #f6f6f7 100%); }
.intro__halo { background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 40%); }
.intro__rays {
  background: repeating-conic-gradient(from 0deg, rgba(150, 150, 160, .045) 0deg 1.5deg, rgba(255, 255, 255, 0) 1.5deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .4) 14%, transparent 34%);
  mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .4) 14%, transparent 34%);
}
.intro__beam { display: none; }
.bloom { background: radial-gradient(circle at 50% 46%, #fff 0%, rgba(255, 255, 255, .98) 40%, rgba(255, 255, 255, 0) 75%); }
.env__shadow { background: radial-gradient(ellipse at center, rgba(40, 35, 30, .28), transparent 70%); }
.env__back { background: linear-gradient(160deg, #ffffff 0%, #f8f8f8 55%, #f0f0f0 100%); box-shadow: 0 40px 70px -30px rgba(40, 35, 30, .35), 0 12px 24px -12px rgba(40, 35, 30, .14), 0 0 0 1px rgba(184, 145, 63, .45) inset, 0 0 0 4px #fff inset, 0 0 0 5px rgba(184, 145, 63, .2) inset; }
.env__fold--l { background: linear-gradient(100deg, #ffffff 0%, #f3f3f3 100%); }
.env__fold--r { background: linear-gradient(260deg, #ffffff 0%, #f3f3f3 100%); }
.env__fold--b { background: linear-gradient(0deg, #efefef 0%, #ffffff 100%); }
.env__pocket { filter: drop-shadow(0 -1px 0 rgba(184, 145, 63, .8)) drop-shadow(0 -8px 12px rgba(40, 35, 30, .08)); }
.env__sheen { background: linear-gradient(115deg, transparent calc(var(--mx) - 20%), rgba(255, 255, 255, .5) var(--mx), transparent calc(var(--mx) + 20%)); }
.card { background: #fff; }
.seal::before { background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 62%); }
.std, .story, .timeline, .gallery, .rsvp, .finale { background: #fff; }
.std__glow, .rsvp__glow, .finale__glow { background: radial-gradient(circle, rgba(200, 200, 205, .12), transparent 60%); }
.finale::after { background: linear-gradient(transparent, #fafafa); }
.rsvp__panel, .thanks { background: #fff; }
.chip.is-on { background: #fff; }

/* =====================================================================
   NAMES — elegant handwritten calligraphy (Great Vibes)
   ===================================================================== */
:root { --names: 'Great Vibes', 'Pinyon Script', cursive; }

.intro__names {
  font-family: var(--names); font-weight: 400; letter-spacing: 0;
  font-size: clamp(2.8rem, 13vw, 4.4rem); line-height: 1.15;
}
.intro__names span { font-family: var(--names); font-size: .8em; padding: 0 .18em; }

.card__names { font-family: var(--names); font-size: clamp(1.5rem, 6.4vw, 1.9rem); letter-spacing: 0; line-height: 1.1; }
.card__names i { font-family: var(--names); }

.hero__names {
  font-family: var(--names); font-weight: 400; letter-spacing: 0;
  font-size: clamp(4.6rem, 24vw, 10rem); line-height: .95;
}
.hero__names .split { padding: .12em .25em .22em; margin: -.12em -.25em -.18em; }
.hero__amp { font-family: var(--names); font-size: .5em; margin: -.1em 0 -.12em; }

.finale__sign { font-family: var(--names); font-size: clamp(2.6rem, 12vw, 3.8rem); }

@media (min-width: 900px) {
  .hero__names { font-size: clamp(6rem, 11vw, 11rem); }
}

/* clearer cursive capital "A" for Alex */
.capA { font-family: 'Pinyon Script', cursive; font-weight: 400; font-style: normal; font-size: 1.04em; padding-right: .02em; }

/* =====================================================================
   Replace the rotating rays with soft gold light ripples
   ===================================================================== */
.intro__rays {
  width: 0; height: 0; background: none; animation: none;
  -webkit-mask: none; mask: none;
}
.intro__rays::before,
.intro__rays::after,
.intro__halo::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: min(70vw, 520px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(196, 160, 82, .55);
  box-shadow: 0 0 24px rgba(216, 180, 100, .25), inset 0 0 24px rgba(216, 180, 100, .15);
  transform: translate(-50%, -50%) scale(.35);
  opacity: 0;
  animation: ripple 7.5s cubic-bezier(.2, .6, .35, 1) infinite;
  pointer-events: none;
}
.intro__rays::after { animation-delay: 2.5s; }
.intro__halo::before { animation-delay: 5s; }
@keyframes ripple {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
  15%  { opacity: .9; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}
/* the halo now just a soft pearl glow under the envelope */
.intro__halo {
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(250, 246, 238, .7) 18%, rgba(255, 255, 255, 0) 40%);
}
.intro.is-opening .intro__rays,
.intro.is-opening .intro__halo::before { opacity: 0; transition: opacity .8s; }

/* ripples off — replaced by falling gold glitter (canvas) */
.intro__rays::before,
.intro__rays::after,
.intro__halo::before { display: none; }

/* =====================================================================
   HERO — couture invitation composition
   ===================================================================== */
.hero { align-items: center; justify-content: center; }
.hero__veil {
  background:
    radial-gradient(ellipse 62% 46% at 50% 52%, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .55) 55%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .25) 30%, rgba(255, 255, 255, .5) 70%, #fff 100%);
}
.hero__content {
  padding: 0 1.75rem; text-align: center; max-width: 820px;
  display: flex; flex-direction: column; align-items: center;
}

/* --- frame --- */
.hero__frame {
  position: absolute; z-index: 2; pointer-events: none;
  inset: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(14px + var(--safe-b));
  --fc: rgba(184, 145, 63, .75);
}
.hf { position: absolute; border-color: var(--fc); border-style: solid; border-width: 0; transition: transform 1.6s var(--ease-io); }
.hf--t, .hf--b { left: 58px; right: 58px; height: 9px; border-top-width: 1px; border-bottom-width: 1px; transform: scaleX(0); }
.hf--t { top: 1.5px; }
.hf--b { bottom: 1.5px; }
.hf--l, .hf--r { top: 58px; bottom: 58px; width: 9px; border-left-width: 1px; border-right-width: 1px; transform: scaleY(0); }
.hf--l { left: 1.5px; }
.hf--r { right: 1.5px; }
.hf-corner { position: absolute; width: 60px; height: 60px; fill: none; stroke: var(--fc); stroke-width: 1; opacity: 0; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.hf-corner circle { fill: var(--gold); stroke: none; }
.hf-corner--tl { top: 0; left: 0; transform: scale(.6); transform-origin: 0 0; }
.hf-corner--tr { top: 0; right: 0; transform: scale(-.6, .6); transform-origin: 100% 0; }
.hf-corner--bl { bottom: 0; left: 0; transform: scale(.6, -.6); transform-origin: 0 100%; }
.hf-corner--br { bottom: 0; right: 0; transform: scale(-.6, -.6); transform-origin: 100% 100%; }
.site.is-on .hf-corner { opacity: 1; transition-delay: .3s; }
.site.is-on .hf-corner--tl { transform: none; }
.site.is-on .hf-corner--tr { transform: scaleX(-1); }
.site.is-on .hf-corner--bl { transform: scaleY(-1); }
.site.is-on .hf-corner--br { transform: scale(-1); }
.site.is-on .hf { transform: none; transition-delay: .7s; }

/* --- crest --- */
.hero__crest { position: relative; width: 68px; height: 68px; display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: opacity 1.4s .6s var(--ease), transform 1.4s .6s var(--ease); }
.hero__crest svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; transform: rotate(-90deg); transition: transform 2.4s .6s var(--ease); }
.hero__crest span { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .1em; padding-left: .1em; color: var(--gold); }
.site.is-on .hero__crest { opacity: 1; transform: none; }
.site.is-on .hero__crest svg { transform: none; }

/* --- kicker --- */
.hero__kick {
  margin-top: 1.4rem; font-family: var(--sans); font-weight: 500; font-size: .62rem;
  letter-spacing: 1.1em; padding-left: 1.1em; text-transform: uppercase; color: var(--gold);
  opacity: 0; transition: opacity 1.6s 1s var(--ease), letter-spacing 2.2s 1s var(--ease), padding 2.2s 1s var(--ease);
}
.site.is-on .hero__kick { opacity: 1; letter-spacing: .55em; padding-left: .55em; }

/* --- names --- */
.hero__names { margin: .9rem 0 .2rem; position: relative; text-shadow: none; color: #221d17; }
.split .ch { filter: blur(12px); transition: transform 1.6s var(--ease), opacity 1.6s var(--ease), filter 1.6s var(--ease); transition-delay: calc(var(--i) * 70ms + var(--base, 0ms) + 1100ms); }
.site.is-on .split .ch { filter: none; }
.hero__amp { color: var(--gold); transition-delay: 1.7s, 1.7s; }
/* gold light sweeping across the lettering */
.hero__names::after {
  content: ''; position: absolute; inset: -10% -20%; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(214, 178, 96, .95) 48%, rgba(250, 226, 160, 1) 50%, rgba(214, 178, 96, .95) 52%, transparent 60%);
  background-size: 300% 100%; background-position: 120% 0;
  mix-blend-mode: lighten;
}
.site.is-on .hero__names::after { animation: nameSweep 9s 3.2s ease-in-out infinite; }
@keyframes nameSweep { 0% { background-position: 120% 0; } 22%, 100% { background-position: -20% 0; } }

/* --- sub line --- */
.hero__sub {
  margin-top: .6rem; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.05rem, 4.6vw, 1.4rem); color: #5d554a;
  transition: all 1.4s 2.3s var(--ease);
}

/* --- ornament --- */
.hero__orn { width: min(220px, 60vw); height: 20px; margin: 1.3rem 0 1.2rem; fill: none; stroke: var(--gold); stroke-width: 1; overflow: visible; }
.hero__orn circle { fill: var(--gold); stroke: none; opacity: 0; transition: opacity .8s 3.2s; }
.hero__orn path { stroke-dasharray: 240; stroke-dashoffset: 240; transition: stroke-dashoffset 1.8s 2.5s var(--ease-io); }
.site.is-on .hero__orn path { stroke-dashoffset: 0; }
.site.is-on .hero__orn circle { opacity: 1; }

/* --- date block --- */
.hero__date {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; animation: none;
  font-size: inherit; letter-spacing: 0; padding: 0; text-transform: none;
  opacity: 0; transform: translateY(12px); transition: opacity 1.4s 2.9s var(--ease), transform 1.4s 2.9s var(--ease);
}
.site.is-on .hero__date { opacity: 1; transform: none; }
.hero__date span {
  font-family: var(--sans); font-weight: 500; font-size: .56rem; letter-spacing: .38em; padding-left: .38em;
  text-transform: uppercase; color: #6f665a; min-width: 6.6rem;
}
.hero__date strong {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 6.6vw, 2.1rem); line-height: 1;
  padding: .35rem 1.1rem; margin: 0 .2rem;
  border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2);
  background: linear-gradient(100deg, #8a6524 0%, #b8913f 30%, #e2c47c 50%, #b8913f 70%, #8a6524 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.scroll-cue { bottom: calc(2.6rem + var(--safe-b)); transition-delay: 3.6s; }

@media (max-width: 380px) {
  .hero__date span { min-width: 5.4rem; font-size: .5rem; letter-spacing: .28em; }
  .hero__date strong { padding: .3rem .7rem; }
  .hero__kick { font-size: .56rem; }
}
@media (max-height: 700px) {
  .hero__crest { width: 54px; height: 54px; }
  .hero__kick { margin-top: .9rem; }
  .hero__orn { margin: .8rem 0 .8rem; }
}

/* desktop: one grand line, centered */
@media (min-width: 900px) {
  .hero { align-items: center; justify-content: center; }
  .hero__content { text-align: center; padding: 0 2rem; max-width: 1100px; }
  .hero__names { font-size: clamp(5rem, 8.2vw, 8.6rem); white-space: nowrap; }
  .hero__names .split { display: inline-block; }
  .hero__amp { display: inline-block; margin: 0 .25em; font-size: .6em; vertical-align: .1em; }
  .hero__frame { inset: 28px; }
  .hero__veil {
    background:
      radial-gradient(ellipse 48% 52% at 50% 52%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .6) 55%, rgba(255, 255, 255, 0) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .2) 40%, rgba(255, 255, 255, .5) 75%, #fff 100%);
  }
}

/* hero fine-tuning */
.hero__date strong { white-space: nowrap; }
@media (max-width: 899px) {
  .hero__date span { min-width: 0; flex: 1 1 0; font-size: .52rem; letter-spacing: .3em; }
  .hero__date span:first-child { text-align: right; padding-right: .3rem; }
  .hero__date span:last-child { text-align: left; padding-left: .6rem; }
  .hero__date { width: min(100%, 340px); }
  .hero__date strong { font-size: clamp(1.35rem, 6.2vw, 1.8rem); padding: .35rem .85rem; }
}
@media (min-width: 900px) {
  .hero__amp { vertical-align: .32em; }
}

/* =====================================================================
   BACK TO TOP
   ===================================================================== */
.totop {
  position: fixed; z-index: 60; left: 50%; bottom: calc(1rem + var(--safe-b));
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  width: 58px; height: 58px; justify-content: center; border-radius: 50%;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); color: var(--gold);
  box-shadow: 0 12px 30px -12px rgba(120, 90, 40, .4), inset 0 0 0 3px #fff, inset 0 0 0 4px var(--line);
  opacity: 0; pointer-events: none; transform: translate(-50%, 20px) scale(.8);
  transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .4s;
}
.totop.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.totop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; animation: totopNudge 2.4s ease-in-out infinite; }
.totop span { font-size: .45rem; letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; }
.totop:hover { box-shadow: 0 14px 34px -10px rgba(184, 145, 63, .55), inset 0 0 0 3px #fff, inset 0 0 0 4px var(--line-2); }
.totop:active { transform: translate(-50%, 0) scale(.94); }
@keyframes totopNudge { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-2px); } }
/* keep the footer line clear of the button */
.finale__foot { bottom: calc(5.2rem + var(--safe-b)); }

/* ===== WhatsApp RSVP note ===== */
.wa-note{
  margin:14px 0 0;text-align:center;
  font:500 10px/1.4 'Montserrat',sans-serif;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(60,50,30,.5);
}
.wa-note::before{
  content:"";display:inline-block;width:11px;height:11px;margin:-2px 8px 0 0;vertical-align:middle;
  background:#b8954a;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.form.is-hidden + .wa-note{display:none}

/* ===== WhatsApp: two recipients ===== */
.wa-note{margin:1.6rem 0 .9rem}
.wa-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.wa-pair .btn-confirm{margin-top:0;width:100%}
.wa-pair .btn-confirm__txt{font-family:'Great Vibes',cursive;font-size:1.65rem;letter-spacing:0;text-transform:none;padding-left:0;line-height:1}

.thanks__note{margin-top:1.4rem;font:500 10px/1.4 'Montserrat',sans-serif;letter-spacing:.32em;text-transform:uppercase;color:rgba(60,50,30,.45)}
