:root {
  --ink: #49384f;
  --soft-ink: #6e5d71;
  --paper: #fffdf8;
  --butter: #ffe39a;
  --hydrangea: #a68bcd;
  --lavender: #e6d7f4;
  --purple: #7952a3;
  --orange: #e99745;
  --leaf: #789265;
  --wicker: #bd8759;
  --cream: #fbf2df;
  --bug-size: clamp(78px, 6.3vw, 104px);
  --display: Georgia, "Times New Roman", serif;
  --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --shadow: 0 28px 70px rgb(91 71 56 / 14%);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

html.palette-open { overflow: hidden; }
html.gsap-ready { scroll-snap-type: none; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .23;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
}

a { color: inherit; }

.scroll-meter {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgb(255 255 255 / 55%);
}

.scroll-meter span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--purple), var(--hydrangea), var(--butter), var(--orange));
}

.masthead {
  position: fixed;
  z-index: 40;
  top: 20px;
  right: clamp(18px, 5vw, 70px);
  left: clamp(18px, 5vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.wordmark,
.masthead__rsvp {
  min-height: 44px;
  border: 1px solid rgb(82 69 61 / 12%);
  border-radius: 999px;
  background: rgb(255 253 247 / 68%);
  box-shadow: 0 6px 18px rgb(91 71 56 / 8%);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  text-decoration: none;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  font-family: var(--display);
  font-size: .93rem;
  font-style: italic;
}

.wordmark__bug {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 2px solid #583d35;
  border-radius: 50%;
  color: var(--orange);
  font-size: 10px;
  line-height: 1;
}

.masthead__rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
  padding: 8px 12px;
  color: var(--purple);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead__rsvp-label { display: block; }
.masthead__rsvp-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene-nav {
  position: fixed;
  z-index: 41;
  top: 50%;
  right: 25px;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
}

.scene-nav a {
  position: relative;
  display: grid;
  width: 10px;
  height: 10px;
  border: 1px solid rgb(76 68 63 / 66%);
  border-radius: 50%;
  background: rgb(255 255 255 / 64%);
  transition: transform .2s ease, background .2s ease;
}

.scene-nav a::after {
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: var(--orange);
  content: "";
  opacity: 0;
  transition: opacity .2s ease;
}

.scene-nav a.is-active,
.scene-nav a:hover { transform: scale(1.45); }

.scene-nav a.is-active::after,
.scene-nav a:hover::after { opacity: 1; }

.scene-nav span {
  position: absolute;
  top: 50%;
  right: 20px;
  width: max-content;
  padding: 4px 7px;
  border-radius: 6px;
  transform: translateY(-50%);
  opacity: 0;
  background: rgb(60 52 47 / 78%);
  color: #fffdf9;
  font-size: .65rem;
  font-weight: 700;
  pointer-events: none;
  transition: opacity .18s ease;
}

.scene-nav a:hover span,
.scene-nav a:focus-visible span { opacity: 1; }

.scene {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(90px, 9vh, 116px) clamp(26px, 6vw, 100px) clamp(56px, 7vh, 80px);
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
  scroll-margin-top: 0;
}

.scene::after {
  position: absolute;
  z-index: -1;
  inset: 13px;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 30px;
  content: "";
  pointer-events: none;
}

.scene-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, 100%);
  min-width: 0;
  margin: auto;
}

.scene-inner > * { min-width: 0; }

.scene-wash { position: absolute; z-index: -3; inset: 0; }

