:root {
  --ink: #2f312b;
  --ivory: #fbf8f1;
  --paper: #f2ede3;
  --paper-bright: #fffdf9;
  --gold: #a77936;
  --gold-light: #d5b16d;
  --muted: #88775c;
  --hairline: rgba(167, 121, 54, .3);
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { -ms-overflow-style: none; scroll-behavior: smooth; scrollbar-width: none; touch-action: pan-x pan-y; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
html.intro-locked, html.intro-locked body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.lenis { scroll-behavior: auto; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--ivory); font-family: var(--serif); }
body, button, input, select, textarea { font-family: var(--serif); }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--ivory); background: var(--gold); }
main { position: relative; overflow: clip; }
main:focus { outline: none; }
.grain { position: fixed; z-index: 70; inset: 0; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.26'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }

/* Progress rail */
.scroll-meter { position: fixed; z-index: 90; top: 0; left: 0; display: block; width: 100%; height: 2px; background: rgba(167,121,54,.14); }
.scroll-meter span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center; will-change: transform; background: linear-gradient(90deg, var(--gold), var(--gold-light)); box-shadow: 0 0 12px rgba(213,177,109,.65); }

/* Opening */
.opening { position: fixed; z-index: 100; display: grid; place-content: center; inset: 0; overflow: hidden; color: var(--ink); background: radial-gradient(circle at 50% 38%, #fffdfa, var(--paper) 76%); text-align: center; perspective: 1000px; }
.opening::before, .opening::after { content: ""; position: absolute; z-index: 5; inset: 21px; border: 1px solid rgba(167,121,54,.55); pointer-events: none; }
.opening::after { inset: 29px; border-color: rgba(167,121,54,.18); }
.opening.is-open { opacity: 0; visibility: hidden; }
.opening__paper { position: absolute; z-index: 1; top: 0; bottom: 0; width: 51%; background: #faf6ee; }
.opening__paper--left { left: 0; border-right: 1px solid var(--hairline); }
.opening__paper--right { right: 0; background: #f4ecde; border-left: 1px solid rgba(167,121,54,.15); }
.opening__card { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.opening__flash { position: absolute; z-index: 4; top: 50%; left: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; background: radial-gradient(circle, rgba(235,190,96,.85) 0%, rgba(226,176,77,.45) 30%, rgba(196,129,25,.12) 55%, transparent 72%); pointer-events: none; opacity: 0; transform: scale(0); }
.eyebrow { margin: 0; color: var(--gold); font: 10px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.opening__card .eyebrow, .opening__names { color: var(--gold); }
.opening__recipient { margin: -6px 0 -2px; color: var(--ink); font: 20px/1 var(--serif); font-style: italic; letter-spacing: .035em; }
.seal-stage { position: relative; display: grid; width: 178px; height: 178px; margin: 9px 0 25px; place-items: center; }
.seal-stage::after { content: ""; position: absolute; z-index: 4; inset: 13%; border: 1px solid rgba(181,126,43,.55); border-radius: 50%; opacity: 0; transform: scale(.78); animation: tap-ripple 1.75s ease-out infinite; pointer-events: none; }
.seal { position: relative; isolation: isolate; display: grid; place-items: center; width: 178px; height: 178px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transform-origin: 50% 88%; transform-style: preserve-3d; will-change: transform, filter; }
.seal::before { content: ""; position: absolute; z-index: 0; inset: 16%; border-radius: 50%; background: rgba(226,176,77,.24); box-shadow: 0 0 17px 6px rgba(226,176,77,.34), 0 0 38px 14px rgba(196,129,25,.16); opacity: .62; transform: scale(.9); animation: seal-beacon 2.25s ease-in-out infinite; pointer-events: none; }
.seal:hover::before, .seal:focus-visible::before { animation-duration: 1.25s; }
.seal.is-opening::before { animation: none; opacity: 0; transform: scale(1.35); transition: opacity .22s ease, transform .3s ease; }
@keyframes seal-beacon {
  0%, 100% { opacity: .38; transform: scale(.86); box-shadow: 0 0 13px 4px rgba(218,166,66,.24), 0 0 27px 10px rgba(196,129,25,.1); }
  50% { opacity: .96; transform: scale(1.08); box-shadow: 0 0 22px 8px rgba(235,190,96,.5), 0 0 45px 17px rgba(196,129,25,.21); }
}
@keyframes tap-ripple {
  0%, 24% { opacity: 0; transform: scale(.72); }
  38% { opacity: .72; }
  72%, 100% { opacity: 0; transform: scale(1.3); }
}
@keyframes tap-cue {
  0%, 5% { opacity: .88; transform: translate3d(0, 0, 0) rotate(-18deg) scale(1); }
  9% { opacity: 1; transform: translate3d(-15px, -17px, 0) rotate(-18deg) scale(.9); }
  11% { opacity: 1; transform: translate3d(-17px, -19px, 0) rotate(-18deg) scale(.82); }
  15% { opacity: .88; transform: translate3d(-7px, -8px, 0) rotate(-18deg) scale(.96); }
  21%, 26% { opacity: .88; transform: translate3d(0, 0, 0) rotate(-18deg) scale(1); }
  30% { opacity: 1; transform: translate3d(-15px, -17px, 0) rotate(-18deg) scale(.9); }
  32% { opacity: 1; transform: translate3d(-17px, -19px, 0) rotate(-18deg) scale(.82); }
  36% { opacity: .88; transform: translate3d(-7px, -8px, 0) rotate(-18deg) scale(.96); }
  41% { opacity: .88; transform: translate3d(0, 0, 0) rotate(-18deg) scale(1); }
  45%, 95% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-18deg) scale(.85); }
  100% { opacity: .88; transform: translate3d(0, 0, 0) rotate(-18deg) scale(1); }
}
.seal.peel-ready { opacity: 1; }
.seal__top, .seal__back, .seal__bottom { border-radius: 50%; overflow: hidden; }
.seal__top img, .seal__back img { display: block; width: 178px; height: 178px; object-fit: contain; }
.seal__top { background: transparent; }
.seal__back { background: radial-gradient(circle at 58% 42%, #edc36d 0%, #c78928 52%, #8a4f0e 100%); }
.seal__back img { filter: brightness(.8) sepia(.22) saturate(1.2); transform: scaleX(-1); }
.seal__bottom { border: 0; background: transparent; }
.seal__text { position: absolute; z-index: 5; bottom: -24px; color: var(--ink); font: 9px var(--mono); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.seal__tap-cue { position: absolute; z-index: 8; right: -17px; bottom: -1px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(167,121,54,.4); border-radius: 50%; color: var(--gold); background: rgba(255,253,249,.92); box-shadow: 0 8px 20px rgba(78,49,16,.13); animation: tap-cue 8.5s ease-in-out infinite; pointer-events: none; }
.seal__tap-cue svg { width: 21px; height: 21px; stroke-width: 1.6; }
.seal.is-opening + .seal__tap-cue { opacity: 0; animation: none; transition: opacity .18s ease; }
.seal__tap-cue.is-swipe-cue { animation-name: swipe-cue; }
@keyframes swipe-cue {
  0%, 5% { opacity: .88; transform: translate3d(0, 0, 0) rotate(-18deg) scale(1); }
  8% { opacity: 1; transform: translate3d(-12px, -14px, 0) rotate(-26deg) scale(.92); }
  11% { opacity: 1; transform: translate3d(-24px, -6px, 0) rotate(-34deg) scale(.84); }
  13% { opacity: .95; transform: translate3d(-30px, 2px, 0) rotate(-38deg) scale(.8); }
  16% { opacity: .88; transform: translate3d(-14px, -6px, 0) rotate(-24deg) scale(.94); }
  21%, 26% { opacity: .88; transform: translate3d(0, 0, 0) rotate(-18deg) scale(1); }
  29% { opacity: 1; transform: translate3d(-12px, -14px, 0) rotate(-26deg) scale(.92); }
  32% { opacity: 1; transform: translate3d(-24px, -6px, 0) rotate(-34deg) scale(.84); }
  34% { opacity: .95; transform: translate3d(-30px, 2px, 0) rotate(-38deg) scale(.8); }
  37% { opacity: .88; transform: translate3d(-14px, -6px, 0) rotate(-24deg) scale(.94); }
  41% { opacity: .88; transform: translate3d(0, 0, 0) rotate(-18deg) scale(1); }
  45%, 95% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-18deg) scale(.85); }
  100% { opacity: .88; transform: translate3d(0, 0, 0) rotate(-18deg) scale(1); }
}
.seal-stage:has(.seal.is-opening)::after { opacity: 0; animation: none; }
.seal:focus { outline: none; }
.seal:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.opening__names { margin: 0; font-size: clamp(27px, 4vw, 42px); letter-spacing: .14em; }
.opening__names span { font: 43px var(--script); letter-spacing: 0; }
.opening__date { margin: 0; color: var(--muted); font: 9px var(--mono); letter-spacing: .28em; }
.skip-intro { position: absolute; z-index: 6; bottom: 32px; left: 50%; min-height: 38px; padding: 0 18px; border: 1px solid rgba(167,121,54,.52); border-radius: 999px; color: var(--muted); background: rgba(255,253,249,.74); box-shadow: 0 7px 18px rgba(79,54,20,.06); font: 9px var(--mono); letter-spacing: .13em; text-transform: uppercase; transform: translateX(-50%); transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; cursor: pointer; }
.skip-intro:hover, .skip-intro:focus-visible { border-color: var(--gold); color: #fff; background: var(--gold); outline: none; transform: translateX(-50%) translateY(-2px); }

/* A sparse botanical drift layer. GSAP drives one batched canvas per field. */
.flower-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.flower-field--document { z-index: 2; }
.flower-canvas { position: fixed; top: 0; left: 0; display: block; pointer-events: none; }
.section-shell > * { position: relative; z-index: 3; }
.opening__card { z-index: 3; }

/* Header */
.site-header { position: fixed; z-index: 60; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 22px clamp(22px, 4vw, 58px); color: var(--ink); transform: translateY(-120%); transition: background .25s ease, padding .25s ease, border-color .25s ease; }
.site-header.is-visible { transform: none; }
.site-header.is-scrolled { padding-top: 17px; padding-bottom: 17px; border-bottom: 1px solid var(--hairline); background: rgba(251,248,241,.9); box-shadow: 0 10px 30px rgba(71,53,25,.06); backdrop-filter: blur(14px); }
.site-header:not(.is-scrolled) { color: #fff7e8; text-shadow: 0 2px 9px rgba(20,9,3,.8); }
.site-header:not(.is-scrolled) .header-brand { color: #f2c56d; }
.site-header:not(.is-scrolled) .site-nav a { color: rgba(255,247,232,.84); }
.site-header:not(.is-scrolled) .site-nav a:hover, .site-header:not(.is-scrolled) .site-nav a:focus-visible { color: #ffd98f; }
.site-header:not(.is-scrolled) .sound-control { color: #fff7e8; }
.header-brand { color: var(--gold); font: 29px var(--script); text-decoration: none; }
.site-nav { display: flex; gap: clamp(16px, 2.5vw, 30px); margin-left: auto; margin-right: clamp(18px, 3.5vw, 48px); }
.site-nav a { color: rgba(47,49,43,.68); font: 9px var(--mono); letter-spacing: .15em; text-decoration: none; text-transform: uppercase; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold); }
.sound-control { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; color: var(--ink); background: transparent; font: 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.sound-control__icon, .floating-sound-control__icon { display: grid; place-items: center; line-height: 0; }
.sound-control__icon svg { width: 14px; height: 14px; color: var(--gold); }
.floating-sound-control { position: fixed; z-index: 61; right: clamp(18px, 3vw, 34px); bottom: clamp(18px, 3vw, 32px); display: grid; width: 52px; height: 52px; place-items: center; padding: 0; border: 1px solid rgba(167,121,54,.55); border-radius: 50%; color: var(--ink); background: rgba(255,253,249,.92); box-shadow: 0 12px 26px rgba(71,53,25,.12); backdrop-filter: blur(10px); cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease; }
.floating-sound-control:hover, .floating-sound-control:focus-visible { color: var(--ivory); background: var(--gold); transform: translateY(-3px); }
.floating-sound-control.is-playing { color: var(--ivory); background: var(--gold); }
.floating-sound-control__icon svg { width: 19px; height: 19px; }

/* Hero */
.section-shell { position: relative; z-index: 1; min-height: 100vh; }
.hero-fixed-bg { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; user-select: none; }
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100svh; height: 100dvh; min-height: 0; padding: 112px 24px 114px; overflow: hidden; color: #fff8ea; text-align: center; isolation: isolate; background: transparent; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 24px; border: 1px solid rgba(255,218,145,.68); opacity: var(--border-opacity, 1); }
.hero__eyebrow { position: relative; color: #f5cf85; text-shadow: 0 2px 8px rgba(17,7,2,.9); }
.hero__object { position: relative; z-index: 2; width: clamp(105px, 11vw, 142px); margin: 23px 0 15px; transform-style: preserve-3d; will-change: transform; }
.hero__monogram { position: relative; z-index: 2; padding: 0; border: 0; background: transparent; transform: translateZ(35px); }
.hero__monogram img { display: block; width: 100%; filter: drop-shadow(0 3px 7px rgba(20,8,2,.78)); }
.hero__title { position: relative; z-index: 2; max-width: 1000px; margin: 0; color: #fff8ea; font-size: clamp(56px, 8.3vw, 108px); font-weight: 500; letter-spacing: .015em; line-height: .88; text-shadow: 0 2px 3px rgba(19,8,2,.95), 0 7px 22px rgba(19,8,2,.86); }
.hero__title span { display: inline-block; color: #f3c66f; font: clamp(54px, 7.5vw, 90px) var(--script); text-shadow: 0 2px 3px rgba(19,8,2,.95), 0 6px 18px rgba(19,8,2,.86); transform: translateY(6px); }
.hero__subtitle { position: relative; z-index: 2; max-width: 450px; margin: 22px 0 16px; color: #fff8ea; font-size: clamp(18px, 1.9vw, 22px); font-style: italic; line-height: 1.22; text-shadow: 0 2px 3px rgba(19,8,2,.95), 0 5px 14px rgba(19,8,2,.9); }
.hero .ornament { color: #f6d18b; filter: drop-shadow(0 2px 4px rgba(19,8,2,.9)); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold); }
.ornament span { display: block; width: 45px; height: 1px; background: currentColor; }
.ornament b { font-size: 15px; font-weight: 400; }
.scroll-prompt { position: absolute; z-index: 5; bottom: 38px; display: grid; justify-items: center; color: #ffe0a2; font: 9px var(--mono); letter-spacing: .15em; text-decoration: none; text-shadow: 0 2px 7px rgba(19,8,2,.95); text-transform: uppercase; }
.scroll-prompt svg { width: 18px; height: 18px; margin-top: 9px; animation: bob 2s ease infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* Story and invitation */
.interlude { display: grid; place-content: center; min-height: 420px; padding: 75px 25px; overflow: hidden; color: var(--ink); text-align: center; background: var(--paper); }
.interlude .eyebrow, .interlude h2 em, .interlude__star { color: var(--gold); }
.interlude h2 { max-width: 710px; margin: 16px auto; font-size: clamp(42px, 6vw, 72px); font-weight: 500; line-height: .9; }
.interlude h2 em { font-family: var(--script); font-weight: 400; }
.interlude p:not(.eyebrow) { max-width: 370px; margin: 0 auto; color: var(--ink); font-size: 20px; font-style: italic; line-height: 1.25; }
.interlude__star { display: block; margin-top: 22px; font-size: 26px; }
.invitation { display: grid; place-items: center; min-height: 780px; padding: 80px 22px; background: var(--ivory); }
.frame { width: min(100%, 570px); padding: 5px; border: 1px solid rgba(167,121,54,.75); background: var(--paper-bright); box-shadow: 0 28px 60px rgba(71,53,25,.1); transform-style: preserve-3d; will-change: transform; }
.frame__inner { position: relative; padding: clamp(44px, 7vw, 67px) clamp(22px, 6vw, 55px); border: 1px solid rgba(167,121,54,.6); text-align: center; background: var(--paper-bright); }
.frame__inner::before { content: "✦"; position: absolute; top: 15px; left: 50%; color: var(--gold); font-size: 16px; transform: translateX(-50%); }
.script { margin: 14px 0 6px; color: var(--gold); font: clamp(30px, 5vw, 47px) var(--script); }
.invitation h2 { margin: 0; font-size: clamp(48px, 8vw, 75px); font-weight: 500; letter-spacing: .07em; line-height: .9; }
.invitation h2 em { display: block; margin: 5px 0; color: var(--gold); font: 35px var(--script); letter-spacing: 0; }
.invitation .ornament { margin: 25px 0; }
.invitation__copy { max-width: 360px; margin: 0 auto 22px; font-size: 19px; font-style: italic; line-height: 1.2; }
.parents { margin: 18px 0; font-size: 19px; line-height: 1.25; }
.parents small, .date-block small { display: block; margin-bottom: 6px; color: var(--gold); font: 9px var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.invitation__separator { display: block; margin: 25px auto 21px; color: var(--gold); font-size: 13px; line-height: 1; }
.date-block { margin: 0 0 27px; }
.date-block strong { font-size: clamp(25px, 4vw, 35px); font-weight: 500; letter-spacing: .08em; }
.invitation__copy--last { margin-bottom: 0; font-size: 18px; }

/* Countdown and itinerary */
.countdown { display: grid; align-content: center; min-height: 385px; padding: 65px 22px; color: var(--ink); text-align: center; background: var(--paper); }
.countdown::before { content: ""; position: absolute; inset: 25px; border: 1px solid var(--hairline); }
.countdown .eyebrow, .countdown__grid b { position: relative; color: var(--gold); }
.countdown__grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(55px, 142px)); justify-content: center; gap: clamp(13px, 3.5vw, 42px); margin-top: 38px; }
.countdown__grid div { position: relative; }
.countdown__grid div:not(:last-child)::after { content: ":"; position: absolute; right: calc(clamp(13px, 3.5vw, 42px) / -2 - 5px); top: 2px; color: var(--gold); font-size: clamp(30px, 4vw, 42px); }
.countdown__grid b { font-size: clamp(40px, 7.2vw, 78px); font-weight: 400; line-height: 1; }
.flip-number { display: flex; justify-content: center; gap: .06em; min-height: 1.2em; font-variant-numeric: tabular-nums; }
.flip-digit { position: relative; display: block; width: .78em; height: 1.2em; perspective: 3.2em; filter: drop-shadow(0 .12em .15em rgba(71,53,25,.12)); }
.flip-digit__half, .flip-digit__flap { position: absolute; left: 0; width: 100%; height: 50%; overflow: hidden; border: 1px solid rgba(167,121,54,.22); background: var(--paper-bright); backface-visibility: hidden; transform-style: preserve-3d; }
.flip-digit__half--top, .flip-digit__flap--out { top: 0; border-bottom-color: rgba(167,121,54,.34); background: linear-gradient(to bottom, #fffdf9, #f5eee3); }
.flip-digit__half--bottom, .flip-digit__flap--in { bottom: 0; border-top: 0; background: linear-gradient(to bottom, #ede3d4, #fffdf9); }
.flip-digit__half > span, .flip-digit__flap > span { position: absolute; left: 0; display: grid; width: 100%; height: 200%; place-items: center; }
.flip-digit__half--top > span, .flip-digit__flap--out > span { top: 0; }
.flip-digit__half--bottom > span, .flip-digit__flap--in > span { bottom: 0; }
.flip-digit__flap--out { z-index: 3; transform-origin: 50% 100%; opacity: 0; }
.flip-digit__flap--in { z-index: 4; transform: rotateX(90deg); transform-origin: 50% 0; opacity: 0; }
.countdown__grid > div > span { display: block; margin-top: 12px; color: var(--muted); font: 9px var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.itinerary { display: grid; grid-template-columns: minmax(250px,.8fr) minmax(320px,1fr); align-items: center; gap: clamp(45px, 8vw, 120px); min-height: 590px; padding: 75px max(25px,9vw); background: var(--ivory); }
.itinerary__heading .eyebrow, .timeline__time { color: var(--gold); }
.itinerary h2 { margin: 12px 0; font-size: clamp(44px, 6vw, 75px); font-weight: 500; line-height: .92; }
.itinerary__heading > p:last-child { max-width: 290px; margin: 0; font-size: 21px; font-style: italic; line-height: 1.2; }
.timeline { position: relative; width: min(100%, 540px); margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 126px; top: 11px; bottom: 94px; width: 1px; background: rgba(167,121,54,.5); }
.timeline li { display: grid; grid-template-columns: 96px 40px 1fr; gap: 10px; min-height: 106px; }
.timeline__time { padding-top: 6px; font: 10px var(--mono); letter-spacing: .1em; text-align: right; white-space: nowrap; }
.timeline__dot { position: relative; z-index: 1; display: block; width: 13px; height: 13px; margin: 5px auto; border: 3px solid var(--ivory); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.timeline strong { display: block; font-size: 25px; font-weight: 500; line-height: 1; }
.timeline p { margin: 7px 0 0; font-size: 18px; font-style: italic; line-height: 1.15; }

/* Reception */
.reception { display: grid; place-items: center; min-height: min(100svh, 860px); padding: clamp(90px, 10vw, 150px) clamp(22px, 6vw, 80px); overflow: hidden; color: var(--ink); background: var(--paper); }
.reception::before { content: ""; position: absolute; z-index: 1; inset: clamp(16px, 3vw, 28px); border: 1px solid var(--hairline); pointer-events: none; }
.reception__content { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); align-items: center; gap: clamp(38px, 7vw, 110px); width: min(1120px, 100%); text-shadow: none; }
.reception__copy { text-align: left; }
.reception__copy .eyebrow, .reception h2, .event-date span, .location { color: var(--gold); }
.reception h2 { margin: 10px 0 16px; font: clamp(66px, 9vw, 116px) var(--script); }
.reception__lead { max-width: 360px; margin: 0; color: #52554d; font-size: clamp(20px, 3vw, 25px); font-style: italic; line-height: 1.2; }
.event-rule { width: 52px; height: 1px; margin: 29px 0; background: var(--gold); }
.event-date { color: var(--ink); font-size: clamp(19px, 3vw, 26px); letter-spacing: .06em; line-height: 1.5; }
.event-date span { font: 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.reception h3 { margin: 34px 0 0; color: var(--ink); font-size: clamp(30px, 4vw, 47px); font-weight: 500; letter-spacing: .04em; }
.location { margin: 3px 0 25px; font: 11px var(--mono); letter-spacing: .22em; text-transform: uppercase; }
.venue-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map-link { display: inline-flex; align-items: center; gap: 11px; padding: 13px 18px; border: 1px solid rgba(167,121,54,.65); color: var(--ink); background: transparent; font: 10px var(--mono); letter-spacing: .12em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease; }
.map-link:hover, .map-link:focus-visible { color: var(--ivory); background: var(--gold); transform: translateY(-3px); }
.map-link--light { color: var(--ivory); background: var(--gold); }
.map-link--light:hover, .map-link--light:focus-visible { color: var(--ink); background: transparent; }
.map-link svg, .rsvp-submit svg { width: 15px; height: 15px; stroke-width: 1.5; }
.reception__art { display: flex; min-height: 100%; flex-direction: column; align-items: center; justify-content: center; }
.reception__art-note { margin: 0 0 18px; color: var(--muted); font: 9px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.reception__pavilion { display: block; width: min(100%, 700px); max-height: 460px; margin: 0; object-fit: contain; object-position: center bottom; opacity: .93; mix-blend-mode: multiply; will-change: transform, opacity; }

/* Letter */
.guest-actions { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 780px; padding: 110px 22px; overflow: hidden; color: var(--ink); text-align: center; background: radial-gradient(circle at 50% 0%, #fffdf8, #f0e5d5 80%); }
.guest-actions .eyebrow, .guest-actions__intro strong, .rsvp-form label span { color: var(--gold); }
.guest-actions h2 { margin: 13px 0 15px; font-size: clamp(48px, 7vw, 76px); font-weight: 500; line-height: .88; }
.guest-actions__intro { max-width: 500px; margin: 0 0 34px; color: #52554d; font-size: 20px; font-style: italic; line-height: 1.2; }
.guest-actions__intro strong { font-weight: 500; }
.rsvp-form { display: grid; grid-template-columns: repeat(2,minmax(150px,1fr)); gap: 12px; width: min(100%, 590px); text-align: left; }
.rsvp-form label { display: grid; gap: 6px; }
.rsvp-form label span { font: 9px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.rsvp-form__wide, .rsvp-submit { grid-column: 1 / -1; }
.rsvp-form input, .rsvp-form textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(167,121,54,.65); border-radius: 0; outline: none; color: var(--ink); background: var(--paper-bright); font-size: 18px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.rsvp-form textarea { min-height: 154px; resize: vertical; line-height: 1.35; }
.rsvp-form input:focus, .rsvp-form textarea:focus { border-color: var(--gold); background: #fffdf9; box-shadow: 0 0 0 3px rgba(167,121,54,.1); }
.rsvp-submit { justify-self: center; margin-top: 3px; padding: 14px 22px; border: 1px solid var(--gold); color: var(--ivory); background: var(--gold); font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: color .25s ease, background .25s ease, border-color .25s ease; }
.rsvp-submit:hover, .rsvp-submit:focus-visible { color: var(--gold); background: transparent; }
.rsvp-submit:disabled { cursor: default; }
.letter-form.is-sealing, .letter-form.is-sealed { pointer-events: none; }
.letter-success { display: grid; justify-items: center; width: min(100%, 520px); margin: 30px auto 0; text-align: center; }
.letter-success[hidden] { display: none; }
.letter-success .script { margin: 21px 0 0; font-size: clamp(32px, 5vw, 43px); }
.letter-success h3 { margin: 0; color: var(--ink); font-size: clamp(36px, 5vw, 52px); font-weight: 500; line-height: .95; }
.letter-success > p:not(.script) { max-width: 350px; margin: 13px auto 0; color: var(--muted); font-size: 17px; font-style: italic; line-height: 1.3; }
.letter-edit-button { min-height: 41px; margin-top: 20px; padding: 0 18px; border: 1px solid rgba(167,121,54,.65); border-radius: 999px; color: var(--gold); background: transparent; font: 9px var(--mono); letter-spacing: .13em; text-transform: uppercase; transition: color .2s ease, background .2s ease, transform .2s ease; cursor: pointer; }
.letter-edit-button:hover, .letter-edit-button:focus-visible { color: #fff; background: var(--gold); outline: none; transform: translateY(-2px); }
.letter-envelope { position: relative; width: 220px; height: 145px; perspective: 700px; filter: drop-shadow(0 18px 18px rgba(72,48,18,.12)); }
.letter-envelope__paper { position: absolute; z-index: 0; top: -23px; right: 15px; left: 15px; height: 96px; border: 1px solid rgba(167,121,54,.35); background: #fffdf9; }
.letter-envelope__body { position: absolute; z-index: 2; inset: 0; overflow: hidden; border: 1px solid rgba(167,121,54,.58); background: #f7f0e4; }
.letter-envelope__body::before, .letter-envelope__body::after { content: ""; position: absolute; bottom: -2px; width: 155px; height: 155px; border: 1px solid rgba(167,121,54,.26); background: #fbf6ed; transform: rotate(45deg); }
.letter-envelope__body::before { left: -79px; }
.letter-envelope__body::after { right: -79px; }
.letter-envelope__flap { position: absolute; z-index: 4; top: 0; left: 0; width: 100%; height: 82px; border: 1px solid rgba(167,121,54,.55); background: #efe4d2; clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: hidden; }
.letter-envelope__seal { position: absolute; z-index: 6; top: 57px; left: 50%; width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(86,48,8,.2)); transform: translateX(-50%); }
.rsvp-status { min-height: 20px; max-width: 390px; margin: 21px auto 10px; color: var(--muted); font-size: 16px; font-style: italic; }

/* Closing */
.closing { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 390px; padding: 58px 22px; overflow: hidden; color: rgba(47,49,43,.78); text-align: center; background: var(--paper); }
.closing::before { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(167,121,54,.2); }
.closing .script { margin: 0; color: rgba(167,121,54,.78); font-size: clamp(28px,4vw,36px); }
.closing__gift-note { max-width: 340px; margin: 20px auto 0; color: rgba(47,49,43,.62); font-size: 16px; font-style: italic; line-height: 1.35; }
.closing .eyebrow { color: rgba(167,121,54,.68); font-size: 8px; }
.closing__copy { max-width: 350px; margin: 7px auto 18px; font-size: clamp(17px,2.2vw,20px); font-style: italic; line-height: 1.3; }
.closing .ornament { margin-bottom: 18px; opacity: .62; transform: scale(.82); }
.closing__names { margin: 9px 0 10px; font-size: 19px; line-height: 1.15; }
.closing__mark { width: 56px; margin-top: 1px; opacity: .52; }

/* GSAP owns these transforms; CSS only supplies the no-script baseline. */
.reveal { opacity: 1; transform: none; }
[data-scene] > * { transition: none; }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header { padding-inline: 20px; }
  .reception { min-height: 0; padding-block: 100px; }
  .reception__content { grid-template-columns: 1fr; gap: 48px; }
  .reception__copy { text-align: center; }
  .reception__lead { margin-inline: auto; }
  .event-rule { margin-inline: auto; }
  .venue-actions { justify-content: center; }
  .reception__art { min-height: 0; }
  .reception__pavilion { width: min(100%, 560px); }
  .itinerary { grid-template-columns: 1fr; gap: 45px; }
  .itinerary__heading { text-align: center; }
  .itinerary__heading > p:last-child { margin-inline: auto; }
  .timeline { width: min(100%, 430px); margin-inline: auto; }
  .timeline::before { left: 94px; }
  .timeline li { grid-template-columns: 64px 40px 1fr; }
  .timeline__time { font-size: 8px; }
  .timeline strong { font-size: 24px; }
}

@media (max-width: 500px) {
  .opening::before { inset: 14px; }
  .opening::after { inset: 20px; }
  .seal-stage, .seal, .seal img { width: 154px; height: 154px; }
  .seal-stage { margin-bottom: 24px; }
  .seal__tap-cue { right: -12px; bottom: -4px; width: 39px; height: 39px; }
  .skip-intro { bottom: 24px; min-height: 39px; padding-inline: 17px; }
  .sound-control__label { display: none; }
  .hero { min-height: 0; padding-top: 92px; padding-bottom: 88px; }
  .hero::before { inset: 14px; }
  .hero__object { width: 108px; margin-top: 19px; }
  .hero__title { font-size: clamp(52px, 15vw, 72px); line-height: .92; }
  .hero__title span { font-size: 62px; }
  .hero__subtitle { font-size: 18px; }
  .interlude { min-height: 440px; }
  .countdown { min-height: 350px; }
  .countdown__grid { gap: 14px; }
  .countdown__grid div:not(:last-child)::after { display: none; }
  .rsvp-form { grid-template-columns: 1fr; }
  .rsvp-form__wide, .rsvp-submit { grid-column: auto; }
  .reception::before { inset: 14px; }
  .venue-actions { flex-direction: column; align-items: center; }
  .map-link { justify-content: center; min-width: 205px; }
}

@media (hover: none), (pointer: coarse) {
  .hero__object { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
