:root {
  --pink-50: #fbf9ff;
  --pink-100: #f3e8ff;
  --pink-200: #e9d5ff;
  --pink-300: #d8b4fe;
  --pink-400: #c084fc;
  --pink-500: #8b5cf6;
  --pink-600: #7c3aed;
  --pink-700: #5b21b6;
  --plum: #2e1065;
  --plum-soft: #5b3b78;
  --cream: #fffaf4;
  --gold: #f2c477;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(76, 29, 149, 0.18);
  --serif: "Playfair Display", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--plum);
  background: var(--pink-50);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

::selection {
  color: var(--white);
  background: var(--pink-500);
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 25px;
  border: 0;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

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

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

.button--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  box-shadow: 0 14px 30px rgba(220, 38, 115, 0.27), inset 0 1px rgba(255, 255, 255, 0.3);
}

.button--primary:hover {
  box-shadow: 0 18px 36px rgba(220, 38, 115, 0.34), inset 0 1px rgba(255, 255, 255, 0.3);
}

.button--light {
  color: var(--pink-700);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(84, 11, 46, 0.16);
}

.button svg,
.text-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.eyebrow,
.intro-kicker {
  margin: 0 0 18px;
  color: var(--pink-600);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section {
  position: relative;
  min-height: 100vh;
  padding: 120px clamp(24px, 7vw, 120px);
  overflow: hidden;
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.section h2 em {
  color: var(--pink-500);
  font-weight: 600;
}

.section-number {
  position: absolute;
  top: 9%;
  right: 7%;
  color: rgba(246, 63, 142, 0.08);
  font-family: var(--serif);
  font-size: clamp(8rem, 20vw, 18rem);
  line-height: 1;
}

.section-reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Intro */
.intro {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 178, 208, 0.38), transparent 26%),
    linear-gradient(145deg, #f43b89 0%, #dd236f 48%, #a80d51 100%);
  transition: opacity 900ms ease 500ms, visibility 900ms ease 500ms;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  pointer-events: none;
}

.intro.is-opening .gift__lid {
  animation: open-lid 1.25s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.intro.is-opening .gift__light {
  animation: gift-light 1.2s ease forwards;
}

.intro.is-opening .gift__box {
  animation: gift-box-drop 800ms ease 250ms forwards;
}

.intro.is-opening .intro-content > :not(.gift-scene) {
  animation: intro-copy-out 450ms ease forwards;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.22;
  background: var(--pink-200);
  animation: glow-drift 9s ease-in-out infinite alternate;
}

.intro-glow--one {
  top: -180px;
  left: -100px;
}

.intro-glow--two {
  right: -150px;
  bottom: -180px;
  animation-delay: -4s;
}

.intro-stars span {
  position: absolute;
  color: rgba(255, 255, 255, 0.65);
  animation: star-twinkle var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

.intro-content {
  position: relative;
  z-index: 2;
  width: min(92vw, 760px);
  text-align: center;
}

.intro-kicker {
  color: rgba(255, 255, 255, 0.72);
  animation: intro-up 900ms ease both;
}

.intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.94;
  animation: intro-up 900ms ease 100ms both;
}

.intro h1 em {
  color: #ffd2e5;
  font-weight: 600;
}

.gift-scene {
  position: relative;
  width: 240px;
  height: 220px;
  margin: 18px auto 0;
  perspective: 900px;
  animation: intro-up 900ms ease 180ms both;
}

.gift-shadow {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 180px;
  height: 30px;
  border-radius: 50%;
  background: rgba(83, 4, 43, 0.28);
  filter: blur(11px);
  transform: translateX(-50%);
  animation: gift-shadow 2.6s ease-in-out infinite;
}

.gift {
  position: absolute;
  top: 54px;
  left: 50%;
  width: 150px;
  height: 130px;
  transform: translateX(-50%) rotateX(-5deg) rotateY(-8deg);
  transform-style: preserve-3d;
  animation: gift-float 2.6s ease-in-out infinite;
}

.gift__box,
.gift__lid {
  position: absolute;
  left: 0;
  width: 150px;
  transform-style: preserve-3d;
}

.gift__box {
  top: 25px;
  height: 105px;
}

.gift__front {
  position: absolute;
  inset: 0;
  border-radius: 2px 2px 8px 8px;
  background: linear-gradient(135deg, #ffd7e7, #ff9fc5);
  box-shadow: inset -14px -10px 20px rgba(173, 27, 91, 0.14);
}

.gift__side {
  position: absolute;
  top: 0;
  right: -25px;
  width: 25px;
  height: 105px;
  background: #e76b9e;
  transform: rotateY(90deg);
  transform-origin: left center;
}

.gift__lid {
  z-index: 3;
  top: 11px;
  height: 30px;
  transform-origin: 16px 12px;
}

.gift__lid-front {
  position: absolute;
  top: 0;
  left: -8px;
  width: 166px;
  height: 30px;
  border-radius: 5px;
  background: linear-gradient(130deg, #fff0f6, #ffafd0);
  box-shadow: 0 8px 12px rgba(115, 12, 57, 0.12);
}

.gift__lid-top {
  position: absolute;
  top: -23px;
  left: -8px;
  width: 166px;
  height: 25px;
  background: #ffe9f2;
  transform: rotateX(90deg);
  transform-origin: bottom;
}

.gift__lid-side {
  position: absolute;
  top: 0;
  right: -33px;
  width: 25px;
  height: 30px;
  background: #e77ca6;
  transform: rotateY(90deg);
  transform-origin: left center;
}

.gift__ribbon {
  position: absolute;
  z-index: 4;
  left: 58px;
  width: 34px;
  background: linear-gradient(90deg, #bd1d62, #f5448f 52%, #b31558);
}

.gift__ribbon--box {
  top: 0;
  height: 105px;
}

.gift__ribbon--lid {
  top: -23px;
  height: 53px;
}

.bow {
  position: absolute;
  z-index: 5;
  top: -61px;
  left: 75px;
}

.bow__loop {
  position: absolute;
  top: 4px;
  width: 54px;
  height: 36px;
  border: 9px solid #e9327d;
  background: rgba(255, 153, 195, 0.4);
}

.bow__loop--left {
  right: 0;
  border-radius: 70% 38% 55% 42%;
  transform: rotate(17deg);
}

.bow__loop--right {
  left: 0;
  border-radius: 38% 70% 42% 55%;
  transform: rotate(-17deg);
}

.bow__knot {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: -13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6ca8, #bd155c);
  box-shadow: 0 5px 8px rgba(128, 12, 61, 0.22);
}

.gift__light {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 30px;
  height: 50px;
  border-radius: 50%;
  opacity: 0;
  background: white;
  filter: blur(18px);
  transform: translateX(-50%);
}

.intro-button {
  animation: intro-up 900ms ease 300ms both;
}

.intro-hint {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  animation: intro-up 900ms ease 400ms both;
}

/* Navigation */
.nav {
  position: absolute;
  z-index: 40;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px clamp(24px, 6vw, 90px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-heart {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--white);
  border-radius: 50%;
  background: var(--pink-500);
  box-shadow: 0 7px 17px rgba(246, 63, 142, 0.27);
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: var(--plum-soft);
  border: 1px solid rgba(131, 29, 78, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.sound-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.sound-bars i {
  width: 2px;
  height: 4px;
  border-radius: 5px;
  background: var(--pink-500);
}

.sound-toggle.is-playing .sound-bars i {
  animation: sound-bar 700ms ease-in-out infinite alternate;
}

.sound-toggle.is-playing .sound-bars i:nth-child(2) {
  animation-delay: -500ms;
}

.sound-toggle.is-playing .sound-bars i:nth-child(3) {
  animation-delay: -200ms;
}

.sound-toggle.is-playing .sound-bars i:nth-child(4) {
  animation-delay: -600ms;
}

.sound-label {
  font-size: 0.7rem;
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  min-height: 100svh;
  padding: 110px clamp(24px, 7vw, 110px) 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 43%, rgba(255, 181, 213, 0.52), transparent 31%),
    radial-gradient(circle at 13% 95%, rgba(255, 212, 231, 0.75), transparent 28%),
    linear-gradient(135deg, #fff9fc 0%, #fff3f8 54%, #ffe8f2 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -38%;
  width: 62vw;
  height: 62vw;
  border: 1px solid rgba(246, 63, 142, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(246, 63, 142, 0.025), 0 0 0 100px rgba(246, 63, 142, 0.02);
}

.hero-aurora {
  position: absolute;
  top: -24%;
  right: 8%;
  width: 44vw;
  height: 44vw;
  border-radius: 44% 56% 60% 40%;
  opacity: 0.45;
  background: linear-gradient(135deg, rgba(255, 124, 177, 0.35), rgba(255, 235, 245, 0.2));
  filter: blur(50px);
  animation: aurora 12s ease-in-out infinite alternate;
}

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

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 7.8vw, 8.3rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.83;
}

.hero-title span {
  display: block;
  margin-top: 0.17em;
  color: var(--pink-500);
  font-family: var(--script);
  font-size: 1.03em;
  font-weight: 400;
  letter-spacing: -0.02em;
  transform: rotate(-3deg);
}

.hero-message {
  max-width: 580px;
  margin: 38px 0 30px;
  color: rgba(74, 18, 48, 0.68);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.3vw, 1.24rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--pink-700);
  font-size: 0.82rem;
  font-weight: 700;
}

.text-link svg {
  transition: transform 200ms ease;
}

.text-link:hover svg {
  transform: translateX(5px);
}

.reveal-item {
  opacity: 0;
  transform: translateY(35px);
}

.experience-ready .reveal-item {
  animation: hero-reveal 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.experience-ready .reveal-item:nth-child(2) {
  animation-delay: 100ms;
}

.experience-ready .reveal-item:nth-child(3) {
  animation-delay: 220ms;
}

.experience-ready .reveal-item:nth-child(4) {
  animation-delay: 330ms;
}

.floating-heart {
  position: absolute;
  z-index: 1;
  bottom: -50px;
  color: var(--pink-400);
  opacity: 0;
  animation: heart-rise var(--float-duration) linear infinite;
  animation-delay: var(--float-delay);
  pointer-events: none;
}

/* Cake */
.cake-stage {
  position: relative;
  z-index: 3;
  width: min(47vw, 660px);
  height: min(66vw, 690px);
  max-height: 75vh;
  min-height: 560px;
  justify-self: end;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.cake-stage__glow {
  position: absolute;
  top: 22%;
  left: 14%;
  width: 72%;
  height: 65%;
  border-radius: 50%;
  background: rgba(255, 116, 175, 0.26);
  filter: blur(50px);
}

.cake-wrap {
  position: absolute;
  z-index: 4;
  top: 17%;
  left: 50%;
  width: 430px;
  height: 470px;
  transform: translateX(-50%) rotateY(-8deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 240ms ease-out;
  animation: cake-float 4.8s ease-in-out infinite;
}

.cake {
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 420px;
  height: 390px;
  transform: translateX(-50%);
  transform-style: preserve-3d;
}

.cake-tier {
  position: absolute;
  left: 50%;
  border: 1px solid rgba(165, 31, 87, 0.12);
  border-radius: 50% / 14%;
  background:
    linear-gradient(90deg, rgba(184, 31, 94, 0.08), transparent 12%, transparent 85%, rgba(134, 16, 68, 0.16)),
    linear-gradient(180deg, #ffd7e6 0%, #ffb5d1 100%);
  box-shadow: inset 0 12px 20px rgba(255, 255, 255, 0.32), 0 18px 24px rgba(126, 22, 69, 0.13);
  transform: translateX(-50%);
}

.cake-tier::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -2px;
  left: -1px;
  width: calc(100% + 2px);
  height: 30%;
  border-radius: 50%;
  background: linear-gradient(155deg, #fff8fb, #ffd8e8 65%, #eca4c2);
  box-shadow: inset 0 -5px 8px rgba(170, 38, 94, 0.1);
}

.cake-tier--bottom {
  bottom: 30px;
  width: 390px;
  height: 150px;
}

.cake-tier--middle {
  z-index: 2;
  bottom: 155px;
  width: 290px;
  height: 125px;
  background:
    linear-gradient(90deg, rgba(139, 18, 69, 0.1), transparent 13%, transparent 84%, rgba(139, 18, 69, 0.17)),
    linear-gradient(180deg, #ff94bd, #f76da3);
}

.cake-tier--middle::before {
  background: linear-gradient(155deg, #ffc7dc, #ff9fc3 68%, #e56a99);
}

.cake-tier--top {
  z-index: 3;
  bottom: 258px;
  width: 195px;
  height: 98px;
  background:
    linear-gradient(90deg, rgba(139, 18, 69, 0.08), transparent 15%, transparent 84%, rgba(139, 18, 69, 0.13)),
    linear-gradient(180deg, #ffe4ee, #ffc3d9);
}

.cake-plate {
  position: absolute;
  z-index: -1;
  bottom: 12px;
  left: 50%;
  width: 460px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #f8dfe9);
  box-shadow: 0 22px 30px rgba(112, 18, 62, 0.2), inset 0 -8px 10px rgba(148, 50, 92, 0.09);
  transform: translateX(-50%);
}

.cake-ribbon {
  position: absolute;
  z-index: 3;
  top: 54px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 225px;
  height: 45px;
  color: var(--pink-700);
  border: 1px solid rgba(246, 63, 142, 0.2);
  border-radius: 50%;
  background: rgba(255, 250, 252, 0.55);
  transform: translateX(-50%);
}

.cake-ribbon span {
  font-family: var(--script);
  font-size: 1.65rem;
}

.cake-heart {
  position: absolute;
  z-index: 3;
  top: 53px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  text-shadow: 0 3px 6px rgba(149, 30, 79, 0.16);
}

.cake-heart--1 {
  left: 19%;
}

.cake-heart--2 {
  left: 48%;
}

.cake-heart--3 {
  right: 18%;
}

.cake-pearl {
  position: absolute;
  z-index: 4;
  top: 41px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #ffc7db);
  box-shadow: 0 3px 5px rgba(137, 27, 74, 0.19);
}

.cake-pearl--1 {
  left: 27px;
}

.cake-pearl--2 {
  left: 92px;
}

.cake-pearl--3 {
  right: 28px;
}

.icing-drip {
  position: absolute;
  z-index: 3;
  top: 17px;
  width: 20px;
  border-radius: 0 0 20px 20px;
  background: #fff4f8;
}

.icing-drip--1 {
  left: 25px;
  height: 34px;
}

.icing-drip--2 {
  left: 78px;
  height: 25px;
}

.icing-drip--3 {
  right: 24px;
  height: 38px;
}

.cake-topper {
  position: absolute;
  z-index: 7;
  top: 3px;
  left: 50%;
  width: 190px;
  height: 100px;
  text-align: center;
  transform: translateX(-50%);
}

.cake-topper i {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 63px;
  background: linear-gradient(var(--gold), #b67a2c);
}

.cake-topper i:first-of-type {
  left: 34px;
}

.cake-topper i:last-of-type {
  right: 34px;
}

.topper-script {
  position: relative;
  z-index: 2;
  color: #b77a2e;
  font-family: var(--script);
  font-size: 3.05rem;
  text-shadow: 0 3px 3px rgba(109, 62, 9, 0.12);
}

.candles {
  position: absolute;
  z-index: 8;
  top: 78px;
  left: 50%;
  width: 175px;
  height: 75px;
  transform: translateX(-50%);
}

.candle {
  position: absolute;
  bottom: 0;
  width: 9px;
  height: 46px;
  border-radius: 4px 4px 2px 2px;
  background: repeating-linear-gradient(45deg, #f53982 0 6px, #fff3f8 6px 12px);
  box-shadow: inset -2px 0 rgba(149, 22, 74, 0.1);
}

.candle--left {
  left: 25px;
  height: 39px;
}

.candle--middle {
  left: 83px;
}

.candle--right {
  right: 24px;
  height: 40px;
}

.flame,
.wish-flame {
  position: absolute;
  top: -25px;
  left: 50%;
  width: 14px;
  height: 24px;
  border-radius: 55% 45% 52% 48% / 68% 66% 34% 32%;
  background: linear-gradient(#fff8b7, #ffb62e 58%, #f56a2d);
  box-shadow: 0 0 12px #ffca54, 0 0 25px rgba(255, 122, 43, 0.45);
  transform: translateX(-50%) rotate(4deg);
  transform-origin: center bottom;
  animation: flame-flicker 0.85s ease-in-out infinite alternate;
}

.candle:nth-child(2) .flame {
  animation-delay: -300ms;
}

.candle:nth-child(3) .flame {
  animation-delay: -500ms;
}

.orbit {
  position: absolute;
  z-index: 2;
  top: 47%;
  left: 50%;
  border: 1px solid rgba(246, 63, 142, 0.18);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbit span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--pink-500);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 20px rgba(130, 20, 71, 0.13);
}

.orbit--one {
  width: 540px;
  height: 210px;
  animation: orbit-spin 13s linear infinite;
}

.orbit--one span {
  top: 23px;
  right: 58px;
}

.orbit--two {
  width: 440px;
  height: 320px;
  animation: orbit-spin-reverse 17s linear infinite;
}

.orbit--two span {
  bottom: 24px;
  left: 38px;
}

.orbit--three {
  width: 320px;
  height: 470px;
  opacity: 0.65;
  animation: orbit-spin 20s linear infinite;
}

.orbit--three span {
  top: 92px;
  left: -10px;
}

.cake-tag {
  position: absolute;
  z-index: 5;
  right: 2%;
  bottom: 15%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 105px;
  height: 105px;
  padding-left: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transform: rotate(8deg);
  animation: tag-bob 4s ease-in-out infinite;
}

.cake-tag span {
  color: var(--plum-soft);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cake-tag strong {
  color: var(--pink-500);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(74, 18, 48, 0.5);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  width: 22px;
  height: 34px;
  border: 1px solid rgba(74, 18, 48, 0.24);
  border-radius: 20px;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 3px;
  background: var(--pink-500);
  transform: translateX(-50%);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

/* Wish */
.wish-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 8vw;
  background:
    radial-gradient(circle at 80% 40%, rgba(255, 132, 183, 0.12), transparent 28%),
    var(--cream);
}

.wish-copy {
  position: relative;
  z-index: 3;
  max-width: 640px;
}

.wish-copy > p:not(.eyebrow, .wish-result) {
  max-width: 530px;
  margin: 30px 0 34px;
  color: rgba(74, 18, 48, 0.62);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.75;
}

.wish-result {
  max-height: 0;
  margin: 0;
  color: var(--pink-600);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  opacity: 0;
  overflow: hidden;
  transition: max-height 500ms ease, margin 500ms ease, opacity 500ms ease;
}

.wish-result.is-visible {
  max-height: 80px;
  margin-top: 22px;
  opacity: 1;
}

.wish-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9fb 0 20%, #ffe5f0 21% 42%, rgba(255, 210, 230, 0.24) 43% 62%, transparent 63%);
}

.wish-visual::after {
  content: "";
  position: absolute;
  inset: 20%;
  z-index: -1;
  border-radius: 50%;
  background: var(--pink-300);
  filter: blur(55px);
  opacity: 0.26;
}

.moon-ring {
  position: absolute;
  border: 1px solid rgba(246, 63, 142, 0.16);
  border-radius: 50%;
}

.moon-ring--outer {
  inset: 4%;
  animation: slow-spin 30s linear infinite;
}

.moon-ring--outer::after {
  content: "♥";
  position: absolute;
  top: 14%;
  right: 6%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--pink-500);
  border-radius: 50%;
  background: white;
  box-shadow: 0 8px 20px rgba(135, 24, 75, 0.13);
}

.moon-ring--inner {
  inset: 14%;
  border-style: dashed;
  animation: slow-spin 22s linear infinite reverse;
}

.wish-candle {
  position: relative;
  z-index: 3;
  width: 112px;
  height: 255px;
  margin-top: 20px;
}

.wish-candle__wax {
  position: absolute;
  bottom: 25px;
  left: 50%;
  width: 90px;
  height: 185px;
  border-radius: 44px 44px 15px 15px;
  background:
    linear-gradient(90deg, rgba(161, 28, 85, 0.1), transparent 26%, rgba(255, 255, 255, 0.45) 46%, transparent 68%, rgba(126, 19, 66, 0.13)),
    linear-gradient(#ff8eb9, #ef4d90);
  box-shadow: inset 0 7px 8px rgba(255, 255, 255, 0.25), 0 22px 28px rgba(122, 17, 65, 0.17);
  transform: translateX(-50%);
}

.wish-candle__wax::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 28px;
  border-radius: 50%;
  background: #ffb4d0;
  box-shadow: inset 0 -5px 8px rgba(188, 42, 100, 0.13);
}

.wish-candle__wax::after {
  content: "♥";
  position: absolute;
  top: 72px;
  left: 50%;
  color: rgba(255, 255, 255, 0.83);
  font-size: 2.1rem;
  transform: translateX(-50%);
}

.wish-candle__wax i {
  position: absolute;
  z-index: 2;
  top: 6px;
  width: 12px;
  border-radius: 0 0 12px 12px;
  background: #ffb4d0;
}

.wish-candle__wax i:first-child {
  left: 17px;
  height: 34px;
}

.wish-candle__wax i:last-child {
  right: 19px;
  height: 22px;
}

.wish-candle__base {
  position: absolute;
  bottom: 12px;
  left: 50%;
  width: 125px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(#f7d9e5, #dca2b9);
  box-shadow: 0 14px 18px rgba(93, 14, 50, 0.17);
  transform: translateX(-50%);
}

.wish-wick {
  position: absolute;
  z-index: 4;
  top: 28px;
  left: 50%;
  width: 3px;
  height: 20px;
  border-radius: 3px;
  background: #6f3c30;
  transform: translateX(-50%);
}

.wish-flame {
  z-index: 5;
  top: -14px;
  width: 27px;
  height: 43px;
  transition: opacity 300ms ease, transform 300ms ease;
}

.wish-visual.is-wished .wish-flame {
  opacity: 0;
  transform: translateX(-50%) scale(0.3);
}

.wish-smoke {
  position: absolute;
  z-index: 7;
  top: 24%;
  left: 50%;
  width: 40px;
  height: 100px;
  opacity: 0;
  transform: translateX(-50%);
}

.wish-visual.is-wished .wish-smoke {
  opacity: 1;
}

.wish-smoke i {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(117, 72, 93, 0.4);
  border-radius: 50%;
  animation: smoke-rise 2.3s ease-out infinite;
}

.wish-smoke i:nth-child(2) {
  animation-delay: 500ms;
}

.wish-smoke i:nth-child(3) {
  animation-delay: 1s;
}

.wish-star {
  position: absolute;
  color: var(--gold);
  font-size: 1.6rem;
  animation: star-pulse 2s ease-in-out infinite;
}

.wish-star--1 {
  top: 20%;
  left: 20%;
}

.wish-star--2 {
  top: 29%;
  right: 17%;
  animation-delay: -700ms;
}

.wish-star--3 {
  right: 24%;
  bottom: 25%;
  animation-delay: -1.3s;
}

.wish-visual > p {
  position: absolute;
  right: 3%;
  bottom: 12%;
  margin: 0;
  color: var(--pink-600);
  font-family: var(--script);
  font-size: 1.7rem;
  transform: rotate(-8deg);
}

/* Letter */
.letter-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 6vw;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 198, 223, 0.11), transparent 22%),
    linear-gradient(135deg, #5e1539, #3d0d28 60%, #29081b);
  color: var(--white);
}

.letter-section::before {
  content: "";
  position: absolute;
  top: -280px;
  left: -280px;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.012), 0 0 0 120px rgba(255, 255, 255, 0.009);
}

.letter-heading {
  position: relative;
  z-index: 3;
}

.letter-heading .eyebrow {
  color: var(--pink-300);
}

.letter-heading h2 em {
  color: var(--pink-300);
}

.letter-heading > p:last-child {
  color: rgba(255, 255, 255, 0.54);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.envelope-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 630px;
  perspective: 1200px;
}

.envelope {
  position: relative;
  width: min(44vw, 570px);
  aspect-ratio: 1.48;
  padding: 0;
  color: var(--plum);
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  filter: drop-shadow(0 35px 35px rgba(8, 0, 5, 0.28));
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope:hover {
  transform: translateY(-8px) rotateX(2deg);
}

.envelope__back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #f3b6cd;
}

.envelope__flap {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  height: 58%;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(160deg, #ffddea, #eea8c2);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 800ms cubic-bezier(0.65, 0, 0.35, 1), z-index 100ms 350ms;
}

.envelope__front-left,
.envelope__front-right,
.envelope__front-bottom {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: 0 0 12px 12px;
}

.envelope__front-left {
  background: linear-gradient(45deg, #f7c4d8, #ffd6e5);
  clip-path: polygon(0 0, 53% 52%, 0 100%);
}

.envelope__front-right {
  background: linear-gradient(-45deg, #eaa6c0, #ffd0e1);
  clip-path: polygon(100% 0, 47% 52%, 100% 100%);
}

.envelope__front-bottom {
  background: linear-gradient(180deg, #f8c6d9, #e9a5bf);
  clip-path: polygon(0 100%, 50% 42%, 100% 100%);
}

.envelope__seal {
  position: absolute;
  z-index: 7;
  top: 43%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ffd2e3;
  border: 3px double rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: linear-gradient(135deg, #d82470, #a71251);
  box-shadow: 0 8px 16px rgba(113, 14, 57, 0.3);
  transform: translate(-50%, -50%);
  transition: opacity 300ms ease 150ms, transform 450ms ease;
}

.envelope__letter {
  position: absolute;
  z-index: 2;
  top: 5%;
  left: 6%;
  display: flex;
  flex-direction: column;
  width: 88%;
  min-height: 125%;
  padding: 38px 45px;
  text-align: left;
  border-radius: 7px;
  background:
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(168, 38, 92, 0.055) 29px 30px),
    #fffaf4;
  box-shadow: 0 8px 25px rgba(76, 5, 36, 0.12);
  clip-path: inset(0 0 42% 0);
  transform: translateY(0);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 250ms,
    clip-path 1ms linear 350ms;
}

.letter-date {
  margin-bottom: 25px;
  color: var(--pink-500);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.envelope__letter strong {
  margin-bottom: 15px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.letter-lines {
  color: rgba(74, 18, 48, 0.72);
  font-family: var(--serif);
  font-size: clamp(0.78rem, 1.05vw, 1rem);
  line-height: 1.73;
}

.letter-signature {
  align-self: flex-end;
  margin-top: 22px;
  color: var(--pink-600);
  font-family: var(--script);
  font-size: 1.7rem;
}

.envelope.is-open {
  transform: translateY(100px);
}

.envelope.is-open:hover {
  transform: translateY(96px);
}

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

.envelope.is-open .envelope__letter {
  z-index: 6;
  clip-path: inset(0);
  transform: translateY(-68%);
}

.envelope.is-open .envelope__seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4) rotate(20deg);
}

.envelope-hint {
  position: absolute;
  bottom: 5px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.74rem;
}

.envelope-hint span {
  color: var(--pink-300);
  font-weight: 700;
}

/* Reasons */
.reasons-section {
  background:
    linear-gradient(rgba(246, 63, 142, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 63, 142, 0.035) 1px, transparent 1px),
    var(--pink-50);
  background-size: 56px 56px;
}

.reasons-heading {
  max-width: 800px;
  margin-bottom: 70px;
}

.reason-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1200px;
}

.reason-card {
  position: relative;
  min-height: 380px;
  padding: 44px 38px;
  border: 1px solid rgba(145, 27, 80, 0.09);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 55px rgba(104, 17, 58, 0.08);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transition: box-shadow 280ms ease;
}

.reason-card:hover {
  box-shadow: 0 28px 65px rgba(104, 17, 58, 0.14);
}

.reason-card--accent {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(145deg, var(--pink-500), #c71d66);
  box-shadow: 0 25px 60px rgba(206, 29, 104, 0.25);
}

.reason-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--pink-500);
  border-radius: 18px;
  background: var(--pink-100);
  font-size: 1.55rem;
  transform: translateZ(35px);
}

.reason-card--accent .reason-icon {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

.reason-number {
  position: absolute;
  top: 34px;
  right: 34px;
  color: rgba(246, 63, 142, 0.23);
  font-family: var(--serif);
  font-size: 3.2rem;
  transform: translateZ(25px);
}

.reason-card--accent .reason-number {
  color: rgba(255, 255, 255, 0.22);
}

.reason-card h3 {
  margin: 80px 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  transform: translateZ(30px);
}

.reason-card p {
  margin: 0;
  color: rgba(74, 18, 48, 0.58);
  line-height: 1.75;
  transform: translateZ(20px);
}

.reason-card--accent p {
  color: rgba(255, 255, 255, 0.76);
}

/* Memories */
.memory-section {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 8vw;
  background: linear-gradient(145deg, #fff5f9, #ffe5ef);
}

.memory-collage {
  position: relative;
  min-height: 650px;
  perspective: 1200px;
}

.memory-collage::before {
  content: "";
  position: absolute;
  inset: 18% 8%;
  border-radius: 50%;
  background: var(--pink-400);
  filter: blur(80px);
  opacity: 0.2;
}

.polaroid {
  position: absolute;
  width: clamp(210px, 20vw, 300px);
  padding: 12px 12px 20px;
  background: #fffefa;
  box-shadow: 0 24px 50px rgba(106, 19, 59, 0.2);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), z-index 100ms;
}

.polaroid:hover {
  z-index: 10;
}

.polaroid--one {
  z-index: 2;
  top: 4%;
  left: 7%;
  transform: rotate(-9deg);
}

.polaroid--one:hover {
  transform: rotate(-3deg) scale(1.07) translateY(-12px);
}

.polaroid--two {
  z-index: 3;
  top: 31%;
  right: 3%;
  transform: rotate(8deg);
}

.polaroid--two:hover {
  transform: rotate(2deg) scale(1.07) translateY(-12px);
}

.polaroid--three {
  z-index: 4;
  bottom: 0;
  left: 20%;
  transform: rotate(-2deg);
}

.polaroid--three:hover {
  transform: rotate(2deg) scale(1.07) translateY(-12px);
}

.polaroid-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.08;
  overflow: hidden;
}

.polaroid p {
  margin: 14px 5px 0;
  color: var(--plum-soft);
  font-family: var(--script);
  font-size: 1.45rem;
  text-align: center;
}

.polaroid-art--sunset {
  background: linear-gradient(#ff9dc5 0 42%, #ffc3d8 42% 61%, #d45288 61%);
}

.polaroid-art--sunset .sun {
  position: absolute;
  top: 24%;
  right: 18%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffe6a4;
  box-shadow: 0 0 30px rgba(255, 230, 164, 0.7);
}

.hills {
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 120%;
  height: 62%;
  border-radius: 50% 50% 0 0;
  background: #8e2c5d;
  transform: rotate(-4deg);
}

.couple {
  z-index: 2;
  margin-top: 45%;
  color: #fff0f6;
  font-size: 2.8rem;
}

.polaroid-art--flowers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  background:
    radial-gradient(circle at 24% 30%, #ffb7d3 0 5%, transparent 6%),
    radial-gradient(circle at 70% 72%, #ffb7d3 0 6%, transparent 7%),
    linear-gradient(145deg, #f85598, #a91b59);
}

.polaroid-art--flowers span {
  font-size: clamp(2rem, 3vw, 3.4rem);
  animation: flower-bob 2.8s ease-in-out infinite;
}

.polaroid-art--flowers span:nth-child(2) {
  animation-delay: -800ms;
}

.polaroid-art--flowers span:nth-child(3) {
  animation-delay: -1.4s;
}

.polaroid-art--night {
  color: #ffe0a3;
  background: radial-gradient(circle at 50% 100%, #c8407b, transparent 43%), linear-gradient(#36112c, #671a43);
}

.tiny-moon {
  position: absolute;
  top: 18%;
  left: 20%;
  font-size: 4rem;
  filter: drop-shadow(0 0 16px rgba(255, 224, 163, 0.5));
}

.tiny-stars {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
}

.memory-copy {
  position: relative;
  z-index: 4;
}

.memory-copy h2 {
  font-size: clamp(2.8rem, 5vw, 5.5rem);
}

.memory-copy > p:last-child {
  max-width: 560px;
  margin-top: 30px;
  color: rgba(74, 18, 48, 0.62);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Finale */
.finale {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding-bottom: 90px;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 190, 217, 0.35), transparent 29%),
    linear-gradient(145deg, #f74490, #c71966 55%, #8d1047);
}

.finale::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
}

.finale-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 900px);
  aspect-ratio: 1;
  opacity: 0.12;
  background: repeating-conic-gradient(from 0deg, white 0 3deg, transparent 3deg 16deg);
  mask-image: radial-gradient(circle, black, transparent 66%);
  transform: translate(-50%, -50%);
  animation: slow-spin 80s linear infinite;
}

.finale-content {
  position: relative;
  z-index: 4;
  width: min(900px, 92vw);
}

.finale .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.finale h2 {
  font-size: clamp(3.4rem, 8vw, 8rem);
}

.finale h2 em {
  color: #ffd1e4;
}

.finale-content > p:not(.eyebrow) {
  max-width: 620px;
  margin: 30px auto 35px;
  color: rgba(255, 255, 255, 0.73);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.finale-hearts span {
  position: absolute;
  z-index: 2;
  color: rgba(255, 255, 255, 0.34);
  animation: finale-float 5s ease-in-out infinite;
}

.finale-hearts span:nth-child(1) {
  top: 18%;
  left: 12%;
  font-size: 3rem;
}

.finale-hearts span:nth-child(2) {
  top: 28%;
  right: 14%;
  font-size: 4rem;
  animation-delay: -1s;
}

.finale-hearts span:nth-child(3) {
  right: 8%;
  bottom: 23%;
  font-size: 2rem;
  animation-delay: -2.2s;
}

.finale-hearts span:nth-child(4) {
  bottom: 17%;
  left: 15%;
  font-size: 5rem;
  animation-delay: -3s;
}

.finale-hearts span:nth-child(5) {
  top: 10%;
  left: 48%;
  font-size: 1.5rem;
  animation-delay: -4s;
}

footer {
  position: absolute;
  z-index: 4;
  bottom: 38px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.footer-heart {
  color: #ffd1e4;
  font-size: 1rem;
  animation: heart-beat 1.5s ease-in-out infinite;
}

/* Keyframes */
@keyframes intro-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes intro-copy-out {
  to { opacity: 0; transform: translateY(-15px); }
}

@keyframes open-lid {
  0% { transform: translateY(0) rotateZ(0); }
  35% { transform: translateY(-35px) rotateZ(-3deg); }
  100% { transform: translate(-125px, -165px) rotateZ(-24deg) rotateX(35deg); opacity: 0; }
}

@keyframes gift-box-drop {
  to { transform: translateY(55px) scale(0.86); opacity: 0; }
}

@keyframes gift-light {
  0% { opacity: 0; transform: translateX(-50%) scale(0.5); }
  40% { opacity: 0.9; }
  100% { width: 520px; height: 620px; opacity: 0; transform: translate(-50%, -280px) scale(1.5); }
}

@keyframes gift-float {
  0%, 100% { transform: translateX(-50%) rotateX(-5deg) rotateY(-8deg) translateY(0); }
  50% { transform: translateX(-50%) rotateX(-2deg) rotateY(6deg) translateY(-10px); }
}

@keyframes gift-shadow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.28; }
  50% { transform: translateX(-50%) scale(0.82); opacity: 0.18; }
}

@keyframes glow-drift {
  to { transform: translate(60px, 50px) scale(1.15); }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7) rotate(0deg); }
  50% { opacity: 0.9; transform: scale(1.2) rotate(45deg); }
}

@keyframes sound-bar {
  from { height: 3px; }
  to { height: 14px; }
}

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

@keyframes heart-rise {
  0% { opacity: 0; transform: translateY(0) translateX(0) rotate(0deg) scale(0.6); }
  12% { opacity: 0.55; }
  65% { opacity: 0.38; }
  100% { opacity: 0; transform: translateY(-110vh) translateX(var(--drift)) rotate(100deg) scale(1.2); }
}

@keyframes aurora {
  to { transform: translate(-80px, 40px) rotate(30deg) scale(1.15); }
}

@keyframes cake-float {
  0%, 100% { transform: translateX(-50%) rotateY(-8deg) rotateX(2deg) translateY(0); }
  50% { transform: translateX(-50%) rotateY(-4deg) rotateX(4deg) translateY(-12px); }
}

@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotateX(67deg) rotateZ(0); }
  to { transform: translate(-50%, -50%) rotateX(67deg) rotateZ(360deg); }
}

@keyframes orbit-spin-reverse {
  from { transform: translate(-50%, -50%) rotateY(68deg) rotateZ(0); }
  to { transform: translate(-50%, -50%) rotateY(68deg) rotateZ(-360deg); }
}

@keyframes flame-flicker {
  from { transform: translateX(-50%) rotate(-5deg) scale(0.93, 1.05); }
  to { transform: translateX(-50%) rotate(7deg) scale(1.07, 0.94); }
}

@keyframes tag-bob {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-12px); }
}

@keyframes scroll-dot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

@keyframes slow-spin {
  to { transform: rotate(360deg); }
}

@keyframes star-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.7) rotate(0); }
  50% { opacity: 1; transform: scale(1.15) rotate(30deg); }
}

@keyframes smoke-rise {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
  25% { opacity: 0.65; }
  100% { opacity: 0; transform: translate(calc(-50% + 16px), -90px) scale(2); }
}

@keyframes flower-bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

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

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.18); }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .hero-title {
    font-size: clamp(3.6rem, 7.6vw, 6rem);
  }

  .cake-stage {
    width: 48vw;
    transform: scale(0.82);
    transform-origin: center right;
  }

  .letter-section {
    grid-template-columns: 0.8fr 1.2fr;
  }

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

@media (max-width: 820px) {
  .section {
    min-height: auto;
    padding: 100px 24px;
  }

  .nav {
    padding: 20px;
  }

  .nav-brand span:last-child,
  .sound-label {
    display: none;
  }

  .sound-toggle {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding: 105px 24px 55px;
    text-align: center;
  }

  .hero-copy {
    z-index: 10;
  }

  .hero-message {
    margin: 25px auto 25px;
    line-height: 1.55;
  }

  .hero-actions {
    justify-content: center;
  }

  .cake-stage {
    position: absolute;
    top: 68%;
    left: 50%;
    width: 600px;
    height: 610px;
    min-height: 0;
    opacity: 0.32;
    transform: translate(-50%, -50%) scale(0.66);
    transform-origin: center;
  }

  .experience-ready .cake-stage.reveal-item {
    animation: mobile-cake-reveal 1s cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
  }

  .scroll-cue {
    display: none;
  }

  .wish-section,
  .letter-section,
  .memory-section {
    grid-template-columns: 1fr;
  }

  .wish-section {
    gap: 65px;
  }

  .wish-visual {
    width: min(86vw, 520px);
  }

  .letter-section {
    gap: 45px;
    padding-bottom: 150px;
  }

  .envelope-scene {
    min-height: 520px;
    transition: min-height 600ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .envelope {
    width: min(84vw, 560px);
  }

  .envelope-scene.is-open {
    min-height: clamp(500px, 108vw, 700px);
  }

  .envelope-scene.is-open .envelope,
  .envelope-scene.is-open .envelope:hover {
    transform: translateY(clamp(75px, 18vw, 140px));
  }

  .envelope-scene.is-open .envelope__letter {
    transform: translateY(-54%);
  }

  .reason-cards {
    grid-template-columns: 1fr;
  }

  .reason-card {
    min-height: 310px;
  }

  .reason-card h3 {
    margin-top: 55px;
  }

  .memory-section {
    gap: 80px;
  }

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

  .memory-copy {
    order: -1;
  }

  @keyframes mobile-cake-reveal {
    from {
      opacity: 0;
      transform: translate(-50%, -44%) scale(0.62);
    }
    to {
      opacity: 0.32;
      transform: translate(-50%, -50%) scale(0.66);
    }
  }
}

@media (max-width: 560px) {
  .intro::before,
  .finale::after {
    inset: 9px;
    border-radius: 20px;
  }

  .intro-content {
    width: 90vw;
  }

  .intro h1 {
    font-size: clamp(2.35rem, 10.8vw, 3.1rem);
    line-height: 1;
  }

  .intro h1 em {
    display: block;
  }

  .gift-scene {
    margin-top: 8px;
    transform: scale(0.84);
  }

  .hero-title {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

  .hero-message {
    font-size: 0.92rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 20px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section h2 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .wish-visual {
    transform: scale(0.9);
  }

  .envelope-scene {
    min-height: 450px;
  }

  .envelope__letter {
    min-height: 146%;
    padding: 28px 25px;
  }

  .letter-lines {
    font-size: 0.68rem;
    line-height: 1.63;
  }

  .letter-date {
    margin-bottom: 13px;
  }

  .envelope__letter strong {
    margin-bottom: 9px;
  }

  .letter-signature {
    margin-top: 10px;
    font-size: 1.35rem;
  }

  .reason-card {
    min-height: 300px;
    padding: 34px 28px;
  }

  .memory-collage {
    min-height: 500px;
    transform: scale(0.92);
  }

  .polaroid {
    width: 205px;
  }

  .polaroid--one {
    left: -2%;
  }

  .polaroid--two {
    right: -4%;
  }

  .polaroid--three {
    left: 10%;
  }

  .finale {
    min-height: 100svh;
    padding-left: 24px;
    padding-right: 24px;
  }

  .finale h2 {
    font-size: clamp(3.25rem, 16vw, 5rem);
  }

  footer {
    bottom: 25px;
    width: 84%;
    justify-content: center;
  }

  footer span:not(.footer-heart) {
    font-size: 0.54rem;
  }
}

/* Purple friendship rebrand */
.intro {
  background:
    radial-gradient(circle at 50% 36%, rgba(216, 180, 254, 0.45), transparent 26%),
    linear-gradient(145deg, #a855f7 0%, #7c3aed 48%, #4c1d95 100%);
}

.intro h1 em {
  color: #e9d5ff;
}

.intro-glow {
  background: #d8b4fe;
}

.gift__front {
  background: linear-gradient(135deg, #ede9fe, #c4b5fd);
  box-shadow: inset -14px -10px 20px rgba(91, 33, 182, 0.16);
}

.gift__side {
  background: #8b5cf6;
}

.gift__lid-front {
  background: linear-gradient(130deg, #f5f3ff, #d8b4fe);
  box-shadow: 0 8px 12px rgba(76, 29, 149, 0.16);
}

.gift__lid-top {
  background: #f3e8ff;
}

.gift__lid-side {
  background: #a78bfa;
}

.gift__ribbon {
  background: linear-gradient(90deg, #4c1d95, #8b5cf6 52%, #5b21b6);
}

.bow__loop {
  border-color: #7c3aed;
  background: rgba(196, 181, 253, 0.48);
}

.bow__knot {
  background: linear-gradient(135deg, #a78bfa, #5b21b6);
  box-shadow: 0 5px 8px rgba(76, 29, 149, 0.24);
}

.hero {
  background:
    radial-gradient(circle at 82% 43%, rgba(196, 181, 253, 0.54), transparent 31%),
    radial-gradient(circle at 13% 95%, rgba(233, 213, 255, 0.75), transparent 28%),
    linear-gradient(135deg, #fdfcff 0%, #f7f2ff 54%, #eee7ff 100%);
}

.hero::after {
  border-color: rgba(124, 58, 237, 0.14);
  box-shadow: 0 0 0 50px rgba(124, 58, 237, 0.026), 0 0 0 100px rgba(124, 58, 237, 0.02);
}

.hero-aurora {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(245, 243, 255, 0.22));
}

.cake-stage__glow {
  background: rgba(139, 92, 246, 0.28);
}

.orbit {
  border-color: rgba(124, 58, 237, 0.2);
}

.cake-tier {
  border-color: rgba(91, 33, 182, 0.14);
  background:
    linear-gradient(90deg, rgba(76, 29, 149, 0.09), transparent 12%, transparent 85%, rgba(46, 16, 101, 0.17)),
    linear-gradient(180deg, #e9d5ff 0%, #c4b5fd 100%);
  box-shadow: inset 0 12px 20px rgba(255, 255, 255, 0.34), 0 18px 24px rgba(76, 29, 149, 0.16);
}

.cake-tier::before {
  background: linear-gradient(155deg, #fdfbff, #e9d5ff 65%, #c4b5fd);
  box-shadow: inset 0 -5px 8px rgba(91, 33, 182, 0.11);
}

.cake-tier--middle {
  background:
    linear-gradient(90deg, rgba(46, 16, 101, 0.11), transparent 13%, transparent 84%, rgba(46, 16, 101, 0.18)),
    linear-gradient(180deg, #a78bfa, #8b5cf6);
}

.cake-tier--middle::before {
  background: linear-gradient(155deg, #ddd6fe, #bda8fb 68%, #8b5cf6);
}

.cake-tier--top {
  background:
    linear-gradient(90deg, rgba(76, 29, 149, 0.08), transparent 15%, transparent 84%, rgba(76, 29, 149, 0.14)),
    linear-gradient(180deg, #f3e8ff, #ddd6fe);
}

.cake-plate {
  background: linear-gradient(180deg, #ffffff, #ede9fe);
  box-shadow: 0 22px 30px rgba(76, 29, 149, 0.2), inset 0 -8px 10px rgba(91, 33, 182, 0.09);
}

.cake-ribbon {
  border-color: rgba(124, 58, 237, 0.22);
  background: rgba(250, 248, 255, 0.62);
}

.cake-pearl {
  background: linear-gradient(145deg, #ffffff, #ddd6fe);
  box-shadow: 0 3px 5px rgba(76, 29, 149, 0.2);
}

.icing-drip {
  background: #faf5ff;
}

.candle {
  background: repeating-linear-gradient(45deg, #7c3aed 0 6px, #f5f3ff 6px 12px);
  box-shadow: inset -2px 0 rgba(76, 29, 149, 0.12);
}

.wish-section {
  background:
    radial-gradient(circle at 80% 40%, rgba(167, 139, 250, 0.16), transparent 28%),
    var(--cream);
}

.wish-visual {
  background: radial-gradient(circle, #fdfbff 0 20%, #ede9fe 21% 42%, rgba(221, 214, 254, 0.3) 43% 62%, transparent 63%);
}

.wish-visual::after {
  background: #a78bfa;
}

.section-number {
  color: rgba(124, 58, 237, 0.08);
}

.moon-ring {
  border-color: rgba(124, 58, 237, 0.18);
}

.moon-ring--outer::after,
.wish-candle__wax::after {
  content: "✦";
}

.wish-candle__wax {
  background:
    linear-gradient(90deg, rgba(76, 29, 149, 0.12), transparent 26%, rgba(255, 255, 255, 0.48) 46%, transparent 68%, rgba(46, 16, 101, 0.15)),
    linear-gradient(#a78bfa, #7c3aed);
  box-shadow: inset 0 7px 8px rgba(255, 255, 255, 0.28), 0 22px 28px rgba(76, 29, 149, 0.18);
}

.wish-candle__wax::before,
.wish-candle__wax i {
  background: #c4b5fd;
}

.wish-candle__base {
  background: linear-gradient(#ede9fe, #c4b5fd);
  box-shadow: 0 14px 18px rgba(46, 16, 101, 0.18);
}

.letter-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(216, 180, 254, 0.13), transparent 22%),
    linear-gradient(135deg, #3b1764, #240b45 60%, #16062c);
}

.envelope__back {
  background: #c4b5fd;
}

.envelope__flap {
  background: linear-gradient(160deg, #ede9fe, #bda8fb);
}

.envelope__front-left {
  background: linear-gradient(45deg, #d8b4fe, #e9d5ff);
}

.envelope__front-right {
  background: linear-gradient(-45deg, #a78bfa, #ddd6fe);
}

.envelope__front-bottom {
  background: linear-gradient(180deg, #d8b4fe, #a78bfa);
}

.envelope__seal {
  color: #ede9fe;
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  box-shadow: 0 8px 16px rgba(46, 16, 101, 0.32);
}

.reason-card--accent {
  background: linear-gradient(145deg, #8b5cf6, #5b21b6);
  box-shadow: 0 25px 60px rgba(91, 33, 182, 0.28);
}

.reasons-section {
  background:
    linear-gradient(rgba(124, 58, 237, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.038) 1px, transparent 1px),
    var(--pink-50);
  background-size: 56px 56px;
}

.reason-number {
  color: rgba(124, 58, 237, 0.23);
}

.reason-card {
  border-color: rgba(91, 33, 182, 0.1);
  box-shadow: 0 18px 55px rgba(76, 29, 149, 0.09);
}

.memory-section {
  background: linear-gradient(145deg, #fbf9ff, #ede9fe);
}

.polaroid-art--sunset {
  background: linear-gradient(#c4b5fd 0 42%, #ddd6fe 42% 61%, #7c3aed 61%);
}

.hills {
  background: #4c1d95;
}

.polaroid-art--flowers {
  background:
    radial-gradient(circle at 24% 30%, #d8b4fe 0 5%, transparent 6%),
    radial-gradient(circle at 70% 72%, #d8b4fe 0 6%, transparent 7%),
    linear-gradient(145deg, #8b5cf6, #4c1d95);
}

.polaroid-art--night {
  background: radial-gradient(circle at 50% 100%, #7c3aed, transparent 43%), linear-gradient(#1f0a3d, #3b1764);
}

.finale {
  background:
    radial-gradient(circle at 50% 34%, rgba(216, 180, 254, 0.36), transparent 29%),
    linear-gradient(145deg, #9b6cf6, #6d35c5 55%, #451b82);
}

.finale h2 em {
  color: #e9d5ff;
}

/* Bold editorial birthday redesign */
.editorial-theme {
  --editorial-ink: #24103d;
  --editorial-purple: #6d28d9;
  --editorial-violet: #8b5cf6;
  --editorial-lilac: #ddd6fe;
  --editorial-cream: #fffaf0;
  --editorial-gold: #fbbf24;
  color: var(--editorial-ink);
  background: var(--editorial-cream);
}

.editorial-theme .page-noise {
  opacity: 0.055;
}

.editorial-theme .button {
  min-height: 56px;
  padding: 0 26px;
  border: 2px solid var(--editorial-ink);
  border-radius: 15px;
  box-shadow: 5px 5px 0 var(--editorial-ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.editorial-theme .button:hover {
  box-shadow: 8px 8px 0 var(--editorial-ink);
  transform: translate(-2px, -2px);
}

.editorial-theme .button:active {
  box-shadow: 2px 2px 0 var(--editorial-ink);
  transform: translate(2px, 2px);
}

.editorial-theme .button--primary {
  color: white;
  background: var(--editorial-purple);
}

.editorial-theme .button--light {
  color: var(--editorial-ink);
  background: var(--editorial-gold);
}

.editorial-theme .eyebrow,
.editorial-theme .intro-kicker {
  width: fit-content;
  padding: 8px 12px;
  color: var(--editorial-ink);
  border: 2px solid var(--editorial-ink);
  border-radius: 8px;
  background: var(--editorial-gold);
  box-shadow: 3px 3px 0 var(--editorial-ink);
  letter-spacing: 0.16em;
}

.editorial-theme .section h2 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.editorial-theme .section h2 em {
  font-family: var(--serif);
  font-weight: 600;
}

.editorial-theme .intro {
  background:
    radial-gradient(circle at 22px 22px, rgba(255, 255, 255, 0.18) 0 3px, transparent 3.5px) 0 0 / 48px 48px,
    linear-gradient(135deg, #7c3aed 0%, #5b21b6 52%, #35105f 100%);
}

.editorial-theme .intro::before {
  inset: 18px;
  border: 3px solid rgba(255, 250, 240, 0.72);
  border-radius: 18px;
}

.editorial-theme .intro-glow--one {
  background: var(--editorial-gold);
  opacity: 0.28;
}

.editorial-theme .intro-glow--two {
  background: #c4b5fd;
  opacity: 0.3;
}

.editorial-theme .intro-kicker {
  margin-right: auto;
  margin-left: auto;
  color: var(--editorial-ink);
  background: var(--editorial-gold);
}

.editorial-theme .intro h1 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.88;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 rgba(36, 16, 61, 0.35);
}

.editorial-theme .intro h1 em {
  color: #f3e8ff;
  font-family: var(--serif);
  text-transform: none;
}

.editorial-theme .gift {
  filter: drop-shadow(9px 10px 0 rgba(36, 16, 61, 0.45));
}

.editorial-theme .gift__front,
.editorial-theme .gift__lid-front {
  border: 2px solid var(--editorial-ink);
}

.editorial-theme .nav {
  padding-top: 24px;
}

.editorial-theme .nav-brand,
.editorial-theme .sound-toggle {
  color: var(--editorial-ink);
  border: 2px solid var(--editorial-ink);
  border-radius: 12px;
  background: var(--editorial-cream);
  box-shadow: 4px 4px 0 var(--editorial-ink);
}

.editorial-theme .nav-brand {
  padding: 8px 13px 8px 8px;
}

.editorial-theme .nav-heart {
  color: white;
  border-radius: 7px;
  background: var(--editorial-purple);
  box-shadow: none;
}

.editorial-theme .hero {
  grid-template-columns: minmax(0, 0.98fr) minmax(430px, 1.02fr);
  gap: clamp(30px, 5vw, 80px);
  padding-top: 125px;
  background:
    linear-gradient(rgba(109, 40, 217, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 40, 217, 0.08) 1px, transparent 1px),
    var(--editorial-cream);
  background-size: 42px 42px;
}

.editorial-theme .floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.editorial-theme .hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 43%;
  height: 100%;
  background:
    radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.2) 0 2px, transparent 2.5px) 0 0 / 38px 38px,
    var(--editorial-purple);
}

.editorial-theme .hero::after {
  display: none;
}

.editorial-theme .hero-aurora {
  top: 7%;
  right: 4%;
  width: 34vw;
  height: 34vw;
  border: 3px solid var(--editorial-ink);
  border-radius: 30px;
  opacity: 0.18;
  background: repeating-linear-gradient(45deg, transparent 0 18px, var(--editorial-gold) 18px 22px);
  filter: none;
}

.editorial-theme .hero-copy {
  max-width: 700px;
  padding: clamp(28px, 4vw, 54px);
  border: 3px solid var(--editorial-ink);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 12px 12px 0 var(--editorial-ink);
  transform: rotate(-1deg);
}

.editorial-theme .hero-copy .eyebrow {
  margin-bottom: 26px;
}

.editorial-theme .hero-title {
  font-family: var(--sans);
  font-size: clamp(3.5rem, 6.4vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.84;
  text-transform: uppercase;
}

.editorial-theme .hero-title span {
  margin-top: 0.22em;
  color: var(--editorial-purple);
  font-family: var(--serif);
  font-size: 0.66em;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.055em;
  text-transform: none;
  transform: none;
}

.editorial-theme .hero-message {
  margin: 30px 0 28px;
  color: rgba(36, 16, 61, 0.74);
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.65;
}

.editorial-theme .text-link {
  padding-bottom: 4px;
  color: var(--editorial-ink);
  border-bottom: 2px solid var(--editorial-ink);
}

.editorial-theme .cake-stage {
  width: min(43vw, 620px);
  height: 620px;
  min-height: 620px;
  max-height: 620px;
  border: 3px solid var(--editorial-ink);
  border-radius: 34px;
  opacity: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 18%, var(--editorial-gold) 0 9%, transparent 9.5%),
    linear-gradient(145deg, #ede9fe, #c4b5fd);
  box-shadow: 12px 12px 0 var(--editorial-ink);
  transform: rotate(1.5deg);
}

.editorial-theme .cake-stage__glow {
  opacity: 0.55;
}

.editorial-theme .cake-wrap {
  top: 12%;
}

.editorial-theme .orbit {
  border: 2px dashed rgba(36, 16, 61, 0.28);
}

.editorial-theme .orbit span {
  border: 2px solid var(--editorial-ink);
  background: var(--editorial-gold);
  box-shadow: 3px 3px 0 var(--editorial-ink);
}

.editorial-theme .cake-tag {
  right: 4%;
  bottom: 6%;
  border: 2px solid var(--editorial-ink);
  background: var(--editorial-gold);
  box-shadow: 5px 5px 0 var(--editorial-ink);
  backdrop-filter: none;
}

.editorial-theme .cake-tag strong,
.editorial-theme .cake-tag span {
  color: var(--editorial-ink);
}

.editorial-theme .scroll-cue {
  color: var(--editorial-ink);
}

.editorial-theme .section-number {
  color: rgba(36, 16, 61, 0.08);
  font-family: var(--sans);
  font-weight: 700;
}

.editorial-theme .wish-section {
  border-top: 3px solid var(--editorial-ink);
  border-bottom: 3px solid var(--editorial-ink);
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(109, 40, 217, 0.06) 48% 52%, transparent 52%),
    #f5edff;
  background-size: 64px 64px;
}

.editorial-theme .wish-copy {
  padding: clamp(28px, 4vw, 52px);
  border: 3px solid var(--editorial-ink);
  border-radius: 24px;
  background: var(--editorial-cream);
  box-shadow: 10px 10px 0 var(--editorial-ink);
}

.editorial-theme .wish-copy > p:not(.eyebrow, .wish-result) {
  color: rgba(36, 16, 61, 0.68);
}

.editorial-theme .wish-visual {
  border: 3px solid var(--editorial-ink);
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.28), transparent 30%),
    var(--editorial-purple);
  box-shadow: 12px 12px 0 var(--editorial-ink);
}

.editorial-theme .wish-visual::after {
  opacity: 0.48;
}

.editorial-theme .moon-ring {
  border-color: rgba(255, 255, 255, 0.35);
}

.editorial-theme .wish-visual > p {
  color: var(--editorial-cream);
}

.editorial-theme .letter-section {
  color: var(--editorial-ink);
  border-bottom: 3px solid var(--editorial-ink);
  background:
    radial-gradient(circle at 16px 16px, rgba(109, 40, 217, 0.11) 0 3px, transparent 3.5px) 0 0 / 34px 34px,
    #e9ddff;
}

.editorial-theme .letter-heading {
  padding: clamp(28px, 4vw, 48px);
  border: 3px solid var(--editorial-ink);
  border-radius: 22px;
  background: var(--editorial-gold);
  box-shadow: 10px 10px 0 var(--editorial-ink);
  transform: rotate(-1.5deg);
}

.editorial-theme .letter-heading .eyebrow {
  color: white;
  background: var(--editorial-purple);
}

.editorial-theme .letter-heading h2 em {
  color: var(--editorial-purple);
}

.editorial-theme .letter-heading > p:last-child {
  color: rgba(36, 16, 61, 0.7);
  font-family: var(--sans);
}

.editorial-theme .envelope {
  filter: drop-shadow(12px 14px 0 rgba(36, 16, 61, 0.85));
}

.editorial-theme .envelope__back,
.editorial-theme .envelope__flap,
.editorial-theme .envelope__front-left,
.editorial-theme .envelope__front-right,
.editorial-theme .envelope__front-bottom {
  outline: 2px solid var(--editorial-ink);
}

.editorial-theme .envelope__letter {
  border: 2px solid var(--editorial-ink);
  box-shadow: 7px 7px 0 var(--editorial-ink);
}

.editorial-theme .envelope-hint {
  color: rgba(36, 16, 61, 0.64);
}

.editorial-theme .envelope-hint span {
  color: var(--editorial-purple);
}

.editorial-theme .reasons-section {
  color: var(--editorial-cream);
  border-bottom: 3px solid var(--editorial-ink);
  background:
    radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.14) 0 3px, transparent 3.5px) 0 0 / 44px 44px,
    var(--editorial-purple);
}

.editorial-theme .reasons-heading .eyebrow {
  background: var(--editorial-gold);
}

.editorial-theme .reasons-heading h2 em {
  color: var(--editorial-gold);
}

.editorial-theme .reason-card,
.editorial-theme .reason-card--accent {
  color: var(--editorial-ink);
  border: 3px solid var(--editorial-ink);
  border-radius: 18px;
  background: var(--editorial-cream);
  box-shadow: 9px 9px 0 var(--editorial-ink);
  backdrop-filter: none;
}

.editorial-theme .reason-card:nth-child(1) {
  transform: rotate(-1.5deg);
}

.editorial-theme .reason-card:nth-child(2) {
  background: var(--editorial-gold);
  transform: rotate(1.2deg) translateY(-8px);
}

.editorial-theme .reason-card:nth-child(3) {
  transform: rotate(-0.8deg);
}

.editorial-theme .reason-card p,
.editorial-theme .reason-card--accent p {
  color: rgba(36, 16, 61, 0.68);
}

.editorial-theme .reason-card--accent .reason-icon {
  color: white;
  background: var(--editorial-purple);
}

.editorial-theme .reason-number,
.editorial-theme .reason-card--accent .reason-number {
  color: rgba(109, 40, 217, 0.3);
}

.editorial-theme .memory-section {
  border-bottom: 3px solid var(--editorial-ink);
  background:
    linear-gradient(90deg, transparent 0 49.7%, rgba(36, 16, 61, 0.08) 49.7% 50.3%, transparent 50.3%),
    var(--editorial-gold);
  background-size: 70px 70px;
}

.editorial-theme .polaroid {
  border: 3px solid var(--editorial-ink);
  box-shadow: 10px 10px 0 var(--editorial-ink);
}

.editorial-theme .memory-copy {
  padding: clamp(28px, 4vw, 50px);
  border: 3px solid var(--editorial-ink);
  border-radius: 22px;
  background: var(--editorial-cream);
  box-shadow: 10px 10px 0 var(--editorial-ink);
}

.editorial-theme .memory-copy > p:last-child {
  color: rgba(36, 16, 61, 0.68);
}

.editorial-theme .finale {
  color: var(--editorial-cream);
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    var(--editorial-ink);
  background-size: 50px 50px;
}

.editorial-theme .finale::after {
  border: 3px solid var(--editorial-gold);
  border-radius: 18px;
}

.editorial-theme .finale-rays {
  opacity: 0.18;
  background: repeating-conic-gradient(from 0deg, var(--editorial-gold) 0 3deg, transparent 3deg 16deg);
}

.editorial-theme .finale .eyebrow {
  margin-right: auto;
  margin-left: auto;
  color: var(--editorial-ink);
  background: var(--editorial-gold);
}

.editorial-theme .finale h2 em {
  color: #c4b5fd;
}

.editorial-theme .finale-content > p:not(.eyebrow) {
  color: rgba(255, 250, 240, 0.76);
  font-family: var(--sans);
}

@media (max-width: 820px) {
  .editorial-theme .nav-brand,
  .editorial-theme .sound-toggle {
    box-shadow: 3px 3px 0 var(--editorial-ink);
  }

  .editorial-theme .hero {
    display: flex;
    min-height: auto;
    padding: 105px 18px 70px;
    overflow: hidden;
    text-align: left;
  }

  .editorial-theme .hero::before {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 35%;
  }

  .editorial-theme .hero-copy {
    width: 100%;
    padding: 30px 22px;
    box-shadow: 8px 8px 0 var(--editorial-ink);
    transform: none;
  }

  .editorial-theme .hero-copy .eyebrow {
    margin-right: 0;
    margin-left: 0;
  }

  .editorial-theme .hero-title {
    font-size: clamp(3.25rem, 15vw, 5rem);
  }

  .editorial-theme .hero-actions {
    align-items: stretch;
  }

  .editorial-theme .cake-stage {
    position: relative;
    inset: auto;
    width: 100%;
    height: 440px;
    min-height: 440px;
    max-height: 440px;
    margin: 36px 0 0;
    align-self: center;
    opacity: 1;
    box-shadow: 8px 8px 0 var(--editorial-ink);
    transform: none;
  }

  .editorial-theme .experience-ready .cake-stage.reveal-item {
    animation: editorial-cake-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
  }

  .editorial-theme .cake-wrap {
    top: 0;
    left: calc(50% - 60px);
    scale: 0.72;
    transform-origin: top center;
  }

  .editorial-theme .cake-tag {
    right: 3%;
    bottom: 5%;
    scale: 0.85;
  }

  .editorial-theme .wish-section,
  .editorial-theme .letter-section,
  .editorial-theme .memory-section {
    gap: 64px;
  }

  .editorial-theme .wish-copy,
  .editorial-theme .letter-heading,
  .editorial-theme .memory-copy {
    box-shadow: 7px 7px 0 var(--editorial-ink);
  }

  .editorial-theme .wish-visual {
    width: min(84vw, 520px);
    box-shadow: 8px 8px 0 var(--editorial-ink);
  }

  .editorial-theme .letter-heading {
    transform: none;
  }

  .editorial-theme .reason-card:nth-child(1),
  .editorial-theme .reason-card:nth-child(2),
  .editorial-theme .reason-card:nth-child(3) {
    transform: none;
  }

  .editorial-theme .reason-card {
    box-shadow: 7px 7px 0 var(--editorial-ink);
  }

  @keyframes editorial-cake-in {
    from {
      opacity: 0;
      transform: translateY(40px) rotate(2deg);
    }
    to {
      opacity: 1;
      transform: translateY(0) rotate(0);
    }
  }
}

@media (max-width: 560px) {
  .editorial-theme .intro::before,
  .editorial-theme .finale::after {
    inset: 10px;
  }

  .editorial-theme .intro h1 {
    font-size: clamp(2.25rem, 10.5vw, 3rem);
  }

  .editorial-theme .eyebrow,
  .editorial-theme .intro-kicker {
    padding: 7px 9px;
    font-size: 0.56rem;
  }

  .editorial-theme .hero-title {
    font-size: clamp(2.9rem, 14vw, 4rem);
  }

  .editorial-theme .hero-title span {
    font-size: 0.62em;
  }

  .editorial-theme .hero-message {
    font-size: 0.88rem;
  }

  .editorial-theme .hero-actions {
    align-items: stretch;
  }

  .editorial-theme .cake-stage {
    height: 400px;
    min-height: 400px;
    max-height: 400px;
  }

  .editorial-theme .cake-wrap {
    left: calc(50% - 73px);
    scale: 0.66;
  }

  .editorial-theme .section h2 {
    font-size: clamp(2.45rem, 12vw, 3.8rem);
  }

  .editorial-theme footer {
    gap: 10px;
  }
}

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

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