:root {
  --bg: #fff6ef;
  --bg-soft: #ffe7dc;
  --card: rgba(255, 251, 246, 0.74);
  --card-strong: rgba(255, 248, 241, 0.92);
  --text: #5d2d2d;
  --text-soft: #876060;
  --rose: #f38ba0;
  --rose-deep: #de5d78;
  --peach: #ffb98a;
  --cream: #ffe6a8;
  --gold: #f0c55a;
  --line: rgba(201, 118, 118, 0.18);
  --shadow: 0 24px 60px rgba(176, 92, 92, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 186, 196, 0.55), transparent 35%),
    radial-gradient(circle at 80% 15%, rgba(255, 221, 170, 0.55), transparent 25%),
    radial-gradient(circle at 20% 90%, rgba(255, 203, 188, 0.4), transparent 28%),
    linear-gradient(180deg, #fffaf4 0%, #fff3ea 100%);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

code {
  font-family: "Courier New", monospace;
  font-size: 0.95em;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

.page-shell {
  position: relative;
  isolation: isolate;
  padding: 24px;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(243, 139, 160, 0.12) 0 1px, transparent 1px);
  background-position: 0 0, 18px 18px;
  background-size: 36px 36px;
  opacity: 0.65;
  pointer-events: none;
  z-index: -2;
}

.floating {
  position: fixed;
  z-index: -1;
  filter: blur(2px);
  opacity: 0.75;
  pointer-events: none;
  animation: drift 12s ease-in-out infinite;
}

.floating::before,
.floating::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 62px;
  border-radius: 40px 40px 0 0;
  background: linear-gradient(180deg, rgba(243, 139, 160, 0.65), rgba(255, 185, 138, 0.15));
}

.floating::before {
  left: 20px;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.floating::after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

.floating-one {
  top: 16%;
  left: 6%;
}

.floating-two {
  top: 55%;
  right: 8%;
  animation-delay: -3s;
}

.floating-three {
  top: 74%;
  left: 18%;
  animation-delay: -6s;
}

.hero,
.section {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 24px 0 36px;
  align-items: center;
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__pill,
.topbar__link {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(214, 132, 132, 0.09);
}

.topbar__link:hover {
  transform: translateY(-1px);
}

.hero__content,
.hero__card,
.letter__card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero__content {
  padding: 48px;
  width: 100%;
  max-width: none;
  min-height: min(72vh, 760px);
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: softFloat 7s ease-in-out infinite;
}

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

.hero__content::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 34px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle at 66% 20%, rgba(255, 255, 255, 0.78) 0 2px, transparent 3px),
    radial-gradient(circle at 44% 70%, rgba(243, 139, 160, 0.42) 0 4px, transparent 5px),
    radial-gradient(circle at 76% 66%, rgba(255, 185, 138, 0.55) 0 3px, transparent 4px);
  opacity: 0.8;
  animation: twinkle 4.5s ease-in-out infinite;
}

.hero__content::after {
  content: "";
  position: absolute;
  inset: auto -30px -55px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 139, 160, 0.22) 0%, transparent 70%);
}

.hero__fireworks,
.hero__cake {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero__fireworks {
  inset: 0;
}

.firework {
  position: absolute;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 6%, transparent 7%),
    repeating-conic-gradient(
      from 0deg,
      rgba(243, 139, 160, 0.95) 0deg 10deg,
      transparent 10deg 24deg,
      rgba(255, 185, 138, 0.75) 24deg 34deg,
      transparent 34deg 48deg,
      rgba(255, 230, 168, 0.8) 48deg 58deg,
      transparent 58deg 72deg
    );
  -webkit-mask: radial-gradient(circle, transparent 0 17%, black 18% 46%, transparent 47%);
  mask: radial-gradient(circle, transparent 0 17%, black 18% 46%, transparent 47%);
  opacity: 0.75;
  filter: drop-shadow(0 0 16px rgba(243, 139, 160, 0.28));
  animation: fireworkBurst 3.4s ease-out infinite;
}

.firework::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.firework--left {
  top: 18%;
  left: 13%;
  width: 134px;
  animation-delay: -0.4s;
}

.firework--top {
  top: 8%;
  right: 23%;
  width: 104px;
  animation-delay: -1.5s;
}

.firework--right {
  top: 27%;
  right: 14%;
  width: 146px;
  animation-delay: -2.2s;
}

