/* ==========================================================================
   ORLANDO & MELISSA · 10.09.2027
   Ivory · champagne gold · forest (sparingly) · charcoal
   No foliage. Typography, borders, photography and space carry the design.
   ========================================================================== */

:root {
  --ivory: #F6F1E7;
  --ivory-2: #EFE7D8;
  --paper: #FBF8F2;
  --gold: #B08A4E;
  --gold-2: #CDB07A;
  --gold-3: #E7D6AE;
  --gold-deep: #8C6A35;
  --forest: #1F3A2E;
  --ink: #1B1916;
  --ink-2: #4A453D;
  --ink-3: #7C746A;
  --line: rgba(176, 138, 78, .38);
  --foil: linear-gradient(105deg, #8C6A35 0%, #C9A86A 22%, #F3E3B9 38%, #B8925A 52%, #E9D3A0 68%, #9A7640 86%, #C9A86A 100%);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --caps: "Cinzel", "Cormorant Garamond", serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --sans: "Jost", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --hdr: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold-3); color: var(--ink); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* paper grain over everything, very subtle */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
.eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--ink-2); font-weight: 400; }
.eyebrow--gold { color: var(--gold); }
.h-display { font-family: var(--caps); font-weight: 400; letter-spacing: .14em; line-height: 1.05; text-transform: uppercase; margin: 0; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: .01em; margin: 0; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 56px); line-height: 1.08; margin: 0; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin: 0; }
.script { font-family: var(--script); color: var(--gold); font-weight: 400; letter-spacing: 0; text-transform: none; }
.lede { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.5; color: var(--ink-2); font-weight: 400; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.foil {
  background: var(--foil); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: foil 7s ease-in-out infinite;
}
@keyframes foil { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- Monogram O|M ---------- */
.mono { font-family: var(--serif); font-weight: 400; display: inline-flex; align-items: center; gap: .32em; line-height: 1; color: var(--gold); letter-spacing: .02em; }
.mono i { display: inline-block; width: 1px; height: 1.35em; background: currentColor; opacity: .8; }
.mono--nav { font-size: 26px; }
.mono--sm { font-size: 22px; }
.mono--md { font-size: 44px; }
.mono--xl { font-size: clamp(44px, min(11vw, 8vh), 100px); }
.mono.foil i { background: var(--gold-2); }

/* rule with diamond */
.rule { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 22px auto; }
.rule::before, .rule::after { content: ""; height: 1px; width: 60px; background: currentColor; opacity: .6; }
.rule span { width: 5px; height: 5px; transform: rotate(45deg); border: 1px solid currentColor; }
.rule--long::before, .rule--long::after { width: min(22vw, 160px); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--gold);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 30px; font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: .3em; text-transform: uppercase; border: 1px solid var(--b); color: var(--ink);
  overflow: hidden; isolation: isolate; transition: color .5s var(--ease), border-color .5s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--b); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); z-index: -1; }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--paper); }
.btn--gold { background: var(--gold); color: var(--paper); }
.btn--gold::before { background: var(--ink); }
.btn--gold:hover { border-color: var(--ink); }
.btn--light { --b: var(--gold-3); color: var(--paper); border-color: rgba(255,255,255,.55); }
.btn--light:hover { color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 20px; font-size: 11px; letter-spacing: .28em; }
.btn--block { width: 100%; }
.btn .arr { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .4s var(--ease); }
.btn .arr::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arr { width: 32px; }
.link { position: relative; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); padding-bottom: 6px; }
.link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform-origin: left; transition: transform .5s var(--ease); }
.link:hover::after { transform: scaleX(.3); }

/* ==========================================================================
   INTRO · the photographed envelope
   ========================================================================== */
.intro2 { position: fixed; inset: 0; z-index: 200; overflow: hidden; background: #E9DFCF; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.intro2.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.i2-blur { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(28px) saturate(1.05); transform: scale(1.15); }
.i2-cam { position: absolute; inset: 0; transition: transform 1.9s cubic-bezier(.7, 0, .2, 1), filter 1.9s; will-change: transform; }
.i2-stage {
  position: absolute; perspective: 2200px; transform-style: preserve-3d;
  animation: stageIn 1.8s var(--ease) both;
}
@keyframes stageIn { from { opacity: 0; } to { opacity: 1; } }
.i2-blur { filter: blur(40px) saturate(1.05) brightness(1.02); }
.i2-edge { position: absolute; left: 0; right: 0; height: 90px; pointer-events: none; }

@keyframes breathe2 { 0%, 100% { scale: 1; } 50% { scale: 1.018; } }
.i2-stage > * { position: absolute; }
.i2-photo { inset: 0; background: var(--img) center / 100% 100% no-repeat; }
.i2-stage::before { content: none; }


/* the inside of the envelope: gold foil liner with a faint monogram pattern */
.i2-liner, .i2-flapback {
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Ctext x='23' y='29' font-family='Georgia' font-size='13' fill='%23fff3d6' fill-opacity='.22' text-anchor='middle'%3EO%7CM%3C/text%3E%3C/svg%3E"),
    linear-gradient(115deg, #7E5D2B 0%, #C9A660 22%, #F1DDA6 36%, #B48D4C 50%, #E4C98E 66%, #8E6B33 84%, #C9A660 100%);
  background-size: 46px 46px, 300% 100%;
  animation: foil 9s ease-in-out infinite;
}
.i2-liner { box-shadow: inset 0 40px 60px -20px rgba(40,25,5,.55); }
.i2-liner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,18,4,.55), rgba(30,18,4,.1) 40%, rgba(30,18,4,.35)); }
.i2-flapback { transform: rotateX(-92deg); opacity: 0; filter: brightness(.9); }

