/* Faisal & Sana — wedding invitation
   "Glass garden": frosted cards over a soft sage watercolour garden. */

/* ---------- Tokens ---------- */
:root {
  --sage-900: #2f3f2a;
  --sage-800: #3a4f33;
  --sage-700: #47613e;
  --sage-500: #7d9a6f;
  --sage-300: #b9cbab;
  --sage-100: #e7efe0;
  --cream: #fbfaf5;
  --blush: #efc6cc;
  --blush-600: #d99aa5;
  --glass: rgba(255, 255, 255, .30);
  --glass-strong: rgba(255, 255, 255, .55);
  --glass-border: rgba(255, 255, 255, .55);

  --ink: var(--sage-900);
  --ink-soft: var(--sage-800);
  --muted: #4d6245;           /* small meta text; >= 4.5:1 on light glass */
  --hairline: rgba(71, 97, 62, .22);
  --error: #8a3434;

  --f-display: 'Cormorant Garamond', 'Cormorant', Garamond, Georgia, 'Times New Roman', serif;
  --f-sc: 'Cormorant SC', 'Cormorant Garamond', Garamond, Georgia, serif;
  --f-body: 'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;
  --f-script: 'Pinyon Script', 'Snell Roundhand', 'Apple Chancery', cursive;

  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --ease-soft: cubic-bezier(.4, .1, .2, 1);

  --shadow-soft: 0 24px 60px -30px rgba(31, 45, 27, .5), 0 2px 8px -2px rgba(31, 45, 27, .08);
  --shadow-tile: 0 12px 26px -16px rgba(31, 45, 27, .5), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(71, 97, 62, .06);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);

  /* Painted fallbacks used underneath the artwork (and instead of it if an image is missing). */
  --garden-fallback:
    radial-gradient(42% 30% at 14% 18%, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 70%),
    radial-gradient(34% 26% at 88% 10%, rgba(239, 198, 204, .75), rgba(239, 198, 204, 0) 72%),
    radial-gradient(40% 30% at 82% 58%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%),
    radial-gradient(36% 26% at 12% 72%, rgba(239, 198, 204, .5), rgba(239, 198, 204, 0) 72%),
    radial-gradient(46% 32% at 50% 96%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
    linear-gradient(165deg, #c3d4b5 0%, #93b084 42%, #a6bf97 74%, #c9d8bc 100%);
  --hero-fallback:
    radial-gradient(28% 18% at 18% 22%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
    radial-gradient(22% 14% at 84% 16%, rgba(239, 198, 204, .9), rgba(239, 198, 204, 0) 70%),
    radial-gradient(30% 20% at 86% 70%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%),
    radial-gradient(26% 16% at 10% 80%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%),
    radial-gradient(60% 40% at 50% 40%, rgba(185, 203, 171, .9), rgba(185, 203, 171, 0) 75%),
    linear-gradient(180deg, #6f8f62 0%, #5b7a4f 45%, #7d9a6f 100%);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #a9c09b;
}
html.is-locked, html.is-locked body,
html.modal-open, html.modal-open body { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: #a9c09b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--sage-700);
  outline-offset: 3px;
  border-radius: 6px;
}
[tabindex="-1"]:focus { outline: none; }

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

.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .46), rgba(255, 255, 255, .26));
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .55);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: rgba(251, 250, 245, .84); }
}

/* ---------- Fixed garden backdrop + petals ---------- */
.backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  background: url("../assets/bg-garden.webp") center / cover no-repeat, var(--garden-fallback);
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251, 250, 245, .16), rgba(251, 250, 245, .06) 45%, rgba(47, 63, 42, .10));
}