.scene-wash--sunrise {
  background:
    radial-gradient(circle at 82% 24%, rgb(255 235 166 / 72%) 0 5%, transparent 20%),
    radial-gradient(circle at 76% 75%, rgb(174 143 208 / 34%) 0 11%, transparent 30%),
    linear-gradient(132deg, #fff9e8, #fff0c9 51%, #ede0f5);
}

.scene-wash--lavender {
  background:
    radial-gradient(circle at 15% 79%, rgb(251 208 143 / 58%) 0 8%, transparent 25%),
    radial-gradient(circle at 70% 25%, rgb(255 254 245 / 70%) 0 11%, transparent 27%),
    linear-gradient(135deg, #eee0f6, #e6d9f2 52%, #fff0cf);
}

.scene-wash--lilac {
  background:
    radial-gradient(circle at 74% 30%, rgb(255 242 195 / 64%) 0 9%, transparent 24%),
    radial-gradient(circle at 20% 76%, rgb(161 121 203 / 30%) 0 11%, transparent 29%),
    linear-gradient(135deg, #f2e9fb, #e8dcf5 56%, #ffebca);
}

.scene-wash--cream {
  background:
    radial-gradient(circle at 21% 20%, rgb(191 168 225 / 44%) 0 8%, transparent 24%),
    radial-gradient(circle at 80% 74%, rgb(251 204 184 / 47%) 0 13%, transparent 31%),
    linear-gradient(135deg, #fffdf4, #fff0cd 55%, #ffddba);
}

.scene-wash--dusk {
  background:
    radial-gradient(circle at 74% 30%, rgb(255 246 202 / 64%) 0 7%, transparent 23%),
    radial-gradient(circle at 20% 76%, rgb(209 187 230 / 46%) 0 12%, transparent 32%),
    linear-gradient(135deg, #e9def4, #f4e6d3 56%, #ffebba);
}

.kicker {
  margin: 0 0 15px;
  color: var(--purple);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1, h2 {
  margin-bottom: 21px;
  font-family: var(--display);
  font-weight: 500;
  line-height: .97;
  letter-spacing: -.05em;
}

h1 { font-size: clamp(3.5rem, 6.7vw, 6.7rem); }
h2 { font-size: clamp(2.8rem, 4.55vw, 4.7rem); }

h1 em { color: var(--purple); font-style: italic; }

.intro,
.story-copy > p:not(.hand-note),
.details-copy > p:not(.kicker),
.rsvp-copy > p:not(.kicker) {
  max-width: 470px;
  color: var(--soft-ink);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.welcome-layout {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(20px, 4vw, 70px);
}

.welcome-copy { max-width: 590px; }

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding: 9px 14px;
  border: 1px solid rgb(87 72 64 / 13%);
  border-radius: 999px;
  background: rgb(255 253 246 / 62%);
  box-shadow: 0 12px 30px rgb(105 81 65 / 9%);
  color: #5e5751;
  font-size: .8rem;
  max-width: 100%;
  text-align: left;
}

.date-chip__text { display: grid; gap: 1px; }
.date-chip strong { display: block; font-size: .83rem; }
.date-chip time { display: block; }

.date-chip__dot {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid #56443e;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: inset 0 0 0 4px #ffd58f;
}

.hero-visual,
.story-visual,
.date-visual,
.rsvp-visual {
  position: relative;
  transform: translate3d(0, var(--reveal-y, 0), 0) rotate(var(--reveal-rotate, 0));
  opacity: var(--reveal-opacity, 1);
  transition: transform .85s cubic-bezier(.2,.8,.2,1), opacity .7s ease;
  will-change: transform;
}

.hero-visual {
  width: 100%;
  max-width: 665px;
  justify-self: end;
}

.garden-art { position: relative; width: 100%; will-change: transform; }

.garden-art > img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 24px rgb(97 76 58 / 17%));
}

.hero-visual__sun {
  position: absolute;
  z-index: -1;
  top: 7%;
  right: 6%;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 48% 52% 47% 53% / 51% 44% 56% 49%;
  background: rgb(255 255 255 / 39%);
  box-shadow: 0 0 0 23px rgb(255 255 255 / 10%), 0 0 0 53px rgb(255 255 255 / 8%);
}

.scroll-prompt {
  position: relative;
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin-top: 20px;
  align-items: center;
  gap: 9px;
  color: rgb(76 68 63 / 70%);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-prompt__line {
  display: block;
  width: 34px;
  height: 1px;
  flex-shrink: 0;
  background: currentColor;
}

.story-layout,
.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(35px, 8vw, 130px);
}

.story-copy { order: 2; max-width: 495px; }
.story-visual { order: 1; width: 100%; max-width: 650px; justify-self: end; }

.hand-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 23px;
  padding: 8px 12px;
  border-left: 2px solid var(--hydrangea);
  color: #7b648e;
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: italic;
}

.hand-note span { color: var(--orange); font-style: normal; }

.date-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(24px, 6vw, 110px);
}

.date-visual { width: 100%; max-width: 690px; }
.date-copy { max-width: 440px; }

.calendar-card {
  position: relative;
  display: grid;
  width: min(310px, 100%);
  margin-top: 27px;
  padding: 23px 27px 21px;
  border: 1px solid rgb(91 83 111 / 13%);
  border-radius: 30px;
  background: rgb(255 255 255 / 53%);
  box-shadow: var(--shadow);
}

.calendar-card__day {
  color: var(--purple);
  font-family: var(--display);
  font-size: clamp(5.7rem, 10vw, 7.6rem);
  line-height: .73;
}

.calendar-card__month { margin-top: 13px; font-family: var(--display); font-size: 1.75rem; }
.calendar-card__year { color: var(--soft-ink); font-size: .7rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }

.details-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) minmax(0, .48fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}

.details-copy { max-width: 420px; }

.detail-list { display: grid; gap: 10px; }

.detail-card {
  position: relative;
  display: grid;
  min-height: 94px;
  padding: 17px 42px 16px 68px;
  border: 1px solid rgb(91 74 60 / 11%);
  border-radius: 20px;
  background: rgb(255 255 255 / 61%);
  box-shadow: 0 13px 30px rgb(95 75 57 / 8%);
}

.detail-card__icon {
  position: absolute;
  top: 23px;
  left: 19px;
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 50% 50% 50% 9px;
  background: #e7d9f5;
  color: #7952a3;
  font-size: 1.04rem;
  transform: rotate(-14deg);
}

.detail-card:nth-child(2) .detail-card__icon { background: #ffe5b6; color: #8a571f; }
.detail-card:nth-child(3) .detail-card__icon { background: #e9dfef; color: #8871a3; }

.detail-card__label { color: var(--soft-ink); font-size: .65rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.detail-card strong { margin-top: 3px; font-size: .84rem; }
.detail-card strong { overflow-wrap: anywhere; }
.detail-card__note {
  margin-top: 4px;
  color: var(--soft-ink);
  font-size: .8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.detail-card--location {
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.detail-card--location:hover { border-color: var(--hydrangea); background: rgb(255 253 247 / 86%); }
.detail-card__action {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: var(--purple);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.detail-card__action > span:last-child { flex: none; }
.palette-trigger__swatches { display: flex; flex: none; align-items: center; }
.palette-trigger__swatches i { width: 12px; height: 12px; border: 1px solid var(--paper); border-radius: 50%; background: #f77f9b; }
.palette-trigger__swatches i + i { margin-left: -4px; background: #ffc379; }
.palette-trigger__swatches i:last-child { background: #f9d774; }

.palette-dialog {
  width: min(880px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgb(121 82 163 / 22%);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 24px 100px rgb(49 31 59 / 30%);
  color: var(--ink);
}
.palette-dialog::backdrop { background: rgb(49 31 59 / 52%); backdrop-filter: blur(6px); }
.palette-dialog__content { padding: clamp(18px, 4vw, 32px); }
.palette-dialog__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.palette-dialog__header .kicker { margin-bottom: 8px; }
.palette-dialog__header h2 { margin-bottom: 16px; font-size: clamp(1.85rem, 5vw, 2.8rem); line-height: 1.08; }
.palette-dialog__header form { flex: none; margin: 0; }
.palette-dialog__close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 10px;
  place-items: center;
  border: 1px solid rgb(121 82 163 / 20%);
  border-radius: 50%;
  background: var(--cream);
  color: var(--purple);
  cursor: pointer;
}
.palette-dialog__close:hover { background: var(--lavender); }
.palette-dialog__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.palette-dialog__note { margin-bottom: 18px; color: var(--soft-ink); font-size: .9rem; }
.palette-dialog__note strong { color: var(--purple); }
.palette-dialog__image-link { display: block; border: 1px solid rgb(121 82 163 / 12%); border-radius: 12px; overflow: hidden; }
.palette-dialog__image-link img { display: block; width: 100%; height: auto; }
.palette-dialog__hint { margin: 10px 0 20px; color: var(--soft-ink); font-size: .75rem; text-align: center; }
.palette-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 8px; margin: 0; padding: 0; list-style: none; }
.palette-swatches li { display: grid; justify-items: center; gap: 6px; font-size: .76rem; font-weight: 700; text-align: center; }
.palette-swatches span { width: 38px; height: 38px; border: 1px solid rgb(73 56 79 / 12%); border-radius: 50%; background: var(--swatch); }

.stroller-sketch {
  position: relative;
  width: min(220px, 18vw);
  height: 205px;
  justify-self: end;
  filter: drop-shadow(0 17px 17px rgb(97 76 58 / 14%));
}

.stroller-sketch__hood,
.stroller-sketch__basket,
.stroller-sketch__handle,
.stroller-sketch__wheel,
.stroller-sketch__flower { position: absolute; display: block; }

.stroller-sketch__hood {
  top: 28px;
  right: 11px;
  width: 135px;
  height: 110px;
  border: 9px solid var(--wicker);
  border-bottom: 0;
  border-radius: 132px 132px 0 0;
  background: #ecd4a7;
}

.stroller-sketch__basket {
  right: 11px;
  bottom: 36px;
  width: 164px;
  height: 78px;
  border: 8px solid var(--wicker);
  border-radius: 16px 16px 52px 52px;
  background: repeating-linear-gradient(0deg, #d9ad78 0 4px, #e9c696 4px 8px);
  transform: rotate(-4deg);
}

.stroller-sketch__handle {
  top: 93px;
  left: 0;
  width: 65px;
  height: 74px;
  border-top: 8px solid var(--wicker);
  border-left: 8px solid var(--wicker);
  border-radius: 30px 0 0 0;
  transform: rotate(-9deg);
}

.stroller-sketch__wheel {
  bottom: 5px;
  width: 46px;
  aspect-ratio: 1;
  border: 7px solid #d4ad77;
  border-radius: 50%;
  background: #f3d6a6;
  box-shadow: inset 0 0 0 7px #e7c38d;
}

.stroller-sketch__wheel--left { left: 50px; }
.stroller-sketch__wheel--right { right: 5px; }

.stroller-sketch__flower {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe8aa 0 16%, transparent 17%), radial-gradient(circle at 50% 7%, #b598da 0 29%, transparent 31%), radial-gradient(circle at 92% 50%, #b598da 0 29%, transparent 31%), radial-gradient(circle at 50% 92%, #b598da 0 29%, transparent 31%), radial-gradient(circle at 8% 50%, #b598da 0 29%, transparent 31%);
}

.stroller-sketch__flower--one { top: 67px; right: 69px; }
.stroller-sketch__flower--two { top: 84px; right: 34px; transform: scale(.8); }
.stroller-sketch__flower--three { top: 58px; right: 22px; transform: scale(.7); }

.rsvp-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.rsvp-copy { max-width: 490px; }
.rsvp-copy strong { color: #7c657f; }
.rsvp-visual { width: min(100%, 380px); justify-self: center; }

.rsvp-button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 15px;
  padding: 14px 16px 14px 22px;
  border-radius: 999px;
  background: var(--purple);
  box-shadow: 0 14px 25px rgb(114 77 157 / 25%);
  color: white;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.rsvp-button:hover { transform: translateY(-3px); background: #67458e; box-shadow: 0 18px 31px rgb(114 77 157 / 35%); }

.rsvp-button span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 24%);
  font-size: 1rem;
}

.rsvp-help { margin-top: 13px !important; color: rgb(119 107 100 / 76%) !important; font-size: .74rem !important; }

.depth-layer { will-change: transform; }

/* Static perches remain visible with no JavaScript or reduced motion.
   In flight mode a single fixed character replaces all five copies. */
.bug-perch { position: absolute; z-index: 3; width: 1px; height: 1px; pointer-events: none; }
.bug-perch > img {
  position: absolute;
  display: block;
  width: var(--bug-size);
  max-width: none;
  height: auto;
  transform: translate(-50%, -84%);
  filter: drop-shadow(0 6px 4px rgb(73 56 79 / 15%));
}
.bug-perch--welcome { top: 43%; left: 80%; }
.bug-perch--story { top: 56%; left: 38%; }
.bug-perch--date { top: 28%; left: 82%; }
.bug-perch--details { top: 27%; left: 61%; }
.bug-perch--rsvp { top: 36%; left: 57%; }
.flight-ready .bug-perch > img { visibility: hidden; }

.flight-layer { position: fixed; z-index: 30; inset: 0; overflow: hidden; pointer-events: none; visibility: hidden; }
.flight-ready .flight-layer { visibility: visible; }
.flight-guide {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--bug-size);
  height: var(--bug-size);
  transform-origin: 50% 50%;
  will-change: transform;
  filter: drop-shadow(0 8px 5px rgb(73 56 79 / 17%));
}
.flight-guide__facing { position: relative; width: 100%; height: 100%; }
.flight-guide[data-facing="left"] .flight-guide__facing { transform: scaleX(-1); }
.flight-guide img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; }
.flight-guide__wings {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  transform: scale(.18);
  transform-origin: 47% 48%;
  transition: transform .22s ease-out, opacity .16s ease-out;
}
.flight-guide[data-state="flying"] .flight-guide__wings { opacity: .94; transform: scale(1); }
.flight-guide__wings i {
  position: absolute;
  top: 5%;
  left: -15%;
  width: 70%;
  height: 44%;
  border: 1px solid rgb(138 103 74 / 68%);
  border-radius: 85% 55% 15% 55%;
  background:
    repeating-conic-gradient(from 14deg at 94% 88%, transparent 0deg 13deg, rgb(169 139 198 / 26%) 14deg 15deg, transparent 16deg 24deg),
    linear-gradient(135deg, rgb(255 253 241 / 96%), rgb(236 216 248 / 85%));
  box-shadow: inset 0 0 8px rgb(255 255 255 / 60%);
  transform-origin: 95% 90%;
  animation: wing-flutter .14s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.flight-guide__wings i:nth-child(2) { top: -8%; left: 22%; width: 45%; height: 51%; animation-delay: -.07s; }
.flight-guide[data-state="flying"] .flight-guide__wings i { animation-play-state: running; }
.flight-trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity .18s ease; }
.flight-trail.is-visible { opacity: .5; }
.flight-trail path { fill: none; stroke: var(--purple); stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 2 8; }

@keyframes wing-flutter {
  from { transform: rotate(-11deg) scaleY(.9); }
  to { transform: rotate(16deg) scaleY(.32); }
}

.soft-orb {
  position: absolute;
  z-index: -1;
  width: clamp(110px, 17vw, 250px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(1px);
}

.soft-orb--one { top: 16%; right: 19%; background: rgb(255 255 255 / 40%); }
.soft-orb--two { bottom: -7%; left: 34%; background: rgb(182 153 217 / 18%); }

.petal-drift { position: absolute; z-index: 0; inset: 0; pointer-events: none; }

.petal-drift i {
  position: absolute;
  display: block;
  width: clamp(9px, 1.4vw, 18px);
  aspect-ratio: 1.25 / .75;
  border: 1px solid rgb(108 78 100 / 17%);
  border-radius: 95% 5% 90% 10%;
  background: linear-gradient(135deg, #f7d599, #bd9cde);
  box-shadow: 2px 3px 0 rgb(83 67 61 / 9%);
  animation: drift 5s ease-in-out infinite alternate;
}

.petal-drift i:nth-child(1) { top: 21%; left: 9%; transform: rotate(31deg); }
.petal-drift i:nth-child(2) { top: 31%; left: 53%; width: 12px; transform: rotate(-21deg); animation-delay: -1.4s; }
.petal-drift i:nth-child(3) { right: 10%; bottom: 22%; transform: rotate(99deg); animation-delay: -3.1s; }
.petal-drift i:nth-child(4) { bottom: 16%; left: 26%; width: 10px; transform: rotate(11deg); animation-delay: -2.5s; }
.petal-drift i:nth-child(5) { top: 15%; right: 30%; width: 10px; transform: rotate(69deg); animation-delay: -.6s; }
.petal-drift--hero i:nth-child(1) { top: 27%; left: 48%; }
.petal-drift--story i:nth-child(3) { right: 44%; bottom: 27%; }
.petal-drift--date i:nth-child(2) { left: 72%; top: 18%; }
.petal-drift--rsvp i:nth-child(1) { left: 13%; top: 26%; }

.leaf-shadow {
  position: absolute;
  z-index: -1;
  width: min(420px, 34vw);
  height: min(210px, 18vw);
  border-radius: 100% 0 100% 0;
  background: rgb(100 135 82 / 13%);
  transform: rotate(-22deg);
}

.leaf-shadow::before,
.leaf-shadow::after {
  position: absolute;
  width: 47%;
  height: 58%;
  border-radius: 100% 0 100% 0;
  background: inherit;
  content: "";
}

.leaf-shadow::before { top: -37%; left: 36%; transform: rotate(54deg); }
.leaf-shadow::after { right: -13%; bottom: -20%; transform: rotate(-34deg); }
.leaf-shadow--hero { right: -7%; bottom: 5%; }
.leaf-shadow--details { top: 10%; left: -7%; }

.garden-curve {
  position: absolute;
  z-index: -1;
  right: -6%;
  bottom: -18%;
  left: -6%;
  height: 34%;
  border-radius: 50% 50% 0 0 / 45% 45% 0 0;
}

.garden-curve--one { background: #b7d5ad; transform: rotate(-2deg); }
.garden-curve--two { bottom: -28%; height: 39%; background: #8db58a; transform: rotate(2deg); }

.butterfly-mark {
  position: absolute;
  z-index: 0;
  width: 38px;
  height: 32px;
  border-radius: 70% 30% 70% 30%;
  background: rgb(255 255 255 / 54%);
  transform: rotate(33deg);
}

.butterfly-mark::after {
  position: absolute;
  right: -16px;
  bottom: -8px;
  width: 30px;
  height: 24px;
  border-radius: 30% 70% 30% 70%;
  background: inherit;
  content: "";
}

.butterfly-mark--one { top: 23%; right: 18%; }
.butterfly-mark--two { bottom: 23%; left: 16%; transform: scale(.65) rotate(-32deg); }

.hydrangea-dots { position: absolute; z-index: 0; right: 5%; bottom: 9%; width: 150px; height: 120px; }
.hydrangea-dots i { position: absolute; width: 48px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff5be 0 9%, transparent 10%), radial-gradient(circle at 50% 8%, #c1a4e4 0 25%, transparent 26%), radial-gradient(circle at 92% 50%, #c1a4e4 0 25%, transparent 26%), radial-gradient(circle at 50% 92%, #c1a4e4 0 25%, transparent 26%), radial-gradient(circle at 8% 50%, #c1a4e4 0 25%, transparent 26%); opacity: .74; }
.hydrangea-dots i:nth-child(1) { top: 0; left: 0; }.hydrangea-dots i:nth-child(2) { top: 20px; left: 42px; transform: scale(.85); }.hydrangea-dots i:nth-child(3) { top: 52px; left: 12px; transform: scale(.67); }.hydrangea-dots i:nth-child(4) { top: 57px; left: 75px; transform: scale(.78); }

.glow-specks { position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.glow-specks i { position: absolute; width: 5px; aspect-ratio: 1; border-radius: 50%; background: #fff0a0; box-shadow: 0 0 13px 4px rgb(255 238 156 / 55%); animation: blink 3s ease-in-out infinite; }
.glow-specks i:nth-child(1) { top: 23%; left: 17%; }.glow-specks i:nth-child(2) { top: 42%; right: 15%; animation-delay: -1s; }.glow-specks i:nth-child(3) { bottom: 20%; left: 41%; animation-delay: -2.2s; }.glow-specks i:nth-child(4) { top: 18%; right: 38%; animation-delay: -.6s; }.glow-specks i:nth-child(5) { bottom: 32%; right: 7%; animation-delay: -1.7s; }

.reveal {
  --reveal-y: 0px;
  --reveal-rotate: 0deg;
  --reveal-opacity: 1;
  opacity: var(--reveal-opacity);
  transform: translate3d(0, var(--reveal-y), 0) rotate(var(--reveal-rotate));
  transition: transform .75s cubic-bezier(.2,.8,.2,1), opacity .7s ease;
}
.js-reveals .reveal:not(.is-visible) { --reveal-y: 28px; --reveal-opacity: 0; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 5px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 23px;
  background: #5e476b;
  color: #fffaf0;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}
.site-footer span { color: #ffe2a6; }

@keyframes drift { 0% { margin-top: 0; margin-left: 0; } 100% { margin-top: 18px; margin-left: 12px; } }
@keyframes blink { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.25); } }

@media (max-width: 1099px) {
  :root { --bug-size: 64px; }
  .scene { min-height: auto; padding: 104px 28px 76px; }
  .scene::after { inset: 9px; border-radius: 24px; }
  .scene-nav { display: none; }
  .welcome-layout, .story-layout, .date-layout, .details-layout, .rsvp-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-visual, .story-visual, .date-visual { width: min(550px, 100%); justify-self: center; }
  .hero-visual { order: 2; }
  .hero-visual { aspect-ratio: 1; }
  .hero-visual .garden-art { height: 100%; }
  .hero-visual .garden-art > img { height: 100%; object-fit: cover; object-position: right center; }
  .bug-perch--welcome { left: 71%; }
  .bug-perch--date { top: 18%; }
  .welcome-copy, .story-copy, .date-copy, .details-copy, .rsvp-copy { max-width: 610px; margin: 0 auto; text-align: center; }
  .intro, .story-copy > p:not(.hand-note), .details-copy > p:not(.kicker), .rsvp-copy > p:not(.kicker) { margin-right: auto; margin-left: auto; }
  .scroll-prompt { margin: 20px auto 0; }
  .story-copy { order: 1; }.story-visual { order: 2; }
  .date-copy { order: 1; }.date-visual { order: 2; }
  .calendar-card { margin-right: auto; margin-left: auto; text-align: left; }
  .detail-list { width: min(510px, 100%); margin: 0 auto; }
  .stroller-sketch { width: 210px; justify-self: center; }
  .rsvp-visual { order: 2; width: min(340px, 100%); }
  .leaf-shadow--details { top: 2%; }
  .hydrangea-dots { right: -4%; bottom: 3%; transform: scale(.75); }
  h1 { font-size: clamp(3.4rem, 8vw, 5.4rem); }
  h2 { font-size: clamp(2.7rem, 6.5vw, 4rem); }
}

@media (max-width: 700px) {
  .scene { padding: 94px 24px 68px; }
  .hero-visual { width: min(420px, 100%); }
  .story-visual, .date-visual { width: min(490px, 100%); }
  .rsvp-visual { width: min(300px, 88%); }
}

@media (max-width: 500px) {
  :root { --bug-size: 54px; }
  .masthead { top: 13px; right: 14px; left: 14px; }
  .wordmark, .masthead__rsvp { padding: 7px 10px; font-size: .65rem; }
  .wordmark { font-size: .82rem; }
  .scene { padding: 92px 22px 64px; }
  h1 { font-size: clamp(2.75rem, 13.5vw, 4.15rem); }
  h2 { font-size: clamp(2.3rem, 10.5vw, 3.25rem); }
  .kicker { font-size: .63rem; letter-spacing: .14em; }
  .date-chip { font-size: .78rem; }
  .detail-card { padding-right: 25px; }
  .leaf-shadow { opacity: .55; }
  .hand-note { font-size: 1rem; text-align: left; }
  .site-footer { font-size: .59rem; letter-spacing: .07em; }
  .rsvp-button { min-height: 54px; }
  .palette-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }
  .palette-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .palette-dialog__header .kicker { font-size: .58rem; }
}

@media (max-height: 739px) and (min-width: 1100px) {
  .scene { min-height: auto; padding-top: 104px; padding-bottom: 70px; }
}

@supports (padding: env(safe-area-inset-top)) {
  .masthead { top: max(14px, env(safe-area-inset-top)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { --reveal-y: 0px !important; --reveal-opacity: 1 !important; }
  .flight-layer { display: none; }
  .flight-ready .bug-perch > img { visibility: visible; }
}
