*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0; min-height: 100dvh;
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; color: var(--ink);
  background: var(--lilac-50); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lilac-600); outline-offset: 4px; border-radius: 10px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js-pending .hero, .js-pending .nav { visibility: hidden; }

/* ---------- World layers ---------- */
.sky {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60% 40% at 15% 10%, rgb(255 255 255 / 0.9), transparent 70%),
    radial-gradient(50% 40% at 90% 20%, var(--pink-100), transparent 70%),
    radial-gradient(60% 50% at 70% 90%, var(--sky-100), transparent 70%),
    radial-gradient(50% 40% at 10% 80%, var(--mint-100), transparent 70%),
    linear-gradient(180deg, var(--lilac-100) 0%, var(--pink-50) 45%, var(--lilac-50) 100%);
}
#sparkles { position: fixed; inset: 0; z-index: 90; pointer-events: none; width: 100%; height: 100%; }

.cloud { position: absolute; pointer-events: none; filter: drop-shadow(0 18px 24px rgb(139 108 240 / 0.18)); }
.cloud svg { width: 100%; height: auto; overflow: visible; }

/* ---------- Brand ---------- */
.wordmark {
  display: inline-flex; align-items: baseline; font-family: var(--font-display); font-weight: 700;
  font-variation-settings: "wdth" 110; letter-spacing: -0.01em; line-height: 1; color: var(--ink); white-space: nowrap;
}
.wordmark__i { position: relative; display: inline-block; }
.wordmark__horn { position: absolute; left: 50%; top: -0.22em; width: 0.26em; height: 0.5em; translate: -46% 0; rotate: 14deg; overflow: visible; }

/* ---------- Floating island nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px;
  width: min(calc(100% - 24px), 560px);
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.62); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--glow-sm), inset 0 1px 0 rgb(255 255 255 / 0.9), 0 0 0 1px rgb(183 155 255 / 0.25);
}
.nav__brand { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; }
.nav__brand img { width: 38px; height: 40px; }
.nav__brand .wordmark { font-size: 1.45rem; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(255 255 255 / 0.7); color: var(--ink-2); font-size: 22px;
  box-shadow: inset 0 0 0 1px rgb(183 155 255 / 0.35);
  transition: transform 300ms var(--ease-spring), background 200ms;
}
.icon-btn:hover { transform: scale(1.08) rotate(-6deg); background: #fff; }
.icon-btn[aria-pressed="true"] { color: var(--pink-600); background: var(--pink-50); }

/* ---------- Buttons: pill with nested icon island ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --ic: rgb(255 255 255 / 0.16);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 6px 6px 6px 26px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--bg); color: var(--fg); font-weight: 800; font-size: 1.02rem; text-decoration: none; white-space: nowrap;
  box-shadow: var(--glow-md), inset 0 1px 0 rgb(255 255 255 / 0.35);
  transition: transform 500ms var(--ease-silk), box-shadow 500ms var(--ease-silk);
  isolation: isolate; overflow: hidden;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.45) 50%, transparent 70%) -120% 0 / 60% 100% no-repeat; transition: background-position 900ms var(--ease-silk); }
.btn:hover::before { background-position: 220% 0; }
.btn:active { transform: scale(0.97); }
.btn__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ic); font-size: 22px; transition: transform 500ms var(--ease-spring); }
.btn:hover .btn__icon { transform: translate(3px, -2px) rotate(-12deg) scale(1.06); }
.btn--magic { --bg: linear-gradient(120deg, var(--pink-500), #FF7FB9 45%, var(--lilac-600)); --ic: rgb(255 255 255 / 0.22); }
.btn--pearl { --bg: #fff; --fg: var(--ink); --ic: var(--lilac-100); box-shadow: var(--glow-sm), inset 0 0 0 1px rgb(183 155 255 / 0.35); }
.btn--small { min-height: 44px; padding: 4px 4px 4px 18px; font-size: 0.95rem; gap: 8px; }
.btn--small .btn__icon { width: 36px; height: 36px; font-size: 18px; }
.btn--nav { padding: 0 20px; min-height: 44px; font-size: 0.95rem; }
.btn[aria-busy="true"] { cursor: progress; }

.text-link { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 800; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--pink-500); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.75); box-shadow: inset 0 0 0 1px rgb(183 155 255 / 0.4), var(--glow-sm);
  font-weight: 800; font-size: var(--step--1); color: var(--ink-2);
}
.chip i { color: var(--pink-500); font-size: 1.2em; }

/* =========================================================
   1. Portal: the sleeping unicorn under a night sky
   ========================================================= */
