:root {
  --rose: #f28ba8;
  --rose-deep: #c94c72;
  --rose-dark: #8f294f;
  --rose-soft: #fff0f5;
  --paper: #fffaf8;
  --cream: #fff7ec;
  --green: #657b5f;
  --gold: #d8a85a;
  --sky: #8fb7d8;
  --lavender: #b9a7dc;
  --ink: #4b3038;
  --muted: #8c6972;
  --shadow: 0 22px 60px rgba(155, 72, 97, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fff8fb;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(242, 139, 168, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 24%, rgba(128, 160, 116, 0.18), transparent 24rem),
    linear-gradient(180deg, #fff8fb 0%, #fffaf3 48%, #fff0f5 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.75;
}

html.story-locked,
body.story-locked {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 16% 8%, rgba(242, 139, 168, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 24%, rgba(128, 160, 116, 0.18), transparent 24rem),
    linear-gradient(180deg, #fff8fb 0%, #fffaf3 48%, #fff0f5 100%);
}

.is-hidden {
  display: none !important;
}

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
  overflow: hidden;
  background: url("assets/home-bg-preserve-cover-v0.png") center top / cover no-repeat;
}

.lock-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 18% 80%, rgba(255, 247, 216, 0.22), transparent 16rem),
    radial-gradient(circle at 78% 70%, rgba(255, 238, 246, 0.18), transparent 14rem),
    linear-gradient(180deg, rgba(255, 246, 249, 0.02), rgba(255, 229, 237, 0.08) 48%, rgba(91, 34, 57, 0.2));
  pointer-events: none;
}

.lock-screen::after {
  content: "";
  position: absolute;
  inset: 31% 0 0;
  z-index: 2;
  background:
    radial-gradient(circle at 10% 72%, rgba(255, 255, 255, 0.92) 0 7px, transparent 8px),
    radial-gradient(circle at 16% 52%, rgba(255, 246, 216, 0.88) 0 4px, transparent 5px),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.76) 0 3px, transparent 4px),
    radial-gradient(circle at 76% 70%, rgba(255, 229, 239, 0.8) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 18%, rgba(255, 250, 232, 0.7), transparent 10rem),
    linear-gradient(180deg, rgba(255, 239, 244, 0), rgba(255, 235, 239, 0.18) 11%, rgba(255, 228, 218, 0.2) 34%, rgba(199, 107, 133, 0.22) 62%, rgba(91, 34, 57, 0.42));
  filter: blur(0.2px);
  pointer-events: none;
}

.lock-extension-layer {
  display: none;
}

.petal-field,
.floating-petals {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -12vh;
  left: var(--left);
  width: var(--size);
  height: calc(var(--size) * 0.72);
  border-radius: 70% 20% 70% 30%;
  background: linear-gradient(135deg, rgba(255, 231, 238, 0.92), rgba(242, 139, 168, 0.62));
  box-shadow: 0 0 12px rgba(255, 224, 232, 0.5);
  opacity: var(--opacity);
  transform: rotate(var(--rotate));
  animation: petalFall var(--duration) linear var(--delay) infinite;
}

.floating-petals {
  z-index: 4;
  opacity: 0.66;
}

.lock-decoration {
  position: absolute;
  left: max(-30px, calc(50% - 246px));
  bottom: clamp(84px, 12vh, 132px);
  z-index: 5;
  width: min(230px, 50vw);
  aspect-ratio: 872 / 1884;
  background: url("assets/sakura-branch-v2.png") left bottom / contain no-repeat;
  opacity: 0.9;
  filter: drop-shadow(0 16px 24px rgba(105, 36, 66, 0.18));
  pointer-events: none;
}

.lock-panel {
  position: relative;
  z-index: 4;
  width: min(430px, 100%);
  margin-bottom: clamp(52px, 12vh, 108px);
  padding: 30px 24px 26px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.88), transparent 9rem),
    radial-gradient(circle at 88% 18%, rgba(255, 213, 224, 0.36), transparent 8rem),
    linear-gradient(140deg, rgba(255, 255, 255, 0.58), rgba(255, 244, 236, 0.3) 52%, rgba(255, 218, 229, 0.22)),
    rgba(255, 246, 241, 0.26);
  box-shadow:
    0 26px 58px rgba(87, 33, 59, 0.28),
    0 0 34px rgba(255, 232, 180, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(150, 74, 94, 0.14);
  color: #4c1f2c;
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  animation: panelFloat 5.8s ease-in-out infinite;
}

.lock-panel::before,
.lock-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.lock-panel::before {
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), transparent 36%),
    radial-gradient(circle at 86% 72%, rgba(255, 226, 190, 0.34), transparent 5rem);
  opacity: 0.9;
}

.lock-panel::after {
  left: -30px;
  right: -24px;
  bottom: -34px;
  height: 108px;
  background:
    radial-gradient(circle at 16% 50%, rgba(255, 255, 255, 0.82) 0 6px, transparent 7px),
    radial-gradient(circle at 28% 72%, rgba(255, 214, 226, 0.9) 0 5px, transparent 6px),
    radial-gradient(circle at 66% 60%, rgba(255, 248, 218, 0.76) 0 4px, transparent 5px),
    radial-gradient(circle at 82% 36%, rgba(255, 255, 255, 0.72) 0 4px, transparent 5px);
  filter: blur(0.3px);
}

.eyebrow,
.section-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #a33551;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lock-panel h1,
.hero h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: clamp(2.15rem, 10vw, 4.7rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.lock-panel h1 {
  font-size: clamp(2.3rem, 10vw, 3.35rem);
  position: relative;
  z-index: 1;
  color: #4a1f2a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.68), 0 8px 22px rgba(93, 34, 55, 0.12);
}

.hero h1 {
  font-size: clamp(2.15rem, 8vw, 4.15rem);
  word-break: keep-all;
  overflow-wrap: normal;
}

.lock-copy {
  position: relative;
  z-index: 1;
  margin: 16px auto 18px;
  max-width: 18rem;
  color: rgba(91, 37, 49, 0.86);
  font-weight: 500;
}

.password-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
}

.password-form input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  color: #4c1f2c;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  outline: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 240, 244, 0.28)),
    rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -10px 18px rgba(108, 45, 70, 0.05),
    0 10px 24px rgba(104, 41, 66, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.password-form input:focus {
  border-color: rgba(224, 176, 98, 0.62);
  box-shadow:
    0 0 0 3px rgba(255, 224, 163, 0.22),
    0 12px 28px rgba(104, 41, 66, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.password-form button,
.voice-card {
  min-height: 52px;
  padding: 0 18px;
  color: white;
  border: 1px solid rgba(238, 200, 123, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, #d96a82 0%, #b9425b 48%, #913348 100%);
  box-shadow:
    0 16px 30px rgba(140, 45, 70, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    inset 0 1px 0 rgba(255, 238, 205, 0.42),
    inset 0 -10px 18px rgba(91, 18, 42, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.password-form button:hover,
.voice-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 38px rgba(140, 45, 70, 0.42),
    0 0 0 1px rgba(255, 229, 166, 0.36) inset,
    inset 0 1px 0 rgba(255, 238, 205, 0.46);
}

.error {
  position: relative;
  z-index: 1;
  min-height: 1.5em;
  margin: 10px 0 0;
  color: #a33551;
  font-size: 0.88rem;
}

.envelope-transition {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: url("assets/home-bg-preserve-cover-v0.png") center top / cover no-repeat;
  animation: transitionFade 2.3s ease forwards;
}

.envelope-transition::before,
.envelope-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.envelope-transition::before {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 252, 240, 0.72), rgba(255, 231, 238, 0.36) 30%, transparent 54%),
    linear-gradient(180deg, rgba(255, 246, 249, 0.12), rgba(255, 235, 241, 0.22) 48%, rgba(82, 31, 54, 0.22));
}

.envelope-transition::after {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 246, 225, 0.52), transparent 18rem),
    radial-gradient(circle at 18% 78%, rgba(255, 219, 232, 0.34), transparent 12rem);
  filter: blur(1px);
}

.envelope {
  position: relative;
  z-index: 2;
  width: min(320px, 78vw);
  height: 220px;
  perspective: 900px;
  transform: translateY(clamp(68px, 13vh, 118px));
  filter: drop-shadow(0 28px 44px rgba(91, 34, 57, 0.22));
}

.envelope-front,
.envelope-flap,
.envelope-paper {
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.envelope-front {
  z-index: 5;
  top: 58px;
  height: 150px;
  background:
    linear-gradient(140deg, transparent 49.5%, rgba(179, 62, 91, 0.24) 50%, transparent 50.5%),
    linear-gradient(220deg, transparent 49.5%, rgba(179, 62, 91, 0.2) 50%, transparent 50.5%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.76), transparent 52%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.9), rgba(255, 217, 228, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow:
    0 28px 60px rgba(121, 52, 73, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.envelope-flap {
  z-index: 6;
  top: 58px;
  height: 150px;
  background:
    linear-gradient(145deg, rgba(255, 248, 250, 0.88), rgba(248, 171, 190, 0.78));
  border-top: 1px solid rgba(255, 255, 255, 0.62);
  clip-path: polygon(0 0, 100% 0, 50% 72%);
  transform-origin: top;
  animation: openFlap 1.2s ease 0.25s forwards;
}

.envelope-paper {
  z-index: 4;
  top: 64px;
  left: 24px;
  right: 24px;
  bottom: auto;
  height: 136px;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 18px 18px 14px;
  color: var(--rose-dark);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.58;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.92), transparent 62%),
    linear-gradient(180deg, rgba(255, 253, 250, 0.96), rgba(255, 242, 246, 0.92));
  box-shadow:
    0 14px 34px rgba(121, 52, 73, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  animation: liftPaper 1.35s ease 0.78s forwards;
}

.letter-page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 16% 8%, rgba(242, 139, 168, 0.2), transparent 28rem),
    radial-gradient(circle at 92% 24%, rgba(128, 160, 116, 0.16), transparent 24rem),
    linear-gradient(180deg, #fff8fb 0%, #fffaf3 48%, #fff0f5 100%);
}

.music-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: rgba(255, 248, 251, 0.92);
  border: 1px solid rgba(255, 231, 224, 0.36);
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(145deg, rgba(177, 51, 87, 0.78), rgba(108, 31, 56, 0.72));
  box-shadow:
    0 10px 24px rgba(83, 25, 48, 0.2),
    inset 0 1px 0 rgba(255, 237, 216, 0.3);
  isolation: isolate;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.music-button::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border: 1px solid rgba(255, 232, 226, 0.32);
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 248, 251, 0.16) 0 12%, transparent 13%),
    conic-gradient(from 24deg, rgba(255, 255, 255, 0.12), transparent 28%, rgba(255, 224, 231, 0.16), transparent 68%, rgba(255, 255, 255, 0.1));
}