.i2-card {
  background: #FBF8F1; border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -2px 18px rgba(60,40,10,.18);
  transition: transform 1.5s cubic-bezier(.3, .7, .2, 1);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.i2-card::before { content: ""; position: absolute; inset: 5%; border: 1px solid rgba(176,138,78,.55); pointer-events: none; }
.i2-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.7) 48%, transparent 62%); background-size: 260% 100%; background-position: 120% 0; mix-blend-mode: soft-light; }
.intro2.s3 .i2-card::after { animation: cardShine 2.4s ease .6s forwards; }
@keyframes cardShine { to { background-position: -40% 0; } }
.i2-card__in { container-type: inline-size; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--ink); }
.i2-mono { font-family: var(--serif); color: var(--gold); display: flex; align-items: center; gap: .3em; font-size: 7cqw; line-height: 1; margin-bottom: 2.4cqw; }
.i2-mono i, .i2-d i { display: inline-block; width: 1px; height: 1.2em; background: var(--gold-2); }
.i2-k { font-size: 2.1cqw; letter-spacing: .5em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2cqw; }
.i2-n { font-family: var(--caps); font-size: 7.4cqw; letter-spacing: .14em; line-height: 1.05; }
.i2-and { font-family: var(--script); color: var(--gold); font-size: 6cqw; line-height: 1.1; }
.i2-d { font-family: var(--serif); font-size: 4.6cqw; letter-spacing: .22em; display: flex; align-items: center; gap: .6em; margin-top: 2.4cqw; }
.i2-d i { height: .9em; }
.i2-p { font-size: 1.9cqw; letter-spacing: .38em; text-transform: uppercase; color: var(--ink-3); margin-top: 1.6cqw; }

.i2-mend { inset: 0; background: #EDE5D8; opacity: 0; filter: blur(3px); transition: opacity .8s ease .3s; }
.i2-flap { backface-visibility: hidden; transition: transform .62s cubic-bezier(.55, 0, .9, .5), filter .62s, opacity .1s linear .55s; }
.i2-sweep { inset: 0; pointer-events: none; overflow: hidden; }
.i2-sweep::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; background: linear-gradient(105deg, transparent, rgba(255,250,236,.32) 50%, transparent); transform: translateX(-120%) skewX(-12deg); animation: sweep 8s ease-in-out 2s infinite; will-change: transform; }
@keyframes sweep { 0% { transform: translateX(-120%) skewX(-12deg); } 50%, 100% { transform: translateX(330%) skewX(-12deg); } }

/* seal */
.i2-seal { transform: translate(-50%, -50%); aspect-ratio: 1; padding: 0; z-index: 3; filter: drop-shadow(0 6px 6px rgba(60,38,8,.35)) drop-shadow(0 2px 1px rgba(60,38,8,.4)); }
.i2-seal { animation: sealDrop 1.1s cubic-bezier(.3, 1.4, .5, 1) 1s both; }
@keyframes sealDrop { 0% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.i2-half { position: absolute; inset: 0; transition: transform 1s cubic-bezier(.4, 0, .2, 1), opacity .9s ease .2s; }
.i2-half svg { width: 100%; height: 100%; display: block; overflow: visible; }
.i2-half--a { clip-path: polygon(0 0, 54% 0, 47% 22%, 56% 41%, 46% 60%, 55% 78%, 49% 100%, 0 100%); }
.i2-half--b { clip-path: polygon(54% 0, 100% 0, 100% 100%, 49% 100%, 55% 78%, 46% 60%, 56% 41%, 47% 22%); }
.i2-seal .sheen { animation: sheen 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sheen { 0%, 100% { opacity: .25; } 50% { opacity: .55; } }
.i2-ring { position: absolute; inset: -8%; border-radius: 50%; border: 1px solid rgba(255,236,190,.9); opacity: 0; pointer-events: none; }
.i2-ring { animation: ring2 2.8s var(--ease) 2.4s infinite; }
.i2-ring--2 { animation-delay: 3.8s; }
@keyframes ring2 { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.i2-seal:hover .i2-half { transform: scale(1.04); }

/* typography */
.i2-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.i2-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(70,48,20,.14) 100%); }
.i2-top, .i2-bot { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; pointer-events: none; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.i2-top { top: 0; padding-top: env(safe-area-inset-top); }
.i2-top::before, .i2-bot::before { content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; }
.i2-top::before { top: 0; bottom: -40px; background: linear-gradient(180deg, rgba(248,243,233,.97) 0%, rgba(248,243,233,.92) 65%, rgba(248,243,233,0) 100%); }
.i2-bot::before { top: -40px; bottom: 0; background: linear-gradient(0deg, rgba(248,243,233,.97) 0%, rgba(248,243,233,.92) 65%, rgba(248,243,233,0) 100%); }
.i2-eyebrow { margin: 0; font-size: 11.5px; font-weight: 400; letter-spacing: .4em; text-transform: uppercase; color: #7A5A26; opacity: 0; animation: revealUp 1.2s var(--ease) 1.3s forwards; }
.i2-names { margin: 14px 0 0; font-family: var(--caps); font-weight: 400; font-size: clamp(22px, 6vw, 42px); letter-spacing: .16em; color: var(--ink); line-height: 1.15; }
.i2-names span { display: inline-block; opacity: 0; transform: translateY(14px); animation: letter 1.1s var(--ease) forwards; animation-delay: calc(1.5s + var(--i) * 45ms); }
@keyframes letter { to { opacity: 1; transform: none; } }
.i2-dear { margin: 6px 0 0; font-family: var(--script); font-size: clamp(38px, 10vw, 66px); color: var(--ink); line-height: 1.15; opacity: 0; animation: revealUp 1.4s var(--ease) 1.6s forwards; }
.i2-date { margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-size: 20px; letter-spacing: .12em; color: var(--ink); opacity: 0; animation: revealUp 1.2s var(--ease) 2.3s forwards; }
.i2-bot p { margin: 0; font-size: 12px; font-weight: 400; letter-spacing: .36em; text-transform: uppercase; color: var(--ink); opacity: 0; animation: revealUp 1.2s var(--ease) 2.6s forwards; }
.i2-hand { width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; border: 1px solid var(--gold); position: relative; opacity: 0; animation: revealUp 1.2s var(--ease) 2.6s forwards; }
.i2-hand::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--gold); animation: tapdot 2s ease-in-out 3s infinite; }
@keyframes tapdot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .5; } }
.i2-skip { position: absolute; z-index: 5; top: max(14px, env(safe-area-inset-top)); right: 14px; padding: 12px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); opacity: 0; animation: revealUp 1s var(--ease) 2.8s forwards; }

