:root {
  --bg-cream: #fff9fb;
  --bg-blush: #fff0f5;
  --bg-rose: #ffe2ec;
  --pink-pastel: #ffb6cf;
  --pink-soft: #ff8fb5;
  --pink-accent: #e04f7f;
  --burgundy: #8b1e41;
  --burgundy-deep: #5e112b;
  --red-heart: #e63956;

  --text-main: #4a2331;
  --text-muted: #7a4b5b;
  --paper-bg: #fffdf9;
  --paper-border: #f6d4df;

  --envelope-back: #f8c6d7;
  --envelope-pocket-side: #ffdbe7;
  --envelope-pocket-bottom: #ffc9dc;
  --envelope-flap: #ffe7ef;

  --shadow-soft: 0 14px 36px rgba(139, 30, 65, 0.11);
  --shadow-card: 0 12px 28px rgba(122, 42, 68, 0.13);
  --shadow-hover: 0 20px 42px rgba(139, 30, 65, 0.2);

  --font-display: "Georgia", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: linear-gradient(180deg, #fff5f8 0%, #fffafc 38%, #fff1f6 72%, #ffeaf2 100%);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(14px, 4vw, 32px);
}

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 8vw, 104px);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 182, 207, 0.7);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(224, 79, 127, 0.08);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.65rem, 4.2vw, 2.6rem);
  line-height: 1.25;
  color: var(--burgundy-deep);
}

.ambient-layer,
.burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-layer {
  z-index: 0;
}

.burst-layer {
  z-index: 100;
}

.ambient-heart {
  position: absolute;
  bottom: -48px;
  opacity: 0;
  fill: var(--pink-soft);
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}

@keyframes floatUp {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(var(--h-scale, 1));
    opacity: 0;
  }
  12% {
    opacity: var(--h-opacity, 0.35);
  }
  50% {
    transform: translate3d(var(--h-drift, 24px), -52vh, 0) rotate(14deg) scale(var(--h-scale, 1));
  }
  88% {
    opacity: var(--h-opacity, 0.35);
  }
  100% {
    transform: translate3d(calc(var(--h-drift, 24px) * -0.7), -110vh, 0) rotate(-18deg) scale(var(--h-scale, 1));
    opacity: 0;
  }
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
  background: radial-gradient(circle at 50% 35%, #fff9fb 0%, #ffe6ef 55%, #ffd9e7 100%);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.65;
}

.hero-glow--top {
  width: clamp(220px, 40vw, 460px);
  height: clamp(220px, 40vw, 460px);
  top: -10%;
  left: -8%;
  background: #ffb6cf;
}

.hero-glow--bottom {
  width: clamp(240px, 42vw, 500px);
  height: clamp(240px, 42vw, 500px);
  bottom: -14%;
  right: -8%;
  background: #ffc9dc;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
  animation: heroFadeUp 0.8s ease both;
}

.ornament-line {
  width: clamp(44px, 10vw, 88px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink-accent), transparent);
}

.ornament-heart {
  fill: var(--pink-accent);
  filter: drop-shadow(0 2px 8px rgba(224, 79, 127, 0.35));
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
  padding-inline: clamp(18px, 5vw, 44px);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.35rem, 8.2vw, 4.75rem);
  line-height: 1.15;
  color: var(--burgundy-deep);
  text-shadow: 0 6px 24px rgba(139, 30, 65, 0.14);
  animation: heroFadeUp 0.9s ease 0.12s both;
}

.heart-beat {
  display: inline-block;
  animation: heartPulse 1.9s ease-in-out infinite;
  transform-origin: center;
}

@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
  }
  18% {
    transform: scale(1.16);
  }
  34% {
    transform: scale(0.98);
  }
  52% {
    transform: scale(1.1);
  }
}

