/* ═══════════════════════════════════════════════════════════════
   GODA Galactic Launch 2026 — Undangan VIP
   Premium Cosmic Interface · mobile-first (375×812 reference)
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --space-950:    #020B18;
  --space-900:    #061326;
  --galactic-800: #081B3A;
  --goda-core:    #222167;
  --electric-500: #1677FF;   /* brand accent: glows, focus ring, eyebrows */
  --electric-600: #0067F6;   /* same hue, darkened so white body text hits AA (4.92:1) */
  --sky-300:      #73BCFF;
  --starlight-50: #F4F8FF;
  --mist-300:     #AFC1D8;
  --ink-950:      #07111F;
  --ink-600:      #3B4C63;
  --goda-orange:  #FF8700;
  --success:      #38C793;
  --error:        #FF647C;
  --error-ink:    #B3263F;   /* AA-contrast error text on light surfaces */
  --line-light:   #C9D6E8;
  --wash:         #E6EEFA;

  --r-sm: 12px;  --r-md: 18px;  --r-lg: 24px;  --r-xl: 32px;  --r-pill: 999px;

  --gutter: 20px;
  --col: 480px;

  --f-display: Michroma, "Manrope", system-ui, sans-serif;
  --f-body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (max-width: 359px) { :root { --gutter: 16px; } }

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--starlight-50);
  background: var(--space-950);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--sky-300); text-decoration: none; }
:focus-visible { outline: 3px solid var(--electric-500); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ── Cosmic atmosphere (fixed, behind everything) ───────────── */
.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.atmos--field {
  background:
    radial-gradient(60% 40% at 50% -5%,  rgba(22,119,255,.30), transparent 70%),
    radial-gradient(45% 35% at 90% 70%,  rgba(115,188,255,.12), transparent 70%),
    radial-gradient(40% 30% at 5%  45%,  rgba(34,33,103,.50),  transparent 70%),
    linear-gradient(180deg, #041022 0%, var(--space-950) 60%, #030d1f 100%);
}
.atmos--stars {
  opacity: .7;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(244,248,255,.9), transparent 60%),
    radial-gradient(1px   1px   at 78% 9%,  rgba(244,248,255,.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 31%, rgba(115,188,255,.9), transparent 60%),
    radial-gradient(1px   1px   at 28% 52%, rgba(244,248,255,.7), transparent 60%),
    radial-gradient(1px   1px   at 88% 44%, rgba(244,248,255,.6), transparent 60%),
    radial-gradient(1.4px 1.4px at 40% 74%, rgba(244,248,255,.8), transparent 60%),
    radial-gradient(1px   1px   at 8%  86%, rgba(115,188,255,.8), transparent 60%),
    radial-gradient(1px   1px   at 70% 92%, rgba(244,248,255,.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 52% 58%, rgba(244,248,255,.5), transparent 60%),
    radial-gradient(1px   1px   at 94% 24%, rgba(244,248,255,.7), transparent 60%);
}

.shell { position: relative; z-index: 1; max-width: var(--col); margin: 0 auto; }

/* ── Shared atoms ───────────────────────────────────────────── */
.eyebrow { font-size: 12px; letter-spacing: .28em; font-weight: 600; }
.eyebrow--sky  { color: var(--sky-300); }
.eyebrow--blue { color: var(--electric-500); font-weight: 700; }
.eyebrow--hot  { color: var(--goda-orange); letter-spacing: .2em; }
.accent { color: var(--goda-orange); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 700; text-align: center;
  cursor: pointer; transition: transform .15s var(--ease), background-color .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--electric { background: var(--electric-600); color: #fff; box-shadow: 0 12px 30px rgba(22,119,255,.35); }
.btn--ink { background: var(--ink-950); color: var(--starlight-50); width: 100%; min-height: 54px; }
.btn--outline { background: #fff; color: var(--ink-950); border: 1px solid var(--line-light); width: 100%; min-height: 48px; font-weight: 600; font-size: 15px; }
.btn--disabled { background: #8D9AAE; color: #fff; width: 100%; min-height: 54px; cursor: not-allowed; }
.btn--ghost {
  align-self: flex-start; min-height: 48px; padding: 0 20px;
  /* transparent explicitly: on <a> the default is already none, but on
     <button> the UA paints a grey face and the ghost stops being a ghost */
  background: transparent;
  border: 1px solid rgba(244,248,255,.20);
  color: var(--starlight-50); font-size: 15px; font-weight: 600;
}
.btn--ghost:active { transform: scale(.98); }

.sec__head { margin-bottom: 24px; }
.sec__title { margin-top: 12px; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }

.logo-goda { height: 30px; width: auto; }
.logo-goda--sm { height: 28px; }

/* ══════════ 01 · COVER ══════════ */
.cover {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) max(28px, env(safe-area-inset-bottom));
}
/* Backdrop layer: still underneath, video over it once it can play.
   Slightly oversized so the parallax drift never exposes an edge. */
.cover__bg {
  position: absolute; inset: -6% 0 -10%; z-index: -2;
  will-change: transform;
}
.cover__still, .cover__still img, .cover__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 40%;
}
.cover__still img { animation: gBlur 1s var(--ease) both; }
.cover__video {
  opacity: 0; transition: opacity .9s var(--ease);
  object-position: center;
  pointer-events: none;
}
.cover__video.is-ready { opacity: 1; }
.cover__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(2,11,24,.55) 0%, rgba(2,11,24,.15) 30%,
    rgba(2,11,24,.55) 62%, rgba(2,11,24,.94) 100%);
}
.cover__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; animation: gBlur .7s var(--ease) both; }
.chip-vip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--r-pill);
  border: 1px solid rgba(244,248,255,.18);
  background: rgba(2,11,24,.35); backdrop-filter: blur(12px);
  font-size: 11px; letter-spacing: .2em; font-weight: 600;
}
.chip-vip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--goda-orange); box-shadow: 0 0 10px rgba(255,135,0,.9); }

