@font-face {
  font-family: "Noto Serif Story";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/noto-serif-sc-story.woff2") format("woff2");
}

/* Romantic visual direction: 暮色里的余温
   These unlayered rules intentionally sit above the foundational layer system. */
:root {
  --midnight: #0b0d15;
  --midnight-soft: #13121c;
  --aubergine: #1d151f;
  --plum: #2b1b29;
  --paper: #f4ebdf;
  --paper-deep: #dfcfc1;
  --ink: #2b2226;
  --rose: #ca8994;
  --rose-deep: #9f6270;
  --blush: #e7b9b0;
  --apricot: #e7b78f;
  --candle: #e9ca92;
  --lilac: #9d95b7;
  --warm: var(--rose);
  --warm-light: var(--apricot);
  --line: rgba(235, 196, 191, 0.18);
  --romance-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --photo-shadow:
    0 34px 100px rgba(0, 0, 0, 0.34),
    0 0 72px rgba(202, 137, 148, 0.065);
}

html,
body {
  background: var(--midnight);
}

body {
  color: #f5ece4;
}

.romance-veil {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.romance-veil__bloom {
  position: absolute;
  display: block;
  width: min(52vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.1;
  transform: scale(0.88);
  transition:
    opacity 1.8s var(--romance-ease),
    transform 2.2s var(--romance-ease);
}

.romance-veil__bloom--one {
  top: 8%;
  right: -16%;
  background: radial-gradient(circle, rgba(202, 137, 148, 0.2), rgba(157, 149, 183, 0.06) 42%, transparent 70%);
}

.romance-veil__bloom--two {
  bottom: -20%;
  left: -18%;
  background: radial-gradient(circle, rgba(231, 183, 143, 0.16), rgba(202, 137, 148, 0.045) 48%, transparent 72%);
}

.romance-veil__thread {
  position: absolute;
  top: 42%;
  left: 13%;
  width: 74vw;
  height: 26vh;
  border-top: 1px solid rgba(231, 185, 176, 0.08);
  border-radius: 50%;
  opacity: 0.62;
  transform: rotate(-7deg);
  transition: border-color 1.4s ease, opacity 1.4s ease;
}

body[data-tone="blue"] .romance-veil__bloom--one,
body[data-tone="warm"] .romance-veil__bloom--one,
body[data-tone="ink"] .romance-veil__bloom--two {
  opacity: 0.22;
  transform: scale(1);
}

body[data-tone="warm"] .romance-veil__thread,
body[data-tone="ink"] .romance-veil__thread {
  border-color: rgba(231, 183, 143, 0.13);
  opacity: 0.82;
}

.cinema-frame {
  position: fixed;
  z-index: 89;
  inset: 14px;
  border: 1px solid rgba(245, 236, 228, 0.045);
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms var(--romance-ease), border-color 1s ease;
}

body.has-entered .cinema-frame {
  opacity: 1;
}

.cinema-frame i {
  position: absolute;
  top: -1px;
  width: 9vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 183, 143, 0.48), transparent);
}

.cinema-frame i:first-child {
  left: 12%;
}

.cinema-frame i:last-child {
  right: 12%;
}

body.is-daybreak .cinema-frame {
  border-color: rgba(43, 34, 38, 0.07);
}

.eyebrow {
  color: rgba(231, 185, 180, 0.72);
  letter-spacing: 0.15em;
}

.threshold {
  background:
    radial-gradient(ellipse at 17% 76%, rgba(157, 149, 183, 0.15), transparent 38%),
    radial-gradient(ellipse at 82% 24%, rgba(202, 137, 148, 0.14), transparent 37%),
    linear-gradient(145deg, #080a11 0%, #11101a 56%, #1b121b 100%);
}

.threshold::before,
.threshold::after {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: rgba(231, 183, 143, 0.5);
  box-shadow:
    0 0 24px rgba(231, 183, 143, 0.34),
    84px 42px 0 -2px rgba(245, 236, 228, 0.17),
    164px -33px 0 -2px rgba(202, 137, 148, 0.2);
  opacity: 0.44;
}

.threshold::before {
  bottom: 21%;
  left: 8%;
}

.threshold::after {
  top: 18%;
  right: 11%;
  transform: rotate(180deg);
}

.threshold__orbit {
  position: absolute;
  width: min(78vw, 760px);
  aspect-ratio: 1.72;
  border: 1px solid rgba(231, 185, 180, 0.08);
  border-right-color: rgba(231, 183, 143, 0.15);
  border-left-color: rgba(157, 149, 183, 0.14);
  border-radius: 50%;
  opacity: 0.74;
  transform: rotate(-8deg);
}

.threshold__orbit::before,
.threshold__orbit::after,
.threshold__orbit i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: var(--apricot);
  box-shadow: 0 0 16px rgba(231, 183, 143, 0.58);
  animation: orbit-breathe 4.8s ease-in-out infinite;
}

.threshold__orbit::before {
  top: 18%;
  left: 12%;
}

.threshold__orbit::after {
  right: 11%;
  bottom: 20%;
  animation-delay: -2.4s;
}

.threshold__orbit i:nth-child(1) {
  top: 49%;
  left: -2px;
}

.threshold__orbit i:nth-child(2) {
  top: 0;
  right: 34%;
  background: var(--rose);
  animation-delay: -1.2s;
}

.threshold__orbit i:nth-child(3) {
  right: 22%;
  bottom: 3%;
  background: var(--lilac);
  animation-delay: -3.2s;
}

@keyframes orbit-breathe {
  0%,
  100% { opacity: 0.28; transform: scale(0.78); }
  50% { opacity: 0.9; transform: scale(1.16); }
}

.threshold__halo {
  opacity: calc(0.26 + var(--hold-scale) * 0.74);
  background:
    radial-gradient(circle, rgba(231, 183, 143, calc(0.08 + var(--hold-scale) * 0.18)), transparent 31%),
    radial-gradient(circle, rgba(202, 137, 148, calc(0.04 + var(--hold-scale) * 0.12)), transparent 58%);
}

.threshold__content {
  z-index: 2;
}

.threshold__title {
  max-width: 19em;
  color: rgba(248, 239, 231, 0.94);
  font-size: clamp(1.42rem, 2.45vw, 2rem);
  line-height: 1.82;
  text-shadow: 0 12px 46px rgba(0, 0, 0, 0.36);
}

.threshold__route {
  color: rgba(245, 236, 228, 0.5);
}

.threshold__route-line {
  background: linear-gradient(90deg, rgba(157, 149, 183, 0.18), rgba(202, 137, 148, 0.12), rgba(231, 183, 143, 0.18));
}

.threshold__route-line i {
  background: linear-gradient(90deg, var(--lilac), var(--rose) 54%, var(--apricot));
  box-shadow: 0 0 20px rgba(202, 137, 148, 0.28);
}

.hold-button {
  min-height: 82px;
  padding-right: 28px;
  border: 1px solid rgba(231, 185, 176, 0.14);
  background: linear-gradient(115deg, rgba(255, 238, 229, 0.032), rgba(202, 137, 148, 0.02));
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  transition:
    color 400ms ease,
    background 650ms var(--romance-ease),
    border-color 650ms var(--romance-ease),
    transform 650ms var(--romance-ease);
}

.hold-button::before {
  position: absolute;
  top: 50%;
  left: 43px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(231, 185, 176, 0.09);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%) scale(calc(0.88 + var(--hold-scale) * 0.32));
  transition: border-color 500ms ease;
}

.hold-button:hover,
.hold-button:focus-visible,
.hold-button.is-holding {
  border-color: rgba(231, 185, 176, 0.34);
  background: linear-gradient(115deg, rgba(202, 137, 148, 0.085), rgba(231, 183, 143, 0.035));
  transform: translateY(-2px);
}

.hold-button__track {
  stroke: rgba(231, 185, 176, 0.2);
}

.hold-button__progress {
  stroke: var(--apricot);
}

.hold-button__dot {
  width: 9px;
  height: 9px;
  background: var(--apricot);
  box-shadow: 0 0 calc(8px + var(--hold-scale) * 25px) rgba(231, 183, 143, calc(0.26 + var(--hold-scale) * 0.52));
}

.threshold__hint {
  color: rgba(245, 236, 228, 0.56);
}

.threshold__direct {
  color: rgba(245, 236, 228, 0.58);
}

.site-chrome {
  padding-top: max(19px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(8, 9, 15, 0.7), rgba(8, 9, 15, 0.15) 72%, transparent);
  backdrop-filter: blur(10px);
}

.archive-mark__title {
  letter-spacing: 0.13em;
}

.journey__track {
  overflow: visible;
  background: rgba(245, 236, 228, 0.16);
  opacity: 1;
}

.journey__fill {
  background: linear-gradient(90deg, var(--lilac), var(--rose) 58%, var(--apricot));
  box-shadow: 0 0 12px rgba(202, 137, 148, 0.2);
}

.journey__fill::after {
  position: absolute;
  top: 50%;
  right: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--apricot);
  box-shadow: 0 0 13px rgba(231, 183, 143, 0.58);
  transform: translate(50%, -50%);
}

body.has-entered .chapter-nav {
  opacity: 0.36;
}

.chapter-nav a::after {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.chapter-nav a.is-active::after {
  width: 7px;
  background: var(--apricot);
  border-color: var(--apricot);
  box-shadow: 0 0 13px rgba(231, 183, 143, 0.48);
}

.first-frame {
  background:
    radial-gradient(circle at 76% 34%, rgba(202, 137, 148, 0.12), transparent 29%),
    radial-gradient(circle at 13% 76%, rgba(157, 149, 183, 0.09), transparent 37%),
    linear-gradient(180deg, var(--midnight), #11121c 72%, #13131d);
}

.first-frame__copy {
  grid-column: 1 / 7;
  padding-left: clamp(0px, 1.5vw, 22px);
}

.first-frame__copy::before {
  display: block;
  width: 46px;
  height: 1px;
  margin-bottom: 28px;
  content: "";
  background: linear-gradient(90deg, var(--rose), transparent);
}

.display-title {
  max-width: 7.4em;
  color: #f8eee6;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.first-frame__lead {
  color: rgba(245, 236, 228, 0.68);
}

.film-frame {
  grid-column: 6 / 13;
  padding: 9px 9px 7px;
  border: 1px solid rgba(245, 236, 228, 0.09);
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(245, 236, 228, 0.085), rgba(202, 137, 148, 0.025));
  box-shadow: var(--photo-shadow);
}

.film-frame::before {
  inset: 9px;
  border-color: rgba(255, 246, 236, 0.12);
}

.film-frame::after {
  position: absolute;
  z-index: 6;
  top: 27px;
  left: 28px;
  content: "01  ·  两座城之间";
  color: rgba(255, 244, 232, 0.58);
  font-size: 0.61rem;
  letter-spacing: 0.16em;
  pointer-events: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.film-frame .scene {
  border-radius: 2px;
}

.film-frame .scene__photo--base {
  filter: saturate(0.54) contrast(1.03) brightness(0.64);
}

.film-frame .scene__photo--reveal {
  filter: saturate(0.9) contrast(1) brightness(0.95);
}

.film-frame.is-memory-warm .scene__photo--reveal {
  filter: saturate(1.02) contrast(0.99) brightness(1);
  transform: scale(1.016);
}

.film-frame figcaption {
  padding: 14px 4px 3px;
}

.first-frame__touch-ring {
  border-color: rgba(255, 231, 215, 0.8);
  box-shadow: 0 0 0 7px rgba(202, 137, 148, 0.055);
}

.first-frame__touch-ring::after {
  position: absolute;
  inset: -7px;
  border: 1px dashed rgba(231, 185, 180, 0.28);
  border-radius: 50%;
  content: "";
}

.first-frame__touch-line {
  color: rgba(255, 241, 230, 0.94);
}

.first-frame__body {
  color: rgba(245, 236, 228, 0.72);
}

.contact-sheet {
  background:
    radial-gradient(circle at 74% 16%, rgba(105, 170, 163, 0.055), transparent 28%),
    radial-gradient(circle at 14% 54%, rgba(202, 137, 148, 0.07), transparent 32%),
    linear-gradient(180deg, #13131d 0%, #17131d 48%, #211720 100%);
}

.contact-sheet__thread {
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--lilac) 10%, var(--rose) 55%, var(--apricot) 91%, transparent);
  box-shadow: 0 0 16px rgba(202, 137, 148, 0.12);
}

.memory {
  min-height: min(900px, 94svh);
}

.memory__visual {
  border: 7px solid rgba(244, 235, 223, 0.075);
  background: #111019;
  box-shadow: var(--photo-shadow);
  transition:
    transform 900ms var(--romance-ease),
    box-shadow 900ms var(--romance-ease),
    border-color 700ms ease;
}

.memory:nth-child(1) .memory__visual {
  grid-column: 1 / 8;
  transform: rotate(-0.32deg);
}

.memory:nth-child(2) .memory__visual {
  grid-column: 8 / 13;
  transform: rotate(0.38deg);
}

.memory:nth-child(3) .memory__visual {
  grid-column: 2 / 9;
  transform: rotate(-0.22deg);
}

.memory:nth-child(1) .memory__copy {
  grid-column: 9 / 13;
}

.memory:nth-child(2) .memory__copy {
  grid-column: 2 / 7;
}

.memory:nth-child(3) .memory__copy {
  grid-column: 9 / 13;
}

.memory.is-near .memory__visual,
.memory__visual:hover,
.memory__visual:focus-visible,
.memory__visual.is-inspected {
  border-color: rgba(231, 185, 180, 0.14);
  box-shadow:
    0 42px 110px rgba(0, 0, 0, 0.38),
    0 0 80px rgba(202, 137, 148, 0.09);
  transform: rotate(0) translateY(-3px);
}

.memory.is-near::before {
  background: var(--apricot);
  box-shadow:
    0 0 18px rgba(231, 183, 143, 0.52),
    8px 0 0 -1px rgba(202, 137, 148, 0.72);
}

.memory__index {
  color: rgba(231, 185, 180, 0.72);
}

.memory__copy h3 {
  color: rgba(248, 239, 231, 0.95);
}

.memory__body {
  color: rgba(245, 236, 228, 0.66);
}

.scene__photo--memory-base {
  filter: grayscale(0.08) saturate(0.66) contrast(1.02) brightness(0.8);
  transition: filter 1.05s var(--romance-ease);
}

.scene__photo--memory-reveal {
  filter: saturate(0.94) contrast(0.99) brightness(0.98);
  transition: clip-path 1.05s var(--romance-ease);
}

.photo-essay {
  position: relative;
}

.photo-essay::before {
  position: absolute;
  top: 4%;
  right: -7vw;
  content: "memory";
  color: rgba(231, 185, 180, 0.035);
  font-family: var(--serif);
  font-size: clamp(7rem, 17vw, 16rem);
  letter-spacing: -0.08em;
  pointer-events: none;
  transform: rotate(90deg);
}

.photo-essay__heading h3,
.puzzle-story__copy h3,
.photo-after__copy h3,
.chat-fragments__heading h3 {
  color: rgba(248, 239, 231, 0.96);
}

.puzzle-story__visual {
  border: 1px solid rgba(245, 236, 228, 0.1);
  box-shadow:
    0 0 0 8px rgba(244, 235, 223, 0.04),
    0 38px 110px rgba(0, 0, 0, 0.34),
    0 0 72px rgba(202, 137, 148, 0.065);
}

.puzzle-story__image {
  transition:
    transform 1.2s var(--romance-ease),
    filter 1.2s var(--romance-ease);
}

.puzzle-story__frame.is-active .puzzle-story__image {
  filter: saturate(0.98) brightness(0.98);
  transform: scale(1);
}

.puzzle-story__controls {
  opacity: 1;
}

.puzzle-story__control {
  color: rgba(245, 236, 228, 0.48);
}

.puzzle-story__control[aria-pressed="true"] {
  color: var(--blush);
}

.puzzle-story__control::after {
  background: var(--rose);
  box-shadow: 0 0 12px rgba(202, 137, 148, 0.36);
}

.photo-after__figure {
  border: 6px solid rgba(244, 235, 223, 0.065);
  box-shadow: var(--photo-shadow);
}

.photo-after__item--1 .photo-after__figure {
  transform: rotate(0.26deg);
}

.photo-after__item--2 .photo-after__figure {
  transform: rotate(-0.24deg);
}

.chat-fragments {
  border-color: rgba(231, 185, 180, 0.11);
}

.chat-fragments::before {
  background: radial-gradient(circle, rgba(202, 137, 148, 0.12), rgba(157, 149, 183, 0.025) 48%, transparent 70%);
}

.chat-fragments__list {
  width: min(940px, 84%);
}

.chat-fragment {
  margin-top: 14px;
  border: 1px solid rgba(231, 185, 180, 0.08);
  border-right-color: transparent;
  border-left-color: rgba(157, 149, 183, 0.16);
  background: linear-gradient(100deg, rgba(157, 149, 183, 0.035), rgba(202, 137, 148, 0.018) 54%, transparent);
}

.chat-fragment:last-child {
  border-bottom-color: rgba(231, 185, 180, 0.08);
}

.chat-fragment.is-open {
  border-left-color: rgba(231, 185, 180, 0.34);
  background:
    radial-gradient(circle at 50% 58%, rgba(202, 137, 148, 0.07), transparent 48%),
    linear-gradient(100deg, rgba(157, 149, 183, 0.06), rgba(202, 137, 148, 0.04) 65%, transparent);
}

.chat-slip {
  min-height: 104px;
  padding-inline: 24px;
}

.chat-slip::after {
  background: linear-gradient(90deg, var(--lilac), var(--rose), var(--apricot), transparent);
}

.chat-fragment__inner::before {
  left: 50%;
  background: linear-gradient(180deg, var(--lilac), rgba(202, 137, 148, 0.5), var(--apricot));
  opacity: 0.36;
}

.chat-fragment__line {
  padding: 13px 16px;
  background: linear-gradient(90deg, rgba(157, 149, 183, 0.085), transparent 84%);
}

.chat-fragment__line + .chat-fragment__line {
  margin-left: 10%;
  background: linear-gradient(270deg, rgba(202, 137, 148, 0.1), transparent 86%);
}

.chat-fragment__line:nth-child(1) .chat-fragment__speaker {
  color: rgba(174, 166, 201, 0.84);
}

.chat-fragment__line:nth-child(2) .chat-fragment__speaker {
  color: rgba(221, 151, 162, 0.86);
}

.truth-beat {
  position: relative;
  isolation: isolate;
}

.truth-beat::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 42%;
  width: min(64vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(202, 137, 148, 0.14), rgba(157, 149, 183, 0.035) 48%, transparent 70%);
  filter: blur(8px);
  transform: translate(-50%, -50%);
}

.truth-beat p {
  color: #f8eae4;
  text-shadow: 0 0 42px rgba(202, 137, 148, 0.12);
}

.truth-beat span {
  color: rgba(245, 236, 228, 0.66);
}

.ordinary-days {
  background:
    radial-gradient(ellipse at 72% 34%, rgba(202, 137, 148, 0.16), transparent 38%),
    linear-gradient(160deg, #211820 0%, #2a1d24 53%, #19151c 100%);
}

.ordinary-days__wash {
  overflow: hidden;
  opacity: 1;
}

.ordinary-days__wash::before {
  position: absolute;
  inset: 7% -10%;
  content: "";
  background:
    linear-gradient(180deg, rgba(24, 17, 24, 0.45), rgba(24, 17, 24, 0.76)),
    url("../assets/photos/moment-hands-small.webp") 76% 45% / min(760px, 70vw) auto no-repeat;
  filter: blur(26px) saturate(0.72);
  opacity: 0.12;
  transform: scale(1.08);
}

.ordinary-days__heading h2 {
  max-width: 6.6em;
  font-size: clamp(2.3rem, 4.2vw, 4.7rem);
}

.ordinary-intro {
  color: rgba(245, 236, 228, 0.76);
}

.ordinary-lines {
  gap: clamp(72px, 10vh, 112px);
}

.ordinary-lines li {
  max-width: 17em;
  color: rgba(245, 236, 228, 0.5);
}

.ordinary-lines li::before {
  position: absolute;
  top: 0.83em;
  left: -28px;
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--rose);
  box-shadow: 0 0 14px rgba(202, 137, 148, 0.34);
  opacity: 0.34;
  transition: opacity 600ms ease, box-shadow 600ms ease;
}

.ordinary-lines li.is-visible::before {
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(231, 183, 143, 0.46);
}

.ordinary-lines li:first-child {
  color: #f7e9e3;
  font-size: clamp(2.25rem, 3.15vw, 3.7rem);
  text-shadow: 0 0 34px rgba(202, 137, 148, 0.13);
}

.ordinary-lines li:nth-child(n + 2) {
  font-size: clamp(1.72rem, 2.35vw, 2.8rem);
}

.letter {
  background:
    radial-gradient(circle at 50% 38%, rgba(231, 183, 143, 0.11), transparent 40%),
    linear-gradient(180deg, #1a141c 0%, #121019 42%, #0e0e15 100%);
}

.letter-body {
  width: min(930px, 92%);
  max-width: 930px;
  padding: clamp(56px, 7vw, 96px);
  color: var(--ink);
  background:
    radial-gradient(circle at var(--letter-x, 50%) var(--letter-y, 18%), rgba(255, 246, 226, 0.88), transparent 31%),
    linear-gradient(137deg, #f5ecdf 0%, #eadbcd 62%, #e4d2c4 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  box-shadow:
    0 52px 130px rgba(0, 0, 0, 0.4),
    0 2px 0 rgba(255, 255, 255, 0.42) inset,
    0 0 90px rgba(202, 137, 148, 0.07);
  overflow: hidden;
}

.letter-body::before {
  inset: -80px;
  opacity: 0.8;
  background: radial-gradient(circle 270px at var(--letter-x) var(--letter-y), rgba(255, 243, 215, 0.28), transparent 74%);
}

.letter-body::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 0 49.8%, rgba(95, 67, 67, 0.025) 50%, transparent 50.2%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperNoise)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.1;
}

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

.letter-body__light {
  z-index: 3;
  width: 310px;
  background: radial-gradient(circle, rgba(255, 239, 204, 0.48), transparent 69%);
  mix-blend-mode: soft-light;
}

.letter-body__salutation {
  color: rgba(43, 34, 38, 0.94);
}

.letter-touch-hint {
  color: rgba(91, 65, 70, 0.62);
}

.letter-body__paragraphs {
  gap: clamp(66px, 8vh, 92px);
}

.letter-row {
  opacity: 0.64;
  transition: opacity 700ms var(--romance-ease), transform 700ms var(--romance-ease);
}

.letter-row.is-current,
.letter-row.is-touched-row {
  opacity: 1;
}

.letter-row__text {
  color: rgba(43, 34, 38, 0.88);
  line-height: 2.06;
}

.letter-row.is-current .letter-row__text,
.letter-row.is-touched-row .letter-row__text {
  color: rgba(43, 34, 38, 0.97);
  text-shadow: none;
}

.letter-note {
  color: rgba(112, 81, 89, 0.68);
  opacity: 0.7;
}