/* ---- the opening sequence ---- */
.intro2.s1 .i2-half--a { transform: translate(-18%, 10%) rotate(-24deg); opacity: 0; }
.intro2.s1 .i2-half--b { transform: translate(20%, 16%) rotate(20deg); opacity: 0; }
.intro2.s1 .i2-ring { animation: none; opacity: 0; }
.intro2.s1 .i2-top, .intro2.s1 .i2-bot, .intro2.s1 .i2-skip { opacity: 0; transform: translateY(-10px); }
.intro2.s2 .i2-flap { transform: rotateX(92deg); filter: brightness(1.15); opacity: 0; }
.intro2.s2 .i2-flapback { opacity: 1; transform: rotateX(0deg); transition: transform .8s cubic-bezier(.1, .5, .3, 1) .58s, opacity 0s .58s; }
.intro2.s2 .i2-mend { opacity: .9; }
.intro2.s3 .i2-card { transform: translateY(-74%); }
.intro2.s4 .i2-cam { filter: none; }
.intro2.s4 .i2-sweep, .intro2.s4 .i2-dust { opacity: 0; transition: opacity 1s; }

@media (prefers-reduced-motion: reduce) {
  .i2-stage { opacity: 1; filter: none; }
  .i2-names span, .i2-eyebrow, .i2-dear, .i2-date, .i2-bot p, .i2-hand, .i2-skip { opacity: 1; animation: none; transform: none; filter: none; }
}

/* ==========================================================================
   CURTAIN (page transitions)
   ========================================================================== */
.curtain {
  position: fixed; inset: 0; z-index: 150; background: var(--ivory-2); display: grid; place-items: center;
  clip-path: inset(100% 0 0 0); pointer-events: none;
}
.curtain .mono { opacity: 0; transform: translateY(10px); transition: all .4s var(--ease); }
.curtain.is-in { clip-path: inset(0 0 0 0); transition: clip-path .42s var(--ease-in-out); }
.curtain.is-in .mono { opacity: 1; transform: none; transition-delay: .2s; }
.curtain.is-out { clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease-in-out); }

/* ==========================================================================
   HEADER & MENU
   ========================================================================== */
.hdr {
  position: fixed; z-index: 120; top: 0; left: 0; right: 0; height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  transition: background .5s, color .5s, transform .6s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid { background: rgba(246, 241, 231, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr.on-dark:not(.is-solid) { color: var(--paper); }
.hdr.on-dark:not(.is-solid) .hdr__mono { color: var(--gold-3); }
.hdr__nav { display: none; gap: 40px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.hdr__nav a { position: relative; padding: 6px 0; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .5s var(--ease); }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); }
.hdr__actions { display: flex; align-items: center; gap: 14px; }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.burger span { display: block; width: 26px; height: 1px; background: currentColor; transition: transform .5s var(--ease), width .5s; }
.burger span:last-child { width: 18px; margin-left: auto; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { width: 26px; transform: translateY(-4px) rotate(-45deg); }
body.menu-open .hdr { transform: none; color: var(--ink) !important; background: transparent; border-color: transparent; backdrop-filter: none; }
@media (min-width: 980px) { .hdr__nav { display: flex; } :root { --hdr: 84px; } }

.menu {
  position: fixed; inset: 0; z-index: 110; background: var(--ivory);
  clip-path: circle(0% at calc(100% - 50px) 40px); visibility: hidden;
  transition: clip-path .9s var(--ease-in-out), visibility 0s .9s;
  overflow-y: auto;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 50px) 40px); visibility: visible; transition: clip-path 1s var(--ease-in-out), visibility 0s; }
.menu__inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--hdr) + 24px) var(--gutter) 32px; max-width: 1200px; margin: 0 auto; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-family: var(--serif); font-size: clamp(30px, 6vw, 56px); line-height: 1.22; font-weight: 400; display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(26px); transition: opacity .4s, transform .4s, color .3s;
}
.menu__links a::before { content: attr(data-n); font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--gold); width: 22px; }
.menu__links a:hover, .menu__links a.is-active { color: var(--gold-deep); font-style: italic; }
.menu.is-open .menu__links a { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease), color .3s; }
.menu__rsvp { color: var(--gold) !important; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 900px) { .menu__links { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(7, auto); grid-auto-flow: column; column-gap: 80px; } }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
#app { outline: none; min-height: 100vh; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.sec { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.sec--tight { padding: clamp(56px, 8vw, 100px) 0; }
.sec--paper { background: var(--paper); }
.sec--cream { background: var(--ivory-2); }
.sec--forest { background: var(--forest); color: var(--ivory); }
.sec--forest .eyebrow { color: var(--gold-3); }
.sec-head { text-align: center; margin-bottom: clamp(44px, 7vw, 80px); }
.sec-head .eyebrow { display: block; margin-bottom: 18px; }