.music-button::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 40%);
  pointer-events: none;
}

.music-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(83, 25, 48, 0.24),
    inset 0 1px 0 rgba(255, 237, 216, 0.34);
}

.music-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 0;
}

.music-icon::before {
  content: "\266A";
  color: rgba(255, 250, 252, 0.92);
  font-size: 1.16rem;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(255, 221, 228, 0.46);
}

.music-icon::after {
  content: "\2665";
  position: absolute;
  top: 0;
  right: -3px;
  color: rgba(255, 225, 196, 0.86);
  font-size: 0.5rem;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(111, 29, 51, 0.24);
}

.music-hint {
  position: absolute;
  right: 62px;
  width: max-content;
  max-width: 160px;
  padding: 7px 10px;
  color: var(--rose-dark);
  font-size: 0.78rem;
  border-radius: 8px;
  background: rgba(255, 250, 248, 0.9);
  box-shadow: 0 10px 28px rgba(124, 57, 76, 0.16);
}

.music-button.is-playing .music-icon {
  animation: musicHeartBeat 1.8s ease-in-out infinite;
}

.music-button.is-playing .music-icon::after {
  animation: musicNoteFloat 1.8s ease-in-out infinite;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fdf5ef;
  background: #4b1d2b;
  --hero-scroll: 0;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  transform: translateY(calc(var(--hero-scroll) * -20px)) scale(1.045);
  filter: saturate(1.02) contrast(0.98);
  animation: heroBreath 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(55, 18, 31, 0.06), rgba(255, 232, 237, 0.02) 30%, rgba(255, 232, 226, 0.3) 57%, rgba(55, 18, 31, 0.45)),
    radial-gradient(ellipse at 50% 70%, rgba(255, 242, 226, 0.58), transparent 30rem),
    radial-gradient(ellipse at 50% 34%, transparent 0 18rem, rgba(66, 21, 37, 0.12) 34rem);
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    radial-gradient(circle at 68% 20%, rgba(255, 244, 205, 0.14), transparent 15rem),
    radial-gradient(circle at 28% 72%, rgba(247, 169, 189, 0.16), transparent 18rem);
  mix-blend-mode: screen;
}

.hero-glow {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(255, 242, 225, 0.5), transparent 58%),
    linear-gradient(180deg, transparent, rgba(72, 24, 41, 0.22));
  z-index: 2;
}

.hero-filmbar {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  height: 40px;
  background: linear-gradient(180deg, rgba(255, 208, 225, 0.2), rgba(255, 208, 225, 0));
  pointer-events: none;
}

.hero-filmbar.top {
  top: 0;
}

.hero-filmbar.bottom {
  bottom: 0;
  height: 92px;
  background: linear-gradient(0deg, rgba(91, 34, 57, 0.22), rgba(250, 174, 202, 0));
}

.hero-nameplate {
  display: inline-grid;
  place-items: center;
  max-width: calc(100% - 42px);
  min-height: 34px;
  margin: 0 auto 12px;
  padding: 4px 15px;
  color: rgba(107, 35, 48, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(134, 60, 74, 0.16);
  border-radius: 999px;
  background: rgba(255, 249, 244, 0.42);
  box-shadow:
    0 10px 30px rgba(92, 34, 53, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-chapter {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: rgba(104, 36, 52, 0.72);
  font-weight: 800;
  line-height: 1;
}

.hero-chapter::before {
  content: "";
  display: none;
}

.hero-chapter-date {
  padding: 7px 10px;
  color: rgba(92, 27, 46, 0.8);
  font-size: 0.7rem;
  border: 1px solid rgba(132, 54, 72, 0.16);
  border-radius: 999px;
  background: rgba(255, 249, 244, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-chapter-text {
  position: relative;
  padding-left: 12px;
  font-size: 0.78rem;
}

.hero-chapter-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 20px;
  transform: translateY(-50%);
  background: rgba(112, 43, 58, 0.24);
}

.hero-overlay {
  position: relative;
  z-index: 5;
  align-self: end;
  justify-self: center;
  width: min(690px, calc(100% - 42px));
  margin: 0 auto clamp(142px, 18vh, 178px);
  padding: 0;
  color: #642337;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
  opacity: calc(1 - var(--hero-scroll) * 1.2);
  transform: translateY(calc(var(--hero-scroll) * -34px));
}

.hero-eyebrow {
  display: grid;
  grid-template-columns: 74px max-content 74px;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: rgba(124, 43, 57, 0.74);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 43, 57, 0.34));
}

.hero-eyebrow::after {
  background: linear-gradient(90deg, rgba(124, 43, 57, 0.34), transparent);
}

.hero-overlay h1 {
  display: grid;
  gap: 5px;
  justify-items: center;
  width: min(100%, 410px);
  margin: 0 auto;
  text-align: center;
  line-height: 1;
  filter: none;
}

.hero-overlay h1 span {
  display: block;
  white-space: nowrap;
}

.hero-title-soft {
  color: rgba(104, 36, 52, 0.78);
  font-size: clamp(2.05rem, 4.6vw, 3.75rem);
  font-weight: 560;
}

.hero-title-main {
  color: rgba(86, 24, 44, 0.98);
  font-size: clamp(3.75rem, 7.8vw, 7.05rem);
  font-weight: 760;
}

.hero-divider {
  width: min(150px, 38%);
  height: 1px;
  margin: 24px auto 18px;
  background: linear-gradient(90deg, transparent, rgba(124, 43, 57, 0.3), transparent);
}

.hero-copy {
  display: grid;
  gap: 3px;
  justify-items: center;
  margin: 0;
  color: rgba(95, 35, 48, 0.74);
  font-size: clamp(0.92rem, 1.7vw, 1.1rem);
  font-weight: 650;
  line-height: 1.48;
  text-align: center;
}

.hero-copy span {
  display: block;
  text-wrap: balance;
}

.hero-signature {
  margin: 18px 0 0;
  color: rgba(124, 43, 57, 0.62);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 0.96rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.hero-actions a {
  min-height: 50px;
  padding: 0 26px;
  color: white;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(238, 200, 123, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 44%),
    linear-gradient(135deg, #c83e5b 0%, #9b2b44 50%, #6f1d33 100%);
  box-shadow:
    0 18px 38px rgba(96, 27, 49, 0.32),
    inset 0 1px 0 rgba(255, 238, 205, 0.42);
}

.hero-actions a {
  display: inline-grid;
  place-items: center;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 7px;
  transform: translateX(-50%);
  color: rgba(107, 35, 48, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  opacity: max(0, calc(0.74 - var(--hero-scroll) * 1.6));
  pointer-events: none;
}

.hero-scroll-cue::after {
  content: "";
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, rgba(107, 35, 48, 0.1), rgba(107, 35, 48, 0.54), transparent);
  animation: scrollCue 1.8s ease-in-out infinite;
}

.conversation-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 58px 18px 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 224, 235, 0.76), transparent 20rem),
    radial-gradient(circle at 20% 70%, rgba(255, 205, 222, 0.38), transparent 24rem),
    radial-gradient(circle at 80% 66%, rgba(255, 246, 218, 0.28), transparent 22rem),
    linear-gradient(180deg, #fff8fb 0%, #fff3f7 48%, #fff0f5 100%);
}

.conversation-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, black 22%, black 82%, transparent);
  opacity: 0.16;
}

.conversation-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 174, 199, 0.92) 0 2px, transparent 2px),
    radial-gradient(circle, rgba(132, 169, 210, 0.72) 0 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(241, 201, 120, 0.72) 0 1.4px, transparent 1.4px);
  background-position: 8% 18%, 78% 26%, 52% 86%;
  background-size: 280px 280px, 340px 340px, 220px 220px;
  animation: starDrift 18s ease-in-out infinite alternate;
  opacity: 0.5;
}

.conversation-heading {
  position: relative;
  z-index: 1;
  margin: 0 auto 16px;
  text-align: center;
}

.conversation-heading h2 {
  margin: 0;
  color: var(--rose-dark);
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.1;
}

.conversation-heading > p:last-child {
  margin: 6px 0 0;
  color: rgba(143, 41, 79, 0.64);
  font-family: inherit;
}

.chat-replay {
  min-height: 36px;
  margin-top: 10px;
  padding: 0 16px;
  color: var(--rose-dark);
  border: 1px solid rgba(201, 76, 114, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 24px rgba(201, 76, 114, 0.1);
}

.phone-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: min(356px, 86vw);
  min-height: 546px;
  padding: 22px 16px 14px;
  color: #fdf8ff;
  border: 10px solid rgba(178, 112, 143, 0.26);
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 214, 228, 0.34), transparent 14rem),
    linear-gradient(180deg, rgba(91, 75, 113, 0.94), rgba(72, 58, 94, 0.95) 42%, rgba(178, 95, 133, 0.52)),
    rgba(74, 59, 96, 0.94);
  box-shadow:
    0 30px 90px rgba(155, 72, 97, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: phoneFloat 5.5s ease-in-out infinite;
  transform-origin: 50% 80%;
}

.phone-speaker {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 96px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(20, 18, 32, 0.72);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  margin: 0 6px 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
}

.phone-heart {
  display: inline-grid;
  place-items: center;
  transition: color 240ms ease, filter 240ms ease, transform 240ms ease;
}

.phone.has-final-heart .phone-heart {
  color: #fff0ad;
  filter: drop-shadow(0 0 14px rgba(255, 237, 159, 0.9));
  animation: heartBeat 980ms ease both;
}

.chat-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 16px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 241, 229, 0.78);
  box-shadow: 0 0 28px rgba(255, 207, 225, 0.34), 0 8px 18px rgba(42, 24, 48, 0.18);
}

.chat-header strong,
.chat-header small {
  display: block;
}

.chat-header small {
  color: #9de7c1;
  font-size: 0.72rem;
}

.chat-thread {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 366px;
  max-height: 366px;
  overflow: hidden;
  padding: 0 2px 48px;
}

.message-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  column-gap: 7px;
  align-items: end;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  animation: messageRowIn 580ms cubic-bezier(0.2, 0.9, 0.22, 1.18) forwards;
}

.message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 241, 229, 0.82);
  box-shadow: 0 8px 18px rgba(26, 18, 35, 0.18);
}

.from-her-row .message-avatar {
  grid-column: 1;
}

.from-her-row .bubble,
.from-her-row .typing {
  grid-column: 2;
  justify-self: start;
}

.from-me-row .bubble,
.from-me-row .typing {
  grid-column: 2;
  justify-self: end;
}

.from-me-row .message-avatar {
  grid-column: 3;
  opacity: 0.94;
}