.petals {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.petal {
  position: absolute;
  top: -48px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  opacity: var(--o);
  animation: petal-fall var(--d) linear var(--delay) infinite;
  will-change: transform;
}
.petal i {
  display: block;
  width: 100%;
  height: 100%;
  background: url("../assets/blossom.svg") center / contain no-repeat;
  animation: petal-sway var(--sd) ease-in-out var(--delay) infinite alternate;
}
@keyframes petal-fall {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--drift), calc(100vh + 96px), 0); }
}
@keyframes petal-sway {
  from { transform: translateX(calc(var(--sway) * -1)) rotate(0deg); }
  to   { transform: translateX(var(--sway)) rotate(var(--rot)); }
}

/* ---------- Ornaments ---------- */
.divider {
  position: relative;
  display: block;
  width: 128px;
  height: 18px;
  margin: 18px auto;
  color: var(--sage-500);
  /* fallback: hairline with a tiny diamond */
  background: linear-gradient(90deg, rgba(125, 154, 111, 0), currentColor 28%, currentColor 72%, rgba(125, 154, 111, 0)) center / 100% 1px no-repeat;
}
.divider::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--cream);
  border: 1px solid currentColor;
  transform: rotate(45deg);
}
.has-divider .divider {
  background: currentColor;
  -webkit-mask: url("../assets/divider.svg") center / contain no-repeat;
  mask: url("../assets/divider.svg") center / contain no-repeat;
}
.has-divider .divider::after { display: none; }
.divider--sm { width: 92px; height: 14px; margin: 14px auto 10px; }
.divider--section { width: 184px; height: 20px; margin: 60px auto; color: var(--sage-500); }

.badge {
  display: inline-grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 32% 26%, #648557, var(--sage-700) 58%, #3c5434);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, .38),
    0 0 0 6px rgba(255, 255, 255, .55),
    0 14px 26px -12px rgba(31, 45, 27, .75),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}
.heart {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: currentColor;
}
.has-heart .heart {
  width: 25px; height: 23px;
  border-radius: 0;
  -webkit-mask: url("../assets/heart.svg") center / contain no-repeat;
  mask: url("../assets/heart.svg") center / contain no-repeat;
}

.amp {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  color: var(--sage-700);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 50px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  letter-spacing: .13em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform .2s var(--ease-out), box-shadow .25s var(--ease-soft), background-color .25s, border-color .25s, color .25s, opacity .25s;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #58774c 0%, var(--sage-700) 52%, #3e5636 100%);
  border-color: rgba(47, 63, 42, .35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -2px 0 rgba(0, 0, 0, .08),
    0 2px 4px rgba(47, 63, 42, .16),
    0 14px 26px -14px rgba(47, 63, 42, .8);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .12);
}
.btn--ghost {
  color: var(--sage-800);
  background: rgba(255, 255, 255, .62);
  border-color: rgba(71, 97, 62, .26);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px -12px rgba(31, 45, 27, .45);
}
@media (hover: hover) {
  .btn--primary:hover {
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .3),
      inset 0 -2px 0 rgba(0, 0, 0, .08),
      0 3px 6px rgba(47, 63, 42, .16),
      0 20px 32px -16px rgba(47, 63, 42, .85);
  }
  .btn--ghost:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .82);
    border-color: rgba(71, 97, 62, .4);
  }
}
.btn:active {
  transform: translateY(1px) scale(.985);
  transition-duration: .08s;
}
.btn--primary:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .16), 0 1px 2px rgba(47, 63, 42, .2);
}
.btn--primary:focus-visible {
  outline: 2px solid var(--sage-800);
  outline-offset: 3px;
  box-shadow:
    0 0 0 3px #fff,
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 14px 26px -14px rgba(47, 63, 42, .8);
}
.btn:focus-visible { border-radius: 999px; }
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
  box-shadow: none;
}
.btn--sm {
  --btn-h: 44px;
  padding: 0 18px;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: .01em;
}
.btn--sm .icon { width: 18px; height: 18px; }
.btn--lg { --btn-h: 56px; padding: 0 40px; font-size: 18px; }
.btn--block { width: 100%; }
.btn.is-busy { pointer-events: none; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sage-700);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(71, 97, 62, .45);
  cursor: pointer;
}
.link-btn:hover { text-decoration-color: currentColor; }
/* Inline text buttons: a 44px-tall hit area without moving the text. */
.rsvp-cta__again .link-btn,
.wishes__state .link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -10px 0;
  padding: 0 6px;
  vertical-align: baseline;
}

