:root {
  --bg-top: #fff5f6;
  --bg-bottom: #ffd8e5;
  --ink: #4d3840;
  --ink-soft: rgba(77, 56, 64, 0.76);
  --accent: #ff7da9;
  --accent-strong: #ff5c93;
  --accent-gold: #f8c9a3;
  --glass: rgba(255, 255, 255, 0.22);
  --glass-strong: rgba(255, 255, 255, 0.34);
  --border: rgba(255, 255, 255, 0.4);
  --shadow: 0 28px 80px rgba(146, 77, 110, 0.18);
  --shell-width: min(1100px, calc(100vw - 2rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
}

body {
  position: relative;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 35%),
    radial-gradient(circle at 90% 15%, rgba(255, 215, 228, 0.8), transparent 28%),
    linear-gradient(135deg, var(--bg-top), var(--bg-bottom));
}

button {
  font: inherit;
}

.experience {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.6;
  pointer-events: none;
}

.ambient--one {
  top: -10vh;
  left: -12vw;
  width: 34vw;
  height: 34vw;
  background: rgba(255, 247, 212, 0.5);
  animation: drift 16s ease-in-out infinite;
}

.ambient--two {
  right: -10vw;
  bottom: 8vh;
  width: 32vw;
  height: 32vw;
  background: rgba(255, 177, 201, 0.42);
  animation: drift 20s ease-in-out infinite reverse;
}

.ambient--three {
  top: 36vh;
  left: 48vw;
  width: 14rem;
  height: 14rem;
  background: rgba(255, 255, 255, 0.4);
  animation: pulseBlob 8s ease-in-out infinite;
}

.round {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.025);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease),
    visibility 700ms var(--ease);
}

.round--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.round__glow {
  position: absolute;
  inset: 14% auto auto 50%;
  width: min(56vw, 34rem);
  height: min(56vw, 34rem);
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  pointer-events: none;
  opacity: 0.68;
}

.scene-shell {
  position: relative;
  width: var(--shell-width);
  min-height: min(88vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.2rem, 3.5vw, 2rem);
}

.scene-shell--reveal {
  align-items: center;
}

.scene-copy,
.scene-visual {
  position: relative;
  z-index: 1;
}

.scene-copy {
  max-width: 38rem;
}

.scene-copy--reveal {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(77, 56, 64, 0.56);
}

.headline {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.headline--reveal {
  font-size: clamp(2.8rem, 7.4vw, 5.6rem);
}

.body-copy,
.signature {
  margin: 1.2rem 0 0;
  font-size: clamp(1rem, 2.1vw, 1.18rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.subtle-copy {
  max-width: 32rem;
}

.phrase-card,
.final-line {
  margin-top: 1.4rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.18));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.phrase-card {
  width: fit-content;
  min-width: min(85vw, 17rem);
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
  font-weight: 700;
}

.final-line {
  max-width: 38rem;
  font-family: "Caveat", cursive;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.22;
}

.final-line span {
  color: var(--accent-strong);
}

.signature {
  font-size: 1rem;
}

.story-button,
.sound-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: linear-gradient(180deg, rgba(255, 135, 175, 0.92), rgba(255, 104, 149, 0.95));
  color: white;
  box-shadow:
    0 14px 40px rgba(182, 69, 115, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.story-button {
  margin-top: 1.6rem;
  padding: 0.95rem 1.45rem;
}

.story-button--ghost,
.sound-toggle[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28));
  color: var(--ink);
}

.story-button:hover:not(:disabled),
.sound-toggle:hover {
  transform: translateY(-2px) scale(1.01);
}

.story-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.sound-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  padding: 0.8rem 1rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.scene-visual {
  display: grid;
  place-items: center;
  min-height: 24rem;
}

.lottie {
  width: min(100%, 22rem);
  height: min(100%, 22rem);
}

.scene-visual--arrival {
  min-height: 30rem;
}

.storybook-heart {
  position: relative;
  width: 18rem;
  height: 18rem;
  display: grid;
  place-items: center;
  z-index: 2;
}

.storybook-heart__glow,
.storybook-heart__shape,
.storybook-heart__shape::before,
.storybook-heart__shape::after {
  position: absolute;
}

.storybook-heart__glow {
  inset: 8%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  animation: pulseBlob 5s ease-in-out infinite;
}

.storybook-heart__shape {
  width: 6.8rem;
  height: 6.8rem;
  background: linear-gradient(180deg, #ff9ebe, #ff6f9c);
  transform: rotate(-45deg);
  border-radius: 1.2rem;
  box-shadow:
    0 20px 50px rgba(197, 79, 121, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: heartBeat 1.9s ease-in-out infinite;
}

.storybook-heart__shape::before,
.storybook-heart__shape::after {
  content: "";
  width: 6.8rem;
  height: 6.8rem;
  background: inherit;
  border-radius: 50%;
}

.storybook-heart__shape::before {
  left: 0;
  top: -3.4rem;
}

.storybook-heart__shape::after {
  left: 3.4rem;
  top: 0;
}

.cloud,
.letter-seat,
.heartbeat-ring {
  position: absolute;
  border-radius: 999px;
}

.cloud {
  background: rgba(255, 255, 255, 0.74);
  filter: blur(3px);
}

.cloud--one {
  width: 11rem;
  height: 4.6rem;
  inset: 58% auto auto 10%;
  animation: floatCloud 9s ease-in-out infinite;
}

.cloud--two {
  width: 8rem;
  height: 3.4rem;
  inset: 24% 6% auto auto;
  animation: floatCloud 8s ease-in-out infinite reverse;
}

.letter-seat {
  width: 13rem;
  height: 13rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 238, 245, 0.65)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.92), transparent 55%);
  box-shadow: var(--shadow);
}