.bubble {
  max-width: 100%;
  margin: 0;
  padding: 9px 11px;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.42;
  border-radius: 16px;
  white-space: nowrap;
  transform-origin: 50% 100%;
  animation: bubbleIn 620ms cubic-bezier(0.17, 0.9, 0.2, 1.22) forwards;
}

.bubble.final {
  font-size: 0.8rem;
}

.from-her {
  justify-self: start;
  color: #60445d;
  background: rgba(255, 236, 243, 0.9);
  box-shadow: 0 12px 28px rgba(255, 179, 205, 0.2);
}

.from-me {
  justify-self: end;
  color: white;
  background: linear-gradient(135deg, rgba(255, 127, 166, 0.92), rgba(143, 183, 216, 0.88));
  box-shadow: 0 12px 28px rgba(143, 183, 216, 0.22);
}

.bubble.final::after {
  content: " ♡";
  color: #fff4b8;
}

.typing {
  display: flex;
  gap: 4px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 18px;
  background: rgba(255, 236, 243, 0.9);
  box-shadow: 0 12px 28px rgba(255, 179, 205, 0.14);
  animation: typingPulse 920ms ease-in-out infinite;
}

.typing.me {
  justify-self: end;
  background: rgba(255, 158, 191, 0.34);
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(143, 41, 79, 0.58);
  animation: typingDot 900ms ease-in-out infinite;
}

.typing span:nth-child(2) {
  animation-delay: 120ms;
}

.typing span:nth-child(3) {
  animation-delay: 240ms;
}

.phone-input {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 38px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.story-bridge {
  position: relative;
  z-index: 2;
  margin-top: -38px;
  padding: 10px 18px 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 240, 245, 0) 0%, rgba(255, 247, 250, 0.96) 32%, #fffafa 100%);
}

.story-bridge::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 102px;
  background:
    radial-gradient(circle at 50% 0%, rgba(159, 83, 122, 0.16), transparent 17rem),
    linear-gradient(180deg, rgba(112, 62, 91, 0.16), transparent);
  pointer-events: none;
}

.story-bridge::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 128px;
  width: 1px;
  height: 88px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(169, 82, 118, 0.24), rgba(169, 82, 118, 0));
}

.bridge-glow {
  position: absolute;
  left: 50%;
  top: 44px;
  width: min(58vw, 260px);
  height: 128px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 226, 236, 0.72), rgba(255, 248, 251, 0) 68%);
  filter: blur(4px);
}

.bridge-thread {
  position: absolute;
  left: 50%;
  top: 104px;
  width: 2px;
  height: 116px;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(169, 82, 118, 0.08);
}

.bridge-thread::before {
  content: "";
  position: absolute;
  inset: -70% 0 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent, rgba(195, 58, 103, 0.5), transparent);
  animation: bridgeThreadDrop 2.8s ease-in-out infinite;
}

.bridge-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(390px, 100%);
  min-height: 192px;
  margin: 0 auto;
  padding-top: 18px;
}

.bridge-figure-wrap {
  position: relative;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
  transition: opacity 620ms ease, transform 760ms cubic-bezier(0.2, 1.28, 0.28, 1);
}

.bridge-figure-wrap::after {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 70%;
  height: 12px;
  border-radius: 999px;
  background: rgba(128, 66, 96, 0.11);
  filter: blur(7px);
}

.bridge-figure {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(82px, 23vw, 118px);
  max-width: 118px;
  height: auto;
  filter: drop-shadow(0 13px 18px rgba(123, 58, 91, 0.16));
}

.story-bridge.is-visible .bridge-figure-wrap {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.story-bridge.is-visible .bridge-figure {
  animation: bridgeFigureFloat 4.4s ease-in-out 720ms infinite;
}

.bridge-note {
  position: relative;
  width: min(298px, 78vw);
  max-width: 298px;
  padding: 12px 15px 13px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 248, 250, 0.56)),
    rgba(255, 245, 248, 0.66);
  box-shadow: 0 14px 34px rgba(143, 41, 79, 0.1);
  backdrop-filter: blur(14px);
  transform-origin: 50% 0%;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  text-align: center;
}

.story-bridge.is-visible .bridge-note {
  animation: bridgeNotePop 760ms cubic-bezier(0.2, 1.36, 0.28, 1) 360ms both;
}

.bridge-note::before {
  content: none;
  position: absolute;
  left: -10px;
  bottom: 20px;
  width: 20px;
  height: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  border-bottom-left-radius: 6px;
  background: rgba(255, 250, 252, 0.72);
  transform: rotate(45deg);
}

.bridge-kicker {
  margin: 0 0 5px;
  color: rgba(163, 53, 81, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
}

.bridge-copy {
  margin: 0;
  color: rgba(82, 42, 63, 0.9);
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: clamp(1.06rem, 4.1vw, 1.32rem);
  line-height: 1.28;
  letter-spacing: 0;
}

.section {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.section h2 {
  margin: 0 0 18px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: clamp(1.85rem, 7vw, 3.2rem);
  line-height: 1.24;
  letter-spacing: 0;
}

.intro {
  max-width: 760px;
  padding-top: 34px;
}

.intro-copy {
  position: relative;
  padding: 16px 0 0;
}

.intro-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(172, 62, 97, 0.42), transparent);
}

.story-bridge {
  min-height: 246px;
  margin-top: -72px;
  padding: 0 18px;
  background:
    linear-gradient(180deg, rgba(255, 240, 245, 0) 0%, rgba(255, 247, 250, 0.92) 28%, #fffafa 100%);
}

.story-bridge::before {
  height: 150px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(116, 63, 97, 0.18), transparent 56%),
    linear-gradient(180deg, rgba(105, 63, 94, 0.12), transparent 78%);
}

.story-bridge::after {
  content: none;
}

.bridge-mist {
  position: absolute;
  left: 50%;
  top: 6px;
  width: min(92vw, 360px);
  height: 164px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 24%, rgba(255, 255, 255, 0.72), transparent 58%),
    radial-gradient(ellipse at 50% 64%, rgba(248, 198, 215, 0.34), transparent 66%);
  filter: blur(7px);
  opacity: 0.9;
}

.bridge-orbit {
  position: relative;
  z-index: 1;
  width: min(330px, 90vw);
  height: 224px;
  margin: 0 auto;
}

.bridge-notelet {
  position: absolute;
  top: 42px;
  left: 50%;
  display: grid;
  place-items: center;
  min-width: 176px;
  min-height: 42px;
  padding: 8px 18px;
  color: rgba(121, 45, 74, 0.88);
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px 999px 999px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 245, 249, 0.62)),
    rgba(255, 247, 250, 0.72);
  box-shadow:
    0 14px 34px rgba(143, 41, 79, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateX(-50%) translateY(-18px) scale(0.88);
  transform-origin: 50% 0;
}

.story-bridge.is-visible .bridge-notelet {
  animation: bridgePaperFall 1.18s cubic-bezier(0.19, 1.16, 0.28, 1) 120ms forwards;
}

.bridge-notelet::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.86);
  border-bottom-right-radius: 4px;
  background: rgba(255, 249, 251, 0.72);
  transform: rotate(45deg);
}

.story-bridge .bridge-figure {
  position: absolute;
  top: 92px;
  right: 42px;
  z-index: 2;
  display: block;
  width: clamp(58px, 18vw, 78px);
  max-width: 78px;
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 12px 18px rgba(111, 49, 83, 0.16));
  transform: translateY(-10px) scale(0.82) rotate(2deg);
}

.story-bridge.is-visible .bridge-figure {
  animation:
    bridgeCompanionIn 900ms cubic-bezier(0.2, 1.28, 0.28, 1) 540ms forwards,
    bridgeCompanionFloat 4.2s ease-in-out 1.42s infinite;
}

.bridge-ink-line {
  position: absolute;
  top: 118px;
  left: 50%;
  width: 1px;
  height: 120px;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(176, 76, 111, 0.08);
}

.bridge-ink-line::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleY(0);
  transform-origin: top;
  background: linear-gradient(180deg, rgba(190, 67, 107, 0.4), rgba(190, 67, 107, 0.08), transparent);
}

.story-bridge.is-visible .bridge-ink-line::before {
  animation: bridgeInkDraw 1.1s ease 760ms forwards;
}

.intro {
  padding-top: 22px;
}

.intro-copy {
  margin-top: 22px;
  padding: 18px 18px 0;
  border-top: 1px solid rgba(190, 67, 107, 0.22);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 236, 242, 0.56), transparent 68%);
}

.intro-copy::before {
  left: 50%;
  width: 1px;
  height: 34px;
  transform: translate(-50%, -34px);
  background: linear-gradient(180deg, rgba(190, 67, 107, 0.18), rgba(190, 67, 107, 0.42));
}

.story-bridge {
  min-height: 306px;
  margin-top: -86px;
  padding: 0 18px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(93, 65, 104, 0.46), transparent 112px),
    linear-gradient(180deg, rgba(104, 74, 111, 0.28) 0%, rgba(178, 119, 151, 0.16) 28%, rgba(255, 246, 250, 0.96) 68%, #fffafa 100%);
}

.story-bridge::before {
  height: 184px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(93, 67, 105, 0.34), transparent 62%),
    linear-gradient(180deg, rgba(82, 57, 96, 0.22), rgba(255, 237, 246, 0));
}

.bridge-mist {
  top: -6px;
  width: min(100vw, 390px);
  height: 214px;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(115, 82, 124, 0.34), transparent 52%),
    radial-gradient(ellipse at 50% 62%, rgba(255, 232, 241, 0.78), transparent 68%);
  filter: blur(9px);
}

.bridge-orbit {
  width: min(342px, 92vw);
  height: 282px;
}

.bridge-title-lockup {
  position: absolute;
  top: 48px;
  left: 50%;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  width: min(326px, 88vw);
  min-height: 128px;
  padding: 16px 18px 14px 10px;
  transform: translateX(-50%) translateY(14px) scale(0.96);
  opacity: 0;
}

