*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; height: 100vh; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--gold-soft); color: #241d0e; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: var(--heading-ls); }
p { margin: 0; line-height: 1.75; }

.script { font-family: var(--font-script); font-style: var(--script-style, normal); letter-spacing: 0.01em; }
.eyebrow {
  font-size: 0.7rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--text-muted); display: block; margin-bottom: 1rem;
}
.muted { color: var(--text-muted); }

/* ---------- gold divider ---------- */
.divider { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: var(--step) 0; }
.divider i {
  display: block; height: 1px; width: min(90px, 22vw);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider s {
  width: 6px; height: 6px; rotate: 45deg; background: var(--gold);
  text-decoration: none; box-shadow: 0 0 12px var(--gold-soft);
}

/* ---------- buttons ---------- */
.btn {
  --btn-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  border: 1px solid var(--btn); background: var(--btn); color: var(--btn-text);
  padding: 1rem 2.1rem; border-radius: var(--btn-radius);
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; position: relative; overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), background-color .4s ease, color .4s ease, box-shadow .4s ease;
}
.btn::after {
  content: ''; position: absolute; inset: 0; translate: -120% 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transition: translate .8s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -14px rgba(44,55,66,.55); }
.btn:hover::after { translate: 120% 0; }
.btn--outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #fffdf7; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-muted); letter-spacing: 0.16em; }

/* =========================================================
   ENVELOPE SCREEN
   ========================================================= */
.envelope-screen {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: var(--gutter);
  background: linear-gradient(180deg, var(--env-top) 0% 50%, var(--env-bottom) 50% 100%);
  overflow: hidden;
  transition: opacity 1.1s ease, filter 1.1s ease;
}
.envelope-screen::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--paper-texture); background-size: cover; background-position: center;
  opacity: var(--paper-opacity); mix-blend-mode: soft-light; pointer-events: none;
}
.envelope-screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, transparent 30%, rgba(44,55,66,.14) 100%);
}
.envelope-screen.is-gone { opacity: 0; pointer-events: none; filter: blur(6px); }

.env-stage { position: relative; z-index: 2; text-align: center; width: min(430px, 100%); transition: opacity .55s ease, transform .55s ease; }
.env-stage.is-fading { opacity: 0; transform: scale(1.03); }

/* --- closed-envelope artwork mode (envelope.stillImage) --- */
.envelope-screen.has-still { background: var(--still-backdrop, var(--env-paper)); }
.envelope-screen.has-still::after { background: radial-gradient(circle at 50% 40%, transparent 46%, rgba(44,55,66,.12) 100%); }
.env-bg { position: fixed; inset: 0; z-index: 1; }
.env-bg img { width: 100%; height: 100%; object-fit: cover; }
.envelope-screen.has-still .env-stage {
  position: fixed; inset: 0; width: 100%; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(6vh + env(safe-area-inset-top)) var(--gutter) calc(9vh + env(safe-area-inset-bottom));
}
.envelope-screen.has-still .env-names { margin-bottom: 0; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.envelope-screen.has-still .env-tap { margin-top: 0; }
.envelope-screen.has-still .env-tap b { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.env-still-glow {
  position: absolute; left: 50%; top: 44%; translate: -50% -50%; z-index: 2;
  width: min(90px, 22vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
}

/* --- full screen opening video (envelope.openAnimation.type = video) --- */
.env-video {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3;
  object-fit: cover; background: var(--still-backdrop, var(--env-paper));
  opacity: 0; transition: opacity .7s ease;
}
.env-video.fit-contain { object-fit: contain; }
/* portrait artwork on a landscape screen: letterbox instead of extreme crop */
@media (min-aspect-ratio: 1/1) {
  .env-bg img, .env-video { object-fit: contain; }
  .envelope-screen.has-still .env-stage { padding-top: 3vh; padding-bottom: 3vh; }
}
.env-video.is-on { opacity: 1; }
.env-video-skip { position: fixed; right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom)); z-index: 6; }

.envelope {
  position: relative; width: 100%; aspect-ratio: 1.45 / 1;
  filter: drop-shadow(0 26px 46px rgba(44,55,66,.24));
  transform-style: preserve-3d;
}
.env-body {
  position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(160deg, var(--env-paper), color-mix(in srgb, var(--env-paper) 82%, var(--secondary)));
  border: 1px solid var(--border);
  overflow: hidden;
}
.env-body::before, .env-body::after {
  content: ''; position: absolute; bottom: 0; width: 62%; height: 118%;
  background: linear-gradient(120deg, rgba(0,0,0,.045), transparent 60%);
}
.env-body::before { left: 0; clip-path: polygon(0 100%, 0 8%, 100% 100%); }
.env-body::after { right: 0; clip-path: polygon(100% 100%, 100% 8%, 0 100%); }

.env-letter {
  position: absolute; left: 7%; right: 7%; bottom: 12%; top: 16%;
  background: var(--env-paper); border: 1px solid var(--border);
  border-radius: 3px; display: grid; place-content: center; gap: .35rem;
  transform: translateY(14%) scale(.96); opacity: 0;
  box-shadow: 0 8px 22px -14px rgba(44,55,66,.5);
}
.env-letter span { font-family: var(--font-script); font-size: 1.5rem; color: var(--primary); }
.env-letter small { font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--text-muted); }

