/* =========================================================
   Little Princess · 1st Birthday Invitation
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --pink-50: #fff5f8;
  --pink-100: #ffe8f0;
  --pink-200: #ffd3e2;
  --pink-300: #ffb3cd;
  --pink-400: #ff8fb5;
  --pink-500: #ff5c93;
  --pink-600: #ee3f7f;
  --pink-700: #d42a6b;
  --wine: #8c2251;
  --cream: #fffaf3;
  --gold: #f2b632;
  --gold-deep: #c98a1e;
  --ink: #5b2a3c;
  --ink-soft: #8d5d6f;
  --brown: #6b3a2a;

  --font-script: 'Courgette', 'Segoe Script', cursive;
  --font-title: 'Pacifico', 'Courgette', cursive;
  --font-hand: 'Caveat', 'Segoe Print', cursive;
  --font-num: 'Fredoka', 'Nunito', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-card: 0 1px 0 #fff inset, 0 30px 60px -30px rgba(212, 42, 107, .4), 0 6px 16px -8px rgba(212, 42, 107, .16);
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: #ffe9f0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(238, 63, 127, .55); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--pink-300); color: var(--wine); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 800; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  translate: -120% 0; transition: translate .8s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn:hover::after { translate: 120% 0; }
.btn:active { transform: translateY(0) scale(.97); }
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #ff86b3, #ff4f8b);
  box-shadow: 0 12px 22px -10px rgba(238, 63, 127, .8), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(190, 30, 90, .22);
}
.btn--primary:hover { box-shadow: 0 18px 28px -10px rgba(238, 63, 127, .85), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(190, 30, 90, .22); }
.btn--ghost { color: var(--pink-600); background: #fff; box-shadow: inset 0 0 0 2px var(--pink-300), 0 10px 20px -12px rgba(238, 63, 127, .5); }
.btn--white { color: var(--pink-600); background: #fff; box-shadow: 0 16px 28px -14px rgba(110, 10, 60, .7); }
.btn--outline { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }
.btn--sm { padding: .64em 1.15em; font-size: .86rem; }
.btn--lg { width: 100%; padding: 1em 1.9em; font-size: 1.02rem; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #fff7fa, #ffd6e4);
  transition: opacity .7s ease, visibility .7s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__crown { width: 76px; height: 60px; margin: 0 auto; animation: crownBob 1.3s ease-in-out infinite; }
.loader__text { margin-top: 6px; font-family: var(--font-script); font-size: 2rem; color: var(--pink-600); }
.loader__dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.loader__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--pink-400); animation: dot 1s ease-in-out infinite; }
.loader__dots i:nth-child(2) { animation-delay: .15s; }
.loader__dots i:nth-child(3) { animation-delay: .3s; }

.progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  width: 100%; height: 3px;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, #ffb3cd, #ff5c93, #f2b632);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px 0;
  transition: background .4s, box-shadow .4s, padding .4s var(--ease);
}
.nav.is-scrolled {
  padding: 8px 0;
  background: rgba(255, 246, 249, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px -16px rgba(238, 63, 127, .45);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__right { display: flex; align-items: center; gap: 10px; }

.logo {
  position: relative; display: inline-block;
  padding-top: 16px;
  font-family: var(--font-script); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1; white-space: nowrap;
  color: var(--pink-600); text-shadow: 0 1px 0 #fff;
}
.logo svg { position: absolute; top: -4px; left: 50%; width: 26px; height: 20px; translate: -50% 0; rotate: -6deg; }
.logo:hover svg { animation: wiggle .7s var(--ease); }

.nav__links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__links li { display: flex; align-items: center; }
.nav__links li + li::before {
  content: ""; width: 8px; height: 8px; margin-right: 2px;
  background: var(--pink-300); -webkit-mask: var(--heart) center / contain no-repeat; mask: var(--heart) center / contain no-repeat;
}
.nav__links a {
  display: block; padding: .46em .9em; border-radius: 999px;
  font-weight: 700; font-size: .9rem; white-space: nowrap;
  transition: color .3s, background .3s, box-shadow .3s;
}
.nav__links a:hover { color: var(--pink-600); }
.nav__links a.is-active { color: var(--pink-600); background: #fff; box-shadow: 0 8px 18px -10px rgba(238, 63, 127, .6); }

.nav__toggle {
  position: relative; display: none; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; box-shadow: 0 8px 18px -10px rgba(238, 63, 127, .6);
}
.nav__toggle span {
  position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: var(--pink-600);
  transition: transform .4s var(--ease), opacity .3s;
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(96px, 9vw, 122px) 0 clamp(150px, 15vw, 214px);
  background: #e3f3c4;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #b3dffa 0%, #d5effd 30%, #ffeaf2 58%, #ffdbe8 100%);
}
.hero__petals { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero__content { position: relative; z-index: 3; }

/* parallax layers: --mx / --my (pointer) and --sy (scroll) are set on .hero by script.js */
.px {
  translate:
    calc(var(--mx, 0) * var(--d, 0) * 1px)
    calc(var(--my, 0) * var(--d, 0) * 1px + var(--sy, 0) * var(--s, 0) * 1px);
  will-change: translate;
}

.cloud { position: absolute; fill: #fff; opacity: .92; animation: drift var(--dur, 26s) ease-in-out infinite alternate; }
.cloud--1 { left: 3%; top: 10%; width: 150px; height: 75px; --dur: 24s; }
.cloud--2 { left: 31%; top: 5%; width: 110px; height: 55px; opacity: .8; --dur: 30s; --dx: 60px; }
.cloud--3 { left: 61%; top: 12%; width: 170px; height: 85px; --dur: 34s; --dx: -70px; }
.cloud--4 { right: 1%; top: 27%; width: 120px; height: 60px; opacity: .85; --dur: 28s; --dx: -50px; }
.cloud--5 { left: 15%; top: 31%; width: 90px; height: 45px; opacity: .7; --dur: 22s; }

.sun { position: absolute; top: clamp(80px, 12%, 130px); right: 7%; width: clamp(72px, 8.500vw, 126px); filter: drop-shadow(0 0 26px rgba(255, 214, 90, .8)); }
.sun svg { width: 100%; height: auto; overflow: visible; animation: bob 5s ease-in-out infinite alternate; }
.sun__rays { transform-origin: 100px 100px; animation: spin 38s linear infinite; }

.hills { position: absolute; left: -4%; bottom: 0; width: 108%; max-width: none; }
.hills--far { height: 48%; }
.hills--mid { height: 37%; }
.hills--front { height: 25%; }
.hero__castle {
  position: absolute; right: 2.500%; bottom: 24%;
  width: clamp(150px, 21vw, 310px); height: auto;
  filter: drop-shadow(0 18px 24px rgba(212, 42, 107, .2));
}

.fheart { position: absolute; width: 26px; height: 26px; fill: none; stroke: #ff6fa1; stroke-width: 2.200; animation: floatY 5s ease-in-out infinite alternate; }
.fheart--1 { left: 46%; top: 18%; rotate: -14deg; }
.fheart--2 { left: 80%; top: 15%; width: 22px; height: 22px; rotate: 16deg; animation-duration: 6.500s; }
.fheart--3 { left: 2.500%; top: 42%; width: 18px; height: 18px; animation-duration: 4.400s; }

.twinkle {
  position: absolute; width: var(--sz, 14px); height: var(--sz, 14px);
  fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 220, 120, .95));
  animation: twinkle var(--t, 3s) ease-in-out infinite;
}