.hero__cake {
  right: clamp(28px, 8vw, 92px);
  bottom: clamp(28px, 7vw, 72px);
  width: 160px;
  height: 150px;
  animation: cakeFloat 4.4s ease-in-out infinite;
}

.hero__cake::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 240, 229, 0.92), rgba(240, 186, 160, 0.9));
  box-shadow: 0 18px 24px rgba(214, 132, 132, 0.18);
}

.hero__cake::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  height: 92px;
  border-radius: 22px 22px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.95) 0 14%, transparent 14%),
    linear-gradient(180deg, #ffb7b7 0%, #ff9ca2 50%, #ffb67d 100%);
  box-shadow:
    inset 0 -10px 16px rgba(255, 255, 255, 0.2),
    0 18px 28px rgba(214, 132, 132, 0.18);
}

.hero__cake-candle {
  position: absolute;
  bottom: 106px;
  width: 12px;
  height: 38px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 35%, rgba(255, 173, 191, 0.95) 35% 65%, rgba(255, 255, 255, 0.9) 65% 100%);
  box-shadow: 0 6px 10px rgba(214, 132, 132, 0.14);
}

.hero__cake-candle::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% - 4px);
  width: 16px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  background: radial-gradient(circle at 50% 32%, #fffce0 0 24%, #ffd76b 25% 58%, rgba(255, 156, 90, 0.95) 59% 100%);
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.55);
  animation: candleFlicker 1.1s ease-in-out infinite;
}

.hero__cake-candle--one {
  left: 42px;
  animation: candleSway 2.7s ease-in-out infinite;
}

.hero__cake-candle--two {
  left: 74px;
  height: 44px;
  bottom: 100px;
  animation: candleSway 2.9s ease-in-out infinite -0.5s;
}

.hero__cake-candle--three {
  left: 106px;
  animation: candleSway 2.6s ease-in-out infinite -1s;
}

.hero__eyebrow,
.section__eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--rose-deep);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  margin-bottom: 26px;
  border: 1px solid rgba(243, 139, 160, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 14px 28px rgba(214, 132, 132, 0.1);
}

.hero h1,
.section h2,
.letter__card h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(4rem, 9vw, 7.4rem);
  max-width: 8ch;
  margin-inline: auto;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-wrap: balance;
  text-shadow: 0 10px 30px rgba(127, 60, 60, 0.08);
}

.hero h1 span {
  display: block;
  width: fit-content;
  margin: 0.08em auto 0;
  padding-inline: 0.08em;
  position: relative;
  font-family: "Parisienne", cursive;
  font-size: 1.22em;
  line-height: 0.95;
  color: transparent;
  background: linear-gradient(135deg, #ff7f98 0%, #e25f8d 50%, #ff9f7f 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 12px 30px rgba(226, 95, 141, 0.16);
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0.06em;
  height: 0.1em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 165, 153, 0), rgba(243, 139, 160, 0.42), rgba(255, 165, 153, 0));
  filter: blur(1px);
}

.hero__message,
.section__note,
.letter__card p,
.memory-card p,
.hero__list li {
  color: var(--text-soft);
  line-height: 1.75;
}

.hero__message {
  font-size: 1.08rem;
  max-width: 54ch;
  margin: 22px 0 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, var(--rose) 0%, #ff9b79 100%);
  color: white;
  box-shadow: 0 16px 24px rgba(222, 93, 120, 0.3);
  background-size: 200% 200%;
  animation: buttonGlow 5.5s ease infinite;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--line);
}

.section {
  padding: 52px 0;
}

.section__heading {
  margin-bottom: 24px;
}

.section h2 {
  font-size: clamp(2.15rem, 4vw, 3.6rem);
  max-width: 12ch;
}

.section__note {
  max-width: 58ch;
  margin-top: 14px;
}

.memory-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.memory-card,
.photo-card {
  border-radius: var(--radius-lg);
}