/* reveal on scroll */
[data-rv] { opacity: 0; transform: translateY(36px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
[data-rv="fade"] { transform: none; }
[data-rv="left"] { transform: translateX(-40px); }
[data-rv="right"] { transform: translateX(40px); }
[data-rv="scale"] { transform: scale(.94); }
[data-rv].in { opacity: 1; transform: none; }
.img-reveal { overflow: hidden; position: relative; }
.img-reveal img { transform: scale(1.18); transition: transform 2.2s var(--ease); }
.img-reveal::after { content: ""; position: absolute; inset: 0; background: var(--ivory-2); transform-origin: top; transition: transform 1.4s var(--ease-in-out); }
.img-reveal.in img { transform: scale(1); }
.img-reveal.in::after { transform: scaleY(0); }

/* split-letter animation */
.split .ch { display: inline-block; opacity: 0; transform: translateY(.5em) rotateX(-60deg); transform-origin: bottom; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--base, 0ms)); }
.split.in .ch { opacity: 1; transform: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; overflow: hidden; color: var(--paper); display: flex; align-items: center; justify-content: center; text-align: center; }
.hero__img { position: absolute; inset: -4%; background: url(../img/hero.jpg) 62% 50% / cover no-repeat; transform: scale(1.12); animation: kenburns 24s ease-out forwards; will-change: transform; }
@keyframes kenburns { to { transform: scale(1); } }
@media (max-width: 700px) { .hero__img { background-image: url(../img/hero-port.jpg); background-position: 50% 50%; } .count__lbl { letter-spacing: .2em; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 60% at 50% 50%, rgba(20,16,10,.38), transparent 75%), linear-gradient(180deg, rgba(20,16,10,.6) 0%, rgba(20,16,10,.3) 38%, rgba(20,16,10,.4) 70%, rgba(20,16,10,.82) 100%); }
.hero__frame { position: absolute; z-index: 2; inset: clamp(14px, 2.4vw, 30px); pointer-events: none; }
.hero__frame rect { fill: none; stroke: var(--gold-2); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s var(--ease-in-out) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__in { position: relative; z-index: 3; padding: calc(var(--hdr) + 10px) 28px 90px; display: flex; flex-direction: column; align-items: center; }
.hero .mono { color: var(--gold-3); }
.hero__kicker { margin: min(26px, 2.6vh) 0 0; font-size: 11px; letter-spacing: .5em; text-transform: uppercase; opacity: .9; }
.hero__names { font-family: var(--caps); font-weight: 400; letter-spacing: .12em; font-size: clamp(38px, min(10vw, 10.5vh), 118px); line-height: 1; margin: 18px 0 0; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__and { display: flex; align-items: center; gap: 18px; margin: 0; font-family: var(--script); font-size: clamp(34px, min(6vw, 6.5vh), 66px); color: var(--gold-3); line-height: 1.1; }
.hero__and::before, .hero__and::after { content: ""; width: clamp(40px, 12vw, 150px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.hero__and::after { transform: scaleX(-1); }
.hero__tag { margin: min(22px, 2.4vh) 0 0; font-size: 12px; letter-spacing: .44em; text-transform: uppercase; }
.hero__date { margin: min(18px, 2vh) 0 0; font-family: var(--serif); font-size: clamp(24px, min(4vw, 4.4vh), 40px); letter-spacing: .2em; display: flex; gap: .7em; align-items: center; }
.hero__date i { width: 1px; height: .9em; background: var(--gold-2); }
.hero__place { margin: 10px 0 0; font-size: 11px; letter-spacing: .38em; text-transform: uppercase; opacity: .9; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: min(40px, 4vh); }
.hero__scroll { position: absolute; z-index: 3; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; opacity: .8; }
.hero__scroll span { width: 1px; height: 46px; background: linear-gradient(var(--gold-3), transparent); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 110%; } }
.hero [data-hero] { opacity: 0; transform: translateY(22px); }
.hero.go [data-hero] { animation: revealUp 1.4s var(--ease) forwards; animation-delay: var(--d); }
.hero.go .split .ch { opacity: 1; transform: none; }

/* ==========================================================================
   COUNTDOWN
   ========================================================================== */
.count { position: relative; padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(70px, 10vw, 120px) 0; text-align: center; overflow: hidden; }
.count__bg { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-family: var(--serif); font-size: clamp(180px, 38vw, 520px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(176,138,78,.14); letter-spacing: -.02em; user-select: none; }
.count__grid { position: relative; display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 0; margin-top: 34px; }
.count__unit { padding: 0 clamp(8px, 3.6vw, 52px); position: relative; }
.count__unit + .count__unit::before { content: ""; position: absolute; left: 0; top: 18%; height: 54%; width: 1px; background: var(--line); }
.count__num { display: flex; justify-content: center; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 11vw, 120px); line-height: 1; height: 1em; overflow: hidden; font-variant-numeric: lining-nums tabular-nums; }
.digit { position: relative; width: .56em; height: 1em; overflow: hidden; }
.digit__strip { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; transition: transform 1s var(--ease); }
.digit__strip span { height: 1em; display: block; text-align: center; }
.count__lbl { margin-top: 14px; font-size: 10px; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-deep); }
.count__note { margin-top: 34px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); }
.count.is-today .count__grid { display: none; }

/* ==========================================================================
   INVITATION CARD (digital)
   ========================================================================== */
.invite-sec { background: var(--ivory-2); overflow: hidden; }
.invite-stage { perspective: 1600px; display: flex; justify-content: center; }
.invite {
  position: relative; width: min(100%, 520px); background: var(--paper); text-align: center;
  padding: clamp(40px, 7vw, 64px) clamp(26px, 6vw, 56px); border: 1px solid var(--line);
  box-shadow: 0 50px 80px -40px rgba(80,56,20,.35), 0 2px 0 rgba(255,255,255,.6) inset;
  transform-style: preserve-3d; transition: transform .6s var(--ease); will-change: transform;
}
.invite::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--gold-2); pointer-events: none; }
.invite__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 40% at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.55), transparent 70%); mix-blend-mode: soft-light; opacity: .9; }
.invite .mono { font-size: 44px; }
.invite__k { margin: 22px 0 0; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--ink-2); }
.invite__names { font-family: var(--caps); font-size: clamp(30px, 7vw, 44px); letter-spacing: .13em; line-height: 1.1; margin: 16px 0 0; }
.invite__and { font-family: var(--script); color: var(--gold); font-size: 34px; line-height: 1.2; display: flex; align-items: center; justify-content: center; gap: 14px; }
.invite__and::before, .invite__and::after { content: ""; width: 52px; height: 1px; background: var(--gold-2); }
.invite__lines { margin: 18px 0 0; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; line-height: 2.1; color: var(--ink-2); }
.invite__day { margin: 26px 0 0; font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-deep); }
.invite__date { font-family: var(--serif); font-size: 34px; letter-spacing: .18em; display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 4px; }
.invite__date i { width: 1px; height: 26px; background: var(--gold-2); }
.invite__time { margin-top: 6px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.invite__venue { margin: 22px 0 0; font-family: var(--caps); font-size: 18px; letter-spacing: .2em; }
.invite__town { font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-3); }
.invite__follow { margin-top: 20px; font-family: var(--script); font-size: 30px; color: var(--gold); }
.invite__note { font-size: 12px; color: var(--ink-3); max-width: 320px; margin: 8px auto 0; line-height: 1.6; }
.invite__cta { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.invite__by { margin-top: 14px; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-3); }
.invite-sec .dear { font-family: var(--script); font-size: clamp(34px, 6vw, 52px); color: var(--gold-deep); text-align: center; margin: 0 0 18px; line-height: 1.1; }

