/* ============================================================
   01 · tokens
   ============================================================ */

:root {
  --bg: #fff5f8;
  --bg-soft: #ffe9f1;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-2: rgba(255, 255, 255, 0.85);
  --line: rgba(155, 50, 90, 0.16);
  --line-strong: rgba(155, 50, 90, 0.3);
  --ivory: #3a1226;
  --ivory-dim: #5d2a41;
  --muted: #8c5c72;
  --muted-2: #a97e90;
  --champagne: #d62d68;
  --champagne-soft: rgba(214, 45, 104, 0.35);
  --rose: #e75480;
  --rose-deep: #a11d4c;
  --rose-bright: #ff9abd;
  --paper: #fffafb;
  --paper-ink: #3a1226;

  --font-body: "Jost", system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Cormorant Garamond", "Times New Roman", serif;

  --shadow-deep: 0 40px 80px -40px rgba(120, 20, 70, 0.4);
  --shadow-card: 0 30px 70px -40px rgba(120, 20, 70, 0.35);
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ivory);
  background:
    radial-gradient(1200px 820px at 10% -12%, rgba(255, 158, 196, 0.5), transparent 60%),
    radial-gradient(1000px 720px at 92% 2%, rgba(255, 214, 228, 0.65), transparent 55%),
    radial-gradient(900px 900px at 50% 115%, rgba(255, 158, 196, 0.4), transparent 62%),
    linear-gradient(180deg, #fff8fa 0%, #fff0f5 55%, #ffe9f1 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

body:not(.started) {
  overflow: hidden;
}

::selection {
  background: var(--rose);
  color: #fff8fa;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #ffeef4;
}

::-webkit-scrollbar-thumb {
  background: #ffb7d0;
  border-radius: 20px;
  border: 3px solid #ffeef4;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff9ec4;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 1px solid var(--rose-deep);
  outline-offset: 5px;
}

.script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 300;
}

.site {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.2s var(--ease) 0.1s;
}

body.started .site {
  opacity: 1;
}

/* ============================================================
   02 · ambient overlays
   ============================================================ */

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    560px circle at var(--mx, 50%) var(--my, 30%),
    rgba(255, 255, 255, 0.55),
    transparent 62%
  );
  opacity: 0.9;
}

.ambient,
.glitter {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.glitter {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(214, 45, 104, 0.4), transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(214, 122, 255, 0.35), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(231, 84, 128, 0.35), transparent);
  background-repeat: repeat;
  background-size: 170px 120px;
  animation: glitterMove 26s linear infinite;
  opacity: 0.55;
}

@keyframes glitterMove {
  from { background-position: 0 0; }
  to { background-position: -170px 120px; }
}

.ambient-heart,
.ambient-star {
  position: absolute;
  bottom: -60px;
  opacity: 0;
  animation: driftUp linear forwards;
  will-change: transform, opacity;
}

.ambient-heart {
  color: var(--rose);
  filter: drop-shadow(0 0 8px rgba(231, 84, 128, 0.35));
}

.ambient-star {
  color: var(--rose-deep);
  animation-name: driftUpStar;
  filter: drop-shadow(0 0 10px rgba(214, 45, 104, 0.25));
}

#confetti {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

/* ============================================================
   03 · loader
   ============================================================ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 36px);
  overflow: hidden;
  background:
    radial-gradient(900px 650px at 50% 25%, rgba(255, 230, 240, 0.85), transparent 70%),
    radial-gradient(800px 600px at 15% 10%, rgba(255, 175, 205, 0.5), transparent 60%),
    radial-gradient(850px 750px at 85% 90%, rgba(220, 160, 255, 0.28), transparent 65%),
    linear-gradient(165deg, #fff7fa 0%, #ffe8f2 50%, #fff0f7 100%);
  transition: opacity 0.9s var(--ease), visibility 0.9s, filter 0.9s var(--ease), transform 0.9s var(--ease);
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(10px);
  transform: scale(1.03);
}

.loader-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  animation: driftGlow 18s ease-in-out infinite alternate;
}

.loader-glow-a {
  width: 420px;
  height: 420px;
  background: #ff9ec4;
  top: -120px;
  left: -100px;
}

.loader-glow-b {
  width: 500px;
  height: 500px;
  background: #d9a6ff;
  bottom: -160px;
  right: -120px;
  animation-delay: -8s;
}

.loader-glow-c {
  width: 320px;
  height: 320px;
  background: #ffe3a8;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.25;
  filter: blur(80px);
}

.loader-sparkle-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 30px 40px, rgba(214, 45, 104, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 80px 110px, rgba(235, 130, 170, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 140px 60px, rgba(255, 215, 0, 0.45), transparent),
    radial-gradient(1px 1px at 190px 150px, rgba(214, 122, 255, 0.35), transparent);
  background-size: 220px 180px;
  opacity: 0.75;
}

.loader-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.loader-p-item {
  position: absolute;
  bottom: -50px;
  pointer-events: none;
  animation: loaderFloatUp linear infinite;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 6px rgba(231, 84, 128, 0.35));
}

@keyframes loaderFloatUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }
  15% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateY(-115vh) scale(1.15) rotate(45deg);
  }
}

.loader-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  animation: floatIn 1.1s var(--ease) both;
}

/* Luxury Pill Badge */
.loader-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(225, 140, 175, 0.35);
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(180, 40, 90, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.badge-dot {
  font-size: 0.75rem;
  color: #d62d68;
  animation: twinkle 2.5s ease-in-out infinite;
}

/* Envelope Container */
.loader-envelope-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  perspective: 1400px;
  padding: 10px 0 18px;
}

.loader-envelope {
  position: relative;
  width: min(390px, 88vw);
  height: 240px;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  animation: loaderEnvFloat 4.8s ease-in-out infinite;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s var(--ease), box-shadow 0.4s var(--ease);
}

@keyframes loaderEnvFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.loader-envelope:hover {
  animation-play-state: paused;
}

.loader.opening .loader-envelope {
  animation: none;
  transform: translateY(22px);
  opacity: 0.88;
}

.loader-env-shadow {
  position: absolute;
  bottom: -22px;
  left: 8%;
  right: 8%;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(140, 25, 75, 0.28) 0%, rgba(140, 25, 75, 0) 72%);
  filter: blur(10px);
  animation: loaderShadowPulse 4.8s ease-in-out infinite;
  pointer-events: none;
  transition: transform 0.65s var(--ease), opacity 0.65s var(--ease);
}

@keyframes loaderShadowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(0.92);
    opacity: 0.55;
  }
}

.loader.opening .loader-env-shadow {
  animation: none;
  transform: scale(1.08);
  opacity: 0.4;
}

.loader-env-back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #fce5ee 0%, #f7b9cf 100%);
  border: 1px solid rgba(225, 120, 160, 0.35);
  box-shadow: 0 20px 45px -15px rgba(140, 25, 75, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Interior Letter Card */
.loader-letter-card {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 8%;
  bottom: 8%;
  background: #fffdfb;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(120, 20, 60, 0.12);
  z-index: 2;
  border: 1px solid rgba(212, 160, 180, 0.3);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.75s var(--ease);
}

.letter-card-border {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(214, 45, 104, 0.28);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: radial-gradient(circle at center, rgba(255, 245, 248, 0.75), transparent 70%);
}

.letter-card-sparkle {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  color: #d62d68;
  margin-bottom: 4px;
}

.letter-card-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.letter-card-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ivory);
}

.letter-card-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  font-style: italic;
  font-weight: 500;
  color: var(--rose-deep);
  margin-top: 2px;
}

.letter-card-sub {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 6px;
}

.loader-env-pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 12px;
  background: linear-gradient(to top, rgba(180, 40, 85, 0.14) 0%, transparent 45%);
  pointer-events: none;
}

