:root {
  color-scheme: dark;
  --ink: #090706;
  --ink-soft: #100b0c;
  --paper: #f2e8df;
  --ivory: #f7efe7;
  --rose: #b94860;
  --rose-light: #e6a0ac;
  --gold: #c4a47c;
  --muted: rgba(242, 232, 223, .54);
  --faint: rgba(242, 232, 223, .18);
  --line: rgba(230, 202, 185, .14);
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  --sans: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --mx: 0px;
  --my: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  overflow-x: hidden;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
}
body.before-open { overflow: hidden; }
button, a { color: inherit; font: inherit; }
button { border: 0; }
a { text-decoration: none; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 72% 18%, rgba(104, 38, 48, .18), transparent 34%),
    radial-gradient(ellipse at 20% 76%, rgba(103, 72, 51, .10), transparent 38%),
    linear-gradient(145deg, #0b0808 0%, #070605 58%, #0c0809 100%);
  pointer-events: none;
}

.atmosphere::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 18%, rgba(0, 0, 0, .42) 100%);
  content: "";
}

.film-grain {
  position: absolute;
  inset: -60%;
  z-index: 4;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: grain .22s steps(2) infinite;
}

.ambient-light {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .10;
}
.light-one { top: -20%; right: 4%; background: #9d334a; }
.light-two { bottom: -28%; left: 7%; background: #806044; }

.stars { position: absolute; inset: 0; }
.star {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #f8e9df;
  box-shadow: 0 0 7px rgba(232, 171, 179, .65);
  opacity: 0;
  animation: twinkle var(--duration) ease-in-out var(--delay) infinite;
}

.page-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 200;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--rose-light));
  box-shadow: 0 0 10px rgba(185, 72, 96, .45);
  transform: scaleX(0);
  transform-origin: left;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.6rem clamp(1.4rem, 4.5vw, 5rem);
  color: rgba(247, 239, 231, .42);
  background: linear-gradient(180deg, rgba(9, 7, 6, .68), transparent);
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .24em;
  transition: opacity .8s ease;
}
.before-open .topbar p,
.before-open .share-small { opacity: 0; pointer-events: none; }
.monogram { display: flex; align-items: center; gap: .65rem; justify-self: start; }
.monogram i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rose-light);
  box-shadow: 0 0 9px var(--rose);
}
.topbar p { margin: 0; transition: opacity .8s ease; }
.share-small {
  justify-self: end;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, .018);
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, opacity .8s ease;
}
.share-small:hover { color: var(--ivory); border-color: rgba(230, 160, 172, .35); }

.opening {
  position: relative;
  min-height: 100svh;
  padding: clamp(7rem, 13vh, 10rem) clamp(1.4rem, 5vw, 6rem) 5rem;
  overflow: hidden;
}
.opening-layout {
  display: grid;
  grid-template-columns: minmax(340px, .86fr) minmax(500px, 1.14fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  width: min(1320px, 100%);
  min-height: calc(100svh - clamp(12rem, 20vh, 15rem));
  margin: 0 auto;
}
.opening-copy { position: relative; z-index: 5; max-width: 560px; }
.chapter-label,
.scene-number {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.8rem;
  color: rgba(230, 202, 185, .42);
  font-family: var(--mono);
  font-size: .54rem;
  letter-spacing: .31em;
}
.chapter-label span {
  color: var(--rose-light);
}
.chapter-label::after {
  width: 42px;
  height: 1px;
  background: rgba(196, 164, 124, .3);
  content: "";
}

.opening h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6.1vw, 6.4rem);
  font-weight: 400;
  letter-spacing: .035em;
  line-height: 1.09;
  text-wrap: balance;
  text-shadow: 0 16px 55px rgba(0, 0, 0, .36);
}
.opening-note {
  margin: 2rem 0 0;
  color: rgba(247, 239, 231, .56);
  font-family: var(--serif);
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  letter-spacing: .12em;
  line-height: 2;
}