.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 62%;
  background: linear-gradient(178deg, color-mix(in srgb, var(--env-paper) 74%, var(--primary)) 0%, color-mix(in srgb, var(--env-paper) 92%, var(--primary)) 70%, var(--env-paper) 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center; transform: rotateX(0deg);
  border-radius: 6px 6px 0 0;
  z-index: 4;
  filter: drop-shadow(0 4px 6px rgba(44,55,66,.10));
}
.env-flap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.55), transparent 55%);
}
.env-foil .env-flap { box-shadow: inset 0 -1px 0 var(--gold-soft); }
.env-foil .env-body { box-shadow: inset 0 0 0 1px rgba(195,155,74,.35); }

.env-seal {
  position: absolute; left: 50%; top: 52%; translate: -50% -50%;
  width: 27%; aspect-ratio: 1; z-index: 6; border: 0; padding: 0;
  background: none; border-radius: 50%;
  filter: drop-shadow(0 8px 16px rgba(44,55,66,.35));
}
.env-seal img { width: 100%; height: 100%; object-fit: contain; }
.env-seal-text {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold));
  color: #fffdf7; font-family: var(--font-heading); font-size: 1.4rem; letter-spacing: .1em;
}
.env-seal-half { position: absolute; left: 50%; top: 52%; translate: -50% -50%; width: 27%; aspect-ratio: 1; z-index: 7; pointer-events: none; opacity: 0; }
.env-seal-half img { width: 100%; }
.env-seal-half.l { clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
.env-seal-half.r { clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); }

.env-tap { margin-top: clamp(1.6rem, 6vw, 2.6rem); }
.env-tap b {
  display: block; font-family: var(--font-heading); font-size: clamp(1.5rem, 6vw, 2rem);
  letter-spacing: .3em; font-weight: 400; color: var(--text);
}
.env-tap em {
  display: block; margin-top: .5rem; font-style: normal;
  font-size: .66rem; letter-spacing: .4em; text-transform: uppercase; color: var(--text-muted);
}
.env-names {
  font-family: var(--font-script); font-size: clamp(1.5rem, 6.5vw, 2.1rem);
  color: var(--primary); margin-bottom: clamp(1.2rem, 5vw, 2rem);
}

/* =========================================================
   INTRO SCREEN
   ========================================================= */
.intro-screen {
  position: fixed; inset: 0; z-index: 55; background: var(--bg);
  display: grid; place-items: center; overflow: hidden;
  opacity: 0; transition: opacity 1s ease;
}
.intro-screen.is-visible { opacity: 1; }
.intro-screen.is-gone { opacity: 0; pointer-events: none; }
.intro-screen::before {
  content: ''; position: absolute; inset: 0; background: var(--gradient); opacity: .85;
}
.intro-inner { position: relative; text-align: center; padding: var(--gutter); width: min(560px, 100%); }
.intro-media { width: 100%; max-height: 74vh; object-fit: contain; margin: 0 auto; }
.intro-video { width: 100%; max-height: 78vh; border-radius: var(--radius-lg); background: #000; }
.intro-character { width: min(230px, 55vw); margin: 0 auto; }
.intro-title { font-family: var(--font-script); font-size: clamp(1.8rem, 8vw, 2.9rem); color: var(--text); margin-top: 1.2rem; }
.intro-sub { margin-top: .7rem; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.intro-skip { position: absolute; right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom)); z-index: 3; }
.intro-bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--gold); width: 0; }