.portal {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; overflow: hidden;
  padding: 24px; text-align: center; color: #fff;
  background:
    radial-gradient(60% 40% at 50% 38%, rgb(139 108 240 / 0.55), transparent 70%),
    radial-gradient(80% 50% at 50% 110%, rgb(255 95 168 / 0.45), transparent 70%),
    linear-gradient(180deg, var(--night-1), var(--night-2) 60%, var(--night-3));
}
.portal__moon { position: absolute; top: 9%; right: 12%; width: 74px; height: 74px; border-radius: 50%; box-shadow: -14px 10px 0 0 #FFF3C4; rotate: -20deg; filter: drop-shadow(0 0 24px rgb(255 243 196 / 0.6)); }
.portal__hills { position: absolute; left: 0; bottom: -2px; width: 100%; height: 24vh; }
.portal__inner { position: relative; display: grid; justify-items: center; gap: 14px; max-width: 520px; }
.portal__to { margin: 0; font-family: var(--font-hand); font-size: clamp(1.9rem, 6vw, 2.6rem); color: var(--butter-300); line-height: 1; }
.portal__to:empty { display: none; }
.portal__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.01em; }
.portal__uni { position: relative; width: min(60vw, 290px); aspect-ratio: 400 / 420; margin: 8px 0 4px; cursor: pointer; border: 0; padding: 0; background: none; }
.portal__uni::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgb(255 230 160 / 0.4), transparent 62%); opacity: 0.7; animation: breathe 4s ease-in-out infinite; }
.portal__uni svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.portal__zzz { position: absolute; right: 0; top: 14%; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--lilac-200); pointer-events: none; }
.portal__zzz span { position: absolute; opacity: 0; animation: zzz 3.6s ease-in infinite; }
.portal__zzz span:nth-child(2) { animation-delay: 1.2s; font-size: 1.4em; }
.portal__zzz span:nth-child(3) { animation-delay: 2.4s; font-size: 1.8em; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0) rotate(-8deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(40px, -90px) rotate(12deg); } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 1; } }
.portal__hint { margin: 0; color: rgb(255 255 255 / 0.78); font-weight: 700; }
.portal .btn { margin-top: 6px; }
.portal__skip { margin-top: 4px; color: rgb(255 255 255 / 0.7); text-decoration-color: rgb(255 255 255 / 0.4); }
.portal__flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, #fff, rgb(255 255 255 / 0.92) 35%, rgb(255 240 250 / 0.85) 70%); opacity: 0; pointer-events: none; }

/* =========================================================
   2. Hero
   ========================================================= */
.hero { position: relative; min-height: 100dvh; padding: 92px 16px 72px; display: grid; justify-items: center; align-content: start; text-align: center; }
.hero__rainbow { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%); mask-image: linear-gradient(180deg, #000 55%, transparent 98%); position: absolute; left: 50%; top: 90px; width: 170vw; max-width: 1500px; translate: -50% 0; opacity: 0.7; pointer-events: none; z-index: -1; }
.hero__greet { order: -2; margin: 0 0 4px; font-family: var(--font-hand); font-size: 2rem; color: var(--pink-600); line-height: 1; }
.hero__greet:empty { display: none; }
.hero__copy { display: contents; }
.hero__copy > *, .hero__stage { position: relative; z-index: 3; }

.hero__stage { position: relative; order: -1; width: min(86%, 400px); margin: 22px auto 0; }
.frame {
  position: relative; padding: 9px; border-radius: 999px 999px var(--r-xl) var(--r-xl);
  background: var(--holo); background-size: 300% 300%; background-position: var(--holo-x, 30%) var(--holo-y, 50%);
  box-shadow: var(--glow-lg), inset 0 0 0 1px rgb(255 255 255 / 0.8);
}
.frame__core { position: relative; overflow: hidden; border-radius: 999px 999px calc(var(--r-xl) - 9px) calc(var(--r-xl) - 9px); background: var(--lilac-100); aspect-ratio: 4 / 5; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6); }
.frame__core img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.frame__core::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 0.4) 48%, transparent 60%); background-size: 250% 100%; background-position: var(--sheen, 120%) 0; mix-blend-mode: soft-light; pointer-events: none; }