.heartbeat-ring {
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(255, 133, 161, 0.26);
  animation: ringPulse 3.6s ease-out infinite;
}

.scene-visual--memory {
  min-height: 32rem;
}

.bubble {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(77, 56, 64, 0.72);
  box-shadow: var(--shadow);
  text-transform: lowercase;
  animation: bubbleUp 8s ease-in-out infinite;
}

.bubble span {
  padding: 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.bubble--one {
  width: 6.4rem;
  height: 6.4rem;
  left: 8%;
  bottom: 20%;
}

.bubble--two {
  width: 5.5rem;
  height: 5.5rem;
  left: 48%;
  top: 18%;
  animation-delay: -2.4s;
}

.bubble--three {
  width: 7rem;
  height: 7rem;
  right: 8%;
  bottom: 12%;
  animation-delay: -4s;
}

.bubble--four {
  width: 5.1rem;
  height: 5.1rem;
  left: 25%;
  top: 10%;
  animation-delay: -1.2s;
}

.dream-clock {
  position: relative;
  width: min(65vw, 17rem);
  height: min(65vw, 17rem);
  display: grid;
  place-items: center;
}

.dream-clock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow);
}

.dream-clock__face {
  position: relative;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: clockSpin 16s linear infinite;
}

.dream-clock__dot {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.75rem;
  height: 0.75rem;
  margin-left: -0.375rem;
  margin-top: -0.375rem;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.18);
}

.dream-clock__hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 0.3rem;
  border-radius: 999px;
  transform-origin: center bottom;
}

.dream-clock__hand--hour {
  height: 26%;
  margin-left: -0.15rem;
  background: rgba(77, 56, 64, 0.65);
  transform: rotate(30deg);
}

.dream-clock__hand--minute {
  height: 38%;
  margin-left: -0.12rem;
  width: 0.24rem;
  background: rgba(255, 103, 149, 0.9);
  transform: rotate(160deg);
}

.scene-visual--quiet {
  min-height: 34rem;
}

.room-glow {
  position: absolute;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 245, 195, 0.46), rgba(255, 255, 255, 0));
  filter: blur(8px);
}

.phone-stage {
  position: relative;
  width: min(62vw, 16rem);
  aspect-ratio: 0.62;
  border-radius: 2.2rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(72, 59, 74, 0.95), rgba(31, 25, 33, 0.98));
  box-shadow:
    0 20px 60px rgba(48, 34, 42, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.phone-stage__halo {
  position: absolute;
  inset: -0.7rem;
  border-radius: 2.6rem;
  background: linear-gradient(135deg, rgba(255, 206, 223, 0.5), rgba(255, 236, 170, 0.4));
  filter: blur(18px);
  z-index: -1;
}

.phone-stage__screen {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 1.6rem;
  background:
    linear-gradient(180deg, rgba(255, 227, 238, 0.94), rgba(255, 208, 224, 0.92));
  color: rgba(77, 56, 64, 0.72);
  font-size: 1rem;
  font-weight: 700;
}

.paper-plane {
  position: absolute;
  right: 12%;
  top: 18%;
  width: 5rem;
  height: 5rem;
  transform: rotate(12deg);
}

.paper-plane::before,
.paper-plane::after {
  content: "";
  position: absolute;
  inset: 0;
}

.paper-plane::before {
  clip-path: polygon(0 55%, 100% 0, 72% 100%, 55% 65%);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 196, 214, 0.62));
  box-shadow: 0 10px 24px rgba(145, 77, 110, 0.18);
}