/* =========================================================
   SITE
   ========================================================= */
.site { position: relative; z-index: 2; opacity: 0; transition: opacity 1.2s ease; }
.site.is-visible { opacity: 1; }
.site::before {
  content: ''; position: fixed; inset: 0; z-index: -2; background: var(--gradient);
}
.site::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--paper-texture); background-size: cover; background-attachment: fixed;
  opacity: calc(var(--paper-opacity) * 0.55); mix-blend-mode: soft-light;
}
body.has-grain .site .section:nth-child(n)::before { content: none; }

.section { padding: clamp(3.4rem, 11vw, 7rem) var(--gutter); max-width: var(--maxw); margin-inline: auto; }
.section--tight { padding-top: clamp(1.5rem, 6vw, 3rem); }
.section-head { max-width: 42ch; }
.section-head h2 { font-size: clamp(1.7rem, 6.4vw, 2.7rem); }
.section-head p { margin-top: 1rem; color: var(--text-muted); font-size: .98rem; }
.section--center, .section--center .section-head { text-align: center; margin-inline: auto; }

/* --- invitation hero --- */
.invite { text-align: center; padding-top: clamp(3rem, 13vw, 6rem); }
.invite-logo { width: clamp(104px, 26vw, 158px); margin: 0 auto clamp(1.2rem, 5vw, 2rem); opacity: .95; }
.invite h1 {
  font-size: clamp(2.6rem, 15vw, 5.4rem); line-height: .95;
  letter-spacing: .1em; margin-left: .1em;
}
.invite .sub { margin-top: 1.1rem; font-size: .8rem; letter-spacing: .34em; text-transform: uppercase; color: var(--text-muted); }
.invite .honour { margin-top: var(--step); font-size: .68rem; letter-spacing: .4em; text-transform: uppercase; color: var(--text-muted); }
.invite .names { font-family: var(--font-script); font-size: clamp(2.1rem, 10vw, 3.4rem); color: var(--primary); margin-top: .5rem; }
.invite .when { margin-top: 1.2rem; font-size: .92rem; letter-spacing: .14em; color: var(--text); }
.invite .when b { font-weight: 400; display: block; }
.invite .when span { display: block; margin-top: .35rem; color: var(--text-muted); font-size: .82rem; letter-spacing: .28em; text-transform: uppercase; }

.hero-media { position: relative; margin: var(--step) auto 0; width: min(520px, 100%); }
.hero-media img, .hero-media video { width: 100%; }
.hero-media.frame-arch img, .hero-media.frame-arch video {
  border-radius: 50% 50% 12px 12px / 32% 32% 6px 6px;
  box-shadow: 0 30px 60px -34px rgba(44,55,66,.5);
}
.hero-media.frame-circle img { border-radius: 50%; }
.hero-media.frame-soft img { border-radius: var(--radius-lg); }