.letter-note::before {
  background: linear-gradient(90deg, var(--rose), transparent);
}

.letter-row.is-current .letter-note,
.letter-row.is-touched-row .letter-note {
  color: rgba(125, 77, 88, 0.9);
  opacity: 1;
}

.letter-body__footer {
  color: rgba(79, 57, 61, 0.64);
}

.daybreak {
  background:
    radial-gradient(circle at 76% 66%, rgba(231, 183, 143, 0.44), transparent 32%),
    radial-gradient(circle at 20% 19%, rgba(157, 149, 183, 0.22), transparent 42%),
    linear-gradient(180deg, #c1b7b7 0%, #e3d3cc 33%, #f3eadd 68%, #f5ecdf 100%);
}

.daybreak::before {
  height: 44vh;
  background: linear-gradient(180deg, #0e0e16 0%, #251d2a 17%, #64525f 45%, #b89599 72%, rgba(243, 234, 221, 0) 100%);
}

.daybreak::after {
  background:
    radial-gradient(circle at 20% 72%, rgba(231, 154, 120, 0.56), rgba(231, 154, 120, 0.1) 16%, transparent 36%),
    linear-gradient(120deg, transparent 38%, rgba(255, 235, 208, 0.12), transparent 67%);
}

.daybreak__sun {
  opacity: 0.5;
  background: radial-gradient(circle, rgba(255, 228, 185, 0.9), rgba(231, 172, 137, 0.18) 34%, transparent 68%);
}

.daybreak__sun::before,
.daybreak__sun::after {
  position: absolute;
  content: "";
  pointer-events: none;
  opacity: 0.32;
}

.daybreak__sun::before {
  right: 62%;
  bottom: 25%;
  width: 52vw;
  height: 90px;
  border-top: 1px solid rgba(77, 55, 65, 0.34);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.daybreak__sun::after {
  right: 5%;
  bottom: 18%;
  width: 36vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 64, 70, 0.4), transparent);
}

.daybreak__copy h2 {
  color: #2a2226;
  text-shadow: 0 22px 70px rgba(117, 74, 70, 0.08);
}

.closing-button {
  min-height: 126px;
  padding-inline: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(75, 53, 60, 0.15);
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.22);
  box-shadow:
    0 22px 70px rgba(112, 76, 74, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px);
  transition:
    background 650ms var(--romance-ease),
    border-color 650ms ease,
    transform 180ms ease;
}

.closing-button:hover,
.closing-button:focus-visible {
  border-color: rgba(159, 98, 112, 0.3);
  background: rgba(255, 248, 237, 0.36);
}

.closing-button__cities span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.closing-button__cities span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--rose-deep);
  box-shadow: 0 0 12px rgba(159, 98, 112, 0.36);
}

.closing-button__cities span:last-child::before {
  background: #c78f6d;
  box-shadow: 0 0 12px rgba(199, 143, 109, 0.38);
}

.archive-door {
  padding: clamp(34px, 4.4vw, 54px);
  border: 1px solid rgba(71, 49, 56, 0.13);
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.24), rgba(223, 198, 190, 0.12)),
    repeating-linear-gradient(-38deg, transparent 0 14px, rgba(115, 75, 78, 0.018) 14px 15px);
  box-shadow: 0 28px 90px rgba(105, 72, 71, 0.075);
}

.archive-door::before {
  top: -1px;
  left: 5%;
  width: 24%;
  background: linear-gradient(90deg, var(--rose-deep), var(--apricot));
}

.archive-door__button {
  border-color: rgba(75, 53, 60, 0.24);
  transition: background 450ms var(--romance-ease), transform 160ms ease;
}

.archive-door__button:hover,
.archive-door__button:focus-visible {
  background: rgba(202, 137, 148, 0.07);
}

.memory__visual,
.chat-slip,
.closing-button,
.archive-door__button {
  touch-action: manipulation;
}

@media (max-width: 900px) {
  .cinema-frame {
    inset: 8px;
  }

  .site-chrome {
    backdrop-filter: blur(8px);
  }

  .first-frame__layout {
    padding-top: clamp(126px, 17svh, 168px);
  }

  .display-title {
    max-width: 7em;
  }

  .film-frame {
    width: calc(100% + 12px);
    margin-left: -2px;
  }

  .memory {
    min-height: auto;
    padding-block: clamp(86px, 13svh, 128px);
  }

  .memory:nth-child(1) .memory__visual {
    width: 100%;
    margin-left: 0;
  }

  .memory:nth-child(2) .memory__visual {
    width: 84%;
    margin-right: 0;
    margin-left: auto;
  }

  .memory:nth-child(3) .memory__visual {
    width: 94%;
    margin-left: 4%;
  }

  .memory__copy,
  .memory:nth-child(1) .memory__copy,
  .memory:nth-child(2) .memory__copy,
  .memory:nth-child(3) .memory__copy {
    width: 84%;
    margin-top: 54px;
    margin-left: 10%;
  }

  .contact-sheet__thread {
    left: 18px;
  }

  .chat-fragments__list {
    width: 92%;
  }

  .chat-fragment__line {
    grid-template-columns: 4.1em minmax(0, 1fr);
  }

  .letter-body {
    width: 96%;
    padding: clamp(48px, 8vw, 68px) clamp(26px, 6vw, 50px) clamp(64px, 10vw, 84px);
  }

  .letter-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .letter-note {
    margin-left: 9%;
  }
}

@media (max-width: 520px) {
  :root {
    --shell: calc(100vw - 42px);
  }

  .cinema-frame {
    display: none;
  }

  .romance-veil__bloom {
    width: 92vw;
  }

  .threshold {
    padding-inline: 17px;
  }

  .threshold::before,
  .threshold::after {
    opacity: 0.24;
  }

  .threshold__orbit {
    width: 128vw;
    transform: rotate(-12deg);
  }

  .threshold__content {
    width: min(100%, 370px);
  }

  .threshold__eyebrow {
    margin-bottom: 28px;
  }

  .threshold__title {
    max-width: 15em;
    font-size: clamp(1.28rem, 6.5vw, 1.62rem);
    line-height: 1.86;
  }

  .threshold__route {
    width: min(330px, 86vw);
    margin-top: 34px;
  }

  .hold-button {
    min-width: min(280px, 82vw);
    margin-top: 26px;
  }

  .site-chrome {
    padding-right: 20px;
    padding-left: 20px;
  }

  .archive-mark__title {
    font-size: 0.76rem;
  }

  .first-frame {
    min-height: 142svh;
  }

  .first-frame__layout {
    padding-top: clamp(124px, 16svh, 154px);
  }

  .first-frame__copy {
    padding-left: 0;
  }

  .first-frame__copy::before {
    width: 36px;
    margin-bottom: 22px;
  }

  .display-title {
    max-width: 6.6em;
    margin-top: 25px;
    font-size: clamp(3.05rem, 15.4vw, 4.05rem);
    line-height: 1.04;
  }

  .first-frame__lead {
    font-size: 1rem;
    line-height: 2;
  }

  .film-frame {
    width: calc(100% + 16px);
    margin-left: -2px;
    padding: 6px 6px 5px;
    box-shadow:
      0 25px 72px rgba(0, 0, 0, 0.34),
      0 0 52px rgba(202, 137, 148, 0.06);
  }

  .film-frame::before {
    inset: 6px;
  }

  .film-frame::after {
    top: 21px;
    left: 20px;
    font-size: 0.55rem;
  }

  .first-frame__touch-prompt {
    max-width: 8em;
    white-space: normal;
  }

  .contact-sheet {
    padding-top: 112px;
  }

  .contact-sheet__thread {
    left: 10px;
    opacity: 0.62;
  }

  .memory {
    padding-block: 92px;
  }

  .memory__visual {
    border-width: 5px;
  }

  .memory:nth-child(2) .memory__visual {
    width: 86%;
  }

  .memory__copy,
  .memory:nth-child(1) .memory__copy,
  .memory:nth-child(2) .memory__copy,
  .memory:nth-child(3) .memory__copy {
    width: 86%;
    margin-top: 48px;
    margin-left: 9%;
  }

  .photo-essay::before {
    display: none;
  }

  .puzzle-story__visual {
    box-shadow:
      0 0 0 5px rgba(244, 235, 223, 0.04),
      0 28px 80px rgba(0, 0, 0, 0.32);
  }

  .chat-fragments {
    margin-top: 178px;
    padding-top: 82px;
  }

  .chat-fragments__list {
    width: 100%;
    margin-top: 80px;
  }

  .chat-fragment {
    margin-top: 12px;
  }

  .chat-slip {
    min-height: 96px;
    padding-inline: 15px;
  }

  .chat-fragment__inner {
    padding-inline: 24px 14px;
  }

  .chat-fragment__inner::before {
    left: 50%;
    opacity: 0.22;
  }

  .chat-fragment__line {
    grid-template-columns: 3.7em minmax(0, 1fr);
    gap: 9px;
    padding: 12px 10px;
    font-size: 0.98rem;
  }

  .chat-fragment__line + .chat-fragment__line {
    margin-left: 6%;
  }

  .truth-beat {
    min-height: 62svh;
    margin-top: 156px;
    padding-inline: 7%;
  }

  .truth-beat p {
    font-size: clamp(2.35rem, 12vw, 3.15rem);
  }

  .ordinary-days__layout {
    padding-block: 128px 160px;
  }

  .ordinary-days__heading h2 {
    font-size: clamp(2.1rem, 10.6vw, 2.8rem);
  }

  .ordinary-days__text {
    padding-left: 4%;
  }

  .ordinary-lines {
    gap: 74px;
  }

  .ordinary-lines li:first-child {
    font-size: clamp(1.95rem, 9vw, 2.5rem);
  }

  .ordinary-lines li:nth-child(n + 2) {
    font-size: clamp(1.55rem, 7.3vw, 2rem);
  }

  .ordinary-lines li::before {
    left: -18px;
    width: 4px;
    height: 4px;
  }

  .letter {
    padding-block: 118px 170px;
  }

  .section-heading--letter h2 {
    font-size: clamp(2.55rem, 12.8vw, 3.5rem);
  }

  .letter-body {
    width: calc(100% + 8px);
    max-width: none;
    margin-top: 86px;
    margin-left: -4px;
    padding: 52px 24px 72px;
  }

  .letter-body__paragraphs {
    gap: 66px;
    margin-top: 44px;
  }

  .letter-row {
    gap: 16px;
    opacity: 0.58;
  }

  .letter-row__text {
    font-size: 1rem;
    line-height: 2.02;
  }

  .letter-note {
    margin-left: 8%;
    color: rgba(112, 81, 89, 0.64);
  }

  .letter-body__footer {
    margin-top: 116px;
  }

  .daybreak__shell {
    padding-top: clamp(230px, 32vh, 310px);
  }

  .daybreak__copy h2 {
    font-size: clamp(2.75rem, 13.2vw, 3.65rem);
    line-height: 1.04;
  }

  .daybreak__lines {
    margin-top: 64px;
  }

  .closing-gesture {
    margin-top: 118px;
  }

  .closing-button {
    min-height: 112px;
    margin-top: 34px;
    padding-inline: 15px;
  }

  .closing-button__cities {
    gap: 8px;
  }

  .archive-door {
    margin-top: 96px;
    padding: 28px 22px 30px;
  }

  .archive-door__action {
    margin-top: 36px;
  }

  .memory__visual:active,
  .chat-slip:active,
  .closing-button:active,
  .archive-door__button:active {
    transform: scale(0.992);
  }
}

@media (prefers-reduced-motion: reduce) {
  .threshold__orbit::before,
  .threshold__orbit::after,
  .threshold__orbit i {
    animation: none;
  }

  .romance-veil__bloom {
    transform: none;
  }

  .letter-row {
    opacity: 1;
  }
}

.memory__visual.is-inspected .scene__photo--memory-base {
  filter: saturate(0.98) contrast(1) brightness(0.98);
}

body.has-entered .chapter-nav {
  opacity: 0;
}

body.has-entered .chapter-nav:hover,
body.has-entered .chapter-nav:focus-within {
  opacity: 0.86;
}

@media (max-height: 520px) {
  .threshold {
    place-items: start center;
    padding: max(4px, env(safe-area-inset-top)) 12px max(4px, env(safe-area-inset-bottom));
  }

  .threshold__orbit {
    display: none;
  }

  .threshold__content {
    min-height: 100%;
    justify-content: center;
    padding-block: 2px;
  }

  .threshold__eyebrow {
    margin-bottom: 1px;
    font-size: 0.52rem;
  }

  .threshold__title {
    max-width: 22em;
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .threshold__route {
    width: min(264px, 84vw);
    gap: 10px;
    margin-top: 3px;
    font-size: 0.5rem;
  }

  .hold-button {
    min-width: 220px;
    min-height: 60px;
    margin-top: 4px;
    padding-left: 66px;
  }

  .hold-button__ring {
    width: 60px;
    height: 60px;
  }

  .hold-button__dot {
    top: 26px;
    left: 26px;
  }

  .hold-button::before {
    left: 30px;
    width: 40px;
    height: 40px;
  }

  .threshold__hint {
    margin-top: 1px;
    font-size: 0.5rem;
    line-height: 1.2;
  }

  .threshold__direct {
    min-height: 44px;
    margin-top: 0;
    font-size: 0.58rem;
  }

  .site-chrome {
    padding: max(4px, env(safe-area-inset-top)) 16px 4px;
  }
}

@layer reset, base, components, chapters, responsive;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable both-edges;
    scrollbar-color: #817365 #0b1018;
  }

  body,
  h1,
  h2,
  h3,
  p,
  figure,
  ol {
    margin: 0;
  }

  button,
  textarea {
    color: inherit;
    font: inherit;
  }

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

  button {
    border: 0;
  }

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

@layer base {
  :root {
    --night: #0b1018;
    --night-soft: #121a24;
    --blue: #192430;
    --ink: #262421;
    --paper: #eee7dc;
    --paper-deep: #d8cfc1;
    --warm: #c1947d;
    --warm-light: #d8ad82;
    --mist: #a6adb3;
    --line: rgba(229, 222, 211, 0.22);
    --shell: min(1280px, calc(100vw - 96px));
    --serif: "Noto Serif Story", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --ease: cubic-bezier(0.2, 0.72, 0.22, 1);
    --slow-ease: cubic-bezier(0.33, 0, 0.1, 1);
    --journey: 0;
    --hold-offset: 251.3px;
  }

  html {
    background: var(--night);
  }

  body {
    min-width: 280px;
    overflow-x: clip;
    background: var(--night);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  body.is-locked {
    height: 100svh;
    overflow: hidden;
  }

  ::selection {
    background: rgba(216, 173, 130, 0.28);
    color: #fffaf1;
  }

  :focus-visible {
    border-radius: 2px;
    outline: 2px solid var(--warm-light);
    outline-offset: 5px;
  }

  body.is-daybreak :focus-visible {
    outline-color: #654435;
  }

  .skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    transform: translateY(-160%);
    background: var(--paper);
    color: var(--ink);
    transition: transform 180ms ease;
  }

  .skip-link:focus {
    transform: translateY(0);
  }

  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .atmosphere {
    position: fixed;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: opacity 1.2s var(--ease);
  }

  body.is-daybreak .atmosphere {
    opacity: 0.22;
  }

  .grain {
    position: fixed;
    z-index: 90;
    inset: -15%;
    width: 130%;
    height: 130%;
    pointer-events: none;
    opacity: 0.035;
    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='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
    transform: translate3d(-3%, 2%, 0);
    animation: grain-shift 0.72s steps(2) infinite;
    mix-blend-mode: soft-light;
  }

  @keyframes grain-shift {
    0% { transform: translate3d(-3%, 2%, 0); }
    25% { transform: translate3d(2%, -4%, 0); }
    50% { transform: translate3d(4%, 3%, 0); }
    75% { transform: translate3d(-4%, -2%, 0); }
    100% { transform: translate3d(1%, 4%, 0); }
  }

  .pointer-light {
    position: fixed;
    z-index: 3;
    top: 0;
    left: 0;
    width: 420px;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(210, 178, 147, 0.055), rgba(210, 178, 147, 0.016) 38%, transparent 70%);
    transform: translate3d(calc(var(--pointer-x, -500px) - 50%), calc(var(--pointer-y, -500px) - 50%), 0);
    transition: opacity 500ms ease;
    will-change: transform;
  }

  body.has-pointer .pointer-light {
    opacity: 1;
  }

  main,
  .chapter {
    position: relative;
    z-index: 1;
  }

  main {
    opacity: 0;
    transition: opacity 650ms 100ms var(--slow-ease);
  }

  body.has-entered main {
    opacity: 1;
  }

  .chapter {
    min-height: 100svh;
    overflow: clip;
  }

  .chapter-shell {
    width: var(--shell);
    margin-inline: auto;
  }

  .eyebrow {
    color: rgba(229, 222, 211, 0.62);
    font-family: var(--sans);
    font-size: 0.69rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .reveal {
    opacity: 0.72;
    transform: translateY(12px);
    transition:
      opacity 650ms var(--ease),
      transform 650ms var(--ease);
    transition-delay: calc(var(--reveal-delay, 0) * 150ms);
  }

  .reveal[data-delay="1"] { --reveal-delay: 1; }
  .reveal[data-delay="2"] { --reveal-delay: 2; }

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

  .desktop-only {
    display: inline;
  }

  .touch-only {
    display: none;
  }

  .noscript {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 32px;
    background: var(--night);
    color: var(--paper);
    text-align: center;
  }
}