/* ---------- Cover ---------- */
.cover {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + var(--safe-t)) calc(18px + var(--safe-r)) calc(24px + var(--safe-b)) calc(18px + var(--safe-l));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cover::before,
.cover::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  transition: opacity .9s var(--ease-soft);
}
.cover::before {
  background: url("../assets/bg-garden.webp") center / cover no-repeat, var(--garden-fallback);
}
.cover::after {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(251, 250, 245, 0) 30%, rgba(31, 45, 27, .22) 100%),
    linear-gradient(180deg, rgba(251, 250, 245, .08), rgba(251, 250, 245, 0));
}
.cover { isolation: isolate; }

.cover__card {
  position: relative;
  width: min(100%, 420px);
  margin: auto;
  padding: 50px 28px 42px;
  border-radius: 30px;
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .28));
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.cover__card::before {
  /* fine inner keyline */
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 22px;
  pointer-events: none;
}
.cover.is-ready .cover__card { opacity: 1; transform: none; }
.cover.is-leaving .cover__card {
  opacity: 0;
  transform: scale(.94);
  transition-duration: .55s;
}
.cover.is-leaving::before,
.cover.is-leaving::after { opacity: 0; transition-delay: .15s; }
.cover.is-leaving { pointer-events: none; }

.cover__names {
  margin-top: 24px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(44px, 12.4vw, 54px);
  line-height: 1.02;
  letter-spacing: .01em;
  color: var(--ink);
}
.cover__names > span { display: block; }
.cover__names .amp {
  font-size: 1.3em;
  line-height: .95;
  margin: 2px 0 4px;
}
.cover .divider { margin: 18px auto 16px; color: var(--sage-700); }
.cover__date {
  font-family: var(--f-body);
  font-size: 18px;
  letter-spacing: .08em;
  font-variant-numeric: lining-nums;
  color: var(--ink-soft);
}
.cover__dear {
  margin-top: 18px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 23px;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.cover__line {
  margin-top: 6px;
  font-style: italic;
  font-size: 18.5px;
  color: var(--ink-soft);
}
.cover__dear[hidden] + .cover__line { margin-top: 16px; }
.cover__open { margin-top: 30px; min-width: 210px; }

.spray {
  position: absolute;
  z-index: 3;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.cover .spray { width: clamp(104px, 30vw, 138px); }
.cover .spray--tl { top: -14px; left: -12px; }
.cover .spray--br { bottom: -14px; right: -12px; transform: rotate(180deg); }

/* ---------- Page column ---------- */
.page {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  .page { overflow-x: clip; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  max-height: 1100px;
  padding: calc(36px + var(--safe-t)) 20px 92px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/hero-garden.webp") center 35% / cover no-repeat, var(--hero-fallback);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 74%, rgba(0, 0, 0, .5) 88%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 74%, rgba(0, 0, 0, .5) 88%, transparent 100%);
}
.hero__bg::after {
  /* gentle vignette so the arch reads first */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 48% at 50% 44%, rgba(251, 250, 245, .14), rgba(251, 250, 245, 0) 70%),
              linear-gradient(180deg, rgba(31, 45, 27, .12), rgba(31, 45, 27, 0) 22%);
}
.hero__stage {
  position: relative;
  z-index: 2;
  width: clamp(222px, 60vw, 286px);
}
.arch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: clamp(330px, 56vh, 470px);
  height: clamp(330px, 56svh, 470px);
  padding: 0 18px 30%;
  border-radius: 999px 999px 26px 26px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(250, 252, 247, .3) 70%, rgba(255, 255, 255, .38));
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow:
    0 0 0 1px rgba(71, 97, 62, .16),
    0 36px 70px -34px rgba(20, 32, 16, .6),
    0 10px 30px -12px rgba(20, 32, 16, .18),
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 40px 60px -40px rgba(255, 255, 255, .6);
}
.arch::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(71, 97, 62, .2);
  border-radius: 999px 999px 19px 19px;
  pointer-events: none;
}
.arch__names {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(42px, 11.6vw, 54px);
  line-height: 1.02;
  letter-spacing: .01em;
  color: var(--ink);
}
.arch__names > span { display: block; }
.arch__names .amp { font-size: 1.3em; line-height: .95; margin: 2px 0 4px; }
.arch .divider { color: var(--sage-700); }
.arch__date {
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .3em;
  padding-left: .3em;
  font-variant-numeric: lining-nums;
  color: var(--ink-soft);
}
.hero__bloom {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: 168%;
  max-width: none;
  height: auto;
  transform: translate(-50%, 30%);
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(31, 45, 27, .28));
}
.scroll-cue {
  position: relative;
  z-index: 2;
  margin-top: clamp(60px, 9vh, 92px);
  margin-top: clamp(60px, 9svh, 92px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 10px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}
.scroll-cue__text {
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .32em;
  padding-left: .32em;
  text-shadow: 0 0 10px rgba(255, 255, 255, .9), 0 0 2px rgba(255, 255, 255, .8);
}
.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgba(47, 63, 42, .25);
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 14px;
  background: var(--sage-900);
  animation: cue 2.2s var(--ease-soft) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-14px); }
  70%  { transform: translateY(34px); }
  100% { transform: translateY(34px); }
}