.sparkle {
  position: absolute;
  width: clamp(16px, 3vw, 24px);
  height: clamp(16px, 3vw, 24px);
  fill: #fff;
  filter: drop-shadow(0 0 8px rgba(224, 79, 127, 0.5));
  animation: twinkle 3.2s ease-in-out infinite;
}

.sparkle--1 {
  top: -10px;
  left: 0;
  animation-delay: 0s;
}

.sparkle--2 {
  top: 8px;
  right: 0;
  animation-delay: 1.1s;
}

.sparkle--3 {
  bottom: -6px;
  left: 14%;
  width: 14px;
  height: 14px;
  animation-delay: 2.1s;
}

@keyframes twinkle {
  0%, 100% {
    transform: scale(0.75) rotate(0deg);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.15) rotate(22deg);
    opacity: 1;
  }
}

.hero-subtitle {
  margin: 18px auto 34px;
  max-width: 520px;
  font-size: clamp(1rem, 2.7vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 400;
  animation: heroFadeUp 0.9s ease 0.28s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #f06595 0%, #c92a5c 100%);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(201, 42, 92, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: heroFadeUp 0.9s ease 0.45s both;
}

.hero-cta svg {
  animation: gentleBounce 2.2s ease-in-out infinite;
}

@keyframes gentleBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@media (hover: hover) {
  .hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(201, 42, 92, 0.36);
  }
}

.hero-cta:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 4px;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.photos-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 236, 243, 0.6) 100%);
}

.photos-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr) minmax(0, 1fr);
  grid-template-areas:
    "left1 main right1"
    "left2 main right2";
  gap: clamp(18px, 2.8vw, 32px);
  align-items: center;
}

.photo-card {
  position: relative;
  margin: 0;
  padding: clamp(10px, 1.6vw, 15px) clamp(10px, 1.6vw, 15px) clamp(26px, 3vw, 36px);
  background: #fffdfb;
  border: 1px solid rgba(255, 198, 218, 0.65);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s ease,
    opacity 0.75s ease;
}

.photo-card--main {
  grid-area: main;
  --tilt: 0deg;
  padding: clamp(12px, 2vw, 18px) clamp(12px, 2vw, 18px) clamp(32px, 3.5vw, 44px);
  background: linear-gradient(180deg, #ffffff 0%, #fff7fa 100%);
  box-shadow: 0 20px 46px rgba(139, 30, 65, 0.18), 0 0 0 6px rgba(255, 224, 235, 0.55);
  z-index: 2;
}

.photo-card--main::before {
  content: "♥";
  position: absolute;
  top: -14px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #ff75a0, #d6336c);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(214, 51, 108, 0.32);
}

.photo-card--2 {
  grid-area: left1;
  --tilt: -3.2deg;
}

.photo-card--3 {
  grid-area: left2;
  --tilt: 2.6deg;
}

.photo-card--4 {
  grid-area: right1;
  --tilt: 3.2deg;
}

.photo-card--5 {
  grid-area: right2;
  --tilt: -2.6deg;
}

.js-ready .photo-card.reveal {
  transform: translateY(28px) rotate(var(--tilt, 0deg));
}

.js-ready .photo-card.reveal.is-visible {
  transform: translateY(0) rotate(var(--tilt, 0deg));
}

@media (hover: hover) {
  .js-ready .photo-card.reveal.is-visible:hover,
  .photo-card:hover {
    transform: translateY(-6px) rotate(0deg) scale(1.04);
    box-shadow: var(--shadow-hover);
    z-index: 6;
  }
}

.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffe8f0 0%, #ffd5e4 100%);
}

.photo-card--main .photo-frame {
  aspect-ratio: 4 / 5;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .photo-card:hover .photo-frame img {
    transform: scale(1.03);
  }
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  color: var(--burgundy);
  background: radial-gradient(circle at 50% 35%, #fff5f8 0%, #ffd8e6 100%);
}

.photo-placeholder svg {
  width: clamp(34px, 6vw, 48px);
  height: clamp(34px, 6vw, 48px);
  fill: var(--pink-accent);
  opacity: 0.78;
}

.photo-placeholder span {
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  font-weight: 600;
  color: var(--text-muted);
}

.photo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(8px, 1.4vw, 12px);
  padding-inline: 4px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.82rem, 1.6vw, 0.98rem);
  color: var(--text-muted);
}

