:root {
  --rose-950: #4b1528;
  --rose-900: #641e38;
  --rose-800: #812b4b;
  --rose-700: #a33860;
  --rose-600: #c44772;
  --rose-500: #e35f8c;
  --rose-400: #f184a7;
  --rose-300: #f7afc4;
  --rose-200: #fbd0dc;
  --rose-100: #fde9ef;
  --rose-50: #fff5f8;
  --cream: #fffdfb;
  --ink: #4c2735;
  --muted: #7d5664;
  --shadow: 0 28px 80px rgba(113, 37, 70, 0.18);
  --soft-shadow: 0 16px 45px rgba(121, 42, 74, 0.14);
  --radius-xl: 42px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.95) 0 8%, transparent 29%),
    radial-gradient(circle at 84% 6%, rgba(255, 214, 229, 0.85), transparent 27%),
    radial-gradient(circle at 87% 83%, rgba(250, 186, 207, 0.64), transparent 29%),
    linear-gradient(145deg, #fffafb 0%, #fff0f5 46%, #fde5ee 100%);
  font-family: var(--font-body);
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 16px;
  color: white;
  background: var(--rose-900);
  border-radius: 999px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #6e1e43;
  outline-offset: 4px;
}

.stage-title:focus-visible {
  outline: none;
}

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

.music-toggle {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 46px;
  padding: 10px 16px;
  color: var(--rose-900);
  background: rgba(255, 253, 251, 0.9);
  border: 1px solid rgba(196, 71, 114, 0.24);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(100, 30, 56, 0.2);
  backdrop-filter: blur(15px);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.music-toggle:hover {
  box-shadow: 0 15px 38px rgba(100, 30, 56, 0.26);
  transform: translateY(-2px);
}

.music-toggle.is-playing {
  color: white;
  background: linear-gradient(135deg, var(--rose-700), var(--rose-500));
  border-color: transparent;
}

.music-toggle__icon {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  justify-content: center;
  width: 17px;
  height: 17px;
}

.music-toggle__icon i {
  width: 3px;
  height: 7px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0.78;
  transform-origin: bottom;
}

.music-toggle__icon i:nth-child(2) {
  height: 13px;
}

.music-toggle__icon i:nth-child(3) {
  height: 9px;
}

.music-toggle.is-playing .music-toggle__icon i {
  animation: music-bar 720ms ease-in-out infinite alternate;
}

.music-toggle.is-playing .music-toggle__icon i:nth-child(2) {
  animation-delay: -240ms;
}

.music-toggle.is-playing .music-toggle__icon i:nth-child(3) {
  animation-delay: -480ms;
}

@keyframes music-bar {
  from {
    transform: scaleY(0.46);
  }
  to {
    transform: scaleY(1);
  }
}

.site-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 18px;
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(240px, 520px);
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 10px 18px;
  color: var(--rose-900);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(112, 35, 68, 0.08);
  backdrop-filter: blur(16px);
}

.tiny-logo {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 700;
  white-space: nowrap;
}

.tiny-logo span {
  display: grid;
  width: 28px;
  height: 28px;
  color: white;
  background: var(--rose-600);
  border-radius: 50%;
  place-items: center;
  box-shadow: 0 5px 14px rgba(196, 71, 114, 0.28);
}