@layer components {
  .threshold {
    --hold-scale: 0;
    position: fixed;
    z-index: 500;
    inset: 0;
    display: grid;
    min-height: 100svh;
    place-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 50% 48%, rgba(53, 67, 80, 0.28), transparent 27%),
      linear-gradient(145deg, #080c12 0%, #0b111a 55%, #0c1118 100%);
    transition:
      opacity 520ms var(--slow-ease),
      visibility 520ms step-end;
  }

  .threshold.is-leaving {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .threshold__halo {
    position: absolute;
    width: min(88vw, 850px);
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: calc(0.18 + var(--hold-scale) * 0.7);
    background: radial-gradient(
      circle,
      rgba(216, 173, 130, calc(0.08 + var(--hold-scale) * 0.2)) 0%,
      rgba(137, 139, 138, 0.06) 32%,
      transparent 68%
    );
    transform: scale(calc(0.55 + var(--hold-scale) * 0.65));
    transition: transform 80ms linear;
  }

  .threshold__content {
    position: relative;
    display: flex;
    width: min(680px, calc(100vw - 48px));
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .threshold__eyebrow {
    margin-bottom: clamp(30px, 5vh, 58px);
    opacity: 0;
    animation: threshold-enter 1s 180ms var(--ease) forwards;
  }

  .threshold__title {
    max-width: 18em;
    font-family: var(--serif);
    font-size: clamp(1.28rem, 2.2vw, 1.75rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1.9;
    white-space: pre-line;
    opacity: 0;
    animation: threshold-enter 1.2s 480ms var(--ease) forwards;
  }

  .threshold__route {
    display: grid;
    width: min(390px, 78vw);
    grid-template-columns: auto minmax(80px, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-top: clamp(34px, 5vh, 52px);
    color: rgba(229, 222, 211, 0.42);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    opacity: 0;
    animation: threshold-enter 1s 680ms var(--ease) forwards;
  }

  .threshold__city {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition:
      color 280ms ease,
      transform 80ms linear;
  }

  .threshold__city--from {
    transform: translateX(var(--route-shift, 0px));
  }

  .threshold__city--to {
    flex-direction: row-reverse;
    transform: translateX(calc(-1 * var(--route-shift, 0px)));
  }

  .threshold__city i {
    width: 5px;
    height: 5px;
    border: 1px solid currentColor;
    border-radius: 50%;
    box-shadow: 0 0 calc(3px + var(--hold-scale) * 13px) rgba(216, 173, 130, 0.28);
    transition:
      background 280ms ease,
      border-color 280ms ease;
  }

  .threshold__route-line {
    position: relative;
    display: block;
    height: 1px;
    overflow: visible;
    background: rgba(229, 222, 211, 0.1);
  }

  .threshold__route-line i {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(90deg, rgba(161, 184, 193, 0.5), rgba(216, 173, 130, 0.86));
    box-shadow: 0 0 15px rgba(216, 173, 130, 0.18);
    opacity: calc(0.2 + var(--hold-scale) * 0.8);
    transform: scaleX(var(--hold-scale));
    transform-origin: center;
  }

  .threshold:has(.hold-button.is-holding) .threshold__city {
    color: rgba(255, 243, 225, 0.88);
  }

  .threshold:has(.hold-button.is-holding) .threshold__city i {
    border-color: var(--warm-light);
    background: var(--warm-light);
  }

  @keyframes threshold-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hold-button {
    position: relative;
    display: grid;
    min-width: 248px;
    min-height: 88px;
    align-items: center;
    margin-top: 23px;
    padding: 0 20px 0 90px;
    border-radius: 50px;
    background: transparent;
    color: rgba(238, 231, 220, 0.78);
    cursor: pointer;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-align: left;
    touch-action: none;
    transition: color 300ms ease;
    opacity: 0;
    animation: threshold-enter 1s 780ms var(--ease) forwards;
  }

  .hold-button::after {
    position: absolute;
    right: 17px;
    bottom: 10px;
    left: 75px;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, rgba(216, 173, 130, 0.42), transparent);
    transform: scaleX(0.38);
    transform-origin: left;
    transition: transform 500ms var(--ease);
  }

  .hold-button:hover,
  .hold-button:focus-visible,
  .hold-button.is-holding {
    color: #fff8ec;
    opacity: 1;
  }

  .hold-button:hover::after,
  .hold-button.is-holding::after {
    transform: scaleX(1);
  }

  .hold-button__ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 88px;
    height: 88px;
    transform: rotate(-90deg);
    overflow: visible;
  }

  .hold-button__track,
  .hold-button__progress {
    fill: none;
    stroke-width: 1;
  }

  .hold-button__track {
    stroke: rgba(238, 231, 220, 0.15);
  }

  .hold-button__progress {
    stroke: var(--warm-light);
    stroke-dasharray: 251.3px;
    stroke-dashoffset: var(--hold-offset);
    stroke-linecap: round;
  }

  .hold-button__center {
    display: contents;
  }

  .hold-button__dot {
    position: absolute;
    top: 39px;
    left: 39px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--warm-light);
    box-shadow: 0 0 calc(6px + var(--hold-scale) * 24px) rgba(216, 173, 130, calc(0.2 + var(--hold-scale) * 0.5));
    transform: scale(calc(0.8 + var(--hold-scale) * 0.65));
  }

  .threshold__hint {
    margin-top: 11px;
    color: rgba(229, 222, 211, 0.5);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: threshold-enter 1s 980ms var(--ease) forwards;
  }

  .threshold__direct {
    min-height: 44px;
    margin-top: 8px;
    padding: 0 14px;
    background: transparent;
    color: rgba(229, 222, 211, 0.55);
    cursor: pointer;
    font-size: 0.67rem;
    letter-spacing: 0.14em;
    opacity: 0;
    animation: threshold-enter 900ms 1.08s var(--ease) forwards;
    transition: color 250ms ease;
  }

  .threshold__direct:hover,
  .threshold__direct:focus-visible {
    color: rgba(255, 248, 236, 0.94);
  }

  .threshold__counter {
    position: absolute;
    right: max(24px, 4vw);
    bottom: max(20px, env(safe-area-inset-bottom));
    color: rgba(229, 222, 211, 0.22);
    font-size: 0.61rem;
    letter-spacing: 0.18em;
  }

  .site-chrome {
    position: fixed;
    z-index: 80;
    top: 0;
    right: 0;
    left: 0;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: max(22px, env(safe-area-inset-top)) max(28px, 3.5vw) 20px;
    color: rgba(238, 231, 220, 0.74);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    transition:
      color 800ms var(--ease),
      opacity 700ms 500ms var(--ease),
      transform 700ms 500ms var(--ease);
  }

  body.has-entered .site-chrome {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.is-daybreak .site-chrome {
    color: rgba(38, 36, 33, 0.7);
  }

  .archive-mark {
    display: flex;
    width: max-content;
    min-height: 44px;
    align-items: baseline;
    gap: 14px;
  }

  .archive-mark__title {
    font-family: var(--serif);
    font-size: 0.83rem;
    letter-spacing: 0.18em;
  }

  .archive-mark__label {
    color: currentColor;
    font-size: 0.69rem;
    letter-spacing: 0.15em;
    opacity: 0.5;
  }

  .journey {
    display: block;
    width: clamp(132px, 14vw, 210px);
  }

  .journey__now,
  .journey__total {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .journey__track {
    position: relative;
    display: block;
    height: 1px;
    overflow: hidden;
    background: currentColor;
    opacity: 0.32;
  }

  .journey__fill {
    position: absolute;
    inset: 0;
    display: block;
    background: currentColor;
    transform: scaleX(var(--journey));
    transform-origin: left;
  }

  .sound-toggle {
    display: inline-flex;
    min-width: 102px;
    min-height: 44px;
    align-items: center;
    justify-self: end;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    font-size: 0.7rem;
    letter-spacing: 0.11em;
  }

  .sound-toggle[hidden] {
    display: none !important;
  }

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

  .sound-toggle__waves i {
    display: block;
    width: 1px;
    height: 4px;
    background: currentColor;
    transition: height 300ms ease;
  }

  .sound-toggle[aria-pressed="true"] .sound-toggle__waves i {
    animation: sound-wave 1.4s ease-in-out infinite alternate;
  }

  .sound-toggle[aria-pressed="true"] .sound-toggle__waves i:nth-child(2) { animation-delay: -0.7s; }
  .sound-toggle[aria-pressed="true"] .sound-toggle__waves i:nth-child(3) { animation-delay: -1.05s; }

  @keyframes sound-wave {
    from { height: 3px; }
    to { height: 12px; }
  }

  .chapter-nav {
    position: fixed;
    z-index: 70;
    top: 50%;
    right: max(24px, 3.5vw);
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: rgba(238, 231, 220, 0.64);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-42%);
    transition:
      color 800ms var(--ease),
      opacity 800ms 650ms var(--ease),
      transform 800ms 650ms var(--ease);
  }

  body.has-entered .chapter-nav {
    opacity: 0;
    pointer-events: auto;
    transform: translateY(-50%);
  }

  body.has-entered .chapter-nav:hover,
  body.has-entered .chapter-nav:focus-within {
    opacity: 0.86;
    transition-delay: 0ms;
  }

  .chapter-nav a:not(.is-active) {
    opacity: 0.18;
  }

  body.is-daybreak .chapter-nav {
    color: rgba(38, 36, 33, 0.72);
  }

  .chapter-nav a {
    position: relative;
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .chapter-nav a::after {
    width: 11px;
    height: 1px;
    content: "";
    background: currentColor;
    transition: width 400ms var(--ease);
  }

  .chapter-nav a span {
    font-variant-numeric: tabular-nums;
    opacity: 0;
    transition: opacity 300ms ease;
  }

  .chapter-nav a em {
    position: absolute;
    right: 21px;
    width: max-content;
    font-style: normal;
    opacity: 0;
    transform: translateX(5px);
    transition: 300ms ease;
  }

  .chapter-nav a:hover em,
  .chapter-nav a:focus-visible em {
    opacity: 0.8;
    transform: translateX(0);
  }

  .chapter-nav a.is-active {
    color: currentColor;
  }

  .chapter-nav a.is-active::after {
    width: 28px;
  }

  .chapter-nav a.is-active span {
    opacity: 0.9;
  }

  .section-heading {
    display: grid;
    grid-template-columns: 1fr 1.25fr 0.75fr;
    align-items: end;
    gap: 30px;
  }

  .section-heading h2 {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5.4vw, 5.8rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.08;
  }

  .section-heading > p:last-child {
    max-width: 20em;
    color: rgba(229, 222, 211, 0.48);
    font-family: var(--serif);
    font-size: 0.85rem;
    line-height: 1.9;
  }
}

@layer chapters {
  .first-frame {
    min-height: 138svh;
    background:
      radial-gradient(circle at 73% 38%, rgba(81, 97, 106, 0.16), transparent 28%),
      linear-gradient(180deg, rgba(11, 16, 24, 0.28), #0b1018 96%);
  }

  .first-frame__layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0 24px;
    padding-top: clamp(150px, 22vh, 240px);
    padding-bottom: clamp(110px, 18vh, 210px);
  }

  .first-frame__copy {
    z-index: 2;
    grid-column: 1 / 7;
    grid-row: 1;
    align-self: center;
    padding-top: 8vh;
  }

  .display-title {
    max-width: 8.5em;
    margin-top: 32px;
    font-family: var(--serif);
    font-size: clamp(3.6rem, 7.2vw, 8.8rem);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 1.03;
    white-space: pre-line;
  }

  .first-frame__lead {
    max-width: 25em;
    margin-top: 30px;
    color: rgba(229, 222, 211, 0.56);
    font-family: var(--serif);
    font-size: clamp(1rem, 1.35vw, 1.22rem);
    letter-spacing: 0.06em;
  }

  .film-frame {
    position: relative;
    z-index: 1;
    grid-column: 6 / 12;
    grid-row: 1;
    width: 100%;
    justify-self: end;
  }

  .film-frame::before {
    position: absolute;
    z-index: 2;
    inset: 13px;
    border: 1px solid rgba(238, 231, 220, 0.1);
    content: "";
    pointer-events: none;
  }

  .film-frame .scene {
    aspect-ratio: 0.84;
  }

  .film-frame .scene__photo--base {
    filter: saturate(0.36) contrast(1.08) brightness(0.53);
  }

  .film-frame .scene__photo--reveal {
    z-index: 1;
    clip-path: circle(0 at 51% 56%);
    filter: saturate(0.88) contrast(1.02) brightness(0.94);
    transition:
      clip-path 2.1s 240ms var(--slow-ease),
      filter 1.15s var(--slow-ease),
      transform 1.15s var(--slow-ease);
  }

  .film-frame.is-visible .scene__photo--reveal {
    clip-path: circle(145% at 51% 56%);
  }

  .film-frame.is-memory-warm .scene__photo--reveal {
    filter: saturate(1.02) contrast(1.01) brightness(1);
    transform: scale(1.012);
  }

  .film-frame figcaption {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    color: rgba(229, 222, 211, 0.58);
    font-size: 0.69rem;
    letter-spacing: 0.14em;
  }

  .edge-note {
    position: static;
    display: block;
    margin-top: 7px;
    color: rgba(229, 222, 211, 0.46);
    font-size: 0.65rem;
    letter-spacing: 0.13em;
    line-height: 1.6;
    text-align: right;
  }

  .scene {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #101923;
  }

  .scene__photo {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .memory__scene.has-photo::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 45%, rgba(5, 8, 12, 0.48));
  }

  .scene--window {
    background:
      radial-gradient(circle at 64% 32%, rgba(220, 182, 145, 0.62), rgba(180, 133, 103, 0.18) 18%, transparent 43%),
      linear-gradient(175deg, #384551 0%, #24313d 34%, #151d25 69%, #0d1218 100%);
  }

  .scene--window.has-photo {
    background: #0a0e13;
  }

  .scene--window.has-photo::before {
    display: none;
  }

  .scene--window.has-photo::after {
    z-index: 1;
    inset: 0;
    height: auto;
    background:
      linear-gradient(180deg, rgba(6, 9, 13, 0.04), rgba(6, 9, 13, 0.18) 64%, rgba(6, 9, 13, 0.62)),
      linear-gradient(90deg, rgba(6, 9, 13, 0.2), transparent 45%);
  }

  .scene--window.has-photo .scene__photo {
    object-position: 50% 50%;
  }

  .scene--window.has-photo .scene__glow,
  .scene--window.has-photo .scene__curtain,
  .scene--window.has-photo .scene__horizon {
    display: none;
  }

  .scene--window.has-photo .scene__trace {
    right: 11%;
    bottom: 7.5%;
    left: 11%;
    display: block;
    width: auto;
    background: linear-gradient(90deg, rgba(161, 184, 193, 0.16), rgba(216, 173, 130, 0.48));
    opacity: 0.56;
    transform: scaleX(0.08);
    transform-origin: left;
    transition:
      opacity 900ms ease,
      transform 1.8s 900ms var(--slow-ease),
      box-shadow 900ms ease;
  }

  .film-frame.is-visible .scene--window.has-photo .scene__trace {
    transform: scaleX(1);
  }

  .scene--window.has-photo .scene__trace::after {
    position: absolute;
    top: -2px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    content: "";
    background: rgba(238, 202, 168, 0.9);
    box-shadow: 0 0 14px rgba(216, 173, 130, 0.62);
    opacity: 0;
  }

  .film-frame.is-memory-warm .scene--window.has-photo .scene__trace {
    opacity: 0.9;
    box-shadow: 0 0 14px rgba(216, 173, 130, 0.16);
  }

  .film-frame.is-memory-warm .scene--window.has-photo .scene__trace::after {
    animation: first-route-light 1.05s var(--slow-ease) both;
  }

  @keyframes first-route-light {
    0% { left: 0; opacity: 0; }
    18% { opacity: 1; }
    82% { opacity: 1; }
    100% { left: calc(100% - 5px); opacity: 0; }
  }

  .scene--window.has-photo .scene__city {
    bottom: 4.1%;
    display: flex;
    color: rgba(242, 231, 215, 0.58);
    opacity: 0;
    transition:
      color 800ms ease,
      opacity 1s 1.25s ease;
  }

  .film-frame.is-visible .scene--window.has-photo .scene__city {
    opacity: 1;
  }

  .scene--window.has-photo .scene__city--from {
    left: 5%;
  }

  .scene--window.has-photo .scene__city--to {
    top: auto;
    right: 5%;
  }

  .film-frame.is-memory-warm .scene--window.has-photo .scene__city {
    color: rgba(255, 241, 221, 0.86);
  }

  .first-frame__touch {
    position: absolute;
    z-index: 7;
    top: 34%;
    left: 35%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(248, 232, 211, 0.72);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    touch-action: manipulation;
    transition: opacity 700ms 1.8s ease;
  }

  .first-frame__touch[hidden] {
    display: none;
  }

  .film-frame.has-photo .first-frame__touch {
    opacity: 0.72;
    pointer-events: auto;
  }

  .first-frame__touch-ring {
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
    border: 1px solid currentColor;
    border-radius: 50%;
    box-shadow: 0 0 0 7px rgba(238, 210, 180, 0.035);
    transition:
      border-color 500ms ease,
      box-shadow 700ms ease,
      transform 700ms var(--slow-ease);
  }

  .first-frame__touch-ring::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    content: "";
    pointer-events: none;
    background: radial-gradient(circle, rgba(232, 185, 145, 0.17), rgba(201, 149, 111, 0.055) 38%, transparent 70%);
    filter: blur(4px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.56);
    transition:
      opacity 760ms ease,
      transform 1.1s var(--slow-ease);
  }

  .first-frame__touch-prompt {
    position: absolute;
    top: 50%;
    left: calc(100% + 9px);
    width: max-content;
    color: rgba(245, 232, 214, 0.62);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 12px rgba(4, 7, 10, 0.8);
    transform: translateY(-50%);
    transition: opacity 500ms ease;
  }

  .first-frame__touch:hover .first-frame__touch-ring,
  .first-frame__touch:focus-visible .first-frame__touch-ring,
  .film-frame.is-memory-warm .first-frame__touch-ring {
    border-color: rgba(255, 235, 211, 0.94);
    box-shadow: 0 0 0 9px rgba(238, 210, 180, 0.06), 0 0 25px rgba(216, 173, 130, 0.28);
    transform: scale(1.08);
  }

  .first-frame__touch:focus-visible {
    outline-offset: 3px;
  }

  .film-frame.is-memory-warm .first-frame__touch-ring::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .film-frame.is-memory-warm .first-frame__touch-prompt {
    opacity: 0;
  }

  .first-frame__touch-line {
    position: absolute;
    z-index: 7;
    top: 60%;
    right: 8%;
    bottom: auto;
    max-width: 20em;
    color: rgba(255, 240, 221, 0.88);
    font-family: var(--serif);
    font-size: clamp(0.82rem, 1vw, 0.98rem);
    letter-spacing: 0.04em;
    line-height: 1.8;
    text-align: right;
    text-shadow: 0 2px 18px rgba(4, 7, 10, 0.9);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition:
      opacity 650ms ease,
      transform 800ms var(--slow-ease);
  }

  .film-frame.is-memory-warm .first-frame__touch-line {
    opacity: 1;
    transform: translateY(0);
  }

  .scene--window::before,
  .scene--window::after {
    position: absolute;
    z-index: 1;
    content: "";
    background: rgba(6, 10, 15, 0.66);
  }

  .scene--window::before {
    top: 0;
    bottom: 0;
    left: 46%;
    width: 1px;
  }

  .scene--window::after {
    top: 58%;
    right: 0;
    left: 0;
    height: 1px;
  }

  .scene__glow {
    position: absolute;
    top: 17%;
    right: 12%;
    width: 40%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 215, 176, 0.18), transparent 68%);
    filter: blur(12px);
    animation: window-breathe 8s ease-in-out infinite alternate;
    animation-play-state: paused;
  }

  body.has-entered[data-chapter="01"] .scene__glow {
    animation-play-state: running;
  }

  @keyframes window-breathe {
    from { opacity: 0.55; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1.08); }
  }

  .scene__curtain {
    position: absolute;
    z-index: 2;
    top: -3%;
    bottom: -3%;
    width: 31%;
    background: linear-gradient(90deg, rgba(7, 11, 16, 0.92), rgba(18, 25, 31, 0.54));
    filter: drop-shadow(0 0 25px rgba(0, 0, 0, 0.45));
  }

  .scene__curtain--left {
    left: -6%;
    clip-path: polygon(0 0, 88% 0, 100% 20%, 74% 52%, 90% 100%, 0 100%);
  }

  .scene__curtain--right {
    right: -10%;
    width: 23%;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 27% 53%, 4% 24%);
  }

  .scene__horizon {
    position: absolute;
    z-index: 0;
    right: -10%;
    bottom: 25%;
    left: -10%;
    height: 17%;
    background:
      linear-gradient(160deg, transparent 48%, rgba(6, 10, 14, 0.64) 49%),
      linear-gradient(20deg, rgba(10, 16, 20, 0.85) 40%, transparent 41%);
    opacity: 0.7;
  }

  .scene__trace {
    position: absolute;
    z-index: 3;
    right: 13%;
    bottom: 14%;
    width: 29%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 222, 211, 0.32), transparent);
    transform: rotate(-13deg);
  }

  .scene__city {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(238, 231, 220, 0.44);
    font-family: var(--sans);
    font-size: clamp(0.48rem, 0.58vw, 0.61rem);
    letter-spacing: 0.16em;
  }

  .scene__city::before {
    width: 4px;
    height: 4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
  }

  .scene__city--from {
    bottom: 7%;
    left: 7%;
  }

  .scene__city--to {
    top: 7%;
    right: 7%;
  }

  .first-frame__body {
    position: relative;
    grid-column: 2 / 5;
    grid-row: 2;
    margin-top: 13vh;
    color: rgba(229, 222, 211, 0.75);
    font-family: var(--serif);
    font-size: clamp(1.08rem, 1.6vw, 1.42rem);
    line-height: 2.05;
    white-space: pre-line;
  }

  .reading-mark {
    display: block;
    width: 34px;
    height: 1px;
    margin-top: 34px;
    background: var(--warm);
    opacity: 0.62;
  }

  .contact-sheet {
    padding-block: clamp(120px, 18vh, 220px);
    background:
      linear-gradient(180deg, #0b1018 0%, rgba(18, 26, 36, 0.94) 12%, rgba(18, 26, 36, 0.96) 88%, #151b22 100%);
  }

  .contact-sheet .chapter-shell {
    position: relative;
  }

  .contact-sheet__thread {
    position: absolute;
    z-index: 0;
    top: clamp(390px, 50vh, 580px);
    bottom: clamp(210px, 24vh, 340px);
    left: 50%;
    width: 1px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(229, 222, 211, 0.16) 5%, rgba(229, 222, 211, 0.13) 94%, transparent);
    opacity: 0.9;
    transform: scaleY(var(--thread-progress, 0));
    transform-origin: top;
  }

  .contact-sheet .section-heading,
  .memory-list,
  .photo-essay {
    position: relative;
    z-index: 1;
  }

  .memory-list {
    position: relative;
    margin-top: clamp(110px, 16vh, 190px);
  }

  .memory {
    position: relative;
    display: grid;
    min-height: min(920px, 100svh);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
    padding-block: 9vh;
  }

  .memory::after,
  .puzzle-story::after,
  .photo-after__item::after {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 1px;
    content: "";
    pointer-events: none;
    background: rgba(229, 222, 211, 0.28);
    transform: translate(-50%, -50%);
    transition:
      background 600ms ease,
      box-shadow 600ms ease,
      transform 700ms var(--slow-ease);
  }

  .memory::before {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 88px;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(216, 173, 130, 0.74), transparent);
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(0.3);
    transition:
      opacity 700ms ease,
      transform 950ms var(--slow-ease);
  }

  .memory.is-near::before {
    opacity: 0.82;
    transform: translate(-50%, -50%) scaleY(1);
  }

  .memory.is-near::after {
    background: rgba(230, 184, 143, 0.84);
    box-shadow: 0 0 18px rgba(216, 173, 130, 0.34);
    transform: translate(-50%, -50%) scaleX(1.35);
  }

  .memory__visual {
    position: relative;
    display: block;
    grid-column: 1 / 7;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #0d141c;
    cursor: crosshair;
    text-align: left;
  }

  .memory:nth-child(even) .memory__visual {
    grid-column: 7 / 13;
  }

  .memory__scene {
    position: relative;
    display: block;
    aspect-ratio: 1.22;
    overflow: hidden;
    transform: scale(1.012);
    transition: transform 900ms var(--ease);
  }

  .memory:nth-child(2) .memory__visual {
    grid-column: 8 / 12;
  }

  .memory:nth-child(2) .memory__scene {
    aspect-ratio: 1.08;
  }

  .memory:nth-child(3) .memory__scene {
    aspect-ratio: 1.34;
  }

  .memory__visual:hover .memory__scene,
  .memory__visual:focus-visible .memory__scene,
  .memory__visual.is-inspected .memory__scene {
    transform: scale(1);
  }

  .scene__photo--memory-base {
    filter: grayscale(0.12) saturate(0.68) contrast(1.04) brightness(0.78);
    transition: filter 750ms var(--slow-ease);
  }

  .memory__visual.is-inspected .scene__photo--memory-base {
    filter: saturate(0.96) contrast(1.01) brightness(0.98);
  }

  .scene__photo--memory-reveal {
    z-index: 1;
    clip-path: circle(0 at var(--inspect-x, 50%) var(--inspect-y, 50%));
    filter: saturate(0.96) contrast(1.01) brightness(0.98);
    transition: clip-path 750ms var(--slow-ease);
  }

  .memory__visual:hover .scene__photo--memory-reveal,
  .memory__visual:focus-visible .scene__photo--memory-reveal {
    clip-path: circle(190px at var(--inspect-x, 50%) var(--inspect-y, 50%));
  }

  .memory__visual.is-inspected .scene__photo--memory-reveal {
    clip-path: circle(145% at var(--inspect-x, 50%) var(--inspect-y, 50%));
  }

  .memory:nth-child(3) .scene__photo--memory-base {
    filter: grayscale(0.5) saturate(0.58) contrast(1.06) brightness(0.76);
  }

  .memory:nth-child(3) .scene__photo--memory-reveal {
    filter: grayscale(0.14) saturate(0.78) contrast(1.02) brightness(0.94);
  }

  .memory__visual::after {
    position: absolute;
    z-index: 4;
    inset: 0;
    content: "";
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle 150px at var(--inspect-x, 50%) var(--inspect-y, 50%), rgba(238, 220, 192, 0.13), transparent 72%);
    transition: opacity 500ms ease;
  }

  .memory__visual:hover::after,
  .memory__visual:focus-visible::after,
  .memory__visual.is-inspected::after {
    opacity: 1;
  }

  .memory__note {
    position: absolute;
    z-index: 5;
    right: 9%;
    bottom: 8%;
    left: 9%;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: #fff7eb;
    font-family: var(--serif);
    font-size: clamp(0.77rem, 1vw, 0.93rem);
    letter-spacing: 0.04em;
    line-height: 1.8;
    opacity: 0.68;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.82);
    transform: translateY(0);
    transition: 400ms var(--ease);
  }

  .memory__note::before {
    width: 38px;
    min-width: 38px;
    height: 1px;
    margin-top: 0.8em;
    content: "";
    background: currentColor;
    opacity: 0.5;
  }

  .memory__visual:hover .memory__note,
  .memory__visual:focus-visible .memory__note,
  .memory__visual.is-inspected .memory__note {
    opacity: 0.96;
    transform: translateY(0);
  }

  .memory__copy {
    grid-column: 8 / 12;
    padding-left: 4vw;
  }

  .memory:nth-child(even) .memory__copy {
    grid-column: 2 / 6;
    grid-row: 1;
    padding-right: 4vw;
    padding-left: 0;
  }

  .memory__index {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(229, 222, 211, 0.54);
    font-size: 0.69rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.16em;
  }

  .memory__index::after {
    width: 38px;
    height: 1px;
    content: "";
    background: currentColor;
  }

  .memory__copy h3 {
    margin-top: 31px;
    font-family: var(--serif);
    font-size: clamp(2rem, 3.5vw, 4.25rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.16;
  }

  .memory__body {
    margin-top: 28px;
    color: rgba(229, 222, 211, 0.65);
    font-family: var(--serif);
    font-size: clamp(0.98rem, 1.25vw, 1.16rem);
    line-height: 2;
    white-space: pre-line;
  }

  .memory__date {
    display: block;
    margin-top: 48px;
    color: rgba(229, 222, 211, 0.5);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .art-rain {
    background:
      linear-gradient(118deg, transparent 0 56%, rgba(216, 173, 130, 0.18) 57% 58%, transparent 59%),
      linear-gradient(172deg, #304151 0%, #1f2c37 48%, #111a23 100%);
  }

  .art-rain::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    opacity: 0.54;
    background: repeating-linear-gradient(104deg, transparent 0 24px, rgba(226, 233, 235, 0.14) 25px, transparent 26px 43px);
    transform: translateX(-5%);
  }

  .art-rain .umbrella {
    position: absolute;
    z-index: 2;
    right: 17%;
    bottom: 17%;
    width: 35%;
    height: 21%;
    border-radius: 100% 100% 12% 12%;
    background: #0b1118;
    clip-path: polygon(0 63%, 10% 24%, 35% 5%, 61% 0, 86% 25%, 100% 63%, 74% 54%, 50% 66%, 25% 54%);
  }

  .art-rain .umbrella::after {
    position: absolute;
    top: 53%;
    left: 50%;
    width: 1px;
    height: 130%;
    content: "";
    background: rgba(5, 8, 12, 0.94);
  }

  .art-rain .reflection {
    position: absolute;
    right: 10%;
    bottom: 7%;
    width: 58%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(216, 173, 130, 0.52), transparent);
    filter: blur(1px);
    transform: rotate(-4deg);
  }

  .art-table {
    background:
      radial-gradient(ellipse at 52% 28%, rgba(217, 166, 116, 0.58), rgba(164, 100, 69, 0.19) 23%, transparent 50%),
      linear-gradient(155deg, #2a2424 0%, #1a191b 52%, #0c1117 100%);
  }

  .art-table::after {
    position: absolute;
    right: -12%;
    bottom: -22%;
    left: -12%;
    height: 56%;
    content: "";
    background: linear-gradient(165deg, #261c19, #0e1115 74%);
    box-shadow: 0 -1px rgba(231, 199, 165, 0.16);
    transform: rotate(-3deg);
  }

  .art-table .lamp {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 50%;
    width: 1px;
    height: 21%;
    background: rgba(233, 217, 197, 0.32);
  }

  .art-table .lamp::after {
    position: absolute;
    bottom: -12px;
    left: -12px;
    width: 25px;
    height: 18px;
    border-radius: 50% 50% 8px 8px;
    content: "";
    background: #c5976e;
    box-shadow: 0 8px 35px 12px rgba(205, 145, 92, 0.26);
  }

  .art-table .bowl {
    position: absolute;
    z-index: 3;
    bottom: 20%;
    left: 31%;
    width: 20%;
    height: 7%;
    border: 1px solid rgba(238, 221, 199, 0.36);
    border-radius: 0 0 50% 50%;
    background: rgba(238, 221, 199, 0.1);
  }

  .art-table .bowl--second {
    right: 25%;
    left: auto;
    width: 16%;
    transform: scale(0.88);
  }

  .art-windows {
    background:
      radial-gradient(circle at 78% 50%, rgba(216, 173, 130, 0.12), transparent 18%),
      radial-gradient(circle at 22% 50%, rgba(161, 184, 193, 0.09), transparent 18%),
      linear-gradient(162deg, #2b3843 0%, #19242e 52%, #0b1219 100%);
  }

  .art-windows::before {
    position: absolute;
    z-index: 0;
    top: 50%;
    right: 19%;
    left: 19%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, rgba(161, 184, 193, 0.35), rgba(216, 173, 130, 0.58));
    opacity: 0.72;
  }

  .art-windows .city-block {
    position: absolute;
    z-index: 1;
    top: calc(50% - 7px);
    width: 14px;
    height: 14px;
    border: 1px solid rgba(191, 207, 211, 0.46);
    border-radius: 50%;
    background: rgba(161, 184, 193, 0.42);
    box-shadow: 0 0 34px rgba(161, 184, 193, 0.2);
  }

  .art-windows .city-block--left {
    left: calc(19% - 7px);
    transform: none;
  }

  .art-windows .city-block--right {
    right: calc(19% - 7px);
    border-color: rgba(231, 198, 164, 0.64);
    background: rgba(216, 173, 130, 0.72);
    box-shadow: 0 0 38px rgba(216, 173, 130, 0.26);
    transform: none;
  }

  .art-windows .lit-window {
    display: none;
  }

  .art-windows .lit-window::before {
    display: none;
  }

  .art-signal {
    background:
      radial-gradient(circle at 50% 50%, rgba(204, 171, 140, 0.12), transparent 27%),
      linear-gradient(156deg, #27343e 0%, #141e27 56%, #0b1118 100%);
  }

  .art-signal .screen {
    position: absolute;
    z-index: 2;
    top: calc(50% - 8px);
    width: 16px;
    aspect-ratio: 1;
    border: 1px solid rgba(205, 216, 216, 0.45);
    border-radius: 50%;
    background: rgba(158, 181, 190, 0.32);
    box-shadow: 0 0 30px rgba(158, 181, 190, 0.18);
  }

  .art-signal .screen::before,
  .art-signal .screen::after {
    display: none;
  }

  .art-signal .screen::before { top: 27%; }
  .art-signal .screen::after { top: 38%; width: 52%; }
  .art-signal .screen--left { left: calc(19% - 8px); transform: none; }
  .art-signal .screen--right {
    right: calc(19% - 8px);
    border-color: rgba(232, 199, 165, 0.62);
    background: rgba(216, 173, 130, 0.62);
    box-shadow: 0 0 34px rgba(216, 173, 130, 0.23);
    transform: none;
  }

  .art-signal .signal-line {
    position: absolute;
    z-index: 1;
    top: 49%;
    left: 19%;
    width: 62%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 173, 130, 0.7), transparent);
    box-shadow: 0 0 20px rgba(216, 173, 130, 0.22);
    animation: signal-breathe 3.8s ease-in-out infinite alternate;
    animation-play-state: paused;
  }

  body.has-entered[data-chapter="02"] .art-signal .signal-line {
    animation-play-state: running;
  }

  @keyframes signal-breathe {
    from { opacity: 0.25; transform: scaleX(0.72); }
    to { opacity: 0.9; transform: scaleX(1); }
  }

  .art-train {
    background:
      linear-gradient(100deg, transparent 0 51%, rgba(218, 176, 132, 0.13) 51.5% 52%, transparent 52.5%),
      radial-gradient(ellipse at 72% 36%, rgba(196, 157, 120, 0.26), transparent 24%),
      linear-gradient(165deg, #2d3944 0%, #1a252f 48%, #0c131b 100%);
  }

  .art-train::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.42;
    background: repeating-linear-gradient(174deg, transparent 0 54px, rgba(213, 226, 231, 0.13) 55px, transparent 57px 88px);
    transform: scale(1.18) rotate(-4deg);
  }

  .art-train .rail {
    position: absolute;
    z-index: 2;
    right: -18%;
    bottom: 16%;
    width: 93%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(221, 217, 205, 0.52));
    transform: rotate(-13deg);
    transform-origin: right;
  }

  .art-train .rail--second {
    bottom: 7%;
    opacity: 0.48;
    transform: rotate(-9deg);
  }

  .art-train .window-light {
    position: absolute;
    z-index: 1;
    top: 21%;
    left: -16%;
    width: 68%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(228, 181, 133, 0.65), transparent);
    filter: blur(1px);
    transform: rotate(-5deg);
    animation: passing-window 5.8s ease-in-out infinite;
  }

  @keyframes passing-window {
    0%, 15% { opacity: 0; transform: translateX(-12%) rotate(-5deg); }
    48% { opacity: 0.85; }
    82%, 100% { opacity: 0; transform: translateX(96%) rotate(-5deg); }
  }

  .art-train .ticket {
    position: absolute;
    z-index: 3;
    right: 14%;
    bottom: 18%;
    width: 18%;
    aspect-ratio: 1.9;
    border: 1px solid rgba(232, 218, 197, 0.23);
    background:
      linear-gradient(90deg, transparent 68%, rgba(232, 218, 197, 0.2) 69% 70%, transparent 71%),
      rgba(217, 196, 169, 0.06);
    transform: rotate(-7deg);
  }

  .art-beside {
    background:
      radial-gradient(circle at 76% 50%, rgba(155, 172, 178, 0.12), transparent 18%),
      radial-gradient(circle at 24% 50%, rgba(155, 172, 178, 0.09), transparent 18%),
      linear-gradient(160deg, #293740 0%, #19232c 54%, #0c1219 100%);
  }

  .art-beside::before {
    display: none;
  }

  .art-beside .person {
    position: absolute;
    z-index: 2;
    top: calc(50% - 9px);
    bottom: auto;
    left: 24%;
    width: 2px;
    height: 18px;
    border-radius: 2px;
    background: rgba(173, 190, 195, 0.72);
    box-shadow: 0 0 24px rgba(173, 190, 195, 0.18);
    transform: none;
  }

  .art-beside .person::before {
    display: none;
  }

  .art-beside .person--second {
    left: 76%;
    height: 18px;
    opacity: 0.62;
    transform: none;
  }

  .art-beside .passing-light {
    position: absolute;
    top: 50%;
    right: auto;
    left: 24%;
    width: 52%;
    height: 1px;
    background: linear-gradient(90deg, rgba(173, 190, 195, 0.4) 0 44%, transparent 46% 54%, rgba(173, 190, 195, 0.28) 56% 100%);
    filter: none;
    transform: none;
  }

  .memory__scene.has-photo > span {
    display: none;
  }

  .memory__scene.has-photo::before {
    display: none;
  }

  .memory__scene.has-photo::after {
    display: block;
    background: linear-gradient(180deg, transparent 45%, rgba(5, 8, 12, 0.52));
  }

  .photo-fallback {
    display: grid;
    width: 100%;
    min-height: 220px;
    place-items: center;
    background: rgba(229, 222, 211, 0.035);
    color: rgba(229, 222, 211, 0.58);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .puzzle-story__frame .photo-fallback {
    height: 100%;
    min-height: 0;
  }

  .photo-after__item--1 .photo-fallback {
    aspect-ratio: 770 / 680;
  }

  .photo-after__item--2 .photo-fallback {
    aspect-ratio: 3 / 4;
  }

  .photo-essay {
    margin-top: clamp(190px, 30vh, 360px);
    padding-top: clamp(110px, 17vh, 190px);
  }

  .photo-essay__heading {
    display: grid;
    grid-template-columns: 0.75fr 1.35fr 0.9fr;
    align-items: end;
    gap: 32px;
  }

  .photo-essay__heading h3 {
    font-family: var(--serif);
    font-size: clamp(3rem, 5.6vw, 6.3rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1.06;
    text-wrap: balance;
  }

  .photo-essay__heading > p:last-child {
    max-width: 23em;
    color: rgba(229, 222, 211, 0.58);
    font-family: var(--serif);
    font-size: 0.94rem;
    line-height: 2;
  }

  .puzzle-story {
    position: relative;
    min-height: 225svh;
    margin-top: clamp(140px, 24vh, 270px);
  }

  .puzzle-story__sticky {
    position: sticky;
    top: 0;
    display: grid;
    height: 100svh;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
    padding-block: 8vh;
  }

  .puzzle-story__visual {
    position: relative;
    grid-column: 1 / 8;
    height: min(78svh, 790px);
    overflow: hidden;
    background: #080d13;
    box-shadow: none;
  }

  .puzzle-story__visual::after {
    display: none;
  }

  .puzzle-story__frames,
  .puzzle-story__frame {
    position: absolute;
    inset: 0;
  }

  .puzzle-story__frame {
    opacity: 0;
    transform: none;
    transition: opacity 850ms var(--slow-ease);
  }

  .puzzle-story__frame.is-active {
    z-index: 2;
    opacity: 1;
  }

  .puzzle-story__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: saturate(0.84) contrast(1.02) brightness(0.9);
  }

  .puzzle-story__frame.is-active .puzzle-story__image {
    filter: saturate(0.92) contrast(1.01) brightness(0.95);
  }

  .puzzle-story__visual figcaption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .puzzle-story__copy {
    grid-column: 9 / 13;
    align-self: center;
  }

  .puzzle-story__copy h3 {
    max-width: 7em;
    margin-top: 0;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 4.6vw, 5.1rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1.08;
  }

  .puzzle-story__copy > p:not(.eyebrow, .puzzle-story__hint, .puzzle-story__final) {
    max-width: 24em;
    margin-top: 38px;
    color: rgba(229, 222, 211, 0.67);
    font-family: var(--serif);
    line-height: 2;
  }

  .puzzle-story__hint {
    max-width: 26em;
    margin-top: 35px;
    color: rgba(229, 222, 211, 0.44);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    line-height: 1.8;
  }

  .puzzle-story__controls {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
  }

  .puzzle-story__controls:focus-within {
    opacity: 1;
    pointer-events: auto;
  }

  .puzzle-story__control {
    position: relative;
    display: inline-flex;
    min-width: 64px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: transparent;
    color: rgba(229, 222, 211, 0.5);
    cursor: pointer;
    font-size: 0.69rem;
    letter-spacing: 0.12em;
  }

  .puzzle-story__control::after {
    position: absolute;
    right: 10px;
    bottom: 5px;
    left: 10px;
    height: 1px;
    content: "";
    background: currentColor;
    transform: scaleX(0.28);
    transition: transform 500ms var(--ease);
  }

  .puzzle-story__control:hover,
  .puzzle-story__control:focus-visible,
  .puzzle-story__control[aria-pressed="true"] {
    color: rgba(238, 231, 220, 0.94);
  }

  .puzzle-story__control[aria-pressed="true"]::after {
    transform: scaleX(1);
  }

  .puzzle-story__final {
    max-width: 22em;
    margin-top: 44px;
    color: rgba(229, 222, 211, 0.74);
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.9;
    opacity: 0;
    transform: translateY(8px);
    transition: 900ms var(--ease);
  }

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

  #puzzleCount {
    display: none;
  }

  .puzzle-story.is-static {
    min-height: auto;
  }

  .puzzle-story.is-static .puzzle-story__sticky {
    position: relative;
    height: auto;
    padding-block: 0;
  }

  .puzzle-story.is-static .puzzle-story__visual {
    grid-column: 1 / 13;
    height: auto;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .puzzle-story.is-static .puzzle-story__visual::after,
  .puzzle-story.is-static .puzzle-story__visual figcaption {
    display: none;
  }

  .puzzle-story.is-static .puzzle-story__frames {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .puzzle-story.is-static .puzzle-story__frame {
    position: relative;
    inset: auto;
    aspect-ratio: 0.72;
    opacity: 1;
  }

  .puzzle-story.is-static .puzzle-story__copy {
    grid-column: 3 / 11;
    margin-top: 72px;
  }

  .puzzle-story.is-static .puzzle-story__controls {
    display: none;
  }

  .photo-after {
    display: flex;
    margin-top: clamp(150px, 25vh, 300px);
    flex-direction: column;
    gap: clamp(180px, 28vh, 330px);
  }

  .photo-after__item {
    position: relative;
    display: grid;
    min-height: 92svh;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
  }

  .photo-after__figure {
    position: relative;
    grid-column: 1 / 8;
    margin: 0;
  }

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

  .photo-after__image {
    display: block;
    width: 100%;
    max-height: 70svh;
    object-fit: cover;
    filter: saturate(0.68) contrast(1.04) brightness(0.76);
    transition: filter 1.6s var(--slow-ease);
  }

  .photo-after__item.is-visible .photo-after__image {
    filter: saturate(0.86) contrast(1.02) brightness(0.91);
  }

  .photo-after__figure figcaption {
    display: block;
    margin-top: 14px;
    color: rgba(229, 222, 211, 0.54);
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .photo-after__copy {
    grid-column: 9 / 13;
  }

  .photo-after__copy h3 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.15;
    text-wrap: balance;
  }

  .photo-after__copy p {
    max-width: 23em;
    margin-top: 34px;
    color: rgba(229, 222, 211, 0.62);
    font-family: var(--serif);
    line-height: 2;
  }

  .photo-after__item--2 .photo-after__figure {
    grid-column: 6 / 12;
    grid-row: 1;
  }

  .photo-after__item--1 .photo-after__image,
  .photo-after__item--1.is-visible .photo-after__image {
    filter: saturate(0.9) contrast(1.01) brightness(0.96);
  }

  .photo-after__item--2 {
    margin-top: 12svh;
  }

  .photo-after__item--2 .photo-after__copy {
    grid-column: 1 / 5;
    grid-row: 1;
  }

  .photo-after__item--2 .photo-after__image {
    aspect-ratio: 0.78;
    object-position: 50% 44%;
  }

  .chat-fragments {
    position: relative;
    margin-top: clamp(230px, 35vh, 420px);
    padding: clamp(92px, 14vh, 150px) 0 clamp(80px, 12vh, 132px);
    scroll-margin-top: clamp(72px, 12svh, 128px);
    border-top: 1px solid rgba(229, 222, 211, 0.1);
    border-bottom: 1px solid rgba(229, 222, 211, 0.08);
  }

  .chat-fragments::before {
    position: absolute;
    top: 12%;
    right: 6%;
    width: min(38vw, 440px);
    aspect-ratio: 1;
    border-radius: 50%;
    content: "";
    pointer-events: none;
    background: radial-gradient(circle, rgba(201, 149, 111, 0.07), transparent 68%);
  }

  .chat-fragments__heading {
    position: relative;
    display: grid;
    grid-template-columns: 0.72fr 1.18fr 0.9fr;
    align-items: end;
    gap: 32px;
  }

  .chat-fragments__heading .eyebrow {
    align-self: start;
    margin-top: 0.8em;
  }

  .chat-fragments__heading h3 {
    max-width: 8em;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5vw, 5.6rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 1.08;
    white-space: pre-line;
  }

  .chat-fragments__heading > div {
    max-width: 24em;
    color: rgba(229, 222, 211, 0.6);
    font-family: var(--serif);
    font-size: 0.95rem;
    line-height: 2;
  }

  .chat-fragments__hint {
    margin-top: 20px;
    color: rgba(229, 222, 211, 0.38);
    font-family: var(--sans);
    font-size: 0.67rem;
    letter-spacing: 0.1em;
  }

  .chat-fragments__list {
    width: min(920px, 82%);
    margin: clamp(100px, 15vh, 160px) auto 0;
  }

  .chat-fragment {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(229, 222, 211, 0.12);
    transition: background 700ms var(--ease);
  }

  .chat-fragment:last-child {
    border-bottom: 1px solid rgba(229, 222, 211, 0.12);
  }

  .chat-fragment.is-open {
    background: linear-gradient(100deg, rgba(216, 173, 130, 0.06), transparent 72%);
  }

  .chat-slip {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 112px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    padding: 18px 8px;
    border: 0;
    background: transparent;
    color: rgba(229, 222, 211, 0.72);
    cursor: pointer;
    text-align: left;
  }

  .chat-slip::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 84px;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, rgba(216, 173, 130, 0.6), transparent);
    opacity: 0;
    transform: scaleX(0.15);
    transform-origin: left;
    transition:
      opacity 500ms ease,
      transform 850ms var(--slow-ease);
  }

  .chat-slip:hover::after,
  .chat-slip:focus-visible::after,
  .chat-fragment.is-open .chat-slip::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .chat-slip:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 2px rgba(216, 173, 130, 0.72);
  }

  .chat-slip__number {
    color: rgba(229, 222, 211, 0.3);
    font-size: 0.64rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.14em;
  }

  .chat-slip__front {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
  }

  .chat-slip__date {
    color: rgba(229, 222, 211, 0.4);
    font-size: 0.64rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.13em;
  }

  .chat-slip__label {
    overflow: hidden;
    font-family: var(--serif);
    font-size: clamp(1.12rem, 1.55vw, 1.38rem);
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chat-slip__action {
    position: relative;
    padding-right: 28px;
    color: rgba(229, 222, 211, 0.36);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .chat-slip__action::before,
  .chat-slip__action::after {
    position: absolute;
    top: 50%;
    right: 3px;
    width: 12px;
    height: 1px;
    content: "";
    background: currentColor;
    transition: transform 500ms var(--ease);
  }

  .chat-slip__action::after {
    transform: rotate(90deg);
  }

  .chat-fragment.is-open .chat-slip__action::after {
    transform: rotate(0deg);
  }

  .chat-fragment__panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
      grid-template-rows 800ms var(--slow-ease),
      opacity 500ms ease;
  }

  .chat-fragment.is-open .chat-fragment__panel {
    grid-template-rows: 1fr;
    opacity: 1;
  }

  .chat-fragment__inner {
    position: relative;
    min-height: 0;
    overflow: hidden;
    padding-inline: 84px 12%;
    transition: padding 800ms var(--slow-ease);
  }

  .chat-fragment.is-open .chat-fragment__inner {
    padding-top: 22px;
    padding-bottom: 58px;
  }

  .chat-fragment__inner::before {
    position: absolute;
    top: 22px;
    bottom: 58px;
    left: 58px;
    width: 1px;
    content: "";
    background: linear-gradient(180deg, rgba(161, 184, 193, 0.26), rgba(216, 173, 130, 0.52));
  }

  .chat-fragment__line {
    display: grid;
    max-width: 34em;
    grid-template-columns: 6.2em minmax(0, 1fr);
    align-items: baseline;
    gap: 20px;
    margin: 0;
    color: rgba(238, 231, 220, 0.88);
    font-family: var(--serif);
    font-size: clamp(1.05rem, 1.55vw, 1.32rem);
    line-height: 1.85;
    opacity: 0;
    transform: translateX(-14px);
    transition:
      opacity 620ms ease,
      transform 820ms var(--slow-ease);
  }

  .chat-fragment__line + .chat-fragment__line {
    margin-top: 22px;
    margin-left: clamp(10px, 4vw, 44px);
    transform: translateX(14px);
  }

  .chat-fragment.is-open .chat-fragment__line {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 230ms;
  }

  .chat-fragment.is-open .chat-fragment__line + .chat-fragment__line {
    transition-delay: 410ms;
  }

  .chat-fragment__speaker {
    color: rgba(229, 222, 211, 0.38);
    font-family: var(--sans);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .chat-fragment__line q {
    quotes: none;
  }

  .chat-fragment__line q::before,
  .chat-fragment__line q::after {
    content: none;
  }

  .chat-fragments__coda {
    max-width: 26em;
    margin: clamp(92px, 14vh, 150px) 8% 0 auto;
    color: rgba(229, 222, 211, 0.66);
    font-family: var(--serif);
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    line-height: 2;
  }

  .truth-beat {
    display: flex;
    min-height: 70svh;
    max-width: 920px;
    justify-content: center;
    margin: clamp(170px, 25vh, 300px) auto 0;
    padding-inline: 8%;
    flex-direction: column;
  }

  .truth-beat p {
    max-width: 10.5em;
    font-family: var(--serif);
    font-size: clamp(2.7rem, 4.8vw, 5.2rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 1.15;
    white-space: pre-line;
  }

  .truth-beat span {
    display: block;
    max-width: 28em;
    margin-top: clamp(42px, 6vh, 68px);
    margin-left: 12%;
    color: rgba(229, 222, 211, 0.58);
    font-family: var(--serif);
    font-size: clamp(0.95rem, 1.25vw, 1.12rem);
    line-height: 2.1;
  }

  .ordinary-days {
    min-height: 180svh;
    background: linear-gradient(180deg, #151b22 0%, #1d1d21 25%, #292120 58%, #11171d 100%);
  }

  .ordinary-days__wash {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 18% 38%, rgba(190, 141, 112, 0.16), transparent 30%),
      radial-gradient(circle at 84% 72%, rgba(150, 105, 85, 0.09), transparent 27%);
    opacity: 0.78;
  }

  .ordinary-days__layout {
    position: relative;
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: clamp(50px, 9vw, 150px);
    padding-block: clamp(150px, 20vh, 240px);
  }

  .ordinary-days__heading {
    position: sticky;
    top: 28vh;
    height: max-content;
  }

  .ordinary-days__heading h2 {
    max-width: 7em;
    margin-top: 27px;
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4.6vw, 5.1rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.12;
  }

  .ordinary-days__text {
    padding-top: 18vh;
  }

  .ordinary-intro,
  .ordinary-bridge,
  .ordinary-coda {
    max-width: 21em;
    font-family: var(--serif);
    white-space: pre-line;
  }

  .ordinary-intro {
    color: rgba(229, 222, 211, 0.7);
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    line-height: 2;
  }

  .ordinary-bridge {
    margin-top: 16vh;
    color: rgba(229, 222, 211, 0.6);
    font-size: 0.94rem;
    letter-spacing: 0.12em;
  }

  .ordinary-lines {
    display: flex;
    margin-top: 10vh;
    padding: 0;
    flex-direction: column;
    gap: clamp(64px, 9vh, 96px);
    list-style: none;
  }

  .ordinary-lines li {
    position: relative;
    max-width: 20em;
    color: rgba(229, 222, 211, 0.48);
    font-family: var(--serif);
    font-size: clamp(1.85rem, 2.65vw, 3.2rem);
    letter-spacing: -0.025em;
    line-height: 1.55;
    opacity: 0.78;
    transform: translateY(10px);
    transition:
      color 650ms var(--ease),
      opacity 650ms var(--ease),
      transform 650ms var(--ease);
  }

  .ordinary-lines li::before {
    display: none;
  }

  .ordinary-lines li.is-visible {
    color: rgba(238, 231, 220, 0.92);
    opacity: 1;
    transform: translateY(0);
  }

  .ordinary-lines li.is-past {
    color: rgba(229, 222, 211, 0.45);
    opacity: 1;
  }

  .ordinary-coda {
    margin-top: 22vh;
    color: rgba(229, 222, 211, 0.54);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 2.1;
  }

  .letter {
    min-height: 165svh;
    padding-block: clamp(130px, 20vh, 230px);
    background:
      radial-gradient(circle at 72% 46%, rgba(119, 91, 78, 0.08), transparent 28%),
      linear-gradient(180deg, #11171d 0%, #0d1218 22%, #0b1017 100%);
  }

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

  .section-heading--letter h2 {
    font-size: clamp(3rem, 5.8vw, 6.3rem);
  }

  .letter-body {
    --letter-x: 50%;
    --letter-y: 40%;
    position: relative;
    display: flex;
    width: min(860px, 91%);
    margin: clamp(120px, 19vh, 220px) auto 0;
    flex-direction: column;
    gap: 0;
    isolation: isolate;
    scroll-margin-top: 96px;
  }

  .letter-body::before {
    position: absolute;
    z-index: -1;
    inset: -120px -9vw;
    content: "";
    opacity: 0.26;
    pointer-events: none;
    background: radial-gradient(circle 220px at var(--letter-x) var(--letter-y), rgba(216, 173, 130, 0.09), transparent 75%);
  }

  .letter-body__light {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 260px;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(232, 202, 172, 0.055), transparent 68%);
    transform: translate3d(calc(var(--light-px, -500px) - 50%), calc(var(--light-py, -500px) - 50%), 0);
    transition: opacity 400ms ease;
  }

  .letter-body:hover .letter-body__light,
  .letter-body:focus-within .letter-body__light,
  .letter-body.is-touched .letter-body__light {
    opacity: 1;
  }

  .letter-body.is-touched .letter-body__light {
    background: radial-gradient(circle, rgba(232, 202, 172, 0.095), transparent 68%);
  }

  .letter-body__salutation {
    color: rgba(238, 231, 220, 0.86);
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
  }

  .letter-touch-hint {
    display: none;
  }

  .letter-body__paragraphs {
    display: flex;
    flex-direction: column;
    gap: clamp(58px, 7vh, 82px);
    margin-top: 52px;
  }

  .letter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 205px);
    align-items: center;
    gap: clamp(40px, 6vw, 72px);
  }

  .letter-row__text {
    color: rgba(238, 231, 220, 0.81);
    font-family: var(--serif);
    font-size: clamp(1.2rem, 1.7vw, 1.52rem);
    letter-spacing: 0.025em;
    line-height: 2.15;
    transition:
      color 500ms ease,
      text-shadow 500ms ease;
  }

  .letter-note {
    position: relative;
    padding-left: 26px;
    color: rgba(216, 207, 193, 0.58);
    font-family: var(--serif);
    font-size: 0.76rem;
    line-height: 1.9;
    opacity: 0.62;
    transition:
      color 300ms ease,
      opacity 300ms ease;
  }

  .letter-note::before {
    position: absolute;
    top: 0.85em;
    left: 0;
    width: 13px;
    height: 1px;
    content: "";
    background: currentColor;
  }

  .letter-row.is-touched-row .letter-row__text {
    color: rgba(255, 247, 235, 0.94);
    text-shadow: 0 0 24px rgba(216, 173, 130, 0.08);
  }

  .letter-row.is-touched-row .letter-note {
    color: rgba(232, 214, 194, 0.78);
    opacity: 0.9;
  }

  .letter-body__footer {
    display: flex;
    align-items: end;
    align-self: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: clamp(130px, 20svh, 210px);
    color: rgba(229, 222, 211, 0.48);
    font-family: var(--serif);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
  }

  .letter-body__footer #letterDate {
    font-family: var(--sans);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .daybreak {
    min-height: 165svh;
    color: var(--ink);
    background: linear-gradient(180deg, #eee7dc 0%, #eee7dc 58%, #eae3d9 100%);
  }

  .daybreak::before {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: 42vh;
    content: "";
    background: linear-gradient(180deg, #0b1017 0%, #171c23 12%, #4b4c50 44%, #aaa6a3 75%, rgba(238, 231, 220, 0) 100%);
  }

  .daybreak::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "";
    pointer-events: none;
    background: radial-gradient(circle at 13% 72%, rgba(206, 140, 94, 0.58), rgba(206, 140, 94, 0.12) 14%, transparent 34%);
    opacity: 0;
    transition: opacity 1.6s var(--slow-ease);
  }

  body.is-hope-lit .daybreak::after {
    opacity: 0.18;
  }

  .daybreak__sun {
    position: absolute;
    top: 16%;
    right: -8vw;
    width: min(64vw, 900px);
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0.42;
    background: radial-gradient(circle, rgba(247, 221, 179, 0.85), rgba(220, 168, 124, 0.15) 34%, transparent 68%);
    transform: scale(calc(0.8 + var(--daybreak-progress, 0) * 0.18));
    transition:
      opacity 1.4s var(--slow-ease),
      transform 1.4s var(--slow-ease);
  }

  .daybreak__shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    padding-top: clamp(250px, 36vh, 370px);
    padding-bottom: max(60px, calc(40px + env(safe-area-inset-bottom)));
  }

  .daybreak .eyebrow {
    color: rgba(38, 36, 33, 0.62);
  }

  .daybreak__copy {
    grid-column: 2 / 9;
  }

  .daybreak__copy h2 {
    margin-top: 34px;
    font-family: var(--serif);
    font-size: clamp(4rem, 7.6vw, 8.8rem);
    font-weight: 400;
    letter-spacing: -0.075em;
    line-height: 0.96;
    white-space: pre-line;
  }

  .daybreak__lines {
    display: flex;
    margin-top: clamp(70px, 12vh, 130px);
    flex-direction: column;
    gap: 15px;
    color: rgba(38, 36, 33, 0.67);
    font-family: var(--serif);
    font-size: clamp(1.1rem, 1.65vw, 1.45rem);
    line-height: 1.8;
  }

  .daybreak__open-line {
    margin-top: clamp(60px, 9vh, 100px);
    color: rgba(38, 36, 33, 0.9);
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3.1vw, 3.3rem);
    letter-spacing: -0.025em;
  }

  .daybreak__open-line:empty {
    display: none;
  }

  .closing-gesture {
    grid-column: 5 / 11;
    margin-top: clamp(180px, 28vh, 330px);
  }

  .closing-gesture__prompt {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.4vw, 2.5rem);
    transition: opacity 900ms var(--ease);
  }

  .closing-gesture.is-closed .closing-gesture__prompt {
    opacity: 0.62;
  }

  .closing-button {
    display: flex;
    width: 100%;
    min-height: 136px;
    align-items: stretch;
    margin-top: 58px;
    padding: 0;
    flex-direction: column;
    border-top: 1px solid rgba(38, 36, 33, 0.24);
    border-bottom: 1px solid rgba(38, 36, 33, 0.24);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .closing-button__cities {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding-top: 25px;
    color: rgba(38, 36, 33, 0.48);
    font-size: 0.69rem;
    letter-spacing: 0.13em;
  }

  .closing-button__cities i {
    position: relative;
    display: block;
    height: 1px;
    background: transparent;
  }

  .closing-button__cities i::before,
  .closing-button__cities i::after {
    position: absolute;
    top: 0;
    height: 1px;
    content: "";
    transition:
      width 1.35s var(--slow-ease),
      background 900ms var(--ease),
      box-shadow 1.2s var(--ease);
  }

  .closing-button__cities i::before {
    left: 0;
    width: 40%;
    background: linear-gradient(90deg, rgba(38, 36, 33, 0.18), rgba(38, 36, 33, 0.5));
  }

  .closing-button__cities i::after {
    right: 0;
    width: 34%;
    background: linear-gradient(90deg, rgba(38, 36, 33, 0.42), rgba(38, 36, 33, 0.16));
  }

  .closing-button__cities span {
    transition: transform 1.2s var(--slow-ease);
  }

  .closing-button strong {
    display: flex;
    min-height: 82px;
    align-items: center;
    align-self: center;
    font-family: var(--serif);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 0.08em;
  }

  .closing-button:hover .closing-button__cities i::before,
  .closing-button:focus-visible .closing-button__cities i::before {
    background: linear-gradient(90deg, rgba(38, 36, 33, 0.18), rgba(166, 115, 86, 0.72));
  }

  .closing-gesture.is-closed .closing-button {
    cursor: default;
  }

  .closing-button:disabled {
    cursor: default;
  }

  .closing-gesture.is-closed .closing-button__cities i {
    opacity: 1;
    transform: none;
  }

  .closing-gesture.is-closed .closing-button__cities i::before {
    width: 49.4%;
    background: linear-gradient(90deg, rgba(166, 115, 86, 0.24), rgba(180, 113, 74, 0.82));
    box-shadow: 5px 0 12px rgba(180, 113, 74, 0.22);
  }

  .closing-gesture.is-closed .closing-button__cities i::after {
    width: 49.4%;
    background: linear-gradient(90deg, rgba(180, 113, 74, 0.82), rgba(166, 115, 86, 0.2));
    box-shadow: -5px 0 12px rgba(180, 113, 74, 0.2);
  }

  .closing-gesture.is-closed .closing-button__cities span:first-child {
    transform: translateX(12px);
  }

  .closing-gesture.is-closed .closing-button__cities span:last-child {
    transform: translateX(-12px);
  }

  .closing-gesture.is-closed.has-released .closing-button__cities i {
    background: radial-gradient(circle at 50% 50%, rgba(176, 111, 72, 0.68) 0 1px, transparent 1.6px);
  }

  .closing-gesture.is-closed.has-released .closing-button__cities i::before,
  .closing-gesture.is-closed.has-released .closing-button__cities i::after {
    width: 48.2%;
    box-shadow: none;
  }

  .closing-gesture.is-closed.has-released .closing-button__cities span:first-child {
    transform: translateX(4px);
  }

  .closing-gesture.is-closed.has-released .closing-button__cities span:last-child {
    transform: translateX(-4px);
  }

  .closing-gesture.is-closed .closing-button strong {
    color: rgba(87, 55, 38, 0.78);
    opacity: 1;
  }

  .closing-button__privacy {
    max-width: 42em;
    margin-top: 17px;
    color: rgba(38, 36, 33, 0.52);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    line-height: 1.8;
  }

  .closing-after {
    margin-top: 72px;
    padding-left: 30px;
    border-left: 1px solid rgba(38, 36, 33, 0.28);
    visibility: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition:
      visibility 720ms step-end,
      opacity 720ms var(--ease),
      transform 720ms var(--ease);
  }

  .closing-gesture.is-closed .closing-after {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 720ms var(--ease),
      transform 720ms var(--ease);
    transition-delay: 420ms;
  }

  .closing-after p {
    font-family: var(--serif);
    font-size: clamp(1.22rem, 1.9vw, 1.7rem);
    line-height: 1.9;
  }

  .closing-after span {
    display: block;
    margin-top: 17px;
    color: rgba(38, 36, 33, 0.68);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .closing-after span:empty {
    display: none;
  }

  .archive-door {
    position: relative;
    display: grid;
    grid-column: 3 / 11;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.72fr);
    gap: clamp(42px, 6vw, 88px);
    align-items: end;
    margin-top: clamp(105px, 15vh, 165px);
    padding: clamp(30px, 4vw, 48px) 0 clamp(24px, 3vw, 36px);
    border-top: 1px solid rgba(38, 36, 33, 0.24);
    border-bottom: 1px solid rgba(38, 36, 33, 0.15);
  }

  .archive-door::before {
    position: absolute;
    top: -1px;
    left: 0;
    width: 19%;
    height: 1px;
    content: "";
    background: rgba(126, 82, 57, 0.74);
  }

  .archive-door__copy h2 {
    max-width: 12em;
    margin-top: 20px;
    font-family: var(--serif);
    font-size: clamp(1.75rem, 2.7vw, 3.2rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.14;
  }

  .archive-door__copy > p:last-child {
    max-width: 35em;
    margin-top: 26px;
    color: rgba(38, 36, 33, 0.64);
    font-family: var(--serif);
    font-size: clamp(0.92rem, 1.2vw, 1.05rem);
    line-height: 2;
  }

  .archive-door__action {
    padding-bottom: 3px;
  }

  .archive-door__button {
    display: grid;
    width: 100%;
    min-height: 72px;
    grid-template-columns: 1fr 52px;
    align-items: center;
    padding: 0 0 0 22px;
    border-top: 1px solid rgba(38, 36, 33, 0.36);
    border-bottom: 1px solid rgba(38, 36, 33, 0.36);
    background: transparent;
    color: rgba(38, 36, 33, 0.9);
    cursor: pointer;
    text-align: left;
  }

  .archive-door__button span {
    font-family: var(--serif);
    font-size: 1rem;
    letter-spacing: 0.05em;
  }

  .archive-door__button i {
    position: relative;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(38, 36, 33, 0.32);
    border-radius: 50%;
    transition:
      background 420ms var(--ease),
      transform 420ms var(--ease);
  }

  .archive-door__button i::before,
  .archive-door__button i::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 1px;
    content: "";
    background: currentColor;
    transform-origin: right center;
  }

  .archive-door__button i::before {
    transform: translate(-45%, -50%) rotate(35deg);
  }

  .archive-door__button i::after {
    transform: translate(-45%, -50%) rotate(-35deg);
  }

  .archive-door__button:hover i,
  .archive-door__button:focus-visible i {
    background: rgba(126, 82, 57, 0.12);
    transform: translateX(4px);
  }

  .archive-door__action p {
    margin: 16px 0 0 22px;
    color: rgba(38, 36, 33, 0.5);
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    line-height: 1.8;
  }

  body.archive-is-open {
    overflow: hidden;
  }

  .archive-dialog {
    width: min(calc(100vw - 72px), 900px);
    height: min(calc(100vh - 72px), 740px);
    height: min(calc(100dvh - 72px), 740px);
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    border: 1px solid rgba(239, 231, 219, 0.24);
    border-radius: 20px;
    background: #e9e1d6;
    color: var(--ink);
    box-shadow: 0 32px 110px rgba(0, 0, 0, 0.42);
  }

  .archive-dialog:not([open]) {
    display: none;
  }

  .archive-dialog::backdrop {
    background: rgba(7, 10, 14, 0.76);
    backdrop-filter: blur(16px) saturate(0.7);
  }

  .archive-dialog__panel {
    display: grid;
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background:
      radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.7), transparent 30rem),
      #e9e1d6;
  }

  .archive-dialog__header {
    display: flex;
    min-width: 0;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    padding: 24px 26px 22px 30px;
    border-bottom: 1px solid rgba(38, 36, 33, 0.15);
  }

  .archive-dialog__header .eyebrow {
    margin: 0 0 5px;
    color: rgba(38, 36, 33, 0.48);
    font-family: var(--sans);
    font-size: 0.58rem;
  }

  .archive-dialog__header h2 {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.25;
  }

  .archive-dialog__header > div > p:last-child {
    margin-top: 5px;
    color: rgba(38, 36, 33, 0.54);
    font-size: 0.66rem;
    line-height: 1.6;
  }

  .archive-dialog__close {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border: 1px solid rgba(38, 36, 33, 0.22);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition:
      background 300ms var(--ease),
      transform 300ms var(--ease);
  }

  .archive-dialog__close span::before,
  .archive-dialog__close span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1px;
    content: "";
    background: currentColor;
  }

  .archive-dialog__close span::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .archive-dialog__close span::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .archive-dialog__close:hover,
  .archive-dialog__close:focus-visible {
    background: rgba(38, 36, 33, 0.07);
    transform: rotate(4deg);
  }

  .archive-dialog__viewport {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #f1ece4;
  }

  .archive-dialog__loading {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    color: rgba(38, 36, 33, 0.54);
    font-family: var(--serif);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    transform: translate(-50%, -50%);
    transition: opacity 300ms ease;
  }

  .archive-dialog__frame {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 420ms var(--ease);
  }

  .archive-dialog.is-ready .archive-dialog__frame {
    opacity: 1;
  }

  .archive-dialog.is-ready .archive-dialog__loading {
    opacity: 0;
  }

  .archive-dialog__footer {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 30px;
    border-top: 1px solid rgba(38, 36, 33, 0.13);
    color: rgba(38, 36, 33, 0.45);
    font-size: 0.57rem;
    letter-spacing: 0.08em;
  }

  .colophon {
    display: grid;
    grid-column: 1 / 13;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 24px;
    margin-top: clamp(150px, 22vh, 260px);
    padding-top: 26px;
    border-top: 1px solid rgba(38, 36, 33, 0.22);
    color: rgba(38, 36, 33, 0.72);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .colophon span:first-child {
    color: rgba(38, 36, 33, 0.72);
    font-family: var(--serif);
    font-size: 0.77rem;
    letter-spacing: 0.16em;
  }

  .colophon a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    color: rgba(38, 36, 33, 0.72);
  }

  .colophon__end {
    justify-self: end;
    color: rgba(38, 36, 33, 0.68);
    font-family: var(--sans) !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.14em !important;
  }

}

