/* ───────────── Fonts (self-hosted, no third-party requests) ───────────── */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* ───────────── Tokens ───────────── */
:root {
  --night: #070b14;
  --night-2: #0b1322;
  --pine: #0e2c24;
  --pine-2: #144236;
  --gold: #f4c97a;
  --gold-2: #ffe3a8;
  --ember: #ff5f45;
  --berry: #c8283f;
  --cream: #f7efe1;
  --muted: #a9b0bd;
  --line: rgba(247, 239, 225, 0.12);

  --serif: "Fraunces", "Gelasio", Georgia, serif;
  --sans: "Manrope", "DM Sans", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --r: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--sans);
  color: var(--cream);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(244, 201, 122, .14), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(20, 66, 54, .55), transparent 60%),
    radial-gradient(800px 800px at 110% 90%, rgba(200, 40, 63, .16), transparent 60%),
    var(--night);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
::selection { background: var(--gold); color: var(--night); }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--gold); }
.dim { color: var(--muted); }
[hidden] { display: none !important; }

#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 2; opacity: .06;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-3%)} 100%{transform:translate(0,0)} }

main, .footer, .nav { position: relative; z-index: 3; }
/* Rotated marquee + floating baubles poke a few px past the edge; on mobile that silently widens the
   layout viewport (page zooms out, fixed overlay gets cut off). clip ≠ hidden: no scroll container. */
main { overflow-x: clip; }
/* While the RSVP overlay is open, lift the canvas above it so snow + the success burst show through. */
body.locked #snow { z-index: 60; }