.story-button,
.share-button {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.7rem;
  padding: .7rem .72rem .7rem 1.4rem;
  border: 1px solid rgba(230, 202, 185, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .018);
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.story-button span,
.share-button span {
  font-size: .62rem;
  letter-spacing: .14em;
}
.story-button i,
.share-button i {
  display: grid;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #16090c;
  background: linear-gradient(145deg, #dfb4a3, #b87972);
  box-shadow: 0 0 22px rgba(185, 72, 96, .20);
  font-style: normal;
  place-items: center;
  transition: transform .3s ease;
}
.story-button:hover,
.share-button:hover {
  border-color: rgba(230, 160, 172, .48);
  background: rgba(185, 72, 96, .06);
  transform: translateY(-2px);
}
.story-button:hover i,
.share-button:hover i { transform: translateX(2px); }
.story-button:focus-visible,
.share-button:focus-visible,
.memory-light:focus-visible,
.promise:focus-visible,
.sealed-letter:focus-visible {
  outline: 1px solid #eed0c7;
  outline-offset: 6px;
}
.story-button.is-playing { pointer-events: none; }
.story-button.is-playing i { animation: button-pulse 1s ease-in-out infinite; }

.opening-status {
  margin: 1rem 0 0;
  color: rgba(247, 239, 231, .25);
  font-family: var(--mono);
  font-size: .49rem;
  letter-spacing: .16em;
  transition: opacity .45s ease;
}

.particle-stage {
  position: relative;
  width: min(100%, 690px);
  aspect-ratio: 1.14;
  justify-self: end;
  isolation: isolate;
}
#morphCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(185, 72, 96, .32));
}
.particle-ring {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 0;
  width: 86%;
  aspect-ratio: 1;
  border: 1px solid rgba(230, 202, 185, .07);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.ring-one::before,
.ring-one::after {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9b6a8;
  box-shadow: 0 0 14px rgba(230, 160, 172, .58);
  content: "";
}
.ring-one::before { left: -4px; }
.ring-one::after { right: -4px; }
.ring-two {
  width: 63%;
  border-style: dashed;
  opacity: .6;
  animation: ring-turn 28s linear infinite;
}
.particle-caption {
  position: absolute;
  right: 0;
  bottom: 3%;
  left: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin: 0;
  color: rgba(247, 239, 231, .48);
  font-family: var(--mono);
  text-align: center;
  letter-spacing: .34em;
}
.particle-caption span { font-size: .64rem; transition: opacity .35s ease; }
.particle-caption small { font-size: .43rem; opacity: .45; }

.opening-foot {
  position: absolute;
  right: clamp(1.4rem, 5vw, 6rem);
  bottom: 2rem;
  left: clamp(1.4rem, 5vw, 6rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(247, 239, 231, .2);
  font-family: var(--mono);
  font-size: .45rem;
  letter-spacing: .24em;
}
.opening-foot i { width: 80px; height: 1px; background: var(--line); }
.opening-foot span:last-child { margin-left: auto; }

.scene {
  position: relative;
  width: min(1180px, 92vw);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(8rem, 15vh, 12rem) clamp(1rem, 3vw, 2.5rem);
}
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .8, .2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.prologue {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.prologue::before {
  position: absolute;
  top: 50%;
  left: 47%;
  width: min(38vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(230, 202, 185, .06);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(230, 202, 185, .018), 0 0 0 120px rgba(230, 202, 185, .01);
  content: "";
  transform: translate(-50%, -50%);
}
.prologue-copy { position: relative; z-index: 2; max-width: 920px; margin: 5vh auto 0; }
.prologue-copy > p {
  margin: 0 0 1.5rem;
  color: var(--rose-light);
  font-family: var(--serif);
  font-size: clamp(.95rem, 2vw, 1.2rem);
  letter-spacing: .15em;
}
.prologue h2,
.section-intro h2,
.finale h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 400;
  letter-spacing: .035em;
  line-height: 1.35;
  text-wrap: balance;
}
.prologue-copy > span {
  display: block;
  max-width: 560px;
  margin: 2rem 0 0 auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(.9rem, 1.7vw, 1.05rem);
  letter-spacing: .1em;
  line-height: 2;
}
.continue-cue {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  color: rgba(247, 239, 231, .32);
  font-family: var(--mono);
  font-size: .48rem;
  letter-spacing: .22em;
  transform: translateX(-50%);
}
.continue-cue i {
  position: relative;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: rgba(247, 239, 231, .1);
}
.continue-cue i::after {
  position: absolute;
  top: -60%;
  width: 100%;
  height: 45%;
  background: var(--rose-light);
  content: "";
  animation: scroll-line 2.2s ease-in-out infinite;
}

.memories,
.tomorrows {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-intro { max-width: 790px; }
.section-intro.centered { margin-inline: auto; text-align: center; }
.section-intro.centered .scene-number { justify-content: center; }
.section-intro h2 { font-size: clamp(2.35rem, 5.2vw, 4.5rem); }
.section-intro > p:last-child {
  max-width: 620px;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  letter-spacing: .09em;
  line-height: 1.9;
}
.section-intro.centered > p:last-child { margin-inline: auto; }

.memory-experience {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
  margin-top: 4rem;
}
.memory-path {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: 1.2rem 0;
}
.path-line {
  position: absolute;
  top: 2.5rem;
  bottom: 2.5rem;
  left: 21px;
  width: 1px;
  background: linear-gradient(var(--rose-light), rgba(230, 202, 185, .08));
}
.memory-light {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 43px 1fr auto;
  align-items: center;
  gap: .9rem;
  width: 100%;
  padding: .7rem 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.memory-light i {
  display: block;
  width: 11px;
  height: 11px;
  margin-left: 16px;
  border: 1px solid rgba(242, 232, 223, .48);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 8px var(--ink);
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
}
.memory-light span {
  color: rgba(247, 239, 231, .38);
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .15em;
  transition: color .35s ease;
}
.memory-light small {
  color: rgba(247, 239, 231, .18);
  font-family: var(--mono);
  font-size: .45rem;
  letter-spacing: .12em;
}
.memory-light:hover i,
.memory-light.active i,
.memory-light.visited i {
  border-color: #eed5cd;
  background: #e0a4aa;
  box-shadow: 0 0 0 8px var(--ink), 0 0 18px 5px rgba(185, 72, 96, .45);
}
.memory-light.active i { transform: scale(1.2); }
.memory-light.active span { color: var(--ivory); }
.memory-light.visited small { color: rgba(230, 160, 172, .52); }

.memory-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  min-height: 520px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .014);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .25);
  overflow: hidden;
}
.memory-frame.changing .memory-visual,
.memory-frame.changing .memory-copy { animation: frame-change .65s ease both; }
.memory-visual {
  --visual-a: #46222a;
  --visual-b: #15100f;
  --visual-glow: rgba(182, 110, 109, .36);
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 35%, var(--visual-glow), transparent 18%),
    linear-gradient(160deg, var(--visual-a), var(--visual-b) 64%);
  isolation: isolate;
}
.memory-visual::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(247, 239, 231, .28) .65px, transparent .8px);
  background-size: 19px 19px;
  content: "";
  opacity: .5;
  mask-image: linear-gradient(150deg, #000, transparent 76%);
}
.memory-visual::after {
  position: absolute;
  inset: 0;
  border: 12px solid rgba(9, 7, 6, .16);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, .4);
  content: "";
}
.visual-0 { --visual-a: #4b262d; --visual-b: #110d0c; --visual-glow: rgba(200, 121, 121, .36); }
.visual-1 { --visual-a: #442037; --visual-b: #100b12; --visual-glow: rgba(193, 107, 138, .36); }
.visual-2 { --visual-a: #3c2b38; --visual-b: #0e0b0e; --visual-glow: rgba(182, 146, 165, .36); }
.visual-3 { --visual-a: #3f3325; --visual-b: #100e0a; --visual-glow: rgba(197, 160, 103, .36); }
.visual-4 { --visual-a: #242e36; --visual-b: #090c0f; --visual-glow: rgba(120, 148, 168, .36); }
.memory-moon {
  position: absolute;
  top: 19%;
  left: 52%;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 37% 34%, #fff6eb, #d8aaa4 64%, #7d424b);
  box-shadow: 0 0 45px rgba(220, 160, 166, .22);
  transform: translateX(-50%);
}
.memory-horizon {
  position: absolute;
  right: -10%;
  bottom: -15%;
  left: -10%;
  height: 54%;
  background:
    linear-gradient(165deg, transparent 48%, rgba(9, 7, 6, .35) 49% 52%, transparent 53%),
    linear-gradient(15deg, transparent 45%, rgba(9, 7, 6, .62) 46% 55%, transparent 56%),
    #0a0808;
  clip-path: polygon(0 63%, 20% 30%, 35% 58%, 58% 18%, 76% 54%, 100% 27%, 100% 100%, 0 100%);
}
.memory-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff3e9;
  box-shadow: 0 0 13px 4px rgba(230, 160, 172, .58);
  animation: memory-spark 3.4s ease-in-out infinite;
}
.spark-one { top: 28%; left: 22%; }
.spark-two { top: 48%; right: 20%; animation-delay: -1.7s; }
.memory-visual > p {
  position: absolute;
  bottom: 1.6rem;
  left: 1.8rem;
  z-index: 2;
  margin: 0;
  color: rgba(247, 239, 231, .36);
  font-family: var(--mono);
  font-size: .46rem;
  letter-spacing: .24em;
}
.memory-visual > p b { color: rgba(247, 239, 231, .72); font-weight: 400; }

.memory-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
  background: linear-gradient(145deg, rgba(242, 232, 223, .035), rgba(255, 255, 255, .008));
}
.memory-copy > p:first-child {
  margin: 0 0 1rem;
  color: var(--rose-light);
  font-family: var(--mono);
  font-size: .47rem;
  letter-spacing: .26em;
}
.memory-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.25;
}
.memory-rule { width: 100%; height: 1px; margin: 2rem 0; background: var(--line); }
.memory-rule span { display: block; width: 38px; height: 1px; background: var(--rose-light); }
.memory-copy > p:not(:first-child) {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(.94rem, 1.6vw, 1.08rem);
  letter-spacing: .08em;
  line-height: 2;
}
.memory-copy small {
  position: absolute;
  right: 2rem;
  bottom: 1.6rem;
  color: rgba(247, 239, 231, .2);
  font-family: var(--mono);
  font-size: .45rem;
  letter-spacing: .18em;
}

.letter-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.letter-stage {
  position: relative;
  width: min(800px, 94vw);
  height: 590px;
  margin-top: 3.5rem;
  perspective: 1400px;
}
.sealed-letter,
.open-letter {
  position: absolute;
  top: 50%;
  left: 50%;
}
.sealed-letter {
  z-index: 4;
  width: min(480px, 88vw);
  height: 300px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(-2deg);
  transition: opacity .7s ease, transform 1s cubic-bezier(.2, .8, .2, 1);
}
.letter-shadow {
  position: absolute;
  right: 2%;
  bottom: -10%;
  left: 2%;
  height: 18%;
  border-radius: 50%;
  background: rgba(0, 0, 0, .58);
  filter: blur(25px);
}
.letter-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(230, 202, 185, .18);
  color: #d9c1b4;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .04), transparent 32%),
    #221719;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.letter-cover::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(230, 202, 185, .12);
  content: "";
}
.letter-cover small {
  margin-bottom: 1.6rem;
  font-family: var(--mono);
  font-size: .47rem;
  letter-spacing: .28em;
}
.letter-cover b {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 400;
  font-style: italic;
}
.letter-cover i {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 1.35rem 0;
  border: 1px solid rgba(238, 200, 193, .34);
  border-radius: 50%;
  color: #e4b4ad;
  background: radial-gradient(circle at 35% 30%, #a94c5b, #632634);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35), 0 0 25px rgba(185, 72, 96, .22);
  font-style: normal;
  place-items: center;
}
.letter-cover em {
  font-family: var(--serif);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .12em;
}
.open-letter {
  z-index: 2;
  width: min(620px, 89vw);
  min-height: 500px;
  padding: clamp(2.2rem, 5vw, 4.5rem);
  border: 1px solid rgba(70, 43, 35, .18);
  color: #30221e;
  background:
    linear-gradient(rgba(79, 49, 38, .035) 1px, transparent 1px),
    #eee3d7;
  background-size: 100% 30px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .44);
  opacity: 0;
  transform: translate(-50%, -42%) rotate(1deg) scale(.84);
  transition: opacity .7s ease, transform 1s cubic-bezier(.2, .8, .2, 1);
}
.open-letter::after {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(70, 43, 35, .09);
  content: "";
  pointer-events: none;
}
.letter-meta {
  display: flex;
  justify-content: space-between;
  margin: 0 0 2rem;
  color: rgba(48, 34, 30, .44);
  font-family: var(--mono);
  font-size: .47rem;
  letter-spacing: .23em;
}
.letter-content {
  font-family: var(--serif);
  font-size: clamp(.98rem, 2vw, 1.1rem);
  letter-spacing: .08em;
  line-height: 2;
}
.letter-content p { margin: 0 0 1rem; }
.letter-sign { margin-top: 1.6rem !important; text-align: right; font-style: italic; }
.letter-stage.open .sealed-letter {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 35%) rotate(-7deg) scale(.88);
}
.letter-stage.open .open-letter {
  z-index: 5;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(.5deg) scale(1);
}
.letter-hint {
  margin: 0;
  color: rgba(247, 239, 231, .28);
  font-family: var(--mono);
  font-size: .49rem;
  letter-spacing: .2em;
}