.progress-wrap {
  display: grid;
  grid-template-columns: minmax(160px, auto) minmax(100px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.progress-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

#progressLabel {
  color: var(--rose-900);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#progressWhisper {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.73rem;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  background: var(--rose-100);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 12.5%;
  height: 100%;
  background: linear-gradient(90deg, var(--rose-400), var(--rose-700));
  border-radius: inherit;
  transition: width 420ms ease;
}

.progress-dots {
  display: flex;
  gap: 5px;
}

.progress-dot {
  width: 6px;
  height: 6px;
  background: var(--rose-200);
  border-radius: 50%;
  transition: transform 250ms ease, background 250ms ease;
}

.progress-dot.is-filled {
  background: var(--rose-600);
  transform: scale(1.22);
}

.story-card {
  position: relative;
  min-height: min(760px, calc(100svh - 110px));
  overflow: hidden;
  background:
    radial-gradient(circle at 4% 4%, rgba(251, 208, 220, 0.48), transparent 25%),
    radial-gradient(circle at 96% 94%, rgba(247, 175, 196, 0.32), transparent 24%),
    rgba(255, 253, 251, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.story-card::before,
.story-card::after {
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(227, 95, 140, 0.14);
  border-radius: 50%;
}

.story-card::before {
  top: -175px;
  right: -80px;
}

.story-card::after {
  bottom: -190px;
  left: -95px;
}

.stage {
  min-height: inherit;
  padding: clamp(34px, 6vw, 78px);
}

.stage.is-active {
  animation: stage-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.stage--intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  color: var(--rose-700);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 25px;
  height: 1px;
  content: "";
  background: var(--rose-400);
}

.display-title,
.stage h2 {
  margin: 0;
  color: var(--rose-950);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.display-title {
  max-width: 690px;
  font-size: clamp(3.25rem, 7vw, 6.7rem);
}

.display-title span {
  display: block;
  color: var(--rose-600);
  font-style: italic;
  font-weight: 500;
}

.stage h2 {
  font-size: clamp(2.5rem, 5.2vw, 5.2rem);
}

.lead {
  max-width: 610px;
  margin: 24px 0 28px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.lead--small {
  max-width: 560px;
  font-size: 1.05rem;
}

.supporting {
  margin: 15px auto 28px;
  color: var(--muted);
  font-size: 1rem;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  padding: 13px 22px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--rose-900);
  background: white;
  border: 1px solid var(--rose-200);
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(137, 41, 81, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(137, 41, 81, 0.16);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button--primary {
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-700));
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(196, 71, 114, 0.28);
}

.button--primary:hover {
  box-shadow: 0 18px 38px rgba(196, 71, 114, 0.36);
}

.button--sparkle::after {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  width: 25px;
  height: 25px;
  content: "✦";
  color: var(--rose-700);
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(118, 33, 69, 0.18);
  place-items: center;
  animation: twinkle 2.4s ease-in-out infinite;
}

@keyframes twinkle {
  50% {
    transform: rotate(18deg) scale(1.12);
  }
}

.button-note {
  margin: 12px 0 0 16px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-style: italic;
}

.hero-photos {
  position: relative;
  width: min(100%, 570px);
  height: 550px;
  margin: 0 auto;
}

.hero-photos::before {
  position: absolute;
  inset: 12% 10%;
  content: "";
  background: linear-gradient(145deg, var(--rose-100), rgba(255, 255, 255, 0));
  border-radius: 48% 52% 56% 44% / 42% 44% 56% 58%;
  filter: blur(2px);
  transform: rotate(-8deg);
}

.polaroid {
  position: absolute;
  margin: 0;
  padding: 10px 10px 35px;
  background: #fff;
  border: 1px solid rgba(102, 24, 58, 0.07);
  box-shadow: 0 22px 50px rgba(79, 25, 48, 0.22);
}

.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid figcaption {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  color: var(--rose-900);
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-style: italic;
  text-align: center;
}

.polaroid--one {
  top: 7%;
  left: 23%;
  z-index: 3;
  width: 53%;
  height: 76%;
  transform: rotate(3deg);
}

.polaroid--one img {
  object-position: center 33%;
}

.polaroid--two {
  top: 2%;
  right: -1%;
  z-index: 2;
  width: 35%;
  height: 51%;
  transform: rotate(9deg);
}

.polaroid--two img {
  object-position: center 25%;
}

.polaroid--three {
  bottom: 1%;
  left: 1%;
  z-index: 4;
  width: 39%;
  height: 56%;
  transform: rotate(-8deg);
}

.polaroid--three img {
  object-position: center 28%;
}

.photo-sticker {
  position: absolute;
  z-index: 6;
  display: grid;
  place-items: center;
}

.photo-sticker--heart {
  right: 3%;
  bottom: 14%;
  width: 62px;
  height: 62px;
  color: white;
  background: var(--rose-500);
  border: 5px solid white;
  border-radius: 50%;
  box-shadow: 0 12px 25px rgba(95, 28, 57, 0.2);
  font-size: 1.5rem;
  transform: rotate(8deg);
}

.photo-sticker--note {
  top: 3%;
  left: 2%;
  padding: 9px 13px;
  color: var(--rose-800);
  background: #fff5bb;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-style: italic;
  box-shadow: 0 8px 20px rgba(87, 46, 19, 0.13);
  transform: rotate(-9deg);
}

.stage-center {
  display: flex;
  min-height: calc(min(760px, calc(100svh - 110px)) - clamp(68px, 12vw, 156px));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stage-center--narrow {
  max-width: 850px;
  margin: auto;
}

.answer-grid {
  display: grid;
  width: min(100%, 820px);
  margin: 0 auto 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.answer-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.answer-card {
  display: flex;
  min-height: 116px;
  padding: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  color: var(--rose-900);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--rose-200);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(100, 30, 60, 0.08);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.answer-card span {
  font-size: 1.45rem;
}

.answer-card:hover,
.answer-card.is-selected {
  background: var(--rose-50);
  border-color: var(--rose-400);
  box-shadow: 0 15px 34px rgba(130, 42, 79, 0.14);
  transform: translateY(-3px);
}

.answer-card--compact {
  min-height: 84px;
}

.answer-card:disabled:not(.is-selected) {
  cursor: default;
  opacity: 0.5;
  transform: none;
}

.reaction {
  max-width: 690px;
  margin: 6px auto 20px;
  padding: 11px 18px;
  color: var(--rose-800);
  background: var(--rose-100);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
}

.stage--soft {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(480px, 1.15fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.memory-collage {
  position: relative;
  min-height: 565px;
}

.memory-collage::after {
  position: absolute;
  right: 7%;
  bottom: 7%;
  z-index: 5;
  display: grid;
  width: 74px;
  height: 74px;
  content: "♡";
  color: var(--rose-600);
  background: white;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(91, 28, 55, 0.16);
  font-size: 2rem;
  place-items: center;
  transform: rotate(8deg);
}

.memory-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: white;
  border: 8px solid white;
  border-radius: 22px;
  box-shadow: 0 22px 55px rgba(82, 25, 49, 0.2);
}

.memory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-photo figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 7px 10px;
  color: var(--rose-900);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-style: italic;
  text-align: center;
  backdrop-filter: blur(6px);
}

.memory-photo--tall {
  top: 0;
  left: 7%;
  z-index: 2;
  width: 48%;
  height: 88%;
  transform: rotate(-4deg);
}

.memory-photo--tall img {
  object-position: center 52%;
}

.memory-photo--top {
  top: 3%;
  right: 2%;
  z-index: 3;
  width: 43%;
  height: 43%;
  transform: rotate(5deg);
}

.memory-photo--top img {
  object-position: center 40%;
}

.memory-photo--bottom {
  right: 1%;
  bottom: 2%;
  z-index: 4;
  width: 44%;
  height: 47%;
  transform: rotate(2deg);
}

.memory-photo--bottom img {
  object-position: center 65%;
}

.stage--letter {
  display: grid;
  grid-template-columns: minmax(310px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

.letter-photo {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.letter-photo::before {
  position: absolute;
  inset: 11% 7% 9% 11%;
  content: "";
  background: var(--rose-200);
  border-radius: 48% 52% 39% 61% / 47% 38% 62% 53%;
  transform: rotate(-7deg);
}

.letter-photo__frame {
  position: relative;
  width: min(92%, 390px);
  padding: 12px 12px 48px;
  background: white;
  box-shadow: var(--soft-shadow);
  transform: rotate(-3deg);
}

.letter-photo__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 34%;
}

.letter-photo__frame span {
  position: absolute;
  right: 16px;
  bottom: 13px;
  left: 16px;
  color: var(--rose-900);
  font-family: var(--font-display);
  font-style: italic;
  text-align: center;
}

.love-letter {
  position: relative;
  max-width: 650px;
  padding: clamp(28px, 5vw, 58px);
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(197, 90, 127, 0.08) 31px 32px),
    #fffefa;
  border: 1px solid rgba(164, 69, 104, 0.16);
  border-radius: 6px 30px 30px 6px;
  box-shadow: 0 24px 60px rgba(89, 28, 53, 0.14);
}

.love-letter::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 26px;
  width: 1px;
  content: "";
  background: rgba(222, 94, 139, 0.2);
}

.letter-unopened {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
}

.letter-unopened[hidden],
.letter-body[hidden] {
  display: none;
}

.letter-unopened p {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.letter-seal {
  display: grid;
  width: 70px;
  height: 70px;
  color: white;
  background: linear-gradient(145deg, var(--rose-500), var(--rose-800));
  border: 5px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(116, 35, 66, 0.3);
  font-size: 1.65rem;
  place-items: center;
  transform: rotate(-7deg);
}

.letter-body {
  display: grid;
  gap: 17px;
}

.letter-paragraph {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
  opacity: 0;
  transform: translateY(12px);
}

.love-letter.is-open .letter-paragraph,
.love-letter.is-open .letter-closing,
.love-letter.is-open .signature,
.love-letter.is-open .letter-body > .button {
  animation: letter-reveal 600ms ease forwards;
}

.love-letter.is-open .letter-paragraph:nth-child(2) { animation-delay: 120ms; }
.love-letter.is-open .letter-paragraph:nth-child(3) { animation-delay: 240ms; }
.love-letter.is-open .letter-paragraph:nth-child(4) { animation-delay: 360ms; }
.love-letter.is-open .letter-closing { animation-delay: 480ms; }
.love-letter.is-open .signature { animation-delay: 600ms; }
.love-letter.is-open .letter-body > .button { animation-delay: 720ms; }

.letter-closing {
  padding: 18px 20px;
  opacity: 0;
  color: var(--rose-900);
  background: linear-gradient(135deg, rgba(255, 229, 239, 0.72), rgba(255, 249, 244, 0.95));
  border: 1px solid rgba(196, 71, 114, 0.16);
  border-radius: 22px;
  transform: translateY(12px);
}

.letter-closing p {
  margin: 0;
}

.letter-names {
  margin: 3px 0 !important;
  color: var(--rose-700);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-style: italic;
}

.love-letter.is-open .signature,
.love-letter.is-open .letter-body > .button {
  opacity: 0;
  transform: translateY(12px);
}

@keyframes letter-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.love-letter h2 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.love-letter > p:not(.eyebrow):not(.signature) {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.signature {
  margin: 22px 0;
  color: var(--rose-700);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
}

.heart-grid {
  display: grid;
  width: min(100%, 930px);
  margin: 2px auto 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.heart-note {
  position: relative;
  display: flex;
  min-height: 240px;
  padding: 24px 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--rose-800);
  background: linear-gradient(160deg, #fff 0%, var(--rose-50) 100%);
  border: 1px solid var(--rose-200);
  border-radius: 110px 110px 30px 30px;
  box-shadow: 0 15px 35px rgba(112, 34, 67, 0.1);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.heart-note:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 0 22px 42px rgba(112, 34, 67, 0.15);
}

.heart-note__icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  color: white;
  background: linear-gradient(145deg, var(--rose-400), var(--rose-700));
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(195, 65, 111, 0.25);
  font-size: 1.8rem;
  place-items: center;
}

.heart-note__label {
  font-weight: 800;
}

.heart-note__message {
  display: none;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.55;
}

.heart-note.is-open {
  color: white;
  background: linear-gradient(155deg, var(--rose-500), var(--rose-800));
  border-color: transparent;
}

.heart-note.is-open .heart-note__icon,
.heart-note.is-open .heart-note__label {
  display: none;
}

.heart-note.is-open .heart-note__message {
  display: block;
}

.stage--gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 24px;
}

.gallery-heading h2 {
  max-width: 760px;
  font-size: clamp(2.5rem, 4.5vw, 4.6rem);
}

.gallery-heading > p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.75;
}

.carousel {
  display: grid;
  grid-template-columns: minmax(350px, 1.1fr) minmax(310px, 0.9fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  touch-action: pan-y;
}

.carousel:focus-visible {
  border-radius: 30px;
}

.gallery-image-button {
  padding: 0;
  cursor: zoom-in;
  background: transparent;
  border: 0;
}

.gallery-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 13px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 24px 62px rgba(72, 22, 45, 0.22);
  transform: rotate(-1.2deg);
  transition: transform 200ms ease;
}

.gallery-image-button:hover .gallery-frame {
  transform: rotate(0) scale(1.01);
}

.gallery-frame img {
  width: 100%;
  height: min(54vh, 490px);
  min-height: 340px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  background: var(--rose-100);
}

.gallery-tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 112px;
  height: 30px;
  opacity: 0.83;
  background: rgba(253, 226, 164, 0.85);
  transform: translateX(-50%) rotate(2deg);
}

.photo-count {
  margin: 0 0 12px;
  color: var(--rose-600);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.photo-caption {
  min-height: 116px;
  margin: 0 0 22px;
  color: var(--rose-950);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.carousel-controls {
  display: flex;
  gap: 13px;
  align-items: center;
}

.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  cursor: pointer;
  color: var(--rose-800);
  background: white;
  border: 1px solid var(--rose-200);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(112, 35, 67, 0.1);
  font-size: 1.1rem;
  place-items: center;
}

.icon-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.carousel-dots {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: center;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  cursor: pointer;
  background: var(--rose-200);
  border: 0;
  border-radius: 50%;
  transition: transform 180ms ease, background 180ms ease;
}

.carousel-dot.is-active {
  background: var(--rose-600);
  transform: scale(1.35);
}

.swipe-hint {
  margin: 14px 0 19px;
  color: var(--muted);
  font-size: 0.78rem;
}

.stage--forever {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
}

.forever-photo {
  position: relative;
  width: min(100%, 370px);
  margin: auto;
  padding: 12px 12px 48px;
  background: white;
  box-shadow: var(--soft-shadow);
  transform: rotate(-5deg);
}

.forever-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 28%;
}

.forever-photo span {
  position: absolute;
  right: 10px;
  bottom: 12px;
  left: 10px;
  color: var(--rose-800);
  font-family: var(--font-display);
  font-style: italic;
  text-align: center;
}

.forever-title {
  max-width: 760px;
}

.forever-copy > .supporting {
  max-width: 600px;
  margin-left: 0;
}

.choice-arena {
  position: relative;
  min-height: 210px;
  margin-top: 6px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(135deg, var(--rose-50), var(--rose-100));
  border: 1px dashed var(--rose-300);
  border-radius: var(--radius-lg);
}

.button--yes,
.button--no {
  position: absolute;
  top: 76px;
  min-width: 150px;
  transition: left 220ms cubic-bezier(0.22, 1, 0.36, 1), top 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 180ms ease, box-shadow 180ms ease;
}

.button--yes {
  left: 11%;
  z-index: 2;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--rose-800));
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(166, 52, 98, 0.3);
}

.button--no {
  right: 11%;
  z-index: 3;
  color: var(--rose-800);
  background: white;
}

.no-message {
  min-height: 50px;
  margin: 14px 4px 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-style: italic;
}

.stage--finale {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}

.stage--finale::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98) 0 23%, transparent 62%),
    linear-gradient(145deg, rgba(255, 234, 241, 0.6), rgba(251, 197, 215, 0.42));
}