.bridge-title-lockup::before {
  content: "";
  position: absolute;
  inset: 18px 0 12px 56px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px 999px 999px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 242, 248, 0.52)),
    rgba(255, 242, 248, 0.64);
  box-shadow:
    0 18px 42px rgba(106, 53, 86, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.story-bridge.is-visible .bridge-title-lockup {
  animation: bridgeTitleArrive 900ms cubic-bezier(0.2, 1.22, 0.28, 1) 100ms forwards;
}

.story-bridge .bridge-figure {
  position: relative;
  top: auto;
  right: auto;
  z-index: 2;
  width: clamp(104px, 30vw, 132px);
  max-width: 132px;
  opacity: 1;
  transform: translateY(0) rotate(-2deg);
  filter: drop-shadow(0 16px 20px rgba(93, 50, 80, 0.18));
}

.story-bridge.is-visible .bridge-figure {
  animation: bridgeTitleFigureFloat 4.4s ease-in-out 1s infinite;
}

.bridge-title-text {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3px;
  justify-items: start;
  min-width: 0;
  padding-left: 4px;
}

.bridge-title-text span {
  color: rgba(163, 53, 81, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.bridge-title-text strong {
  color: rgba(82, 42, 63, 0.94);
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: clamp(1.26rem, 5.1vw, 1.62rem);
  font-weight: 700;
  line-height: 1.12;
  white-space: nowrap;
}

.bridge-notelet {
  display: none;
}

.bridge-ink-line {
  top: 162px;
  height: 124px;
  background: rgba(176, 76, 111, 0.07);
}

.intro {
  padding-top: 8px;
}

.intro-copy {
  margin-top: 20px;
  padding: 18px 16px 0;
}

.intro p:last-child,
.letter-paper p,
.promise-list p,
.timeline-item p,
.detail-grid p {
  margin: 0;
}

.intro {
  padding-top: 62px;
}

.intro,
.timeline-section,
.details,
.gallery-section,
.letter {
  --chapter-figure: clamp(106px, 27vw, 136px);
  --chapter-gap: 15px;
  --chapter-kicker-size: 0.92rem;
  --chapter-title-size: clamp(1.55rem, 6.1vw, 2.7rem);
  --chapter-body-size: 1rem;
}

.intro-heading {
  position: relative;
  display: grid;
  grid-template-columns: var(--chapter-figure) minmax(0, 1fr);
  gap: var(--chapter-gap);
  align-items: center;
  margin-bottom: 22px;
}

.intro-figure-wrap {
  position: relative;
  width: 100%;
  max-width: var(--chapter-figure);
  justify-self: center;
  opacity: 0;
  transform: translate3d(-8px, 8px, 0) scale(0.96);
}

.intro.is-visible .intro-figure-wrap {
  animation: introFigureEnter 960ms cubic-bezier(0.2, 1, 0.28, 1) 140ms both;
}

.intro-figure-wrap::before,
.intro-figure-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 10px 10px 0 10px;
  background: rgba(215, 78, 119, 0.42);
  opacity: 0;
  transform: rotate(45deg) scale(0.72);
  pointer-events: none;
}

.intro-figure-wrap::before {
  top: 24px;
  left: 4px;
}

.intro-figure-wrap::after {
  right: 8px;
  bottom: 34px;
  width: 7px;
  height: 7px;
  background: rgba(244, 140, 168, 0.36);
}

.intro.is-visible .intro-figure-wrap::before {
  animation: introHeartFloat 4.8s ease-in-out 860ms infinite;
}

.intro.is-visible .intro-figure-wrap::after {
  animation: introHeartFloatSmall 5.6s ease-in-out 1.28s infinite;
}

.intro-figure {
  display: block;
  width: 100%;
  filter: drop-shadow(0 16px 22px rgba(106, 53, 86, 0.16));
  transform-origin: 50% 78%;
}

.intro.is-visible .intro-figure {
  animation: introFigureBreathe 5.2s ease-in-out 1.1s infinite;
}

.intro-title {
  min-width: 0;
}

.intro-title .section-kicker {
  margin-bottom: 6px;
  font-size: var(--chapter-kicker-size);
}

.intro-title h2 {
  margin-bottom: 0;
  font-size: var(--chapter-title-size);
}

.intro-copy {
  margin-top: 0;
  padding: 0;
  border-top: 0;
  background: none;
  font-size: var(--chapter-body-size);
  line-height: 1.72;
}

.intro-copy::before {
  content: none;
}

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

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

.timeline {
  position: relative;
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 19px;
  width: 1px;
  transform-origin: top;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(234, 105, 145, 0.32) 12%, rgba(234, 168, 188, 0.2) 58%, rgba(255, 219, 166, 0.18) 88%, rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0));
  box-shadow:
    0 0 10px rgba(234, 105, 145, 0.16),
    0 0 22px rgba(255, 224, 235, 0.32);
  animation: pearlLineGrow 1.55s ease both;
}

.timeline::after {
  content: none;
}

.timeline-item {
  position: relative;
  padding: 0 0 0 42px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 9px;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 38%, #fff 0 3px, rgba(255, 255, 255, 0.74) 4px, transparent 5px),
    radial-gradient(circle, rgba(255, 235, 243, 0.94), rgba(238, 126, 162, 0.82) 58%, rgba(238, 126, 162, 0.18) 70%, transparent 72%);
  box-shadow:
    0 0 0 5px rgba(255, 236, 243, 0.72),
    0 0 18px rgba(231, 89, 136, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 42px;
  left: 28px;
  width: 30px;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(231, 89, 136, 0.24), rgba(255, 231, 240, 0));
  box-shadow: 0 0 8px rgba(231, 89, 136, 0.1);
}

.timeline-item.is-visible::before {
  animation: timelinePearlGlow 1.28s ease both;
}

.timeline-item.is-visible::after {
  animation: timelineConnectorDraw 880ms ease 120ms both;
}

.timeline-item time {
  display: inline-block;
  color: var(--rose-deep);
  font-weight: 700;
}

.timeline-item h3 {
  margin: 2px 0 8px;
  font-size: 1.1rem;
}

.timeline-heading {
  position: relative;
  display: grid;
  grid-template-columns: var(--chapter-figure) minmax(0, 1fr);
  gap: var(--chapter-gap);
  align-items: center;
}

.timeline-heading::before {
  content: "";
  position: absolute;
  left: calc(var(--chapter-figure) * 0.5);
  top: 50%;
  width: calc(var(--chapter-figure) * 1.18);
  height: calc(var(--chapter-figure) * 0.82);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 224, 235, 0.64), rgba(255, 245, 250, 0) 68%);
  filter: blur(8px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.76);
  pointer-events: none;
}

.timeline-heading::after {
  content: "";
  position: absolute;
  left: calc(var(--chapter-figure) * 0.18);
  top: 18%;
  width: 11px;
  height: 15px;
  border-radius: 100% 0 100% 0;
  background: rgba(244, 143, 171, 0.32);
  opacity: 0;
  transform: rotate(26deg);
  pointer-events: none;
}

.timeline-section.is-visible .timeline-heading::before {
  animation: timelineWarmGlow 1.35s ease 120ms both;
}

.timeline-section.is-visible .timeline-heading::after {
  animation: timelinePetalDrift 5.8s ease-in-out 640ms infinite;
}

.timeline-heading-figure {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: var(--chapter-figure);
  justify-self: center;
  opacity: 0;
  transform: translate3d(-10px, 8px, 0) rotate(-2deg) scale(0.96);
  filter: drop-shadow(0 16px 22px rgba(106, 53, 86, 0.15));
  transform-origin: 50% 78%;
}

.timeline-heading .section-kicker {
  margin-bottom: 6px;
  font-size: var(--chapter-kicker-size);
}

.timeline-heading h2 {
  margin-bottom: 0;
  font-size: var(--chapter-title-size);
}

.timeline-section.is-visible .timeline-heading-figure {
  animation:
    timelineFigureEnter 980ms cubic-bezier(0.2, 1.08, 0.28, 1) 120ms both,
    timelineFigureHello 5.2s ease-in-out 1.18s infinite;
}

.timeline-card {
  --card-shift: 0px;
  --card-tilt: 0deg;
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 134px;
  padding: 14px 15px 14px 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 229, 240, 0.5), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 250, 0.56)),
    rgba(255, 252, 250, 0.56);
  box-shadow:
    0 16px 38px rgba(155, 72, 97, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate3d(var(--card-shift), 16px, 0) rotate(calc(var(--card-tilt) - 1deg));
  transform-origin: 50% 24%;
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(110deg, transparent 0 30%, rgba(255, 255, 255, 0.4) 42%, transparent 56%);
  opacity: 0;
  transform: translateX(-22%);
  pointer-events: none;
}

.timeline-card::after {
  content: none;
}

.timeline-item:nth-child(odd) .timeline-card {
  --card-shift: -4px;
  --card-tilt: -0.65deg;
}

.timeline-item:nth-child(even) .timeline-card {
  --card-shift: 7px;
  --card-tilt: 0.72deg;
}

.timeline-item:nth-child(3) .timeline-card {
  --card-shift: -1px;
  --card-tilt: 0.42deg;
}

.timeline-item.is-visible .timeline-card {
  animation: timelineMemoryReveal 920ms cubic-bezier(0.18, 1.1, 0.28, 1) 70ms both;
}

.timeline-item.is-visible .timeline-card::before {
  animation: timelineCardGlimmer 1.05s ease 360ms both;
}

.timeline-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 96px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 242, 247, 0.68), rgba(255, 247, 250, 0.2) 66%, transparent 68%);
  overflow: hidden;
}

.timeline-media::after {
  content: "";
  position: absolute;
  bottom: 12px;
  width: 62%;
  height: 10px;
  border-radius: 999px;
  background: rgba(106, 53, 86, 0.1);
  filter: blur(8px);
}

.timeline-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 82px;
  max-height: 92px;
  object-fit: contain;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  filter: drop-shadow(0 12px 16px rgba(106, 53, 86, 0.14));
}

.timeline-media-wide img {
  width: 96px;
  max-height: 100px;
}

.timeline-item.is-visible .timeline-media img {
  animation: timelineImageBloom 780ms cubic-bezier(0.2, 1.2, 0.28, 1) 120ms both;
}

.timeline-copy {
  min-width: 0;
}

.timeline-copy time {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  color: #fff9fb;
  font-size: 0.86rem;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, #d6527d, #a41d4e);
  box-shadow: 0 8px 18px rgba(164, 29, 78, 0.16);
}

.timeline-copy h3 {
  margin: 10px 0 6px;
  color: rgba(70, 37, 55, 0.94);
  font-size: 1rem;
  line-height: 1.32;
}

.timeline-copy p {
  color: rgba(70, 37, 55, 0.84);
  font-size: 0.92rem;
  line-height: 1.52;
}

.timeline-copy span {
  display: inline-block;
  margin-top: 8px;
  color: rgba(166, 59, 96, 0.74);
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: 0.9rem;
  line-height: 1.35;
}

.detail-grid {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.details-heading {
  position: relative;
  display: grid;
  grid-template-columns: var(--chapter-figure) minmax(0, 1fr);
  gap: var(--chapter-gap);
  align-items: center;
}

.details-heading::before {
  content: "";
  position: absolute;
  left: calc(var(--chapter-figure) * 0.5);
  top: 50%;
  width: calc(var(--chapter-figure) * 1.16);
  height: calc(var(--chapter-figure) * 0.82);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 226, 237, 0.62), rgba(255, 247, 250, 0) 68%);
  filter: blur(8px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
}