.photo-mini-heart {
  color: var(--pink-accent);
  font-style: normal;
}

@media (max-width: 767px) {
  .photos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "main main"
      "left1 right1"
      "left2 right2";
    gap: 14px;
  }

  .photo-card {
    padding: 8px 8px 20px;
    border-radius: 14px;
  }

  .photo-card--main {
    padding: 10px 10px 26px;
  }

  .photo-card--2 {
    --tilt: -1.6deg;
  }

  .photo-card--3 {
    --tilt: 1.5deg;
  }

  .photo-card--4 {
    --tilt: 1.6deg;
  }

  .photo-card--5 {
    --tilt: -1.5deg;
  }

  .photo-caption {
    font-size: 0.78rem;
  }
}

.letter-section {
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 232, 240, 0.75) 100%);
}

.letter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.envelope-hint {
  margin: 12px 0 0;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  color: var(--text-muted);
  transition: opacity 0.3s ease;
}

.envelope-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
}

.envelope {
  position: relative;
  width: min(360px, 100%);
  height: clamp(190px, 50vw, 236px);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  perspective: 1100px;
  border-radius: 16px;
  filter: drop-shadow(0 18px 34px rgba(139, 30, 65, 0.16));
  transition: transform 0.35s ease, filter 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .envelope:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 24px 40px rgba(139, 30, 65, 0.22));
  }
}

.envelope:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 8px;
}