.peek { position: absolute; width: 40%; right: -9%; top: -12%; z-index: 3; rotate: 14deg; transform-origin: 50% 90%; filter: drop-shadow(0 16px 20px rgb(91 62 156 / 0.3)); cursor: pointer; overflow: visible; }
.star { position: absolute; z-index: 3; width: 26px; height: 26px; color: var(--butter-300); filter: drop-shadow(0 0 10px rgb(255 221 134 / 0.95)); pointer-events: none; }
.star--a { left: -6%; top: 18%; }
.star--b { right: 4%; bottom: 30%; width: 18px; height: 18px; color: #fff; }
.star--c { left: 14%; top: -4%; width: 16px; height: 16px; color: var(--pink-200); }

.num-balloon { position: absolute; z-index: 4; left: -14%; bottom: 2%; width: 34%; cursor: pointer; border: 0; padding: 0; background: none; transform-origin: 50% 100%; }
.num-balloon__digit {
  display: block; font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 115;
  font-size: clamp(6rem, 30vw, 9rem); line-height: 0.8;
  background: var(--gold); background-size: 200% 200%; background-position: var(--holo-x, 30%) 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #C68A23) drop-shadow(0 14px 18px rgb(150 100 20 / 0.35));
}
.num-balloon__string { display: block; width: 26px; height: 64px; margin: -2px auto 0; overflow: visible; }

/* Holographic foil balloon letters */
.name { position: relative; margin: 26px 0 0; font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 112; line-height: 1; font-size: clamp(4.4rem, 21vw, 9rem); letter-spacing: -0.005em; }
.name .bl { position: relative; display: inline-block; color: transparent; background: var(--holo-ink); background-size: 260% 260%; background-position: var(--holo-x, 30%) var(--holo-y, 50%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 3px 0 #fff) drop-shadow(0 5px 0 #8B6CF0) drop-shadow(0 18px 22px rgb(91 62 156 / 0.32)); }
.name .bl::after { content: attr(data-l); position: absolute; inset: 0; color: transparent; background: linear-gradient(172deg, rgb(255 255 255 / 0.95) 0%, rgb(255 255 255 / 0.3) 32%, transparent 44%); -webkit-background-clip: text; background-clip: text; pointer-events: none; }
.name .wordmark__horn { top: -0.1em; width: 0.22em; height: 0.44em; }

.hero__turning { margin: 10px 0 0; font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.2; }
.hero__turning b { color: var(--pink-600); font-weight: 700; }
.hero__theme { margin: 8px auto 0; max-width: 30ch; color: var(--ink-2); font-weight: 600; }
.hero__ctas { display: grid; gap: 12px; width: 100%; max-width: 420px; margin: 26px auto 0; }
.hero__ctas .btn { width: 100%; justify-content: space-between; }
.hero__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }

.hero__clouds { position: absolute; left: 0; right: 0; bottom: -60px; height: 220px; pointer-events: none; z-index: 2; }
.hero__clouds .cloud--a { left: -16%; bottom: 0; width: 72%; }
.hero__clouds .cloud--b { right: -18%; bottom: 14px; width: 66%; }
.drift { position: absolute; pointer-events: none; z-index: -1; opacity: 0.9; }
.drift--1 { left: -8%; top: 28%; width: 38%; }
.drift--2 { right: -10%; top: 58%; width: 34%; }

/* =========================================================
   3. Meet the birthday girl
   ========================================================= */
.section { position: relative; padding: 112px 16px; }
.section__head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section__title { margin: 12px 0 0; font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 108; font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.015em; }
.section__title .foil { color: transparent; background: linear-gradient(100deg, var(--pink-500), var(--lilac-600) 60%, #4FA8F0); -webkit-background-clip: text; background-clip: text; }
.section__lede { margin: 14px auto 0; max-width: 44ch; color: var(--ink-2); font-weight: 600; }

.album { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 14% 40px; margin: 0 -16px; scrollbar-width: none; }
.album::-webkit-scrollbar { display: none; }
.snap {
  flex: 0 0 72%; scroll-snap-align: center; margin: 0; padding: 10px 10px 56px; border-radius: 18px; position: relative;
  background: #fff; box-shadow: var(--glow-md), inset 0 0 0 1px rgb(183 155 255 / 0.25);
  rotate: var(--r, 0deg); transition: transform 600ms var(--ease-spring);
}
.snap:nth-child(odd) { --r: -2deg; } .snap:nth-child(even) { --r: 2deg; }
.snap img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.snap figcaption { position: absolute; left: 8px; right: 8px; bottom: 12px; text-align: center; font-family: var(--font-hand); font-size: 1.55rem; line-height: 1; color: var(--ink-2); }
.snap::before { content: ""; position: absolute; z-index: 1; top: -12px; left: 50%; width: 86px; height: 26px; translate: -50% 0; rotate: -3deg; border-radius: 4px; background: var(--tape, rgb(255 198 226 / 0.85)); box-shadow: 0 2px 6px rgb(91 62 156 / 0.12); }
.album__hint { display: flex; justify-content: center; gap: 8px; align-items: center; color: var(--ink-3); font-weight: 700; font-size: var(--step--1); }

/* =========================================================
   4. The Golden Unicorn Pass
   ========================================================= */
.pass-wrap { perspective: 1100px; max-width: 560px; margin: 0 auto; }
.pass {
  position: relative; padding: 8px; border-radius: var(--r-xl); transform-style: preserve-3d;
  background: var(--holo); background-size: 300% 300%; background-position: var(--holo-x, 30%) var(--holo-y, 50%);
  box-shadow: var(--glow-lg), inset 0 0 0 1px rgb(255 255 255 / 0.8);
}
.pass__core { position: relative; overflow: hidden; border-radius: calc(var(--r-xl) - 8px); background: rgb(255 255 255 / 0.92); box-shadow: var(--inner-hi); }
.pass__core::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.8) 45%, rgb(255 210 240 / 0.45) 52%, transparent 62%); background-size: 260% 100%; background-position: var(--sheen, 130%) 0; mix-blend-mode: soft-light; }
.pass__top { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px 22px 18px; background: linear-gradient(120deg, var(--lilac-100), var(--pink-100) 60%, var(--butter-100)); }
.pass__top svg { width: 62px; height: 66px; flex: none; overflow: visible; }
.pass__kicker { display: block; font-weight: 800; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.pass__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.05; }
.pass__body { padding: 22px; display: grid; gap: 18px; }
.pass__admit { margin: 0; font-family: var(--font-hand); font-size: 2.5rem; line-height: 1; color: var(--pink-600); }
.pass__admit small { display: block; margin-bottom: 6px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 800; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.pass__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin: 0; }
.pass__grid div { display: grid; gap: 2px; align-content: start; }
.pass__grid dt { display: flex; gap: 6px; align-items: center; font-weight: 800; font-size: 0.8rem; color: var(--ink-3); }
.pass__grid dt i { font-size: 1.25rem; color: var(--lilac-600); }
.pass__grid dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.25; }
.pass__grid dd small { display: block; margin-top: 2px; font-family: var(--font-body); font-weight: 600; font-size: 0.86rem; color: var(--ink-2); }
.pass__wide { grid-column: 1 / -1; }
.pass__tear { position: relative; height: 0; border-top: 2px dashed rgb(139 108 240 / 0.35); margin: 0 22px; }
.pass__tear::before, .pass__tear::after { content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--lilac-50); box-shadow: inset 0 0 0 1px rgb(183 155 255 / 0.3); }
.pass__tear::before { left: -38px; } .pass__tear::after { right: -38px; }
.pass__stub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 22px; }
.pass__stub-label { font-weight: 800; font-size: 0.8rem; color: var(--ink-3); }
.countdown { display: flex; gap: 6px; }
.countdown__cell { min-width: 58px; padding: 8px 6px; border-radius: 14px; text-align: center; background: var(--lilac-50); box-shadow: inset 0 0 0 1px rgb(183 155 255 / 0.35); overflow: hidden; }
.countdown__num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.countdown__num.tick { animation: tick 500ms var(--ease-spring); }
@keyframes tick { from { transform: translateY(-60%) scale(0.6); opacity: 0; } }
.countdown__label { font-size: 0.68rem; font-weight: 800; color: var(--ink-3); }
.pass__stamp {
  position: absolute; right: 16px; top: 84px; z-index: 3; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%;
  border: 4px double var(--pink-500); color: var(--pink-600); font-family: var(--font-display); font-weight: 700; text-align: center; line-height: 1.05; font-size: 0.98rem;
  rotate: -14deg; background: rgb(255 244 250 / 0.9); opacity: 0; pointer-events: none;
}
.pass.is-confirmed .pass__stamp { opacity: 1; }
.pass__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* =========================================================
   5. RSVP
   ========================================================= */