.memory-card {
  padding: 26px;
  background: rgba(255, 252, 247, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 40px rgba(207, 143, 143, 0.12);
}

.song-card {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 34px);
  padding: clamp(24px, 5vw, 38px);
  border-radius: 38px;
  background:
    radial-gradient(circle at top right, rgba(255, 214, 111, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(215, 153, 63, 0.14), transparent 34%),
    linear-gradient(145deg, #2a2417 0%, #19140f 48%, #13100c 100%);
  border: 1px solid rgba(255, 226, 157, 0.09);
  box-shadow: 0 28px 56px rgba(52, 35, 12, 0.22);
}

.song-card__visual {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.song-cover {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 219, 124, 0.34), transparent 36%),
    linear-gradient(160deg, #7f6121 0%, #463213 30%, #1a1510 72%, #12100c 100%);
  box-shadow:
    0 24px 36px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 235, 177, 0.08);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms ease;
}

.song-cover::before,
.song-cover::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
}

.song-cover::before {
  width: 150px;
  height: 150px;
  right: -32px;
  top: -32px;
  background: radial-gradient(circle, rgba(255, 214, 111, 0.42), rgba(255, 214, 111, 0));
}

.song-cover::after {
  width: 180px;
  height: 180px;
  left: -60px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.song-cover__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 260ms ease, transform 340ms cubic-bezier(0.22, 1, 0.36, 1), filter 340ms ease;
}

.song-cover.has-image .song-cover__image {
  opacity: 1;
}

.song-cover__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0.12) 52%, rgba(0, 0, 0, 0.56) 100%);
  color: white;
}

.song-cover.has-image .song-cover__placeholder {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 10%, rgba(0, 0, 0, 0.18) 52%, rgba(0, 0, 0, 0.56) 100%);
}

.song-cover__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 700;
}

.song-cover__placeholder strong {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.95;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.song-cover__placeholder p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
  max-width: 22ch;
}

.song-card__copy {
  display: grid;
  gap: 18px;
  align-content: center;
  justify-items: start;
}

.song-card__copy h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #f7e8c2;
  line-height: 0.94;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.song-card__eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(202, 255, 226, 0.8);
}

.song-card__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.song-play {
  position: relative;
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd56e 0%, #f4b44d 52%, #d9902c 100%);
  box-shadow: 0 18px 34px rgba(217, 144, 44, 0.28);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.song-play:disabled {
  opacity: 0.58;
  cursor: default;
  box-shadow: none;
}

.song-play:not(:disabled):hover,
.song-play:not(:disabled):focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 22px 38px rgba(217, 144, 44, 0.34);
  filter: brightness(1.04);
}

.song-play__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-40%, -50%);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #3f2b11;
  transition: transform 220ms ease;
}

.song-card.is-playing .song-play__icon {
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border: none;
  background:
    linear-gradient(90deg, #3f2b11 0 34%, transparent 34% 66%, #3f2b11 66% 100%);
}

.song-card__equalizer {
  display: inline-flex;
  align-items: end;
  gap: 6px;
  height: 26px;
}

.song-card__equalizer span {
  --bar-level: 0.22;
  width: 5px;
  height: calc(22% + (var(--bar-level) * 78%));
  border-radius: 999px;
  background: rgba(255, 218, 120, 0.92);
  box-shadow: 0 0 12px rgba(255, 199, 86, 0.22);
  transition: height 120ms linear, opacity 120ms ease;
  opacity: 0.72;
}

.song-audio {
  display: none;
}

.song-card.is-ready:hover .song-cover,
.song-card.is-ready:focus-within .song-cover {
  transform: translateY(-4px);
  box-shadow: 0 30px 44px rgba(0, 0, 0, 0.24);
}

.song-card.is-ready:hover .song-cover__image,
.song-card.is-ready:focus-within .song-cover__image {
  transform: scale(1.04);
  filter: saturate(1.06);
}

.song-card.is-playing .song-card__equalizer span {
  opacity: 1;
}

.memory-card__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(243, 139, 160, 0.2), rgba(255, 185, 138, 0.2));
  font-size: 1.2rem;
  color: var(--rose-deep);
}

.memory-card h3,
.photo-card__caption {
  margin: 0 0 10px;
  font-weight: 800;
}

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

.photo-card {
  padding: 18px;
  background: rgba(255, 252, 247, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 44px rgba(207, 143, 143, 0.12);
  transform: rotate(var(--tilt, -1deg));
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms ease;
  animation: photoDrift 9s ease-in-out infinite;
}

.photo-card:nth-child(2n) {
  --tilt: 1.5deg;
  animation-delay: -2s;
}

.photo-card:nth-child(3n) {
  --tilt: -2deg;
  animation-delay: -4s;
}

.photo-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.035);
  box-shadow: 0 34px 58px rgba(207, 143, 143, 0.22);
}

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms ease;
  background:
    linear-gradient(145deg, rgba(255, 225, 225, 0.55), rgba(255, 241, 219, 0.85)),
    linear-gradient(180deg, #fffdf9, #ffefea);
}