/* Front Face of Envelope */
.loader-env-front {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 12px;
  clip-path: polygon(0% 0%, 50% 50%, 100% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(155deg, #f8c5d8 0%, #f095ba 55%, #e0709a 100%);
  box-shadow: inset 0 -4px 16px rgba(140, 20, 70, 0.22);
  pointer-events: none;
}

/* Postage Stamp */
.loader-stamp {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 52px;
  height: 60px;
  background: #fff8fb;
  border-radius: 3px;
  border: 2px dotted #e75480;
  box-shadow: 0 4px 10px rgba(120, 20, 60, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(4deg);
}

.loader-stamp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stamp-heart {
  font-size: 1.15rem;
  color: #d62d68;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(214, 45, 104, 0.3));
}

.stamp-air {
  font-size: 0.46rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.loader-postmark {
  position: absolute;
  inset: -8px -12px -8px -8px;
  pointer-events: none;
  color: rgba(160, 35, 80, 0.45);
}

.postmark-svg {
  width: 100%;
  height: 100%;
}

/* Recipient Label */
.loader-env-address {
  position: absolute;
  bottom: 22px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.address-to {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #7b2a48;
}

.address-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.45rem, 4.4vw, 1.85rem);
  font-weight: 500;
  line-height: 1.1;
  color: #6d1033;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.address-note {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: #8c3858;
}

/* Flap */
.loader-env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56%;
  z-index: 5;
  border-radius: 12px 12px 0 0;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  background: linear-gradient(180deg, #ffb5d0 0%, #ee86ae 100%);
  transform-origin: top center;
  transition: transform 0.65s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.65s var(--ease);
  box-shadow: 0 6px 16px rgba(120, 20, 60, 0.15);
  pointer-events: none;
}

/* Wax Seal */
.loader-wax-seal {
  position: absolute;
  top: 52%;
  left: 50%;
  z-index: 6;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6b9a, #b0184c 75%, #7a0c33 100%);
  box-shadow:
    0 10px 24px -6px rgba(120, 15, 60, 0.68),
    inset 0 2px 3px rgba(255, 255, 255, 0.45),
    inset 0 -2px 5px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.45s ease, filter 0.45s ease;
  animation: waxPulse 3.8s ease-in-out infinite;
}

@keyframes waxPulse {
  0%, 100% {
    box-shadow:
      0 10px 24px -6px rgba(120, 15, 60, 0.68),
      inset 0 2px 3px rgba(255, 255, 255, 0.45),
      inset 0 -2px 5px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 12px 30px -4px rgba(230, 50, 110, 0.75),
      inset 0 2px 3px rgba(255, 255, 255, 0.55),
      inset 0 -2px 5px rgba(0, 0, 0, 0.35);
  }
}

.loader-envelope:hover .loader-wax-seal {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 14px 32px -4px rgba(230, 50, 110, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.wax-seal-border {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 230, 240, 0.55);
  pointer-events: none;
}

.wax-seal-monogram {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  color: #fff5f8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.wax-seal-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 110, 160, 0.4);
  animation: sealRing 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes sealRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.loader-tap-hint {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rose-deep);
  white-space: nowrap;
  animation: pulseHint 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(2px); }
}

/* Opening State Animations */
.loader.opening .loader-env-flap {
  transform: scaleY(-1);
  filter: brightness(1.05);
  z-index: 1;
}

.loader.opening .loader-wax-seal {
  transform: translate(-50%, -50%) scale(1.3);
  opacity: 0;
  filter: blur(4px);
  pointer-events: none;
}

.loader.opening .loader-letter-card {
  transform: translateY(-120px) scale(1.06);
  box-shadow: 0 30px 60px -10px rgba(120, 20, 60, 0.32);
  z-index: 15;
}

.loader.opening .loader-env-front {
  opacity: 0.95;
}

.loader.opening .loader-actions,
.loader.opening .loader-badge {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.loader.opening .loader-tap-hint {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Loader Actions & Hint */
.loader-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.loader-open-btn {
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  background: linear-gradient(135deg, #e83e78 0%, #c91b5c 52%, #9e0e44 100%);
  box-shadow: 0 18px 40px -14px rgba(214, 45, 104, 0.72);
  gap: 10px;
}

.loader-open-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 24px 50px -14px rgba(214, 45, 104, 0.85);
}

.btn-sparkle {
  font-size: 0.82rem;
  color: #ffe680;
  animation: twinkle 2s ease-in-out infinite;
}

.loader-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hint-music-icon {
  font-size: 0.85rem;
  color: var(--rose);
}

/* ============================================================
   04 · buttons
   ============================================================ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 17px 32px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(120deg, #e13a76, #d62d68 55%, #c21f5c);
  background-size: 160% 100%;
  color: #fff8fa;
  border: 1px solid transparent;
  box-shadow: 0 18px 40px -22px rgba(214, 45, 104, 0.75);
}

.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 24px 46px -22px rgba(214, 45, 104, 0.85);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--rose-deep);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: #fff;
  border-color: var(--rose);
  color: var(--rose-deep);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn.small {
  padding: 13px 24px;
  font-size: 0.62rem;
}

.hidden {
  display: none !important;
}

/* ============================================================
   05 · music toggle
   ============================================================ */

.music-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px -22px rgba(120, 20, 70, 0.4);
  color: var(--rose-deep);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}

.music-toggle:hover {
  background: #fff;
  border-color: var(--champagne-soft);
  color: var(--rose-deep);
}

.music-note {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
  font-style: italic;
}

.music-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.music-bars i {
  display: block;
  width: 2px;
  height: 4px;
  background: currentColor;
  transition: height 0.3s var(--ease);
}

.music-toggle.playing .music-bars i {
  animation: equalize 0.9s ease-in-out infinite;
}

.music-toggle.playing .music-bars i:nth-child(2) { animation-delay: -0.55s; }
.music-toggle.playing .music-bars i:nth-child(3) { animation-delay: -0.25s; }
.music-toggle.playing .music-bars i:nth-child(4) { animation-delay: -0.7s; }

/* ============================================================
   06 · hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 24px 130px;
  overflow: hidden;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(860px, 82vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
}

body.started .hero-content > * {
  animation: riseIn 1.2s var(--ease) both;
}

body.started .hero-content > *:nth-child(1) { animation-delay: 0.2s; }
body.started .hero-content > *:nth-child(2) { animation-delay: 0.32s; }
body.started .hero-content > *:nth-child(3) { animation-delay: 0.48s; }
body.started .hero-content > *:nth-child(4) { animation-delay: 0.64s; }
body.started .hero-content > *:nth-child(5) { animation-delay: 0.8s; }
body.started .hero-content > *:nth-child(6) { animation-delay: 0.96s; }

.eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 26px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 0.6vw, 6px);
  line-height: 1.02;
}

.hero-line:first-child {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.5rem, 10.5vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-indent: 0;
  text-transform: none;
  color: var(--ivory);
  text-shadow: 0 15px 40px rgba(214, 45, 104, 0.12);
}

.hero-line.script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.5rem, 10.5vw, 7.2rem);
  line-height: 1.02;
  color: var(--rose-deep);
  padding: 0 0.05em 0.02em;
  position: relative;
  text-shadow: 0 20px 50px rgba(214, 45, 104, 0.18);
}

.hero-sparkle {
  position: absolute;
  right: clamp(-6px, -3vw, -46px);
  top: clamp(-6px, -1.5vw, -22px);
  font-size: clamp(0.9rem, 2vw, 1.5rem);
  color: var(--rose);
  animation: sparkleTwinkle 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.9) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(20deg); }
}

.hero-name-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
  max-width: 100%;
}

.hero-name-badge::before,
.hero-name-badge::after {
  content: "";
  width: clamp(24px, 6vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  flex-shrink: 0;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  letter-spacing: clamp(0.18em, 0.8vw, 0.36em);
  text-indent: clamp(0.18em, 0.8vw, 0.36em);
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 500;
  max-width: calc(100vw - 60px);
  word-wrap: break-word;
}

.hero-sub {
  margin-top: 30px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ivory-dim);
}

.name {
  color: var(--rose-deep);
  border-bottom: 1px solid var(--champagne-soft);
  padding-bottom: 1px;
}

.hero-note {
  margin: 18px auto 0;
  max-width: 430px;
  font-size: clamp(0.86rem, 1.8vw, 0.96rem);
  line-height: 1.9;
  color: var(--muted);
}

.hero-note em {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.25em;
  color: var(--rose-deep);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted-2);
  opacity: 0;
  animation: fadeIn 1.4s ease 1.8s both;
}

.scroll-cue span {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--rose), transparent);
  animation: scrollPulse 2.6s ease-in-out infinite;
  transform-origin: top;
}

/* hero decorations */

.balloons {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.balloon {
  position: absolute;
  bottom: -32vh;
  left: calc((100% - var(--size)) * var(--x));
  width: var(--size);
  height: calc(var(--size) * 1.2);
  box-sizing: border-box;
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 50% 42%, var(--c1) 0%, var(--c2) 82%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0.55;
  filter: saturate(0.95);
  animation: rise var(--dur) linear var(--delay) infinite;
  will-change: transform;
}

.balloon::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--c2);
  opacity: 0.7;
}

.balloon-shine {
  position: absolute;
  top: 16%;
  left: 22%;
  width: 26%;
  height: 34%;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  transform: rotate(-18deg);
  filter: blur(2px);
}

.balloon-string {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 40px;
  height: var(--rope, 120px);
  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
}

.balloon-string path {
  fill: none;
  stroke: rgba(168, 80, 110, 0.38);
  stroke-width: 1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.sparkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: var(--spark-color, #e75480);
  font-size: var(--s, 12px);
  opacity: 0;
  animation: twinkle var(--dur, 5s) ease-in-out var(--delay, 0s) infinite;
  text-shadow: 0 0 14px rgba(231, 84, 128, 0.4);
  will-change: transform, opacity;
}

.spark-burst {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 12px rgba(231, 84, 128, 0.9);
  animation: sparkleBurst 1s var(--ease) forwards;
  pointer-events: none;
  z-index: 80;
}

@keyframes sparkleBurst {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(0.6); opacity: 0; }
}

/* ============================================================
   07 · sections
   ============================================================ */

.section {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(72px, 11vw, 140px) 24px;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(48px, 7vw, 76px);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--ivory);
}

.section-head h2 .script {
  display: inline-block;
  font-size: 1.18em;
  line-height: 0.8;
  color: var(--rose-deep);
  padding: 0 0.04em 0.08em;
}

.sub {
  margin-top: 18px;
  font-size: clamp(0.84rem, 1.8vw, 0.94rem);
  line-height: 1.9;
  color: var(--muted);
}

.divider {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 6px 24px;
  color: var(--muted-2);
}

.divider::before,
.divider::after {
  content: "";
  width: min(150px, 20vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

.divider::after {
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.divider span {
  font-size: 0.55rem;
  color: var(--rose);
  opacity: 0.8;
}

.divider b {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--rose-deep);
  animation: beat 3.2s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   08 · cake
   ============================================================ */

.cake-section {
  padding-bottom: clamp(56px, 8vw, 90px);
}

.cake-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}

.cake {
  position: relative;
  width: min(360px, 82vw);
  padding-top: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cakeBob 6s ease-in-out infinite;
  filter: drop-shadow(0 40px 50px rgba(160, 40, 90, 0.22));
}

.cake::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: 126%;
  height: 54px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 45, 104, 0.24), transparent);
  z-index: -1;
}

.candles {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 3.4vw, 24px);
  height: 76px;
  z-index: 4;
}

.candle {
  position: relative;
  width: clamp(9px, 2.6vw, 12px);
  height: 46px;
  border-radius: 2px 2px 1px 1px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent 34%, rgba(160, 40, 85, 0.12)),
    repeating-linear-gradient(48deg, #ff5f95 0 5px, #fff4f8 5px 10px);
  box-shadow:
    inset -3px 0 5px rgba(160, 40, 85, 0.22),
    inset 2px 0 3px rgba(255, 255, 255, 0.55),
    0 2px 8px rgba(160, 40, 85, 0.22);
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.candle:nth-child(2n) {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent 34%, rgba(160, 40, 85, 0.12)),
    repeating-linear-gradient(48deg, #ffd0e1 0 5px, #fffafc 5px 10px);
}

.candle:nth-child(3n) {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent 34%, rgba(160, 40, 85, 0.12)),
    repeating-linear-gradient(48deg, #e75480 0 5px, #ffe3ef 5px 10px);
}

.candle:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

/* melted wax at the top of the candle */
.candle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 5px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 0 0 50% 50%;
  background: linear-gradient(#fffdfe, #ffd8e7 70%, #ffb7d0);
  box-shadow: 0 2px 3px rgba(160, 40, 85, 0.16);
  opacity: 0.95;
  z-index: 2;
}

/* the wick */
.candle::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 2px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: linear-gradient(#3a2a26, #6e5248);
  z-index: 1;
}

.flame {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 14px;
  height: 23px;
  margin-bottom: 1px;
  transform: translateX(-50%);
  transform-origin: bottom center;
  border-radius: 50% 50% 46% 46% / 68% 68% 32% 32%;
  background:
    radial-gradient(ellipse at 50% 80%, #fffdf1 0 16%, rgba(255, 253, 241, 0) 42%),
    radial-gradient(ellipse at 50% 64%, #ffefb4 0 26%, #f4be64 58%, #d97a3e 82%, rgba(217, 122, 62, 0.14) 100%);
  box-shadow:
    0 0 10px 3px rgba(255, 220, 150, 0.55),
    0 0 30px 10px rgba(243, 180, 90, 0.28),
    0 0 60px 20px rgba(231, 84, 128, 0.08);
  animation: flicker 0.7s ease-in-out infinite alternate;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.flame::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 7px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 205, 255, 0.8), rgba(110, 175, 255, 0) 72%);
  filter: blur(1px);
}

.flame::after {
  content: "";
  position: absolute;
  inset: 40% 31% 11%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 250, 0.95), rgba(255, 250, 230, 0.5) 60%, transparent 80%);
  filter: blur(0.8px);
}

.smoke {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(120, 90, 105, 0.3);
  opacity: 0;
  pointer-events: none;
}

.candle.out .flame {
  animation: none;
  opacity: 0;
  transform: translateX(-50%) scale(0.2);
}

.candle.out .smoke {
  animation: smoke 1.7s ease-out forwards;
}

.candle.out .smoke::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(120, 90, 105, 0.15);
  animation: smoke 1.7s ease-out 0.15s forwards;
}