.details-heading::after {
  content: "";
  position: absolute;
  left: calc(var(--chapter-figure) * 0.22);
  top: 16%;
  width: 9px;
  height: 13px;
  border-radius: 100% 0 100% 0;
  background: rgba(244, 143, 171, 0.3);
  opacity: 0;
  transform: rotate(24deg);
  pointer-events: none;
}

.details.is-visible .details-heading::before {
  animation: detailsWarmGlow 1.28s ease 120ms both;
}

.details.is-visible .details-heading::after {
  animation: detailsPetalDrift 5.6s ease-in-out 620ms infinite;
}

.details-heading-figure {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: var(--chapter-figure);
  justify-self: center;
  opacity: 0;
  transform: translate3d(-8px, 8px, 0) rotate(-1.4deg) scale(0.96);
  filter: drop-shadow(0 16px 22px rgba(106, 53, 86, 0.14));
  transform-origin: 50% 78%;
}

.details.is-visible .details-heading-figure {
  animation:
    detailsFigureEnter 940ms cubic-bezier(0.2, 1.08, 0.28, 1) 120ms both,
    detailsFigureBreathe 5.2s ease-in-out 1.12s infinite;
}

.details-heading .section-kicker {
  margin-bottom: 6px;
  font-size: var(--chapter-kicker-size);
}

.details-heading h2 {
  margin-bottom: 0;
  font-size: var(--chapter-title-size);
}

.detail-grid article,
.coming-soon,
.letter-paper,
.promise-list {
  border: 1px solid rgba(201, 76, 114, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 248, 0.8);
  box-shadow: 0 16px 40px rgba(155, 72, 97, 0.1);
  backdrop-filter: blur(8px);
}

.detail-grid article {
  padding: 18px;
}

.detail-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--rose-deep);
  font-weight: 800;
}

.details .detail-grid {
  gap: 14px;
  margin-top: 30px;
}

.details .detail-grid article {
  --perfume-hue: 338;
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 132px;
  padding: 18px 18px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 16%, hsla(var(--perfume-hue), 82%, 82%, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 250, 0.58)),
    rgba(255, 250, 248, 0.66);
  box-shadow:
    0 16px 34px rgba(155, 72, 97, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.details .detail-grid article:nth-child(2) {
  --perfume-hue: 24;
}

.details .detail-grid article:nth-child(3) {
  --perfume-hue: 328;
}

.details .detail-grid article:nth-child(4) {
  --perfume-hue: 196;
}

.details .detail-grid article:nth-child(5) {
  --perfume-hue: 348;
}

.details .detail-grid article::before {
  content: "";
  grid-row: 1 / span 2;
  width: 42px;
  height: 62px;
  justify-self: center;
  border: 1px solid hsla(var(--perfume-hue), 65%, 72%, 0.38);
  border-radius: 14px 14px 18px 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), transparent 28%),
    radial-gradient(circle at 50% 74%, hsla(var(--perfume-hue), 86%, 72%, 0.52), hsla(var(--perfume-hue), 76%, 82%, 0.2) 54%, rgba(255, 255, 255, 0.2) 70%),
    rgba(255, 255, 255, 0.56);
  box-shadow:
    0 13px 22px rgba(155, 72, 97, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.details .detail-grid article::after {
  content: "";
  position: absolute;
  left: 35px;
  top: 31px;
  width: 20px;
  height: 9px;
  border-radius: 4px 4px 2px 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), hsla(var(--perfume-hue), 68%, 84%, 0.62));
  box-shadow:
    0 -7px 0 -3px hsla(var(--perfume-hue), 54%, 72%, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.details .detail-grid article.is-visible::before {
  animation: perfumeBottleGlow 1.15s ease 140ms both;
}

.details .detail-grid article.is-visible {
  animation: perfumeMemoryIn 760ms cubic-bezier(0.2, 1.08, 0.28, 1) both;
}

.details .detail-grid span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 7px;
  color: hsl(var(--perfume-hue), 56%, 48%);
  font-size: 1rem;
  font-weight: 850;
}

.details .detail-grid span::after {
  content: "memory";
  margin-left: 8px;
  color: rgba(143, 88, 108, 0.38);
  font-size: 0.58rem;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.details .detail-grid p {
  position: relative;
  z-index: 1;
  color: rgba(70, 37, 55, 0.82);
  font-size: 0.94rem;
  line-height: 1.66;
}

.gallery {
  display: grid;
  gap: 14px;
}

.gallery-section {
  position: relative;
}

.gallery-section.reveal {
  opacity: 1;
  transform: none;
}

.details + .gallery-section {
  padding-top: 28px;
}

.gallery-heading {
  position: relative;
  display: grid;
  grid-template-columns: var(--chapter-figure) minmax(0, 1fr);
  gap: var(--chapter-gap);
  align-items: center;
  margin-bottom: 28px;
}

.gallery-heading::before {
  content: "";
  position: absolute;
  left: calc(var(--chapter-figure) * 0.5);
  top: 50%;
  width: calc(var(--chapter-figure) * 1.16);
  height: calc(var(--chapter-figure) * 0.82);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 228, 238, 0.62), rgba(255, 247, 250, 0) 68%);
  filter: blur(8px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
}

.gallery-heading::after {
  content: "";
  position: absolute;
  left: calc(var(--chapter-figure) * 0.22);
  top: 15%;
  width: 9px;
  height: 13px;
  border-radius: 100% 0 100% 0;
  background: rgba(244, 143, 171, 0.3);
  opacity: 0;
  transform: rotate(24deg);
  pointer-events: none;
}

.gallery-section.is-visible .gallery-heading::before {
  animation: galleryWarmGlow 1.28s ease 120ms both;
}

.gallery-section.is-visible .gallery-heading::after {
  animation: galleryPetalDrift 5.8s ease-in-out 620ms infinite;
}

.gallery-heading-figure {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: var(--chapter-figure);
  justify-self: center;
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(-0.5deg) scale(1);
  filter: drop-shadow(0 16px 22px rgba(106, 53, 86, 0.14));
  transform-origin: 50% 78%;
}

.gallery-section.is-visible .gallery-heading-figure {
  animation:
    galleryFigureEnter 940ms cubic-bezier(0.2, 1.08, 0.28, 1) 120ms both,
    galleryFigureBreathe 5.2s ease-in-out 1.12s infinite;
}

.gallery-heading .section-kicker {
  margin-bottom: 6px;
  font-size: var(--chapter-kicker-size);
}

.gallery-heading h2 {
  max-width: 9em;
  margin-bottom: 0;
  font-size: var(--chapter-title-size);
}

.featured {
  grid-template-columns: 1fr;
  margin-top: 26px;
}

.photo-frame-carousel {
  position: relative;
  margin-top: 26px;
  padding: 18px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 249, 0.68)),
    rgba(255, 250, 248, 0.82);
  box-shadow:
    0 20px 46px rgba(155, 72, 97, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.photo-frame-carousel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(215, 112, 142, 0.12);
  border-radius: 8px;
  pointer-events: none;
}

.photo-frame-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(158, 90, 111, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.photo-frame-top strong {
  display: inline-grid;
  min-width: 52px;
  height: 28px;
  place-items: center;
  color: rgba(198, 75, 114, 0.78);
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: rgba(255, 230, 238, 0.72);
}

.memory-frame {
  position: relative;
  z-index: 1;
  padding: 9px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 246, 0.78)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(218, 112, 143, 0.12),
    0 14px 30px rgba(126, 62, 82, 0.1);
}

.frame-photo {
  aspect-ratio: 1.16 / 1;
  border-radius: 8px;
  touch-action: pan-y;
}

.frame-photo::after {
  display: none;
}

.frame-photo img {
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.frame-photo.is-switching img {
  animation: framePhotoSlide 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.frame-caption {
  position: relative;
  z-index: 1;
  margin: 14px 4px 12px;
  padding-top: 13px;
  color: rgba(119, 68, 84, 0.88);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.72;
  border-top: 1px solid rgba(202, 91, 124, 0.16);
}

.frame-thumbs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.frame-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 245, 248, 0.8);
  box-shadow: 0 8px 18px rgba(126, 62, 82, 0.08);
  opacity: 0.74;
}

.frame-thumb.is-active {
  border-color: rgba(206, 70, 112, 0.76);
  opacity: 1;
}

.frame-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figure {
  margin: 0;
}

.polaroid {
  position: relative;
  overflow: hidden;
  padding: 13px 13px 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 250, 0.72)),
    rgba(255, 250, 248, 0.82);
  box-shadow:
    0 18px 40px rgba(155, 72, 97, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(24px);
}

.polaroid::before,
.polaroid::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 64px;
  width: 7px;
  opacity: 0.2;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(156, 72, 101, 0.34) 0 2px, transparent 2.6px) 0 0 / 7px 22px;
}

.polaroid::before {
  left: 4px;
}

.polaroid::after {
  right: 4px;
}

.polaroid.is-visible {
  animation: filmPhotoDevelop 900ms ease both;
}

.polaroid:nth-child(odd) {
  --film-tilt: -0.28deg;
}

.polaroid:nth-child(even) {
  --film-tilt: 0.28deg;
}

.featured .polaroid {
  padding: 42px 14px 0;
  border-color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 250, 0.72)),
    radial-gradient(circle at 16% 8%, rgba(255, 205, 220, 0.42), transparent 34%),
    rgba(255, 251, 248, 0.92);
  box-shadow:
    0 22px 46px rgba(128, 62, 86, 0.12),
    0 3px 0 rgba(255, 255, 255, 0.62) inset,
    inset 0 -1px 0 rgba(204, 120, 142, 0.08);
}

.featured .polaroid::before {
  content: "OUR PHOTO · 2026";
  top: 13px;
  left: 16px;
  right: auto;
  bottom: auto;
  width: auto;
  color: rgba(156, 72, 101, 0.62);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  background: none;
  opacity: 1;
}

.featured .polaroid::after {
  content: "01";
  top: 10px;
  right: 14px;
  left: auto;
  bottom: auto;
  display: grid;
  width: 28px;
  height: 22px;
  place-items: center;
  color: rgba(156, 72, 101, 0.58);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(255, 232, 239, 0.82);
  opacity: 1;
}

.featured .polaroid:nth-child(2)::after {
  content: "02";
}

.featured .polaroid:nth-child(3)::after {
  content: "03";
}

.featured .polaroid:nth-child(4)::after {
  content: "04";
}

.featured .polaroid:nth-child(5)::after {
  content: "05";
}

.featured .polaroid:nth-child(6)::after {
  content: "06";
}

.photo-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.photo-button::after {
  content: "MEMORY";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(89, 38, 61, 0.18);
  backdrop-filter: blur(8px);
}

.gallery .photo-button::after {
  display: none;
}