.photo-card:hover .photo-frame {
  transform: scale(1.02);
  box-shadow: 0 22px 42px rgba(207, 143, 143, 0.2);
}

.photo-frame__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 300ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1), filter 320ms ease;
}

.photo-frame.has-image .photo-frame__image {
  opacity: 1;
}

.photo-card:hover .photo-frame__image {
  transform: scale(1.1);
  filter: saturate(1.04) contrast(1.02);
}

.photo-frame__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--text-soft);
}

.photo-frame__placeholder span {
  display: inline-flex;
  align-self: center;
  justify-self: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--rose-deep);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.photo-frame.has-image .photo-frame__placeholder {
  opacity: 0;
  pointer-events: none;
}

.photo-card__caption {
  margin: 14px 8px 4px;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  transition: transform 280ms ease, color 280ms ease;
}

.photo-card:hover .photo-card__caption {
  transform: translateY(2px);
  color: var(--rose-deep);
}

.letter__wrap {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 28px;
}

.letter__intro {
  text-align: center;
}

.letter__intro h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  font-family: "Fraunces", serif;
}

.letter-envelope {
  position: relative;
  width: min(620px, 100%);
  min-height: 620px;
  padding-top: 22px;
  perspective: 1600px;
}

.letter-paper {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(88%, 470px);
  padding: 34px clamp(20px, 4vw, 34px);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 247, 241, 0.98), rgba(255, 251, 246, 0.96)),
    repeating-linear-gradient(
      180deg,
      rgba(222, 93, 120, 0.08) 0 1px,
      transparent 1px 34px
    );
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 60px rgba(203, 128, 128, 0.18);
  transform: translate(-50%, 158px) scale(0.95);
  transform-origin: center bottom;
  opacity: 0;
  pointer-events: none;
  transition: transform 780ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
  z-index: 1;
}

.letter-paper::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(222, 93, 120, 0.16);
  pointer-events: none;
}

.letter-paper p {
  position: relative;
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.9;
}

.letter-paper__title {
  margin-bottom: 22px;
  padding-right: 14px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.1;
  color: var(--text);
}

.letter-envelope__button {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 560px);
  height: 360px;
  transform: translateX(-50%);
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  z-index: 2;
}

.letter-envelope__back,
.letter-envelope__paper-shadow,
.letter-envelope__flap,
.letter-envelope__bottom,
.letter-envelope__seal {
  position: absolute;
}

.letter-envelope__back {
  inset: 90px 28px 26px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 205, 211, 0.96), rgba(255, 176, 187, 0.95)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  box-shadow: 0 22px 40px rgba(214, 132, 132, 0.18);
}

.letter-envelope__paper-shadow {
  left: 80px;
  right: 80px;
  top: 76px;
  height: 154px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.12));
  opacity: 0.7;
}