.tier {
  position: relative;
  border-radius: 6px 6px 4px 4px / 4px 4px 2px 2px;
  background:
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.2) 0 1.5px, rgba(255, 255, 255, 0) 1.5px 8px),
    radial-gradient(ellipse at 50% -30%, rgba(255, 255, 255, 0.6), transparent 60%),
    linear-gradient(100deg, var(--cake-dark), var(--cake-light) 46%, var(--cake-dark2));
  box-shadow:
    inset -20px 0 28px -16px rgba(150, 30, 80, 0.42),
    inset 20px 0 28px -16px rgba(255, 255, 255, 0.55),
    inset 0 -22px 30px -18px rgba(150, 30, 80, 0.38),
    0 18px 26px -18px rgba(120, 20, 70, 0.42);
}

/* top surface of the frosted tier */
.tier::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 1px;
  right: 1px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 34%, #fffdfe 0%, #fff1f7 56%, #ffd8e7 100%);
  box-shadow:
    inset 0 -3px 6px rgba(180, 60, 110, 0.22),
    0 2px 5px rgba(140, 30, 80, 0.18);
  z-index: 4;
}

/* side shading + soft buttercream highlight */
.tier::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(150, 30, 80, 0.2), transparent 16%, transparent 84%, rgba(150, 30, 80, 0.22)),
    linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.14) 49%, transparent 56%);
  z-index: 1;
  pointer-events: none;
}