.cover__mark { padding: 48px 0 16px; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* The <picture> wrapper fills the column, so the image needs its own auto
   margins — align-items:center centres the wrapper, not the img inside it. */
.cover__mark picture { width: 100%; }
.mark { width: min(78%, 300px); height: auto; margin-inline: auto; filter: drop-shadow(0 12px 30px rgba(2,11,24,.6)); animation: gBlur .9s .1s var(--ease) both; }
.mark__year { margin-top: 14px; font-family: var(--f-display); font-size: 12px; letter-spacing: .34em; animation: gFade .5s .3s var(--ease) both; }

.cover__foot { display: flex; flex-direction: column; gap: 22px; }
.salut { animation: gFade .5s .35s var(--ease) both; }
.salut__eyebrow { font-size: 15px; color: var(--mist-300); }
.salut__name {
  margin-top: 8px; font-size: clamp(30px, 8.6vw, 40px); line-height: 1.05;
  font-weight: 600; letter-spacing: -.02em; text-wrap: balance;
  overflow-wrap: break-word;
}
.salut__meta { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.5; color: var(--mist-300); }
.salut__meta > span:last-child:not([hidden]) { color: var(--starlight-50); font-weight: 600; }

.pills { display: flex; gap: 8px; flex-wrap: wrap; animation: gFade .5s .45s var(--ease) both; }
.pill {
  padding: 10px 14px; border-radius: var(--r-pill);
  background: rgba(2,11,24,.5); border: 1px solid rgba(244,248,255,.14);
  backdrop-filter: blur(10px); font-size: 13px; font-weight: 600;
}
.pill--muted { color: var(--mist-300); }

.btn-open {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; padding: 6px 6px 6px 24px;
  border: 0; border-radius: var(--r-pill);
  background: var(--starlight-50); color: var(--ink-950);
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: transform .15s var(--ease); animation: gFade .5s .55s var(--ease) both;
}
.btn-open:active { transform: scale(.98); }
.btn-open__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--goda-orange); display: grid; place-items: center; color: #fff; }

.scroll-hint {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  min-height: 56px; color: var(--mist-300);
  font-size: 12px; letter-spacing: .2em; font-weight: 600;
  animation: gBob 2.2s ease-in-out infinite;
}

/* Once open, the bottom nav occupies the foot of the screen — lift the cover's
   content clear of it so the scroll hint is not sitting under the bar. */
html.opened .cover { padding-bottom: calc(max(28px, env(safe-area-inset-bottom)) + 74px); }