.paper-plane__trail {
  position: absolute;
  left: -6rem;
  top: 2.35rem;
  width: 7rem;
  height: 1px;
  border-top: 2px dashed rgba(255, 129, 166, 0.55);
  animation: trailFade 2.6s ease-in-out infinite;
}

.lottie--sparkles {
  position: absolute;
  width: 21rem;
  height: 21rem;
  opacity: 0.95;
}

.scene-visual--reveal {
  min-height: 34rem;
}

.petal {
  position: absolute;
  width: 1.8rem;
  height: 2.6rem;
  background: linear-gradient(180deg, rgba(255, 143, 177, 0.94), rgba(255, 210, 221, 0.74));
  border-radius: 55% 45% 58% 42%;
  opacity: 0.75;
  filter: blur(0.2px);
  animation: petals 10s linear infinite;
}

.petal--one {
  left: 12%;
  top: -6%;
}

.petal--two {
  left: 42%;
  top: -10%;
  animation-delay: -3s;
}

.petal--three {
  right: 14%;
  top: -4%;
  animation-delay: -5.5s;
}

.petal--four {
  right: 34%;
  top: -8%;
  animation-delay: -7.4s;
}

.lottie--confetti {
  position: absolute;
  width: min(100%, 29rem);
  height: min(100%, 29rem);
  opacity: 0.98;
}

.lottie--reveal-heart {
  width: min(90vw, 18rem);
  height: min(90vw, 18rem);
  opacity: 0.88;
}

.noscript-note {
  position: fixed;
  inset: 1rem;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  background: white;
  border-radius: 1.5rem;
  z-index: 40;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(1.5rem, 1rem, 0) scale(1.08);
  }
}

@keyframes pulseBlob {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.35;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.55;
  }
}

@keyframes floatCloud {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes ringPulse {
  0% {
    transform: scale(0.84);
    opacity: 0.45;
  }

  70%,
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

@keyframes heartBeat {
  0%,
  100% {
    transform: rotate(-45deg) scale(0.96);
  }

  35% {
    transform: rotate(-45deg) scale(1.04);
  }

  55% {
    transform: rotate(-45deg) scale(0.98);
  }
}

@keyframes bubbleUp {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-22px) scale(1.04);
  }
}

@keyframes clockSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes trailFade {
  0%,
  100% {
    opacity: 0.2;
    transform: scaleX(0.75);
  }

  50% {
    opacity: 0.95;
    transform: scaleX(1);
  }
}

@keyframes petals {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  100% {
    transform: translate3d(1rem, 112vh, 0) rotate(360deg);
  }
}

@media (max-width: 900px) {
  .scene-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
    text-align: center;
    padding-top: 4.5rem;
  }

  .scene-copy,
  .scene-copy--reveal {
    max-width: 40rem;
  }

  .phrase-card {
    margin-left: auto;
    margin-right: auto;
  }

  .scene-visual {
    width: 100%;
    min-height: 18rem;
  }

  .cloud--one {
    left: 3%;
  }

  .cloud--two {
    right: 3%;
  }

  .paper-plane {
    right: 4%;
  }
}

@media (max-width: 560px) {
  .sound-toggle {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    min-width: 9rem;
  }

  .story-button,
  .sound-toggle {
    width: min(100%, 22rem);
  }

  .lottie--confetti,
  .lottie--sparkles {
    width: 15rem;
    height: 15rem;
  }

  .storybook-heart {
    width: 14rem;
    height: 14rem;
  }

  .phone-stage {
    width: 12rem;
  }

  .bubble--one,
  .bubble--three {
    width: 5.2rem;
    height: 5.2rem;
  }
}

@media (max-height: 820px) {
  .scene-shell {
    min-height: min(84vh, 680px);
  }

  .scene-shell--reveal {
    align-items: start;
    padding-top: 2.2rem;
  }

  .headline {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
  }

  .headline--reveal {
    font-size: clamp(2.2rem, 5.3vw, 4rem);
  }

  .body-copy,
  .signature {
    margin-top: 0.8rem;
  }

  .story-button {
    margin-top: 1.1rem;
  }

  .final-line {
    font-size: clamp(1.55rem, 3.3vw, 2.45rem);
    margin-top: 1rem;
    padding: 0.8rem 1rem;
  }

  .signature {
    font-size: 0.95rem;
  }

  .scene-visual--reveal,
  .scene-visual--quiet,
  .scene-visual--memory,
  .scene-visual--arrival {
    min-height: 22rem;
  }

  .lottie--confetti {
    width: 22rem;
    height: 22rem;
  }

  .lottie--reveal-heart {
    width: 14rem;
    height: 14rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .ambient,
  .round__glow {
    display: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .phrase-card,
  .final-line,
  .bubble,
  .sound-toggle[aria-pressed="true"],
  .story-button--ghost {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