/* ==========================================================================
   WELCOME
   ========================================================================== */
.welcome { display: grid; gap: clamp(40px, 6vw, 90px); align-items: center; }
.welcome__img { aspect-ratio: 4/5; }
.welcome__img img { width: 100%; height: 100%; object-fit: cover; }
.welcome__sig { font-family: var(--script); font-size: clamp(40px, 6vw, 58px); color: var(--gold-deep); margin-top: 26px; line-height: 1.1; }
@media (min-width: 900px) { .welcome { grid-template-columns: 1.05fr .95fr; } }

/* quick links */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.quick a { position: relative; aspect-ratio: 3/4; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: var(--paper); background: var(--ink); }
.quick a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform 1.6s var(--ease), opacity .8s; }
.quick a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,12,8,.75)); }
.quick a:hover img { transform: scale(1.07); opacity: .55; }
.quick__n { position: relative; z-index: 1; font-size: 10px; letter-spacing: .3em; color: var(--gold-3); }
.quick__t { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; margin-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.quick__t::after { content: "→"; font-family: var(--sans); font-size: 16px; transform: translateX(-6px); opacity: 0; transition: .5s var(--ease); }
.quick a:hover .quick__t::after { transform: none; opacity: 1; }
.quick a.quick--rsvp { background: var(--gold); }
.quick a.quick--rsvp::after { background: none; }
.quick a.quick--rsvp .quick__n { color: var(--paper); }
.quick--rsvp .quick__big { position: relative; z-index: 1; margin-bottom: auto; font-family: var(--script); font-size: clamp(54px, 8vw, 90px); line-height: 1; }
@media (min-width: 820px) { .quick { grid-template-columns: repeat(4, 1fr); } }

/* marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: var(--paper); }
.marquee__track { display: flex; width: max-content; animation: mq 40s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 34px); white-space: nowrap; padding: 0 28px; color: var(--ink-2); display: flex; align-items: center; gap: 56px; }
.marquee span::after { content: ""; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
@keyframes mq { to { transform: translateX(-50%); } }

/* big quote with parallax image */
.quote-band { position: relative; min-height: 80vh; display: grid; place-items: center; overflow: hidden; color: var(--paper); text-align: center; }
.quote-band__img { position: absolute; inset: -15% 0; background-size: cover; background-position: center; will-change: transform; }
.quote-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(18,14,9,.5); }
.quote-band blockquote { position: relative; z-index: 2; margin: 0; padding: 0 var(--gutter); max-width: 900px; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(30px, 5vw, 60px); line-height: 1.2; }
.quote-band cite { display: block; margin-top: 26px; font-style: normal; font-family: var(--sans); font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-3); }

/* facts strip */
.facts { display: grid; grid-template-columns: 1fr 1fr; }
.facts > div { padding: 34px 18px; text-align: center; border-color: rgba(231,214,174,.25); border-style: solid; border-width: 0 0 1px 0; }
.facts > div:nth-child(odd) { border-right-width: 1px; }
.facts .eyebrow { font-size: 10px; }
.facts p { margin: 10px 0 0; font-family: var(--serif); font-size: 22px; line-height: 1.25; }
@media (min-width: 820px) { .facts { grid-template-columns: repeat(4, 1fr); } .facts > div { border-width: 0 1px 0 0 !important; } .facts > div:last-child { border-right: 0 !important; } }

/* ==========================================================================
   PAGE HEADERS
   ========================================================================== */
.phead { padding: calc(var(--hdr) + clamp(70px, 12vw, 140px)) 0 clamp(50px, 8vw, 90px); text-align: center; position: relative; }
.phead .eyebrow { display: block; margin-bottom: 20px; }
.phead .lede { max-width: 640px; margin: 26px auto 0; }
.phead__num { position: absolute; left: 50%; top: calc(var(--hdr) + 10px); transform: translateX(-50%); font-family: var(--serif); font-size: clamp(140px, 26vw, 300px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(176,138,78,.16); pointer-events: none; z-index: -1; }
.phead--img { color: var(--paper); min-height: 78vh; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; padding-bottom: 80px; }
.phead--img .eyebrow { color: var(--gold-3); }
.phead--img .lede { color: rgba(255,255,255,.85); }
.phead--img__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.1); animation: kenburns 18s ease-out forwards; }
.phead--img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(18,14,9,.35), rgba(18,14,9,.7)); }
.phead--img > .wrap { position: relative; z-index: 2; }

/* ==========================================================================
   STORY
   ========================================================================== */