.promise-list {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
}
.promise {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  min-height: 108px;
  padding: 1.2rem .5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: padding .35s ease, background .35s ease;
}
.promise::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(185, 72, 96, .09), transparent 70%);
  content: "";
  opacity: 0;
  transform: translateX(-20%);
  transition: opacity .35s ease, transform .5s ease;
}
.promise > * { position: relative; z-index: 1; }
.promise > span {
  color: rgba(247, 239, 231, .22);
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .2em;
}
.promise b {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 400;
  letter-spacing: .08em;
}
.promise small {
  color: rgba(247, 239, 231, .24);
  font-family: var(--mono);
  font-size: .46rem;
  letter-spacing: .2em;
}
.promise i {
  display: block;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(247, 239, 231, .34);
  border-radius: 50%;
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
}
.promise:hover { padding-left: 1rem; background: rgba(255, 255, 255, .012); }
.promise.lit::before { opacity: 1; transform: translateX(0); }
.promise.lit i {
  border-color: #f1d6ce;
  background: var(--rose-light);
  box-shadow: 0 0 16px 5px rgba(185, 72, 96, .44);
  transform: scale(1.15);
}
.promise.lit b { color: #fff5ef; }
.promise-status {
  margin: 1.4rem 0 0;
  color: rgba(247, 239, 231, .3);
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .16em;
  text-align: right;
}
.promise-status span { color: var(--rose-light); }

.finale {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 105svh;
  text-align: center;
}
.final-heart {
  display: grid;
  width: 108px;
  height: 108px;
  margin-bottom: 2.2rem;
  border: 1px dashed rgba(230, 202, 185, .2);
  border-radius: 50%;
  place-items: center;
  animation: ring-turn 20s linear infinite;
}
.final-heart span {
  color: var(--rose-light);
  font-size: 1.8rem;
  text-shadow: 0 0 28px rgba(185, 72, 96, .65);
  animation: counter-turn 20s linear infinite, soft-beat 2.8s ease-in-out infinite;
}
.finale .scene-number { margin-bottom: 1.4rem; }
.finale h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.always {
  margin: 3rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: .25em;
  transform: translateX(.125em);
}
.forever {
  margin-top: 1.2rem;
  color: rgba(247, 239, 231, .35);
  font-family: var(--mono);
  font-size: .52rem;
  letter-spacing: .45em;
  transform: translateX(.225em);
}
.share-button { margin-top: 3.3rem; }
footer {
  position: absolute;
  right: 0;
  bottom: 2rem;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: rgba(247, 239, 231, .2);
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .3em;
}
footer i { color: var(--rose-light); font-style: normal; }
footer small { position: absolute; right: 0; font-size: .42rem; }

.bursts { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.burst-particle {
  position: absolute;
  top: var(--y);
  left: var(--x);
  color: var(--color);
  font-size: var(--size);
  text-shadow: 0 0 10px currentColor;
  animation: burst var(--duration) cubic-bezier(.12, .72, .15, 1) forwards;
}
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  z-index: 220;
  padding: .8rem 1.15rem;
  border: 1px solid rgba(230, 202, 185, .2);
  border-radius: 99px;
  color: rgba(247, 239, 231, .82);
  background: rgba(25, 17, 16, .92);
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: .12em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .3s ease, transform .3s ease;
  backdrop-filter: blur(12px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2%, -3%); }
  50% { transform: translate(-3%, 2%); }
  75% { transform: translate(3%, 4%); }
  100% { transform: translate(-2%, -2%); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.5); }
  50% { opacity: .6; transform: scale(1); }
}
@keyframes ring-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes counter-turn { to { transform: rotate(-360deg); } }
@keyframes soft-beat { 50% { transform: scale(1.18); } }
@keyframes button-pulse { 50% { transform: scale(.86); opacity: .7; } }
@keyframes scroll-line {
  0% { top: -60%; }
  70%, 100% { top: 120%; }
}
@keyframes frame-change {
  0% { opacity: .25; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes memory-spark {
  0%, 100% { opacity: .28; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.15) rotate(var(--rotate)); }
}

@media (max-width: 980px) {
  .opening-layout {
    grid-template-columns: minmax(270px, .82fr) minmax(390px, 1.18fr);
    gap: 2rem;
  }
  .opening h1 { font-size: clamp(3rem, 6vw, 4.8rem); }
  .memory-frame { grid-template-columns: 1fr 320px; }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; padding: 1.2rem 1.25rem; }
  .topbar p { display: none; }
  .opening {
    min-height: 100svh;
    padding: 5.6rem 1.25rem 3rem;
  }
  .opening-layout {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    gap: .4rem;
    min-height: calc(100svh - 8.6rem);
  }
  .opening-copy { text-align: center; }
  .chapter-label { justify-content: center; margin-bottom: 1rem; }
  .chapter-label::after { display: none; }
  .opening h1 { font-size: clamp(2.65rem, 12vw, 4rem); line-height: 1.15; }
  .opening-note { margin-top: 1.15rem; font-size: .9rem; line-height: 1.85; }
  .story-button { margin-top: 1.6rem; }
  .particle-stage { width: min(93vw, 430px); margin: 0 auto; }
  .particle-caption { bottom: 1%; }
  .opening-foot { right: 1.25rem; bottom: 1rem; left: 1.25rem; }
  .opening-foot span:last-child { display: none; }

  .scene { width: 100%; min-height: 100svh; padding: 7rem 1.25rem; }
  .prologue::before { width: 78vw; }
  .prologue-copy { margin-top: 2rem; }
  .prologue-copy > p { font-size: .9rem; line-height: 1.8; }
  .prologue h2,
  .section-intro h2,
  .finale h2 { font-size: clamp(2.15rem, 10vw, 3.25rem); }
  .prologue-copy > span { margin-top: 1.5rem; font-size: .9rem; }
  .continue-cue { bottom: 1.6rem; }

  .memory-experience {
    display: block;
    margin-top: 2.7rem;
  }
  .memory-path {
    flex-direction: row;
    min-height: 0;
    padding: 0 0 2rem;
  }
  .path-line {
    top: 5px;
    right: 9%;
    bottom: auto;
    left: 9%;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--rose-light), rgba(230, 202, 185, .08));
  }
  .memory-light {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .62rem;
    padding: 0;
    text-align: center;
  }
  .memory-light i { width: 10px; height: 10px; margin: 0; box-shadow: 0 0 0 7px var(--ink); }
  .memory-light:hover i,
  .memory-light.active i,
  .memory-light.visited i { box-shadow: 0 0 0 7px var(--ink), 0 0 15px 4px rgba(185, 72, 96, .42); }
  .memory-light span { font-size: .72rem; letter-spacing: .06em; }
  .memory-light small { display: none; }
  .memory-frame {
    display: block;
    min-height: 0;
  }
  .memory-visual { min-height: 350px; }
  .memory-moon { width: 108px; }
  .memory-copy { min-height: 300px; padding: 2.1rem 1.6rem 3rem; }
  .memory-copy h3 { font-size: 2.1rem; }
  .memory-rule { margin: 1.5rem 0; }

  .letter-stage { height: 570px; margin-top: 2.3rem; }
  .sealed-letter { height: 250px; }
  .open-letter { min-height: 475px; padding: 2.5rem 1.8rem; }
  .letter-cover b { font-size: 3.6rem; }

  .promise-list { margin-top: 2.7rem; }
  .promise {
    grid-template-columns: 40px 1fr 20px;
    gap: .8rem;
    min-height: 98px;
    padding: 1rem 0;
  }
  .promise small { display: none; }
  .promise:hover { padding-left: .4rem; }
  .promise-status { line-height: 1.8; }
  .always { margin-top: 2.4rem; font-size: 1.35rem; }
  .forever { margin-top: 1.3rem; font-size: .45rem; letter-spacing: .36em; }
  .share-button { margin-top: 2.7rem; }
  footer small { display: none; }
}

@media (max-width: 420px) {
  .particle-stage { width: min(92vw, 350px); }
  .opening-layout { gap: .2rem; }
  .opening h1 { font-size: 2.55rem; }
  .opening-note { font-size: .82rem; }
  .story-button { gap: 1.4rem; }
  .memory-visual { min-height: 300px; }
  .letter-stage { height: 545px; }
  .open-letter { min-height: 455px; }
}

@media (max-height: 730px) and (min-width: 761px) {
  .opening { padding-top: 5rem; padding-bottom: 2rem; }
  .opening-layout { min-height: calc(100vh - 8rem); }
  .particle-stage { width: min(76vh, 590px); }
  .opening h1 { font-size: clamp(3rem, 5vw, 4.8rem); }
  .opening-note { margin-top: 1rem; }
  .story-button { margin-top: 1.4rem; }
}

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