/* --- opening scene: waving character on a clean canvas --- */
.hero-scene {
  min-height: 100svh; max-width: none; width: 100%;
  padding: calc(7vh + env(safe-area-inset-top)) var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  position: relative; overflow: hidden;
}
.hs-copy { text-align: center; animation: riseIn calc(1.1s * var(--speed)) ease-out both; }
.hs-copy h1 {
  font-size: clamp(2rem, 8.4vw, 4.4rem); font-weight: 300;
  letter-spacing: var(--heading-ls); line-height: 1.05;
}
.hs-sub { margin-top: .9rem; font-size: clamp(1.05rem, 4.4vw, 1.5rem); color: var(--text-muted); }
.hs-stage {
  position: relative; margin: auto auto 4.2rem; width: min(86vw, 430px);
  aspect-ratio: 848 / 1264; max-height: 62vh;
  animation: riseIn calc(1.3s * var(--speed)) ease-out .2s both;
}
.hs-stage .hs-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.hs-stage .hs-frame.is-on, .hs-stage .hs-frame:only-child { opacity: 1; }
.hs-scroll {
  position: absolute; left: 50%; translate: -50% 0; bottom: calc(1.1rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: .5rem; z-index: 3;
}
.hs-scroll span { font-size: .58rem; letter-spacing: .38em; text-transform: uppercase; color: var(--text-muted); }
.hs-scroll i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--text), transparent); }
@media (min-width: 900px) {
  .hero-scene { flex-direction: row; justify-content: center; gap: 4vw; align-items: center; padding-top: 0; }
  .hs-copy { text-align: left; max-width: 30ch; }
  .hs-stage { margin: 0; width: min(38vw, 470px); max-height: 78vh; }
}

/* --- bullet messages --- */
.msg-list { list-style: none; margin: var(--step) 0 0; padding: 0; display: grid; gap: 1.15rem; text-align: left; max-width: 34rem; margin-inline: auto; }
.msg-list li {
  position: relative; padding-left: 2.1rem;
  font-family: var(--font-heading); font-size: clamp(1.15rem, 4.6vw, 1.6rem);
  letter-spacing: .02em; line-height: 1.5;
}
.msg-list li::before {
  content: ''; position: absolute; left: .35rem; top: .72em;
  width: 6px; height: 6px; rotate: 45deg; background: var(--text);
}

/* --- venue line inside the invitation --- */
.invite .where { margin-top: 1.4rem; }
.invite .where b { display: block; font-weight: 400; font-family: var(--font-heading); font-size: 1.2rem; letter-spacing: .1em; }
.invite .where span { display: block; margin-top: .4rem; color: var(--text-muted); font-size: .9rem; }

.welcome-card {
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 7vw, 3.4rem); text-align: center;
  backdrop-filter: blur(14px);
}
.welcome-card p { font-size: 1.02rem; color: var(--text-muted); }
.welcome-card .sig { font-family: var(--font-script); font-size: 1.5rem; color: var(--primary); margin-top: 1.6rem; }

/* --- gallery --- */
.gal { position: relative; }
.gal-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: .5rem;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-item {
  flex: 0 0 100%; scroll-snap-align: center; position: relative;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--secondary);
  box-shadow: 0 24px 50px -30px rgba(44,55,66,.45);
}
.gal-item img, .gal-item video { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.gal-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(20,26,32,.66));
  color: #fdfaf4; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
}
.gal-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.4rem; }
.gal-dots { display: flex; gap: .5rem; }
.gal-dots button {
  width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0;
  background: var(--border); transition: width .4s ease, background-color .4s ease;
}
.gal-dots button[aria-current='true'] { width: 26px; border-radius: 4px; background: var(--gold); }
.gal-arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); display: grid; place-items: center; font-size: 1rem;
  transition: background-color .3s ease, transform .3s ease;
}
.gal-arrow:hover { transform: scale(1.08); background: var(--secondary); }
@media (min-width: 760px) { .gal-item { flex-basis: 48%; } }

/* --- story --- */
.story-list { display: grid; gap: clamp(1.4rem, 5vw, 2.4rem); margin-top: var(--step); }
.story-row { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.2rem; align-items: start; }
.story-row b { font-family: var(--font-heading); font-size: 1.3rem; color: var(--gold); letter-spacing: .08em; }
.story-row p { color: var(--text-muted); font-size: .96rem; border-left: 1px solid var(--border); padding-left: 1.2rem; }

/* --- details --- */
.detail-grid { display: grid; gap: 1rem; margin-top: var(--step); }
@media (min-width: 640px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
.detail {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border); border-radius: 14px;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}
.detail:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -24px rgba(44,55,66,.4); }
.detail svg { width: 20px; height: 20px; flex: none; stroke: var(--gold); fill: none; stroke-width: 1.4; margin-top: .15rem; }
.detail b { display: block; font-size: .64rem; letter-spacing: .32em; text-transform: uppercase; color: var(--text-muted); font-weight: 400; }
.detail span { display: block; margin-top: .35rem; font-size: .98rem; }