.chapter { display: grid; gap: clamp(32px, 6vw, 100px); align-items: center; padding: clamp(50px, 8vw, 110px) 0; }
.chapter__img { aspect-ratio: 4/5; }
.chapter__img img { width: 100%; height: 100%; object-fit: cover; }
.chapter__n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); }
.chapter h2 { margin: 6px 0 20px; }
.chapter p { font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); line-height: 1.6; color: var(--ink-2); max-width: 470px; }
@media (min-width: 900px) {
  .chapter { grid-template-columns: 1fr 1fr; }
  .chapter:nth-child(even) .chapter__img { order: 2; }
  .chapter:nth-child(even) .chapter__txt { padding-left: 8%; }
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); padding: clamp(32px, 4vw, 52px); position: relative; transition: background .6s var(--ease); }
.card:hover { background: #fff; }
.card__label { font-size: 10px; letter-spacing: .36em; text-transform: uppercase; color: var(--gold); }
.card h3 { margin: 14px 0 12px; }
.card p { margin: 0; color: var(--ink-2); }
.card__corner { position: absolute; top: 16px; right: 16px; width: 16px; height: 16px; border-top: 1px solid var(--gold-2); border-right: 1px solid var(--gold-2); }
@media (min-width: 820px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--2 { grid-template-columns: repeat(2, 1fr); } }

.keyfacts { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); background: var(--paper); }
.keyfacts > div { padding: 30px; text-align: center; }
.keyfacts > div + div { border-top: 1px solid var(--line); }
.keyfacts p { margin: 8px 0 0; font-family: var(--serif); font-size: 24px; line-height: 1.3; }
@media (min-width: 820px) { .keyfacts { grid-template-columns: repeat(3, 1fr); } .keyfacts > div + div { border-top: 0; border-left: 1px solid var(--line); } }

.wide-img { aspect-ratio: 16/9; }
.wide-img img { width: 100%; height: 100%; object-fit: cover; }
.cap { font-size: 12px; color: var(--ink-3); margin-top: 12px; letter-spacing: .04em; }

.map { position: relative; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--ivory-2); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.25) contrast(.95) brightness(1.02); }
.map__card { position: absolute; z-index: 2; left: 16px; bottom: 16px; right: 16px; max-width: 360px; background: var(--paper); padding: 22px 24px; border: 1px solid var(--line); }
.map__card h4 { margin: 0; font-family: var(--caps); font-weight: 400; letter-spacing: .14em; font-size: 18px; }
.map__card p { margin: 6px 0 14px; font-size: 14px; color: var(--ink-2); }

/* ==========================================================================
   TIMELINE
   ========================================================================== */
.tl { position: relative; max-width: 860px; margin: 0 auto; }
.tl__line { position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl__fill { position: absolute; left: 22px; top: 0; width: 1px; background: linear-gradient(var(--gold), var(--gold-2)); height: 0; }
.tl__item { position: relative; padding: 0 0 clamp(54px, 8vw, 90px) 70px; }
.tl__dot { position: absolute; left: 22px; top: 12px; width: 13px; height: 13px; transform: translate(-50%, 0) rotate(45deg); border: 1px solid var(--gold); background: var(--ivory); transition: background .6s, box-shadow .6s; }
.tl__item.lit .tl__dot { background: var(--gold); box-shadow: 0 0 0 7px rgba(176,138,78,.14); }
.tl__time { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1; color: var(--gold-deep); }
.tl__time.tbc { font-size: 15px; font-family: var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); padding-top: 8px; }
.tl__title { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); margin: 10px 0 4px; line-height: 1.15; }
.tl__body { color: var(--ink-2); margin: 0; }
@media (min-width: 820px) {
  .tl__line, .tl__fill, .tl__dot { left: 50%; }
  .tl__item { width: 50%; padding: 0 64px clamp(60px, 8vw, 100px) 0; text-align: right; }
  .tl__item .tl__dot { left: 100%; }
  .tl__item:nth-child(even) { margin-left: 50%; padding: 0 0 clamp(60px, 8vw, 100px) 64px; text-align: left; }
  .tl__item:nth-child(even) .tl__dot { left: 0; }
}

/* ==========================================================================
   LISTS / MENU / HOTELS / DRESS
   ========================================================================== */
.menu-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); text-align: center; position: relative; }
.menu-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(176,138,78,.22); pointer-events: none; }
.menu-card h3 { font-family: var(--caps); font-weight: 400; letter-spacing: .24em; font-size: 16px; margin: 0; color: var(--gold-deep); }
.menu-card ul { list-style: none; padding: 0; margin: 20px 0 0; }
.menu-card li { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.6; }
.menu-card .sep { margin: 40px auto; }

.hotels { display: grid; gap: 20px; }
.hotel { border: 1px solid var(--line); background: var(--paper); padding: 30px; display: flex; flex-direction: column; gap: 6px; transition: transform .6s var(--ease), box-shadow .6s; }
.hotel:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -36px rgba(80,56,20,.4); }
.hotel h4 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 500; }
.hotel__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.hotel p { margin: 6px 0 14px; color: var(--ink-3); font-size: 14px; }
.hotel .link { align-self: flex-start; margin-top: auto; }
@media (min-width: 820px) { .hotels { grid-template-columns: repeat(3, 1fr); } }