/* ivory icing running over the top edge */
.tier-drip {
  position: absolute;
  top: 1px;
  left: -1px;
  right: -1px;
  height: 36px;
  z-index: 3;
  background: linear-gradient(180deg, #fffdfe 0%, #fff1f7 58%, #ffdceb 100%);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='36' viewBox='0 0 120 36'%3E%3Cpath fill='%23000' d='M0 0H120V10C116 10 114 17 108 17C102 17 101 8 95 8C89 8 88 22 81 22C74 22 75 11 68 11C61 11 60 19 54 19C48 19 48 7 42 7C36 7 35 15 29 15C23 15 23 26 16 26C9 26 10 12 4 12C2 12 1 13 0 13Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='36' viewBox='0 0 120 36'%3E%3Cpath fill='%23000' d='M0 0H120V10C116 10 114 17 108 17C102 17 101 8 95 8C89 8 88 22 81 22C74 22 75 11 68 11C61 11 60 19 54 19C48 19 48 7 42 7C36 7 35 15 29 15C23 15 23 26 16 26C9 26 10 12 4 12C2 12 1 13 0 13Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 120px 36px;
  mask-size: 120px 36px;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  filter: drop-shadow(0 3px 2px rgba(150, 30, 80, 0.12));
  pointer-events: none;
}

/* piped pearl border along the bottom of each tier */
.tier-pearls {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 2px;
  height: 11px;
  z-index: 5;
  background: radial-gradient(circle at 5px 5px, #fffdf7 3px, #f8cfe0 3.9px, transparent 4.3px) repeat-x;
  background-size: 13px 11px;
  filter: drop-shadow(0 2px 2px rgba(150, 30, 80, 0.25));
  pointer-events: none;
}

/* tiny sugar sprinkles and gold flecks */
.tier-sprinkles {
  position: absolute;
  inset: 15px 8% 18px;
  z-index: 2;
  opacity: 0.9;
  background-image:
    radial-gradient(circle at 12% 26%, #f0c56d 0 1.3px, transparent 1.8px),
    radial-gradient(circle at 27% 62%, #b34d78 0 1.2px, transparent 1.7px),
    radial-gradient(circle at 43% 34%, #fff8ec 0 1.2px, transparent 1.7px),
    radial-gradient(circle at 58% 72%, #f0c56d 0 1.3px, transparent 1.8px),
    radial-gradient(circle at 72% 28%, #b34d78 0 1.1px, transparent 1.6px),
    radial-gradient(circle at 86% 58%, #fff8ec 0 1.2px, transparent 1.7px),
    radial-gradient(circle at 35% 18%, #f0c56d 0 1px, transparent 1.5px),
    radial-gradient(circle at 65% 48%, #fff8ec 0 1px, transparent 1.5px);
  pointer-events: none;
}

.tier-top {
  --cake-dark: #ffb5cf;
  --cake-light: #ffe1eb;
  --cake-dark2: #ffa5c6;
  width: 54%;
  height: 56px;
  z-index: 3;
}

.tier-mid {
  --cake-dark: #ff9ec4;
  --cake-light: #ffd5e4;
  --cake-dark2: #f78bb4;
  width: 74%;
  height: 70px;
  margin-top: -6px;
  z-index: 2;
}

.tier-bottom {
  --cake-dark: #f984b0;
  --cake-light: #ffc8dc;
  --cake-dark2: #ec6f9e;
  width: 96%;
  height: 84px;
  margin-top: -6px;
  z-index: 1;
}

.plate {
  position: relative;
  width: 128%;
  max-width: 100vw;
  height: 24px;
  margin-top: -5px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 26%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 58%),
    linear-gradient(#fff9fc 0%, #ffe1ec 44%, #f3a9c4 76%, #dd7ea4 100%);
  box-shadow:
    0 20px 34px -14px rgba(120, 20, 70, 0.45),
    inset 0 2px 0 #fff,
    inset 0 -5px 10px rgba(160, 40, 85, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 4;
}

.plate-shine {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 3px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  filter: blur(0.6px);
}

.cake-crumbs {
  position: absolute;
  inset: 5px 7% 7px;
  background:
    radial-gradient(circle at 88% 52%, #d99a6c 0 1.4px, transparent 1.9px),
    radial-gradient(circle at 92% 38%, #c97f5b 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 66%, #f1c9a5 0 1.2px, transparent 1.7px),
    radial-gradient(circle at 9% 54%, #d99a6c 0 1px, transparent 1.5px),
    radial-gradient(circle at 14% 44%, #f1c9a5 0 1.1px, transparent 1.6px);
  opacity: 0.75;
}

.cake-status {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 13px 28px;
  border-radius: 2px;
  box-shadow: 0 18px 36px -26px rgba(120, 20, 70, 0.45);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.cake-status.done {
  color: var(--rose-deep);
  border-color: var(--champagne-soft);
}

.cake-stage.wished .cake {
  animation: cakeCheer 1s var(--ease);
}

/* Wish Reveal & Innovative Candle Finale */
.cake-stage {
  position: relative;
  transition: filter 0.8s var(--ease);
}

.cake-stage.wished {
  filter: drop-shadow(0 0 45px rgba(255, 180, 100, 0.35));
}

.wish-rising-orb {
  position: absolute;
  pointer-events: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #ffd700 60%, rgba(255, 100, 160, 0.4) 100%);
  box-shadow: 0 0 16px #ffd700, 0 0 32px #ff6b9a;
  animation: wishOrbRise 1.8s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
  z-index: 25;
}

@keyframes wishOrbRise {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  20% {
    opacity: 1;
    transform: translate(0, -20px) scale(1.1);
  }
  80% {
    opacity: 1;
    transform: translate(var(--tx, 0px), -120px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 0px), -150px) scale(0.2);
  }
}

/* Floating Wish Reveal Modal */
.wish-reveal-modal {
  width: 100%;
  max-width: 540px;
  margin-top: 10px;
  animation: wishCardReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes wishCardReveal {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wish-reveal-card {
  position: relative;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: clamp(26px, 5vw, 40px) clamp(20px, 4.5vw, 32px);
  text-align: center;
  box-shadow: 0 30px 70px -30px rgba(120, 20, 70, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.wish-constellation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--rose-deep);
  margin-bottom: 12px;
}

.wish-heart-star {
  font-size: 1.15rem;
  color: var(--rose);
  animation: beat 1.8s ease-in-out infinite;
}

.wish-reveal-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 400;
  margin-bottom: 12px;
}

.wish-reveal-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.6vw, 2.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ivory);
  line-height: 1.15;
  margin-bottom: 16px;
}

.wish-reveal-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.9rem, 2vw, 1.02rem);
  line-height: 1.85;
  color: var(--ivory-dim);
  max-width: 460px;
  margin: 0 auto 26px;
}

.wish-reveal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.slice-btn-icon {
  font-size: 1rem;
  margin-right: 4px;
}

/* Sliced Cake Piece on Plate */
.cake-slice-display {
  position: absolute;
  top: -30px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: scale(0.3) rotate(-15deg);
  transition: transform 0.6s cubic-bezier(0.18, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

.cake.sliced .cake-slice-display {
  opacity: 1;
  transform: scale(1.3) rotate(0deg);
}

.slice-cake {
  font-size: 1.8rem;
  filter: drop-shadow(0 6px 12px rgba(180, 40, 80, 0.3));
}

.slice-sparkle {
  color: #ffd700;
  font-size: 1rem;
  animation: twinkle 1.5s ease-in-out infinite;
}

/* Slice Celebration Message */
.slice-celebration {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  animation: floatIn 0.6s var(--ease) both;
}

.slice-msg {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.2vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  color: var(--rose-deep);
  line-height: 1.45;
}

/* ============================================================
   10 · sealed with love — envelope + letter
   ============================================================ */

.letter-eyebrow {
  margin-bottom: 18px;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.letter-eyebrow span {
  padding: 0 0.35em;
  letter-spacing: 0;
  color: var(--rose);
}

.envelope-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
  padding-top: 14px;
}

.letter-scene-glow {
  position: absolute;
  top: -30px;
  left: 50%;
  z-index: 0;
  width: min(760px, 100%);
  height: 560px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 45%, rgba(255, 186, 208, 0.55), rgba(255, 186, 208, 0) 70%);
  filter: blur(8px);
}

.letter-dust {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.letter-dust-mote {
  position: absolute;
  width: var(--size, 2px);
  height: var(--size, 2px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 198, 0.95), rgba(236, 174, 116, 0.4) 60%, transparent 72%);
  animation: dustDrift 14s ease-in-out infinite;
}

.envelope-wrap {
  position: relative;
  z-index: 2;
  width: min(430px, 88vw);
  perspective: 1700px;
}

.envelope {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 1.62 / 1;
  transform-style: preserve-3d;
  transform-origin: 50% 60%;
  animation: envelopeFloat 7.5s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

/* layered paper pieces ------------------------------------- */

.env-shadow {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: -7%;
  z-index: 0;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(96, 14, 48, 0.34), rgba(96, 14, 48, 0.12) 48%, transparent 72%);
  filter: blur(12px);
}

.env-back {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
  background: linear-gradient(155deg, #fffaf5, #f7e5e1 62%, #f0d6d8);
  box-shadow:
    0 30px 50px -30px rgba(90, 12, 42, 0.5),
    inset 0 0 0 1px rgba(176, 124, 84, 0.18);
}

.env-lining {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 8px 8px 0 0;
  clip-path: polygon(0 0, 50% 52%, 100% 0);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 222, 172, 0.28) 0 1.3px, transparent 1.9px) 0 0 / 19px 19px,
    radial-gradient(circle at 70% 40%, rgba(255, 222, 172, 0.16) 0 1px, transparent 1.6px) 0 0 / 23px 23px,
    linear-gradient(158deg, #9a1e4b, #6f0f33);
  box-shadow: inset 0 0 34px rgba(52, 4, 24, 0.55);
}

.env-peek {
  position: absolute;
  top: 6%;
  left: 8%;
  right: 8%;
  z-index: 3;
  height: 64%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 16px;
  border-radius: 3px 3px 0 0;
  background:
    repeating-linear-gradient(transparent 0 17px, rgba(196, 122, 146, 0.1) 17px 18px),
    linear-gradient(180deg, #fffdfa, #f9eee8);
  box-shadow: 0 -4px 16px rgba(90, 12, 42, 0.14);
  transform: translateY(12%);
  transition: transform 1s var(--ease) 0.18s;
}

.env-peek-line {
  width: 72%;
  height: 1px;
  background: rgba(150, 88, 112, 0.25);
}

.env-peek-line.short {
  width: 46%;
}

.env-peek-heart {
  margin-top: auto;
  align-self: flex-end;
  font-size: 0.72rem;
  color: var(--rose);
}

.env-front {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 8px;
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(120% 90% at 82% 6%, rgba(255, 255, 255, 0.85), transparent 54%),
    radial-gradient(86% 66% at 6% 96%, rgba(188, 120, 130, 0.12), transparent 62%),
    linear-gradient(32deg, transparent 49.75%, rgba(160, 90, 110, 0.06) 50%, transparent 50.25%),
    linear-gradient(-32deg, transparent 49.75%, rgba(160, 90, 110, 0.06) 50%, transparent 50.25%),
    linear-gradient(160deg, #fffaf6, #f8e8e4 58%, #f2dadd);
  box-shadow: inset 0 -14px 26px rgba(120, 30, 60, 0.08);
}

.env-front::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  height: 0;
  border-bottom: 1px solid rgba(176, 124, 84, 0.24);
  border-radius: 0 0 3px 3px;
  pointer-events: none;
}

/* postage stamp --------------------------------------------- */

.env-stamp {
  position: absolute;
  top: clamp(12px, 3.4vw, 18px);
  right: clamp(12px, 3.4vw, 18px);
  width: clamp(50px, 13vw, 64px);
  height: clamp(60px, 16vw, 78px);
  padding: 4px;
  background: #fffaf3;
  border: 1px solid rgba(150, 70, 100, 0.28);
  box-shadow: 0 4px 10px rgba(110, 20, 52, 0.16);
  transform: rotate(3.4deg);
}

.env-stamp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 55%),
    linear-gradient(160deg, #b32753, #7c1035);
  color: #ffe9df;
}

.env-stamp-heart {
  font-size: clamp(0.82rem, 2.2vw, 1rem);
  line-height: 1;
  color: #ffe1b7;
}

.env-stamp-word {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.66rem, 1.9vw, 0.82rem);
  line-height: 1;
}

.env-stamp-mail {
  font-size: clamp(0.28rem, 0.9vw, 0.34rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 233, 223, 0.72);
}

.env-postmark {
  position: absolute;
  bottom: -14px;
  left: -28px;
  width: clamp(40px, 10vw, 54px);
  height: auto;
  color: #8c5c72;
  opacity: 0.44;
  transform: rotate(-12deg);
  pointer-events: none;
}

/* hand-addressed front -------------------------------------- */

.env-address {
  position: absolute;
  left: clamp(16px, 4.6vw, 24px);
  bottom: clamp(16px, 4.4vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 62%;
  text-align: left;
}

.env-address-kicker {
  font-size: clamp(0.4rem, 1.2vw, 0.5rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8b5c6d;
}

.env-address-name {
  font-size: clamp(1.12rem, 4.4vw, 1.8rem);
  line-height: 1.02;
  color: #6f1b40;
  overflow-wrap: anywhere;
}

.env-address-line {
  width: 46px;
  height: 1px;
  margin: 2px 0 1px;
  background: linear-gradient(90deg, rgba(176, 124, 84, 0.7), transparent);
}

.env-address-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.6rem, 1.8vw, 0.74rem);
  line-height: 1.3;
  color: #9a6b7b;
}

/* flap + interior lining ------------------------------------ */

.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: 58%;
  border-radius: 8px 8px 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 40%),
    linear-gradient(165deg, #fdf5f0, #f4dddc);
  box-shadow: inset 0 -14px 22px rgba(120, 30, 60, 0.08);
  transition: transform 1s var(--ease), z-index 0s 0.48s;
}

.env-flap-lining {
  position: absolute;
  inset: 0;
  transform: rotateX(180deg);
  backface-visibility: hidden;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 222, 172, 0.22) 0 1.2px, transparent 1.8px) 0 0 / 19px 19px,
    linear-gradient(160deg, #a02150, #741132);
  box-shadow: inset 0 0 40px rgba(52, 4, 24, 0.5);
}

/* wax seal --------------------------------------------------- */

.env-seal {
  position: absolute;
  top: 47.5%;
  left: 50%;
  z-index: 6;
  width: clamp(54px, 13vw, 66px);
  height: clamp(54px, 13vw, 66px);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 14px rgba(74, 8, 32, 0.4));
  transition: transform 0.45s var(--ease), opacity 0.35s ease 0.42s;
}

.env-seal::before {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: 0;
  border-radius: 44% 56% 48% 52% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 38% 32%, #b5305a, #8a0f38 65%, #6c0729);
  transform: rotate(9deg);
  box-shadow: inset 0 0 12px rgba(40, 0, 16, 0.8);
  transition: opacity 0.25s ease;
}

.env-seal::after {
  content: "";
  position: absolute;
  inset: 9%;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.4), transparent 44%);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.env-seal-half {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #d24e77 0%, #a21a49 55%, #7f0f37 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 220, 230, 0.55),
    inset 0 -4px 10px rgba(60, 4, 26, 0.55),
    inset 0 0 0 2px rgba(245, 205, 160, 0.55);
  transition: transform 0.62s var(--ease), opacity 0.4s ease 0.2s;
}

.env-seal-half.top {
  clip-path: polygon(-2% -2%, 102% -2%, 102% 52%, 48% 47%, 0 52%);
}

.env-seal-half.bottom {
  clip-path: polygon(-2% 102%, 102% 102%, 102% 52%, 48% 47%, 0 52%);
}

.env-seal-letter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 3.2vw, 1.65rem);
  line-height: 1;
  color: #ffe8ea;
  text-shadow: 0 1px 0 rgba(110, 16, 48, 0.9), 0 -1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.envelope:hover .env-seal,
.envelope:focus-visible .env-seal {
  transform: translate(-50%, -50%) scale(1.06);
}

.envelope:hover .env-hint {
  color: var(--rose-deep);
}

.env-hint {
  position: absolute;
  bottom: -42px;
  left: 50%;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-size: 0.56rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: opacity 0.4s ease, color 0.4s ease;
}

.env-hint-icon {
  font-size: 0.52rem;
  letter-spacing: 0;
  color: var(--rose);
  animation: hintSparkle 2.4s ease-in-out infinite;
}

.env-hint-icon:last-child {
  animation-delay: 0.6s;
}

/* open state ------------------------------------------------- */

.envelope-stage.open .envelope {
  animation: none;
  transform: translateY(-4px) scale(0.9);
  transition: transform 1s var(--ease);
}

.envelope-stage.open .env-flap {
  transform: rotateX(-178deg);
  z-index: 0;
}

.envelope-stage.open .env-peek {
  transform: translateY(-30%) scale(1.015);
}

.envelope-stage.open .env-seal {
  opacity: 0;
  transition-delay: 0.5s;
  pointer-events: none;
}

.envelope-stage.open .env-seal::before,
.envelope-stage.open .env-seal::after {
  opacity: 0;
}

.envelope-stage.open .env-seal-half.top {
  transform: translate(-34%, -46%) rotate(-30deg);
}

.envelope-stage.open .env-seal-half.bottom {
  transform: translate(24%, 38%) rotate(24deg);
}

.envelope-stage.open .env-hint {
  opacity: 0;
}

/* the letter itself ------------------------------------------ */

.letter-panel {
  position: relative;
  z-index: 2;
  width: min(700px, 100%);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-14px);
  transition:
    max-height 1.25s var(--ease),
    opacity 0.85s ease 0.12s,
    transform 0.85s var(--ease) 0.12s,
    margin-top 1s var(--ease);
}

.envelope-stage.open .letter-panel {
  max-height: 1800px;
  opacity: 1;
  transform: none;
  margin-top: 56px;
  box-shadow: 0 60px 100px -60px rgba(100, 16, 48, 0.5);
}

.letter-sheet {
  position: relative;
  padding: clamp(36px, 5.4vw, 60px) clamp(24px, 5.4vw, 64px) clamp(28px, 4vw, 44px);
  border-radius: 3px;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(255, 205, 220, 0.34), transparent 62%),
    radial-gradient(80% 60% at 0% 100%, rgba(240, 200, 160, 0.16), transparent 65%),
    linear-gradient(180deg, transparent 33.2%, rgba(150, 100, 80, 0.07) 33.3%, transparent 33.6%),
    linear-gradient(180deg, transparent 66.2%, rgba(150, 100, 80, 0.07) 66.3%, transparent 66.6%),
    repeating-linear-gradient(0deg, rgba(150, 100, 80, 0.02) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #fffdf9 0%, #fff9f4 55%, #fff5ef 100%);
  color: var(--paper-ink);
  box-shadow:
    0 60px 100px -55px rgba(100, 16, 48, 0.55),
    0 20px 40px -30px rgba(100, 16, 48, 0.3),
    inset 0 0 0 1px rgba(180, 130, 90, 0.16);
}

.letter-sheet::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 0;
  border: 1px solid rgba(176, 124, 84, 0.26);
  pointer-events: none;
}

.letter-sheet > * {
  position: relative;
  z-index: 1;
}

.letter-sprig {
  position: absolute;
  top: 30px;
  right: 26px;
  z-index: 0;
  width: clamp(58px, 10vw, 84px);
  color: #b98b6e;
  opacity: 0.5;
  transform: rotate(7deg);
}

.letter-sprig path,
.letter-sprig circle {
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.letter-sheet-head {
  text-align: center;
  margin-bottom: clamp(22px, 3.4vw, 32px);
}

.letter-kicker {
  margin-bottom: 8px;
  font-size: 0.6rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: #9c6b7c;
}

.letter-date {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  line-height: 1;
  color: var(--rose-deep);
}

.letter-head-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 14px;
  color: var(--rose);
}

.letter-head-rule::before,
.letter-head-rule::after {
  content: "";
  width: min(110px, 18vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 124, 84, 0.5));
}

.letter-head-rule::after {
  transform: scaleX(-1);
}

.letter-head-rule i,
.letter-head-rule b {
  font-style: normal;
  font-weight: 400;
  font-size: 0.52rem;
}

.letter-head-rule b {
  font-size: 0.68rem;
  color: var(--rose-deep);
  animation: beat 3.2s ease-in-out infinite;
}

.letter-text {
  white-space: pre-line;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.002em;
  color: #432032;
  min-height: 4em;
}

.letter-text::first-letter {
  float: left;
  padding: 0.06em 0.1em 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 3.2em;
  line-height: 0.74;
  color: var(--rose-deep);
}

.letter-text::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.18em;
  background: var(--rose-deep);
  animation: caret 0.9s step-end infinite;
}

.envelope-stage.open .letter-text.done::after {
  display: none;
}

.letter-sign {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-top: clamp(24px, 3.4vw, 34px);
  text-align: right;
}

.letter-sign-note {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #a67787;
}

.letter-sign .script {
  font-size: clamp(2rem, 4.6vw, 2.6rem);
  line-height: 0.9;
  color: var(--rose-deep);
}

.letter-sign-heart {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--rose);
}

.letter-sheet-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(26px, 4vw, 38px);
  padding-top: 18px;
  border-top: 1px solid rgba(176, 124, 84, 0.22);
}

.letter-reseal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8c5c72;
  border-bottom: 1px solid rgba(176, 124, 84, 0.4);
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}