.envelope-back {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 16px;
  background: linear-gradient(180deg, #f5b9cd 0%, var(--envelope-back) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.envelope-letter-peek {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 12px;
  height: 82%;
  z-index: 2;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--paper-bg);
  border-radius: 10px;
  border: 1px solid var(--paper-border);
  box-shadow: 0 6px 18px rgba(94, 17, 43, 0.09);
  transform: translateY(0);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.peek-heart {
  color: var(--pink-accent);
  font-size: 1.1rem;
}

.peek-line {
  width: 82%;
  height: 7px;
  border-radius: 999px;
  background: #f8dfe7;
}

.peek-line--short {
  width: 55%;
}

.envelope-pocket-left,
.envelope-pocket-right,
.envelope-pocket-bottom {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 16px;
  pointer-events: none;
}

.envelope-pocket-left {
  background: linear-gradient(135deg, #ffe2ec 0%, var(--envelope-pocket-side) 100%);
  clip-path: polygon(0 0, 52% 54%, 0 100%);
}

.envelope-pocket-right {
  background: linear-gradient(225deg, #ffe2ec 0%, var(--envelope-pocket-side) 100%);
  clip-path: polygon(100% 0, 48% 54%, 100% 100%);
}

.envelope-pocket-bottom {
  background: linear-gradient(180deg, #ffd4e3 0%, var(--envelope-pocket-bottom) 100%);
  clip-path: polygon(0 100%, 50% 48%, 100% 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.envelope-flap {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--envelope-flap) 0%, #ffd2e1 100%);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  transform-origin: top center;
  transform: rotateX(0deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s linear 0.3s;
  backface-visibility: hidden;
}

.envelope-seal {
  position: absolute;
  top: 56%;
  left: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #e84877 0%, #a61c46 100%);
  box-shadow: 0 6px 16px rgba(166, 28, 70, 0.38), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.35s ease, opacity 0.35s ease;
  animation: sealPulse 2.4s ease-in-out infinite;
}

.envelope-seal svg {
  fill: #fff8fa;
}

@keyframes sealPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.envelope-stage.is-open .envelope-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: none;
}

.envelope-stage.is-open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s linear 0.22s;
}

.envelope-stage.is-open .envelope-letter-peek {
  transform: translateY(-42px);
  transition-delay: 0.28s;
}

.letter-reveal {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  margin-top: 0;
  transition: grid-template-rows 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    margin-top 0.55s ease 0.15s;
}

.envelope-stage.is-open .letter-reveal {
  grid-template-rows: 1fr;
  margin-top: 26px;
}

.letter-reveal-inner {
  overflow: hidden;
  padding: 4px;
}

.letter-paper {
  position: relative;
  padding: clamp(24px, 5vw, 48px) clamp(18px, 4.5vw, 44px);
  background: var(--paper-bg);
  background-image: linear-gradient(
    to bottom,
    transparent 35px,
    rgba(246, 212, 223, 0.32) 36px
  );
  background-size: 100% 36px;
  border: 1px solid var(--paper-border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.55s ease 0.25s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.envelope-stage.is-open .letter-paper {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.letter-top-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.letter-top-ornament span {
  flex: 1;
  max-width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e7a9bd, transparent);
}

.letter-top-ornament svg {
  fill: var(--pink-accent);
}

.letter-body {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.14rem);
  line-height: 1.8;
  color: var(--text-main);
}

.letter-body p {
  margin: 0 0 18px;
}

.letter-salutation {
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  color: var(--burgundy);
}

.letter-signature {
  margin-top: 26px !important;
  margin-bottom: 0 !important;
  text-align: right;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.08rem, 2.4vw, 1.25rem);
  color: var(--burgundy);
}

.letter-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed rgba(224, 79, 127, 0.28);
}

.letter-end-heart {
  font-size: 1.35rem;
  color: var(--red-heart);
}

.letter-close-btn {
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--burgundy);
  background: var(--bg-blush);
  border: 1px solid rgba(255, 182, 207, 0.9);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

@media (hover: hover) {
  .letter-close-btn:hover {
    background: #ffdde9;
    transform: translateY(-2px);
  }
}

.letter-close-btn:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 3px;
}

.finale-section {
  padding-bottom: clamp(64px, 9vw, 110px);
}

.finale-card {
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 48px);
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 182, 207, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.finale-decor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.finale-sparkle {
  fill: var(--pink-soft);
  animation: twinkle 3s ease-in-out infinite;
}

.finale-heart-icon {
  fill: var(--red-heart);
  animation: heartPulse 2.1s ease-in-out infinite;
}

.finale-lead {
  margin: 0 0 10px;
  font-size: clamp(1rem, 2.3vw, 1.15rem);
  color: var(--text-muted);
  font-style: italic;
}

.finale-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.45rem, 3.8vw, 2.15rem);
  line-height: 1.32;
  color: var(--burgundy-deep);
}

.finale-wish {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--burgundy);
}

.hug-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  padding: 14px 34px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6b98 0%, #d6336c 100%);
  border: none;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(214, 51, 108, 0.3);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .hug-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 32px rgba(214, 51, 108, 0.38);
  }
}

.hug-btn:active {
  transform: scale(0.96);
}

.hug-btn:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 4px;
}

.hug-feedback {
  min-height: 1.5em;
  margin: 16px 0 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--burgundy);
}

.burst-heart {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  user-select: none;
  font-size: var(--b-size, 24px);
  animation: burstFly var(--b-dur, 1.6s) cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

@keyframes burstFly {
  0% {
    opacity: 1;
    transform: translate3d(var(--b-start-x), var(--b-start-y), 0) scale(0.4) rotate(0deg);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--b-end-x), var(--b-end-y), 0) scale(var(--b-scale, 1.25)) rotate(var(--b-rot, 45deg));
  }
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 20px 16px 32px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient-layer {
    display: none;
  }

  .sparkle,
  .heart-beat,
  .hero-cta svg,
  .envelope-seal,
  .finale-sparkle,
  .finale-heart-icon {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}