/* --- countdown --- */
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: var(--step); }
.cd-cell {
  padding: 1.1rem .4rem; text-align: center; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid var(--border);
}
.cd-cell b { display: block; font-family: var(--font-heading); font-size: clamp(1.5rem, 7vw, 2.4rem); letter-spacing: .04em; }
.cd-cell span { display: block; margin-top: .3rem; font-size: .55rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-muted); }

/* --- rsvp / gifts --- */
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: var(--step); }

/* --- location --- */
.map-wrap {
  margin-top: var(--step); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 24px 46px -32px rgba(44,55,66,.45);
  background: var(--secondary);
}
.map-wrap iframe { width: 100%; height: clamp(240px, 46vw, 380px); border: 0; display: block; }
.venue { margin-top: var(--step); }
.venue b { display: block; font-family: var(--font-heading); font-size: 1.35rem; letter-spacing: .1em; }
.venue p { margin-top: .5rem; color: var(--text-muted); font-size: .95rem; }

/* --- footer --- */
.footer { text-align: center; padding: clamp(3rem, 10vw, 5rem) var(--gutter) calc(3rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.footer .script { font-size: clamp(1.6rem, 7vw, 2.3rem); color: var(--primary); }
.footer p { margin-top: 1rem; color: var(--text-muted); font-size: .9rem; }
.footer small { display: block; margin-top: 1.6rem; font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-muted); opacity: .7; }

/* --- audio toggle --- */
.audio-toggle {
  position: fixed; z-index: 80; right: max(1rem, env(safe-area-inset-right));
  top: max(1rem, env(safe-area-inset-top));
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px); display: grid; place-items: center;
  box-shadow: 0 10px 24px -16px rgba(44,55,66,.5);
  transition: transform .35s ease, background-color .35s ease;
}
.audio-toggle:hover { transform: scale(1.07); }
.audio-toggle svg { width: 19px; height: 19px; stroke: var(--text); fill: none; stroke-width: 1.5; stroke-linecap: round; }

/* audio button adapts to a dark opening screen */
body:has(.envelope-screen) .audio-toggle {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.34);
  box-shadow: 0 10px 26px -18px rgba(0,0,0,.8);
}
body:has(.envelope-screen) .audio-toggle svg { stroke: #FFFBF2; }

/* --- decoration layer --- */
.decor-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.decor { position: absolute; will-change: transform; }
.decor-cloud { border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff, rgba(255,255,255,0)); filter: blur(1px); }
.decor-star { background: var(--gold); clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.decor-sparkle { background: #fff; border-radius: 50%; box-shadow: 0 0 8px 2px var(--gold-soft); }
.decor-moon img { width: 100%; opacity: .9; }
.decor-heart { background: var(--primary); clip-path: path('M12 21s-8-5.2-8-11a4.6 4.6 0 0 1 8-3 4.6 4.6 0 0 1 8 3c0 5.8-8 11-8 11z'); }
.decor-char { position: fixed; bottom: 0; z-index: 0; opacity: .92; pointer-events: none; }
@media (max-width: 560px) { .decor-char { transform: scale(.7); transform-origin: bottom left; opacity: .8; } .decor-char.pos-bottom-right { transform-origin: bottom right; } }
.decor-char.pos-bottom-left { left: 0; }
.decor-char.pos-bottom-right { right: 0; }
.decor-char img { width: 100%; filter: drop-shadow(0 12px 22px rgba(44,55,66,.25)); }

/* --- confetti --- */
.confetti-piece { position: fixed; top: -12px; width: 7px; height: 12px; z-index: 70; pointer-events: none; border-radius: 1px; }

/* --- particles on open --- */
.particle { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); z-index: 8; pointer-events: none; }
.cloud-bloom {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 5;
  width: 60vmax; height: 60vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.92) 0%, rgba(255,255,255,.4) 45%, rgba(255,255,255,0) 70%);
  opacity: 0; scale: .2;
}

/* --- scroll reveal --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