.letter-reseal:hover {
  gap: 12px;
  color: var(--rose-deep);
  border-color: var(--rose-deep);
}

.letter-reseal span {
  font-size: 0.82rem;
  letter-spacing: 0;
}


/* ============================================================
   11 · the little moments wall
   ============================================================ */

.memories-section {
  max-width: 1180px;
}

.memory-wall {
  position: relative;
  margin-top: clamp(6px, 1.5vw, 14px);
  padding: clamp(74px, 9vw, 104px) clamp(16px, 3.6vw, 44px) clamp(124px, 14vw, 168px);
  border-radius: 12px;
  background:
    radial-gradient(70% 55% at 16% 100%, rgba(255, 168, 88, 0.22), transparent 70%),
    radial-gradient(60% 50% at 84% 100%, rgba(255, 122, 92, 0.18), transparent 70%),
    radial-gradient(120% 80% at 50% -10%, rgba(255, 198, 128, 0.18), transparent 62%),
    linear-gradient(165deg, #3a2330 0%, #2e1b28 42%, #221321 100%);
  border: 1px solid rgba(255, 209, 160, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 220, 0.08),
    inset 0 -40px 80px -40px rgba(0, 0, 0, 0.7),
    0 60px 110px -70px rgba(70, 14, 48, 0.75);
  overflow: hidden;
  isolation: isolate;
}

.memory-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(20, 8, 18, 0.45) 100%);
}

.memory-wall-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 64%, rgba(0, 0, 0, 0.16) 0 1px, transparent 1.6px),
    repeating-linear-gradient(115deg, transparent 0 7px, rgba(255, 255, 255, 0.012) 7px 8px);
  background-size: 26px 26px, 38px 38px, auto;
}

/* warm fairy lights draped across the wall */
.wall-swag {
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: clamp(150px, 20vw, 250px);
  z-index: 1;
  pointer-events: none;
}

.wall-swag-wire {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wall-swag-wire path {
  fill: none;
  stroke: rgba(255, 190, 120, 0.38);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(255, 160, 70, 0.55));
}

/* little warm bulbs — shared by the wall swag and each photo frame */
.swag-bulb,
.frame-lights i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8e6, #ffd792 48%, #ffa252 100%);
  box-shadow:
    0 0 5px #ffd792,
    0 0 12px rgba(255, 176, 84, 0.95),
    0 0 26px rgba(255, 132, 58, 0.6);
  transform: translate(-50%, -50%);
  animation: bulbGlow 3s ease-in-out infinite;
}

.swag-bulb:nth-child(3n + 2),
.frame-lights i:nth-child(3n + 2) {
  background: radial-gradient(circle at 35% 30%, #fff3e2, #ffc3a0 48%, #ff8f6a 100%);
}

.swag-bulb:nth-child(4n),
.frame-lights i:nth-child(4n) {
  background: radial-gradient(circle at 35% 30%, #fff1d2, #ffb987 48%, #ff7a58 100%);
}

@keyframes bulbGlow {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.82); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
}

/* LED wire clipped around each photo */
.frame-wire {
  position: absolute;
  top: -7px;
  left: -6px;
  width: calc(100% + 12px);
  height: 48px;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

.frame-wire path {
  fill: none;
  stroke: rgba(255, 190, 120, 0.45);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(255, 160, 70, 0.65));
}

.frame-lights {
  position: absolute;
  top: -7px;
  left: -6px;
  width: calc(100% + 12px);
  height: 48px;
  pointer-events: none;
  z-index: 3;
}

.wall-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.wall-glow-a {
  width: 46%;
  aspect-ratio: 1;
  left: 4%;
  bottom: -18%;
  background: radial-gradient(circle, rgba(255, 160, 80, 0.32), transparent 66%);
  animation: wallWarmth 7s ease-in-out infinite;
}

.wall-glow-b {
  width: 40%;
  aspect-ratio: 1;
  right: 2%;
  bottom: -16%;
  background: radial-gradient(circle, rgba(255, 110, 80, 0.24), transparent 66%);
  animation: wallWarmth 9s ease-in-out infinite reverse;
}

@keyframes wallWarmth {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.memory-wall-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4.4vw, 48px) clamp(16px, 3vw, 34px);
  align-items: center;
  justify-items: center;
}

.memory-wall-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9% 4%;
  border: 2px solid rgba(255, 190, 120, 0.38);
  border-radius: 28px;
  background:
    linear-gradient(90deg, transparent 32.8%, rgba(255, 190, 120, 0.42) 33%, transparent 33.2%),
    linear-gradient(90deg, transparent 66.1%, rgba(255, 190, 120, 0.42) 66.3%, transparent 66.5%),
    linear-gradient(180deg, transparent 32.8%, rgba(255, 190, 120, 0.42) 33%, transparent 33.2%),
    linear-gradient(180deg, transparent 66.1%, rgba(255, 190, 120, 0.42) 66.3%, transparent 66.5%);
  box-shadow:
    0 0 8px rgba(255, 190, 120, 0.75),
    0 0 24px rgba(255, 132, 58, 0.32),
    inset 0 0 8px rgba(255, 190, 120, 0.4);
  pointer-events: none;
  animation: stripLightPulse 3.2s ease-in-out infinite;
}

@keyframes stripLightPulse {
  0%, 100% { opacity: .62; }
  50% { opacity: 1; }
}

/* photographs pinned to the wall */
.polaroid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
  animation: polaroidFloat 7s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.42));
}

.memory-wall .polaroid:hover {
  animation: none;
  transform: rotate(0deg) translateY(-10px) scale(1.03);
  filter: drop-shadow(0 34px 38px rgba(0, 0, 0, 0.5));
}

.polaroid-frame {
  position: relative;
  width: clamp(148px, 18vw, 212px);
  padding: 12px 12px 40px;
  background: linear-gradient(#fffdfe, #fff2f7);
  border-radius: 1px;
  box-shadow: 0 26px 44px -28px rgba(20, 6, 16, 0.8), inset 0 1px 0 #fff;
  border: 1px solid #ffd9e6;
}

.polaroid-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.polaroid-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070507;
}

.polaroid-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 60px 50px, rgba(160, 40, 85, 0.2), transparent);
  background-size: 80px 70px;
  opacity: 0.35;
}