/* ───────────── String lights ───────────── */
.lights { position: absolute; top: 68px; left: 0; width: 100%; height: 90px; z-index: 4; pointer-events: none; overflow: visible; }
.lights .wire { fill: none; stroke: #1d2a24; stroke-width: 2; }
.bulb { transform-box: fill-box; transform-origin: 50% 0; animation: twinkle var(--t, 2.4s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
.bulb ellipse { filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 14px currentColor); }
@keyframes twinkle { 0%,100% { opacity: 1 } 45% { opacity: .35 } 55% { opacity: .9 } }

/* ───────────── Nav ───────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(18px, env(safe-area-inset-top)) clamp(18px, 4vw, 48px) 14px;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 11, 20, .6); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.brand { text-decoration: none; font-weight: 700; letter-spacing: .02em; font-size: 15px; }
.brand-star { color: var(--gold); display: inline-block; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────── Buttons ───────────── */
.btn {
  --bg: transparent;
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 15px/1 var(--sans); letter-spacing: .01em;
  padding: 14px 22px; border-radius: 999px;
  color: var(--cream); background: var(--bg);
  transition: transform .35s var(--ease-spring), box-shadow .35s, background .3s, color .3s, opacity .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-primary {
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, #e39a4b);
  box-shadow: 0 10px 40px -10px rgba(244, 201, 122, .7), inset 0 1px 0 rgba(255,255,255,.6);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 60px -10px rgba(244, 201, 122, .9), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-primary:active { transform: scale(.97); }
.btn-primary svg { transition: transform .35s var(--ease-spring); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-xl { font-size: 18px; padding: 20px 34px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
kbd { font: 600 11px var(--sans); opacity: .6; padding: 3px 6px; border-radius: 6px; background: rgba(0,0,0,.12); }

/* ───────────── Hero ───────────── */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 150px 20px clamp(200px, 24vw, 300px); position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 22px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(255,95,69,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255,95,69,0) } 100% { box-shadow: 0 0 0 0 rgba(255,95,69,0) } }

.headline {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(56px, 12vw, 160px); line-height: .9; letter-spacing: -.035em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.headline .line { display: block; overflow: hidden; padding: 0 .06em .08em; }
.headline em { font-weight: 400; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.split .ch { display: inline-block; transform: translateY(110%) rotate(6deg); opacity: 0; animation: rise 1.1s var(--ease-out) forwards; animation-delay: calc(var(--i) * 45ms + .15s); }
.split .sp { display: inline-block; width: .25em; }
@keyframes rise { to { transform: none; opacity: 1; } }
.glow { color: var(--gold); text-shadow: 0 0 40px rgba(244, 201, 122, .45), 0 0 90px rgba(255, 140, 60, .25); }

.lede { max-width: 640px; margin: 30px auto 0; font-size: clamp(16px, 2vw, 19px); line-height: 1.65; color: #d9d3c8; }
.hero-cta { margin-top: 38px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-cta .btn-primary { font-size: 17px; padding: 18px 30px; }

.counter { margin: 0; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.counter b { color: var(--cream); }
.avatars { display: inline-flex; }
.avatars span {
  width: 26px; height: 26px; border-radius: 50%; margin-left: -8px; border: 2px solid var(--night);
  display: grid; place-items: center; font: 700 11px var(--sans); color: var(--night);
}
.avatars span:first-child { margin-left: 0; }

.countdown { margin-top: 44px; display: flex; gap: clamp(10px, 2.5vw, 22px); }
.countdown div {
  min-width: clamp(64px, 14vw, 96px); padding: 14px 10px 12px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.countdown b { display: block; font: 400 clamp(28px, 6vw, 46px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.countdown b.tick { animation: tick .5s var(--ease-out); }
@keyframes tick { from { transform: translateY(-30%); opacity: .2 } to { transform: none; opacity: 1 } }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--line); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--gold); animation: scrollhint 1.8s infinite; }
@keyframes scrollhint { 0% { opacity: 0; transform: translateY(0) } 30% { opacity: 1 } 100% { opacity: 0; transform: translateY(16px) } }

/* Baubles */
.baubles { position: absolute; inset: 0; pointer-events: none; }
.bauble {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,0) 18%), radial-gradient(circle at 50% 50%, var(--c1), var(--c2) 70%);
  box-shadow: 0 30px 60px -20px var(--c2), inset -10px -14px 30px rgba(0,0,0,.35);
  translate: var(--px, 0) var(--py, 0);
  animation: bob 7s ease-in-out infinite;
  transition: translate .8s var(--ease-out);
}
.bauble::before { content: ""; position: absolute; left: 50%; top: -9%; width: 18%; height: 12%; translate: -50% 0; border-radius: 3px; background: linear-gradient(#e9cf8d, #8a6a2c); }
.bauble::after { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 100vh; background: linear-gradient(to top, rgba(244,201,122,.45), transparent 60%); }
.b1 { --c1: #ff6a52; --c2: #8a1022; width: 90px; height: 90px; left: 8%; top: 22%; animation-delay: -1s; }
.b2 { --c1: #ffe3a8; --c2: #a8742a; width: 56px; height: 56px; right: 12%; top: 18%; animation-delay: -3s; }
.b3 { --c1: #3c8f74; --c2: #0b3328; width: 120px; height: 120px; right: 6%; bottom: 16%; animation-delay: -2s; opacity: .85; }
.b4 { --c1: #f3d9ff; --c2: #6b3c8f; width: 40px; height: 40px; left: 16%; bottom: 22%; animation-delay: -5s; opacity: .8; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg) } 50% { transform: translateY(-16px) rotate(3deg) } }

/* ───────────── Marquee ───────────── */
.marquee { position: relative; z-index: 3; overflow: hidden; border-block: 1px solid var(--line); background: rgba(14, 44, 36, .35); padding: 18px 0; transform: rotate(-2deg); margin: 10px -10px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee span { font: italic 300 clamp(28px, 4vw, 48px)/1 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; white-space: nowrap; }
.marquee i { color: var(--gold); font-style: normal; font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────────── Expect ───────────── */
.expect { max-width: 1180px; margin: 0 auto; padding: clamp(90px, 14vw, 160px) 20px 40px; }
.section-title { font: 300 clamp(36px, 6vw, 72px)/1.02 var(--serif); letter-spacing: -.025em; margin: 0 0 56px; font-variation-settings: "opsz" 144; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1000px; }
.card {
  position: relative; padding: 28px 24px 30px; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), border-color .4s;
}
.card:hover { border-color: rgba(244, 201, 122, .4); }
.card-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(244,201,122,.18), transparent 50%); }
.card:hover .card-glow { opacity: 1; }
.ico { width: 46px; height: 46px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; transform: translateZ(40px); }
.ico .fill { fill: var(--gold); stroke: none; }
.card h3 { margin: 0 0 10px; font: 400 28px/1.1 var(--serif); transform: translateZ(30px); }
.card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 15px; transform: translateZ(20px); }

/* ───────────── Details ticket ───────────── */
.details { max-width: 920px; margin: 0 auto; padding: 60px 20px 40px; }
.ticket-stub {
  display: grid; grid-template-columns: 1fr auto 1.3fr; border-radius: var(--r);
  background: linear-gradient(135deg, var(--pine-2), var(--pine) 60%, #0a2019);
  border: 1px solid rgba(244, 201, 122, .25);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
  position: relative;
  -webkit-mask: radial-gradient(circle 16px at var(--cut, 43.5%) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 16px at var(--cut, 43.5%) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 16px at var(--cut, 43.5%) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 16px at var(--cut, 43.5%) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.stub-left, .stub-right { padding: 34px 34px 36px; }
.stub-perf { width: 0; border-left: 2px dashed rgba(244, 201, 122, .3); margin: 22px 0; }
.stub-label { margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.stub-value { margin: 0; font: 400 clamp(26px, 3.6vw, 38px)/1.1 var(--serif); }
.stub-sub { margin: 8px 0 0; color: #cfd7cf; }
.stub-link { display: inline-block; margin-top: 14px; color: var(--gold); font-weight: 700; text-decoration: none; }
.details-note { text-align: center; color: var(--muted); margin: 22px 0 0; font-size: 14px; }

/* ───────────── Final ───────────── */
.final { text-align: center; padding: clamp(90px, 14vw, 170px) 20px clamp(80px, 12vw, 140px); }
.final-title { margin: 0 0 40px; font: 300 clamp(40px, 7.5vw, 96px)/1 var(--serif); letter-spacing: -.03em; font-variation-settings: "opsz" 144; }
.final-sub { color: var(--muted); font-size: 14px; margin-top: 18px; }

.footer { text-align: center; padding: 30px 20px calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; }
.footer p { margin: 4px 0; }

/* ───────────── Reveal on scroll ───────────── */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.card.reveal.in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ───────────── RSVP overlay ───────────── */
.rsvp { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.rsvp-bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 600px at 50% 120%, rgba(244,201,122,.16), transparent 60%), rgba(7, 11, 20, .94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%));
  transition: clip-path .8s var(--ease-out);
}
.rsvp.open .rsvp-bg { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); }
.rsvp.closing .rsvp-bg { transition-duration: .5s; clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%)); }
.rsvp-top, .rsvp-form, .done { opacity: 0; transition: opacity .4s .25s; }
.rsvp.open .rsvp-top, .rsvp.open .rsvp-form, .rsvp.open .done { opacity: 1; }
.rsvp.closing .rsvp-top, .rsvp.closing .rsvp-form, .rsvp.closing .done { opacity: 0; transition-delay: 0s; }

.rsvp-top { display: flex; align-items: center; gap: 16px; padding: max(18px, env(safe-area-inset-top)) clamp(18px, 4vw, 48px) 0; }
.icon-btn { appearance: none; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--cream); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .3s var(--ease-spring), background .3s; }
.icon-btn:hover { background: rgba(255,255,255,.1); transform: rotate(90deg); }

/* progress = a strand of bulbs that light up */
.progress { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; align-items: center; gap: 0; height: 30px; }
.progress li { flex: 1; position: relative; height: 2px; background: #1e2a26; }
.progress li::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 10px; height: 14px; translate: 50% -30%;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: #26302c; transition: background .4s, box-shadow .4s, transform .5s var(--ease-spring);
}
.progress li.on { background: linear-gradient(90deg, rgba(244,201,122,.3), rgba(244,201,122,.6)); }
.progress li.on::after { background: var(--c, var(--gold)); box-shadow: 0 0 10px var(--c, var(--gold)), 0 0 22px var(--c, var(--gold)); transform: scale(1.15); }

.rsvp-form { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 760px; margin: 0 auto; padding: 20px clamp(20px, 5vw, 40px) calc(24px + env(safe-area-inset-bottom)); }
.stage { position: relative; min-height: 330px; }
.step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.step.enter { animation: stepIn .65s var(--ease-out) both; }
.step.enter-back { animation: stepInBack .65s var(--ease-out) both; }
.step.leave { animation: stepOut .4s ease-in both; pointer-events: none; }
.step.leave-back { animation: stepOutBack .4s ease-in both; pointer-events: none; }
@keyframes stepIn { from { opacity: 0; transform: translateY(60px); filter: blur(8px) } }
@keyframes stepInBack { from { opacity: 0; transform: translateY(-60px); filter: blur(8px) } }
@keyframes stepOut { to { opacity: 0; transform: translateY(-50px); filter: blur(8px) } }
@keyframes stepOutBack { to { opacity: 0; transform: translateY(50px); filter: blur(8px) } }

.q-num { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .14em; margin-bottom: 16px; }
.q-title { margin: 0 0 8px; font: 300 clamp(30px, 5.4vw, 54px)/1.08 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.q-hint { margin: 0 0 30px; color: var(--muted); font-size: 15px; }
.field { position: relative; display: block; margin-bottom: 18px; }
.field input {
  width: 100%; appearance: none; border: 0; outline: 0; background: transparent;
  color: var(--cream); font: 400 clamp(22px, 3.6vw, 32px)/1.3 var(--sans);
  padding: 10px 0 12px; border-bottom: 2px solid rgba(247,239,225,.18); border-radius: 0;
  caret-color: var(--gold);
}
.field input::placeholder { color: rgba(247,239,225,.26); }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--gold), var(--ember)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.field-label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.phone-wrap { display: flex; align-items: baseline; gap: 10px; }
.phone-wrap .cc { font: 400 clamp(22px, 3.6vw, 32px)/1.3 var(--sans); color: var(--muted); }

.choices { display: grid; gap: 12px; max-width: 520px; }
.choice {
  position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.035);
  font-size: 18px; font-weight: 600; transition: border-color .3s, background .3s, transform .35s var(--ease-spring);
}
.choice:hover { background: rgba(255,255,255,.07); transform: translateX(4px); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .key { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 1px solid var(--line); color: var(--muted); flex: none; transition: all .3s; }
.choice .emoji { font-size: 22px; }
.choice:has(input:checked) { border-color: var(--gold); background: rgba(244,201,122,.1); }
.choice:has(input:checked) .key { background: var(--gold); color: var(--night); border-color: var(--gold); }
.choice:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice.flash { animation: flash .5s; }
@keyframes flash { 30% { background: rgba(244,201,122,.3) } }
.other-input { margin-top: 6px; max-width: 520px; }

.error { min-height: 22px; color: #ff9a8a; font-size: 14px; font-weight: 600; margin: 4px 0 0; display: flex; align-items: center; gap: 8px; }
.shake { animation: shake .45s; }
@keyframes shake { 20%,60% { transform: translateX(-8px) } 40%,80% { transform: translateX(8px) } }

.rsvp-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
#btn-next.loading span::after { content: "…"; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ───────────── Success ───────────── */
.done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 20px calc(30px + env(safe-area-inset-bottom)); overflow-y: auto; }
.ticket {
  position: relative; width: min(380px, 92vw); padding: 26px 26px 24px; border-radius: 24px; text-align: left; overflow: hidden;
  color: #1a1206;
  background: linear-gradient(145deg, #fff3d6, var(--gold) 55%, #d98e42);
  box-shadow: 0 50px 100px -30px rgba(244, 201, 122, .55), inset 0 1px 0 rgba(255,255,255,.7);
  animation: ticketIn 1.1s var(--ease-spring) both;
  transform-style: preserve-3d;
}
@keyframes ticketIn { from { opacity: 0; transform: translateY(80px) rotateX(50deg) scale(.8) } }
.ticket-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.ticket-name { margin: 22px 0 6px; font: 500 clamp(30px, 8vw, 40px)/1.05 var(--serif); letter-spacing: -.02em; word-break: break-word; }
.ticket-event { margin: 0 0 22px; font-size: 14px; font-weight: 600; opacity: .8; line-height: 1.4; }
.ticket-event em { color: #6b1420; }
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 10px; border-top: 2px dashed rgba(26,18,6,.25); padding-top: 16px; }
.ticket-meta small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.ticket-meta b { font-size: 14px; }
.ticket-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); transform: translateX(-120%); animation: shine 2.8s 1s ease-in-out infinite; mix-blend-mode: overlay; }
@keyframes shine { 0% { transform: translateX(-120%) } 45%, 100% { transform: translateX(120%) } }
.done-title { margin: 34px 0 8px; font: 300 clamp(32px, 6vw, 56px)/1.05 var(--serif); animation: rise 1s .5s var(--ease-out) both; }
.done-sub { color: var(--muted); margin: 0 0 26px; animation: rise 1s .65s var(--ease-out) both; }
.done-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; animation: rise 1s .8s var(--ease-out) both; }

/* ───────────── Toast ───────────── */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80; translate: -50% 140%; opacity: 0; visibility: hidden; padding: 14px 20px; border-radius: 14px; background: #1b2420; border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: translate .5s var(--ease-spring); max-width: 90vw; }
.toast { transition: translate .5s var(--ease-spring), opacity .3s, visibility .5s; }
.toast.show { translate: -50% 0; opacity: 1; visibility: visible; transition-delay: 0s; }

/* ───────────── Hero crowd (hope & justice) ───────────── */
.hero > *:not(.baubles):not(.crowd-wrap) { position: relative; z-index: 2; }
.crowd-wrap { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(180px, 24vw, 300px); z-index: 1; pointer-events: none; }
.crowd-wrap::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18%; background: linear-gradient(to top, var(--night), transparent); }
.crowd { position: absolute; inset: 0; width: 100%; height: 100%; }
.uplight { position: absolute; left: 10%; right: 10%; bottom: 0; height: 80%; background: radial-gradient(60% 70% at 50% 100%, rgba(255, 170, 80, .22), transparent 70%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .65 } }
.crowd .sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway var(--sd) ease-in-out infinite alternate; animation-delay: var(--sdl); }
@keyframes sway { from { transform: rotate(calc(var(--sa) * -1)) } to { transform: rotate(var(--sa)) } }
.crowd .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker var(--fd) ease-in-out infinite alternate; animation-delay: var(--fdl); }
.crowd .halo { animation: halo var(--fd) ease-in-out infinite alternate; animation-delay: var(--fdl); }
@keyframes flicker { 0% { transform: scale(1, 1) skewX(0) } 40% { transform: scale(.9, 1.12) skewX(3deg) } 100% { transform: scale(1.05, .92) skewX(-2deg) } }
@keyframes halo { from { opacity: .75 } to { opacity: 1 } }
.when-line { margin: 0; font-size: 15px; letter-spacing: .02em; }
.when-line b { color: var(--gold-2); }

/* ───────────── Manifesto ───────────── */
.manifesto { position: relative; max-width: 1100px; margin: 0 auto; padding: clamp(110px, 16vw, 200px) 20px clamp(60px, 10vw, 120px); text-align: center; }
.ghost-words { position: absolute; inset: 0; overflow: hidden; pointer-events: none; display: flex; flex-direction: column; justify-content: space-around; z-index: -1; }
.ghost { display: block; white-space: nowrap; font: 800 clamp(90px, 18vw, 260px)/1 var(--sans); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(244, 201, 122, .09); will-change: transform; }
.g1 { margin-left: -40%; }
.g2 { margin-left: -10%; -webkit-text-stroke-color: rgba(255, 95, 69, .08); }
.manifesto-title { margin: 0 0 46px; font: 300 clamp(56px, 11vw, 150px)/.95 var(--serif); letter-spacing: -.035em; font-variation-settings: "opsz" 144; }
.manifesto-title i { font-style: italic; color: var(--muted); font-weight: 200; }
.manifesto-title em { text-shadow: 0 0 50px rgba(244, 201, 122, .35); }
.scrub { max-width: 900px; margin: 0 auto; text-align: left; font: 400 clamp(22px, 3.3vw, 38px)/1.38 var(--serif); letter-spacing: -.01em; font-variation-settings: "opsz" 72; }
.scrub .w { color: rgba(247, 239, 225, .16); transition: color .45s ease; }
.scrub .w.on { color: var(--cream); }
.scrub .w.key.on { color: var(--gold); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.verses { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 70px; text-align: left; }
.verse { margin: 0; padding: 26px 28px; border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgba(244,201,122,.08), transparent); border-radius: 0 16px 16px 0; }
.verse p { margin: 0 0 12px; font: italic 300 clamp(20px, 2.4vw, 26px)/1.35 var(--serif); font-variation-settings: "SOFT" 100; }
.verse cite { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* ───────────── Venue card ───────────── */
.venue-card { margin-top: 22px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.map-frame { position: relative; height: clamp(260px, 42vw, 420px); background: #0d1418; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .8s, filter .6s;
  /* dark-mode the stock Google embed so it matches the night palette; hover restores real colours */
  filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95) contrast(.95); }
.map-frame.loaded iframe { opacity: 1; }
.map-frame:hover iframe { filter: none; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.map-loading .pin { color: var(--gold); animation: spin 3s linear infinite; display: inline-block; margin-right: 6px; }
.venue-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); }
.venue-name { margin: 0; font: 400 22px/1.2 var(--serif); }
.venue-hint { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.gallery { border-top: 1px solid var(--line); padding: 16px 0 12px; }
.gallery-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 22px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-track::-webkit-scrollbar { display: none; }
.shot { flex: none; width: clamp(200px, 32vw, 280px); margin: 0; scroll-snap-align: start; opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.shot.ready { opacity: 1; transform: none; }
.shot-btn { display: block; width: 100%; padding: 0; border: 0; background: #111; border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.shot-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease-out); }
.shot-btn:hover img { transform: scale(1.06); }
.shot figcaption { margin-top: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot figcaption a { color: inherit; }
.gallery-credit { margin: 6px 22px 0; font-size: 11px; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(4, 6, 10, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s; padding: 60px 16px 70px; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 40px 90px -20px #000; }
.lightbox img.in { animation: lbIn .5s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96) } }
.lb-cap { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; margin: 0; color: var(--muted); font-size: 13px; }
.lb-x { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; font-size: 26px; line-height: 1; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }

/* ───────────── Poster ───────────── */
.poster { max-width: 1100px; margin: 0 auto; padding: clamp(70px, 10vw, 120px) 20px 0; display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.poster-card { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), 0 0 0 1px var(--line); transform: rotate(-2.5deg); transition: transform .8s var(--ease-spring); cursor: zoom-in; }
.poster-card:hover { transform: rotate(0) scale(1.02); }
.poster-card img { display: block; width: 100%; height: auto; }
.poster-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%); transform: translateX(-120%); animation: shine 4s 1.5s ease-in-out infinite; pointer-events: none; }
.poster-copy h2 { margin: 0 0 16px; font: 300 clamp(36px, 5vw, 60px)/1.05 var(--serif); letter-spacing: -.02em; }
.poster-copy p { color: var(--muted); line-height: 1.6; margin: 0 0 26px; }
.poster-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ───────────── Responsive ───────────── */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .verses { grid-template-columns: 1fr; }
  .poster { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .poster-card { max-width: 380px; }
  .poster-actions { justify-content: center; }
}
/* Touch devices: drop the costliest effects so scrolling stays at 60fps on mid-range Android. */
@media (hover: none) {
  .grain { animation: none; }
  .reveal { filter: none; }
  .countdown div, .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.scrolled { background: rgba(7, 11, 20, .88); }
  .map-frame iframe { filter: none; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .cards { grid-template-columns: 1fr; }
  .ticket-stub { grid-template-columns: 1fr; --cut: -100px; }
  .stub-perf { width: auto; height: 0; border-left: 0; border-top: 2px dashed rgba(244, 201, 122, .3); margin: 0 22px; }
  .stub-left, .stub-right { padding: 26px; }
  .field-row { grid-template-columns: 1fr; gap: 4px; }
  .b1 { width: 60px; height: 60px; left: 4%; top: 14%; }
  .b3 { width: 76px; height: 76px; bottom: 9%; }
  .b2 { top: 12%; }
  .b4 { display: none; }
  .stage { min-height: 380px; }
  .rsvp-form { justify-content: flex-start; padding-top: 6vh; }
  .venue-bar { flex-direction: column; align-items: stretch; }
  .venue-bar .btn { width: 100%; }
  .scrub { text-align: left; }
  .hero { padding-bottom: 190px; }
}

@media (max-height: 960px) { .scroll-hint { display: none; } }
/* Landscape phones: compact the form so Back/OK never fall below the fold. */
@media (max-height: 560px) {
  .rsvp-form { justify-content: flex-start; padding-top: 4px; }
  .stage { min-height: 200px; }
  .q-num { margin-bottom: 6px; }
  .q-title { font-size: clamp(24px, 4vw, 34px); }
  .q-hint { margin-bottom: 12px; font-size: 14px; }
  .field input { font-size: 22px; padding: 6px 0 8px; }
  .choices { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .choice { padding: 12px 14px; font-size: 16px; }
  .rsvp-nav { margin-top: 10px; }
  .done { justify-content: flex-start; }
  .ticket { transform: scale(.85); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .split .ch { transform: none; opacity: 1; }
}