@layer responsive {
  @media (max-width: 900px) {
    :root {
      --shell: min(100% - 40px, 680px);
    }

    .site-chrome {
      grid-template-columns: 1fr auto;
      padding-right: 20px;
      padding-left: 20px;
    }

    .archive-mark__label {
      display: none;
    }

    .journey {
      display: block;
      width: min(34vw, 132px);
      justify-self: end;
    }

    .journey__track {
      background: rgba(229, 222, 211, 0.16);
      opacity: 1;
    }

    .journey__fill {
      background: linear-gradient(90deg, rgba(161, 184, 193, 0.7), rgba(216, 173, 130, 0.92));
      box-shadow: 0 0 8px rgba(216, 173, 130, 0.22);
    }

    body.is-daybreak .journey__track {
      background: rgba(38, 36, 33, 0.15);
    }

    body.is-daybreak .journey__fill {
      background: linear-gradient(90deg, rgba(103, 125, 133, 0.58), rgba(150, 93, 62, 0.76));
    }

    .chapter-nav {
      display: none;
    }

    .chapter-nav a {
      min-width: 44px;
      min-height: 44px;
      justify-content: center;
    }

    .chapter-nav a::after,
    .chapter-nav a em {
      display: none;
    }

    .chapter-nav a span {
      opacity: 0.52;
    }

    .chapter-nav a.is-active span {
      opacity: 1;
    }

    .section-heading,
    .section-heading--letter {
      grid-template-columns: 1fr;
      align-items: start;
      gap: 24px;
    }

    .section-heading .eyebrow {
      margin-bottom: 16px;
    }

    .section-heading > p:last-child {
      margin-top: 8px;
    }

    .first-frame {
      min-height: auto;
    }

    .first-frame__layout {
      display: flex;
      padding-top: 150px;
      padding-bottom: 130px;
      flex-direction: column;
    }

    .first-frame__copy {
      order: 1;
      padding-top: 0;
    }

    .display-title {
      max-width: 7em;
      margin-top: 25px;
      font-size: clamp(3.45rem, 14vw, 6.5rem);
    }

    .first-frame__lead {
      margin-top: 22px;
    }

    .film-frame {
      width: 100%;
      align-self: flex-end;
      order: 2;
      margin-top: 68px;
    }

    .film-frame .scene {
      aspect-ratio: 0.9;
    }

    .edge-note {
      position: static;
      display: block;
      margin-top: 10px;
      padding-left: 0;
      line-height: 1.6;
      text-align: right;
      transform: none;
    }

    .first-frame__touch {
      top: 34%;
      left: 35%;
    }

    .first-frame__touch-prompt {
      font-size: 0.58rem;
    }

    .first-frame__touch-line {
      top: 58%;
      right: 7%;
      max-width: 17em;
      font-size: 0.82rem;
    }

    .first-frame__body {
      width: 82%;
      order: 3;
      margin-top: 82px;
      margin-left: 7%;
    }

    .contact-sheet {
      padding-block: 125px;
    }

    .memory-list {
      margin-top: 82px;
    }

    .contact-sheet__thread {
      left: 8px;
    }

    .memory::after,
    .puzzle-story::after,
    .photo-after__item::after {
      left: 8px;
    }

    .memory::before {
      left: 8px;
    }

    .memory {
      display: flex;
      min-height: auto;
      padding: 60px 0 100px 25px;
      flex-direction: column;
      gap: 0;
    }

    .memory__visual,
    .memory:nth-child(even) .memory__visual {
      width: 100%;
      order: 1;
    }

    .memory:nth-child(2) .memory__visual {
      width: 78%;
      align-self: flex-end;
    }

    .memory__copy,
    .memory:nth-child(even) .memory__copy {
      width: 90%;
      align-self: flex-start;
      order: 2;
      padding: 38px 0 0;
    }

    .memory__scene {
      aspect-ratio: 1.04;
    }

    .memory__date {
      margin-top: 28px;
    }

    .photo-essay {
      margin-top: 120px;
      padding-top: 105px;
    }

    .photo-essay__heading {
      grid-template-columns: 1fr;
      align-items: start;
      gap: 24px;
    }

    .photo-essay__heading h3 {
      max-width: 8em;
      font-size: clamp(2.7rem, 11vw, 4.8rem);
    }

    .photo-essay__heading > p:last-child {
      max-width: 25em;
      margin-top: 8px;
    }

    .puzzle-story {
      min-height: 230svh;
      margin-top: 110px;
    }

    .puzzle-story__sticky {
      position: sticky;
      top: 0;
      display: flex;
      height: 100svh;
      gap: 22px;
      padding: 78px 0 18px;
      flex-direction: column;
    }

    .puzzle-story__visual {
      position: relative;
      inset: auto;
      width: 100%;
      height: clamp(300px, 60svh, 560px);
      min-height: 0;
      flex: 0 1 auto;
    }

    .puzzle-story__visual::before {
      display: none;
    }

    .puzzle-story__visual figcaption {
      top: auto;
      bottom: 20px;
    }

    .puzzle-story__copy {
      position: relative;
      z-index: 6;
      right: auto;
      bottom: auto;
      left: auto;
      width: 92%;
      align-self: flex-end;
      text-shadow: none;
    }

    .puzzle-story__copy h3 {
      max-width: 8em;
      margin-top: 0;
      font-size: clamp(2rem, 8.5vw, 3.2rem);
    }

    .puzzle-story__copy > p:not(.eyebrow, .puzzle-story__hint, .puzzle-story__final) {
      max-width: 27em;
      margin-top: 10px;
      font-size: 0.88rem;
      line-height: 1.75;
    }

    .puzzle-story__hint {
      display: none;
    }

    .puzzle-story__controls {
      right: 0;
      bottom: 0;
    }

    .puzzle-story__final {
      margin-top: 12px;
      font-size: 0.9rem;
    }

    .photo-after {
      margin-top: 140px;
      gap: 190px;
    }

    .photo-after__item,
    .photo-after__item--2 {
      display: flex;
      min-height: auto;
      flex-direction: column;
      gap: 44px;
    }

    .photo-after__image {
      max-height: none;
    }

    .photo-after__figure,
    .photo-after__item--2 .photo-after__figure {
      width: 100%;
      order: 1;
    }

    .photo-after__copy,
    .photo-after__item--2 .photo-after__copy {
      width: 88%;
      align-self: flex-end;
      order: 2;
    }

    .photo-after__copy h3 {
      font-size: clamp(2.25rem, 9.5vw, 3.8rem);
    }

    .photo-after__item--2 .photo-after__image {
      max-height: none;
      aspect-ratio: auto;
    }

    .photo-after__item--2 {
      margin-top: 28svh;
    }

    .chat-fragments {
      margin-top: 210px;
      padding-block: 100px 94px;
    }

    .chat-fragments__heading {
      grid-template-columns: 1fr;
      gap: 24px;
    }

    .chat-fragments__heading .eyebrow {
      margin-top: 0;
    }

    .chat-fragments__heading h3 {
      max-width: 7em;
      font-size: clamp(2.65rem, 11vw, 4.8rem);
    }

    .chat-fragments__heading > div {
      width: 86%;
      margin-top: 12px;
      margin-left: auto;
    }

    .chat-fragments__list {
      width: 94%;
      margin-top: 100px;
      margin-left: auto;
    }

    .chat-slip {
      grid-template-columns: 40px minmax(0, 1fr) auto;
      gap: 18px;
    }

    .chat-slip::after {
      left: 58px;
    }

    .chat-fragment__inner {
      padding-inline: 58px 7%;
    }

    .chat-fragment__inner::before {
      left: 40px;
    }

    .chat-fragments__coda {
      margin-top: 100px;
      margin-right: 4%;
    }

    .truth-beat {
      min-height: 68svh;
      margin-top: 180px;
      padding-inline: 4%;
    }

    .truth-beat p {
      font-size: clamp(2.5rem, 10.5vw, 3.8rem);
    }

    .truth-beat span {
      max-width: 23em;
      margin-top: 42px;
      margin-left: 8%;
    }

    .ordinary-days {
      min-height: auto;
    }

    .ordinary-days__layout {
      grid-template-columns: 1fr;
      gap: 0;
      padding-block: 135px 180px;
    }

    .ordinary-days__heading {
      position: relative;
      top: auto;
    }

    .ordinary-days__text {
      padding-top: 100px;
      padding-left: 8%;
    }

    .ordinary-bridge {
      margin-top: 110px;
    }

    .ordinary-lines {
      margin-top: 90px;
      gap: 96px;
    }

    .ordinary-lines li::before {
      left: -28px;
    }

    .ordinary-coda {
      margin-top: 150px;
    }

    .letter {
      min-height: auto;
      padding-block: 130px 170px;
    }

    .letter-body {
      width: 92%;
      margin-top: 115px;
      gap: 0;
    }

    .letter-row {
      grid-template-columns: 1fr;
      gap: 22px;
    }

    .letter-note {
      max-width: 30em;
      margin-left: 8%;
      opacity: 0.62;
    }

    .daybreak {
      min-height: auto;
    }

    .daybreak__sun {
      top: 10%;
      right: -48vw;
      width: 130vw;
    }

    .daybreak__shell {
      display: block;
      padding-top: clamp(190px, 28svh, 260px);
    }

    .daybreak__copy {
      width: 100%;
    }

    .daybreak__copy h2 {
      font-size: clamp(3.4rem, 13vw, 5.4rem);
    }

    .closing-gesture {
      width: 88%;
      margin-top: 180px;
      margin-left: 8%;
    }

    .archive-door {
      grid-template-columns: 1fr;
      gap: 34px;
      margin-top: 150px;
    }

    .archive-door__action {
      grid-column: auto;
      width: min(100%, 410px);
    }

    .archive-dialog {
      inset: 0;
      width: 100%;
      height: 100dvh;
      margin: 0;
      border: 0;
      border-radius: 0;
    }

    .archive-dialog__header {
      padding-top: max(20px, env(safe-area-inset-top));
      padding-right: max(22px, env(safe-area-inset-right));
      padding-left: max(24px, env(safe-area-inset-left));
    }

    .archive-dialog__footer {
      padding-right: max(24px, env(safe-area-inset-right));
      padding-bottom: env(safe-area-inset-bottom);
      padding-left: max(24px, env(safe-area-inset-left));
    }

    .colophon {
      grid-template-columns: 1fr auto;
      margin-top: 270px;
      padding-bottom: 70px;
    }

    .colophon > span:nth-child(2) {
      display: none;
    }
  }

  @media (min-width: 600px) and (max-width: 900px) {
    :root {
      --shell: min(100% - 72px, 760px);
    }

    .first-frame__layout {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      padding-top: 180px;
    }

    .first-frame__copy {
      grid-column: 1 / 10;
      grid-row: 1;
      order: initial;
    }

    .display-title {
      max-width: 6.2em;
      font-size: clamp(4.2rem, 9.8vw, 5rem);
    }

    .film-frame {
      grid-column: 4 / 13;
      grid-row: 2;
      width: 100%;
      order: initial;
      margin-top: 76px;
    }

    .first-frame__body {
      grid-column: 1 / 8;
      grid-row: 3;
      width: auto;
      order: initial;
      margin-top: 82px;
      margin-left: 0;
    }

    .memory__visual,
    .memory:nth-child(even) .memory__visual {
      width: 86%;
    }

    .memory:nth-child(even) .memory__visual {
      align-self: flex-end;
    }

    .memory__copy,
    .memory:nth-child(even) .memory__copy {
      width: 72%;
    }

    .daybreak__copy h2 {
      font-size: clamp(5rem, 12vw, 6.4rem);
    }
  }

  @media (max-width: 520px) {
    :root {
      --shell: calc(100% - 36px);
    }

    .threshold__content {
      width: calc(100vw - 36px);
    }

    .threshold__title {
      font-size: 1.12rem;
      letter-spacing: 0.04em;
      line-height: 2;
    }

    .threshold__route {
      width: min(310px, 82vw);
      gap: 11px;
      font-size: 0.57rem;
    }

    .hold-button {
      min-width: 235px;
      padding-right: 8px;
      font-size: 0.72rem;
    }

    .site-chrome {
      padding-top: max(15px, env(safe-area-inset-top));
    }

    .sound-toggle {
      min-width: 44px;
    }

    .sound-toggle__label {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
      border: 0;
    }

    body.has-entered.is-chrome-muted .site-chrome {
      opacity: 0;
      pointer-events: none;
      transform: translateY(-110%);
    }

    body.has-entered.is-daybreak .site-chrome {
      opacity: 0;
      pointer-events: none;
      transform: translateY(-110%);
    }

    body.has-entered.archive-door-visible .site-chrome {
      opacity: 0;
      pointer-events: none;
      transform: translateY(-110%);
    }

    body.has-entered.is-daybreak .site-chrome:focus-within {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    body.has-entered.is-chrome-muted .chapter-nav {
      opacity: 0;
      pointer-events: none;
      transform: translate(50%, -72px);
    }

    .display-title {
      max-width: 8em;
      font-size: clamp(2.45rem, 12.2vw, 3.5rem);
      line-height: 1.06;
      letter-spacing: -0.07em;
    }

    .first-frame__body {
      width: 88%;
      margin-left: 5%;
    }

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

    .section-heading > p:last-child {
      max-width: 18em;
    }

    .desktop-only {
      display: none;
    }

    .memory {
      padding-left: 21px;
    }

    .memory__note {
      right: 7%;
      bottom: 7%;
      left: 7%;
      gap: 12px;
      font-size: 0.71rem;
    }

    .memory__note::before {
      width: 20px;
      min-width: 20px;
    }

    .memory__copy h3 {
      font-size: 2.15rem;
    }

    .chat-fragments {
      margin-top: 170px;
      padding-block: 82px 76px;
    }

    .chat-fragments__heading h3 {
      max-width: 8em;
      font-size: clamp(2.4rem, 12vw, 3.4rem);
    }

    .chat-fragments__heading > div {
      width: 92%;
      margin-top: 5px;
    }

    .chat-fragments__list {
      width: 100%;
      margin-top: 82px;
    }

    .chat-slip {
      min-height: 104px;
      grid-template-columns: 27px minmax(0, 1fr) 26px;
      gap: 12px;
      padding-inline: 2px;
    }

    .chat-slip::after {
      left: 39px;
    }

    .chat-slip__label {
      overflow: visible;
      font-size: 1.03rem;
      line-height: 1.45;
      text-overflow: clip;
      white-space: normal;
    }

    .chat-slip__action {
      width: 26px;
      padding-right: 24px;
      font-size: 0;
    }

    .chat-fragment__inner {
      padding-inline: 39px 2%;
    }

    .chat-fragment__inner::before {
      left: 27px;
    }

    .chat-fragment.is-open .chat-fragment__inner {
      padding-top: 18px;
      padding-bottom: 46px;
    }

    .chat-fragment__inner::before {
      top: 18px;
      bottom: 46px;
    }

    .chat-fragment__line {
      grid-template-columns: 5.7em minmax(0, 1fr);
      gap: 10px;
      font-size: 1rem;
    }

    .chat-fragments__coda {
      max-width: 19em;
      margin-top: 82px;
      margin-right: 0;
      margin-left: 9%;
      font-size: 1.06rem;
    }

    .closing-gesture {
      width: 100%;
      margin-top: clamp(96px, 14vh, 120px);
      margin-left: 0;
    }

    .archive-door {
      display: block;
      margin-top: clamp(86px, 13vh, 120px);
      padding-top: 30px;
    }

    .archive-door__copy h2 {
      margin-top: 19px;
      font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .archive-door__copy > p:last-child {
      margin-top: 28px;
      font-size: 0.9rem;
    }

    .archive-door__action {
      width: 100%;
      margin-top: 42px;
    }

    .archive-door__button {
      min-height: 68px;
      padding-left: 16px;
    }

    .archive-door__action p {
      margin-left: 16px;
    }

    .archive-dialog__header {
      min-height: 60px;
      align-items: center;
      gap: 12px;
      padding-top: max(8px, env(safe-area-inset-top));
      padding-bottom: 8px;
    }

    .archive-dialog__header .eyebrow,
    .archive-dialog__header > div > p:last-child {
      display: none;
    }

    .archive-dialog__header h2 {
      font-size: 1.12rem;
    }

    .archive-dialog__close {
      width: 44px;
      height: 44px;
    }

    .archive-dialog__footer {
      display: none;
    }

    .closing-button {
      min-height: 112px;
      margin-top: 36px;
    }

    .closing-after {
      margin-top: 48px;
      padding-left: 0;
      border-left: 0;
    }

    .colophon {
      margin-top: clamp(150px, 22vh, 210px);
    }

    .ordinary-days__text {
      padding-left: 7%;
    }

    .ordinary-lines li {
      font-size: clamp(1.6rem, 7vw, 2.05rem);
    }

    .ordinary-lines {
      gap: 76px;
    }

    .ordinary-coda {
      margin-top: 118px;
    }

    .letter-body {
      width: 94%;
      max-width: 22em;
    }

    .letter-body__paragraphs {
      gap: 72px;
    }

    .letter-row__text {
      font-size: 1.05rem;
      line-height: 2.04;
    }

    .letter-note {
      font-size: 0.74rem;
      opacity: 0.72;
    }

    .daybreak__lines {
      margin-top: 80px;
    }

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

    .closing-gesture {
      width: 100%;
      margin-left: 0;
    }

    .closing-button__cities {
      gap: 10px;
    }

    .closing-button strong {
      font-size: 0.94rem;
    }

    .colophon {
      font-size: 0.64rem;
    }
  }

  @media (max-height: 520px) {
    .threshold {
      place-items: start center;
      padding-block: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-bottom));
    }

    .threshold__content {
      min-height: 100%;
      justify-content: center;
      padding-block: 8px;
    }

    .threshold__eyebrow {
      margin-bottom: 2px;
    }

    .threshold__title {
      font-size: 0.9rem;
      line-height: 1.42;
    }

    .threshold__route {
      width: min(276px, 82vw);
      margin-top: 5px;
      font-size: 0.54rem;
    }

    .hold-button {
      min-width: 220px;
      min-height: 64px;
      margin-top: 5px;
      padding-left: 70px;
    }

    .hold-button__ring {
      width: 64px;
      height: 64px;
    }

    .hold-button__dot {
      top: 27px;
      left: 27px;
    }

    .threshold__hint {
      margin-top: 2px;
    }

    .threshold__direct {
      min-height: 44px;
      margin-top: 0;
    }

    .site-chrome {
      padding: max(4px, env(safe-area-inset-top)) 16px 4px;
    }

    .chapter-nav {
      display: none;
    }

    .puzzle-story__sticky {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
      align-items: center;
      gap: 18px;
      padding: 62px 0 12px;
      flex-direction: initial;
    }

    .puzzle-story__visual {
      position: relative;
      inset: auto;
      width: 100%;
      height: calc(100svh - 76px);
    }

    .puzzle-story__visual figcaption {
      top: auto;
      bottom: 12px;
    }

    .puzzle-story__copy {
      position: relative;
      right: auto;
      bottom: auto;
      left: auto;
      width: auto;
      align-self: center;
    }

    .puzzle-story__copy .eyebrow,
    .puzzle-story__hint {
      display: none;
    }

    .puzzle-story__copy h3 {
      margin-top: 0;
      font-size: 1.65rem;
    }

    .puzzle-story__copy > p:not(.eyebrow, .puzzle-story__hint, .puzzle-story__final) {
      display: block;
      margin-top: 9px;
      font-size: 0.76rem;
      line-height: 1.55;
    }

    .puzzle-story__controls {
      margin-top: 6px;
    }

    .puzzle-story__final {
      display: block;
      margin-top: 8px;
      font-size: 0.78rem;
      line-height: 1.5;
    }
  }

  @media (hover: none), (pointer: coarse) {
    .pointer-light {
      display: none;
    }

    .memory__visual {
      cursor: pointer;
    }

    .puzzle-story__controls {
      position: relative;
      right: auto;
      bottom: auto;
      display: flex;
      margin-top: 6px;
      width: 100%;
      margin-left: 0;
      gap: 0;
      opacity: 1;
      pointer-events: auto;
    }

    .puzzle-story__control {
      width: auto;
      min-width: 44px;
      flex: 1;
      justify-content: flex-start;
      padding: 0 8px 8px;
      color: rgba(229, 222, 211, 0.48);
      font-size: clamp(0.52rem, 2.25vw, 0.64rem);
      letter-spacing: 0.04em;
    }

    .puzzle-story__control::after {
      right: 8px;
      bottom: 4px;
      left: 8px;
      width: auto;
      height: 1px;
      border-radius: 0;
      background: currentColor;
      transform: scaleX(0.24);
      transform-origin: left;
    }

    .puzzle-story__control[aria-pressed="true"]::after {
      transform: scaleX(1);
    }

    .grain {
      opacity: 0.025;
      animation: none;
    }

    .pointer-only {
      display: none;
    }

    .touch-only {
      display: inline;
    }

    .letter-touch-hint {
      display: block;
      max-width: 22em;
      margin-top: 14px;
      color: rgba(216, 207, 193, 0.58);
      font-family: var(--serif);
      font-size: 0.72rem;
      letter-spacing: 0.06em;
      line-height: 1.8;
      opacity: 1;
      transition: opacity 700ms ease;
    }

    .letter-touch-hint.is-read {
      opacity: 0;
    }
  }

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

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

    .contact-sheet__thread {
      transform: scaleY(1);
    }

    .grain,
    .pointer-light {
      display: none;
    }

    .reveal {
      opacity: 1;
      transform: none;
    }

    .ordinary-lines li {
      color: rgba(238, 231, 220, 0.92);
      opacity: 1;
      transform: none;
    }

    main {
      transition-delay: 0ms;
    }

    .film-frame .scene,
    .memory__scene {
      filter: none;
      transform: none;
    }

    .film-frame .scene__photo--reveal {
      clip-path: circle(145% at 51% 56%);
    }

    .scene__photo--memory-base {
      opacity: 1;
      filter: none !important;
    }

    .scene__photo--memory-reveal {
      display: none;
    }

    .puzzle-story__frame {
      transition: none;
    }
  }

  @media (max-width: 900px) and (prefers-reduced-motion: reduce) {
    .puzzle-story.is-static .puzzle-story__sticky {
      display: block;
      height: auto;
      padding: 0;
    }

    .puzzle-story.is-static .puzzle-story__frames {
      grid-template-columns: 1fr;
      gap: 28px;
    }

    .puzzle-story.is-static .puzzle-story__frame {
      aspect-ratio: auto;
    }

    .puzzle-story.is-static .puzzle-story__image {
      height: auto;
      max-height: none;
    }

    .puzzle-story.is-static .puzzle-story__copy {
      width: 92%;
      margin-top: 54px;
      margin-left: auto;
    }
  }

  @media (prefers-contrast: more) {
    .site-chrome,
    .chapter-nav,
    .eyebrow,
    .section-heading > p:last-child,
    .memory__body,
    .memory__date,
    .letter-note,
    .chat-slip__number,
    .chat-slip__date,
    .chat-slip__action,
    .chat-fragment__speaker,
    .chat-fragments__hint {
      color: var(--paper);
      opacity: 1;
    }

    body.is-daybreak .site-chrome,
    body.is-daybreak .chapter-nav,
    .daybreak .eyebrow,
    .closing-button__privacy,
    .closing-after span,
    .colophon {
      color: var(--ink);
    }

    .first-frame__touch-prompt,
    .first-frame__touch-line,
    .letter-touch-hint {
      color: var(--paper);
    }
  }

  @media (forced-colors: active) {
    .grain,
    .pointer-light,
    .atmosphere,
    .threshold__halo,
    .daybreak__sun {
      display: none;
    }

    .threshold,
    .contact-sheet,
    .ordinary-days,
    .letter,
    .daybreak {
      background: Canvas;
      color: CanvasText;
    }

    .chapter-nav,
    .site-chrome {
      color: CanvasText;
    }
  }
}