.polaroid-photo-1 { background: linear-gradient(145deg, #ffd3e0, #ff9ec4 55%, #d4638a); }
.polaroid-photo-2 { background: linear-gradient(145deg, #f3d6f0, #d4a4e0 55%, #9c6aa6); }
.polaroid-photo-3 { background: linear-gradient(145deg, #ffe0c4, #ffb98f 55%, #c47a58); }
.polaroid-photo-4 { background: linear-gradient(145deg, #ffd0d8, #ff9aa9 55%, #c46a78); }

.polaroid-index {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: rgba(255, 250, 252, 0.7);
  text-shadow: 0 2px 20px rgba(120, 20, 70, 0.2);
}

.polaroid figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: #ffe7d2;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

@keyframes polaroidFloat {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50% { transform: rotate(var(--rot, 0deg)) translateY(-8px); }
}

/* little paper notes — soft places to keep words */
.wall-note {
  position: relative;
  width: clamp(150px, 15.5vw, 196px);
  min-height: clamp(150px, 15vw, 186px);
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: #5b2f3b;
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(154, 94, 90, 0.14) 27px 28px),
    linear-gradient(160deg, #fff8e6, #ffeecb 70%, #ffe3b4);
  border-radius: 2px;
  box-shadow: 0 18px 28px -18px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: rotate(var(--note-rot, -2deg));
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  animation: noteSway 8s ease-in-out infinite;
  animation-delay: var(--note-delay, 0s);
}

.wall-note-a {
  --note-rot: -2.6deg;
  --note-delay: 0.2s;
}

.wall-note-b {
  --note-rot: 2.2deg;
  --note-delay: 0.6s;
}

.wall-note:hover {
  animation: none;
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 26px 36px -18px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.wall-note p {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.55;
}

.wall-note-sign {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: #a11d4c;
  opacity: 0.85;
}

.wall-pin {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 11px;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd9e2, #d64a72 55%, #8e1c43);
  box-shadow: 0 2px 4px rgba(70, 10, 35, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.wall-note::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(90px 60px at 20% 0%, rgba(255, 255, 255, 0.7), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

@keyframes noteSway {
  0%, 100% { transform: rotate(var(--note-rot)) translateY(0); }
  50% { transform: rotate(calc(var(--note-rot) + 0.6deg)) translateY(-5px); }
}

/* shelf with warm candles */
.wall-shelf {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  height: clamp(100px, 12vw, 148px);
  pointer-events: none;
}

.wall-shelf-board {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: clamp(22px, 3vw, 34px);
  height: clamp(10px, 1.2vw, 14px);
  border-radius: 4px;
  background: linear-gradient(180deg, #6a4435, #43251f 55%, #2c1517);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 214, 170, 0.28);
}

.wall-candle {
  position: absolute;
  bottom: calc(clamp(22px, 3vw, 34px) + clamp(10px, 1.2vw, 14px) - 1px);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

.wall-candle-1 { left: 13%; }
.wall-candle-2 { left: 50%; transform: translateX(-50%); }
.wall-candle-3 { right: 12%; }

.wall-candle-body {
  position: relative;
  display: block;
  width: clamp(22px, 2.4vw, 30px);
  height: clamp(34px, 4.4vw, 56px);
  border-radius: 4px 4px 3px 3px;
  background: linear-gradient(90deg, #caa477, #f4dfba 32%, #fff2d7 52%, #e7c69c 76%, #c39d72);
  box-shadow:
    inset 0 -4px 8px rgba(120, 70, 35, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.7),
    0 8px 16px rgba(0, 0, 0, 0.35);
}

.wall-candle-body::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 18%;
  width: 32%;
  height: 18%;
  border-radius: 0 0 999px 999px;
  background: #fff2d7;
}

.wall-candle-body::after {
  content: "";
  position: absolute;
  top: 0;
  right: 12%;
  width: 22%;
  height: 34%;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(#fff2d7, #e9c99f);
}

.wall-candle-1 .wall-candle-body { height: clamp(30px, 3.8vw, 46px); }
.wall-candle-2 .wall-candle-body { width: clamp(26px, 2.8vw, 34px); height: clamp(42px, 5.4vw, 66px); }
.wall-candle-3 .wall-candle-body { height: clamp(26px, 3.2vw, 40px); }

.wall-candle-wick {
  position: relative;
  z-index: 1;
  width: 2px;
  height: 8px;
  margin-bottom: -1px;
  border-radius: 2px;
  background: #3a2020;
  box-shadow: 0 0 4px rgba(255, 150, 60, 0.6);
}

.wall-candle-flame {
  position: relative;
  width: 14px;
  height: 24px;
  margin-bottom: -2px;
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 72%, #fffdf0 0%, #ffe9a4 24%, #ffc65c 48%, #ff8f35 72%, rgba(255, 110, 40, 0.35) 88%, transparent 100%);
  box-shadow:
    0 0 12px 4px rgba(255, 168, 80, 0.55),
    0 0 30px 10px rgba(255, 120, 50, 0.28);
  transform-origin: 50% 100%;
  animation: flameDance 1.5s ease-in-out infinite alternate;
}

.wall-candle-flame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 4px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #fffef5;
  opacity: 0.95;
}

.wall-candle-2 .wall-candle-flame {
  width: 16px;
  height: 27px;
  animation-delay: -0.4s;
}

.wall-candle-3 .wall-candle-flame {
  animation-delay: -0.9s;
}

@keyframes flameDance {
  0% { transform: scale(0.94) rotate(-3deg); }
  50% { transform: scale(1.06) rotate(2deg); }
  100% { transform: scale(0.97) rotate(-1.5deg); }
}

/* ============================================================
   11b · songs that remind me of you
   ============================================================ */

.songs-section {
  max-width: 860px;
}

.soundtrack {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(320px, 1.3fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.now-playing {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(155, 50, 90, 0.16);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.7), rgba(255,225,237,.45));
  box-shadow: var(--shadow-card);
  text-align: center;
}

.now-playing::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(231, 84, 128, .15);
  filter: blur(35px);
}

.now-playing::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(214, 45, 104, .16);
  border-radius: 20px;
  pointer-events: none;
}

.now-playing-cover-wrap {
  position: relative;
  z-index: 1;
  width: min(86%, 310px);
  aspect-ratio: 576 / 200;
  display: grid;
  place-items: center;
  border: 8px solid #fff;
  border-radius: 16px;
  background: #050505;
  box-shadow: 0 20px 34px rgba(90, 18, 54, .24);
  transform: rotate(-2deg);
  transition: transform .35s var(--ease);
}
.now-playing-cover-wrap:hover { transform: rotate(0) scale(1.03); }
.now-playing-cover {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.cover-glow {
  position: absolute;
  inset: 12% 8%;
  background: var(--rose);
  filter: blur(28px);
  opacity: .25;
}
.player-eq {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 4px;
  height: 23px;
  margin-top: 20px;
}
.player-eq i {
  display: block;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--rose);
  animation: eqPulse .9s ease-in-out infinite alternate;
}
.player-eq i:nth-child(2) { height: 17px; animation-delay: -.3s; }
.player-eq i:nth-child(3) { height: 12px; animation-delay: -.6s; }
.player-eq i:nth-child(4) { height: 20px; animation-delay: -.15s; }
.player-eq i:nth-child(5) { height: 10px; animation-delay: -.45s; }
@keyframes eqPulse { to { transform: scaleY(.45); opacity: .55; } }

.soundtrack-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--rose);
  box-shadow: 0 9px 20px rgba(161, 29, 76, .35);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, box-shadow .2s ease;
}
.soundtrack-play:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 12px 25px rgba(161, 29, 76, .42); }
.soundtrack-play-icon { position: relative; z-index: 1; font-size: .9rem; }
.soundtrack-play-ring {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(231, 84, 128, .35);
  border-radius: 50%;
  animation: playRing 1.8s ease-out infinite;
}
@keyframes playRing { to { transform: scale(1.3); opacity: 0; } }

.song-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.song-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 4px;
  transition: padding .25s ease, background .25s ease;
}
.song-item:hover, .song-item.is-active {
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.52);
}
.song-item img {
  width: 180px;
  height: 72px;
  flex: 0 0 180px;
  object-fit: contain;
  background: #050505;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(90, 18, 54, .12);
}

@media (max-width: 520px) {
  .soundtrack { grid-template-columns: 1fr; }
  .now-playing { min-height: 285px; }
  .song-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; border-top: 0; }
  .song-item { padding: 0; border: 0; }
  .song-item:hover, .song-item.is-active { padding: 0; background: none; }
  .song-item img { width: 100%; height: auto; aspect-ratio: auto; flex-basis: auto; border-radius: 14px; }
}

/* ============================================================
   12 · the bouquet
   ============================================================ */

.bouquet-section {
  max-width: 1180px;
}

.bouquet-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vw, 38px);
  perspective: 1500px;
}

.bouquet-tilt {
  width: 100%;
  display: flex;
  justify-content: center;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bouquet {
  position: relative;
  width: min(880px, 100%);
  height: clamp(430px, 52vw, 580px);
  max-width: 100%;
  transform-origin: 50% 100%;
  animation: bouquetSway 8s ease-in-out infinite;
}

.flower {
  position: absolute;
  left: var(--x, 50%);
  bottom: var(--base, 24%);
  width: 64px;
  height: var(--h, 320px);
  padding: 0;
  border: 0;
  background: none;
  transform: translateX(-50%) rotate(var(--rot, 0deg));
  transform-origin: 50% 100%;
  cursor: pointer;
  z-index: var(--z, 1);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.flower-stem {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: calc(100% - var(--hs, 50px));
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, #2d5036, #79a46a 46%, #3a6841);
  box-shadow: 0 0 7px rgba(18, 46, 27, 0.35);
}

.flower-leaf {
  position: absolute;
  bottom: 27%;
  left: 50%;
  width: 40px;
  height: 15px;
  border-radius: 50% 0 50% 0;
  background: linear-gradient(135deg, #8fbb74, #356341 70%, #23462e);
  transform: translateX(-15px) rotate(-31deg);
  transform-origin: 0 50%;
  opacity: 0.95;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.flower-leaf::after {
  content: "";
  position: absolute;
  bottom: 230%;
  left: 46%;
  width: 34px;
  height: 13px;
  border-radius: 50% 0 50% 0;
  background: linear-gradient(135deg, #7fae6a, #2f5a3b 75%);
  transform: rotate(58deg);
  transform-origin: 0 50%;
  opacity: 0.9;
}

.flower-head {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--hs, 50px);
  height: calc(var(--hs, 50px) * 1.12);
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1.2), filter 0.5s ease;
  filter: drop-shadow(0 7px 10px rgba(120, 20, 70, 0.2));
}

.flower-head::after {
  content: "✦";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) scale(0.2) rotate(-30deg);
  font-size: 17px;
  line-height: 1;
  color: #fff3c9;
  text-shadow: 0 0 10px rgba(255, 216, 138, 0.9), 0 0 22px rgba(255, 158, 196, 0.7);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1.3);
  pointer-events: none;
}

/* Tulip petals */
.petal {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60%;
  height: 100%;
  border-radius: 50% 50% 38% 38% / 62% 62% 38% 38%;
  transform-origin: 50% 100%;
  background:
    linear-gradient(155deg, hsla(var(--hue, 340), 92%, 93%, 0.98) 0%, hsl(var(--hue, 340), 74%, 75%) 42%, hsl(var(--hue, 340), 62%, 55%) 78%, hsl(var(--hue, 340), 58%, 43%) 100%);
  box-shadow:
    inset -4px 0 8px rgba(120, 20, 70, 0.18),
    inset 3px 0 6px rgba(255, 255, 255, 0.38);
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1.25), filter 0.5s ease;
}

.petal-l {
  transform: translateX(-96%) rotate(-13deg);
}

.petal-c {
  transform: translateX(-50%);
  z-index: 2;
}

.petal-c::after {
  content: "";
  position: absolute;
  inset: 12% 22% 20% 18%;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.52), transparent 62%);
  filter: blur(1px);
}

.petal-r {
  transform: translateX(-4%) rotate(13deg);
}

/* Lily petals — six pale, pointed petals with a soft blush */
.lily .flower-head {
  height: calc(var(--hs, 56px) * 1.08);
}

.lily-petal {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 46%;
  height: 100%;
  border-radius: 54% 54% 44% 44% / 78% 78% 30% 30%;
  transform-origin: 50% 100%;
  background:
    linear-gradient(160deg, #fffdf8 0%, #fff2f5 34%, #ffd5e2 68%, #f4a4be 100%);
  box-shadow:
    inset -3px 0 7px rgba(160, 60, 100, 0.16),
    inset 2px 0 6px rgba(255, 255, 255, 0.7);
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1.25), filter 0.5s ease;
}

.lily-petal::after {
  content: "";
  position: absolute;
  inset: 16% 32% 28% 32%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 72%);
  filter: blur(1px);
}

.lily .lp1 { transform: translateX(-50%) rotate(-42deg); }
.lily .lp2 { transform: translateX(-50%) rotate(-25deg); z-index: 2; }
.lily .lp3 { transform: translateX(-50%) rotate(-8deg); z-index: 3; }
.lily .lp4 { transform: translateX(-50%) rotate(8deg); z-index: 3; }
.lily .lp5 { transform: translateX(-50%) rotate(25deg); z-index: 2; }
.lily .lp6 { transform: translateX(-50%) rotate(42deg); }

.lily-stamens {
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
  transition: transform 0.55s var(--ease);
}

.lily-stamens i {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2px;
  height: 30px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f7e2b2, #c99a53);
  transform-origin: 50% 100%;
  box-shadow: 0 0 4px rgba(200, 150, 90, 0.3);
}

.lily-stamens i::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 7px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(180deg, #b5712f, #8a4e1d);
}

.lily-stamens i:nth-child(1) { transform: rotate(-22deg); }
.lily-stamens i:nth-child(2) { transform: rotate(0deg); height: 34px; }
.lily-stamens i:nth-child(3) { transform: rotate(22deg); }

.flower:hover .flower-head,
.flower:focus-visible .flower-head {
  transform: translateX(-50%) scale(1.06) translateY(-3px);
}

.flower:focus-visible .flower-head {
  filter: drop-shadow(0 0 16px rgba(255, 190, 214, 0.8));
}

.tulip.bloomed .flower-head,
.lily.bloomed .flower-head {
  transform: translateX(-50%) scale(1.1) translateY(-4px);
  filter: drop-shadow(0 8px 16px rgba(160, 40, 90, 0.28)) drop-shadow(0 0 18px rgba(255, 190, 214, 0.55));
}

.tulip.bloomed .petal-l {
  transform: translateX(-108%) rotate(-35deg);
}

.tulip.bloomed .petal-r {
  transform: translateX(8%) rotate(35deg);
}

.tulip.bloomed .petal-c {
  transform: translateX(-50%) scaleY(1.1) translateY(-3px);
}

.lily.bloomed .lp1 { transform: translateX(-50%) rotate(-58deg) translateY(-2px); }
.lily.bloomed .lp2 { transform: translateX(-50%) rotate(-33deg) translateY(-4px); }
.lily.bloomed .lp3 { transform: translateX(-50%) rotate(-11deg) translateY(-5px); }
.lily.bloomed .lp4 { transform: translateX(-50%) rotate(11deg) translateY(-5px); }
.lily.bloomed .lp5 { transform: translateX(-50%) rotate(33deg) translateY(-4px); }
.lily.bloomed .lp6 { transform: translateX(-50%) rotate(58deg) translateY(-2px); }

.lily.bloomed .lily-stamens {
  transform: translateY(-5px) scale(1.08);
}

.flower.bloomed .flower-head::after {
  opacity: 1;
  transform: translateX(-50%) scale(1) rotate(12deg);
}

.bouquet-wrap {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 54%;
  height: 46%;
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 79% 100%, 21% 100%);
  background:
    linear-gradient(90deg, rgba(120, 20, 70, 0.18), transparent 18%, rgba(255, 255, 255, 0.4) 48%, transparent 76%, rgba(120, 20, 70, 0.2)),
    linear-gradient(180deg, #fff4f8 0%, #ffdbe7 46%, #f7b3cb 100%);
  box-shadow: 0 12px 32px rgba(120, 20, 70, 0.18);
  z-index: 40;
}

.bouquet-wrap-fold {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(180, 80, 120, 0.2) 49.9%, transparent 50.5%),
    repeating-linear-gradient(78deg, rgba(255, 255, 255, 0.38) 0 1px, transparent 1px 20px);
  opacity: 0.75;
  pointer-events: none;
}