.featured .photo-button {
  border-radius: 8px;
  box-shadow:
    0 12px 26px rgba(118, 62, 78, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.66);
}

.featured .photo-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 32%, rgba(88, 30, 52, 0.14)),
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.26), transparent 24%);
}

.featured .photo-button::after {
  display: none;
}

.photo-button img {
  display: block;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(0.98);
  transition: transform 500ms ease, filter 500ms ease;
}

.photo-button:hover img {
  transform: scale(1.04);
  filter: saturate(1.04) brightness(1.02);
}

.featured img {
  height: min(72vw, 420px);
}

figcaption {
  padding: 13px 6px 16px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.featured figcaption {
  position: relative;
  margin: 0 2px;
  padding: 17px 4px 18px;
  color: rgba(108, 67, 81, 0.86);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.62;
}

.featured figcaption::before {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-bottom: 11px;
  background: linear-gradient(90deg, rgba(193, 72, 111, 0.32), transparent);
}

.gallery-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 42px 0 14px;
  color: var(--rose-deep);
  font-size: 1.15rem;
}

.gallery-title::after {
  content: "Together";
  padding: 3px 8px;
  color: rgba(156, 72, 101, 0.52);
  font-size: 0.58rem;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(201, 76, 114, 0.14);
  border-radius: 999px;
}

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

.portrait-story {
  position: relative;
  margin: 48px 0 8px;
  padding: 18px 14px 22px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 220, 232, 0.55), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 250, 0.48), rgba(255, 244, 247, 0.18));
}

.portrait-story::before,
.portrait-story::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.portrait-story::before {
  left: 20px;
  top: 72px;
  width: 1px;
  height: 74%;
  background: linear-gradient(180deg, rgba(205, 76, 116, 0.22), rgba(205, 76, 116, 0));
}

.portrait-story::after {
  right: 16px;
  top: 34px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 225, 235, 0.78), rgba(255, 225, 235, 0) 68%);
  filter: blur(2px);
  opacity: 0.78;
}

.portrait-story-head {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.portrait-story-head .section-kicker {
  margin-bottom: 8px;
}

.portrait-story-head h3 {
  max-width: 12.5em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 8vw, 2.62rem);
  line-height: 1.38;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-weight: 800;
}

.portrait-collage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  align-items: stretch;
}

.portrait-collage .photo-button {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 250, 250, 0.72);
  box-shadow:
    0 16px 34px rgba(118, 62, 78, 0.12),
    0 0 0 1px rgba(214, 106, 136, 0.06);
}

.portrait-collage .photo-button::after {
  display: none;
}

.portrait-collage .photo-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%, rgba(98, 36, 58, 0.1)),
    radial-gradient(circle at 78% 14%, rgba(255, 255, 255, 0.24), transparent 24%);
}

.portrait-collage img {
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  object-fit: cover;
}

.portrait-hero {
  grid-column: 1 / -1;
  aspect-ratio: 1.36 / 1;
}

.portrait-hero img {
  object-position: center 42%;
}

.portrait-tall {
  grid-column: span 1;
  aspect-ratio: 0.86 / 1;
}

.portrait-small {
  grid-column: span 1;
  aspect-ratio: 0.86 / 1;
}

.portrait-wide {
  grid-column: 1 / -1;
  aspect-ratio: 1.58 / 1;
}

.portrait-soft {
  grid-column: span 1;
  aspect-ratio: 0.86 / 1;
}

.portrait-tall img {
  object-position: center 48%;
}

.portrait-small img,
.portrait-soft img {
  object-position: center 42%;
}

.portrait-wide img {
  object-position: center 46%;
}

.portrait-story-note {
  position: relative;
  z-index: 1;
  margin: 18px 4px 0;
  color: rgba(123, 72, 88, 0.86);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.75;
}

.portrait .photo-button,
.travel .photo-button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 250, 0.5)),
    rgba(255, 250, 248, 0.56);
  box-shadow: 0 12px 28px rgba(155, 72, 97, 0.1);
}

.portrait img {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
}

.chapter-asset-heading {
  position: relative;
  display: grid;
  grid-template-columns: var(--chapter-figure) minmax(0, 1fr);
  gap: var(--chapter-gap);
  align-items: center;
}

.chapter-asset-heading::before {
  content: "";
  position: absolute;
  left: calc(var(--chapter-figure) * 0.54);
  top: 50%;
  width: calc(var(--chapter-figure) * 1.28);
  height: calc(var(--chapter-figure) * 0.92);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 228, 238, 0.62), rgba(255, 247, 250, 0) 68%);
  filter: blur(8px);
  opacity: 0.72;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.chapter-asset-figure {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: var(--chapter-figure);
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(106, 53, 86, 0.14));
  transform-origin: 50% 78%;
  animation: galleryFigureBreathe 5.2s ease-in-out 1.12s infinite;
}

.chapter-asset-heading .section-kicker {
  margin-bottom: 6px;
  font-size: var(--chapter-kicker-size);
}

.travel-header {
  margin-top: 46px;
  --chapter-figure: 134px;
}

.travel-header h3 {
  max-width: 11em;
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 9vw, 3.1rem);
  line-height: 1.38;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-weight: 800;
}

.travel-heading-figure {
  max-width: calc(var(--chapter-figure) * 1.14);
}

.letter-heading {
  margin-bottom: 22px;
}

.letter-heading h2 {
  margin-bottom: 0;
  font-size: var(--chapter-title-size);
}

.letter-heading-figure {
  max-width: calc(var(--chapter-figure) * 1.05);
}

.travel-map {
  position: relative;
  min-height: 318px;
  margin: 24px 0 30px;
  padding: 10px 10px 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 204, 218, 0.32), transparent 24%),
    radial-gradient(circle at 78% 68%, rgba(255, 230, 190, 0.34), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 244, 0.7));
  box-shadow:
    0 18px 42px rgba(142, 76, 95, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.travel-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 46%, rgba(255, 248, 250, 0.16)),
    radial-gradient(circle at 50% 52%, transparent 0 62%, rgba(255, 255, 255, 0.22) 90%);
}

.travel-map-art {
  position: absolute;
  inset: 10px 10px 52px;
  width: calc(100% - 20px);
  height: calc(100% - 62px);
  object-fit: cover;
  object-position: center;
  opacity: 1;
  border-radius: 8px;
  filter: saturate(1.05) contrast(1.01) brightness(1.01);
  transform: none;
}

.travel-map-path {
  display: none;
}

.travel-map-stop {
  position: absolute;
  z-index: 3;
  display: inline-grid;
  grid-template-columns: 1fr auto;
  gap: 2px 6px;
  align-items: center;
  width: 116px;
  min-width: 0;
  padding: 5px 8px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 10px 20px rgba(143, 75, 96, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
}

.travel-map-stop::before {
  content: "";
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  width: 10px;
  height: 10px;
  border: 3px solid rgba(255, 241, 246, 0.94);
  border-radius: 50%;
  background: linear-gradient(135deg, #d84d7c, #f39ab8);
  box-shadow:
    0 0 0 5px rgba(216, 77, 124, 0.1),
    0 0 16px rgba(238, 112, 150, 0.48);
  transform: translate(-50%, -50%);
  animation: travelPinGlow 3.2s ease-in-out infinite;
}

.travel-map-stop::after {
  content: none;
}

.travel-map-stop span {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  color: white;
  font-size: 0.58rem;
  font-weight: 900;
  border-radius: 50%;
  background: linear-gradient(135deg, #c73566, #e982a5);
}

.travel-map-stop strong {
  grid-column: 1;
  grid-row: 1;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.08;
  white-space: nowrap;
}

.travel-map-stop em {
  grid-column: 1;
  grid-row: 2;
  color: rgba(156, 72, 101, 0.55);
  font-size: 0.46rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.stop-phuket {
  --pin-x: -34px;
  --pin-y: 24px;
  left: 184px;
  top: 30px;
}

.stop-wuxi {
  --pin-x: 144px;
  --pin-y: 26px;
  left: 104px;
  top: 132px;
}

.stop-yunnan {
  --pin-x: -34px;
  --pin-y: 24px;
  right: 38px;
  bottom: 68px;
  width: 150px;
}

.travel-map p {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 15px;
  margin: 0;
  color: rgba(108, 67, 81, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.55;
}

.travel-chapter {
  margin-top: 26px;
}

.travel-chapter-copy {
  position: relative;
  margin-bottom: 14px;
  padding-left: 16px;
}

.travel-chapter-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 4px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(202, 53, 101, 0.7), rgba(245, 165, 188, 0.12));
}

.travel-chapter-copy span {
  color: rgba(196, 53, 101, 0.78);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.travel-chapter-copy h4 {
  margin: 5px 0 6px;
  color: var(--ink);
  font-size: 1.22rem;
}

.travel-chapter-copy p {
  margin: 0;
  color: rgba(108, 67, 81, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.65;
}

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

.travel-postcards {
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 247, 250, 0.48)),
    rgba(255, 250, 248, 0.54);
  box-shadow: 0 14px 32px rgba(155, 72, 97, 0.08);
}

.travel img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.travel .is-wide {
  grid-column: 1 / -1;
}

.travel .is-wide img {
  aspect-ratio: 16 / 10;
}

.coming-soon {
  margin-top: 18px;
  padding: 18px;
  color: var(--muted);
  border-style: dashed;
}

.coming-soon span {
  display: block;
  margin-bottom: 4px;
  color: var(--rose-deep);
  font-weight: 800;
}

.letter-paper {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding: clamp(22px, 6vw, 46px);
  background:
    linear-gradient(90deg, rgba(242, 139, 168, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 250, 248, 0.96), rgba(255, 247, 236, 0.92));
  background-size: 100% 1.75em, 100% 100%;
}

.letter-paper::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 18px;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(216, 168, 90, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 168, 90, 0.14), transparent 68%);
}

.signature {
  justify-self: end;
  color: var(--rose-deep);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 1.4rem;
}

.promise {
  padding-bottom: 110px;
  text-align: center;
}

.promise-list {
  display: grid;
  gap: 14px;
  margin: 24px auto;
  padding: 22px;
  text-align: left;
}

.voice-card {
  display: inline-grid;
  gap: 2px;
  min-width: min(100%, 270px);
  height: auto;
  padding: 15px 22px;
  text-align: center;
}

.voice-card small {
  color: rgba(255, 255, 255, 0.78);
}

.voice-card.is-ready small {
  color: rgba(255, 255, 255, 0.86);
}

.ending {
  margin: 34px auto 0;
  max-width: 34rem;
  color: var(--rose-deep);
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: clamp(1.45rem, 6vw, 2.4rem);
  line-height: 1.4;
}

.lightbox {
  width: min(92vw, 920px);
  padding: 0;
  color: white;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(48, 23, 32, 0.78);
  backdrop-filter: blur(8px);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.lightbox p {
  margin: 12px 0 0;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(74, 34, 48, 0.46);
}

.wish-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9), rgba(255, 221, 232, 0.7) 42%, rgba(99, 39, 59, 0.62)),
    url("assets/cover.jpg") center / cover no-repeat;
  animation: wishIn 620ms ease forwards;
}