.finale-copy {
  position: relative;
  z-index: 3;
}

.finale-copy .display-title {
  margin: auto;
}

.finale-copy .lead {
  margin-right: auto;
  margin-left: auto;
}

.final-love {
  max-width: 630px;
  margin: -8px auto 25px;
  color: var(--rose-800);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.7;
}

.button--soft {
  color: var(--rose-800);
  background: rgba(255, 255, 255, 0.88);
}

.finale-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.finale-photo {
  position: absolute;
  width: clamp(112px, 16vw, 190px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: white;
  border: 8px solid white;
  border-bottom-width: 28px;
  box-shadow: 0 18px 42px rgba(86, 27, 52, 0.18);
}

.finale-photo--left {
  bottom: 7%;
  left: 5%;
  object-position: center 25%;
  transform: rotate(-10deg);
}

.finale-photo--right {
  top: 8%;
  right: 5%;
  object-position: center 32%;
  transform: rotate(9deg);
}

.finale-heart {
  position: absolute;
  top: 8%;
  left: 7%;
  color: var(--rose-400);
  font-size: clamp(3rem, 7vw, 6rem);
  transform: rotate(-12deg);
  animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50% { transform: rotate(-8deg) scale(1.12); }
}

footer {
  padding: 15px 0 0;
  color: rgba(101, 42, 65, 0.7);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
}

footer span {
  margin: 0 5px;
  color: var(--rose-500);
}

.floating-hearts,
.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.float-heart {
  position: absolute;
  bottom: -60px;
  color: var(--rose-400);
  opacity: 0;
  animation: float-heart var(--duration) linear var(--delay) infinite;
}

@keyframes float-heart {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.8);
  }
  10% {
    opacity: var(--heart-opacity);
  }
  88% {
    opacity: var(--heart-opacity);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), -115vh, 0) rotate(80deg) scale(1.12);
  }
}