/* flower clusters (built by script.js) */
.blooms { position: absolute; pointer-events: none; }
.bloom {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2);
  rotate: var(--r); color: var(--c);
  transform-origin: 50% 100%;
  animation: sway var(--t, 5s) ease-in-out var(--dl, 0s) infinite alternate;
}
.bloom--leaf { color: #9fd070; }
.blooms--hero-l { left: 0; bottom: 56px; width: 34%; height: 36%; }
.blooms--hero-r { right: 0; bottom: 56px; width: 30%; height: 34%; }

/* layout */
.hero__grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr) minmax(0, .4fr);
  gap: clamp(12px, 2.400vw, 36px);
}
.hero__art { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1 / 1.02; margin-inline: auto; }
/* on wide screens the artwork grows into the empty page margin on its left */
@media (min-width: 1300px) {
  .hero__art {
    --bleed: min(20%, calc((100vw - 1180px) / 2 - 50px));
    width: calc(100% + var(--bleed)); max-width: none;
    margin-left: calc(-1 * var(--bleed)); margin-right: 0;
  }
}

.balloons { position: absolute; left: -8%; top: -5%; width: 54%; height: 76%; }
.balloon { position: absolute; width: 34%; height: auto; transform-origin: 50% 100%; animation: floatY var(--t, 5s) ease-in-out var(--dl, 0s) infinite alternate; }
.balloon--1 { left: 0; top: 24%; color: #ffb3cd; --t: 5.500s; rotate: -12deg; }
.balloon--2 { left: 22%; top: 2%; width: 38%; color: #ff8fb5; --t: 6.200s; --dl: -2s; rotate: -4deg; }
.balloon--3 { left: 52%; top: 10%; color: #ffd3e2; --t: 4.800s; --dl: -1s; rotate: 8deg; }
.balloon--4 { left: 8%; top: 46%; width: 30%; color: #ffc2d6; --t: 6.800s; --dl: -3s; rotate: -16deg; }
.balloon--5 { left: 40%; top: 38%; width: 30%; color: #ff9dbf; --t: 5.200s; --dl: -1.500s; rotate: 4deg; }

.photo { position: absolute; right: -4%; top: 2%; z-index: 1; width: 64%; rotate: -6deg; }
.photo__float { animation: floatPhoto 6s ease-in-out infinite alternate; }
.photo__card {
  position: relative;
  padding: 4.500% 4.500% 5.500%;
  border-radius: 20px;
  background: linear-gradient(145deg, #fffefb, #fbeee0);
  box-shadow: 0 34px 60px -26px rgba(140, 34, 81, .55), 0 10px 20px -10px rgba(140, 34, 81, .3), inset 0 0 0 1px rgba(255, 255, 255, .9);
  transition: transform .6s var(--ease);
}
.photo__card.is-tilting { transition: transform .12s linear; }
.photo__card img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: 50% 20%; border-radius: 12px; }
.photo__bow {
  position: absolute; top: -9%; left: 50%; z-index: 1;
  width: 36%; aspect-ratio: 100 / 64; translate: -50% 0; rotate: 6deg;
  filter: drop-shadow(0 6px 6px rgba(212, 42, 107, .32));
}
.hero__doll {
  position: absolute; left: -7%; bottom: -7%; z-index: 2;
  width: 64%; height: auto;
  filter: drop-shadow(0 16px 16px rgba(140, 34, 81, .22));
}
/* flowers in front of the doll, where the original artwork has its fence and blossoms */
.blooms--doll { left: -9%; bottom: -9%; z-index: 3; width: 68%; height: 13%; }
.blooms--doll .bloom { scale: .85; }

.hero__copy { position: relative; text-align: center; }
.hero__crown { display: block; width: clamp(44px, 5vw, 64px); aspect-ratio: 64 / 50; margin: 0 auto; filter: drop-shadow(0 6px 8px rgba(201, 138, 30, .4)); }
.hero__welcome {
  margin-top: .1em;
  font-family: var(--font-hand); font-weight: 700; font-size: clamp(1.600rem, 2.700vw, 2.300rem); line-height: 1.1;
  color: var(--brown); rotate: -3deg;
}

.hero__title {
  display: flex; align-items: center; justify-content: center; gap: .1em;
  margin-top: .12em;
  font-size: clamp(2.700rem, 5.300vw, 4.800rem); font-weight: 400; line-height: 1;
  filter: drop-shadow(0 .05em 0 rgba(212, 42, 107, .3)) drop-shadow(0 .16em .2em rgba(212, 42, 107, .24));
}
.hero__name { display: flex; flex-direction: column; align-items: flex-start; text-align: left; font-family: var(--font-title); }

/* white outlined text with a gradient fill laid on top */
.tline {
  position: relative; display: block;
  padding: 0 .12em; line-height: 1.16; white-space: nowrap;
  color: #fff; -webkit-text-stroke: .15em #fff;
}
.tline::after {
  content: attr(data-text);
  position: absolute; inset: -.25em -.2em; padding: .25em .32em;
  -webkit-text-stroke: 0; color: transparent; white-space: nowrap;
  background:
    linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .7) 50%, transparent 58%) 220% 0 / 260% 100% no-repeat,
    linear-gradient(180deg, #ff8ab6 0%, #ff4f8b 55%, #e02c72 100%);
  -webkit-background-clip: text; background-clip: text;
  animation: shine 5.500s ease-in-out infinite;
}
.tline--sm { margin: .08em 0 0 .7em; font-size: .6em; }

.one { position: relative; flex: none; font-family: var(--font-num); font-weight: 700; font-size: 3.050em; line-height: .86; }
.one__num { position: relative; display: block; color: #fff; -webkit-text-stroke: .085em #fff; }
.one__num::after {
  content: attr(data-text);
  position: absolute; inset: -.1em; padding: .1em;
  -webkit-text-stroke: 0; color: transparent;
  background:
    radial-gradient(circle, #fff8dc 0 .026em, #ffd45e .028em .044em, transparent .05em) 50% 50% / .19em .19em,
    linear-gradient(180deg, #ff8ab6 0%, #ff4f8b 55%, #de2b71 100%);
  -webkit-background-clip: text; background-clip: text;
}
.one__crown {
  position: absolute; top: -.07em; left: -.1em; z-index: 1;
  width: .4em; height: .31em; rotate: -20deg;
  animation: crownBob 3s ease-in-out infinite;
}

.hero__sub { margin-top: 14px; font-weight: 700; font-size: clamp(.98rem, 1.300vw, 1.1rem); line-height: 1.5; }

.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; color: var(--pink-400); }
.divider::before, .divider::after { content: ""; width: 64px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, currentColor); }
.divider::after { transform: scaleX(-1); }
.divider .ico { width: 14px; height: 14px; animation: beat 1.600s ease-in-out infinite; }

/* countdown */
.countdown { display: flex; justify-content: center; gap: clamp(8px, 1.200vw, 14px); margin-top: 16px; }
.countdown__tile {
  width: clamp(66px, 7vw, 88px); padding: 10px 4px 9px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 254, 251, .97), rgba(255, 243, 234, .94));
  box-shadow: 0 16px 26px -16px rgba(212, 42, 107, .55), inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 179, 205, .55);
  text-align: center; overflow: hidden;
}
.countdown__num {
  display: block;
  font-family: var(--font-num); font-weight: 600; font-size: clamp(1.700rem, 2.600vw, 2.200rem); line-height: 1.05;
  color: var(--pink-600); font-variant-numeric: tabular-nums;
}
.countdown__num.tick { animation: tick .45s var(--ease); }
.countdown__label { display: block; font-size: .8rem; font-weight: 700; }
.countdown__done { margin-top: 18px; font-family: var(--font-script); font-size: clamp(1.300rem, 2.400vw, 1.700rem); color: var(--pink-600); text-shadow: 0 2px 0 #fff; }

/* date / venue bar */
.infobar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 26px;
  width: min(100%, 940px); margin: clamp(22px, 3vw, 34px) auto 0;
  padding: 14px 18px 14px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 246, 240, .94));
  box-shadow: 0 30px 50px -30px rgba(212, 42, 107, .6), inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 179, 205, .5);
}
.infobar__item { display: flex; align-items: center; gap: 12px; text-align: left; }
.infobar__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; color: var(--pink-600); background: var(--pink-100); }
.infobar__ico .ico { width: 21px; height: 21px; }
.infobar__item strong { display: block; font-size: .95rem; line-height: 1.3; }
.infobar__item span { font-size: .86rem; color: var(--ink-soft); }
.infobar__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cal { position: relative; display: inline-block; }
.cal__menu {
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 20; translate: -50% 0;
  display: grid; gap: 2px; min-width: 216px; padding: 8px;
  border-radius: 18px; background: #fff;
  box-shadow: 0 24px 50px -18px rgba(140, 34, 81, .55), 0 0 0 1px rgba(255, 179, 205, .5);
  animation: pop .35s var(--ease);
}
.cal__menu a, .cal__menu button {
  display: block; width: 100%; padding: .68em .95em; border-radius: 12px;
  font-weight: 700; font-size: .9rem; text-align: left;
  transition: background .2s, color .2s;
}
.cal__menu a:hover, .cal__menu button:hover { color: var(--pink-600); background: var(--pink-100); }