.wish-card {
  width: min(560px, 100%);
  padding: clamp(28px, 8vw, 54px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 250, 248, 0.86);
  box-shadow: 0 30px 80px rgba(84, 31, 48, 0.24);
  backdrop-filter: blur(14px);
}

.wish-card p,
.wish-card span {
  margin: 0;
  color: var(--rose-deep);
  font-weight: 700;
}

.wish-card h2 {
  margin: 14px 0 20px;
  font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
  font-size: clamp(1.8rem, 7vw, 3rem);
  line-height: 1.32;
}

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

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

  42% {
    transform: scale(1.12);
  }

  62% {
    transform: scale(0.96);
  }
}

@keyframes musicNoteFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
    opacity: 0.82;
  }

  50% {
    transform: translate3d(3px, -4px, 0) rotate(12deg);
    opacity: 1;
  }
}

@keyframes petalFall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(var(--rotate));
  }
  100% {
    transform: translate3d(var(--drift), 112vh, 0) rotate(calc(var(--rotate) + 420deg));
  }
}

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

@keyframes transitionFade {
  0%,
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes openFlap {
  0%,
  54% {
    z-index: 6;
  }
  55%,
  to {
    z-index: 2;
    transform: rotateX(168deg);
  }
}

@keyframes liftPaper {
  to {
    transform: translateY(-86px);
  }
}

@keyframes heroBreath {
  from {
    transform: translateY(calc(var(--hero-scroll) * -20px)) scale(1.035);
  }
  to {
    transform: translateY(calc(var(--hero-scroll) * -20px)) scale(1.06);
  }
}

@keyframes scrollCue {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.42;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes growLine {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes starDrift {
  to {
    background-position: 12% 22%, 74% 20%, 56% 82%;
  }
}

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

@keyframes bridgeFigureFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.8deg);
  }
}

@keyframes bridgeNotePop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  72% {
    opacity: 1;
    transform: translateY(-2px) scale(1.025);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bridgeThreadDrop {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  24% {
    opacity: 1;
  }
  100% {
    transform: translateY(220%);
    opacity: 0;
  }
}

@keyframes bridgePaperFall {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-18px) scale(0.88) rotate(-2deg);
  }
  58% {
    opacity: 1;
    transform: translateX(-50%) translateY(5px) scale(1.035) rotate(0.8deg);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotate(0);
  }
}

@keyframes bridgeCompanionIn {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.82) rotate(2deg);
  }
  72% {
    opacity: 1;
    transform: translateY(3px) scale(1.04) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes bridgeCompanionFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-5px) rotate(1deg);
  }
}

@keyframes bridgeInkDraw {
  to {
    transform: scaleY(1);
  }
}

@keyframes bridgeTitleArrive {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.92);
  }
  72% {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes bridgeTitleFigureFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-6px) rotate(0.5deg);
  }
}

@keyframes introFigureEnter {
  0% {
    opacity: 0;
    transform: translate3d(-8px, 8px, 0) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes introFigureBreathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.012);
  }
}

@keyframes introHeartFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 4px, 0) rotate(45deg) scale(0.68);
  }
  22% {
    opacity: 0.72;
  }
  64% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translate3d(-8px, -18px, 0) rotate(45deg) scale(1);
  }
}

@keyframes introHeartFloatSmall {
  0% {
    opacity: 0;
    transform: translate3d(0, 4px, 0) rotate(45deg) scale(0.6);
  }
  26% {
    opacity: 0.58;
  }
  100% {
    opacity: 0;
    transform: translate3d(8px, -16px, 0) rotate(45deg) scale(0.92);
  }
}

@keyframes timelineFigureHello {
  0%,
  100% {
    transform: translateY(0) rotate(-0.8deg) scale(1);
  }
  50% {
    transform: translateY(-1px) rotate(0.6deg) scale(1.01);
  }
}

@keyframes timelineFigureEnter {
  0% {
    opacity: 0;
    transform: translate3d(-10px, 8px, 0) rotate(-2deg) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-0.8deg) scale(1);
  }
}

@keyframes timelineWarmGlow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.76);
  }
  64% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    opacity: 0.58;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes timelinePetalDrift {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) rotate(18deg) scale(0.8);
  }
  20% {
    opacity: 0.58;
  }
  100% {
    opacity: 0;
    transform: translate3d(34px, -28px, 0) rotate(72deg) scale(1.05);
  }
}

@keyframes pearlLineGrow {
  0% {
    opacity: 0;
    transform: scaleY(0.18);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes timelineMemoryReveal {
  0% {
    opacity: 0;
    filter: blur(2px);
    transform: translate3d(var(--card-shift), 18px, 0) rotate(calc(var(--card-tilt) - 0.8deg)) scale(0.985);
  }
  68% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(var(--card-shift), -2px, 0) rotate(calc(var(--card-tilt) + 0.18deg)) scale(1.006);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(var(--card-shift), 0, 0) rotate(var(--card-tilt)) scale(1);
  }
}

@keyframes timelineCardGlimmer {
  0% {
    opacity: 0;
    transform: translateX(-28%);
  }
  36% {
    opacity: 0.34;
  }
  100% {
    opacity: 0;
    transform: translateX(36%);
  }
}

@keyframes timelinePearlGlow {
  0% {
    transform: scale(0.88);
    box-shadow:
      0 0 0 3px rgba(255, 236, 243, 0.4),
      0 0 0 rgba(242, 139, 168, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }
  48% {
    transform: scale(1.06);
    box-shadow:
      0 0 0 6px rgba(255, 236, 243, 0.62),
      0 0 0 10px rgba(244, 143, 171, 0.1),
      0 0 22px rgba(242, 139, 168, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 5px rgba(255, 236, 243, 0.72),
      0 0 18px rgba(231, 89, 136, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }
}

@keyframes timelineConnectorDraw {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes detailsFigureEnter {
  0% {
    opacity: 0;
    transform: translate3d(-8px, 8px, 0) rotate(-1.4deg) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-0.6deg) scale(1);
  }
}

@keyframes detailsFigureBreathe {
  0%,
  100% {
    transform: translateY(0) rotate(-0.6deg) scale(1);
  }
  50% {
    transform: translateY(-1px) rotate(0.5deg) scale(1.01);
  }
}

@keyframes detailsWarmGlow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  62% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(1.06);
  }
  100% {
    opacity: 0.54;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes detailsPetalDrift {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) rotate(18deg) scale(0.8);
  }
  22% {
    opacity: 0.52;
  }
  100% {
    opacity: 0;
    transform: translate3d(30px, -26px, 0) rotate(70deg) scale(1.02);
  }
}

@keyframes perfumeMemoryIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.985);
  }
  72% {
    opacity: 1;
    transform: translate3d(0, -1px, 0) scale(1.004);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes perfumeBottleGlow {
  0% {
    filter: drop-shadow(0 0 0 hsla(var(--perfume-hue), 78%, 68%, 0));
    transform: translateY(2px) scale(0.96);
  }
  58% {
    filter: drop-shadow(0 0 13px hsla(var(--perfume-hue), 78%, 72%, 0.3));
    transform: translateY(-1px) scale(1.025);
  }
  100% {
    filter: drop-shadow(0 0 6px hsla(var(--perfume-hue), 78%, 74%, 0.16));
    transform: translateY(0) scale(1);
  }
}

@keyframes filmPhotoDevelop {
  0% {
    opacity: 0;
    filter: blur(3px) saturate(0.8);
    transform: translateY(24px) rotate(calc(var(--film-tilt, 0deg) - 0.35deg)) scale(0.985);
  }
  64% {
    opacity: 1;
    filter: blur(0.6px) saturate(0.94);
    transform: translateY(-2px) rotate(calc(var(--film-tilt, 0deg) + 0.08deg)) scale(1.004);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translateY(0) rotate(var(--film-tilt, 0deg)) scale(1);
  }
}

@keyframes galleryFigureEnter {
  0% {
    opacity: 0;
    transform: translate3d(-8px, 8px, 0) rotate(-1.2deg) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-0.5deg) scale(1);
  }
}

@keyframes galleryFigureBreathe {
  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg) scale(1);
  }
  50% {
    transform: translateY(-1px) rotate(0.5deg) scale(1.01);
  }
}

@keyframes galleryWarmGlow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  62% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(1.06);
  }
  100% {
    opacity: 0.54;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes galleryPetalDrift {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) rotate(18deg) scale(0.8);
  }
  22% {
    opacity: 0.52;
  }
  100% {
    opacity: 0;
    transform: translate3d(30px, -26px, 0) rotate(70deg) scale(1.02);
  }
}