.confetti-piece {
  position: absolute;
  top: -24px;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 1.55);
  opacity: 0;
  background: var(--color);
  border-radius: 3px;
  animation: confetti-fall var(--fall-duration) cubic-bezier(0.15, 0.7, 0.25, 1) var(--fall-delay) forwards;
}

.confetti-piece.is-heart {
  height: auto;
  color: var(--color);
  background: none;
  font-size: calc(var(--size) * 1.7);
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -3vh, 0) rotate(0deg);
  }
  8% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate3d(var(--sway), 108vh, 0) rotate(var(--spin));
  }
}

.lightbox {
  width: min(92vw, 850px);
  max-height: 92vh;
  padding: 14px 14px 20px;
  color: var(--rose-900);
  background: white;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 35px 100px rgba(50, 12, 31, 0.45);
}

.lightbox::backdrop {
  background: rgba(61, 15, 37, 0.72);
  backdrop-filter: blur(9px);
}

.lightbox img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: var(--rose-50);
  border-radius: 14px;
}

.lightbox p {
  margin: 13px 46px 0;
  font-family: var(--font-display);
  font-style: italic;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--rose-900);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--rose-200);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(72, 18, 41, 0.16);
  font-size: 1.6rem;
  line-height: 1;
  place-items: center;
}