/* Motion pass: 余温脉络
   One slow background breath, two moving city lights, and short touch responses. */
:root {
  --ambient-x: 0px;
  --ambient-y: 0px;
  --ambient-scroll-y: 0px;
  --echo-x: 50vw;
  --echo-y: 50vh;
}

.romance-veil__bloom {
  --bloom-scale: 0.9;
  will-change: transform, opacity;
  animation-play-state: paused;
}

.romance-veil__bloom--one {
  animation: ambient-bloom-one 28s ease-in-out infinite alternate;
}

.romance-veil__bloom--two {
  animation: ambient-bloom-two 34s ease-in-out infinite alternate;
}

body.has-entered .romance-veil__bloom,
body.has-entered .romance-veil__thread::after {
  animation-play-state: running;
}

body[data-tone="blue"] .romance-veil__bloom--one,
body[data-tone="warm"] .romance-veil__bloom--one,
body[data-tone="ink"] .romance-veil__bloom--two {
  --bloom-scale: 1;
}

body[data-tone="day"] .romance-veil__bloom {
  --bloom-scale: 1.06;
  opacity: 0.1;
}

@keyframes ambient-bloom-one {
  0% {
    transform: translate3d(
      calc(var(--ambient-x) - 2vw),
      calc(var(--ambient-y) + var(--ambient-scroll-y) - 1vh),
      0
    ) scale(var(--bloom-scale)) rotate(-3deg);
  }
  52% {
    transform: translate3d(
      calc(var(--ambient-x) + 1.6vw),
      calc(var(--ambient-y) + var(--ambient-scroll-y) + 2.2vh),
      0
    ) scale(var(--bloom-scale)) rotate(2deg);
  }
  100% {
    transform: translate3d(
      calc(var(--ambient-x) - 0.6vw),
      calc(var(--ambient-y) + var(--ambient-scroll-y) - 2vh),
      0
    ) scale(var(--bloom-scale)) rotate(-1deg);
  }
}