/* ---------- Main card ---------- */
.card-wrap {
  position: relative;
  max-width: 712px;
  margin: -72px auto 0;
  padding: 0 14px calc(120px + var(--safe-b));
}
.card {
  position: relative;
  z-index: 2;
  padding: 72px 22px 56px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .64), rgba(255, 255, 255, .54) 30%, rgba(255, 255, 255, .58));
}
/* The card is ~3,400px tall over animated petals: a live backdrop blur there costs every frame
   for almost no visible gain (the garden behind it is already soft), so it gets a light blur only. */
.card.glass {
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  backdrop-filter: blur(6px) saturate(1.1);
}
.card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 26px;
  pointer-events: none;
}
.card .spray { width: clamp(118px, 33vw, 176px); }
.card .spray--tl { top: -34px; left: -20px; }
.card .spray--br { bottom: -30px; right: -20px; transform: rotate(180deg); }

.sprig {
  position: absolute;
  z-index: 1;
  top: 120px;
  width: clamp(84px, 24vw, 112px);
  height: auto;
  pointer-events: none;
  user-select: none;
}
.sprig--l { left: -26px; }
.sprig--r { right: -26px; top: 46%; transform: scaleX(-1); }
.sprig--l.sprig--low { top: auto; bottom: 18%; }
.sprig--r.sprig--low { top: 22%; }
/* On phones the card fills the width, so only sliced slivers would show: leave them out
   (display:none lazy images are not downloaded either). */
@media (max-width: 559px) {
  .sprig { display: none; }
}

/* ---------- Sections ---------- */
.sec {
  text-align: center;
  scroll-margin-top: 28px;
}
.sec__title {
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: clamp(25px, 6.8vw, 30px);
  line-height: 1.15;
  letter-spacing: .12em;
  padding-left: .12em;
  color: var(--sage-700);
  text-wrap: balance;
}
.label {
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .3em;
  padding-left: .3em;
  color: var(--sage-700);
  margin-bottom: 16px;
}
.label--sm { font-size: 13px; letter-spacing: .24em; padding-left: .24em; margin-bottom: 12px; }