@media (max-width: 940px) {
  .story-card {
    min-height: auto;
  }

  .stage {
    min-height: 760px;
  }

  .stage--intro,
  .stage--soft,
  .stage--letter,
  .stage--forever {
    grid-template-columns: 1fr;
  }

  .stage--intro {
    padding-bottom: 36px;
  }

  .hero-copy,
  .soft-copy {
    position: relative;
    z-index: 4;
    max-width: 720px;
  }

  .hero-photos {
    height: 520px;
  }

  .stage--soft {
    padding-bottom: 28px;
  }

  .memory-collage {
    min-height: 540px;
  }

  .stage--letter {
    padding-top: 42px;
  }

  .letter-photo {
    min-height: 430px;
  }

  .letter-photo__frame {
    width: min(70%, 390px);
  }

  .heart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heart-note {
    min-height: 190px;
    border-radius: 80px 80px 26px 26px;
  }

  .gallery-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .carousel {
    grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.8fr);
    gap: 30px;
  }

  .stage--forever {
    padding-top: 42px;
  }

  .forever-photo {
    width: min(62%, 350px);
  }

  .forever-copy {
    text-align: center;
  }

  .forever-copy > .supporting {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .music-toggle {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 42px;
    padding: 9px 13px;
    font-size: 0.75rem;
  }

  .site-shell {
    width: min(100% - 18px, 620px);
    padding-top: 9px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px 14px 11px;
    border-radius: 22px;
  }

  .tiny-logo {
    display: none;
  }

  .progress-wrap {
    grid-template-columns: minmax(120px, auto) 1fr;
    gap: 10px;
  }

  .progress-dots {
    display: none;
  }

  #progressWhisper {
    display: none;
  }

  .story-card {
    border-radius: 28px;
  }

  .stage {
    min-height: calc(100svh - 92px);
    padding: 34px 22px;
  }

  .stage--intro {
    min-height: 950px;
    grid-template-rows: auto 1fr;
    gap: 18px;
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .display-title {
    font-size: clamp(3.2rem, 15vw, 5.2rem);
  }

  .lead {
    margin: 18px auto 23px;
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .button-note {
    margin-left: 0;
  }

  .hero-photos {
    width: min(100%, 480px);
    height: 470px;
  }

  .polaroid--one {
    left: 24%;
    width: 55%;
  }

  .polaroid--two {
    right: 0;
  }

  .photo-sticker--heart {
    right: 2%;
    bottom: 12%;
    width: 52px;
    height: 52px;
  }

  .stage h2 {
    font-size: clamp(2.55rem, 12vw, 4.2rem);
  }

  .supporting {
    margin-bottom: 22px;
  }

  .answer-grid,
  .answer-grid--two {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .answer-card,
  .answer-card--compact {
    min-height: 62px;
    flex-direction: row;
  }

  .reaction {
    border-radius: 18px;
  }

  .stage--soft {
    min-height: 1050px;
    padding-top: 48px;
    text-align: center;
  }

  .memory-collage {
    min-height: 530px;
  }

  .stage--letter {
    min-height: 1160px;
  }

  .letter-photo {
    min-height: 390px;
  }

  .letter-photo__frame {
    width: min(86%, 350px);
  }

  .love-letter {
    padding: 30px 25px 32px 36px;
  }

  .love-letter::before {
    left: 24px;
  }

  .love-letter h2 {
    font-size: clamp(2.55rem, 11vw, 4rem);
  }

  .heart-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .heart-note {
    min-height: 112px;
    padding: 15px 20px;
    border-radius: 28px;
  }

  .heart-note__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 7px;
    font-size: 1.15rem;
  }

  .stage--gallery {
    min-height: 990px;
  }

  .gallery-heading {
    text-align: center;
  }

  .gallery-heading h2 {
    font-size: clamp(2.4rem, 11vw, 3.8rem);
  }

  .carousel {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .gallery-frame img {
    height: min(54vh, 470px);
    min-height: 330px;
  }

  .gallery-copy {
    text-align: center;
  }

  .photo-caption {
    min-height: 72px;
    margin-bottom: 17px;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .stage--forever {
    min-height: 1030px;
    gap: 28px;
  }

  .forever-photo {
    width: min(76%, 320px);
  }

  .choice-arena {
    min-height: 230px;
  }

  .button--yes,
  .button--no {
    top: 82px;
    min-width: 126px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .button--yes {
    left: 7%;
  }

  .button--no {
    right: 7%;
  }

  .stage--finale {
    min-height: 850px;
    padding-top: 145px;
    padding-bottom: 145px;
  }

  .finale-photo {
    width: 106px;
  }

  .finale-photo--left {
    bottom: 3%;
    left: 3%;
  }

  .finale-photo--right {
    top: 3%;
    right: 3%;
  }

  .finale-heart {
    top: 4%;
    left: 6%;
  }

  footer {
    padding-bottom: 4px;
  }
}

@media (max-width: 390px) {
  .stage {
    padding-right: 17px;
    padding-left: 17px;
  }

  .stage--intro {
    min-height: 900px;
  }

  .hero-photos {
    height: 420px;
  }

  .polaroid {
    padding: 7px 7px 30px;
  }

  .polaroid figcaption {
    font-size: 0.7rem;
  }

  .stage--soft {
    min-height: 980px;
  }

  .memory-collage {
    min-height: 470px;
  }

  .choice-arena {
    min-height: 250px;
  }

  .button--yes,
  .button--no {
    min-width: 116px;
    font-size: 0.9rem;
  }

  .carousel-dots {
    gap: 6px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .site-shell {
    width: min(1100px, calc(100% - 24px));
  }

  .topbar {
    margin-bottom: 8px;
  }

  .story-card,
  .stage {
    min-height: 620px;
  }

  .stage {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hero-photos {
    height: 460px;
  }

  .choice-arena {
    min-height: 180px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-hearts,
  .confetti-layer {
    display: none;
  }

  .music-toggle.is-playing .music-toggle__icon i {
    animation: none;
  }
}