@keyframes ambient-bloom-two {
  0% {
    transform: translate3d(
      calc(0px - var(--ambient-x) + 1vw),
      calc(0px - var(--ambient-y) - var(--ambient-scroll-y) + 1vh),
      0
    ) scale(var(--bloom-scale)) rotate(3deg);
  }
  48% {
    transform: translate3d(
      calc(0px - var(--ambient-x) - 2vw),
      calc(0px - var(--ambient-y) - var(--ambient-scroll-y) - 1.7vh),
      0
    ) scale(var(--bloom-scale)) rotate(-2deg);
  }
  100% {
    transform: translate3d(
      calc(0px - var(--ambient-x) + 0.8vw),
      calc(0px - var(--ambient-y) - var(--ambient-scroll-y) + 2.4vh),
      0
    ) scale(var(--bloom-scale)) rotate(1deg);
  }
}

.romance-veil::after {
  position: absolute;
  top: var(--echo-y);
  left: var(--echo-x);
  width: 170px;
  aspect-ratio: 1;
  border: 1px solid rgba(231, 185, 180, 0.34);
  border-radius: 50%;
  content: "";
  opacity: 0;
  background: radial-gradient(circle, rgba(231, 183, 143, 0.1), rgba(202, 137, 148, 0.035) 36%, transparent 68%);
  box-shadow: 0 0 55px rgba(202, 137, 148, 0.08);
  transform: translate(-50%, -50%) scale(0.18);
}