/* train */
.rail { position: absolute; left: 0; right: 0; bottom: clamp(40px, 5.400vw, 72px); z-index: 2; height: 130px; pointer-events: none; }
.track {
  position: absolute; left: 0; right: 0; bottom: 0; height: 12px; opacity: .9;
  background:
    linear-gradient(#a8744f, #a8744f) 0 2px / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, #c79a72 0 8px, transparent 8px 26px) 0 100% / 100% 7px no-repeat;
}
.train { position: absolute; left: 0; bottom: 9px; width: clamp(240px, 30vw, 430px); animation: trainRun 30s linear infinite; }
.train svg { width: 100%; height: auto; overflow: visible; animation: chug .45s ease-in-out infinite alternate; }
.wheel { transform-box: fill-box; transform-origin: center; animation: spin .9s linear infinite; }
.wheel--big { animation-duration: 1.200s; }
.puff { opacity: 0; transform-box: fill-box; transform-origin: center; animation: puff 1.800s ease-out infinite; }
.puff--2 { animation-delay: .6s; }
.puff--3 { animation-delay: 1.200s; }
.sign {
  position: absolute; left: clamp(12px, 3vw, 64px); bottom: 34px;
  max-width: 150px; padding: 12px 18px;
  font-family: var(--font-script); font-size: 1.250rem; line-height: 1.1; text-align: center;
  color: #fff4e3; text-shadow: 0 1px 0 rgba(90, 50, 25, .7);
  border-radius: 10px; rotate: -5deg;
  background: linear-gradient(180deg, #bd7d50, #99603a);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 -3px 0 rgba(0, 0, 0, .15), 0 10px 18px -8px rgba(90, 50, 25, .55);
}
.sign::after {
  content: ""; position: absolute; left: 50%; top: 96%; z-index: -1;
  width: 12px; height: 40px; translate: -50% 0; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #8a5632, #a56b40);
}
.hero__wave { position: absolute; left: 0; bottom: -1px; z-index: 2; width: 100%; height: clamp(40px, 6vw, 80px); fill: #ffe9f0; }

/* hero entrance (starts when the loader finishes) */
.hero-in { opacity: 0; }
body.is-loaded .hero-in { animation: heroIn 1s var(--ease) calc(var(--i, 0) * 110ms + 120ms) both; }
body.is-loaded .hero__crown { animation: heroIn 1s var(--ease) 120ms both, crownBob 3s ease-in-out 1.300s infinite; }

/* =========================================================
   MAIN / SECTIONS
   ========================================================= */
main { position: relative; overflow-x: clip; background: linear-gradient(180deg, #ffe9f0 0%, #ffeef3 18%, #fff6ee 42%, #ffeef4 68%, #ffe3ec 100%); }
.section { position: relative; isolation: isolate; padding: clamp(48px, 6.500vw, 92px) 0; }
.compliments { padding-bottom: calc(clamp(48px, 6.500vw, 92px) + clamp(50px, 7vw, 100px)); }
/* pink wave that leads into the footer */
.main__wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(50px, 7vw, 100px); fill: #ff8ab3; pointer-events: none; }

.blob { position: absolute; z-index: -1; width: clamp(260px, 34vw, 520px); aspect-ratio: 1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.blob--pink { background: #ffc2d6; }
.blob--peach { background: #ffe1c2; }
.blob--sky { background: #cfeaff; }

.heading { text-align: center; margin-bottom: clamp(28px, 4.500vw, 54px); }
.heading__crown { display: block; width: 46px; height: 36px; margin: 0 auto 4px; animation: crownBob 3s ease-in-out infinite; }
.heading h2 {
  font-family: var(--font-script); font-weight: 400; font-size: clamp(2rem, 4.600vw, 3.200rem); line-height: 1.15;
  color: var(--pink-600); text-shadow: 0 2px 0 #fff, 0 10px 24px rgba(238, 63, 127, .2);
}
.heading p { max-width: 46ch; margin: .5em auto 0; font-size: 1.05rem; color: var(--ink-soft); }
.heading--left { text-align: left; margin-bottom: 0; }
.heading--left p { margin-inline: 0; }

.card {
  position: relative;
  border-radius: 30px;
  border: 1px solid rgba(255, 179, 205, .55);
  background: linear-gradient(180deg, #fffefb, #fff4ea);
  box-shadow: var(--shadow-card);
}
.corner-bow { position: absolute; top: -20px; z-index: 2; width: 68px; aspect-ratio: 100 / 64; filter: drop-shadow(0 6px 6px rgba(212, 42, 107, .28)); }
.corner-bow--l { left: -16px; rotate: -28deg; }
.corner-bow--r { right: -16px; rotate: 28deg; }

/* ---------- Feature cards ---------- */
.features { position: relative; z-index: 2; padding: clamp(26px, 3.500vw, 44px) 0 clamp(10px, 2vw, 24px); }
.features__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.200vw, 30px); }
.feature {
  --r: 18px;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 20px 30px; text-align: center;
  filter: drop-shadow(0 18px 20px rgba(212, 42, 107, .17));
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, #fffefb 0%, #fff1e8 100%);
  -webkit-mask:
    radial-gradient(circle at 0 0, transparent var(--r), #000 calc(var(--r) + .5px)) 0 0 / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, transparent var(--r), #000 calc(var(--r) + .5px)) 100% 0 / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent var(--r), #000 calc(var(--r) + .5px)) 0 100% / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 calc(var(--r) + .5px)) 100% 100% / 51% 51% no-repeat;
  mask:
    radial-gradient(circle at 0 0, transparent var(--r), #000 calc(var(--r) + .5px)) 0 0 / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, transparent var(--r), #000 calc(var(--r) + .5px)) 100% 0 / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent var(--r), #000 calc(var(--r) + .5px)) 0 100% / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent var(--r), #000 calc(var(--r) + .5px)) 100% 100% / 51% 51% no-repeat;
}
.feature::after { content: ""; position: absolute; inset: 9px; z-index: -1; border: 1.500px solid rgba(255, 143, 181, .42); border-radius: 16px; }
.feature:hover { transform: translateY(-10px); filter: drop-shadow(0 30px 28px rgba(212, 42, 107, .28)); }
.feature.is-tilting { transition: transform .12s linear, filter .5s var(--ease); }
.feature__bow { position: absolute; top: -21px; left: 50%; width: 66px; aspect-ratio: 100 / 64; translate: -50% 0; filter: drop-shadow(0 5px 5px rgba(212, 42, 107, .25)); }
.feature:hover .feature__bow { animation: wiggle .8s var(--ease); }
.feature__icon { display: grid; place-items: center; height: 84px; margin-bottom: 10px; color: var(--pink-500); }
.feature__icon svg { width: auto; height: 74px; transition: transform .6s var(--ease); }
.feature__icon--line .ico { width: 66px; height: 66px; stroke-width: 1.300; }
.feature:hover .feature__icon svg { transform: scale(1.1) rotate(-5deg); }
.feature__icon--photos { position: relative; width: 112px; }
.polaroid { position: absolute; inset: 4px 12px; padding: 5px 5px 9px; background: #fff; border-radius: 6px; box-shadow: 0 8px 16px -8px rgba(140, 34, 81, .5); rotate: 4deg; transition: rotate .6s var(--ease), translate .6s var(--ease); }
.polaroid--back { rotate: -9deg; background: #fff6ef; }
.polaroid img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 3px; }
.feature:hover .polaroid { rotate: 8deg; translate: 6px -2px; }
.feature:hover .polaroid--back { rotate: -14deg; translate: -6px 0; }
.feature h3 { margin-bottom: 6px; font-family: var(--font-script); font-weight: 400; font-size: clamp(1.350rem, 2.200vw, 1.900rem); line-height: 1.15; color: var(--pink-600); }
.feature__em { margin-bottom: 6px; font-weight: 800; color: var(--pink-600); }
.feature p { font-size: .98rem; line-height: 1.5; }
.feature__cta { margin-top: 14px; }
.feature__heart { width: 12px; height: 12px; margin-top: 14px; color: var(--pink-500); animation: beat 1.600s ease-in-out infinite; }

/* ---------- About ---------- */
.about__inner { position: relative; display: grid; place-items: center; text-align: center; }
.about__copy { max-width: 700px; }
.lead { font-size: clamp(1.05rem, 1.600vw, 1.250rem); line-height: 1.8; }
.about__teddy { position: absolute; left: -2%; bottom: -46px; width: clamp(150px, 19vw, 250px); }
.about__teddy svg { width: 100%; height: auto; filter: drop-shadow(0 18px 16px rgba(120, 70, 30, .25)); }
.blooms--about-r { right: 0; bottom: 0; width: clamp(180px, 22%, 300px); height: clamp(180px, 60%, 280px); }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 2.400vw, 26px); margin: 34px 0 0; padding: 0; list-style: none; }
.stats li {
  min-width: 158px; padding: 18px 22px; border-radius: 24px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 22px 40px -26px rgba(212, 42, 107, .55), inset 0 0 0 1px rgba(255, 179, 205, .5);
}
.stats strong { display: block; font-family: var(--font-num); font-weight: 600; font-size: 2.300rem; line-height: 1.05; color: var(--pink-600); font-variant-numeric: tabular-nums; }
.stats span { font-size: .92rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- When & Where ---------- */
.when__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.250fr); gap: clamp(16px, 2.400vw, 28px); align-items: stretch; }
.when__cards { display: grid; gap: clamp(16px, 2.400vw, 28px); }
.wcard { display: flex; align-items: flex-start; gap: 18px; padding: clamp(20px, 2.600vw, 28px); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.wcard:hover { transform: translateY(-6px); }
.wcard__ico {
  flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 20px;
  color: #fff; background: linear-gradient(180deg, #ff8fb5, #ff5c93);
  box-shadow: 0 14px 20px -12px rgba(238, 63, 127, .9), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.wcard__ico .ico { width: 26px; height: 26px; }
.wcard h3 { margin-bottom: 4px; font-family: var(--font-script); font-weight: 400; font-size: 1.500rem; line-height: 1.2; color: var(--pink-600); }
.wcard strong { display: block; font-size: 1.120rem; line-height: 1.35; }
.wcard p { display: flex; align-items: center; gap: 6px; margin: 2px 0 14px; color: var(--ink-soft); }
.wcard p .ico { color: var(--pink-500); }
/* in the card the calendar menu drops down instead of covering the date */
.wcard .cal__menu { left: 0; top: calc(100% + 10px); bottom: auto; translate: none; }
.wcard:has(.cal__menu:not([hidden])) { z-index: 5; }
.map { min-height: 340px; padding: 8px; border-radius: 30px; background: #fff; box-shadow: var(--shadow-card); }
.map iframe { width: 100%; height: 100%; min-height: 324px; border: 0; border-radius: 23px; background: var(--pink-100); }

/* ---------- Dress code ---------- */
.dress__card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 56px); max-width: 920px; margin-inline: auto; padding: clamp(28px, 4vw, 50px); }
.dress__art svg { width: clamp(120px, 15vw, 180px); height: auto; transform-origin: 50% 0; animation: swing 3.600s ease-in-out infinite alternate; filter: drop-shadow(0 16px 14px rgba(212, 42, 107, .28)); }
.eyebrow { font-family: var(--font-hand); font-weight: 700; font-size: 1.500rem; line-height: 1.1; color: var(--brown); }
.dress__copy h2 { margin-bottom: 8px; font-family: var(--font-script); font-weight: 400; font-size: clamp(2rem, 4vw, 2.900rem); line-height: 1.1; color: var(--pink-600); }
.swatches { display: flex; flex-wrap: wrap; gap: 14px 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.swatches li { display: grid; justify-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.swatches i {
  width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; background: var(--c);
  box-shadow: inset 0 -5px 8px rgba(0, 0, 0, .08), inset 0 3px 6px rgba(255, 255, 255, .6), 0 10px 16px -10px rgba(212, 42, 107, .7), 0 0 0 1px rgba(255, 179, 205, .5);
  transition: transform .4s var(--ease);
}
.swatches li:hover i { transform: translateY(-5px) scale(1.1); }

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 15vw, 200px); grid-auto-flow: dense; gap: clamp(10px, 1.400vw, 18px); }
.gitem {
  position: relative; display: block; overflow: hidden;
  border: 5px solid #fff; border-radius: 24px;
  background: var(--pink-100);
  box-shadow: 0 24px 40px -26px rgba(212, 42, 107, .6), 0 4px 10px -6px rgba(212, 42, 107, .2);
  cursor: zoom-in;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gitem:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.gitem:nth-child(6n+3) { grid-row: span 2; }
.gitem:nth-child(6n+5), .gitem:nth-child(6n) { grid-column: span 2; }
.gitem:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 34px 50px -26px rgba(212, 42, 107, .7), 0 4px 10px -6px rgba(212, 42, 107, .2); }
.gitem img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1.200s var(--ease); }
.gitem:hover img { transform: scale(1.09); }
.gitem::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  translate: -120% 0; transition: translate 1s var(--ease); pointer-events: none;
}
.gitem:hover::after { translate: 120% 0; }
.gitem__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 12px;
  font-family: var(--font-script); font-size: 1.05rem; text-align: left; color: #fff;
  background: linear-gradient(transparent, rgba(140, 34, 81, .66));
  translate: 0 100%; transition: translate .5s var(--ease);
}
.gitem:hover .gitem__cap, .gitem:focus-visible .gitem__cap { translate: 0 0; }
/* shown until a photo is added */
.ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; padding: 10px 10px 34px; background: var(--ph, linear-gradient(135deg, #ffd3e2, #ffeeda)); }
.ph svg { width: clamp(34px, 5vw, 64px); aspect-ratio: 1; height: auto; fill: #fff; color: #fff; filter: drop-shadow(0 8px 10px rgba(212, 42, 107, .28)); animation: floatY 4s ease-in-out infinite alternate; }
.ph small { font-size: .68rem; font-weight: 700; line-height: 1.3; text-align: center; color: var(--pink-700); opacity: .75; word-break: break-all; }
.gitem:nth-child(6n+2) .ph { --ph: linear-gradient(135deg, #ffe0ec, #e8defd); }
.gitem:nth-child(6n+3) .ph { --ph: linear-gradient(160deg, #ffe6c9, #ffc9dc); }
.gitem:nth-child(6n+4) .ph { --ph: linear-gradient(135deg, #d9efff, #ffdbe9); }
.gitem:nth-child(6n+5) .ph { --ph: linear-gradient(120deg, #ffd0e0, #fff0c9); }
.gitem:nth-child(6n) .ph { --ph: linear-gradient(120deg, #eadfff, #ffd6e6); }
.gitem.is-empty .gitem__cap { translate: 0 0; padding: 0 12px 10px; text-align: center; color: var(--pink-700); background: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 180;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(74, 16, 42, .84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .35s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox__stage { display: grid; justify-items: center; gap: 14px; margin: 0; transform: scale(.93); transition: transform .5s var(--ease); }
.lightbox.is-open .lightbox__stage { transform: none; }
.lightbox__media { position: relative; max-width: 100%; overflow: hidden; border: 6px solid #fff; border-radius: 24px; background: #fff; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); }
.lightbox__media img { width: auto; max-width: 100%; height: auto; max-height: 72vh; }
.lightbox__media.is-ph { width: min(72vw, 520px); aspect-ratio: 4 / 3; }
.lightbox figcaption { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-script); font-size: 1.250rem; color: #fff; }
.lightbox__count { font-family: var(--font-body); font-size: .85rem; font-weight: 700; opacity: .75; }
.lightbox__btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--pink-600); background: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); transition: transform .3s var(--ease); }
.lightbox__btn:hover { transform: scale(1.12); }
.lightbox__btn .ico { width: 22px; height: 22px; stroke-width: 2.600; }
.lightbox__close { position: absolute; top: 18px; right: 18px; }

/* ---------- Video ---------- */
.player { position: relative; max-width: 940px; margin-inline: auto; padding: 12px; border-radius: 36px; background: linear-gradient(145deg, #fff, #ffe7ef); box-shadow: 0 50px 90px -50px rgba(212, 42, 107, .75), 0 0 0 1px rgba(255, 179, 205, .6); }
.player__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 26px; background: #4a1630; }
.player__poster { position: absolute; inset: 0; transition: opacity .5s; }
.player__poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; scale: 1.14; filter: blur(7px) saturate(1.1); transition: scale 1.400s var(--ease); }
.player:hover .player__poster img { scale: 1.2; }
.player__poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(255, 143, 181, .1), rgba(110, 20, 62, .62)); }
.player__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: clamp(68px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%;
  color: var(--pink-600); background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 44px -12px rgba(0, 0, 0, .5);
  transition: scale .45s var(--ease), opacity .4s;
}
.player__play:hover { scale: 1.1; }
.player__play::before, .player__play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); animation: ring 2.400s ease-out infinite; }
.player__play::after { animation-delay: 1.200s; }
.player__play .ico { width: 38%; height: 38%; margin-left: 5%; }
.player__meta { position: absolute; left: clamp(16px, 3vw, 28px); bottom: clamp(14px, 2.500vw, 24px); color: #fff; text-align: left; transition: opacity .4s; }
.player__meta strong { display: block; font-family: var(--font-script); font-weight: 400; font-size: clamp(1.150rem, 2.400vw, 1.800rem); line-height: 1.2; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.player__meta small { font-size: .88rem; font-weight: 700; opacity: .9; }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player.is-playing .player__poster, .player.is-playing .player__play, .player.is-playing .player__meta { opacity: 0; pointer-events: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; padding: clamp(22px, 3.400vw, 40px); }
.field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend, .field__label { padding: 0; font-weight: 800; font-size: .9rem; }
.field label span { font-weight: 600; color: var(--ink-soft); }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; padding: .85em 1.1em;
  border: 2px solid var(--pink-200); border-radius: 16px; outline: none;
  background: #fff; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder, .field textarea::placeholder { color: #c9a3b2; }
.field input:focus, .field textarea:focus { border-color: var(--pink-500); box-shadow: 0 0 0 5px rgba(255, 92, 147, .16); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e5484d; box-shadow: 0 0 0 5px rgba(229, 72, 77, .12); animation: shake .4s; }
.field__error { font-size: .82rem; font-weight: 700; color: #c62a3a; }
.field__meta { display: flex; justify-content: space-between; gap: 10px; }
.field__count { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pill span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 100%; padding: .8em .8em;
  border: 2px solid var(--pink-200); border-radius: 16px; background: #fff;
  font-weight: 800; font-size: .92rem; line-height: 1.25; text-align: center;
  transition: color .3s, background .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.pill:hover span { border-color: var(--pink-400); transform: translateY(-2px); }
.pill input:checked + span { color: #fff; border-color: transparent; background: linear-gradient(180deg, #ff86b3, #ff4f8b); box-shadow: 0 12px 18px -12px rgba(238, 63, 127, .9); }
.pill input:focus-visible + span { outline: 3px solid rgba(238, 63, 127, .55); outline-offset: 3px; }

.stepper { display: flex; align-items: center; overflow: hidden; border: 2px solid var(--pink-200); border-radius: 16px; background: #fff; }
.stepper button { flex: none; width: 46px; height: 46px; font-size: 1.300rem; font-weight: 800; line-height: 1; color: var(--pink-600); transition: background .2s; }
.stepper button:hover { background: var(--pink-100); }
.stepper__val { flex: 1; font-family: var(--font-num); font-weight: 600; font-size: 1.150rem; text-align: center; }

.form-success { display: grid; justify-items: center; gap: 10px; padding: clamp(30px, 5vw, 56px) clamp(22px, 3.400vw, 40px); text-align: center; }
.form-success__ico { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: #fff; background: linear-gradient(180deg, #ff8fb5, #ff4f8b); box-shadow: 0 20px 30px -16px rgba(238, 63, 127, .95), 0 0 0 10px rgba(255, 92, 147, .12); animation: pop .7s var(--ease); }
.form-success__ico .ico { width: 40px; height: 40px; stroke-width: 3; }
.form-success h3 { font-family: var(--font-script); font-weight: 400; font-size: clamp(1.600rem, 3vw, 2.100rem); line-height: 1.2; color: var(--pink-600); }
.form-success p { max-width: 38ch; }
.form-success__note { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.form-success .btn { margin-top: 8px; }

/* ---------- RSVP ---------- */
.rsvp__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.150fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.envelope { width: clamp(150px, 19vw, 226px); margin-bottom: 14px; }
.envelope svg { width: 100%; height: auto; filter: drop-shadow(0 20px 18px rgba(212, 42, 107, .28)); animation: floatY 5s ease-in-out infinite alternate; }
.rsvp__facts { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.rsvp__facts li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.rsvp__facts .ico { color: var(--pink-500); }
.blooms--rsvp-l { left: 0; bottom: 0; z-index: -1; width: clamp(160px, 20%, 280px); height: clamp(160px, 40%, 260px); }

/* ---------- Wishes ---------- */
.wishes__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.100fr); align-items: start; gap: clamp(20px, 3vw, 40px); }
.wall { columns: 2; column-gap: 16px; }
.wish {
  position: relative; break-inside: avoid;
  margin: 0 0 16px; padding: 20px 20px 16px;
  border-radius: 24px; border: 1px solid rgba(255, 179, 205, .5);
  background: linear-gradient(180deg, #fffefb, #fff3ea);
  box-shadow: 0 22px 36px -26px rgba(212, 42, 107, .55);
  transition: transform .5s var(--ease);
}
.wish:hover { transform: translateY(-5px) rotate(-.5deg); }
.wish:nth-child(3n+2) { background: linear-gradient(180deg, #fffcff, #f6ecff); }
.wish:nth-child(3n) { background: linear-gradient(180deg, #fffdfd, #ffe9f1); }
.wish::before { content: "\201C"; position: absolute; top: 0; left: 14px; font-family: Georgia, serif; font-size: 3.200rem; line-height: 1; color: var(--pink-300); }
.wish p { margin: 16px 0 12px; font-size: .98rem; overflow-wrap: anywhere; }
.wish footer { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .88rem; color: var(--pink-600); overflow-wrap: anywhere; }
.wish__avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: .85rem; background: linear-gradient(135deg, #ff8fb5, #ffb86b); }
.wish.is-new { animation: wishIn .9s var(--ease); }

/* ---------- Compliments ---------- */
.comp {
  position: relative; max-width: 880px; margin-inline: auto;
  padding: clamp(40px, 5.500vw, 68px) clamp(24px, 5vw, 68px);
  text-align: center; border-radius: 38px;
  background: linear-gradient(180deg, #fffefa, #fff4ea);
  box-shadow: var(--shadow-card);
}
.comp::before { content: ""; position: absolute; inset: 12px; border: 1.500px solid rgba(242, 182, 50, .6); border-radius: 28px; pointer-events: none; }
.comp::after { content: ""; position: absolute; inset: 19px; border: 1px dashed rgba(255, 143, 181, .6); border-radius: 22px; pointer-events: none; }
.comp__crown { display: block; width: 62px; height: 48px; margin: 0 auto 4px; animation: crownBob 3s ease-in-out infinite; }
.comp__eyebrow { font-family: var(--font-hand); font-weight: 700; font-size: clamp(1.400rem, 2.400vw, 1.700rem); line-height: 1.1; color: var(--brown); }
.comp h2 { font-family: var(--font-script); font-weight: 400; font-size: clamp(2rem, 4.400vw, 3rem); line-height: 1.15; color: var(--pink-600); }
.comp__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.comp__item span { display: block; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.comp__item strong { display: block; margin-top: 6px; font-family: var(--font-script); font-weight: 400; font-size: clamp(1.250rem, 2.200vw, 1.600rem); line-height: 1.25; color: var(--pink-600); }
.comp__note { margin-top: 30px; font-family: var(--font-hand); font-weight: 700; font-size: 1.500rem; line-height: 1.2; color: var(--brown); }
.comp__teddy { position: absolute; right: -26px; bottom: -28px; z-index: 1; width: clamp(84px, 11vw, 128px); height: auto; rotate: 8deg; filter: drop-shadow(0 12px 10px rgba(120, 70, 30, .3)); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(44px, 6vw, 76px) 0 28px;
  text-align: center; color: #fff;
  background: linear-gradient(180deg, #ff8ab3 0%, #f25d95 55%, #d6387a 100%);
}
.footer__castle { position: absolute; right: -3%; bottom: -8%; z-index: -1; width: clamp(220px, 32vw, 460px); height: auto; opacity: .13; filter: brightness(0) invert(1); }
.footer__decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rise { position: absolute; bottom: -30px; width: var(--sz); height: var(--sz); fill: rgba(255, 255, 255, .5); animation: rise var(--t, 10s) linear var(--dl, 0s) infinite; }
.logo--lg { padding-top: 46px; font-size: clamp(2.200rem, 5vw, 3.400rem); color: #fff; text-shadow: 0 4px 18px rgba(120, 10, 60, .35); }
.logo--lg svg { top: -8px; width: 64px; height: 50px; }
.footer__thanks { max-width: 540px; margin: 14px auto 26px; font-size: 1.08rem; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin: 0 0 28px; padding: 0; list-style: none; font-weight: 700; }
.footer__links a { position: relative; display: block; padding: 4px 0; }
.footer__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: #fff; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease); }
.footer__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.footer__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: .88rem; }
.footer__bottom > span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.footer__beat { width: 14px; height: 14px; animation: beat 1.200s ease-in-out infinite; }

/* =========================================================
   FLOATING UI & EFFECTS
   ========================================================= */
.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  color: var(--pink-600); background: #fff;
  box-shadow: 0 16px 30px -12px rgba(212, 42, 107, .7);
  opacity: 0; translate: 0 20px; pointer-events: none;
  transition: opacity .4s, translate .5s var(--ease), transform .3s var(--ease);
}
.totop.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.totop:hover { transform: translateY(-4px); }
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.totop__ring circle { fill: none; stroke: var(--pink-500); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 138.230; stroke-dashoffset: 138.230; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 190; translate: -50% 30px;
  width: max-content; max-width: min(92vw, 480px); padding: .85em 1.500em; border-radius: 999px;
  font-weight: 800; font-size: .95rem; text-align: center; color: #fff;
  background: linear-gradient(180deg, #ff7fae, #ee3f7f);
  box-shadow: 0 20px 40px -14px rgba(212, 42, 107, .9);
  opacity: 0; pointer-events: none;
  transition: opacity .4s, translate .5s var(--ease);
}
.toast.is-visible { opacity: 1; translate: -50% 0; }

.confetti { position: fixed; inset: 0; z-index: 170; width: 100%; height: 100%; pointer-events: none; }
.trail { position: fixed; z-index: 160; width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2); fill: var(--c); pointer-events: none; animation: trail .8s ease-out forwards; }
.fly-heart { position: fixed; z-index: 165; width: 22px; height: 22px; margin: -11px; fill: var(--c); opacity: 0; pointer-events: none; animation: flyHeart 1.500s var(--ease) forwards; }

/* scroll reveal — keep after component rules so its transition wins while active */
.reveal {
  opacity: 0; transform: translateY(42px);
  transition: opacity .9s var(--ease) var(--delay, 0ms), transform .9s var(--ease) var(--delay, 0ms);
}
.reveal[data-reveal="left"] { transform: translateX(-60px); }
.reveal[data-reveal="right"] { transform: translateX(60px); }
.reveal[data-reveal="zoom"] { transform: scale(.86); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(var(--dx, 50px)); } }
@keyframes floatY { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-16px) rotate(2deg); } }
@keyframes floatPhoto { from { transform: translateY(0) rotate(0); } to { transform: translateY(-12px) rotate(1.500deg); } }
@keyframes sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes swing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(9deg) scale(1.1); } }
@keyframes crownBob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.3); } 40% { transform: scale(1); } 60% { transform: scale(1.200); } }
@keyframes twinkle { 0%, 100% { transform: scale(.2) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-8px); opacity: 1; } }
@keyframes shine { 0%, 55% { background-position: 220% 0, 0 0; } 100% { background-position: -120% 0, 0 0; } }
@keyframes tick { from { transform: translateY(-45%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes trainRun { from { transform: translateX(-110%); } to { transform: translateX(100vw); } }
@keyframes chug { from { transform: translateY(0); } to { transform: translateY(-1.500px); } }
@keyframes puff { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(-46px, -44px) scale(1.800); } }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.900); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.080); opacity: 1; } 100% { transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes wishIn { 0% { opacity: 0; transform: translateY(-24px) scale(.9); } 60% { transform: translateY(4px) scale(1.030); } 100% { opacity: 1; transform: none; } }
@keyframes rise { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(34px, -440px) rotate(24deg); opacity: 0; } }
@keyframes trail { from { opacity: 1; transform: scale(.3) rotate(0); } to { opacity: 0; transform: translateY(22px) scale(1.150) rotate(120deg); } }
@keyframes flyHeart { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(var(--sc)) rotate(var(--rt)); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .hero__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.050fr); }
  .sign { display: none; }
}

@media (max-width: 1100px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    border-radius: 26px; background: rgba(255, 250, 252, .97);
    box-shadow: 0 30px 60px -24px rgba(212, 42, 107, .6), 0 0 0 1px rgba(255, 179, 205, .5);
    opacity: 0; visibility: hidden; translate: 0 -12px;
    transition: opacity .35s, translate .45s var(--ease), visibility .35s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; translate: 0 0; }
  .nav__links li { display: block; }
  .nav__links li + li::before { display: none; }
  .nav__links a { padding: .8em 1.1em; font-size: 1rem; }
  .nav__links a.is-active { background: var(--pink-100); box-shadow: none; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 70px; }
  .hero { background: linear-gradient(180deg, #e3f3c4 0, #e3f3c4 700px, #ffe9f0 100%); }
  .hero__bg { bottom: auto; height: 700px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__art { width: min(76vw, 360px); margin-bottom: 30px; }
  .blooms--doll { bottom: -4%; }
  .blooms--doll .bloom { scale: .6; }
  .hero__castle { right: -7%; width: clamp(130px, 34vw, 210px); }
  .blooms--hero-l, .blooms--hero-r { display: none; }
  .cloud--3 { left: 52%; top: 9%; width: 120px; height: 60px; }
  .cloud--5, .fheart--3 { display: none; }
  .sun { right: 2%; top: 66px; width: 64px; }

  .about__inner { display: block; }
  /* the teddy sits directly above the heading here, so it must not drift */
  .about__teddy { position: static; width: 136px; margin: 0 auto 6px; translate: none !important; }
  .about .heading__crown { display: none; }
  .blooms--about-r { display: none; }
  .when__grid, .rsvp__grid, .wishes__grid { grid-template-columns: minmax(0, 1fr); }
  .rsvp__intro { text-align: center; }
  .envelope { margin-inline: auto; }
  .heading--left { text-align: center; }
  .heading--left p { margin-inline: auto; }
  .rsvp__facts { justify-items: center; }
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
}

@media (max-width: 640px) {
  .container { width: min(1180px, 100% - 28px); }
  .nav { padding: 10px 0; }
  .hero__title { font-size: clamp(2.300rem, 11.500vw, 3.300rem); }
  .countdown__tile { flex: 1; width: auto; max-width: 86px; }
  .infobar { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; border-radius: 26px; }
  .infobar__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .infobar__actions .cal, .infobar__actions .btn { width: 100%; }
  .infobar__actions .btn { padding-inline: .6em; }

  .feature { padding: 38px 12px 22px; }
  .feature::after { inset: 7px; }
  .feature__icon { height: 62px; }
  .feature__icon svg { height: 54px; }
  .feature__icon--line .ico { width: 50px; height: 50px; }
  .feature__icon--photos { width: 86px; }
  .feature p { font-size: .88rem; }
  .feature__bow { width: 54px; top: -17px; }

  .stats li { flex: 1; min-width: 96px; padding: 14px 8px; }
  .stats strong { font-size: 1.800rem; }
  .stats span { font-size: .8rem; }
  .wcard { gap: 14px; }
  .wcard__ico { width: 48px; height: 48px; border-radius: 16px; }
  .map { min-height: 280px; }
  .map iframe { min-height: 264px; }
  .dress__card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .swatches { justify-content: center; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 38vw; }
  .gitem:nth-child(6n+5), .gitem:nth-child(6n) { grid-column: span 2; grid-row: span 1; }
  .gitem { border-width: 4px; border-radius: 20px; }
  .lightbox { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 18px; }
  .lightbox__prev { left: 18px; }
  .lightbox__next { right: 18px; }
  .player { padding: 8px; border-radius: 28px; }
  .player__frame { border-radius: 21px; }
  .player__meta small { display: none; }
  .wall { columns: 1; }
  .comp__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .comp__teddy { right: -6px; bottom: -22px; }
  .corner-bow { width: 54px; top: -16px; }
  .corner-bow--l { left: -10px; }
  .corner-bow--r { right: -10px; }
  .footer__bottom { justify-content: center; text-align: center; }
  .totop { right: 12px; bottom: 12px; width: 46px; height: 46px; }
}

@media (max-width: 380px) {
  .nav .btn--sm { display: none; }
  .pills, .field-row { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001s !important; transition-delay: 0s !important;
  }
  .train, .puff, .twinkle, .rise, .hero__petals { display: none; }
  .px { translate: none; }
}