/* ── The gate: JS hides the body until the invitation is opened ── */
.body { display: flex; flex-direction: column; gap: 96px; padding: 24px var(--gutter) 140px; }
html.js .body { display: none; }
html.js.opened .body { display: flex; }
html.no-js [data-open-invite] { display: none; }
/* Without JS the RSVP form cannot submit anywhere — offer WhatsApp instead. */
html.no-js [data-rsvp-form] { display: none; }

/* ══════════ 02 · HERO ══════════ */
.hero { display: flex; flex-direction: column; gap: 20px; }
.hero__panel {
  position: relative; overflow: hidden;
  padding: 28px 24px 26px; border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(22,119,255,.32) 0%, rgba(8,27,58,.85) 55%, rgba(6,19,38,.95) 100%);
  border: 1px solid rgba(115,188,255,.22);
  box-shadow: inset 0 1px 0 rgba(244,248,255,.12), 0 30px 80px rgba(2,11,24,.6);
}
.hero__glow {
  position: absolute; right: -90px; top: -110px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(115,188,255,.55), rgba(22,119,255,.15) 45%, transparent 70%);
  filter: blur(10px);
}
.hero__panel > *:not(.hero__glow) { position: relative; }
.hero__title { margin-top: 18px; font-family: var(--f-display); font-size: clamp(22px, 6.4vw, 28px); line-height: 1.2; font-weight: 400; letter-spacing: .02em; }
.hero__lede { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--mist-300); max-width: 32ch; text-wrap: pretty; }

.countdown { margin-top: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cd { padding: 12px 4px; border-radius: 16px; background: rgba(2,11,24,.45); border: 1px solid rgba(244,248,255,.1); text-align: center; }
.cd__num { display: block; font-family: var(--f-display); font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.cd__lbl { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .14em; color: var(--mist-300); }
.countdown__live { margin-top: 12px; font-size: 14px; color: var(--sky-300); font-weight: 600; }

.agenda { display: flex; flex-direction: column; gap: 8px; }
.agenda__row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(244,248,255,.05); border: 1px solid rgba(244,248,255,.1); }
.agenda__day { flex: none; width: 44px; font-family: var(--f-display); font-size: 11px; color: var(--sky-300); }
.agenda__day--hot { color: var(--goda-orange); }
.agenda__body { flex: 1; min-width: 0; }
.agenda__title { display: block; font-weight: 600; font-size: 15px; }
.agenda__place { display: block; margin-top: 2px; font-size: 13px; color: var(--mist-300); }

/* ══════════ 03 · SURAT UNDANGAN ══════════ */
.letter { position: relative; }
.letter__halo {
  position: absolute; left: 50%; top: -60px; width: 320px; height: 200px; margin-left: -160px;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(115,188,255,.28), transparent 70%); filter: blur(30px);
}
.panel-light {
  position: relative; padding: 32px 24px 30px; border-radius: var(--r-xl);
  background: var(--starlight-50); color: var(--ink-950);
  box-shadow: 0 30px 80px rgba(2,11,24,.5);
}
.letter__to { margin-top: 22px; font-size: 16px; color: var(--ink-600); }
.letter__name { margin-top: 4px; font-size: 20px; line-height: 1.3; font-weight: 700; overflow-wrap: break-word; }
.letter__meta { margin-top: 4px; display: flex; flex-direction: column; font-size: 16px; line-height: 1.55; color: var(--ink-600); }
.letter__p { margin-top: 18px; font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.letter__p:first-of-type { margin-top: 28px; }
.pullquote {
  margin: 26px 0; padding: 22px 20px; border-radius: var(--r-lg);
  background: var(--ink-950); color: var(--starlight-50); text-align: center;
  font-family: var(--f-display); font-size: clamp(15px, 4.4vw, 19px); line-height: 1.4; letter-spacing: .04em;
}
.letter__divider { margin-top: 32px; }
.sign { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sign__from { display: block; font-size: 16px; color: var(--ink-600); }
.sign__org { display: block; margin-top: 4px; font-size: 16px; font-weight: 700; }
.sign__mark { width: 44px; height: 44px; }

/* ══════════ 04 · HIGHLIGHTS ══════════ */
.highlights { display: flex; flex-direction: column; gap: 12px; }
.hl { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.hl__title { margin-top: 8px; font-size: 24px; line-height: 1.15; font-weight: 600; }
.hl__title--sm { font-size: 20px; line-height: 1.2; }
.hl__desc { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--mist-300); }
.hl__desc--light { color: var(--wash); max-width: 30ch; }

/* Image-led card: the match key visual carries its own lockup and type, so it
   sits uncropped at its native 16:9 and the copy reads underneath it rather
   than on top of it. */
.hl--image { display: flex; flex-direction: column; background: var(--galactic-800); border: 1px solid rgba(244,248,255,.12); }
.hl__art { display: block; width: 100%; }
.hl__art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hl__scrim { height: 1px; background: rgba(244,248,255,.12); }
.hl__copy { padding: 20px 22px 22px; }

/* Video card: the poster holds the frame so the card never reflows, and the
   clip fades in over it on canplay — same contract as the cover. */
.hl__art--video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.hl__poster, .hl__poster img, .hl__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hl__video { opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; }
.hl__video.is-ready { opacity: 1; }

/* ══════════ 05 · VENUE ══════════ */
.venue { display: flex; flex-direction: column; gap: 12px; }
.vcard { border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(244,248,255,.12); background: rgba(244,248,255,.04); }
.vcard__art { position: relative; display: block; height: 172px; overflow: hidden; background: var(--galactic-800); }
.vcard__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
/* the stadium sits low in its frame — hold the bowl in view when cropped */
.vcard__art--gbk img { object-position: center 46%; }
.vcard__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.vcard__name { margin-top: 8px; font-size: 20px; line-height: 1.2; font-weight: 600; }
.vcard__addr { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--mist-300); }

.acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.act {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 12px; border-radius: var(--r-md);
  background: rgba(244,248,255,.06); border: 1px solid rgba(244,248,255,.12);
  color: var(--starlight-50); font-size: 14px; font-weight: 600; text-align: center;
}

/* ══════════ 06 · RSVP ══════════ */
.rsvp { position: relative; }
.rsvp__halo {
  position: absolute; left: 50%; top: -40px; width: 320px; height: 200px; margin-left: -160px;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(22,119,255,.3), transparent 70%); filter: blur(30px);
}
.rsvp .panel-light { padding: 30px 24px; }
.rsvp__title { margin-top: 12px; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }

.form { margin-top: 22px; display: flex; flex-direction: column; gap: 20px; }
.guestbox { padding: 16px 18px; border-radius: var(--r-md); background: var(--wash); }
.guestbox__lbl { font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--ink-600); }
.guestbox__name { margin-top: 6px; font-size: 16px; font-weight: 700; overflow-wrap: break-word; }
.guestbox__meta { display: flex; flex-direction: column; font-size: 14px; color: var(--ink-600); }

.fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.fs__legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg__btn {
  min-height: 52px; border-radius: 16px; border: 1px solid var(--line-light);
  background: #fff; color: var(--ink-950); font-size: 16px; font-weight: 700; cursor: pointer;
  transition: transform .15s var(--ease);
}
.seg__btn:active { transform: scale(.98); }
.seg__btn[data-attend="yes"][aria-pressed="true"] { border: 2px solid var(--electric-600); background: var(--electric-600); color: #fff; }
.seg__btn[data-attend="no"][aria-pressed="true"]  { border: 2px solid var(--ink-950); background: var(--ink-950); color: #fff; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field__lbl { font-size: 14px; font-weight: 600; }
.field__opt { color: var(--ink-600); font-weight: 400; }
.field__in {
  min-height: 52px; padding: 0 16px; width: 100%;
  border-radius: 14px; border: 1px solid var(--line-light); background: #fff;
  font-size: 16px; color: var(--ink-950);
}
.field__in--area { padding: 14px 16px; min-height: 0; line-height: 1.5; resize: vertical; }
.field__in::placeholder { color: #7C8CA3; }
.field__in[aria-invalid="true"] { border-color: var(--error-ink); }
.err { font-size: 13px; color: var(--error-ink); font-weight: 600; }

.onlyyes { display: flex; flex-direction: column; gap: 20px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper__btn { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-light); background: #fff; color: var(--ink-950); font-size: 20px; cursor: pointer; }
.stepper__in { width: 64px; height: 48px; text-align: center; border-radius: 14px; border: 1px solid var(--line-light); background: #fff; font-size: 16px; font-weight: 700; color: var(--ink-950); }
.form__note { font-size: 13px; line-height: 1.5; color: var(--ink-600); }

.state { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.state[hidden] { display: none; }
.state--success, .state--failed { animation: gFade .35s var(--ease) both; }
.state[data-state="submitting"] { align-items: center; text-align: center; padding: 32px 0; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line-light); border-top-color: var(--electric-500); animation: gSpin .8s linear infinite; }
.state__msg { font-size: 15px; color: var(--ink-600); }
.state__head { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; }
.state__head--err { color: var(--error-ink); font-size: 16px; }
.state__tick { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--success); display: grid; place-items: center; color: #fff; }
.state__body { font-size: 15px; line-height: 1.55; color: var(--ink-600); }
.summary { padding: 18px; border-radius: var(--r-md); background: var(--wash); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; }
.summary__row dt { color: var(--ink-600); }
.summary__row dd { margin: 0; font-weight: 700; text-align: right; }

/* ══════════ 07 · UCAPAN ══════════ */
.wishlist { display: flex; flex-direction: column; gap: 10px; }
.wish {
  display: flex; gap: 14px; padding: 18px;
  border-radius: var(--r-lg);
  background: rgba(244,248,255,.05);
  border: 1px solid rgba(244,248,255,.1);
}
.wish__avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(22,119,255,.45), rgba(8,27,58,.9));
  border: 1px solid rgba(115,188,255,.28);
  font-family: var(--f-display); font-size: 15px; color: var(--starlight-50);
}
.wish__body { flex: 1; min-width: 0; }
.wish__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wish__who { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.wish__time { flex: none; font-size: 12px; color: var(--mist-300); }
.wish__msg {
  margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--mist-300);
  overflow-wrap: anywhere; white-space: pre-line;
}
/* The section stays put even with nothing in it — an empty, inviting slot is
   what prompts the first dealer to write something. */
.wishes__empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 34px 24px 38px; text-align: center;
  border-radius: var(--r-lg);
  border: 1px dashed rgba(115,188,255,.28);
  background: rgba(244,248,255,.03);
}
.wishes__empty-lead { font-size: 16px; font-weight: 600; }
.wishes__empty-sub { font-size: 14px; line-height: 1.55; color: var(--mist-300); max-width: 34ch; }
.wishes__empty .btn--ghost { align-self: center; margin-top: 6px; }

.wishes__more { margin-top: 14px; display: flex; justify-content: center; }
.wishes__more .btn--ghost { align-self: center; }

/* ══════════ 08 · CLOSING ══════════ */
.closing {
  position: relative; overflow: hidden; min-height: 520px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px 24px; border-radius: var(--r-xl); border: 1px solid rgba(244,248,255,.1);
}
.closing__bg, .closing__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; }
.closing__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,11,24,.2) 0%, rgba(2,11,24,.35) 40%, rgba(2,11,24,.92) 100%); }
.closing__inner { position: relative; display: flex; flex-direction: column; gap: 28px; }
.closing__quote { font-size: clamp(22px, 6.2vw, 27px); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.closing__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(244,248,255,.16); }
.closing__link { font-size: 13px; color: var(--mist-300); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ══════════ Bottom navigation ══════════ */
.navbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; justify-content: center;
  padding: 0 12px max(10px, env(safe-area-inset-bottom));
  pointer-events: none;
  animation: gFade .3s var(--ease) both;
}
.navbar__list {
  pointer-events: auto; display: grid; grid-template-columns: repeat(4, 1fr);
  width: 100%; max-width: 440px; gap: 2px; padding: 6px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(244,248,255,.16);
  background: rgba(7,17,31,.82); backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(2,11,24,.5);
}
.navbar__cell { min-width: 0; }
.navbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 48px; padding: 5px 2px; border-radius: var(--r-pill);
  color: var(--mist-300); text-align: center;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.navbar__icon { width: 21px; height: 21px; flex: none; }
