/* =========================================================================
   CONFETTI PARTY — Birthday Invitation stylesheet
   Colours come from js/data.js (colors: {...}) — these are just defaults.
   Fonts: change the two font names below + the Google Fonts link in index.html
   ========================================================================= */

:root {
  --yellow: #FFC93C;
  --pink: #FF6B8B;
  --teal: #2EC4B6;
  --grape: #7B5CFF;
  --sky: #5BC0FF;
  --ink: #2B2350;
  --cream: #FFF8EC;

  --font-display: "Fredoka", "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* derived tones (fallbacks first, color-mix below when supported) */
  --ink-soft: #5A5378;
  --grape-d: #5F43DB;
  --pink-d: #B8405A;
  --teal-d: #137A71;
  --t-grape: #F1EDFF;
  --t-pink: #FFECF0;
  --t-teal: #E3F7F5;
  --t-yellow: #FFF3D1;
  --t-sky: #E6F5FF;
  --line: #E7E1F4;

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-soft: 0 10px 0 rgba(43, 35, 80, .05), 0 24px 48px -24px rgba(43, 35, 80, .38);
  --radius: 30px;
  --nav-h: 76px;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  :root {
    --ink-soft: color-mix(in srgb, var(--ink) 78%, #fff);
    --grape-d: color-mix(in srgb, var(--grape) 80%, #000);
    --pink-d: color-mix(in srgb, var(--pink) 68%, #000);
    --teal-d: color-mix(in srgb, var(--teal) 58%, #000);
    --t-grape: color-mix(in srgb, var(--grape) 11%, #fff);
    --t-pink: color-mix(in srgb, var(--pink) 13%, #fff);
    --t-teal: color-mix(in srgb, var(--teal) 13%, #fff);
    --t-yellow: color-mix(in srgb, var(--yellow) 24%, #fff);
    --t-sky: color-mix(in srgb, var(--sky) 14%, #fff);
    --line: color-mix(in srgb, var(--grape) 14%, #fff);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--cream); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body.lock { overflow: hidden; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--grape-d); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--grape-d); outline-offset: 3px; border-radius: 10px; }
section[id], #main { scroll-margin-top: 70px; }
#main:focus { outline: none; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1160px, 100% - 64px); } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 400; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }
.noscript { padding: 40px 20px; text-align: center; font-size: 1.2rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- buttons (squishy!) ---------- */
.btn {
  --bg: #fff; --fg: var(--ink); --edge: rgba(43, 35, 80, .16);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .72em 1.45em; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none; text-align: center;
  font: 600 1.06rem/1.15 var(--font-display); letter-spacing: .01em;
  box-shadow: 0 5px 0 var(--edge), 0 12px 22px -10px rgba(43, 35, 80, .45);
  transition: transform .25s var(--spring), box-shadow .2s ease, background-color .2s;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); animation: wobble .55s ease; }
.btn:active { transform: translateY(4px) scale(.96, .92); box-shadow: 0 1px 0 var(--edge), 0 4px 10px -6px rgba(43, 35, 80, .4); animation: none; }
.btn--sun { --bg: var(--yellow); --edge: #D9A21C; }
.btn--grape { --bg: var(--grape-d); --fg: #fff; --edge: #3B2596; }
.btn--white { --bg: #fff; }
.btn--lg { min-height: 56px; font-size: 1.15rem; padding: .8em 1.7em; }
.btn--sm { min-height: 44px; font-size: .98rem; padding: .55em 1.1em; }
.btn--block { width: 100%; }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .btn--sun { --edge: color-mix(in srgb, var(--yellow) 72%, #7a4a00); }
  .btn--grape { --edge: color-mix(in srgb, var(--grape) 50%, #000); }
}
@keyframes wobble {
  0% { transform: translateY(-2px) rotate(0); }
  25% { transform: translateY(-3px) rotate(-3deg) scale(1.03); }
  50% { transform: translateY(-2px) rotate(2.2deg); }
  75% { transform: translateY(-2px) rotate(-1deg); }
  100% { transform: translateY(-2px) rotate(0); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1.4rem; }

.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .5em 1.15em; border-radius: 999px;
  background: #fff; font: 600 1rem/1.2 var(--font-display); color: var(--ink);
  box-shadow: 0 4px 0 rgba(43, 35, 80, .08), 0 10px 22px -12px rgba(43, 35, 80, .4);
}
.chip--sm { font-size: .9rem; padding: .4em .95em; background: var(--t-grape); box-shadow: none; }

.link-btn {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 0 1.05em;
  border: 0; border-radius: 999px; background: var(--t-grape); color: var(--grape-d); cursor: pointer;
  font: 600 .98rem var(--font-display); text-decoration: none; transition: transform .25s var(--spring), background .2s;
}
.link-btn:hover { transform: translateY(-2px) rotate(-1.5deg); }
.link-btn:active { transform: scale(.95); }

/* ---------- sections & wavy dividers ---------- */
.sec { position: relative; background-color: var(--bg); padding: clamp(76px, 10vw, 128px) 0 clamp(76px, 10vw, 120px); }
.sec--cream { --bg: var(--cream); background-image: var(--sprinkles, none); background-size: 240px 250px; }
.sec--lilac { --bg: var(--t-grape); }
.sec--teal { --bg: var(--t-teal); }
.sec--pink { --bg: var(--t-pink); }
.sec--sun { --bg: var(--t-yellow); }
.sec::before, .footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(26px, 4vw, 58px);
  background: var(--bg); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V32C90 12 180 4 300 16s210 38 330 36 210-40 330-42 220 26 330 30 130-10 150-14V60Z'/%3E%3C/svg%3E") 0 100% / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V32C90 12 180 4 300 16s210 38 330 36 210-40 330-42 220 26 330 30 130-10 150-14V60Z'/%3E%3C/svg%3E") 0 100% / 100% 100% no-repeat;
}
.sec:nth-of-type(even)::before, .footer::before { transform: scaleX(-1); }

.sec__head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.kicker {
  display: inline-block; margin: 0 0 .6em; font: 600 clamp(.95rem, 2.2vw, 1.1rem)/1.2 var(--font-display);
  color: var(--pink-d); letter-spacing: .02em; position: relative; padding-bottom: 12px;
}
.kicker::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 64px; height: 8px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 8'%3E%3Cpath d='M2 4c5-4 9-4 14 0s9 4 14 0 9-4 14 0 9 4 14 0' fill='none' stroke='%23FFC93C' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sec__title { font-size: clamp(2.2rem, 6.4vw, 3.7rem); font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.sec__sub { margin: .7em auto 0; font-size: clamp(1.02rem, 2.3vw, 1.2rem); color: var(--ink-soft); max-width: 40ch; font-weight: 600; }
.sec__sub strong { color: var(--ink); }

.card { background: #fff; border-radius: var(--radius); padding: clamp(22px, 3.6vw, 38px); box-shadow: var(--shadow-soft); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .7s ease, transform .85s var(--spring); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }

/* =========================================================================
   INTRO
   ========================================================================= */
.intro {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 24px 20px;
  text-align: center; color: #fff; cursor: pointer; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #9279FF 0%, var(--grape-d) 58%, #3A2596 100%);
  transition: opacity .65s ease, transform .65s ease;
}
.intro__sprinkles { position: absolute; inset: -250px 0 0; background-image: var(--sprinkles-intro, none); background-size: 240px 250px; opacity: .55; animation: drift 18s linear infinite; }
@keyframes drift { to { transform: translateY(250px); } }
.intro__inner { position: relative; max-width: 560px; }
.intro__inner::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: 760px; height: 760px; margin: -380px 0 0 -380px; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .09) 0 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 62%); mask: radial-gradient(circle, #000 0, transparent 62%);
  animation: spin 40s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.intro__kicker { font: 600 clamp(1rem, 3.2vw, 1.25rem) var(--font-display); letter-spacing: .02em; margin: 0 0 .4em; opacity: .95; }
.gift { display: block; width: min(64vw, 300px); margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 30px; position: relative; }
.gift:focus-visible { outline: 4px solid #fff; outline-offset: 10px; }
.gift::after { content: ""; position: absolute; left: 50%; top: 58%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid rgba(255, 255, 255, .5); animation: ring 2.4s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { transform: translate(-50%, -50%) scale(.6); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; } }
.gift__svg { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 50% 90%; animation: shake 2.6s ease-in-out infinite; }
.gift__lid, .gift__box { transform-box: fill-box; transform-origin: 50% 100%; }
.gift__lid { animation: lidHop 2.6s ease-in-out infinite; }
@keyframes shake {
  0%, 55%, 100% { transform: rotate(0) scale(1); }
  60% { transform: rotate(-7deg) scale(1.03); } 65% { transform: rotate(6deg) scale(1.03); }
  70% { transform: rotate(-5deg); } 75% { transform: rotate(4deg); } 80% { transform: rotate(-2deg); } 85% { transform: rotate(0); }
}
@keyframes lidHop { 0%, 58%, 88%, 100% { transform: translateY(0); } 64% { transform: translateY(-10px) rotate(-3deg); } 72% { transform: translateY(-14px) rotate(3deg); } 80% { transform: translateY(-4px); } }
.intro.opening { cursor: default; }
.intro.opening .gift__svg { animation: boxPop .6s var(--spring); }
.intro.opening .gift__lid { animation: lidOff .9s cubic-bezier(.2, .8, .3, 1) forwards; }
.intro.opening .gift::after { display: none; }
@keyframes boxPop { 0% { transform: scale(1); } 30% { transform: scale(1.12, .86); } 60% { transform: scale(.94, 1.08); } 100% { transform: scale(1); } }
@keyframes lidOff { 0% { transform: translateY(0); } 25% { transform: translateY(20px); } 100% { transform: translate(60px, -320px) rotate(40deg); opacity: 0; } }
.intro__title { font-size: clamp(1.8rem, 6.4vw, 3.1rem); font-weight: 700; margin: .45em 0 .25em; text-shadow: 0 4px 0 rgba(0, 0, 0, .16); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.04); } }
.intro__hint { font-weight: 700; opacity: .9; margin: 0; font-size: clamp(.92rem, 2.6vw, 1.05rem); }
.intro.done { opacity: 0; transform: scale(1.06); pointer-events: none; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 10px 0; }
.nav__bar {
  position: relative; width: min(1200px, 100% - 20px); margin: 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 14px; border-radius: 999px; transition: background-color .3s, box-shadow .3s;
}
.nav.is-solid .nav__bar, .nav.is-open .nav__bar { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -14px rgba(43, 35, 80, .4); }
.nav__logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: auto; font: 700 1.12rem var(--font-display); color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav__logo b { color: var(--pink-d); }
.nav__dot { width: 20px; height: 28px; overflow: hidden; display: inline-block; animation: bob 3s ease-in-out infinite; }
.nav__dot svg { width: 20px; display: block; }
.nav__links { display: none; }
.nav__links a, .nav__panel a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85em; border-radius: 999px;
  font: 600 1rem var(--font-display); color: var(--ink); text-decoration: none; transition: background-color .2s, transform .25s var(--spring);
}
.nav__links a:hover, .nav__links a.is-active { background: var(--t-grape); color: var(--grape-d); }
.nav__links a:hover { transform: translateY(-1px) rotate(-2deg); }
.nav__burger { position: relative; width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-content: center; gap: 5px; box-shadow: 0 4px 0 rgba(43, 35, 80, .1), 0 8px 18px -8px rgba(43, 35, 80, .45); }
.nav__burger span:not(.visually-hidden) { display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .3s var(--spring), opacity .2s; }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(3) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }
.nav__panel {
  position: absolute; left: 10px; right: 10px; top: calc(100% - 2px); display: grid; gap: 2px; padding: 12px;
  background: #fff; border-radius: 26px; box-shadow: 0 24px 50px -20px rgba(43, 35, 80, .5);
  max-height: calc(100vh - 100px); overflow: auto; opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top center;
  transition: opacity .25s, transform .35s var(--spring);
}
.nav__panel.show { opacity: 1; transform: none; }
.nav__panel a:not(.btn) { min-height: 50px; font-size: 1.15rem; border-radius: 16px; padding: 0 16px; }
.nav__panel a:not(.btn):hover { background: var(--t-grape); }
.nav__panel .btn { margin-top: 8px; }
@media (max-width: 359px) { .nav__logo { font-size: 1rem; } .nav__cta { padding: .5em .9em; } }
.nav__cta.is-compact { width: 46px; min-height: 46px; padding: 0; }
.nav__cta.is-compact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1100px) {
  .nav__links { display: flex; gap: 2px; }
  .nav__burger, .nav__panel { display: none !important; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; overflow: hidden; display: grid; place-items: center; text-align: center;
  min-height: 680px; min-height: clamp(660px, 100vh, 980px); min-height: clamp(660px, 100svh, 980px);
  padding: 104px 0 96px; background-color: var(--cream);
  background-image: radial-gradient(circle at 50% 110%, var(--t-yellow) 0, transparent 60%), var(--sprinkles, none);
  background-size: auto, 240px 250px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; filter: blur(2px); opacity: .5; animation: morph 12s ease-in-out infinite alternate; }
.blob--1 { width: 42vw; max-width: 520px; aspect-ratio: 1; left: -12vw; top: -8vw; background: var(--t-pink); }
.blob--2 { width: 36vw; max-width: 460px; aspect-ratio: 1; right: -10vw; top: 18%; background: var(--t-teal); animation-delay: -4s; }
.blob--3 { width: 50vw; max-width: 600px; aspect-ratio: 1; left: 20%; bottom: -26vw; background: var(--t-grape); animation-delay: -8s; }
@keyframes morph {
  0% { border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; transform: rotate(0) scale(1); }
  100% { border-radius: 40% 60% 38% 62% / 60% 40% 60% 40%; transform: rotate(25deg) scale(1.08); }
}
.sprinkles { position: absolute; inset: 0; overflow: hidden; }
.sprinkles i { position: absolute; top: -30px; width: 6px; height: 16px; border-radius: 4px; background: var(--c); opacity: .75; animation: fall var(--d) linear var(--delay) infinite; }
.sprinkles i:nth-child(3n) { width: 9px; height: 9px; border-radius: 50%; }
@keyframes fall { to { transform: translate3d(var(--dx), 1040px, 0) rotate(var(--rot)); } }

.hero__balloons { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hb { position: absolute; width: clamp(54px, 7.2vw, 104px); padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; border-radius: 50% 50% 40% 40%; }
.hb:focus-visible { outline-offset: 6px; }
.hb__float { display: block; animation: float 5.5s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.hb .bl { display: block; width: 100%; height: auto; transform-origin: 50% 30%; animation: inflate .7s var(--spring) both; }
.hb.popped .bl { animation: popB .32s ease-in forwards; }
.hb.popped { pointer-events: none; }
@keyframes float { 0% { transform: translateY(0) rotate(-3deg); } 100% { transform: translateY(-22px) rotate(4deg); } }
@keyframes inflate { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes popB { 0% { transform: scale(1); } 45% { transform: scale(1.28, 1.2); } 100% { transform: scale(0); opacity: 0; } }
.hb--1 { left: 3%; top: 16%; }
.hb--2 { left: 11%; top: 52%; width: clamp(48px, 6vw, 88px); }
.hb--2 .hb__float { animation-delay: -2s; animation-duration: 6.4s; }
.hb--3 { left: 2%; top: 70%; }
.hb--3 .hb__float { animation-delay: -1s; }
.hb--4 { right: 4%; top: 13%; }
.hb--4 .hb__float { animation-delay: -3s; animation-duration: 6s; }
.hb--5 { right: 12%; top: 46%; width: clamp(48px, 6vw, 88px); }
.hb--5 .hb__float { animation-delay: -1.5s; }
.hb--6 { right: 3%; top: 66%; }
.hb--6 .hb__float { animation-delay: -4s; animation-duration: 7s; }
.hb--7 { left: 19%; top: 11%; width: clamp(40px, 4.4vw, 64px); }
.hb--7 .hb__float { animation-delay: -2.6s; }
@media (max-width: 899px) { .hb--7 { display: none; } }
@media (max-width: 639px) {
  .hb { width: 50px; }
  .hb--1 { left: -6px; top: 13%; }
  .hb--4 { right: -6px; top: 11%; }
  .hb--2 { left: 4px; top: 50%; width: 42px; }
  .hb--5 { right: 4px; top: 47%; width: 42px; }
  .hb--3, .hb--6 { display: none; }
}

.hero__content { position: relative; z-index: 2; pointer-events: none; }
.hero__content > * { pointer-events: auto; }
.hero__title { display: flex; flex-direction: column; align-items: center; margin-top: .55em; }
.hero__name { font-size: clamp(3rem, 12vw, 6.6rem); font-weight: 700; letter-spacing: -.015em; line-height: 1; color: var(--ink); text-shadow: .045em .05em 0 var(--yellow); }
.hero__is { font-size: clamp(1.35rem, 4vw, 2.1rem); font-weight: 600; color: var(--grape-d); margin-top: .25em; }
.bignum-wrap { position: relative; display: grid; place-items: end center; font-size: clamp(8rem, min(44vw, 30vh), 19rem); width: min(92vw, 2em); margin-top: .02em; }
.bignum-wrap > * { grid-area: 1 / 1; }
.rainbow { position: relative; display: block; margin-bottom: 11%; width: 100%; height: auto; fill: none; stroke-width: 28; stroke-linecap: round; opacity: .9; overflow: visible; }
.rainbow path { stroke-dasharray: 600; stroke-dashoffset: 600; }
.is-ready .rainbow path { animation: draw 1.4s ease-out forwards; }
.is-ready .rainbow path:nth-child(2) { animation-delay: .12s; }
.is-ready .rainbow path:nth-child(3) { animation-delay: .24s; }
.is-ready .rainbow path:nth-child(4) { animation-delay: .36s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cloud { position: absolute; bottom: 8%; width: 22%; aspect-ratio: 2.6; background: #fff; border-radius: 999px; box-shadow: 0 8px 18px -10px rgba(43, 35, 80, .35); z-index: 1; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 52%; aspect-ratio: 1; left: 12%; bottom: 35%; }
.cloud::after { width: 40%; aspect-ratio: 1; right: 12%; bottom: 30%; }
.cloud--l { left: -2%; }
.cloud--r { right: -2%; }
.bignum {
  position: relative; z-index: 2; display: flex; font-size: 1em; font-weight: 700; line-height: .86;
  color: var(--yellow); padding: 0 .1em .12em;
  text-shadow: .012em .012em 0 #F2B21F, .024em .024em 0 var(--pink), .036em .036em 0 var(--pink), .048em .048em 0 var(--teal), .06em .06em 0 var(--teal), .072em .072em 0 var(--grape), .084em .084em 0 var(--grape), .1em .11em 0 rgba(43, 35, 80, .18);
  transform: scale(0); transition: transform 1s var(--spring) .15s;
}
.bignum--wide { font-size: .78em; }
.is-ready .bignum { transform: scale(1); }
.bignum__d { display: inline-block; transform-origin: 50% 100%; animation: bounce 2.4s cubic-bezier(.28, .84, .42, 1) infinite; animation-delay: calc(var(--i) * .18s + 1s); }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0) scale(1, 1); }
  8% { transform: translateY(0) scale(1.08, .9); }
  24% { transform: translateY(-14%) scale(.95, 1.06) rotate(-3deg); }
  40% { transform: translateY(0) scale(1.06, .94); }
  48% { transform: translateY(-3%) scale(.99, 1.01) rotate(1deg); }
}
.hero__tagline { margin: .6em auto 0; max-width: 32ch; font-size: clamp(1.08rem, 2.8vw, 1.35rem); font-weight: 700; color: var(--ink-soft); }
.hero__when { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 1.1em auto 0; max-width: 640px; }
.hero__when span { display: inline-flex; align-items: center; gap: .45em; padding: .45em 1em; border-radius: 999px; background: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 3px 0 rgba(43, 35, 80, .06), 0 8px 18px -10px rgba(43, 35, 80, .35); }
.hero__when span:nth-child(1) .ico { color: var(--pink-d); }
.hero__when span:nth-child(2) .ico { color: var(--teal-d); }
.hero__when span:nth-child(3) .ico { color: var(--grape-d); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.6em; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 30px; height: 46px; margin-left: -15px; border: 3px solid var(--ink); border-radius: 20px; opacity: .55; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 6px; height: 10px; margin-left: -3px; border-radius: 3px; background: var(--ink); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-height: 700px) { .scroll-cue { display: none; } }
@media (max-width: 639px) {
  .hero { padding: 96px 0 80px; }
  .hero__when span { font-size: .88rem; padding: .4em .85em; }
  .hero__ctas .btn { flex: 1 1 200px; }
}

/* =========================================================================
   COUNTDOWN
   ========================================================================= */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2.4vw, 28px); max-width: 860px; margin: 0 auto; }
.cd__card {
  --c: var(--pink); position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--c); color: var(--ink); border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08), inset 0 8px 0 rgba(255, 255, 255, .25), 0 18px 30px -14px rgba(43, 35, 80, .45);
  animation: morph2 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.7s);
}
.cd__card::after { content: ""; position: absolute; top: 14%; left: 20%; width: 18%; height: 10%; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: rotate(-30deg); }
.cd__card--yellow { --c: var(--yellow); }
.cd__card--teal { --c: var(--teal); }
.cd__card--sky { --c: var(--sky); }
@keyframes morph2 {
  0% { border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; }
  50% { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
  100% { border-radius: 52% 48% 62% 38% / 42% 60% 40% 58%; }
}
.cd__num { font: 700 clamp(1.8rem, 8vw, 4.2rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.cd__lbl { margin-top: .3em; font: 800 clamp(.62rem, 2vw, .95rem)/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; }
.cd__card.bump { animation: bumpy .6s var(--spring), morph2 7s ease-in-out infinite alternate; }
@keyframes bumpy { 0% { transform: scale(1); } 30% { transform: scale(1.1, .9) translateY(4px); } 60% { transform: scale(.96, 1.06) translateY(-8px); } 100% { transform: scale(1); } }
.cd__msg { max-width: 640px; margin: 0 auto; padding: 28px; border-radius: var(--radius); background: #fff; text-align: center; font-size: 1.15rem; box-shadow: var(--shadow-soft); }
.cd__msg b { display: block; font: 700 1.6rem var(--font-display); margin-bottom: .3em; }

/* =========================================================================
   CAKE
   ========================================================================= */
.cake { max-width: 620px; margin: 0 auto; text-align: center; }
.cake__stage { position: relative; width: min(100%, 470px); margin: 0 auto; }
@media (min-width: 900px) { .cake { max-width: 700px; } .cake__stage { width: 540px; } }
.cake__stage::before { content: ""; position: absolute; inset: 8% 4% 4%; border-radius: 50%; background: radial-gradient(circle, var(--t-yellow) 0, transparent 68%); z-index: 0; }
.cake__svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; }
.celebrate .cake__svg { animation: cakeJump .8s var(--spring); }
@keyframes cakeJump { 30% { transform: scale(1.06, .94); } 60% { transform: translateY(-14px) scale(.97, 1.04); } }
.candle { cursor: pointer; outline: none; }
.candle:focus-visible > rect:first-child { stroke: var(--grape-d); stroke-width: 3; stroke-dasharray: 5 4; rx: 12px; }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker var(--fd, 1s) ease-in-out infinite alternate; transition: transform .35s ease-in, opacity .3s; }
@keyframes flicker { 0% { transform: scale(1, 1) rotate(-3deg); } 50% { transform: scale(.9, 1.1) rotate(2deg); } 100% { transform: scale(1.05, .94) rotate(-1deg); } }
.candle:hover .flame { animation-duration: .35s; }
.candle.out .flame { animation: none; transform: scale(0, .2); opacity: 0; }
.smoke circle { fill: rgba(110, 100, 140, .35); opacity: 0; transform-box: fill-box; transform-origin: center; }
.candle.out .smoke circle { animation: smoke 1.5s ease-out forwards; }
.candle.out .smoke circle:nth-child(2) { animation-delay: .12s; }
.candle.out .smoke circle:nth-child(3) { animation-delay: .24s; }
@keyframes smoke { 0% { opacity: 0; transform: translateY(6px) scale(.4); } 25% { opacity: .9; } 100% { opacity: 0; transform: translateY(-34px) scale(1.8); } }
.cake__status { margin: .8em 0 0; font: 600 1.1rem var(--font-display); color: var(--ink-soft); }
.cake__yay { margin-top: .6em; animation: popIn .7s var(--spring) both; }
.cake__yay-title { margin: 0 0 .2em; font: 700 clamp(1.6rem, 5.4vw, 2.5rem)/1.15 var(--font-display); color: var(--pink-d); }
.cake__yay p:last-child { font-weight: 700; color: var(--ink-soft); margin: 0; }
@keyframes popIn { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
#micBtn.is-listening { --bg: var(--t-pink); animation: listen 1s ease-in-out infinite; }
@keyframes listen { 50% { box-shadow: 0 5px 0 var(--edge), 0 0 0 10px rgba(255, 107, 139, .25); } }

/* =========================================================================
   DETAILS
   ========================================================================= */
.cards { display: grid; gap: clamp(22px, 3vw, 32px); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 560px) and (max-width: 759px) { .cards { grid-template-columns: 1fr 1fr; } .cards .dcard:last-child { grid-column: 1 / -1; } }
.dcard {
  --c: var(--pink); --edge: var(--t-pink); position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 32px;
  padding: clamp(24px, 3vw, 34px); box-shadow: 0 10px 0 var(--edge), 0 26px 44px -22px rgba(43, 35, 80, .4);
}
.dcard.in { transition: transform .45s var(--spring), opacity .7s; }
.dcard.in:hover { transform: translateY(-6px) rotate(-1deg); }
.dcard.in:nth-child(2):hover { transform: translateY(-6px) rotate(1deg); }
.dcard--teal { --c: var(--teal); --edge: color-mix(in srgb, var(--teal) 28%, #fff); }
.dcard--grape { --c: var(--grape); --edge: color-mix(in srgb, var(--grape) 22%, #fff); }
.dcard--pink { --edge: color-mix(in srgb, var(--pink) 26%, #fff); }
.dcard__icon { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 24px 30px 22px 28px; background: var(--c); color: #fff; transform: rotate(-6deg); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .1); }
.dcard--pink .dcard__icon, .dcard--teal .dcard__icon { color: var(--ink); }
.dcard__icon .ico { width: 40px; height: 40px; }
.dcard:hover .dcard__icon { animation: jiggle .6s ease; }
@keyframes jiggle { 0%, 100% { transform: rotate(-6deg); } 25% { transform: rotate(8deg) scale(1.1); } 50% { transform: rotate(-10deg); } 75% { transform: rotate(4deg); } }
.dcard__k { margin: 0; font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.dcard__t { margin: .3em 0 .45em; font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 700; }
.dcard__b { color: var(--ink-soft); margin: 0 0 1.1em; }
.dcard__b strong { color: var(--ink); font-size: 1.1em; }
.dcard__a { margin-top: auto; }

/* =========================================================================
   SCHEDULE — winding path
   ========================================================================= */
.path { position: relative; max-width: 900px; margin: 0 auto; }
.path__svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.path__road { fill: none; stroke: var(--t-grape); stroke-width: 26; stroke-linecap: round; }
.path__dots { fill: none; stroke: var(--grape); stroke-width: 5; stroke-linecap: round; stroke-dasharray: .1 16; opacity: .7; }
.path__list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(30px, 5vw, 60px); }
.stop { --c: var(--pink); display: flex; align-items: center; gap: clamp(14px, 2.4vw, 26px); }
.stop--yellow { --c: var(--yellow); } .stop--teal { --c: var(--teal); } .stop--grape { --c: #B7A6FF; } .stop--sky { --c: var(--sky); }
.stop--end { --c: #fff; }
.stop__badge {
  position: relative; z-index: 1; flex: none; width: clamp(66px, 9vw, 100px); aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; background: var(--c); font-size: clamp(1.8rem, 4.2vw, 2.9rem); line-height: 1;
  box-shadow: 0 0 0 6px #fff, 0 7px 0 6px rgba(43, 35, 80, .07), 0 18px 30px -10px rgba(43, 35, 80, .45);
}
.stop__badge span { display: block; animation: bob 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.7s); }
@keyframes bob { 50% { transform: translateY(-5px) rotate(6deg); } }
.stop:hover .stop__badge { animation: jiggle .6s ease; }
.stop__card { position: relative; flex: 1; min-width: 0; padding: clamp(16px, 2.4vw, 24px) clamp(18px, 2.8vw, 28px); background: #fff; border-radius: 26px; box-shadow: var(--shadow-soft); }
.stop__time { display: inline-block; margin: 0 0 .45em; padding: .25em .85em; border-radius: 999px; background: var(--c); font: 700 .95rem/1.3 var(--font-display); }
.stop__title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; }
.stop__text { margin: .3em 0 0; color: var(--ink-soft); }
.stop__card--ghost { background: transparent; box-shadow: none; border: 3px dashed var(--line); font: 600 1.1rem var(--font-display); color: var(--ink-soft); padding: 14px 20px; flex: 0 1 auto; }
@media (min-width: 760px) {
  .stop { width: 76%; }
  .stop:nth-child(even) { margin-left: auto; flex-direction: row-reverse; }
  .stop:nth-child(even) .stop__card { text-align: right; }
  .stop--end { width: auto; align-self: center; margin-left: 0 !important; flex-direction: column !important; gap: 12px; }
}

/* =========================================================================
   GALLERY — polaroids
   ========================================================================= */
.polaroids { list-style: none; margin: 0; padding: 12px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(26px, 4.4vw, 52px) clamp(14px, 3.4vw, 40px); }
@media (min-width: 760px) { .polaroids { grid-template-columns: repeat(3, 1fr); } }
.polaroid {
  --rot: -4deg; position: relative; display: block; width: 100%; padding: clamp(7px, 1.2vw, 12px) clamp(7px, 1.2vw, 12px) 0; border: 0; border-radius: 6px;
  background: #fff; color: var(--ink); text-align: center; cursor: zoom-in; transform: rotate(var(--rot));
  box-shadow: 0 2px 0 rgba(43, 35, 80, .05), 0 18px 30px -14px rgba(43, 35, 80, .45); transition: transform .45s var(--spring), box-shadow .3s;
}
.polaroid--1 { --rot: 3deg; } .polaroid--2 { --rot: -2deg; } .polaroid--3 { --rot: 4deg; } .polaroid--4 { --rot: -3deg; } .polaroid--5 { --rot: 2.5deg; }
.polaroid:hover, .polaroid:focus-visible { transform: rotate(0) translateY(-8px) scale(1.03); box-shadow: 0 30px 44px -18px rgba(43, 35, 80, .5); z-index: 2; }
.polaroid:active { transform: scale(.97); }
.polaroid::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 46%; height: 26px; z-index: 2; transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .45) 0 7px, transparent 7px 14px), var(--tape); opacity: .82;
  box-shadow: 0 2px 4px rgba(43, 35, 80, .12);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0); mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
}
.polaroid:nth-child(odd)::before { transform: translateX(-50%) rotate(3deg); }
.polaroid__img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: linear-gradient(135deg, var(--pink), var(--yellow) 50%, var(--teal)); }
.polaroid__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.polaroid:hover .polaroid__img img { transform: scale(1.07); }
.img-fail::after { content: "📸"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; }
.polaroid__cap { display: block; padding: .7em .3em .9em; font: 600 clamp(.9rem, 2.2vw, 1.12rem)/1.25 var(--font-display); color: var(--ink); }
.sticker {
  position: absolute; top: clamp(-14px, -1.5vw, -6px); right: clamp(-14px, -1.5vw, -4px); z-index: 3; display: grid; place-items: center;
  width: clamp(56px, 8vw, 78px); aspect-ratio: 1; padding: 6px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  font: 700 clamp(.78rem, 1.8vw, 1rem)/1 var(--font-display); text-align: center; transform: rotate(12deg);
  box-shadow: 0 0 0 4px #fff, 0 8px 16px -6px rgba(43, 35, 80, .45);
}
.polaroid--1 .sticker { background: var(--teal); } .polaroid--2 .sticker { background: var(--pink); } .polaroid--3 .sticker { background: var(--sky); }
.polaroid--4 .sticker { background: #B7A6FF; } .polaroid--5 .sticker { background: var(--yellow); }
.polaroid:hover .sticker { animation: jiggle .6s ease; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 60px 16px 90px; background: rgba(28, 20, 58, .92); opacity: 0; transition: opacity .25s; }
.lightbox.show { opacity: 1; }
.lightbox__figure { margin: 0; max-width: min(900px, 100%); text-align: center; }
.lightbox__figure img { display: block; max-width: 100%; max-height: calc(100vh - 190px); max-height: calc(100svh - 190px); margin: 0 auto; border: 8px solid #fff; border-radius: 12px; background: #fff; opacity: 0; transform: scale(.94) rotate(-1deg); transition: opacity .3s, transform .45s var(--spring); }
.lightbox__figure img.in { opacity: 1; transform: none; }
.lightbox figcaption { margin-top: 14px; color: #fff; font: 600 1.15rem var(--font-display); }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font: 700 2rem/1 var(--font-display); cursor: pointer; box-shadow: 0 5px 0 rgba(0, 0, 0, .2); transition: transform .25s var(--spring); }
.lightbox__close:hover, .lightbox__nav:hover { transform: scale(1.1) rotate(-6deg); }
.lightbox__close:active, .lightbox__nav:active { transform: scale(.9); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav { top: 50%; margin-top: -26px; }
.lightbox__nav--prev { left: 14px; } .lightbox__nav--next { right: 14px; }
@media (max-width: 759px) { .lightbox__nav { top: auto; bottom: 20px; margin: 0; } .lightbox__nav--prev { left: calc(50% - 64px); } .lightbox__nav--next { right: calc(50% - 64px); } }

/* =========================================================================
   FORMS (shared)
   ========================================================================= */
.field { margin-bottom: 16px; min-width: 0; }
.field label { display: block; margin-bottom: 6px; font-weight: 800; font-size: .96rem; }
.field input:not([type=radio]):not([type=number]), .field textarea {
  display: block; width: 100%; min-height: 52px; padding: .75em 1em; border: 2.5px solid var(--line); border-radius: 18px;
  background: #FDFCFF; font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s, transform .2s var(--spring);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--grape); box-shadow: 0 0 0 4px var(--t-grape); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #8C86A6; }
.has-err input, .has-err textarea { border-color: #D2344F !important; animation: shakeX .4s; }
@keyframes shakeX { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.field__err { margin: 6px 0 0; color: #B8233D; font-weight: 800; font-size: .9rem; }
.field__err:empty { display: none; }
.note { margin: 14px 0 0; text-align: center; font-size: .9rem; font-weight: 700; color: var(--ink-soft); }

/* =========================================================================
   WISH WALL
   ========================================================================= */
.wishes { display: grid; gap: 30px; align-items: start; }
@media (min-width: 900px) { .wishes { grid-template-columns: minmax(300px, 370px) 1fr; gap: 40px; } .wish-form { position: sticky; top: 96px; } }
.wish-form__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.wall { list-style: none; margin: 0; padding: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: clamp(16px, 2.6vw, 26px); }
@media (min-width: 900px) { .wall { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.sticky {
  --n: var(--t-yellow); position: relative; min-height: 150px; padding: 28px 16px 16px; background: var(--n); border-radius: 4px 4px 22px 4px;
  transform: rotate(var(--r)); box-shadow: 0 16px 18px -14px rgba(43, 35, 80, .5), inset 0 -3px 0 rgba(0, 0, 0, .04); transition: transform .35s var(--spring);
  display: flex; flex-direction: column;
}
.sticky:hover { transform: rotate(0) scale(1.04); z-index: 1; }
.sticky::before { content: ""; position: absolute; top: 9px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 12%, var(--pink) 30%, var(--pink-d) 100%); box-shadow: 0 3px 4px rgba(43, 35, 80, .3); }
.sticky--yellow { --n: color-mix(in srgb, var(--yellow) 48%, #fff); }
.sticky--pink { --n: color-mix(in srgb, var(--pink) 30%, #fff); }
.sticky--teal { --n: color-mix(in srgb, var(--teal) 32%, #fff); }
.sticky--grape { --n: color-mix(in srgb, var(--grape) 22%, #fff); }
.sticky--sky { --n: color-mix(in srgb, var(--sky) 32%, #fff); }
.sticky--grape::before { background: radial-gradient(circle at 35% 35%, #fff 0 12%, var(--teal) 30%, var(--teal-d) 100%); }
.sticky__text { margin: 0 0 .6em; font: 500 1.04rem/1.4 var(--font-display); overflow-wrap: anywhere; }
.sticky__from { margin: auto 0 0; font-weight: 800; font-size: .88rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.sticky__x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font: 700 1.5rem/1 var(--font-display); color: var(--ink-soft); border-radius: 50%; }
.sticky__x:hover { color: var(--pink-d); }
.sticky--new { animation: stick .8s var(--spring) both; }
@keyframes stick { 0% { transform: translateY(-40px) scale(1.4) rotate(14deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(var(--r)); } }

/* =========================================================================
   GIFTS
   ========================================================================= */
.gifts { text-align: center; }
.gifts .sec__head { margin-bottom: 0; }
.gifts__icon { width: 100px; height: 100px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 32px 26px 34px 28px; background: var(--pink); color: #fff; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .1), 0 18px 30px -14px rgba(43, 35, 80, .5); animation: giftBob 3.2s ease-in-out infinite; }
.gifts__icon .ico { width: 58px; height: 58px; }
@keyframes giftBob { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(6deg) translateY(-8px); } }
.wish-items { list-style: none; margin: clamp(30px, 5vw, 48px) auto 0; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 2.4vw, 24px); }
@media (min-width: 820px) { .wish-items { grid-template-columns: repeat(4, 1fr); } }
.witem { --c: var(--t-pink); padding: clamp(18px, 2.6vw, 26px) clamp(12px, 2vw, 20px); border-radius: 28px; background: #fff; box-shadow: var(--shadow-soft); }
.witem.in { transition: transform .4s var(--spring), opacity .7s; }
.witem.in:hover { transform: translateY(-6px) rotate(-2deg); }
.witem.in:nth-child(even):hover { transform: translateY(-6px) rotate(2deg); }
.witem--teal { --c: var(--t-teal); } .witem--grape { --c: var(--t-grape); } .witem--sky { --c: var(--t-sky); }
.witem__icon { display: grid; place-items: center; width: clamp(58px, 8vw, 72px); aspect-ratio: 1; margin: 0 auto 12px; border-radius: 50%; background: var(--c); font-size: clamp(1.8rem, 4vw, 2.3rem); line-height: 1; }
.witem h3 { font-size: clamp(1.02rem, 2.4vw, 1.2rem); font-weight: 700; }
.witem p { margin: .35em 0 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.45; }

/* =========================================================================
   VENUE
   ========================================================================= */
.venue { display: grid; gap: 26px; }
@media (min-width: 900px) { .venue { grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: stretch; } }
.venue__map { position: relative; min-height: 300px; background-image: repeating-linear-gradient(0deg, transparent 0 38px, rgba(255,255,255,.7) 38px 44px), repeating-linear-gradient(90deg, transparent 0 58px, rgba(255,255,255,.7) 58px 64px); border-radius: 32px; overflow: hidden; border: 8px solid #fff; background: var(--t-teal); box-shadow: var(--shadow-soft); }
.venue__map::before { content: "🗺️  Loading map…"; position: absolute; inset: 0; display: grid; place-items: center; font: 600 1.1rem var(--font-display); color: var(--teal-d); }
.venue__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) { .venue__map { min-height: 440px; } }
.venue__name { display: flex; align-items: center; gap: .4em; font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; }
.venue__name .ico { color: var(--pink-d); width: 1.1em; height: 1.1em; }
.venue__addr { margin: .6em 0 1.1em; color: var(--ink-soft); font-weight: 600; }
.venue__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.venue__facts li { display: flex; align-items: flex-start; gap: 12px; }
.venue__facts .ico { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 14px; background: var(--t-teal); color: var(--teal-d); stroke-width: 3.6; }
.venue__facts li:nth-child(2) .ico { background: var(--t-pink); color: var(--pink-d); }
.venue__facts li:nth-child(3) .ico { background: var(--t-yellow); color: #8A5A00; }
.venue__facts span { padding-top: 7px; line-height: 1.45; }
.venue .btn-row { justify-content: flex-start; }
.venue .btn-row .btn { flex: 1 1 auto; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { --bg: var(--grape-d); position: relative; background: var(--bg); color: #fff; text-align: center; padding: clamp(40px, 6vw, 70px) 0 calc(110px + env(safe-area-inset-bottom)); }
.footer__art { display: flex; justify-content: center; align-items: flex-end; gap: 10px; height: 180px; margin-bottom: 14px; }
.buddy { width: 168px; height: auto; overflow: visible; animation: hop 2.4s ease-in-out infinite; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-12px); } 80% { transform: translateY(0) scale(1.04, .96); } }
.buddy__arm { transform-origin: 118px 128px; animation: waveArm 1.2s ease-in-out infinite alternate; }
@keyframes waveArm { from { transform: rotate(-16deg); } to { transform: rotate(22deg); } }
.fb { display: block; width: 48px; align-self: flex-start; margin-top: 6px; animation: float 4.5s ease-in-out infinite alternate; }
.fb--2 { width: 58px; margin-top: -20px; animation-delay: -1.5s; }
.fb--3 { width: 50px; animation-delay: -3s; margin-top: -8px; }
.fb--1 { order: 1; } .buddy { order: 2; } .fb--2 { order: 3; } .fb--3 { order: 4; }
.fb .bl { display: block; width: 100%; height: auto; }
.footer .bl__string { stroke: rgba(255, 255, 255, .6); }
.footer__big { margin: 0 0 .35em; font: 700 clamp(1.7rem, 5vw, 2.7rem)/1.15 var(--font-display); color: var(--yellow); }
.footer__hosts { font-size: clamp(1.05rem, 2.6vw, 1.25rem); margin-bottom: 1.1em; }
.footer__hosts b { font-family: var(--font-display); font-weight: 600; }
.footer__hosts span { opacity: .9; white-space: nowrap; }
.footer__contacts { list-style: none; margin: 0 0 1.6em; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 340px)); justify-content: center; gap: 14px; }
.fcontact { display: grid; gap: 12px; padding: 14px 14px 18px; border-radius: 26px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14); }
.fcontact__who { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.fcontact__who b { font: 600 1.25rem var(--font-display); }
.fcontact__who span { opacity: .9; }
.fcontact__who small { display: block; margin-top: 2px; font-size: .95rem; font-weight: 700; letter-spacing: .02em; opacity: .85; }
.fcontact__btns { display: flex; gap: 10px; }
.fcontact__btns .btn { flex: 1 1 0; min-width: 0; padding-inline: .8em; }
.footer__contacts .btn { --edge: rgba(0, 0, 0, .25); }
.footer__contacts .btn--white .ico { color: var(--grape-d); }
.footer__small { margin: 0; font-size: .92rem; opacity: .9; }
.footer__top { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: #fff; font-weight: 800; }
.footer :focus-visible { outline-color: #fff; }

/* =========================================================================
   FLOATING BUTTONS, TOAST, CONFETTI
   ========================================================================= */
.fab { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fab__btn { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #fff; color: var(--grape-d); cursor: pointer; box-shadow: 0 5px 0 rgba(43, 35, 80, .14), 0 12px 24px -8px rgba(43, 35, 80, .5); transition: transform .25s var(--spring), background-color .2s; }
.fab__btn svg { width: 24px; height: 24px; }
.fab__btn:hover { transform: scale(1.08) rotate(-8deg); }
.fab__btn:active { transform: scale(.88); }
.fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#musicBtn:not(.is-on)::after { content: ""; position: absolute; width: 30px; height: 3px; border-radius: 3px; background: currentColor; transform: rotate(-45deg); box-shadow: 0 0 0 2px #fff; }
#musicBtn.is-on { background: var(--grape-d); color: #fff; }
#musicBtn.is-on::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--grape); animation: ring2 1.6s ease-out infinite; }
#musicBtn.is-on svg { animation: bob 1s ease-in-out infinite; }
@keyframes ring2 { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.toast { position: fixed; left: 50%; top: calc(84px + env(safe-area-inset-top)); z-index: 330; width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 18px; background: var(--ink); color: #fff; font-weight: 700; text-align: center; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 300; pointer-events: none; }
.flyers { position: fixed; inset: 0; z-index: 290; pointer-events: none; overflow: hidden; }
.flyer { position: absolute; bottom: -200px; width: 76px; transform: scale(var(--s)); animation: flyUp var(--d) cubic-bezier(.35, .1, .6, 1) var(--delay) forwards; }
.flyer .bl { display: block; width: 100%; height: auto; }
@keyframes flyUp { to { transform: translate(var(--sway), calc(-100vh - 280px)) rotate(10deg) scale(var(--s)); } }

/* =========================================================================
   REDUCED MOTION — calm everything down
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .sprinkles, .intro__inner::before, .gift::after { display: none; }
  .js .rv { opacity: 1; transform: none; }
  .bignum { transform: none; }
  .rainbow path { stroke-dashoffset: 0; }
}

/* short laptop screens: keep the whole hero above the fold */
@media (min-width: 900px) and (max-height: 820px) {
  .hero { padding-top: 88px; padding-bottom: 64px; }
  .hero__name { font-size: clamp(3rem, 11vh, 5.4rem); }
  .hero__is { font-size: 1.6rem; }
  .bignum-wrap { font-size: clamp(8rem, 27vh, 19rem); }
  .hero__tagline { margin-top: .3em; }
  .hero__when { margin-top: .7em; }
  .hero__ctas { margin-top: 1em; }
  .chip--theme { font-size: .95rem; }
}

/* weblivites: guest greeting and the "Party!" word when no age is given */
.hero__dear { margin: 0 auto .7em; font: 700 clamp(1.05rem, 3vw, 1.3rem)/1.3 var(--font-display); color: var(--grape-d); max-width: 30ch; }
.bignum--word { font-size: .4em; letter-spacing: -.01em; }