.rsvp { display: grid; gap: 32px; max-width: 1160px; margin: 0 auto; }
.rsvp__aside { display: none; }
.deadline { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; padding: 10px 18px; border-radius: var(--r-pill); background: linear-gradient(120deg, var(--butter-100), #FFF); box-shadow: inset 0 0 0 1px rgb(217 154 43 / 0.4); font-weight: 800; font-size: var(--step--1); }
.deadline i { color: var(--gold-3); font-size: 1.2em; }

.shell { position: relative; padding: 8px; border-radius: var(--r-xl); background: rgb(255 255 255 / 0.5); box-shadow: var(--glow-lg), inset 0 0 0 1px rgb(255 255 255 / 0.9), 0 0 0 1px rgb(183 155 255 / 0.25); }
.form-card { position: relative; padding: 30px 20px 26px; border-radius: calc(var(--r-xl) - 8px); background: #fff; box-shadow: var(--inner-hi); overflow: hidden; }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--rainbow); }

.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field__label { font-weight: 800; }
.field__hint { font-size: var(--step--1); color: var(--ink-3); font-weight: 700; }
.input, .textarea {
  width: 100%; min-height: 58px; padding: 15px 18px; border-radius: var(--r-m); border: 0;
  background: var(--lilac-50); box-shadow: inset 0 0 0 1.5px rgb(139 108 240 / 0.24);
  transition: box-shadow 300ms var(--ease-out), background 300ms;
}
.textarea { min-height: 110px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .textarea:hover { box-shadow: inset 0 0 0 1.5px rgb(139 108 240 / 0.45); }
.input:focus, .textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--lilac-600), 0 0 0 5px rgb(183 155 255 / 0.3); }
.field--error .input { box-shadow: inset 0 0 0 2px var(--danger), 0 0 0 5px rgb(210 48 107 / 0.14); }
.field__error { display: none; align-items: center; gap: 6px; color: var(--danger); font-weight: 800; font-size: var(--step--1); }
.field--error .field__error { display: flex; }
.shake { animation: shake 460ms var(--ease-out); }
@keyframes shake { 20% { translate: -8px 0; } 40% { translate: 7px 0; } 60% { translate: -5px 0; } 80% { translate: 3px 0; } }

.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; margin: 0 0 22px; padding: 0; }
.choice-group legend { padding: 0; margin-bottom: 8px; font-weight: 800; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; z-index: 1; cursor: pointer; }
.choice__face {
  display: grid; justify-items: center; gap: 4px; padding: 18px 10px 16px; border-radius: var(--r-l); text-align: center; font-weight: 800; line-height: 1.2;
  background: var(--lilac-50); box-shadow: inset 0 0 0 1.5px rgb(139 108 240 / 0.2);
  transition: transform 500ms var(--ease-spring), box-shadow 300ms, background 300ms;
}
.choice__face small { font-weight: 700; color: var(--ink-3); }
.choice__art { width: 70px; height: 70px; margin-bottom: 4px; overflow: visible; transition: transform 700ms var(--ease-spring); }
.choice input:hover + .choice__face { box-shadow: inset 0 0 0 1.5px rgb(139 108 240 / 0.5); }
.choice input:focus-visible + .choice__face { outline: 3px solid var(--lilac-600); outline-offset: 3px; }
.choice input:checked + .choice__face { transform: translateY(-4px); background: #fff; box-shadow: inset 0 0 0 2px var(--lilac-600), var(--glow-md); }
.choice--yes input:checked + .choice__face { background: linear-gradient(160deg, #fff, var(--pink-50)); box-shadow: inset 0 0 0 2px var(--pink-500), var(--glow-md); }
.choice--yes input:checked + .choice__face .choice__art { transform: rotate(-8deg) scale(1.15); }
.choice--no input:checked + .choice__face .choice__art { transform: translateY(4px) rotate(6deg); }
.field--error .choice__face { box-shadow: inset 0 0 0 2px var(--danger); }
.choice-group .field__error { grid-column: 1 / -1; }

.party-size { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper { display: grid; gap: 6px; }
.stepper__ctrl { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; border-radius: var(--r-m); background: var(--lilac-50); box-shadow: inset 0 0 0 1.5px rgb(139 108 240 / 0.2); overflow: hidden; }
.stepper__ctrl button { height: 54px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; font-size: 20px; color: var(--ink-2); }
.stepper__ctrl button:hover { background: var(--lilac-100); }
.stepper__ctrl button:disabled { opacity: 0.3; cursor: default; }
.stepper__ctrl output { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.stepper__ctrl output.bump { animation: bump 360ms var(--ease-spring); }
@keyframes bump { 50% { transform: scale(1.4); color: var(--pink-600); } }

.reveal-yes { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 520ms var(--ease-silk), opacity 360ms; }
.reveal-yes > div { overflow: hidden; }
.reveal-yes.is-open { grid-template-rows: 1fr; opacity: 1; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 14px 0 0; text-align: center; font-size: var(--step--1); font-weight: 700; color: var(--ink-3); }
.form-alert { margin-bottom: 16px; padding: 12px 16px; border-radius: var(--r-s); background: var(--pink-50); color: var(--danger); font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--danger); }
.cf-turnstile { margin-bottom: 16px; min-height: 65px; }
.form-submit { width: 100%; justify-content: space-between; }
.busy-horn { width: 22px; height: 40px; animation: spin 1s var(--ease-spring) infinite; }
@keyframes spin { to { rotate: 360deg; } }

.result { text-align: center; padding: 10px 0 4px; }
.result__art { width: 170px; margin: 0 auto 10px; overflow: visible; }
.result h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1.05; }
.result p { margin: 12px auto 0; max-width: 34ch; color: var(--ink-2); font-weight: 600; }
.result__summary { display: inline-grid; gap: 8px; margin-top: 22px; padding: 16px 22px; border-radius: var(--r-m); background: var(--lilac-50); box-shadow: inset 0 0 0 1.5px rgb(139 108 240 / 0.25); text-align: left; font-weight: 800; }
.result__summary span { display: flex; gap: 10px; align-items: center; }
.result__summary i { color: var(--pink-500); font-size: 1.3em; }
.result__summary small { color: var(--ink-3); font-weight: 700; }
.drop { animation: drop 1.3s ease-in infinite; }
.drop:nth-child(2) { animation-delay: .4s; } .drop:nth-child(3) { animation-delay: .8s; }
@keyframes drop { 0% { transform: translateY(-10px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
.result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* Full-screen celebration layer for a "yes" */
.celebrate { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.celebrate__arc { position: absolute; left: 50%; bottom: -30vh; width: max(160vw, 900px); translate: -50% 0; overflow: visible; }
.celebrate__uni { position: absolute; left: 0; top: 0; width: 170px; overflow: visible; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 80px 16px calc(120px + env(safe-area-inset-bottom)); text-align: center; color: var(--ink-2); font-weight: 600; }
.footer svg { width: 110px; height: 116px; margin: 0 auto 10px; overflow: visible; }
.footer p { margin: 4px 0; }
.footer small { color: var(--ink-3); }
.footer .hand { font-family: var(--font-hand); font-size: 2rem; color: var(--pink-600); line-height: 1.1; }

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 18px;
  border-radius: var(--r-pill); background: rgb(46 31 79 / 0.88); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -16px rgb(46 31 79 / 0.6); transition: transform 500ms var(--ease-silk), opacity 400ms;
}
.dock__text { font-weight: 800; font-size: 0.92rem; line-height: 1.2; }
.dock__text small { display: block; opacity: 0.75; font-weight: 600; }
.dock.is-hidden { transform: translateY(160%); opacity: 0; pointer-events: none; }

/* =========================================================
   Desktop composition (>= 1024px)
   ========================================================= */
@media (min-width: 1024px) {
  .hero__greet { order: 0; }
  .peek { right: -16%; width: 44%; }
  .nav { top: 20px; width: min(calc(100% - 48px), 720px); padding-left: 18px; }
  .hero {
    grid-template-columns: 1.1fr 0.9fr; align-items: center; justify-items: stretch; gap: 48px;
    max-width: 1320px; margin: 0 auto; padding: 120px 64px 96px; text-align: left;
  }
  .hero__copy { display: block; }
  .hero__rainbow { top: 60px; width: 1500px; }
  .hero__stage { order: 2; width: min(100%, 460px); margin: 0 0 0 auto; }
  .name { font-size: clamp(7rem, 10.5vw, 10.5rem); margin-top: 4px; }
  .hero__turning { font-size: clamp(2rem, 2.5vw, 2.5rem); }
  .hero__theme { margin-left: 0; font-size: 1.15rem; }
  .hero__ctas { display: flex; max-width: none; margin-left: 0; }
  .hero__ctas .btn { width: auto; }
  .hero__facts { justify-content: flex-start; }
  .num-balloon { left: -26%; bottom: 0; width: 36%; }
  .num-balloon__digit { font-size: 11rem; }
  .hero__clouds { height: 260px; bottom: -150px; }
  .hero__clouds .cloud--a { width: 34%; left: -6%; }
  .hero__clouds .cloud--b { width: 30%; right: -6%; bottom: 40px; }
  .hero__copy { position: relative; z-index: 3; }
  .drift--1 { width: 22%; left: -4%; top: 18%; }
  .drift--2 { width: 20%; right: -3%; top: 70%; }

  .section { padding: 160px 56px; }
  .album { display: block; position: relative; height: 660px; max-width: 1180px; margin: 0 auto; padding: 0; overflow: visible; }
  .snap { position: absolute; width: 260px; }
  .snap:nth-child(1) { left: 0; top: 80px; --r: -6deg; }
  .snap:nth-child(2) { left: 225px; top: 270px; --r: 4deg; width: 240px; }
  .snap:nth-child(3) { left: 455px; top: 20px; --r: -2deg; width: 290px; }
  .snap:nth-child(4) { left: 700px; top: 280px; --r: 6deg; width: 240px; }
  .snap:nth-child(5) { right: 0; top: 70px; --r: -5deg; }
  .snap:hover { transform: scale(1.06); z-index: 5; }
  .album__hint { display: none; }

  .pass-wrap { max-width: 780px; }
  .pass__body { grid-template-columns: 0.9fr 1.5fr; align-items: center; padding: 32px; gap: 28px; }
  .pass__top { padding: 24px 32px 20px; }
  .pass__tear { margin: 0 32px; }
  .pass__tear::before { left: -48px; } .pass__tear::after { right: -48px; }
  .pass__stub { padding: 22px 32px 28px; }
  .pass__stamp { top: auto; bottom: 16px; right: 44%; }

  .rsvp { grid-template-columns: 0.85fr 1.15fr; gap: 88px; align-items: start; }
  .rsvp__aside { display: block; position: sticky; top: 120px; }
  .rsvp__aside .section__head { text-align: left; margin: 0 0 34px; }
  .rsvp__aside .frame { width: 80%; }
  .rsvp__mobile-head { display: none; }
  .form-card { padding: 44px 44px 36px; }
  .dock { display: none; }
  .footer { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