@keyframes framePhotoSlide {
  0% {
    opacity: 0.24;
    transform: translate3d(14px, 0, 0) scale(1.018);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes travelRoutePulse {
  0%,
  100% {
    opacity: 0.48;
    filter: drop-shadow(0 0 5px rgba(242, 139, 168, 0.24));
  }
  50% {
    opacity: 0.9;
    filter: drop-shadow(0 0 12px rgba(242, 139, 168, 0.56));
  }
}

@keyframes travelPinGlow {
  0%,
  100% {
    opacity: 0.78;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.18);
  }
}

@keyframes timelineImageBloom {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  72% {
    opacity: 1;
    transform: translateY(-2px) scale(1.018);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes messageRowIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bubbleIn {
  0% {
    transform: translateY(6px) scale(0.94);
  }
  68% {
    transform: translateY(-1px) scale(1.035);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes typingPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  34% {
    transform: scale(1.52);
  }
  64% {
    transform: scale(0.94);
  }
}

@keyframes typingDot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.38;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@keyframes wishIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 720px) {
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid .wide {
    grid-column: 1 / -1;
  }

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

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

  .travel {
    grid-template-columns: repeat(4, 1fr);
  }

  .promise-list {
    max-width: 720px;
  }
}

@media (max-width: 520px) {
  .envelope {
    width: min(286px, 72vw);
    height: 194px;
    transform: translateY(clamp(70px, 13vh, 98px));
  }

  .envelope-paper {
    left: 18px;
    right: 18px;
    height: 118px;
    padding: 14px 16px 12px;
    font-size: 0.8rem;
  }

  .lock-screen {
    padding: 18px;
    background: url("assets/home-bg-preserve-cover-v0.png") center top / cover no-repeat;
  }

  .lock-screen::before {
    inset: 0;
    background:
      radial-gradient(circle at 13% 76%, rgba(255, 250, 219, 0.2), transparent 11rem),
      radial-gradient(circle at 88% 60%, rgba(255, 239, 246, 0.16), transparent 10rem),
      linear-gradient(180deg, rgba(255, 246, 249, 0.02), rgba(255, 221, 233, 0.06) 46%, rgba(114, 43, 72, 0.16));
  }

  .lock-screen::after {
    inset: 31% 0 0;
    background:
      radial-gradient(circle at 8% 73%, rgba(255, 255, 255, 0.92) 0 5px, transparent 6px),
      radial-gradient(circle at 18% 52%, rgba(255, 244, 216, 0.86) 0 3px, transparent 4px),
      radial-gradient(circle at 87% 20%, rgba(255, 255, 255, 0.72) 0 3px, transparent 4px),
      radial-gradient(circle at 72% 72%, rgba(255, 226, 238, 0.78) 0 5px, transparent 6px),
      radial-gradient(circle at 50% 16%, rgba(255, 249, 229, 0.72), transparent 8.5rem),
      linear-gradient(180deg, rgba(255, 238, 244, 0), rgba(255, 235, 239, 0.18) 11%, rgba(255, 229, 219, 0.18) 34%, rgba(184, 88, 119, 0.16) 62%, rgba(70, 27, 49, 0.2));
  }

  .lock-decoration {
    left: -18px;
    bottom: clamp(74px, 11vh, 116px);
    width: min(204px, 44vw);
    opacity: 0.88;
  }

  .lock-panel {
    width: min(100% - 54px, 394px);
    margin-bottom: clamp(20px, 3.2vh, 36px);
    padding: 24px 20px 22px;
  }

  .lock-panel::after {
    left: -18px;
    right: -18px;
    bottom: -30px;
    height: 88px;
  }

  .lock-panel h1 {
    font-size: clamp(2.28rem, 10.4vw, 3.02rem);
  }

  .lock-copy {
    margin-top: 14px;
    margin-bottom: 16px;
    font-size: 0.92rem;
    line-height: 1.68;
  }

  .password-form input {
    height: 46px;
    font-size: 0.9rem;
  }

  .password-form button {
    min-height: 48px;
    font-size: 0.98rem;
    font-weight: 700;
  }

  .section {
    width: min(100% - 28px, 980px);
    padding: 62px 0;
  }

  .details {
    padding-bottom: 34px;
  }

  .details + .gallery-section {
    padding-top: 18px;
  }

  .music-hint {
    display: none;
  }

  .polaroid:nth-child(odd),
  .polaroid:nth-child(even) {
    --film-tilt: 0deg;
  }

  .polaroid {
    padding: 10px 10px 0;
  }

  .polaroid::before,
  .polaroid::after {
    width: 5px;
    opacity: 0.14;
    background:
      radial-gradient(circle, rgba(156, 72, 101, 0.3) 0 1.5px, transparent 2px) 0 0 / 5px 18px;
  }

  .photo-button::after {
    right: 8px;
    bottom: 8px;
    padding: 3px 7px;
    font-size: 0.54rem;
  }

  .hero-overlay {
    width: min(100% - 54px, 380px);
    margin: 0 auto clamp(108px, 15vh, 126px);
  }

  .hero-nameplate {
    min-height: 32px;
    margin-bottom: 10px;
    padding: 4px 13px;
    font-size: 0.74rem;
  }

  .hero-chapter {
    gap: 10px;
    margin-bottom: 10px;
  }

  .hero-chapter-date {
    padding: 7px 9px;
    font-size: 0.68rem;
  }

  .hero-chapter-text {
    padding-left: 10px;
    font-size: 0.74rem;
  }

  .hero img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
    background: #7b304f;
  }

  .hero-sky {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%),
      radial-gradient(circle at 50% 38%, rgba(255, 244, 205, 0.12), transparent 12rem),
      linear-gradient(180deg, transparent 0 42%, rgba(247, 169, 189, 0.08) 62%, rgba(91, 34, 57, 0.12));
  }

  .hero-overlay h1 {
    width: min(100%, 310px);
    gap: 2px;
  }

  .hero-title-soft {
    font-size: clamp(1.72rem, 7.8vw, 2.32rem);
  }

  .hero-title-main {
    font-size: clamp(2.8rem, 12.5vw, 3.68rem);
  }

  .hero-divider {
    margin: 14px auto 12px;
  }

  .hero-copy {
    gap: 2px;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .hero-signature {
    margin-top: 12px;
    font-size: 0.84rem;
  }

  .hero-eyebrow {
    grid-template-columns: 42px max-content 42px;
    gap: 8px;
  }

  .hero-actions {
    display: grid;
    margin-top: 16px;
  }

  .hero-actions a {
    min-height: 44px;
    padding: 0 22px;
  }

  .hero-scroll-cue {
    bottom: max(24px, env(safe-area-inset-bottom));
    gap: 5px;
    font-size: 0.68rem;
  }

  .hero-scroll-cue::after {
    height: 24px;
  }

  .conversation-scene {
    display: grid;
    align-content: start;
    min-height: 100svh;
    padding: 24px 12px 28px;
  }

  .conversation-heading {
    margin-bottom: 10px;
  }

  .conversation-heading .section-kicker {
    margin-bottom: 3px;
    font-size: 0.68rem;
  }

  .conversation-heading h2 {
    font-size: clamp(1.76rem, 9vw, 2.22rem);
    line-height: 1.02;
  }

  .conversation-heading > p:last-child {
    margin-top: 4px;
    font-size: 0.86rem;
    line-height: 1.38;
  }

  .chat-replay {
    min-height: 32px;
    margin-top: 8px;
    padding: 0 15px;
    font-size: 0.82rem;
  }

  .phone {
    width: min(284px, 74vw);
    min-height: 428px;
    padding: 17px 10px 12px;
    border-width: 8px;
    border-radius: 36px;
    animation: none;
  }

  .phone-speaker {
    top: 9px;
    width: 70px;
    height: 21px;
  }

  .phone-status {
    margin: 0 5px 9px;
    font-size: 0.64rem;
  }

  .chat-header {
    gap: 7px;
    margin: 5px 0 10px;
  }

  .avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .chat-header strong {
    font-size: 0.92rem;
    line-height: 1.08;
  }

  .chat-header small {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .chat-thread {
    gap: 7px;
    min-height: 286px;
    max-height: 286px;
    padding-bottom: 40px;
  }

  .message-row {
    grid-template-columns: 23px minmax(0, 1fr) 23px;
    column-gap: 4px;
  }

  .message-avatar {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  .bubble {
    padding: 7px 8px;
    font-size: 0.62rem;
    line-height: 1.32;
    border-radius: 14px;
  }

  .bubble.final {
    font-size: 0.59rem;
  }

  .phone-input {
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 32px;
    padding: 6px 9px;
    font-size: 0.6rem;
  }

  .intro,
  .timeline-section,
  .details,
  .gallery-section,
  .letter {
    --chapter-figure: 108px;
    --chapter-gap: 13px;
    --chapter-kicker-size: 0.88rem;
    --chapter-title-size: clamp(1.42rem, 7.1vw, 1.9rem);
    --chapter-body-size: 0.98rem;
  }

  .timeline-heading {
    grid-template-columns: var(--chapter-figure) minmax(0, 1fr);
    gap: var(--chapter-gap);
  }

  .timeline-heading h2 {
    font-size: var(--chapter-title-size);
  }

  .details-heading {
    grid-template-columns: var(--chapter-figure) minmax(0, 1fr);
    gap: var(--chapter-gap);
  }

  .details-heading h2 {
    font-size: var(--chapter-title-size);
  }

  .gallery-heading {
    grid-template-columns: var(--chapter-figure) minmax(0, 1fr);
    gap: var(--chapter-gap);
    margin-bottom: 24px;
  }

  .gallery-heading h2 {
    font-size: var(--chapter-title-size);
  }

  .timeline {
    gap: 16px;
    margin-top: 26px;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-item {
    padding-left: 38px;
  }

  .timeline-item::before {
    left: 9px;
  }

  .timeline-item:nth-child(odd) .timeline-card {
    --card-shift: -2px;
    --card-tilt: -0.42deg;
  }

  .timeline-item:nth-child(even) .timeline-card {
    --card-shift: 4px;
    --card-tilt: 0.48deg;
  }

  .timeline-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    min-height: 116px;
    padding: 12px;
  }

  .timeline-card::before {
    right: 12px;
    top: -6px;
    width: 32px;
    height: 14px;
  }

  .timeline-media {
    min-height: 82px;
  }

  .timeline-media img {
    width: 68px;
    max-height: 78px;
  }

  .timeline-media-wide img {
    width: 78px;
    max-height: 82px;
  }

  .timeline-copy time {
    min-height: 24px;
    padding-inline: 9px;
    font-size: 0.8rem;
  }

  .timeline-copy h3 {
    margin-top: 8px;
    font-size: 0.96rem;
  }

  .timeline-copy p {
    font-size: 0.86rem;
    line-height: 1.48;
  }

  .timeline-copy span {
    margin-top: 6px;
    font-size: 0.84rem;
  }

  .details .detail-grid {
    gap: 13px;
    margin-top: 26px;
  }

  .details .detail-grid article {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    min-height: 120px;
    padding: 16px 15px;
  }

  .details .detail-grid article::before {
    width: 36px;
    height: 54px;
  }

  .details .detail-grid article::after {
    left: 28px;
    top: 27px;
    width: 18px;
    height: 8px;
  }

  .details .detail-grid span {
    min-height: 24px;
    margin-bottom: 6px;
    font-size: 0.96rem;
  }

  .details .detail-grid span::after {
    font-size: 0.54rem;
  }

  .details .detail-grid p {
    font-size: 0.9rem;
    line-height: 1.62;
  }

  .travel-map {
    min-height: 306px;
  }

  .travel-map-stop {
    width: 100px;
    min-width: 0;
    padding: 5px 7px 5px 6px;
  }

  .travel-map-stop span {
    width: 23px;
    height: 23px;
    font-size: 0.56rem;
  }

  .travel-map-stop strong {
    font-size: 0.68rem;
  }

  .travel-map-stop em {
    font-size: 0.42rem;
  }

  .stop-phuket {
    --pin-x: -28px;
    --pin-y: 8px;
    left: 140px;
    top: 22px;
  }

  .stop-wuxi {
    --pin-x: 126px;
    --pin-y: 8px;
    left: 60px;
    top: 122px;
  }

  .stop-yunnan {
    --pin-x: -24px;
    --pin-y: 8px;
    right: 58px;
    bottom: 66px;
    left: 185px;
    width: 112px;
  }
}

@media (max-width: 380px) {
  .password-form {
    grid-template-columns: 1fr;
  }

  .password-form button {
    width: 100%;
  }
}

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