/* Ceremony */
.announce {
  margin-top: 22px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.95;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.announce span { display: block; text-wrap: balance; }
@media (max-width: 380px) {
  .announce { letter-spacing: .13em; }
}
.person { margin-top: 34px; }
.person + .person__amp + .person { margin-top: 6px; }
.person__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(54px, 15vw, 70px);
  line-height: 1;
  letter-spacing: .005em;
  color: var(--ink);
}
.person__parents {
  margin-top: 12px;
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .22em;
  padding-left: .22em;
  color: var(--ink-soft);
}
.person__amp {
  margin-top: 16px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--sage-700);
}

/* Reception */
.intro {
  margin-top: 18px;
  font-style: italic;
  font-size: 19.5px;
  color: var(--ink-soft);
}
.when {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 22px;
  font-variant-numeric: lining-nums;
}
.when__time {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(42px, 11.5vw, 54px);
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.when__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(12px, 4.2vw, 22px);
  width: 100%;
  max-width: 380px;
  margin-top: 20px;
}
.when__side {
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: clamp(13px, 3.7vw, 15.5px);
  letter-spacing: .16em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.when__side:first-child { text-align: right; }
.when__side:last-child { text-align: left; }
.when__rule {
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, rgba(71, 97, 62, 0), rgba(71, 97, 62, .6) 25%, rgba(71, 97, 62, .6) 75%, rgba(71, 97, 62, 0));
}
.when__day {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(60px, 17vw, 74px);
  line-height: .9;
  color: var(--ink);
  padding: 0 2px;
}
.when__year {
  margin-top: 16px;
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .52em;
  padding-left: .52em;
  color: var(--ink-soft);
}

/* Countdown */
.countdown { margin-top: 50px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2.6vw, 14px);
  max-width: 372px;
  margin: 0 auto;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 2px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-tile);
}
.tile::after {
  /* faint centre seam, a nod to flip clocks */
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  top: 44%;
  height: 1px;
  background: linear-gradient(90deg, rgba(71, 97, 62, 0), rgba(71, 97, 62, .08), rgba(71, 97, 62, 0));
}
.tile__num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(32px, 9vw, 42px);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}
.tile__num.is-tick { animation: tick .45s var(--ease-out); }
@keyframes tick {
  from { opacity: .35; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.tile__label {
  margin-top: 8px;
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: clamp(12px, 3.4vw, 13px);
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.countdown__done {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.25;
  color: var(--ink);
}

/* Calendar */
.calendar {
  max-width: 372px;
  margin: 50px auto 0;
  padding: 26px 18px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .5));
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 26px 50px -30px rgba(31, 45, 27, .6), inset 0 1px 0 #fff;
}
.calendar__head { margin-bottom: 16px; }
.calendar__month {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
}
.calendar__year {
  margin-top: 6px;
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .46em;
  padding-left: .46em;
  font-variant-numeric: lining-nums;
  color: var(--sage-700);
}
.calendar__grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.calendar__grid th {
  padding: 0 0 10px;
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--sage-700);
  border-bottom: 1px solid var(--hairline);
}
.calendar__grid tbody::before {
  content: "";
  display: block;
  height: 8px;
}
.calendar__grid td {
  height: 42px;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  font-family: var(--f-body);
  font-size: 17px;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink-soft);
}
.calendar__grid td.is-past { color: rgba(58, 79, 51, .8); }
.cal-heart {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: min(40px, 100%);
  height: auto;
  aspect-ratio: 100 / 92;
  vertical-align: middle;
  color: #fff;
  font-weight: 500;
  filter: drop-shadow(0 5px 7px rgba(47, 63, 42, .35));
  animation: heartbeat 2.8s var(--ease-soft) infinite;
}
.cal-heart::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--sage-700);
}
.has-heart .cal-heart::before {
  inset: 0;
  border-radius: 0;
  -webkit-mask: url("../assets/heart.svg") center / contain no-repeat;
  mask: url("../assets/heart.svg") center / contain no-repeat;
}
.cal-heart__num {
  position: relative;
  font-size: 15.5px;
  line-height: 1;
  margin-top: -3px;
}
@keyframes heartbeat {
  0%, 60%, 100% { transform: scale(1); }
  70% { transform: scale(1.08); }
  80% { transform: scale(.98); }
  90% { transform: scale(1.05); }
}
.calendar__foot {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.calendar__note {
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.calendar__note .dot { padding: 0 .3em; color: var(--sage-500); font-style: normal; }
.calendar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.calendar__actions .btn { flex: 1 1 210px; }

/* RSVP call to action */
.rsvp-cta { margin-top: 50px; }
.rsvp-cta__again {
  margin-top: 16px;
  font-style: italic;
  font-size: 16.5px;
  color: var(--ink-soft);
}

/* Venue */
.venue__name {
  margin-top: 18px;
  margin-bottom: 28px;
}
.venue__name > span { display: block; }
.venue__name [data-bind="venue"] {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(25px, 7vw, 30px);
  line-height: 1.2;
  color: var(--ink);
}
.venue__city {
  margin-top: 6px;
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .32em;
  padding-left: .32em;
  color: var(--ink-soft);
}
.map {
  position: relative;
  max-width: 540px;
  height: 290px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 26px 50px -30px rgba(31, 45, 27, .65);
}
.map::before {
  /* placeholder while the map loads */
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(0deg, rgba(255, 255, 255, .5) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(135deg, var(--sage-100), #d3e0c8);
}
.map iframe {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
  clip-path: inset(0 round 20px);
  background: transparent;
}
.directions { margin-top: 24px; }

/* Guestbook */
.wish-form {
  max-width: 540px;
  margin: 26px auto 0;
  padding: 22px 18px 18px;
  border-radius: 26px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .46));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 26px 50px -32px rgba(31, 45, 27, .6), inset 0 1px 0 #fff;
}
.field {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 7px;
  padding: 0;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink-soft);
}
legend.field__label { display: block; }
.field__hint { font-weight: 400; font-style: italic; color: var(--muted); margin-right: auto; }
.field__count {
  font-weight: 400;
  font-size: 13.5px;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--muted);
}
.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(71, 97, 62, .28);
  border-radius: 14px;
  background: rgba(255, 255, 255, .8);
  font-family: var(--f-body);
  font-size: 17.5px;
  line-height: 1.45;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(31, 45, 27, .05);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: #66795d; opacity: 1; }