body.is-ambient-echo .romance-veil::after {
  animation: ambient-touch 880ms var(--romance-ease) both;
}

@keyframes ambient-touch {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.18); }
  26% { opacity: 0.62; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.16); }
}

.romance-veil__thread::after {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  opacity: 0;
  background: var(--apricot);
  box-shadow: 0 0 16px rgba(231, 183, 143, 0.64);
  animation: thread-afterglow 11s ease-in-out infinite;
  animation-play-state: paused;
}

@keyframes thread-afterglow {
  0%, 12% { opacity: 0; transform: translateX(0); }
  24% { opacity: 0.7; }
  76% { opacity: 0.5; }
  90%, 100% { opacity: 0; transform: translateX(72vw); }
}

.threshold__orbit {
  transform: rotate(var(--orbit-turn, -8deg)) scale(var(--orbit-scale, 1));
  transition: transform 220ms ease-out, border-color 500ms ease;
}

.threshold:has(.hold-button.is-holding) .threshold__orbit {
  border-color: rgba(231, 185, 180, 0.18);
}

.film-frame {
  --photo-tilt-x: 0deg;
  --photo-tilt-y: 0deg;
  --photo-shift-x: 0px;
  --photo-shift-y: 0px;
  --photo-light-x: 52%;
  --photo-light-y: 54%;
  perspective: 1200px;
}

.film-frame::before {
  background: radial-gradient(circle 150px at var(--photo-light-x) var(--photo-light-y), rgba(255, 229, 205, 0.12), transparent 76%);
  transition: background 180ms linear, border-color 600ms ease;
}

.film-frame .scene {
  transform: perspective(1200px)
    translate3d(var(--photo-shift-x), var(--photo-shift-y), 0)
    rotateX(var(--photo-tilt-x))
    rotateY(var(--photo-tilt-y));
  transform-origin: center;
  transition: transform 900ms var(--romance-ease), filter 900ms var(--romance-ease);
}

.film-frame.has-depth .scene {
  transition-duration: 120ms;
}

.contact-sheet {
  background-color: #1a151e;
  background-image:
    radial-gradient(circle at 74% 16%, rgba(159, 184, 188, 0.065), transparent 28%),
    radial-gradient(circle at 14% 54%, rgba(202, 137, 148, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(19, 19, 29, 0.94) 0%, rgba(23, 19, 29, 0.76) 48%, rgba(33, 23, 32, 0.88) 100%);
  transition: background-color 1.5s var(--romance-ease);
}

.contact-sheet[data-memory="0"] {
  background-color: #152522;
}

.contact-sheet[data-memory="1"] {
  background-color: #261c1c;
}

.contact-sheet[data-memory="2"] {
  background-color: #1b1a2c;
}

.contact-sheet__thread::after {
  position: absolute;
  top: var(--thread-position, 0%);
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 234, 210, 0.72);
  border-radius: 50%;
  content: "";
  background: var(--apricot);
  box-shadow:
    0 0 15px rgba(231, 183, 143, 0.72),
    0 0 34px rgba(202, 137, 148, 0.22);
  transform: translate(-50%, -50%);
  transition: top 160ms linear, background 700ms ease;
}

.memory__visual.is-tap-warm::after {
  animation: memory-touch-warm 820ms var(--romance-ease) both;
}

@keyframes memory-touch-warm {
  0% { opacity: 0; transform: scale(0.96); }
  34% { opacity: 1; }
  100% { opacity: 0.62; transform: scale(1.025); }
}

.chat-fragment__inner {
  position: relative;
  isolation: isolate;
}

.chat-fragment__inner::before {
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 760ms var(--romance-ease), opacity 500ms ease;
}

.chat-fragment__inner::after {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(72%, 520px);
  height: 1px;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(157, 149, 183, 0.5), rgba(231, 183, 143, 0.72), rgba(202, 137, 148, 0.5), transparent);
  box-shadow: 0 0 20px rgba(202, 137, 148, 0.16);
  transform: translate(-50%, -50%) scaleX(0.08);
  transition: transform 900ms var(--romance-ease), opacity 420ms ease;
}

.chat-fragment.is-open .chat-fragment__inner::before {
  transform: scaleY(1);
}

.chat-fragment.is-open .chat-fragment__inner::after {
  opacity: 0.72;
  transform: translate(-50%, -50%) scaleX(1);
}

.chat-fragment__line {
  position: relative;
  z-index: 1;
}

.ordinary-days__wash::before {
  opacity: calc(0.1 + var(--ordinary-warmth, 0.22) * 0.07);
  transform: translate3d(0, var(--ordinary-wash-y, 0px), 0) scale(1.08);
  transition: opacity 700ms ease;
  will-change: transform, opacity;
}

.ordinary-lines li.is-current {
  color: #fff1e9;
  opacity: 1;
  transform: translate3d(5px, 0, 0);
  text-shadow: 0 0 34px rgba(202, 137, 148, 0.15);
}

.ordinary-lines li.is-current::before {
  background: var(--apricot);
  box-shadow: 0 0 23px rgba(231, 183, 143, 0.64);
  opacity: 1;
}

.letter-progress {
  position: absolute !important;
  z-index: 2 !important;
  top: clamp(72px, 9vw, 118px);
  right: clamp(17px, 2.5vw, 31px);
  bottom: clamp(72px, 9vw, 118px);
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(125, 77, 88, 0.2) 9% 91%, transparent);
}

.letter-progress i {
  position: absolute;
  top: var(--letter-position, 0%);
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose-deep);
  box-shadow: 0 0 14px rgba(159, 98, 112, 0.32);
  transform: translate(-50%, -50%);
  transition: top 180ms linear;
}

.letter-row.is-current .letter-note::before,
.letter-row.is-touched-row .letter-note::before {
  animation: note-ink-line 620ms var(--romance-ease) both;
  transform-origin: left;
}

@keyframes note-ink-line {
  from { opacity: 0.3; transform: scaleX(0.18); }
  to { opacity: 1; transform: scaleX(1); }
}

.daybreak__sun {
  transform: translate3d(var(--daybreak-shift, 0px), var(--daybreak-rise, 28px), 0)
    scale(calc(0.8 + var(--daybreak-progress, 0) * 0.18));
  will-change: transform;
}

body.is-hope-lit .daybreak::after {
  animation: hope-afterglow 2.4s var(--romance-ease) both;
}

@keyframes hope-afterglow {
  0% { opacity: 0.05; }
  46% { opacity: 0.34; }
  100% { opacity: 0.18; }
}

.grain {
  opacity: 0.026;
  animation-duration: 1.28s;
}

@media (max-width: 520px) {
  .threshold__orbit {
    transform: rotate(var(--orbit-turn, -12deg)) scale(var(--orbit-scale, 1));
  }

  .romance-veil__bloom {
    will-change: auto;
  }

  .romance-veil__thread::after {
    animation-duration: 13s;
  }

  .letter-progress {
    top: 58px;
    right: 11px;
    bottom: 74px;
    opacity: 0.72;
  }
}

@media (hover: none), (pointer: coarse) {
  .romance-veil__bloom--one {
    animation-duration: 36s;
  }

  .romance-veil__bloom--two {
    animation-duration: 42s;
  }

  .film-frame .scene {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .romance-veil__bloom,
  .romance-veil__thread::after,
  .memory__visual.is-tap-warm::after,
  body.is-hope-lit .daybreak::after,
  .letter-row.is-current .letter-note::before,
  .letter-row.is-touched-row .letter-note::before {
    animation: none;
  }

  .romance-veil__bloom {
    transform: none;
  }

  .romance-veil::after {
    display: none;
  }

  .contact-sheet__thread::after,
  .letter-progress i {
    transition: none;
  }

  .ordinary-days__wash::before,
  .daybreak__sun,
  .film-frame .scene {
    transform: none;
  }
}

@media (forced-colors: active) {
  .romance-veil::after,
  .romance-veil__thread::after,
  .contact-sheet__thread::after,
  .letter-progress,
  .chat-fragment__inner::after {
    display: none;
  }
}

/* Cinematic interaction pass: 同一束光，穿过五章
   The ambient route sits above each chapter colour, but always behind the story. */
@property --memory-glow-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 74%;
}

@property --memory-glow-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 16%;
}

main {
  isolation: isolate;
}

.chapter {
  z-index: auto;
}

main > .atmosphere,
main > .romance-veil {
  z-index: 1;
}

main > .pointer-light {
  z-index: 2;
}

.chapter-shell {
  position: relative;
  z-index: 3;
}

.atmosphere {
  opacity: 0.58;
}

body[data-tone="day"] .atmosphere,
body.is-daybreak .atmosphere {
  opacity: 0.14;
}

.romance-veil__bloom {
  filter: none;
  opacity: 0.14;
}

body.has-entered .romance-veil__bloom--one {
  opacity: 0.21;
}

body.has-entered .romance-veil__bloom--two {
  opacity: 0.17;
}

.romance-veil__bloom--two {
  animation: none;
}

.romance-veil::before {
  position: absolute;
  top: 14%;
  left: -10%;
  width: 118vw;
  height: 63vh;
  border: 1px solid rgba(231, 185, 180, 0.075);
  border-right-color: rgba(231, 183, 143, 0.13);
  border-left-color: rgba(157, 149, 183, 0.1);
  border-radius: 50%;
  content: "";
  opacity: 0.72;
  transform: rotate(-7deg) translate3d(-1.2vw, 0, 0);
  transform-origin: 52% 50%;
  animation: veil-orbit 38s ease-in-out infinite alternate;
  animation-play-state: paused;
}

body.has-entered .romance-veil::before {
  animation-play-state: running;
}

@keyframes veil-orbit {
  from { transform: rotate(-7deg) translate3d(-1.2vw, -0.8vh, 0) scale(0.985); }
  to { transform: rotate(-4.5deg) translate3d(1.4vw, 1.6vh, 0) scale(1.015); }
}

.romance-veil__thread {
  border-color: rgba(231, 185, 180, 0.12);
  box-shadow: 0 -7px 26px rgba(202, 137, 148, 0.035);
}

.romance-veil__thread::before {
  position: absolute;
  top: -13px;
  left: 4%;
  width: 88%;
  height: 26px;
  content: "";
  opacity: 0.48;
  background: linear-gradient(180deg, transparent, rgba(202, 137, 148, 0.045), transparent);
}

body.archive-is-open .romance-veil__bloom,
body.archive-is-open .romance-veil::before,
body.archive-is-open .romance-veil__thread::after {
  animation-play-state: paused;
}

.threshold__halo::after {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  content: "";
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 231, 204, 0.28), rgba(202, 137, 148, 0.09) 34%, transparent 72%);
  transform: scale(0.18);
  pointer-events: none;
}

.threshold.is-leaving .threshold__halo::after {
  animation: threshold-release 760ms var(--romance-ease) both;
}

@keyframes threshold-release {
  0% { opacity: 0; transform: scale(0.18); }
  38% { opacity: 0.72; }
  100% { opacity: 0; transform: scale(1.24); }
}

.threshold:has(.hold-button.is-holding) .threshold__route-line {
  height: 2px;
}

.threshold:has(.hold-button.is-holding) .threshold__orbit {
  border-color: rgba(231, 185, 180, 0.26);
  box-shadow: inset 0 0 54px rgba(202, 137, 148, 0.028);
}

.journey {
  position: relative;
}

.journey__track::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  left: 0;
  height: 7px;
  content: "";
  opacity: 0.7;
  background:
    radial-gradient(circle at 0 50%, currentColor 0 1px, transparent 1.5px),
    radial-gradient(circle at 25% 50%, currentColor 0 1px, transparent 1.5px),
    radial-gradient(circle at 50% 50%, currentColor 0 1px, transparent 1.5px),
    radial-gradient(circle at 75% 50%, currentColor 0 1px, transparent 1.5px),
    radial-gradient(circle at 100% 50%, currentColor 0 1px, transparent 1.5px);
  transform: translateY(-50%);
}

.journey__fill {
  z-index: 2;
}

.journey__percent {
  position: absolute;
  top: 10px;
  right: -34px;
  color: currentColor;
  font-size: 0.54rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

body.has-pointer .pointer-light {
  opacity: 0;
}

body.has-pointer.is-pointer-visible .pointer-light {
  opacity: 1;
}

.pointer-light {
  --pointer-width: 420px;
  --pointer-height: 420px;
  width: var(--pointer-width);
  height: var(--pointer-height);
  aspect-ratio: auto;
  border: 1px solid transparent;
  background: radial-gradient(circle, rgba(231, 183, 143, 0.066), rgba(202, 137, 148, 0.018) 42%, transparent 71%);
  transition:
    width 650ms var(--romance-ease),
    height 650ms var(--romance-ease),
    border-color 500ms ease,
    border-radius 650ms var(--romance-ease),
    opacity 420ms ease,
    background 650ms ease;
}

.pointer-light::before {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(231, 185, 180, 0.075);
  border-right-color: rgba(231, 183, 143, 0.18);
  border-radius: 50%;
  content: "";
  animation: pointer-orbit 16s linear infinite;
  animation-play-state: paused;
}

.pointer-light::after {
  position: absolute;
  top: 19%;
  right: 19%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  content: "";
  background: rgba(255, 226, 194, 0.68);
  box-shadow: 0 0 12px rgba(231, 183, 143, 0.42);
}

@keyframes pointer-orbit {
  to { transform: rotate(360deg); }
}

body.is-pointer-visible .pointer-light::before {
  animation-play-state: running;
}

body.is-pointer-visible .romance-veil__bloom--one {
  animation-play-state: paused;
}

body.archive-is-open .pointer-light {
  opacity: 0;
}

body.archive-is-open .pointer-light::before {
  animation-play-state: paused;
}

body[data-pointer-mode="photo"] .pointer-light {
  --pointer-width: 292px;
  --pointer-height: 292px;
  border-color: rgba(231, 185, 180, 0.11);
  background: radial-gradient(circle, rgba(255, 228, 203, 0.09), rgba(202, 137, 148, 0.022) 48%, transparent 72%);
}

body[data-pointer-mode="chat"] .pointer-light {
  --pointer-width: 350px;
  --pointer-height: 128px;
  border-color: rgba(157, 149, 183, 0.1);
  border-radius: 48%;
  background: radial-gradient(ellipse, rgba(231, 183, 143, 0.07), rgba(157, 149, 183, 0.016) 54%, transparent 76%);
}

body[data-pointer-mode="letter"] .pointer-light {
  --pointer-width: 520px;
  --pointer-height: 250px;
  border-radius: 46%;
  background: radial-gradient(ellipse, rgba(255, 236, 201, 0.115), rgba(159, 98, 112, 0.018) 52%, transparent 74%);
}

body[data-pointer-mode="archive"] .pointer-light {
  --pointer-width: 270px;
  --pointer-height: 190px;
  border-color: rgba(159, 98, 112, 0.1);
  border-radius: 44%;
  background: radial-gradient(ellipse, rgba(181, 118, 92, 0.1), rgba(244, 235, 223, 0.03) 52%, transparent 74%);
}

body[data-pointer-mode="action"] .pointer-light {
  --pointer-width: 144px;
  --pointer-height: 144px;
  border-color: rgba(231, 183, 143, 0.12);
  background: radial-gradient(circle, rgba(231, 183, 143, 0.11), transparent 70%);
}

[data-magnetic] {
  --control-x: 50%;
  --control-y: 50%;
  --control-shift-x: 0px;
  --control-shift-y: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

[data-magnetic]::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle 105px at var(--control-x) var(--control-y), rgba(231, 183, 143, 0.12), rgba(202, 137, 148, 0.035) 44%, transparent 72%);
  transition: opacity 320ms ease;
}

[data-magnetic].is-magnetized::before,
[data-magnetic]:focus-visible::before {
  opacity: 1;
}

.chat-slip__front,
.archive-door__button > span,
.archive-door__button > i,
.closing-button > * {
  position: relative;
  z-index: 1;
  transition: transform 360ms var(--romance-ease);
}

.chat-slip.is-magnetized .chat-slip__front,
.archive-door__button.is-magnetized > span,
.archive-door__button.is-magnetized > i,
.closing-button.is-magnetized > * {
  transform: translate3d(var(--control-shift-x), var(--control-shift-y), 0);
}

.contact-sheet {
  --memory-glow-x: 74%;
  --memory-glow-y: 16%;
  background-color: #1a151e;
  background-image:
    radial-gradient(circle at var(--memory-glow-x) var(--memory-glow-y), rgba(159, 184, 188, 0.075), transparent 27%),
    radial-gradient(circle at calc(100% - var(--memory-glow-x)) 58%, rgba(202, 137, 148, 0.085), transparent 32%),
    linear-gradient(180deg, rgba(19, 19, 29, 0.94) 0%, rgba(23, 19, 29, 0.76) 48%, rgba(33, 23, 32, 0.88) 100%);
  transition: background-color 1.5s var(--romance-ease), --memory-glow-x 1.4s var(--romance-ease), --memory-glow-y 1.4s var(--romance-ease);
}

.contact-sheet[data-memory="0"] {
  --memory-glow-x: 78%;
  --memory-glow-y: 18%;
}

.contact-sheet[data-memory="1"] {
  --memory-glow-x: 24%;
  --memory-glow-y: 43%;
}

.contact-sheet[data-memory="2"] {
  --memory-glow-x: 67%;
  --memory-glow-y: 72%;
}

.contact-sheet__thread::before {
  position: absolute;
  top: var(--thread-position, 0%);
  left: 50%;
  width: 1px;
  height: min(20vh, 170px);
  content: "";
  opacity: 0.72;
  background: linear-gradient(180deg, transparent, rgba(202, 137, 148, 0.14) 24%, rgba(231, 183, 143, 0.72));
  transform: translate(-50%, -100%);
  transition: top 160ms linear;
}

.memory__scene {
  --memory-depth-x: 0px;
  --memory-depth-y: 0px;
  transform: scale(1.012) translate3d(var(--memory-depth-x), var(--memory-depth-y), 0);
}

.memory__visual:hover .memory__scene,
.memory__visual:focus-visible .memory__scene,
.memory__visual.is-inspected .memory__scene {
  transform: scale(1) translate3d(var(--memory-depth-x), var(--memory-depth-y), 0);
}

.memory__visual::before {
  position: absolute;
  z-index: 3;
  top: -12%;
  bottom: -12%;
  left: -24%;
  width: 19%;
  content: "";
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 235, 214, 0.13), rgba(255, 248, 231, 0.22), transparent);
  transform: translateX(-130%) skewX(-10deg);
}

.memory__visual:hover::before,
.memory__visual:focus-visible::before,
.memory__visual.is-tap-warm::before {
  animation: memory-develop-scan 920ms var(--romance-ease) both;
}

@keyframes memory-develop-scan {
  0% { opacity: 0; transform: translateX(-130%) skewX(-10deg); }
  28% { opacity: 0.78; }
  100% { opacity: 0; transform: translateX(760%) skewX(-10deg); }
}

.puzzle-story__visual {
  transition: border-color 900ms ease, box-shadow 900ms var(--romance-ease);
}

.puzzle-story__visual::before {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: -34%;
  display: block;
  width: 32%;
  content: "";
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 217, 0.1), rgba(255, 247, 230, 0.22), transparent);
  transform: translateX(-110%) skewX(-8deg);
}

.puzzle-story.is-developing .puzzle-story__visual::before {
  animation: puzzle-develop 900ms var(--romance-ease) both;
}

@keyframes puzzle-develop {
  0% { opacity: 0; transform: translateX(-110%) skewX(-8deg); }
  34% { opacity: 0.78; }
  100% { opacity: 0; transform: translateX(520%) skewX(-8deg); }
}

.puzzle-story[data-stage="2"] .puzzle-story__visual {
  border-color: rgba(231, 185, 180, 0.2);
  box-shadow:
    0 0 0 8px rgba(244, 235, 223, 0.045),
    0 38px 110px rgba(0, 0, 0, 0.32),
    0 0 86px rgba(202, 137, 148, 0.11);
}

.archive-dialog.is-opening[open] .archive-dialog__panel {
  animation: archive-panel-enter 560ms var(--romance-ease) both;
}

.archive-dialog.is-opening[open]::backdrop {
  animation: archive-backdrop-enter 420ms ease both;
}

@keyframes archive-panel-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes archive-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.archive-dialog__loading {
  min-width: 190px;
  padding-top: 42px;
  text-align: center;
}

.archive-dialog__loading::before {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 132px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(159, 98, 112, 0.48), rgba(199, 143, 109, 0.66), transparent);
  transform: translateX(-50%);
}