.navbar__label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em; line-height: 1;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.navbar__item:active { transform: scale(.97); }
.navbar__item[aria-current="true"] { color: var(--starlight-50); background: rgba(22,119,255,.22); }
.navbar__item[aria-current="true"] .navbar__icon { color: var(--sky-300); }

/* ══════════ Audio toggle ══════════ */
.audio-btn {
  position: fixed; right: var(--gutter); z-index: 6;
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + 76px);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(244,248,255,.16);
  background: rgba(7,17,31,.82); backdrop-filter: blur(18px);
  color: var(--starlight-50); cursor: pointer;
  box-shadow: 0 12px 30px rgba(2,11,24,.5);
  animation: gFade .3s var(--ease) both;
  transition: transform .15s var(--ease), color .18s var(--ease);
}
.audio-btn:active { transform: scale(.94); }
.audio-btn[aria-pressed="true"] { color: var(--sky-300); border-color: rgba(115,188,255,.35); }
.audio-btn .audio-btn__on { display: none; }
.audio-btn .audio-btn__off { display: grid; }
.audio-btn[aria-pressed="true"] .audio-btn__on { display: grid; }
.audio-btn[aria-pressed="true"] .audio-btn__off { display: none; }

.u-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ══════════ Motion ══════════ */
@keyframes gFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gBlur { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }
@keyframes gSpin { to { transform: rotate(360deg); } }
@keyframes gBob  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Scoped to a class the script adds only once it is ready to manage
   reveals, so a JS failure can never leave the content invisible. */