.input:hover { border-color: rgba(71, 97, 62, .42); }
.input:focus {
  outline: none;
  border-color: var(--sage-700);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(71, 97, 62, .16);
}
.input[aria-invalid="true"] { border-color: var(--error); }
.input--area { min-height: 120px; resize: vertical; }
.wish-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border: 1px solid rgba(71, 97, 62, .26);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  color: var(--sage-700);
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 8px 16px -12px rgba(31, 45, 27, .5);
  transition: transform .2s var(--ease-out), background-color .2s, border-color .2s;
}
.icon-btn .icon { width: 22px; height: 22px; }
@media (hover: hover) {
  .icon-btn:hover { background: #fff; border-color: rgba(71, 97, 62, .42); transform: translateY(-1px); }
}
.icon-btn:active { transform: scale(.93) rotate(-6deg); transition-duration: .08s; }
.icon-btn:focus-visible { border-radius: 16px; }
.icon-btn.is-spark .icon { animation: spark .6s var(--ease-out); }
@keyframes spark {
  0% { transform: rotate(0) scale(1); }
  40% { transform: rotate(-18deg) scale(1.15); }
  100% { transform: rotate(0) scale(1); }
}
.form-status {
  min-height: 0;
  margin-top: 0;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
  color: var(--ink-soft);
}
.form-status:not(:empty) { margin-top: 14px; }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--sage-800); }

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wishes {
  max-width: 540px;
  margin: 30px auto 0;
}
.wishes__state {
  font-style: italic;
  font-size: 17.5px;
  color: var(--ink-soft);
}
.wishes__state .link-btn { font-style: normal; margin-left: .3em; }
.wishes.is-loading .wishes__state::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: dots 1.4s steps(4, end) infinite;
}
@keyframes dots {
  0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; }
}
.wishes__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.wishes__list:empty { display: none; }
.wish {
  padding: 16px 18px 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .5));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 14px 28px -22px rgba(31, 45, 27, .6), inset 0 1px 0 #fff;
}
.wish.is-new { animation: wish-in .6s var(--ease-out); }
@keyframes wish-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.wish__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.wish__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.wish__time {
  flex: none;
  font-size: 14px;
  font-variant-numeric: lining-nums;
  color: var(--muted);
  white-space: nowrap;
}
.wish__msg {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
#wishes-more { margin-top: 16px; }

/* Closing */
.closing { text-align: center; }
.closing__line {
  max-width: 19em;
  margin: 0 auto;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(25px, 6.8vw, 31px);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}
.closing__signoff {
  margin-top: 14px;
  font-family: var(--f-script);
  font-size: 30px;
  line-height: 1.3;
  color: var(--sage-700);
}
.closing__mark {
  margin-top: 34px;
  font-family: var(--f-sc);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .26em;
  padding-left: .26em;
  font-variant-numeric: lining-nums;
  color: var(--ink-soft);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 16.5px;
  text-decoration: none;
  color: var(--sage-700);
  transition: background-color .2s;
}
.share-btn .icon { width: 18px; height: 18px; }
.share-btn:hover { background: rgba(255, 255, 255, .5); }
.share-btn:focus-visible { border-radius: 999px; }

/* ---------- Music button ---------- */
.music-btn {
  position: fixed;
  z-index: 30;
  right: calc(16px + var(--safe-r));
  bottom: calc(16px + var(--safe-b));
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 32% 26%, #628351, var(--sage-700) 60%, #3b5233);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .28), 0 14px 28px -12px rgba(20, 32, 16, .75), inset 0 1px 0 rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: transform .2s var(--ease-out), opacity .4s;
  animation: music-in .6s var(--ease-out) both;
}
.music-btn:active { transform: scale(.93); }
.music-btn:focus-visible { outline: 2px solid var(--sage-900); outline-offset: 4px; border-radius: 50%; }
@keyframes music-in {
  from { opacity: 0; transform: translateY(12px) scale(.9); }
  to   { opacity: 1; transform: none; }
}
.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.eq i {
  display: block;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: 50% 100%;
  transform: scaleY(var(--h));
}
.eq i:nth-child(1) { --h: .4;  --t: .9s;  --dl: -.2s; }
.eq i:nth-child(2) { --h: .75; --t: .7s;  --dl: -.5s; }
.eq i:nth-child(3) { --h: .55; --t: 1.1s; --dl: -.1s; }
.eq i:nth-child(4) { --h: .3;  --t: .8s;  --dl: -.35s; }
.music-btn.is-playing .eq i { animation: eq var(--t) ease-in-out var(--dl) infinite alternate; }
@keyframes eq {
  from { transform: scaleY(.22); }
  to   { transform: scaleY(1); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  z-index: 70;
  left: 16px;
  right: 16px;
  bottom: calc(86px + var(--safe-b));
  width: fit-content;
  max-width: 440px;
  margin: 0 auto;
  padding: 12px 22px;
  border-radius: 20px;
  background: rgba(47, 63, 42, .94);
  color: #fff;
  font-size: 16.5px;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 18px 36px -16px rgba(20, 32, 16, .7);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s var(--ease-soft), transform .35s var(--ease-out);
}
.toast:empty { padding: 0; }
.toast.is-shown { opacity: 1; transform: none; }

/* ---------- RSVP modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(14px + var(--safe-t)) calc(14px + var(--safe-r)) calc(14px + var(--safe-b)) calc(14px + var(--safe-l));
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 45, 27, .44);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s var(--ease-soft);
}
.modal__panel {
  position: relative;
  width: min(100%, 460px);
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 32px 24px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fdfcf8, var(--cream));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 50px 90px -40px rgba(12, 22, 9, .75), 0 2px 8px rgba(12, 22, 9, .12);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .3s var(--ease-soft), transform .4s var(--ease-out);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: #fff;
  color: var(--sage-800);
  cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease-out);
}
.modal__close .icon { width: 18px; height: 18px; }
.modal__close:hover { background: var(--sage-100); }
.modal__close:active { transform: scale(.92); }
.modal__close:focus-visible { border-radius: 50%; }
.modal__title {
  padding-right: 48px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 31px;
  line-height: 1.12;
  color: var(--ink);
}
.modal__desc {
  margin-top: 8px;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.modal__notice {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(239, 198, 204, .32);
  border: 1px solid rgba(217, 154, 165, .55);
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
}
.rsvp-form { margin-top: 22px; }
.rsvp-form .input { background: #fff; }

.choice { display: grid; gap: 10px; }
.choice legend { margin-bottom: 9px; }
.choice__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 12px 16px;
  border: 1.5px solid rgba(71, 97, 62, .2);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s var(--ease-out);
}
.choice__card:hover { border-color: rgba(71, 97, 62, .42); }
.choice__card:active { transform: scale(.99); }
.choice__card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(71, 97, 62, .38);
  border-radius: 50%;
  color: transparent;
  background: #fff;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease-out);
}
.choice__mark svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.choice__text {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
}
.choice__card.is-checked {
  border-color: var(--sage-700);
  background: var(--sage-100);
  box-shadow: 0 0 0 3px rgba(71, 97, 62, .12);
}
.choice__card.is-checked .choice__mark {
  border-color: var(--sage-700);
  background: var(--sage-700);
  color: #fff;
  transform: scale(1.04);
}
.choice__card--no.is-checked { border-color: #7a6a6c; background: #f6eff0; box-shadow: 0 0 0 3px rgba(122, 106, 108, .12); }
.choice__card--no.is-checked .choice__mark { border-color: #6f5f61; background: #6f5f61; }
.choice__card input:focus-visible ~ .choice__mark {
  outline: 2px solid var(--sage-700);
  outline-offset: 3px;
}

.stepper-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.stepper-field .field__label { margin: 0; }
.stepper {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
}
.stepper__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-800);
  cursor: pointer;
  transition: background-color .2s, transform .15s var(--ease-out), opacity .2s;
}
.stepper__btn:hover { background: #d9e5cf; }
.stepper__btn:active { transform: scale(.9); }
.stepper__btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.stepper__btn:focus-visible { border-radius: 50%; }
.stepper__btn .icon { width: 18px; height: 18px; stroke-width: 2; }
.stepper__value {
  min-width: 2.4ch;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}
.rsvp-form .form-status:not(:empty) { margin: 0 0 14px; }
#rsvp-submit { margin-top: 6px; }

.rsvp-done {
  padding: 18px 4px 4px;
  text-align: center;
}
.rsvp-done .badge { margin-bottom: 22px; }
.rsvp-done .modal__title { padding: 0; }
.rsvp-done .modal__desc { margin: 10px auto 24px; max-width: 22em; }

/* ---------- Reveal on scroll (only when JS opts in) ---------- */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.reveal-on [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .card { padding: 84px 48px 64px; }
  .wish-form { padding: 26px 24px 22px; }
  .modal__panel { padding: 36px 32px 28px; }
}
@media (min-width: 768px) {
  .hero__bg {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 74%, rgba(0, 0, 0, .5) 88%, transparent 100%),
                        linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, #000 0%, #000 74%, rgba(0, 0, 0, .5) 88%, transparent 100%),
                linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-composite: intersect;
  }
  .card { padding: 92px 64px 70px; border-radius: 38px; }
  .card::before { border-radius: 30px; }
  .sprig { width: 124px; }
  .sprig--l { left: -30px; }
  .sprig--r { right: -30px; }
  .map { height: 330px; }
  .cover__card { padding: 56px 40px 46px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .petals { display: none; }
}