.bouquet-ribbon {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 22%;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffd9e6 0%, #e75480 44%, #b83360 100%);
  box-shadow:
    0 3px 8px rgba(120, 20, 70, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.bouquet-bow {
  position: absolute;
  left: 50%;
  bottom: 19%;
  width: 92px;
  height: 56px;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.bouquet-bow i {
  position: absolute;
  top: 4px;
  width: 43px;
  height: 31px;
  border-radius: 60% 40% 55% 45% / 60% 55% 45% 40%;
  background: linear-gradient(160deg, #ffe0eb, #e75480 68%, #c33b69);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 4px 10px rgba(120, 20, 70, 0.22);
}

.bouquet-bow i:first-child {
  left: 0;
  transform: rotate(18deg);
}

.bouquet-bow i:nth-child(2) {
  right: 0;
  transform: rotate(-18deg);
}

.bouquet-bow b {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 19px;
  height: 19px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 4px;
  background: linear-gradient(135deg, #ffe0eb, #d63e6e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.bouquet-bow::before,
.bouquet-bow::after {
  content: "";
  position: absolute;
  top: 34px;
  width: 11px;
  height: 46px;
  border-radius: 2px 2px 50% 50%;
  background: linear-gradient(180deg, #e75480, #b83360);
  box-shadow: 0 4px 10px rgba(120, 20, 70, 0.18);
}

.bouquet-bow::before {
  left: 27px;
  transform: rotate(9deg);
}

.bouquet-bow::after {
  right: 27px;
  transform: rotate(-9deg);
}

.bouquet-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(660px, 100%);
  text-align: center;
}

.bouquet-count {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.bouquet-count strong {
  color: var(--rose-deep);
  font-weight: 500;
}

@keyframes bouquetSway {
  0%, 100% { transform: rotate(-0.5deg) translateY(0); }
  50% { transform: rotate(0.6deg) translateY(-7px); }
}

/* ============================================================
   13 · the night sky
   ============================================================ */

.sky-section {
  max-width: 1180px;
}

.sky-stage {
  position: relative;
  width: 100%;
  height: clamp(520px, 78vh, 780px);
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(255, 158, 196, 0.28);
  background:
    radial-gradient(1000px 620px at 22% 14%, rgba(72, 86, 168, 0.22), transparent 66%),
    radial-gradient(820px 560px at 84% 74%, rgba(120, 40, 104, 0.2), transparent 66%),
    radial-gradient(720px 520px at 54% 108%, rgba(70, 34, 114, 0.24), transparent 66%),
    linear-gradient(155deg, #05030d, #0a0615 46%, #0d0718 74%, #06030b);
  box-shadow:
    0 60px 100px -60px rgba(120, 20, 70, 0.6),
    inset 0 0 140px rgba(6, 2, 10, 0.65);
  isolation: isolate;
}

#sky-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

#sky-canvas.over-star {
  cursor: pointer;
}

#sky-canvas.dragging {
  cursor: grabbing;
}

.sky-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, transparent 46%, rgba(8, 2, 12, 0.5) 100%);
  mix-blend-mode: multiply;
}

.sky-hud {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: none;
  color: #ffe6ef;
  transition: opacity 0.6s var(--ease);
}

.sky-stage.is-final .sky-hud {
  opacity: 0;
}

.sky-count {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 230, 239, 0.62);
  white-space: nowrap;
}

.sky-count strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0;
  color: #ffd6e4;
  text-shadow: 0 0 22px rgba(255, 158, 196, 0.6);
}

.sky-meter {
  position: relative;
  flex: 1;
  max-width: 150px;
  height: 1px;
  background: rgba(255, 230, 239, 0.18);
}

.sky-meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #e75480, #ffd6e4);
  box-shadow: 0 0 10px rgba(231, 84, 128, 0.8);
  transition: width 0.6s var(--ease);
}

.sky-hint {
  margin-left: auto;
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 230, 239, 0.45);
  white-space: nowrap;
}

.sky-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  width: min(380px, calc(100% - 48px));
  padding: 26px 28px 24px;
  border-radius: 2px;
  background: rgba(22, 7, 24, 0.78);
  border: 1px solid rgba(255, 158, 196, 0.32);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.sky-card.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.sky-card-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(255, 230, 239, 0.55);
  transition: color 0.3s ease;
}

.sky-card-close:hover {
  color: #ffd6e4;
}

.sky-card-kicker {
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #ff9ec4;
  margin-bottom: 12px;
}

.sky-card-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.45;
  color: #fff2f7;
}

.sky-card-note {
  margin-top: 16px;
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 230, 239, 0.38);
}

.sky-final {
  position: absolute;
  left: 50%;
  top: 24px;
  z-index: 3;
  width: min(520px, calc(100% - 48px));
  padding: 20px 26px;
  border-radius: 2px;
  text-align: center;
  background: rgba(22, 7, 24, 0.78);
  border: 1px solid rgba(255, 158, 196, 0.32);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translate(-50%, -14px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.sky-final.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.sky-final-kicker {
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #ff9ec4;
}

.sky-final-text {
  margin: 8px 0 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #fff2f7;
}

.sky-final .btn {
  padding: 11px 20px;
  color: #ffe6ef;
  border-color: rgba(255, 158, 196, 0.35);
  background: transparent;
}

.sky-final .btn:hover {
  background: rgba(255, 158, 196, 0.12);
  border-color: #ff9ec4;
  color: #fff2f7;
}

@media (max-width: 620px) {
  .sky-stage { height: clamp(480px, 80vh, 660px); }
  .sky-hud { top: 16px; left: 18px; right: 18px; gap: 12px; }
  .sky-hint { display: none; }
  .sky-card { left: 16px; bottom: 16px; width: calc(100% - 32px); padding: 22px 22px 20px; }
  .sky-final { top: 16px; width: calc(100% - 32px); padding: 16px 18px; }
}

/* ============================================================
   14 · the video wish + footer
   ============================================================ */

.video-section {
  max-width: 1000px;
}

.video-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.video-frame {
  position: relative;
  width: min(430px, 86vw);
  aspect-ratio: 9 / 16;
  border-radius: 4px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #2a1622, #0b0710 72%);
  border: 1px solid rgba(255, 236, 220, 0.2);
  box-shadow:
    0 44px 90px -46px rgba(0, 0, 0, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  isolation: isolate;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 224, 236, 0.12);
  border-radius: 2px;
  pointer-events: none;
  z-index: 4;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255, 214, 232, 0.2), transparent);
  background-size: 90px 80px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 3;
}

.video-frame.dragover {
  border-color: var(--rose);
  box-shadow:
    0 0 0 3px rgba(231, 84, 128, 0.22),
    0 44px 90px -46px rgba(0, 0, 0, 0.75);
}

.wish-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #08050b;
  z-index: 1;
}

.video-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 42px) clamp(20px, 5vw, 38px);
  overflow: hidden;
  text-align: center;
  background: #120910;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.video-poster.hidden,
.video-frame.playing .video-poster {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-cover {
  position: absolute;
  top: -6%;
  left: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  opacity: 0.88;
  filter: blur(10px) brightness(0.62) saturate(0.88);
  transform: scale(1.06);
  pointer-events: none;
  animation: coverDrift 20s ease-in-out infinite alternate;
}

.video-cover-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(72% 52% at 50% 42%, rgba(255, 158, 196, 0.2), transparent 68%),
    linear-gradient(180deg, rgba(15, 7, 13, 0.78), rgba(15, 7, 13, 0.28) 34%, rgba(15, 7, 13, 0.52) 64%, rgba(15, 7, 13, 0.92));
  pointer-events: none;
}

.video-cover-grain {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  mix-blend-mode: soft-light;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.video-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 48%, transparent 34%, rgba(6, 3, 7, 0.64) 100%);
  pointer-events: none;
}

.video-frame-line {
  position: absolute;
  inset: 11px;
  z-index: 3;
  border: 1px solid rgba(255, 233, 214, 0.26);
  border-radius: 2px;
  pointer-events: none;
}

.video-frame-line::before,
.video-frame-line::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 46px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 233, 214, 0.55), transparent);
}

.video-frame-line::before {
  top: -1px;
}

.video-frame-line::after {
  bottom: -1px;
}

.video-poster-top {
  position: absolute;
  top: clamp(20px, 4.6vw, 30px);
  left: clamp(20px, 4.6vw, 30px);
  right: clamp(20px, 4.6vw, 30px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.video-tag,
.video-duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 233, 214, 0.22);
  border-radius: 999px;
  background: rgba(22, 11, 18, 0.34);
  backdrop-filter: blur(6px);
  font-size: 0.46rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 238, 232, 0.8);
  white-space: nowrap;
}

.video-tag-heart {
  font-size: 0.66rem;
  letter-spacing: 0;
  color: #ffa8c6;
}

.video-duration {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  color: rgba(255, 238, 232, 0.66);
}

.video-poster-inner {
  position: relative;
  z-index: 4;
  max-width: 330px;
  padding-top: 16px;
}

.video-poster-title {
  font-size: clamp(2.05rem, 6.4vw, 3rem);
  line-height: 0.92;
  color: #fff5ef;
  text-shadow: 0 2px 26px rgba(50, 4, 24, 0.55);
}

.video-poster-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 16px auto;
  color: rgba(255, 214, 226, 0.8);
}

.video-poster-rule i {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 230, 0.55));
}

.video-poster-rule i:last-child {
  transform: scaleX(-1);
}

.video-poster-rule b {
  font-size: 0.62rem;
  font-weight: 400;
  color: #ffb0c8;
}

.video-poster-text {
  max-width: 272px;
  margin: 0 auto;
  font-size: clamp(0.74rem, 1.7vw, 0.84rem);
  line-height: 1.8;
  color: rgba(255, 240, 236, 0.7);
}

.video-play {
  position: relative;
  width: clamp(64px, 8vw, 78px);
  height: clamp(64px, 8vw, 78px);
  margin: 22px auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 222, 234, 0.6);
  background: radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08) 46%, rgba(217, 47, 105, 0.32));
  box-shadow:
    0 0 0 0 rgba(255, 158, 196, 0.4),
    0 20px 46px -16px rgba(196, 37, 88, 0.8);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
  animation: playPulse 3.4s ease-out infinite;
}