.info-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-list > div { display: grid; gap: 10px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.info-list h4 { margin: 0; font-family: var(--caps); font-weight: 400; letter-spacing: .2em; font-size: 14px; color: var(--gold-deep); }
.info-list p { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 820px) { .info-list > div { grid-template-columns: 240px 1fr; gap: 40px; } }

.dress-hero { text-align: center; }
.dress-code { font-family: var(--caps); font-size: clamp(46px, 10vw, 120px); letter-spacing: .14em; line-height: 1; margin: 10px 0; }
.swatches { display: flex; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.swatch { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease); }
.swatch:hover { transform: translateY(-6px); }
.split-2 { display: grid; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (min-width: 900px) { .split-2 { grid-template-columns: 1fr 1fr; } }
.tall-img { aspect-ratio: 4/5; }
.tall-img img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-family: var(--serif); font-size: clamp(21px, 2.4vw, 27px); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; position: relative; width: 16px; height: 16px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--gold); transition: transform .5s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { overflow: hidden; }
.faq .ans p { margin: 0; padding: 0 40px 28px 0; color: var(--ink-2); }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; margin-bottom: 50px; }
.tabs button { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; padding: 10px 0; position: relative; color: var(--ink-3); }
.tabs button.on { color: var(--ink); }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .5s var(--ease); }
.tabs button.on::after { transform: scaleX(1); }
.masonry { columns: 2; column-gap: 10px; }
.masonry figure { margin: 0 0 10px; break-inside: avoid; overflow: hidden; cursor: zoom-in; position: relative; }
.masonry img { width: 100%; transition: transform 1.2s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transition: opacity .4s; }
.masonry figure:hover figcaption { opacity: 1; }
@media (min-width: 820px) { .masonry { columns: 3; column-gap: 16px; } .masonry figure { margin-bottom: 16px; } }
.empty { text-align: center; padding: 70px 20px; border: 1px solid var(--line); background: var(--paper); }
.empty .script { font-size: 44px; display: block; line-height: 1.1; }
.empty p { color: var(--ink-3); margin: 10px 0 0; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(16,13,9,.94); display: grid; place-items: center; padding: 40px 16px; opacity: 0; visibility: hidden; transition: .5s var(--ease); }
.lightbox.on { opacity: 1; visibility: visible; }
.lightbox img { max-height: 84vh; max-width: 100%; object-fit: contain; transform: scale(.96); transition: transform .6s var(--ease); }
.lightbox.on img { transform: none; }
.lightbox button { position: absolute; color: var(--gold-3); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; padding: 14px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 8px; top: 50%; } .lb-next { right: 8px; top: 50%; }

/* ==========================================================================
   FORMS (RSVP, uploads)
   ========================================================================== */