.letter-envelope__flap {
  top: 90px;
  left: 28px;
  right: 28px;
  height: 176px;
  clip-path: polygon(0 0, 50% 68%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #ffb9c4 0%, #f68ba0 100%);
  transform-origin: top center;
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 4;
}

.letter-envelope__bottom {
  inset: auto 28px 26px;
  height: 250px;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(145deg, rgba(255, 169, 181, 0.98), rgba(255, 145, 163, 0.96));
  overflow: hidden;
  z-index: 3;
}

.letter-envelope__bottom::before,
.letter-envelope__bottom::after {
  content: "";
  position: absolute;
  inset: 0;
}

.letter-envelope__bottom::before {
  clip-path: polygon(0 0, 50% 58%, 0 100%);
  background: linear-gradient(145deg, rgba(255, 203, 211, 0.95), rgba(255, 157, 175, 0.85));
}

.letter-envelope__bottom::after {
  clip-path: polygon(100% 0, 50% 58%, 100% 100%);
  background: linear-gradient(215deg, rgba(255, 203, 211, 0.95), rgba(255, 157, 175, 0.85));
}

.letter-envelope__seal {
  top: 178px;
  left: 50%;
  width: 82px;
  height: 82px;
  transform: translateX(-50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: white;
  background: linear-gradient(135deg, #ff7f98 0%, #ff9f7f 100%);
  box-shadow: 0 16px 28px rgba(226, 95, 141, 0.28);
  z-index: 5;
  transition: transform 300ms ease, box-shadow 300ms ease, top 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.letter-envelope__button:hover .letter-envelope__seal {
  transform: translateX(-50%) scale(1.06);
  box-shadow: 0 18px 34px rgba(226, 95, 141, 0.34);
}

.letter-envelope.is-open .letter-paper {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  z-index: 4;
}

.letter-envelope.is-open .letter-envelope__flap {
  transform: rotateX(180deg);
}

.letter-envelope.is-open .letter-envelope__seal {
  top: 112px;
}

.letter__signature {
  margin-top: 30px;
  margin-bottom: 0;
  font-family: "Parisienne", cursive;
  font-size: 2.1rem;
  color: var(--rose-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-delay {
  transition-delay: 120ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.05);
  }
}

@keyframes softFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes buttonGlow {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow: 0 16px 24px rgba(222, 93, 120, 0.24);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 20px 32px rgba(222, 93, 120, 0.36);
  }
}

@keyframes fireworkBurst {
  0%,
  15% {
    opacity: 0;
    transform: scale(0.45);
  }
  28% {
    opacity: 0.95;
    transform: scale(1);
  }
  60% {
    opacity: 0.55;
    transform: scale(1.12);
  }
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

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

@keyframes equalizerBounce {
  0%,
  100% {
    height: 28%;
  }
  50% {
    height: 100%;
  }
}

@keyframes candleFlicker {
  0%,
  100% {
    transform: translateX(-50%) scale(1) rotate(-2deg);
  }
  50% {
    transform: translateX(-50%) scale(1.08, 0.94) rotate(3deg);
  }
}

@keyframes candleSway {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes photoDrift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

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

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .song-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .song-card__copy {
    justify-items: center;
  }

  .hero__content {
    min-height: auto;
    padding: 38px 30px;
  }

  .hero__cake {
    right: 26px;
    width: 138px;
    height: 136px;
  }

  .letter-envelope {
    min-height: 600px;
  }

  .letter-envelope__button {
    height: 330px;
  }

  .firework--left {
    left: 6%;
  }

  .firework--right {
    right: 7%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px;
  }

  .topbar,
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar__pill,
  .topbar__link,
  .button {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 38px 0;
  }

  .memory-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .song-card {
    padding: 28px 22px;
    border-radius: 28px;
  }

  .song-card__visual {
    min-height: 240px;
  }

  .song-cover {
    border-radius: 22px;
  }

  .song-play {
    width: 64px;
    height: 64px;
  }

  .hero__content,
  .hero__card {
    border-radius: 28px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .letter__intro h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .letter-envelope {
    min-height: 560px;
  }

  .letter-paper {
    width: min(92%, 420px);
    padding: 26px 20px;
    transform: translate(-50%, 150px) scale(0.95);
  }

  .letter-envelope__button {
    height: 314px;
  }

  .letter-envelope__back {
    inset: 84px 12px 18px;
  }

  .letter-envelope__flap {
    top: 84px;
    left: 12px;
    right: 12px;
  }

  .letter-envelope__bottom {
    inset: auto 12px 18px;
    height: 228px;
  }

  .letter-envelope__paper-shadow {
    left: 50px;
    right: 50px;
    top: 74px;
  }

  .letter-envelope__seal {
    top: 170px;
    width: 74px;
    height: 74px;
    font-size: 0.76rem;
  }

  .letter-envelope.is-open .letter-envelope__seal {
    top: 104px;
  }

  .hero__cake {
    position: relative;
    right: auto;
    bottom: auto;
    order: 3;
    margin-top: 22px;
    width: 132px;
    height: 126px;
  }

  .hero__fireworks {
    inset: 18px 8px auto;
    height: 140px;
  }

  .firework--left,
  .firework--top,
  .firework--right {
    width: 88px;
  }

  .firework--left {
    top: 28px;
    left: 4px;
  }

  .firework--top {
    top: 0;
    right: 26%;
  }

  .firework--right {
    top: 34px;
    right: 4px;
  }
}