.video-play::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 228, 0.18);
  pointer-events: none;
}

.video-play:hover {
  transform: scale(1.07);
  box-shadow:
    0 0 0 8px rgba(255, 158, 196, 0.1),
    0 22px 48px -16px rgba(231, 84, 128, 0.85);
}

.video-play-icon {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 16px solid #fff4f8;
  border-top: 9.5px solid transparent;
  border-bottom: 9.5px solid transparent;
  filter: drop-shadow(0 0 8px rgba(255, 158, 196, 0.6));
}

.video-poster-note {
  margin-top: 18px;
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 224, 232, 0.48);
}

.video-poster-note.error {
  color: #ffc4d6;
}

/* ============================================================
   15 · the time capsule
   ============================================================ */

.capsule-section {
  max-width: 1080px;
}

.capsule-stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  min-height: 430px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(155, 50, 90, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 226, 237, 0.28));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.capsule-orbit {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(255, 196, 218, 0.22) 42%, transparent 70%);
}

.capsule-ring {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(214, 45, 104, 0.28);
  border-radius: 50%;
  transform: rotate(-24deg) scaleY(0.42);
}

.capsule-ring-b {
  inset: 4%;
  border-color: rgba(167, 80, 134, 0.22);
  transform: rotate(38deg) scaleY(0.28);
}

.capsule-token {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 45, 104, 0.42);
  border-radius: 50%;
  color: var(--rose-deep);
  font-family: var(--font-display);
  font-size: 2rem;
  background: radial-gradient(circle at 34% 26%, #fff, #ffd8e6 52%, #ffabc8);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.28), 0 20px 50px rgba(177, 42, 94, 0.25);
  transform: translate(-50%, -50%);
  transition: transform 0.8s var(--ease), box-shadow 0.8s ease;
}

.capsule-token.sealed {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.34), 0 0 60px rgba(231, 84, 128, 0.58);
}

.capsule-star {
  position: absolute;
  color: var(--rose);
  animation: capsuleFloat 4s ease-in-out infinite;
}

.capsule-star-a { left: 16%; top: 26%; font-size: 1.2rem; }
.capsule-star-b { right: 12%; top: 38%; animation-delay: -1.3s; }
.capsule-star-c { left: 24%; bottom: 20%; font-size: 1.3rem; animation-delay: -2.4s; }

.capsule-panel {
  max-width: 500px;
}

.capsule-panel-kicker,
.capsule-note {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.capsule-message {
  min-height: 112px;
  margin: 18px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.14;
  color: var(--ivory);
}

.capsule-form textarea {
  width: 100%;
  min-height: 112px;
  padding: 16px 18px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font: inherit;
  line-height: 1.6;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.42);
}

.capsule-form textarea:focus {
  outline: 1px solid var(--rose);
  border-color: var(--rose);
}

.capsule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.capsule-note {
  margin-top: 18px;
  color: var(--muted-2);
  letter-spacing: 0.12em;
}

@keyframes capsuleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.65; }
  50% { transform: translateY(-10px) rotate(8deg); opacity: 1; }
}

@keyframes coverDrift {
  0% { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(0, -1.5%, 0); }
}

@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 158, 196, 0.35), 0 18px 44px -14px rgba(231, 84, 128, 0.65); }
  70% { box-shadow: 0 0 0 20px rgba(255, 158, 196, 0), 0 18px 44px -14px rgba(231, 84, 128, 0.65); }
  100% { box-shadow: 0 0 0 0 rgba(255, 158, 196, 0), 0 18px 44px -14px rgba(231, 84, 128, 0.65); }
}

.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(70px, 10vw, 120px) 24px 72px;
  border-top: 1px solid var(--line-strong);
  margin: 0 clamp(20px, 6vw, 90px);
}

.footer-heart {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--rose);
  display: inline-block;
  animation: beat 3.2s ease-in-out infinite;
}

.footer p {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
  margin-top: 12px;
}

.footer-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.2 !important;
  color: var(--rose-deep);
  margin-top: 10px !important;
}

.footer-small {
  margin-top: 26px !important;
  font-size: 0.56rem !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ============================================================
   14 · floating notes & trails
   ============================================================ */

.trail-heart {
  position: fixed;
  z-index: 65;
  color: var(--trail-color, #e75480);
  font-size: var(--ts, 12px);
  pointer-events: none;
  animation: trailFade 1s ease-out forwards;
  will-change: transform, opacity;
}

.click-heart {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: var(--rose);
  pointer-events: none;
  animation: clickPop 0.9s var(--ease) forwards;
  text-shadow: 0 0 16px rgba(231, 84, 128, 0.6);
  z-index: 90;
}

/* ============================================================
   15 · keyframes
   ============================================================ */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.14); }
  28% { transform: scale(1); }
  42% { transform: scale(1.08); }
  56% { transform: scale(1); }
}

@keyframes driftGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(36px, 26px, 0) scale(1.12); }
}

@keyframes rise {
  0% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  25% { transform: translate3d(22px, -34vh, 0) rotate(3deg); }
  50% { transform: translate3d(-18px, -66vh, 0) rotate(-2deg); }
  75% { transform: translate3d(18px, -98vh, 0) rotate(3deg); }
  100% { transform: translate3d(-4px, -134vh, 0) rotate(-2deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(20deg); }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes cakeBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes cakeCheer {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-12px) scale(1.02) rotate(-1deg); }
  60% { transform: translateY(-3px) scale(1.01) rotate(0.8deg); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-3deg); filter: brightness(1); }
  50% { transform: translateX(-50%) scale(0.94, 1.07) rotate(2deg); filter: brightness(1.06); }
  100% { transform: translateX(-50%) scale(1.05, 0.96) rotate(-1deg); filter: brightness(1); }
}

@keyframes smoke {
  0% { opacity: 0.6; transform: translate(-50%, 0) scale(0.6); }
  100% { opacity: 0; transform: translate(-50%, -54px) scale(2.2); }
}

@keyframes envelopeFloat {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-9px) rotate(0.5deg); }
}

@keyframes hintSparkle {
  0%, 100% { opacity: 0.35; transform: translateY(0) scale(0.9); }
  50% { opacity: 1; transform: translateY(-2px) scale(1.1); }
}

@keyframes dustDrift {
  0%, 100% { opacity: 0.15; transform: translate3d(0, 0, 0) scale(0.9); }
  50% { opacity: 0.85; transform: translate3d(14px, -20px, 0) scale(1.15); }
}

@keyframes popBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes popOut {
  0% { transform: scale(1); opacity: 1; }
  45% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

@keyframes trailFade {
  0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -160%) scale(0.4) rotate(30deg); }
}

@keyframes clickPop {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.4); }
  60% { opacity: 1; transform: translate(-50%, -80%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -140%) scale(0.8); }
}

@keyframes driftUp {
  0% { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.8); }
  12% { opacity: 0.55; }
  80% { opacity: 0.35; }
  100% { opacity: 0; transform: translateY(-108vh) rotate(30deg) scale(1.05); }
}

@keyframes driftUpStar {
  0% { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.6); }
  10% { opacity: 0.9; }
  70% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-112vh) rotate(300deg) scale(1.2); }
}

@keyframes equalize {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

@keyframes caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================================
   16 · responsive
   ============================================================ */

@media (max-width: 980px) {
  .memory-wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 26px;
  }
}

@media (max-width: 760px) {
  .capsule-stage {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .capsule-panel {
    max-width: none;
  }


  .bouquet {
    height: clamp(390px, 72vw, 500px);
  }

  .bouquet-wrap {
    width: 62%;
  }
}

@media (max-width: 620px) {
  .memory-wall {
    padding: 70px 18px 126px;
  }

  .memory-wall-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 34px;
  }

  .polaroid {
    width: min(258px, 78vw);
  }

  .polaroid-frame {
    width: 100%;
  }

  .wall-note {
    width: min(250px, 76vw);
    min-height: 150px;
  }


  .wall-candle-1 { left: 9%; }
  .wall-candle-3 { right: 8%; }

  .bouquet {
    height: 420px;
  }

  .bouquet-wrap {
    width: 70%;
    height: 44%;
  }

  .bouquet-bow {
    transform: translateX(-50%) scale(0.85);
    transform-origin: 50% 100%;
  }

  .bouquet-panel {
    gap: 12px;
  }

}

@media (max-width: 520px) {
  .hero {
    padding-top: 100px;
  }

  .music-toggle {
    top: 14px;
    right: 14px;
    padding: 9px 13px;
  }

  .letter-eyebrow {
    letter-spacing: 0.3em;
  }

  .env-hint {
    bottom: -38px;
    gap: 7px;
    font-size: 0.5rem;
    letter-spacing: 0.26em;
  }

  .env-address {
    left: 15px;
    bottom: 15px;
    max-width: 68%;
  }

  .env-address-kicker {
    letter-spacing: 0.22em;
  }

  .env-address-note {
    font-size: 0.6rem;
  }

  .env-stamp {
    top: 11px;
    right: 11px;
    width: 48px;
    height: 61px;
    padding: 3px;
  }

  .env-postmark {
    bottom: -9px;
    left: -21px;
    width: 40px;
  }

  .letter-panel {
    width: 100%;
  }

  .envelope-stage.open .letter-panel {
    margin-top: 44px;
  }

  .letter-sheet {
    padding: 34px 22px 26px;
  }

  .letter-sheet::before {
    inset: 9px;
  }

  .letter-sprig {
    top: 24px;
    right: 14px;
    width: 54px;
    opacity: 0.36;
  }

  .letter-text {
    font-size: 1rem;
    line-height: 1.85;
  }

  .letter-sheet-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .video-poster {
    padding: 24px 18px;
  }

  .video-poster-inner {
    max-width: 280px;
    padding-top: 10px;
  }

  .video-poster-top {
    top: 18px;
    left: 18px;
    right: 18px;
  }

  .video-tag,
  .video-duration {
    padding: 5px 9px;
    font-size: 0.42rem;
    letter-spacing: 0.16em;
  }

  .video-poster-title {
    font-size: 2rem;
  }

  .video-poster-rule {
    margin: 13px auto;
  }

  .video-poster-text {
    max-width: 240px;
    font-size: 0.72rem;
    line-height: 1.75;
  }

  .video-play {
    width: 62px;
    height: 62px;
    margin-top: 18px;
  }

  .video-play-icon {
    border-left-width: 14px;
    border-top-width: 8.5px;
    border-bottom-width: 8.5px;
  }

  .video-poster-note {
    margin-top: 16px;
    font-size: 0.46rem;
    letter-spacing: 0.24em;
  }

  .divider {
    gap: 12px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .bouquet {
    height: 390px;
  }

  .bouquet-wrap {
    width: 78%;
    height: 43%;
  }

  .video-frame {
    width: 100%;
    aspect-ratio: 9 / 16;
  }
}

@media (hover: none) {
  .trail-heart {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .balloon,
  .sparkle,
  .ambient-heart,
  .ambient-star,
  .trail-heart {
    display: none;
  }
}