html.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px) scale(.988); }
html.reveal-ready [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .32s var(--ease), transform .42s var(--ease);
}

/* Children settle just after their section, one beat apart — brief §10.2
   keeps the stagger to 30–50ms and never moves more than a few things. */
html.reveal-ready [data-reveal] .agenda__row,
html.reveal-ready [data-reveal] .hl,
html.reveal-ready [data-reveal] .vcard,
html.reveal-ready [data-reveal] .act {
  opacity: 0; transform: translateY(12px);
}
html.reveal-ready [data-reveal].is-in .agenda__row,
html.reveal-ready [data-reveal].is-in .hl,
html.reveal-ready [data-reveal].is-in .vcard,
html.reveal-ready [data-reveal].is-in .act {
  opacity: 1; transform: none;
  transition: opacity .34s var(--ease), transform .44s var(--ease);
}
html.reveal-ready [data-reveal].is-in :is(.agenda__row, .hl, .vcard, .act):nth-child(2) { transition-delay: .05s; }
html.reveal-ready [data-reveal].is-in :is(.agenda__row, .hl, .vcard, .act):nth-child(3) { transition-delay: .10s; }
html.reveal-ready [data-reveal].is-in :is(.agenda__row, .hl, .vcard, .act):nth-child(4) { transition-delay: .15s; }

/* Closing quote arrives a line at a time */
.closing__quote .line { display: block; }
html.reveal-ready .closing__quote .line { opacity: 0; transform: translateY(16px); }
html.reveal-ready .closing.is-in .closing__quote .line {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .55s var(--ease);
}
html.reveal-ready .closing.is-in .closing__quote .line:nth-child(2) { transition-delay: .13s; }

/* Read-progress rail across the top of the nav bar. Scroll-driven where the
   browser supports it, so it runs off the main thread; hidden elsewhere. */
.navbar__progress { display: none; }
@supports (animation-timeline: scroll()) {
  .navbar__progress {
    display: block; position: absolute; left: 22px; right: 22px; top: 0;
    height: 2px; border-radius: 2px; overflow: hidden;
    background: linear-gradient(90deg, var(--sky-300), var(--electric-500));
    transform: scaleX(0); transform-origin: left center; opacity: .9;
    animation: navProgress linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes navProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ══════════ Responsive ══════════ */
@media (min-width: 768px) {
  :root { --col: 560px; }
  .body { padding-bottom: 160px; }
  .acts { gap: 12px; }
  .highlights { gap: 14px; }
}
@media (min-width: 1024px) {
  .venue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .venue .sec__head, .venue .acts { grid-column: 1 / -1; }
}

/* landscape phones: cover follows content height so the CTA is never cut off */
@media (orientation: landscape) and (max-height: 520px) {
  .cover { min-height: 0; padding-top: 24px; padding-bottom: 24px; gap: 24px; }
  .cover__mark { padding: 24px 0 8px; }
  .mark { width: min(48%, 240px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.reveal-ready [data-reveal],
  html.reveal-ready [data-reveal] :is(.agenda__row, .hl, .vcard, .act),
  html.reveal-ready .closing__quote .line { opacity: 1; transform: none; }
  .navbar__progress { display: none; }
  .cover__bg { transform: none !important; }
}