.archive-dialog__loading::after {
  position: absolute;
  top: 13px;
  left: calc(50% - 66px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: #b47a68;
  box-shadow: 0 0 13px rgba(180, 122, 104, 0.42);
  animation: archive-route 1.9s ease-in-out infinite;
}

@keyframes archive-route {
  0%, 100% { opacity: 0.24; transform: translateX(0); }
  48% { opacity: 1; }
  100% { transform: translateX(126px); }
}

@media (max-width: 900px) {
  .journey__percent {
    display: none;
  }

  .romance-veil::before {
    top: 19%;
    left: -34%;
    width: 168vw;
    height: 54vh;
    opacity: 0.46;
  }

  .romance-veil__thread::before {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .romance-veil__bloom--two {
    animation: none;
    opacity: 0.09;
  }

  .memory__visual::before {
    width: 24%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .pointer-light {
    display: none;
  }

  .romance-veil::before,
  .memory__visual::before,
  .puzzle-story__visual::before,
  .archive-dialog__loading::after,
  .archive-dialog.is-opening[open] .archive-dialog__panel,
  .archive-dialog.is-opening[open]::backdrop {
    animation: none;
  }

  .romance-veil::before {
    transform: rotate(-6deg);
  }

  .memory__scene,
  .memory__visual:hover .memory__scene,
  .memory__visual:focus-visible .memory__scene,
  .memory__visual.is-inspected .memory__scene {
    transform: none;
  }

  .chat-slip__front,
  .archive-door__button > span,
  .archive-door__button > i,
  .closing-button > * {
    transform: none;
    transition: none;
  }
}

@media (forced-colors: active) {
  .atmosphere,
  .romance-veil,
  .pointer-light,
  .memory__visual::before,
  .puzzle-story__visual::before,
  [data-magnetic]::before,
  .archive-dialog__loading::before,
  .archive-dialog__loading::after {
    display: none;
  }
}

/* Two-city chapter pass: 云南的山，上海的窗光。
   Local backdrops change with the story; the closing frame brings both cities together. */
.chapter-backdrop {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  contain: paint;
  pointer-events: none;
}

.chapter-backdrop--distance::before,
.chapter-backdrop--distance::after,
.chapter-backdrop--darkroom::before,
.chapter-backdrop--darkroom::after,
.chapter-backdrop--window::before,
.chapter-backdrop--window::after,
.chapter-backdrop--paper::before,
.chapter-backdrop--paper::after,
.chapter-backdrop--dawn::before,
.chapter-backdrop--dawn::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.chapter-backdrop--distance::before {
  top: 13vh;
  left: -5vw;
  width: min(47vw, 700px);
  height: min(35vh, 330px);
  opacity: 0.18;
  background: linear-gradient(145deg, rgba(126, 151, 153, 0.26), rgba(157, 149, 183, 0.045) 72%);
  clip-path: polygon(0 79%, 10% 67%, 18% 72%, 28% 42%, 36% 60%, 47% 24%, 59% 57%, 70% 38%, 82% 68%, 100% 52%, 100% 100%, 0 100%);
  transform: translate3d(var(--ambient-x), calc(var(--ambient-y) + var(--ambient-scroll-y)), 0);
}

.chapter-backdrop--distance::after {
  top: 15vh;
  right: -2vw;
  width: min(39vw, 570px);
  height: min(32vh, 290px);
  opacity: 0.1;
  background:
    repeating-linear-gradient(90deg, rgba(231, 185, 180, 0.36) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, rgba(202, 137, 148, 0.06), rgba(157, 149, 183, 0.14));
  clip-path: polygon(0 73%, 8% 73%, 8% 59%, 15% 59%, 15% 68%, 25% 68%, 25% 45%, 32% 45%, 32% 71%, 43% 71%, 43% 27%, 48% 27%, 48% 8%, 51% 8%, 51% 50%, 59% 50%, 59% 38%, 66% 38%, 66% 68%, 77% 68%, 77% 18%, 82% 18%, 82% 62%, 92% 62%, 92% 49%, 100% 49%, 100% 100%, 0 100%);
  transform: translate3d(calc(0px - var(--ambient-x)), calc(0px - var(--ambient-y) + var(--ambient-scroll-y)), 0);
}

.chapter-backdrop--darkroom {
  opacity: 0.72;
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.46), transparent 9% 91%, rgba(7, 9, 15, 0.38)),
    repeating-linear-gradient(180deg, transparent 0 92px, rgba(231, 185, 180, 0.024) 93px, transparent 95px 122px);
}

.chapter-backdrop--darkroom::before {
  top: 7%;
  left: -7vw;
  width: min(29vw, 420px);
  height: min(72vh, 660px);
  border-right: 1px solid rgba(157, 149, 183, 0.12);
  opacity: 0.46;
  background: repeating-linear-gradient(180deg, transparent 0 32px, rgba(245, 236, 228, 0.07) 33px 42px, transparent 43px 65px);
  transform: translate3d(0, var(--ambient-scroll-y), 0) rotate(1.4deg);
}

.chapter-backdrop--darkroom::after {
  top: 9%;
  right: -16vw;
  width: min(56vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.22;
  background: radial-gradient(circle, rgba(157, 184, 184, 0.14), rgba(177, 139, 165, 0.045) 42%, transparent 71%);
  transform: translate3d(0, var(--ambient-scroll-y), 0) scale(0.92);
  transition: transform 1.4s var(--romance-ease), opacity 1.4s ease;
}

.contact-sheet[data-memory="1"] .chapter-backdrop--darkroom::after {
  right: 48vw;
  opacity: 0.27;
  transform: translate3d(0, calc(var(--ambient-scroll-y) + 18vh), 0) scale(1.05);
}

.contact-sheet[data-memory="2"] .chapter-backdrop--darkroom::after {
  top: 43%;
  right: 7vw;
  opacity: 0.19;
  transform: translate3d(0, var(--ambient-scroll-y), 0) scale(0.82);
}

.chapter-backdrop--window::before {
  top: -13%;
  right: -8%;
  width: 50vw;
  height: 126%;
  opacity: calc(0.09 + var(--ordinary-warmth, 0.25) * 0.08);
  background: linear-gradient(115deg, transparent 12%, rgba(255, 222, 183, 0.17) 37%, rgba(202, 137, 148, 0.045) 59%, transparent 72%);
  transform: translate3d(0, var(--ordinary-wash-y, 0px), 0) rotate(-3deg);
}

.chapter-backdrop--window::after {
  top: 8%;
  right: 9%;
  width: min(34vw, 490px);
  height: 64%;
  border: 1px solid rgba(245, 236, 228, 0.035);
  opacity: calc(0.24 + var(--ordinary-warmth, 0.25) * 0.22);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(245, 236, 228, 0.042) 50%, transparent 50.2%),
    linear-gradient(180deg, transparent 48.8%, rgba(245, 236, 228, 0.035) 49%, transparent 49.2%);
  transform: translate3d(0, calc(var(--ordinary-wash-y, 0px) * -0.45), 0) perspective(700px) rotateY(-7deg);
}

.chapter-backdrop--paper {
  background:
    repeating-linear-gradient(0deg, transparent 0 72px, rgba(231, 185, 180, 0.017) 73px, transparent 74px),
    radial-gradient(circle at 18% 24%, rgba(231, 183, 143, 0.055), transparent 28%);
}

.chapter-backdrop--paper::before {
  top: 14%;
  left: 8%;
  width: min(48vw, 690px);
  aspect-ratio: 1.54;
  border: 1px solid rgba(231, 185, 180, 0.055);
  opacity: 0.66;
  background:
    linear-gradient(32deg, transparent 49.8%, rgba(231, 185, 180, 0.05) 50%, transparent 50.2%),
    linear-gradient(-32deg, transparent 49.8%, rgba(157, 149, 183, 0.045) 50%, transparent 50.2%);
  transform: translate3d(0, var(--ambient-scroll-y), 0) rotate(-4deg);
}

.chapter-backdrop--paper::after {
  top: 32%;
  right: -12%;
  width: min(48vw, 660px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.17;
  background: radial-gradient(circle, rgba(231, 183, 143, 0.16), rgba(202, 137, 148, 0.035) 44%, transparent 72%);
  transform: translate3d(var(--ambient-x), var(--ambient-scroll-y), 0);
}

.chapter-backdrop--dawn {
  background:
    linear-gradient(180deg, transparent 0 34%, rgba(255, 238, 218, 0.055) 51%, transparent 71%),
    radial-gradient(ellipse at 50% 56%, rgba(255, 231, 207, 0.14), transparent 48%);
  opacity: calc(0.5 + var(--daybreak-progress, 0) * 0.32);
}

.chapter-backdrop--dawn::before,
.chapter-backdrop--dawn::after {
  top: 48%;
  width: 42%;
  height: 1px;
  opacity: calc(0.18 + var(--daybreak-progress, 0) * 0.36);
  background: linear-gradient(90deg, transparent, rgba(159, 98, 112, 0.4), rgba(199, 143, 109, 0.66));
  transform: scaleX(calc(0.2 + var(--daybreak-progress, 0) * 0.8));
}

.chapter-backdrop--dawn::before {
  left: 4%;
  transform-origin: right;
}

.chapter-backdrop--dawn::after {
  right: 4%;
  background: linear-gradient(270deg, transparent, rgba(159, 98, 112, 0.34), rgba(199, 143, 109, 0.66));
  transform-origin: left;
}

body[data-chapter="01"] .atmosphere { opacity: 0.26; }
body[data-chapter="02"] .atmosphere { opacity: 0.3; }
body[data-chapter="03"] .atmosphere { opacity: 0.14; }
body[data-chapter="04"] .atmosphere { opacity: 0.09; }
body[data-chapter="05"] .atmosphere { opacity: 0.045; }

body[data-tone="ink"] .romance-veil::before,
body[data-tone="day"] .romance-veil::before {
  opacity: 0.26;
}

.colophon {
  grid-template-columns: 1fr auto 1fr;
  gap: 17px 28px;
  padding-top: 34px;
  overflow: visible;
}

.city-pair {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  height: clamp(225px, 26vw, 350px);
  margin: 2px 0 21px;
  overflow: hidden;
  contain: layout paint;
}

.city-pair svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.city-pair__mist path {
  fill: none;
  stroke: url("#cityMistTone");
  stroke-width: 1;
  opacity: 0.38;
  vector-effect: non-scaling-stroke;
}

.city-pair__mist {
  animation: city-mist-drift 20s ease-in-out infinite alternate;
  animation-play-state: paused;
}

@keyframes city-mist-drift {
  from { opacity: 0.46; transform: translate3d(-16px, 2px, 0); }
  to { opacity: 0.82; transform: translate3d(18px, -3px, 0); }
}

.city-pair__ridge,
.city-pair__water,
.city-pair__river,
.city-pair__pearl line,
.city-pair__pearl circle,
.city-pair__tower,
.city-pair__bund rect,
.city-pair__reflections line {
  vector-effect: non-scaling-stroke;
}

.city-pair__ridge {
  fill: none;
  stroke: rgba(72, 83, 84, 0.5);
  stroke-width: 1;
}

.city-pair__ridge--far {
  opacity: 0.45;
}

.city-pair__ridge--near {
  fill: rgba(105, 126, 126, 0.055);
  stroke: rgba(72, 83, 84, 0.62);
}

.city-pair__water,
.city-pair__river {
  stroke: rgba(92, 83, 87, 0.32);
  stroke-width: 1;
}

.city-pair__village rect,
.city-pair__bund rect {
  fill: rgba(105, 89, 91, 0.055);
  stroke: rgba(92, 73, 78, 0.46);
  stroke-width: 1;
}

.city-pair__pearl line,
.city-pair__pearl circle {
  fill: rgba(159, 98, 112, 0.035);
  stroke: rgba(91, 66, 72, 0.6);
  stroke-width: 1;
}

.city-pair__tower {
  fill: rgba(159, 98, 112, 0.035);
  stroke: rgba(91, 66, 72, 0.58);
  stroke-width: 1;
}

.city-pair__reflections line {
  stroke: rgba(159, 98, 112, 0.19);
  stroke-width: 1;
}

.city-pair__city text {
  fill: rgba(54, 50, 51, 0.84);
  font-family: var(--sans);
  font-size: 22px;
  letter-spacing: 0.16em;
}

.city-pair__route,
.city-pair__route-light {
  fill: none;
  stroke: url("#cityRouteTone");
  vector-effect: non-scaling-stroke;
}

.city-pair__route {
  stroke-width: 1;
  opacity: 0.42;
}

.city-pair__route-light {
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 1.4 98.6;
  opacity: 0;
  animation: city-route-travel 14s linear infinite;
  animation-play-state: paused;
}

@keyframes city-route-travel {
  0% { opacity: 0; stroke-dashoffset: 101; }
  12% { opacity: 0.76; }
  78% { opacity: 0.72; }
  100% { opacity: 0; stroke-dashoffset: -99; }
}

.city-pair__arrival {
  fill: #ae7a72;
  opacity: 0.48;
  transition: opacity 800ms ease, r 800ms var(--romance-ease);
}

.city-pair__arrival--to {
  fill: #c7926d;
}

.city-pair__window {
  fill: #b87d67;
  opacity: 0.26;
  transition: opacity 1.2s ease;
}

.city-pair.is-active .city-pair__mist,
.city-pair.is-active .city-pair__route-light {
  animation-play-state: running;
}

.city-pair:hover .city-pair__route,
.city-pair.is-active .city-pair__route {
  opacity: 0.58;
}

body.is-hope-lit .city-pair__window {
  opacity: 0.9;
}

body.is-hope-lit .city-pair__route {
  opacity: 0.76;
}

body.is-hope-lit .city-pair__arrival {
  opacity: 0.94;
  r: 5px;
}

body.is-city-pair-active .romance-veil__bloom,
body.is-city-pair-active .romance-veil::before,
body.is-city-pair-active .romance-veil__thread::after {
  animation-play-state: paused;
}

.colophon__title {
  color: rgba(38, 36, 33, 0.72);
  font-family: var(--serif);
  font-size: 0.77rem;
  letter-spacing: 0.16em;
}

.colophon__places {
  justify-self: center;
  color: rgba(80, 65, 69, 0.84);
  font-variant-numeric: tabular-nums;
}

.colophon__end {
  justify-self: end;
}

@media (max-width: 900px) {
  .chapter-backdrop--distance::before {
    top: 20vh;
    left: -25vw;
    width: 92vw;
    opacity: 0.14;
  }

  .chapter-backdrop--distance::after {
    top: 32vh;
    right: -24vw;
    width: 82vw;
    opacity: 0.075;
  }

  .chapter-backdrop--darkroom::before {
    display: none;
  }

  .chapter-backdrop--window::after {
    right: -17%;
    width: 64vw;
    opacity: 0.24;
  }

  .chapter-backdrop--paper::before {
    left: -22%;
    width: 88vw;
    opacity: 0.44;
  }

  .chapter-backdrop--paper::after {
    width: 88vw;
  }

  .colophon {
    grid-template-columns: 1fr auto;
    gap: 12px 20px;
    margin-top: clamp(170px, 24vh, 250px);
    padding-bottom: 64px;
  }

  .city-pair {
    grid-column: 1 / -1;
    height: clamp(215px, 40vw, 300px);
    margin-bottom: 17px;
  }

  .colophon__places {
    display: block;
    justify-self: end;
    font-size: 0.7rem;
  }

  .colophon__title {
    display: block;
  }

  .colophon__end {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 5px;
  }
}

@media (max-width: 520px) {
  .chapter-backdrop--distance::before {
    top: 17vh;
    left: -41vw;
    width: 118vw;
  }

  .chapter-backdrop--distance::after {
    top: 45vh;
    right: -34vw;
    width: 112vw;
  }

  .chapter-backdrop--darkroom {
    background: repeating-linear-gradient(180deg, transparent 0 108px, rgba(231, 185, 180, 0.025) 109px, transparent 111px 142px);
  }

  .chapter-backdrop--darkroom::after {
    right: -48vw;
    width: 118vw;
    opacity: 0.17;
  }

  .chapter-backdrop--window::before {
    right: -42%;
    width: 104vw;
  }

  .chapter-backdrop--window::after {
    display: none;
  }

  .chapter-backdrop--paper::after {
    right: -55%;
    width: 130vw;
    opacity: 0.12;
  }

  .chapter-backdrop--dawn::before,
  .chapter-backdrop--dawn::after {
    top: 44%;
    width: 44%;
  }

  .colophon {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: clamp(155px, 22vh, 210px);
    padding-top: 24px;
  }

  .city-pair {
    grid-column: 1;
    width: calc(100% + 22px);
    height: 210px;
    margin: 0 0 15px -11px;
  }

  .city-pair svg {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .city-pair__city text {
    font-size: 42px;
    letter-spacing: 0.11em;
  }

  .city-pair__mist path:nth-child(2),
  .city-pair__reflections line:nth-child(even),
  .city-pair__window:nth-child(even) {
    display: none;
  }

  .colophon__places,
  .colophon__end {
    justify-self: start;
    font-size: 0.75rem !important;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .city-pair {
    height: 178px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-backdrop *,
  .city-pair *,
  .city-pair__mist,
  .city-pair__route-light {
    animation: none !important;
    transition: none !important;
  }

  .chapter-backdrop--distance::before,
  .chapter-backdrop--distance::after,
  .chapter-backdrop--darkroom::after,
  .chapter-backdrop--window::before,
  .chapter-backdrop--window::after,
  .chapter-backdrop--paper::before,
  .chapter-backdrop--paper::after {
    transform: none;
  }

  .city-pair__route-light {
    display: none;
  }

  .city-pair__route {
    opacity: 0.62;
  }
}

@media (forced-colors: active) {
  .chapter-backdrop {
    display: none;
  }

  .city-pair__mist,
  .city-pair__route-light,
  .city-pair__reflections {
    display: none;
  }

  .city-pair__ridge,
  .city-pair__water,
  .city-pair__river,
  .city-pair__pearl line,
  .city-pair__pearl circle,
  .city-pair__tower,
  .city-pair__village rect,
  .city-pair__bund rect,
  .city-pair__route {
    fill: Canvas;
    stroke: CanvasText;
  }

  .city-pair__city text,
  .city-pair__window,
  .city-pair__arrival {
    fill: CanvasText;
  }
}

/* Memory weather pass: the atmosphere keeps a little of the warmth already read.
   No new continuous loop is introduced; this reuses the existing veil and Canvas. */
:root {
  --journey-position: 0%;
  --weather-memory-opacity: 0.055;
  --weather-memory-scale: 0.92;
}

body.has-entered .threshold__orbit::before,
body.has-entered .threshold__orbit::after,
body.has-entered .threshold__orbit i {
  animation: none !important;
}

body.archive-is-open .grain,
body.is-data-saver .grain,
body.is-data-saver .romance-veil::before,
body.is-data-saver .romance-veil__bloom {
  animation-play-state: paused !important;
}

body.archive-is-open .city-pair__mist,
body.archive-is-open .city-pair__route-light {
  animation-play-state: paused !important;
}

.romance-veil::before {
  background:
    radial-gradient(ellipse at 17% 64%, rgba(130, 152, 154, 0.085), transparent 34%),
    radial-gradient(ellipse at 83% 31%, rgba(170, 129, 126, 0.075), transparent 31%),
    linear-gradient(108deg, transparent 27%, rgba(157, 149, 183, 0.035) 50%, transparent 73%);
  mix-blend-mode: screen;
}

body[data-tone="blue"] .romance-veil::before {
  background:
    radial-gradient(ellipse at 18% 58%, rgba(130, 152, 154, 0.12), transparent 36%),
    radial-gradient(ellipse at 78% 35%, rgba(157, 149, 183, 0.075), transparent 33%),
    linear-gradient(111deg, transparent 25%, rgba(159, 184, 188, 0.045) 51%, transparent 76%);
}

body[data-tone="warm"] .romance-veil::before {
  background:
    radial-gradient(ellipse at 14% 68%, rgba(157, 149, 183, 0.065), transparent 34%),
    radial-gradient(ellipse at 82% 27%, rgba(199, 143, 109, 0.11), transparent 31%),
    linear-gradient(108deg, transparent 24%, rgba(170, 129, 126, 0.055) 52%, transparent 76%);
}

body[data-tone="ink"] .romance-veil::before {
  background:
    radial-gradient(ellipse at 18% 66%, rgba(159, 98, 112, 0.075), transparent 35%),
    radial-gradient(ellipse at 82% 29%, rgba(177, 139, 165, 0.07), transparent 30%),
    linear-gradient(108deg, transparent 28%, rgba(221, 166, 139, 0.034) 51%, transparent 72%);
}

body[data-tone="day"] .romance-veil::before {
  background:
    radial-gradient(ellipse at 18% 68%, rgba(130, 152, 154, 0.055), transparent 35%),
    radial-gradient(ellipse at 81% 28%, rgba(199, 143, 109, 0.1), transparent 32%),
    linear-gradient(108deg, transparent 26%, rgba(170, 129, 126, 0.045) 52%, transparent 74%);
}

.romance-veil__bloom--two,
body.has-entered .romance-veil__bloom--two,
body[data-tone="ink"] .romance-veil__bloom--two,
body[data-tone="day"] .romance-veil__bloom--two {
  animation: none;
  opacity: var(--weather-memory-opacity);
  background:
    radial-gradient(circle at 42% 44%, rgba(199, 143, 109, 0.17), rgba(170, 129, 126, 0.055) 39%, transparent 70%);
  transform: translate3d(
    calc(0px - var(--ambient-x)),
    calc(0px - var(--ambient-y) - var(--ambient-scroll-y)),
    0
  ) scale(var(--weather-memory-scale));
  transition: opacity 1.4s ease, transform 1.6s var(--romance-ease);
}

.romance-veil__thread::after {
  left: var(--journey-position);
  animation: none !important;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: left 120ms linear, opacity 700ms ease;
}

body.has-entered .romance-veil__thread::after {
  opacity: 0.54;
}

.city-pair__route-light--return {
  display: none;
  animation: none;
}

.city-pair::after {
  position: absolute;
  top: 48%;
  left: 50%;
  width: clamp(82px, 11vw, 142px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 210, 176, 0.22) 0 4%, rgba(199, 143, 109, 0.12) 18%, rgba(170, 129, 126, 0.045) 45%, transparent 72%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.58);
  mix-blend-mode: multiply;
}

body.is-hope-lit .city-pair__window {
  opacity: 0.62;
}

.city-pair.has-same-weather .city-pair__mist {
  animation: none;
  opacity: 0.56;
  transition: opacity 1.4s ease;
}

.city-pair.has-same-weather .city-pair__route-light--outbound {
  display: block;
  animation: same-weather-outbound 4.8s cubic-bezier(0.22, 1, 0.36, 1) 1 both;
  animation-play-state: running;
}

.city-pair.has-same-weather .city-pair__route-light--return {
  display: block;
  animation: same-weather-return 4.8s cubic-bezier(0.22, 1, 0.36, 1) 1 both;
  animation-play-state: running;
}

.city-pair.has-same-weather .city-pair__city--yunnan .city-pair__window {
  opacity: 0.88;
  transition-delay: 350ms;
}

.city-pair.has-same-weather .city-pair__city--shanghai .city-pair__window {
  opacity: 0.9;
  transition-delay: 700ms;
}

.city-pair.has-same-weather .city-pair__arrival {
  opacity: 0.88;
}

.city-pair.has-same-weather::after {
  animation: same-weather-meeting 4.8s cubic-bezier(0.22, 1, 0.36, 1) 1 both;
}

@keyframes same-weather-outbound {
  0% { opacity: 0; stroke-dashoffset: 0; }
  12% { opacity: 0.82; }
  62% { opacity: 0.92; stroke-dashoffset: -50; }
  82% { opacity: 0.34; stroke-dashoffset: -50; }
  100% { opacity: 0; stroke-dashoffset: -50; }
}

@keyframes same-weather-return {
  0% { opacity: 0; stroke-dashoffset: -100; }
  12% { opacity: 0.78; }
  62% { opacity: 0.88; stroke-dashoffset: -50; }
  82% { opacity: 0.32; stroke-dashoffset: -50; }
  100% { opacity: 0; stroke-dashoffset: -50; }
}

@keyframes same-weather-meeting {
  0%, 38% { opacity: 0; transform: translate(-50%, -50%) scale(0.58); }
  62% { opacity: 0.72; transform: translate(-50%, -50%) scale(1); }
  82% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.32); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

@media (max-width: 700px) {
  .romance-veil__bloom--two,
  body.has-entered .romance-veil__bloom--two {
    opacity: calc(var(--weather-memory-opacity) * 0.72);
  }
}

@media (min-width: 2560px), (min-width: 1600px) and (min-resolution: 2dppx) {
  .grain {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .city-pair.has-same-weather .city-pair__route-light--outbound,
  .city-pair.has-same-weather .city-pair__route-light--return {
    display: none;
    animation: none;
  }

  .city-pair.has-same-weather::after {
    display: none;
    animation: none;
  }

  .romance-veil__bloom--two {
    transform: none;
  }
}

@media (forced-colors: active) {
  .city-pair__route-light--return,
  .city-pair::after {
    display: none;
  }
}