.panel { background: var(--paper); border: 1px solid var(--line); padding: clamp(28px, 6vw, 64px); position: relative; }
.panel::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(176,138,78,.2); pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label, .lbl { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(27,25,22,.25);
  padding: 12px 2px; border-radius: 0; transition: border-color .4s; width: 100%; -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B08A4E'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 26px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field small { color: var(--ink-3); font-size: 13px; }
.row2 { display: grid; gap: 0 28px; }
@media (min-width: 700px) { .row2 { grid-template-columns: 1fr 1fr; } }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; padding: 12px; text-align: center; border: 1px solid var(--line); font-family: var(--serif); font-size: 20px; line-height: 1.2; transition: .4s var(--ease); }
.choice span small { font-family: var(--sans); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:checked + span small { color: var(--gold-3); }
.choice input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }
.yn { display: flex; gap: 8px; flex-wrap: wrap; }
.yn label { cursor: pointer; }
.yn input { position: absolute; opacity: 0; }
.yn span { display: inline-flex; padding: 10px 18px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; transition: .3s; }
.yn input:checked + span { background: var(--gold); color: #fff; border-color: var(--gold); }

.guest-block { border-top: 1px solid var(--line); padding-top: 34px; margin-top: 34px; }
.guest-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.guest-block__name { font-family: var(--serif); font-size: 32px; line-height: 1.1; margin: 0 0 20px; }
.guest-block .details { overflow: hidden; transition: max-height .8s var(--ease), opacity .6s; }
.guest-block .details.hide { max-height: 0 !important; opacity: 0; }
.steps { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; }
.steps i { width: 26px; height: 1px; background: var(--line); transition: background .5s, width .5s var(--ease); }
.steps i.on { background: var(--gold); width: 46px; }
.form-err { color: #8A2B2B; font-size: 14px; margin: 10px 0 0; min-height: 1em; }

.thanks { text-align: center; padding: clamp(30px, 6vw, 60px) 0; }
.thanks .seal-stamp { width: 110px; height: 110px; margin: 0 auto 30px; position: relative; display: grid; place-items: center; animation: stamp .9s var(--ease) both; }
.thanks .seal-stamp .seal__wax { position: absolute; inset: 0; }
@keyframes stamp { 0% { transform: scale(2.2) rotate(-25deg); opacity: 0; } 60% { transform: scale(.94) rotate(4deg); opacity: 1; } 100% { transform: none; } }

.drop { border: 1px dashed var(--gold-2); padding: 44px 20px; text-align: center; cursor: pointer; transition: background .4s; background: rgba(255,255,255,.4); display: block; }
.drop:hover, .drop.over { background: #fff; }
.drop .script { font-size: 40px; display: block; line-height: 1.1; }
.drop small { display: block; color: var(--ink-3); margin-top: 8px; font-size: 13px; }
.drop input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 16px; }
.thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* gold dust (celebration) */
.dust { position: fixed; inset: 0; pointer-events: none; z-index: 400; }

/* ==========================================================================
   CONTACT / GIFTS
   ========================================================================== */
.people { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.people > div { background: var(--paper); padding: 44px 30px; text-align: center; }
.people .script { font-size: 52px; line-height: 1; display: block; }
.people a { display: block; margin-top: 8px; color: var(--ink-2); }
.people a:hover { color: var(--gold-deep); }
@media (min-width: 820px) { .people { grid-template-columns: repeat(3, 1fr); } }

.gift-box { text-align: center; max-width: 680px; margin: 0 auto; }
.gift-box .h2 { font-style: italic; }

/* ==========================================================================
   RSVP PROMPT BAND + FOOTER
   ========================================================================== */
.rsvp-band { position: relative; text-align: center; background: var(--ink); color: var(--ivory); padding: clamp(90px, 13vw, 170px) 0; overflow: hidden; }
.rsvp-band .script { font-size: clamp(64px, 12vw, 150px); line-height: .9; display: block; color: var(--gold-2); }
.rsvp-band p { color: rgba(246,241,231,.7); margin: 22px auto 34px; max-width: 460px; }
.rsvp-band .ring { position: absolute; left: 50%; top: 50%; width: min(140vw, 1100px); aspect-ratio: 1; border: 1px solid rgba(205,176,122,.14); border-radius: 50%; transform: translate(-50%, -50%); }
.rsvp-band .ring:nth-child(2) { width: min(110vw, 820px); }
.rsvp-band .ring:nth-child(3) { width: min(80vw, 560px); }

.ftr { background: var(--ink); color: rgba(246,241,231,.65); text-align: center; padding: 70px var(--gutter) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(205,176,122,.18); }
.ftr .mono { color: var(--gold-2); font-size: 40px; }
.ftr__names { font-family: var(--caps); letter-spacing: .3em; font-size: 14px; color: var(--ivory); margin: 22px 0 6px; }
.ftr__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 30px 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.ftr__links a:hover { color: var(--gold-2); }
.ftr small { display: block; font-size: 11px; letter-spacing: .14em; opacity: .7; }

.toast { position: fixed; z-index: 500; left: 50%; bottom: 24px; transform: translate(-50%, 200%); visibility: hidden; background: var(--ink); color: var(--ivory); padding: 14px 24px; font-size: 13px; letter-spacing: .06em; transition: transform .6s var(--ease); max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }
.toast:empty { display: none; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-rv], .split .ch, .hero [data-hero] { opacity: 1 !important; transform: none !important; }
  .img-reveal::after { display: none; }
  .img-reveal img { transform: none; }
}

/* ==========================================================================
   MOBILE EXPERIENCE
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
a, button, label, summary { touch-action: manipulation; }
.btn:active, .dock a:active, .quick a:active, .act:active { transform: scale(.97); }
.btn { transition: color .5s var(--ease), border-color .5s, transform .2s; }


/* quick actions (calendar, directions, share) */
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; margin: 40px auto 0; position: relative; }
.act { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 16px; border: 1px solid var(--line); background: var(--ivory); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); transition: background .4s, transform .2s, border-color .4s; text-align: center; line-height: 1.4; }
.act:hover { background: #fff; border-color: var(--gold); }
.act svg, .dock svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

/* dock */
.dock { display: none; }
@media (max-width: 979px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .dock {
    position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    padding: 0 6px env(safe-area-inset-bottom); height: calc(64px + env(safe-area-inset-bottom));
    background: rgba(251, 248, 242, .9); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-top: 1px solid var(--line); transition: transform .5s var(--ease);
  }
  .dock.is-away { transform: translateY(110%); }
  .dock a, .dock button { height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); transition: color .3s; }
  .dock a.on { color: var(--ink); }
  .dock a.on svg { stroke: var(--gold-deep); stroke-width: 1.5; }
  .dock__rsvp { position: relative; }
  .dock__seal {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 35% 30%, #E2C690 0%, #B8914F 45%, #8C6A35 100%); color: #fff; font-size: 10px; letter-spacing: .24em; padding-left: .24em;
    box-shadow: 0 10px 24px -8px rgba(110,80,30,.6), inset 0 0 0 4px rgba(255,255,255,.12), 0 0 0 4px var(--paper);
  }
  .dock__rsvp.on .dock__seal { box-shadow: 0 10px 24px -8px rgba(110,80,30,.6), inset 0 0 0 4px rgba(255,255,255,.12), 0 0 0 4px var(--paper), 0 0 0 5px var(--gold); }
  .hdr__actions .btn { display: none; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .quick__t::after { opacity: 1; transform: none; }
  .hero__cta { flex-direction: column; align-items: stretch; width: min(100%, 300px); }
  .hero__scroll { display: none; }
  .map { aspect-ratio: auto; display: flex; flex-direction: column; }
  .map iframe { position: relative; height: 300px; }
  .map__card { position: relative; left: auto; right: auto; bottom: auto; max-width: none; border: 0; border-top: 1px solid var(--line); }
  .curtain .mono { font-size: 36px; }
  .menu__inner { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .menu__links a { font-size: clamp(28px, 8.4vw, 40px); line-height: 1.3; }
  .phead { padding-top: calc(var(--hdr) + 56px); }
  .sec { padding: 76px 0; }
  .lede { font-size: 20px; }
  .chapter { padding: 44px 0; }
  .card { padding: 30px 24px; }
  .info-list p { font-size: 19px; }
  .faq summary { padding: 22px 0; font-size: 21px; }
  .faq .ans p { padding-right: 0; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 22px; margin: 0 calc(var(--gutter) * -1) 34px; padding: 0 var(--gutter); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { white-space: nowrap; }
  .rsvp-band { padding: 90px 0; }
  .panel { padding: 34px 22px; }
  .ftr { padding-bottom: 40px; }
}
@media (max-width: 360px) {
  .count__grid { grid-template-columns: repeat(2, auto); row-gap: 26px; }
  .count__unit:nth-child(3)::before { display: none; }
  .acts { grid-template-columns: 1fr; }
  .act { flex-direction: row; justify-content: center; }
}
@media (min-width: 980px) { .acts { margin-top: 56px; } }

/* swipe hint on lightbox */
.lightbox { touch-action: pan-y; }
.lightbox img { transition: transform .6s var(--ease), opacity .3s; }

.map__tap { display: none; }
.map { background: linear-gradient(135deg, #EFE7D8, #E6DAC3); }
@media (max-width: 979px) {
  .map__tap { display: flex; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 300px; align-items: flex-end; justify-content: center; padding-bottom: 16px; }
  .map__tap span { background: rgba(251,248,242,.94); border: 1px solid var(--line); padding: 9px 16px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
}

@keyframes revealUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
