:root {
  --night: #101528;
  --night-2: #171c34;
  --blue: #222c50;
  --cream: #f8efdd;
  --paper: #f4e7cf;
  --ink: #2f2a2a;
  --muted: #b9b4b0;
  --gold: #f2bb68;
  --gold-soft: #f8d79d;
  --coral: #df705c;
  --coral-deep: #a9493d;
  --line: rgba(248, 239, 221, .14);
  --serif: "STKaiti", "KaiTi", "FangSong", "Noto Serif CJK SC", serif;
  --body: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --display: "FZKai-Z03", "STKaiti", "KaiTi", serif;
  --max: 1180px;
  --ease: cubic-bezier(.22, .9, .24, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 16% 8%, rgba(89, 105, 171, .21), transparent 34rem),
    linear-gradient(180deg, var(--night) 0%, #151a31 38%, #261d32 72%, #3b2430 100%);
  font-family: var(--body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { color: #231c20; background: var(--gold-soft); }
[hidden] { display: none !important; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .12;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.22) 0 1px, transparent 1.5px);
  background-size: auto, 7px 7px;
  mix-blend-mode: soft-light;
}

#skyCanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.ambient-light {
  position: fixed;
  z-index: 1;
  width: 42rem;
  height: 42rem;
  left: -21rem;
  top: -21rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(241, 187, 104, .12), transparent 67%);
  mix-blend-mode: screen;
  will-change: transform;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: 1rem;
  padding: .6rem 1rem;
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-180%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.eyebrow,
.hero-overline {
  margin: 0 0 .65rem;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .26em;
}

/* Arrival */
.arrival {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100svh;
  padding: 4rem 1.5rem 2rem;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(65, 77, 130, .48), transparent 32rem),
    linear-gradient(140deg, #0c1020, #151c37 55%, #2a1d32);
  transition: opacity .9s var(--ease), visibility .9s;
}
.arrival.is-opening { pointer-events: none; }
.arrival.is-gone { opacity: 0; visibility: hidden; }
.arrival::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 49.7%, rgba(255,255,255,.035) 50%, transparent 50.3%);
}
.arrival-stamp {
  position: absolute;
  top: 2rem;
  left: 50%;
  z-index: 2;
  margin: 0;
  color: rgba(248,239,221,.52);
  font-size: .7rem;
  letter-spacing: .22em;
  transform: translateX(-50%);
  white-space: nowrap;
}
.arrival-copy { position: relative; z-index: 2; }
.arrival-copy h1 {
  margin: 0;
  color: #fff8ea;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: .03em;
  text-shadow: 0 10px 50px rgba(0,0,0,.35);
}
.arrival-desc {
  max-width: 40rem;
  margin: 1.35rem auto 1.8rem;
  color: rgba(248,239,221,.7);
  font-family: var(--serif);
  font-size: clamp(.95rem, 2vw, 1.08rem);
  line-height: 2;
}
.arrival-orbit {
  position: absolute;
  left: 50%;
  top: 49%;
  border: 1px solid rgba(242,187,104,.13);
  border-radius: 50%;
  pointer-events: none;
}
.arrival-orbit::before,
.arrival-orbit::after {
  content: "";
  position: absolute;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold);
}
.arrival-orbit-a { width: min(78vw, 54rem); height: min(78vw, 54rem); transform: translate(-50%,-50%); animation: orbit 18s linear infinite; }
.arrival-orbit-a::before { left: 18%; top: 4%; }
.arrival-orbit-a::after { right: 10%; bottom: 14%; }
.arrival-orbit-b { width: min(105vw, 72rem); height: min(105vw, 72rem); transform: translate(-50%,-50%); animation: orbitBack 28s linear infinite; }
.arrival-orbit-b::before { right: 22%; top: 2%; }
.arrival-orbit-b::after { left: 6%; bottom: 28%; }
@keyframes orbit { to { transform: translate(-50%,-50%) rotate(1turn); } }
@keyframes orbitBack { to { transform: translate(-50%,-50%) rotate(-1turn); } }

.envelope-button {
  position: relative;
  z-index: 4;
  width: 18.5rem;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
}
.envelope-scene {
  position: relative;
  display: block;
  width: 13.5rem;
  height: 8.5rem;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 22px 24px rgba(0,0,0,.4));
  transform-style: preserve-3d;
  perspective: 900px;
  transition: transform .35s var(--ease);
}
.envelope-button:hover .envelope-scene { transform: translateY(-8px) rotate(-1deg); }
.envelope-scene > span { position: absolute; display: block; }
.envelope-back { inset: 0; border-radius: .45rem; background: #c98f58; }
.envelope-front {
  inset: 0;
  z-index: 4;
  border-radius: 0 0 .45rem .45rem;
  background: linear-gradient(155deg, #edc184, #cc8e54);
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
}
.envelope-flap {
  inset: 0;
  z-index: 5;
  background: linear-gradient(#f1c98d, #c88e58);
  clip-path: polygon(0 0, 50% 59%, 100% 0);
  transform-origin: top;
  transition: transform .75s var(--ease), z-index .15s .3s;
}
.envelope-letter {
  z-index: 3;
  left: 1rem;
  right: 1rem;
  top: .7rem;
  height: 6.8rem;
  padding: 1rem;
  color: var(--ink);
  border-radius: .25rem;
  background: var(--paper);
  transition: transform .9s .18s var(--ease);
}
.envelope-letter b { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.envelope-letter i { display: block; margin-top: .8rem; color: #a15b4e; font-family: var(--serif); font-size: .78rem; font-style: normal; }
.wax-seal {
  z-index: 7;
  left: 50%;
  top: 3.25rem;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: -1.25rem;
  color: #f7dfbd;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: var(--coral-deep);
  font-family: var(--serif);
  line-height: 2.25rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  transition: opacity .25s .05s, transform .35s;
}
.arrival.is-opening .envelope-flap { z-index: 1; transform: rotateX(180deg); }
.arrival.is-opening .wax-seal { opacity: 0; transform: scale(.3); }
.arrival.is-opening .envelope-letter { transform: translateY(-5.8rem) scale(1.1); }
.open-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13rem;
  min-height: 2.9rem;
  padding: .65rem 1.25rem;
  color: var(--cream);
  border: 1px solid rgba(248,239,221,.35);
  border-radius: 99px;
  font-size: .9rem;
  letter-spacing: .14em;
  transition: color .25s, background .25s, border .25s;
}
.envelope-button:hover .open-label { color: #271c21; border-color: var(--gold-soft); background: var(--gold-soft); }
.arrival-tip { position: relative; z-index: 2; margin: .85rem 0 0; color: rgba(248,239,221,.45); font-size: .72rem; letter-spacing: .08em; }
.arrival-tip span { color: var(--gold); }

/* Navigation */
#mainContent { position: relative; z-index: 2; }
.site-nav {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 4.6rem;
  padding: .65rem max(1.25rem, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(12, 16, 31, .7);
  backdrop-filter: blur(18px) saturate(120%);
}
.wordmark { display: flex; align-items: baseline; gap: .55rem; font-family: var(--display); font-size: 1.3rem; white-space: nowrap; }
.wordmark span { color: var(--gold); font-family: var(--body); font-size: .55rem; font-weight: 700; letter-spacing: .18em; }
.site-nav nav { display: flex; justify-content: center; gap: clamp(1rem, 3vw, 2.6rem); }
.site-nav nav a { position: relative; color: rgba(248,239,221,.64); font-size: .78rem; transition: color .2s; }
.site-nav nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.6rem; height: 1px; background: var(--gold); transition: right .25s; }
.site-nav nav a:hover,
.site-nav nav a.is-current { color: var(--cream); }
.site-nav nav a.is-current::after { right: 0; }
.sound-button { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; background: rgba(255,255,255,.04); }
.sound-text { color: rgba(248,239,221,.72); font-size: .7rem; }
.sound-bars { display: flex; align-items: center; gap: 2px; height: .9rem; }
.sound-bars i { width: 2px; height: 30%; border-radius: 2px; background: var(--gold); animation: sound 1s ease-in-out infinite; }
.sound-bars i:nth-child(2) { animation-delay: -.3s; }
.sound-bars i:nth-child(3) { animation-delay: -.6s; }
.sound-bars i:nth-child(4) { animation-delay: -.45s; }
.sound-button[aria-pressed="false"] .sound-bars i { height: 2px; animation: none; }
@keyframes sound { 50% { height: 100%; } }
.scroll-progress { position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: linear-gradient(90deg, var(--coral), var(--gold)); }

/* Shared */
.chapter { position: relative; max-width: var(--max); margin: 0 auto; padding: 8.5rem 1.5rem; }
.chapter-heading {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  max-width: 52rem;
  margin-bottom: 4rem;
}
.chapter-no { color: var(--coral); border-top: 1px solid currentColor; padding-top: .5rem; font-family: var(--serif); font-size: 1.5rem; }
.chapter-heading h2 { margin: 0; color: var(--cream); font-family: var(--display); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 500; line-height: 1.2; }
.chapter-heading > div > p:last-child { max-width: 36rem; margin: 1rem 0 0; color: rgba(248,239,221,.58); }
.chapter-heading.light .chapter-no { color: var(--gold); }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.primary-action {
  min-height: 3.15rem;
  padding: .75rem 1.35rem;
  color: #fff8ec;
  border: 1px solid var(--coral);
  border-radius: 99px;
  cursor: pointer;
  background: var(--coral-deep);
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: 0 10px 28px rgba(133,52,44,.22);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.primary-action:hover { transform: translateY(-2px); background: var(--coral); box-shadow: 0 14px 36px rgba(133,52,44,.36); }
.primary-action:active { transform: scale(.97); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(30rem, 1.08fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center; min-height: calc(100svh - 4.6rem); padding-top: 6.8rem; padding-bottom: 5rem; }
.chapter-label { position: absolute; top: 2rem; left: 1.5rem; color: rgba(248,239,221,.38); font-size: .7rem; letter-spacing: .18em; }
.chapter-label span { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-right: .55rem; color: var(--gold); border: 1px solid rgba(242,187,104,.4); border-radius: 50%; font-family: var(--serif); font-size: .8rem; }
.hero-copy h2 { margin: 0; font-family: var(--display); font-size: clamp(2.7rem, 5.8vw, 5.15rem); font-weight: 500; line-height: 1.12; letter-spacing: .01em; }
.hero-copy h2 em { color: var(--gold-soft); font-style: normal; }
.hero-lead { max-width: 35rem; margin: 1.75rem 0 0; padding-left: 1.2rem; color: rgba(248,239,221,.66); border-left: 2px solid var(--coral); font-family: var(--serif); font-size: 1.05rem; line-height: 2; }
.memory-tv { position: relative; width: min(100%, 35rem); margin: 1.5rem auto 0; padding-top: 2.5rem; }
.tv-antenna { position: absolute; left: 50%; top: 0; width: 8rem; height: 4rem; transform: translateX(-50%); }
.tv-antenna i { position: absolute; left: 50%; bottom: 0; width: 1px; height: 5rem; background: rgba(248,239,221,.55); transform-origin: bottom; }
.tv-antenna i:first-child { transform: rotate(-34deg); }
.tv-antenna i:last-child { transform: rotate(34deg); }
.tv-shell { position: relative; padding: 1.15rem 4.7rem 1.15rem 1.15rem; border: 1px solid rgba(255,255,255,.12); border-radius: 2.2rem; background: linear-gradient(145deg, #8d6652, #493c3b 62%, #332e31); box-shadow: 0 35px 70px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.2); transform: rotate(1.2deg); }
.tv-screen { position: relative; min-height: 25rem; overflow: hidden; border: .65rem solid #1d2024; border-radius: 2.8rem / 2rem; background: radial-gradient(circle at 50% 28%, #7187a2, #34435d 50%, #1c2538); box-shadow: inset 0 0 60px rgba(0,0,0,.55); }
.screen-noise { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .17; background: repeating-linear-gradient(0deg, rgba(255,255,255,.15) 0 1px, transparent 1px 3px); animation: scan 8s linear infinite; }
@keyframes scan { to { transform: translateY(9px); } }
.hero-characters { position: absolute; inset: 0; }
.hero-characters img { position: absolute; bottom: -.3rem; width: 43%; height: 68%; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0,0,0,.35)); animation: tvFloat 5s ease-in-out infinite; }
.hero-characters img:nth-child(1) { left: -4%; }
.hero-characters img:nth-child(2) { right: -3%; width: 40%; animation-delay: -2s; }
.hero-characters img:nth-child(3) { left: 33%; width: 34%; height: 60%; z-index: 2; animation-delay: -3.3s; }
@keyframes tvFloat { 50% { transform: translateY(-8px) rotate(1deg); } }
.tv-message { position: relative; z-index: 5; display: grid; align-content: start; min-height: 25rem; padding: 2.3rem 2rem 11rem; text-align: center; }
.tv-message p { margin: 0; color: #fff8e9; font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.65; text-shadow: 0 2px 14px rgba(0,0,0,.5); transition: opacity .25s, transform .25s; }
.tv-message span { margin-top: .6rem; color: var(--gold-soft); font-family: var(--serif); font-size: .92rem; transition: opacity .25s; }
.tv-message.is-changing p { opacity: 0; transform: translateY(8px); }
.tv-message.is-changing span { opacity: 0; }
.tv-controls { position: absolute; right: 1.3rem; top: 50%; display: grid; place-items: center; gap: 1.1rem; transform: translateY(-50%); }
.tv-controls span { width: 2.2rem; height: 2.2rem; border: .35rem double rgba(238,209,167,.45); border-radius: 50%; background: #2d292c; }
.tv-controls i { width: .45rem; height: .45rem; border-radius: 50%; background: #cc6c58; box-shadow: 0 0 10px rgba(204,108,88,.6); }
.tv-caption { margin: 1rem 0 0; color: rgba(248,239,221,.38); font-size: .68rem; letter-spacing: .12em; text-align: center; }
.down-cue { position: absolute; left: 1.5rem; bottom: 1.8rem; display: inline-flex; align-items: center; gap: .8rem; color: rgba(248,239,221,.46); font-size: .7rem; letter-spacing: .12em; }
.down-cue i { position: relative; width: 4rem; height: 1px; overflow: hidden; background: rgba(248,239,221,.2); }
.down-cue i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateX(-110%); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 60%,100% { transform: translateX(110%); } }

/* Letters */
.letters::before { content: ""; position: absolute; inset: 3rem -30vw; z-index: -1; background: radial-gradient(circle at 75% 48%, rgba(216,104,85,.12), transparent 30rem); }
.character-stage { display: grid; grid-template-columns: 1fr .9fr; min-height: 38rem; overflow: hidden; border: 1px solid var(--line); border-radius: 2rem; background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.character-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 5rem); }
.character-count { margin: 0 0 2.2rem; color: var(--gold); font-family: var(--serif); font-size: .85rem; letter-spacing: .12em; }
.character-from { margin: 0 0 .3rem; color: rgba(248,239,221,.56); font-size: .85rem; }
.character-copy h3 { margin: 0; font-family: var(--display); font-size: clamp(3.6rem, 8vw, 6.7rem); font-weight: 500; line-height: 1; }
.character-copy blockquote { max-width: 30rem; margin: 2rem 0 1rem; color: var(--gold-soft); font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.65rem); line-height: 1.7; }
.character-preview { max-width: 34rem; min-height: 3.4rem; margin: 0; color: rgba(248,239,221,.54); font-size: .88rem; }
.stage-actions { display: flex; align-items: center; gap: 1rem; margin-top: 2.1rem; }
.arrow-actions { display: flex; gap: .45rem; }
.arrow-actions button { width: 3.15rem; height: 3.15rem; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.035); transition: border .2s, background .2s, transform .2s; }
.arrow-actions button:hover { border-color: var(--gold); background: rgba(242,187,104,.1); transform: translateY(-2px); }
.character-portrait-wrap { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 38rem; overflow: hidden; background: radial-gradient(circle at 50% 48%, var(--stage-glow, rgba(201,138,75,.5)), transparent 54%), linear-gradient(160deg, #e5ad72, #935848 65%, #4d3542); }
.portrait-halo { position: absolute; width: 22rem; height: 22rem; left: 50%; top: 48%; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transform: translate(-50%,-50%); }
.portrait-halo::before,
.portrait-halo::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.portrait-halo::before { inset: -2.5rem; }
.portrait-halo::after { inset: 3rem; }
.portrait-year { position: absolute; left: 1.4rem; top: 1.3rem; z-index: 2; padding: .35rem .7rem; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; font-size: .63rem; letter-spacing: .14em; }
.character-portrait { position: relative; z-index: 2; width: min(92%, 29rem); height: 87%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 26px 24px rgba(42,18,25,.38)); transition: opacity .25s, transform .7s var(--ease); }
.character-stage.is-switching .character-portrait { opacity: 0; transform: translateY(2rem) scale(.92) rotate(2deg); }
.character-catchphrase { position: absolute; z-index: 4; right: 1.4rem; bottom: 1.3rem; max-width: 72%; margin: 0; padding: .45rem .8rem; color: #2d1e22; border-radius: .2rem; background: rgba(255,244,222,.88); font-family: var(--serif); font-size: .8rem; transform: rotate(-1.5deg); }
.character-rail { display: flex; gap: .75rem; margin-top: 1.1rem; padding: .4rem 0 1rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(242,187,104,.4) transparent; }
.character-tab { flex: 0 0 4.45rem; display: grid; gap: .4rem; justify-items: center; padding: .3rem; color: rgba(248,239,221,.52); border: 0; cursor: pointer; background: transparent; font-size: .65rem; }
.character-tab span { display: grid; place-items: end center; width: 3.9rem; height: 3.9rem; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); transition: border .2s, transform .2s, background .2s; }
.character-tab img { width: 94%; height: 94%; object-fit: contain; }
.character-tab:hover span,
.character-tab[aria-selected="true"] span { border-color: var(--gold); background: rgba(242,187,104,.12); transform: translateY(-3px); }
.character-tab[aria-selected="true"] { color: var(--cream); }

/* Cinema */
.cinema { max-width: none; padding-left: max(1.5rem, calc((100vw - var(--max)) / 2)); padding-right: max(1.5rem, calc((100vw - var(--max)) / 2)); background: linear-gradient(180deg, rgba(4,7,15,.22), rgba(4,7,15,.72) 25%, #090d18 100%); }
.cinema-room { position: relative; }
.projector-beam { position: absolute; left: 50%; top: -5rem; width: 70%; height: 8rem; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(253,228,183,.06), transparent); clip-path: polygon(39% 0, 61% 0, 100% 100%, 0 100%); transform: translateX(-50%); }
.cinema-screen { position: relative; max-width: 68rem; margin: 0 auto; padding: .7rem; overflow: hidden; border: 1px solid rgba(248,239,221,.24); background: #05070d; box-shadow: 0 28px 90px rgba(0,0,0,.65); }
.cinema-screen video { display: block; width: 100%; max-height: 68svh; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.cinema-curtain { position: absolute; z-index: 3; top: 0; bottom: 0; width: 2.2rem; pointer-events: none; background: repeating-linear-gradient(90deg, #551c2c 0 8px, #7a293b 8px 16px); transition: transform .8s var(--ease); }
.cinema-curtain.left { left: 0; transform-origin: left; }
.cinema-curtain.right { right: 0; transform-origin: right; }
.cinema-screen:hover .cinema-curtain.left { transform: translateX(-75%); }
.cinema-screen:hover .cinema-curtain.right { transform: translateX(75%); }
.cinema-console { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; max-width: 68rem; margin: 1.7rem auto 0; }
.cinema-kicker { margin: 0 0 .4rem; color: var(--coral); font-size: .68rem; font-weight: 700; letter-spacing: .16em; }
.cinema-console h3 { margin: 0; font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 500; }
.cinema-console > div:first-child > p:last-child { max-width: 43rem; margin: .65rem 0 0; color: rgba(248,239,221,.5); font-size: .84rem; }
.film-tabs { display: flex; gap: .7rem; }
.film-tab { display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.03); transition: border .2s, background .2s, transform .2s; }
.film-tab b { display: block; font-family: var(--serif); font-size: 1rem; }
.film-tab small { display: block; color: rgba(248,239,221,.45); font-size: .5rem; letter-spacing: .12em; }
.film-tab:hover,
.film-tab[aria-selected="true"] { border-color: var(--gold); background: rgba(242,187,104,.12); transform: translateY(-3px); }

/* Years */
.year-buttons { display: flex; gap: .5rem; margin-bottom: 1rem; padding-bottom: .7rem; overflow-x: auto; }
.year-button { flex: 0 0 auto; min-width: 5.3rem; padding: .7rem .8rem; color: rgba(248,239,221,.45); border: 1px solid var(--line); border-radius: 99px; cursor: pointer; background: transparent; font-family: var(--serif); transition: color .2s, border .2s, background .2s; }
.year-button:hover,
.year-button[aria-selected="true"] { color: #2a2023; border-color: var(--gold-soft); background: var(--gold-soft); }
.year-memory { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; min-height: 28rem; overflow: hidden; border: 1px solid var(--line); border-radius: 2rem; background: linear-gradient(135deg, #2a3156, #171b32 55%, #332333); }
.year-memory::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25; background: linear-gradient(105deg, transparent 44%, rgba(242,187,104,.18) 44.2%, transparent 44.5%); }
.year-big { display: grid; place-items: center; color: transparent; font-family: var(--body); font-size: clamp(5rem, 15vw, 11rem); font-weight: 900; line-height: 1; -webkit-text-stroke: 1px rgba(248,239,221,.2); text-shadow: 0 0 60px rgba(242,187,104,.1); }
.year-copy { position: relative; z-index: 2; align-self: center; max-width: 35rem; padding: 3rem 3.5rem; }
.year-emoji { margin: 0 0 1rem; font-size: 2.2rem; }
.year-copy h3 { margin: 0; color: var(--gold-soft); font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; line-height: 1.25; }
.year-copy > p:not(.year-emoji) { margin: 1.2rem 0 0; color: rgba(248,239,221,.75); font-family: var(--serif); font-size: 1.08rem; }
.year-detail { margin-top: 1.2rem; padding-top: 1.2rem; color: rgba(248,239,221,.48); border-top: 1px solid var(--line); font-size: .84rem; }
.year-tape { position: absolute; left: 1.5rem; bottom: 1.5rem; display: flex; gap: .5rem; }
.year-tape span { width: 2.6rem; height: 2.6rem; border: .55rem dotted rgba(248,239,221,.17); border-radius: 50%; animation: orbit 9s linear infinite; }
.year-tape span:last-child { animation-direction: reverse; }
.year-memory.is-changing .year-copy { animation: yearSwap .5s var(--ease); }
@keyframes yearSwap { from { opacity: .15; transform: translateX(1.5rem); } }

/* Reply */
.reply { max-width: none; padding-left: max(1.5rem, calc((100vw - var(--max)) / 2)); padding-right: max(1.5rem, calc((100vw - var(--max)) / 2)); background: radial-gradient(circle at 80% 45%, rgba(223,112,92,.13), transparent 30rem); }
.reply-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(26rem, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.reply-form { padding: 2rem; border: 1px solid var(--line); border-radius: 1.5rem; background: rgba(255,255,255,.025); }
.prompt-label { margin-bottom: .7rem; color: rgba(248,239,221,.52); font-size: .75rem; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.prompt-chips button { padding: .5rem .75rem; color: rgba(248,239,221,.7); border: 1px solid var(--line); border-radius: 99px; cursor: pointer; background: rgba(255,255,255,.025); font-size: .72rem; transition: color .2s, border .2s, background .2s; }
.prompt-chips button:hover { color: #281d21; border-color: var(--gold-soft); background: var(--gold-soft); }
.reply-form label { position: relative; display: block; margin-top: 1.15rem; }
.reply-form label > span { display: block; margin-bottom: .55rem; color: rgba(248,239,221,.75); font-size: .78rem; font-weight: 700; letter-spacing: .05em; }
.reply-form input,
.reply-form textarea { width: 100%; color: var(--cream); border: 1px solid rgba(248,239,221,.18); border-radius: .8rem; outline: none; background: rgba(0,0,0,.16); transition: border .2s, box-shadow .2s; }
.reply-form input { height: 3.1rem; padding: 0 1rem; }
.reply-form textarea { min-height: 12rem; padding: 1rem; resize: vertical; line-height: 1.8; }
.reply-form input:focus,
.reply-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,187,104,.1); }
.reply-form ::placeholder { color: rgba(248,239,221,.3); }
.reply-form small { position: absolute; right: .8rem; bottom: .55rem; color: rgba(248,239,221,.34); font-size: .65rem; }
.reply-form small b { font-weight: 400; }
.reply-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.text-action { padding: .6rem .4rem; color: rgba(248,239,221,.58); border: 0; border-bottom: 1px solid rgba(248,239,221,.25); cursor: pointer; background: transparent; font-size: .78rem; }
.text-action:hover { color: var(--gold-soft); border-color: var(--gold); }
.privacy-note { margin: .9rem 0 0; color: rgba(248,239,221,.32); font-size: .66rem; }
.reply-paper-wrap { position: relative; padding: 2.2rem; perspective: 1000px; }
.reply-paper-wrap::before,
.reply-paper-wrap::after { content: ""; position: absolute; z-index: -1; inset: 2.5rem 2rem; background: #d7c1a2; transform: rotate(3deg); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.reply-paper-wrap::after { transform: rotate(-2deg); background: #e5d4ba; }
.reply-paper { position: relative; min-height: 34rem; padding: clamp(2rem, 6vw, 4.3rem); overflow: hidden; color: var(--ink); background: repeating-linear-gradient(0deg, transparent 0 2.25rem, rgba(75,91,124,.14) 2.25rem 2.3rem), var(--paper); box-shadow: 0 35px 90px rgba(0,0,0,.32); transform: rotate(.5deg); transition: transform .5s var(--ease); }
.reply-paper:hover { transform: rotate(0) translateY(-4px); }
.paper-date { color: #8c7966; font-size: .72rem; letter-spacing: .15em; text-align: right; }
.paper-to { margin: 2.5rem 0 1.3rem; font-family: var(--serif); font-size: 1.18rem; font-weight: 700; }
.paper-content { min-height: 13.8rem; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--serif); font-size: clamp(1rem, 2.3vw, 1.18rem); line-height: 2.05; }
.paper-sign { margin: 2rem 0 0; color: #6f554b; font-family: var(--serif); font-size: 1.15rem; text-align: right; }
.paper-seal { position: absolute; right: 2rem; bottom: 2rem; display: grid; place-items: center; width: 5rem; height: 5rem; color: var(--coral-deep); border: .28rem double var(--coral-deep); border-radius: 50%; font-family: var(--serif); font-size: 1rem; font-weight: 700; opacity: 0; transform: rotate(-13deg) scale(2); }
.paper-seal.is-stamped { animation: stamp .7s var(--ease) forwards; }
@keyframes stamp { 55% { opacity: 1; transform: rotate(-13deg) scale(.88); } 100% { opacity: .82; transform: rotate(-13deg) scale(1); } }
.saved-letters { margin-top: 5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.saved-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.saved-head h3 { margin: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.saved-head span { color: rgba(248,239,221,.38); font-size: .7rem; }
.saved-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.saved-note { min-height: 10rem; padding: 1.3rem; color: var(--ink); background: #eadabf; box-shadow: 0 12px 30px rgba(0,0,0,.15); transform: rotate(var(--note-rot, 0)); }
.saved-note p { display: -webkit-box; margin: 0; overflow: hidden; font-family: var(--serif); font-size: .86rem; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.saved-note span { display: block; margin-top: .8rem; color: #8e6f61; font-size: .64rem; text-align: right; }

/* Finale */
.finale { position: relative; display: grid; place-items: center; min-height: 85svh; padding: 10rem 1.5rem 4rem; overflow: hidden; text-align: center; background: radial-gradient(circle at 50% 68%, rgba(239,165,102,.27), transparent 25rem), linear-gradient(180deg, transparent, rgba(69,35,44,.78)); }
.finale > p:first-of-type { margin: 0; color: rgba(248,239,221,.58); font-family: var(--serif); font-size: 1.1rem; }
.finale h2 { position: relative; z-index: 2; margin: .7rem 0 0; font-family: var(--display); font-size: clamp(2.6rem, 6vw, 5.3rem); font-weight: 500; line-height: 1.2; }
.finale-sign { position: relative; z-index: 2; margin: 1.2rem 0 0; color: var(--gold-soft); font-family: var(--serif); font-size: 1.15rem; }
.finale > a { position: relative; z-index: 3; margin-top: 3rem; padding-bottom: .2rem; color: rgba(248,239,221,.55); border-bottom: 1px solid rgba(248,239,221,.25); font-size: .75rem; }
.finale > a span { color: var(--gold); }
.finale-characters { position: absolute; inset: auto 0 0; height: 58%; opacity: .46; mask-image: linear-gradient(to bottom, transparent, black 40%); }
.finale-characters img { position: absolute; bottom: -4%; width: min(22vw, 14rem); height: 75%; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0,0,0,.28)); }
.finale-characters img:nth-child(1) { left: 2%; transform: rotate(-4deg); }
.finale-characters img:nth-child(2) { left: 20%; height: 58%; }
.finale-characters img:nth-child(3) { right: 20%; height: 61%; }
.finale-characters img:nth-child(4) { right: 2%; transform: rotate(4deg); }

/* Letter reader */
.letter-modal { position: fixed; inset: 0; z-index: 700; display: grid; place-items: center; padding: 1.5rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,7,14,.82); backdrop-filter: blur(14px); }
.letter-reader { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(18rem,.8fr) minmax(24rem,1.2fr); width: min(70rem, 96vw); max-height: min(50rem, 92svh); overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 1.6rem; background: #18203b; box-shadow: 0 45px 120px rgba(0,0,0,.6); animation: readerIn .55s var(--ease); }
@keyframes readerIn { from { opacity: 0; transform: translateY(2rem) scale(.97); } }
.modal-close { position: absolute; z-index: 8; right: 1rem; top: 1rem; width: 2.5rem; height: 2.5rem; color: #6d554d; border: 1px solid rgba(48,42,42,.15); border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.4); font-size: 1.5rem; line-height: 1; }
.reader-character { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 40rem; padding: 2.2rem 2rem; overflow: hidden; background: radial-gradient(circle at 50% 45%, var(--reader-glow, rgba(201,138,75,.55)), transparent 55%), #202945; }
.reader-character > p { position: relative; z-index: 2; margin: 0; color: rgba(248,239,221,.52); font-size: .65rem; font-weight: 700; letter-spacing: .2em; }
.reader-character img { position: absolute; left: 50%; bottom: 4.4rem; width: 90%; height: 78%; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 24px 24px rgba(0,0,0,.38)); animation: readerChar .8s var(--ease); }
@keyframes readerChar { from { opacity: 0; transform: translate(-50%, 3rem) scale(.9); } }
.reader-character blockquote { position: relative; z-index: 2; margin: auto 0 0; padding: .8rem 1rem; color: #2d2223; background: rgba(248,239,221,.9); font-family: var(--serif); font-size: .92rem; transform: rotate(-1deg); }
.reader-paper { min-height: 40rem; padding: clamp(2.2rem, 5vw, 4.5rem); overflow-y: auto; color: var(--ink); background: repeating-linear-gradient(0deg, transparent 0 2.4rem, rgba(75,91,124,.09) 2.4rem 2.45rem), var(--paper); }
.reader-number { margin: 0 0 2.3rem; color: #a25348; font-size: .62rem; font-weight: 700; letter-spacing: .2em; }
.reader-from { margin: 0; color: #907d6d; font-size: .8rem; }
.reader-paper h2 { margin: .2rem 0 1.6rem; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
.reader-body p { margin: 0 0 1.25rem; font-family: var(--serif); font-size: clamp(1rem, 2vw, 1.1rem); line-height: 2; opacity: 0; transform: translateY(12px); animation: lineReveal .55s var(--ease) forwards; }
.reader-body p:nth-child(2) { animation-delay: .14s; }
.reader-body p:nth-child(3) { animation-delay: .28s; }
@keyframes lineReveal { to { opacity: 1; transform: none; } }
.reader-sign { margin: 2rem 0 0; color: #785a4d; font-family: var(--serif); font-size: 1.15rem; text-align: right; }
.reader-actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(47,42,42,.12); }
.reader-actions button { padding: .55rem .2rem; color: #77645b; border: 0; cursor: pointer; background: transparent; font-size: .75rem; }
.reader-actions .keep-quote { padding: .65rem 1rem; color: #fff; border-radius: 99px; background: var(--coral-deep); }

.toast { position: fixed; z-index: 1000; left: 50%; bottom: 1.5rem; max-width: calc(100vw - 2rem); padding: .75rem 1rem; color: #241b1e; border-radius: 99px; background: var(--gold-soft); box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: .78rem; opacity: 0; pointer-events: none; transform: translate(-50%, 1rem); transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.noscript-note { position: fixed; z-index: 999; left: 0; right: 0; bottom: 0; margin: 0; padding: .8rem; color: #2b1e20; background: var(--gold-soft); text-align: center; }

/* Responsive */
@media (max-width: 900px) {
  .site-nav { grid-template-columns: 1fr auto; gap: 1rem; }
  .site-nav nav { position: fixed; left: 50%; bottom: .8rem; width: min(92vw, 32rem); padding: .7rem .75rem; border: 1px solid var(--line); border-radius: 99px; background: rgba(10,13,26,.88); box-shadow: 0 12px 36px rgba(0,0,0,.35); backdrop-filter: blur(16px); transform: translateX(-50%); }
  .site-nav nav a { flex: 1; font-size: .67rem; text-align: center; }
  .site-nav nav a::after { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 7rem; }
  .hero-copy { max-width: 43rem; }
  .memory-tv { width: min(100%, 37rem); }
  .down-cue { display: none; }
  .character-stage { grid-template-columns: 1fr; }
  .character-copy { order: 2; }
  .character-portrait-wrap { min-height: 30rem; }
  .cinema-console { grid-template-columns: 1fr; }
  .film-tabs { justify-content: flex-start; }
  .year-memory { grid-template-columns: 1fr; }
  .year-big { min-height: 12rem; padding-top: 2rem; }
  .year-copy { padding-top: 0; }
  .reply-layout { grid-template-columns: 1fr; }
  .reply-paper-wrap { max-width: 42rem; width: 100%; margin: 0 auto; }
  .letter-reader { grid-template-columns: 1fr; overflow-y: auto; }
  .reader-character { min-height: 18rem; }
  .reader-character img { left: auto; right: 1rem; bottom: -1rem; width: 48%; height: 100%; transform: none; }
  .reader-character blockquote { max-width: 55%; }
  .reader-paper { min-height: auto; overflow: visible; }
}

@media (max-width: 620px) {
  .chapter { padding: 6.5rem 1rem; }
  .chapter-heading { grid-template-columns: 2.7rem 1fr; gap: .8rem; margin-bottom: 2.6rem; }
  .chapter-no { font-size: 1rem; }
  .arrival { padding-left: 1rem; padding-right: 1rem; }
  .arrival-desc br { display: none; }
  .arrival-copy h1 { font-size: clamp(2.35rem, 12vw, 3.6rem); }
  .arrival-orbit-a { width: 130vw; height: 130vw; }
  .arrival-orbit-b { width: 180vw; height: 180vw; }
  .envelope-button { width: 16rem; }
  .site-nav { min-height: 4rem; padding: .55rem 1rem; }
  .wordmark { font-size: 1.15rem; }
  .sound-text { display: none; }
  .hero { padding-top: 6.2rem; }
  .chapter-label { top: 1.5rem; left: 1rem; }
  .hero-copy h2 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .hero-lead { font-size: .95rem; }
  .memory-tv { padding-top: 1.6rem; }
  .tv-antenna { transform: translateX(-50%) scale(.72); transform-origin: bottom; }
  .tv-shell { padding: .7rem 3.2rem .7rem .7rem; border-radius: 1.4rem; }
  .tv-screen { min-height: 20rem; border-width: .42rem; border-radius: 1.9rem / 1.4rem; }
  .tv-message { min-height: 20rem; padding: 1.5rem 1rem 9rem; }
  .tv-message p { font-size: 1.15rem; }
  .tv-controls { right: .75rem; gap: .7rem; }
  .tv-controls span { width: 1.55rem; height: 1.55rem; }
  .character-copy { padding: 2rem 1.3rem; }
  .character-count { margin-bottom: 1.2rem; }
  .character-copy h3 { font-size: 3.4rem; }
  .character-portrait-wrap { min-height: 25rem; }
  .portrait-halo { width: 17rem; height: 17rem; }
  .stage-actions { align-items: stretch; flex-direction: column; }
  .arrow-actions { justify-content: flex-end; }
  .character-rail { margin-left: -.2rem; margin-right: -.2rem; }
  .cinema { padding-left: 1rem; padding-right: 1rem; }
  .cinema-screen { padding: .35rem; }
  .cinema-curtain { width: 1rem; }
  .cinema-console { gap: 1.2rem; }
  .year-big { font-size: 5.4rem; }
  .year-copy { padding: 0 1.4rem 2.2rem; }
  .reply { padding-left: 1rem; padding-right: 1rem; }
  .reply-form { padding: 1.3rem; }
  .reply-paper-wrap { padding: 1rem; }
  .reply-paper-wrap::before,
  .reply-paper-wrap::after { inset: 1.3rem .7rem; }
  .reply-paper { min-height: 31rem; padding: 2.2rem 1.5rem; }
  .paper-seal { right: 1rem; bottom: 1rem; }
  .saved-list { grid-template-columns: 1fr; }
  .finale { min-height: 75svh; padding-bottom: 7rem; }
  .finale-characters img { width: 28vw; }
  .letter-modal { padding: .55rem; }
  .letter-reader { width: 100%; max-height: 96svh; border-radius: 1rem; }
  .reader-character { min-height: 15rem; padding: 1.4rem; }
  .reader-character img { right: -.7rem; width: 54%; }
  .reader-character blockquote { max-width: 64%; margin-top: 4.5rem; font-size: .75rem; }
  .reader-paper { padding: 2rem 1.35rem; }
  .reader-actions { flex-wrap: wrap; }
  .reader-actions .keep-quote { order: -1; width: 100%; }
}

@media (pointer: coarse) {
  .ambient-light { display: none; }
  .character-tab span { width: 4.2rem; height: 4.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ambient-light { display: none; }
}

html.qa *,
html.qa *::before,
html.qa *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
html.qa .reveal { opacity: 1; transform: none; }

/* ==========================================================
   Pastoral daylight theme · v2
   ========================================================== */
:root {
  --night: #223d38;
  --night-2: #31564a;
  --blue: #6fa6bc;
  --cream: #fffaf0;
  --paper: #fff6df;
  --ink: #26382e;
  --muted: #64766a;
  --gold: #d8953c;
  --gold-soft: #f3c96f;
  --coral: #cf6b55;
  --coral-deep: #a84d3d;
  --line: rgba(42, 74, 57, .16);
  --body: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", sans-serif;
  --display: "STZhongsong", "Songti SC", "Noto Serif CJK SC", serif;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 7%, rgba(255, 246, 189, .78), transparent 21rem),
    linear-gradient(180deg, #b9deeb 0%, #eaf1d3 30%, #f8efcf 61%, #dce9ca 100%);
}
body::before {
  opacity: .13;
  background-image:
    repeating-linear-gradient(0deg, rgba(62,83,64,.07) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.55) 0 1px, transparent 1.5px);
  mix-blend-mode: multiply;
}
#skyCanvas { opacity: .5; }
.ambient-light {
  background: radial-gradient(circle, rgba(255, 220, 118, .24), transparent 68%);
  mix-blend-mode: multiply;
}
.eyebrow,
.hero-overline { color: #9d5e2f; text-shadow: 0 1px rgba(255,255,255,.5); }

/* Opening: sky, field and a real photo sliding from the envelope */
.arrival {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(177,218,233,.9) 0 47%, rgba(230,237,194,.94) 47% 70%, rgba(238,210,142,.97) 70%),
    #d9e8c8;
}
.arrival::before {
  content: "";
  position: absolute;
  inset: 45% -5% -8%;
  opacity: .7;
  background:
    radial-gradient(ellipse at 15% 30%, #769c62 0 18%, transparent 18.5%),
    radial-gradient(ellipse at 78% 22%, #648b57 0 24%, transparent 24.5%),
    repeating-linear-gradient(102deg, transparent 0 22px, rgba(111,139,75,.28) 23px 25px);
  clip-path: polygon(0 20%, 12% 5%, 24% 18%, 36% 2%, 52% 22%, 67% 1%, 79% 14%, 91% 0, 100% 15%, 100% 100%, 0 100%);
  pointer-events: none;
}
.arrival::after {
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255,255,255,.8) 0 8%, transparent 8.5%),
    radial-gradient(ellipse at 76% 22%, rgba(255,255,255,.68) 0 6%, transparent 6.5%);
  filter: blur(2px);
}
.arrival-stamp { color: rgba(38,56,46,.62); font-weight: 700; }
.arrival-copy h1 {
  color: #244237;
  font-family: var(--display);
  font-weight: 700;
  text-shadow: 0 2px 0 rgba(255,255,255,.62), 0 16px 34px rgba(73,96,66,.12);
}
.arrival-desc { color: rgba(34,57,44,.78); font-family: var(--body); font-weight: 500; }
.arrival-orbit { border-color: rgba(255,255,255,.5); }
.arrival-orbit::before,
.arrival-orbit::after { background: #fff5bc; box-shadow: 0 0 22px #fff4ac; }
.envelope-button { width: 23rem; }
.envelope-scene { width: 18rem; height: 11.5rem; margin-bottom: 1.15rem; }
.envelope-back {
  border: 1px solid rgba(99,68,38,.18);
  border-radius: .65rem;
  background: linear-gradient(145deg, #f5d6a1, #d8a56b);
  box-shadow: inset 0 1px rgba(255,255,255,.72);
}
.envelope-front {
  border-radius: 0 0 .65rem .65rem;
  background: linear-gradient(152deg, #f4d39a, #d7a161 72%);
}
.envelope-flap { background: linear-gradient(#f9dfae, #dca86a); }
.envelope-letter {
  left: .8rem;
  right: .8rem;
  top: .65rem;
  height: 10.1rem;
  padding: .42rem .42rem .55rem;
  overflow: hidden;
  border: 1px solid rgba(94,71,40,.16);
  border-radius: .25rem;
  background: #fffaf0;
  box-shadow: 0 5px 16px rgba(76,47,29,.18);
}
.envelope-letter img { display: block; width: 100%; height: 7.15rem; object-fit: cover; border-radius: .15rem; }
.envelope-letter b { margin-top: .28rem; color: #375143; font-family: var(--body); font-size: .74rem; font-weight: 700; letter-spacing: .08em; }
.envelope-letter i { margin-top: 0; color: #967457; font-family: var(--body); font-size: .54rem; }
.wax-seal {
  top: 4.2rem;
  width: 3rem;
  height: 3rem;
  margin-left: -1.5rem;
  color: #ffe8b9;
  border: .25rem double rgba(255,235,188,.62);
  background: radial-gradient(circle at 35% 30%, #cb6f5d, #9e4138 72%);
  line-height: 2.5rem;
  box-shadow: 0 5px 14px rgba(88,45,35,.36);
}
.arrival.is-opening .envelope-letter { z-index: 12; transform: translateY(-11rem) scale(1.38) rotate(-1deg); }
.arrival.is-opening .envelope-scene { transform: translateY(4.5rem); }
.open-label {
  color: #294737;
  border-color: rgba(41,71,55,.35);
  background: rgba(255,255,255,.48);
  box-shadow: 0 7px 20px rgba(75,93,56,.09);
  font-weight: 700;
}
.envelope-button:hover .open-label { color: #fffdf2; border-color: #466c55; background: #466c55; }
.arrival-tip { color: rgba(39,63,48,.58); font-weight: 500; }
.arrival-copy,
.arrival-stamp,
.arrival-tip,
.open-label { transition: opacity .55s var(--ease), transform .55s var(--ease); }
.arrival.is-opening .arrival-copy,
.arrival.is-opening .arrival-stamp,
.arrival.is-opening .arrival-tip,
.arrival.is-opening .open-label { opacity: 0; transform: translateY(-1rem); }

/* Floating glass navigation */
.site-nav {
  top: .8rem;
  width: min(calc(100% - 2rem), 74rem);
  min-height: 4.4rem;
  margin: .8rem auto 0;
  padding: .62rem 1rem;
  border: 1px solid rgba(61,89,67,.2);
  border-radius: 1.35rem;
  color: var(--ink);
  background: rgba(255,252,239,.82);
  box-shadow: 0 12px 40px rgba(57,84,61,.12), inset 0 1px rgba(255,255,255,.8);
  backdrop-filter: blur(20px) saturate(145%);
}
.wordmark {
  padding: .45rem .72rem;
  color: #244237;
  border-radius: .85rem;
  background: rgba(125,160,113,.12);
  font-family: var(--display);
  font-weight: 700;
}
.wordmark span { color: #a35b3c; }
.site-nav nav { gap: clamp(.9rem, 2.6vw, 2.25rem); }
.site-nav nav a { color: rgba(35,58,44,.68); font-weight: 600; }
.site-nav nav a:hover,
.site-nav nav a.is-current { color: #244636; }
.site-nav nav a::after { height: 2px; border-radius: 2px; background: #c47a43; }
.sound-button { color: #31513f; border-color: rgba(47,80,59,.18); background: rgba(255,255,255,.62); }
.sound-text { color: #557061; font-weight: 600; }
.sound-bars i { background: #c87943; }
.scroll-progress { height: 3px; border-radius: 0 0 1.35rem 1.35rem; background: linear-gradient(90deg, #7aa56d, #d69a4b, #cc7055); }

/* Strong readable type on light scenery */
.chapter-heading h2,
.hero-copy h2,
.character-copy h3,
.cinema-console h3,
.finale h2 { color: #263e32; font-family: var(--display); font-weight: 700; }
.chapter-heading > div > p:last-child,
.hero-lead,
.character-preview,
.character-from,
.tv-caption,
.down-cue,
.privacy-note,
.saved-head span { color: rgba(38,58,45,.7); }
.chapter-no { color: #ad6045; }
.hero { min-height: calc(100svh - 6rem); }
.hero::before {
  content: "";
  position: absolute;
  inset: 4rem -25vw 0;
  z-index: -1;
  background: radial-gradient(circle at 78% 25%, rgba(255,249,190,.55), transparent 23rem);
}
.chapter-label { color: rgba(39,65,49,.56); font-weight: 600; }
.chapter-label span { color: #9c593f; border-color: rgba(156,89,63,.35); background: rgba(255,255,255,.38); }
.hero-copy h2 em { color: #a5543d; }
.hero-lead { border-color: #d18a52; background: rgba(255,255,255,.22); }

/* A smoother, physical channel-changing TV */
.tv-shell {
  padding-right: 5rem;
  border-color: rgba(80,48,26,.24);
  background: linear-gradient(145deg, #bd7f4f, #80513c 58%, #523b32);
  box-shadow: 0 30px 65px rgba(76,68,44,.24), inset 0 2px rgba(255,238,202,.45);
}
.tv-screen {
  background: linear-gradient(180deg, #9dcbd3, #bdd8bd 58%, #d9c782);
  box-shadow: inset 0 0 55px rgba(30,47,38,.28);
}
.screen-noise { opacity: .07; transition: opacity .2s; }
.hero-characters,
.tv-message { transition: opacity .25s, filter .25s, transform .25s; }
.tv-screen.is-tuning .screen-noise { opacity: .82; animation: channelStatic .1s steps(2) infinite; }
.tv-screen.is-tuning .hero-characters,
.tv-screen.is-tuning .tv-message { opacity: .18; filter: blur(5px) grayscale(1); transform: scale(1.02); }
@keyframes channelStatic { 50% { transform: translateY(5px) skewX(.5deg); } }
.hero-characters img.channel-group {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
  animation: channelPhoto 7s ease-in-out infinite alternate;
  filter: saturate(.9) contrast(.95);
}
@keyframes channelPhoto { to { transform: scale(1.035); } }
.tv-message { padding-top: 1.6rem; }
.tv-message::before {
  content: "";
  position: absolute;
  inset: .8rem 1rem auto;
  height: 7.5rem;
  z-index: -1;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(26,52,43,.56), transparent);
  filter: blur(7px);
}
.tv-message p { color: #fffdf3; font-weight: 700; text-shadow: 0 2px 10px rgba(21,47,37,.65); }
.tv-message span { color: #fff0b7; font-weight: 700; text-shadow: 0 2px 8px rgba(21,47,37,.6); }
.tv-controls { right: .75rem; gap: .7rem; }
.channel-readout { display: grid; place-items: center; width: 3.25rem; min-height: 3.7rem; color: #f8e9ca; border: 1px solid rgba(255,239,209,.2); border-radius: .65rem; background: #332e2b; box-shadow: inset 0 0 12px rgba(0,0,0,.5); }
.channel-readout small { color: #c5a97d; font-size: .5rem; letter-spacing: .08em; }
.channel-readout b { font-family: var(--body); font-size: 1.15rem; line-height: 1; }
.tv-controls button { display: grid; place-items: center; width: 2.85rem; height: 2.85rem; padding: 0; color: #f4dfb9; border: .28rem double rgba(236,206,158,.35); border-radius: 50%; cursor: pointer; background: radial-gradient(circle at 35% 30%, #66564b, #2e2927); box-shadow: 0 4px 10px rgba(0,0,0,.28); font-size: 1.25rem; transition: transform .18s, border-color .18s; }
.tv-controls button:hover { border-color: #f1c777; transform: rotate(13deg) scale(1.06); }
.tv-antenna i { background: rgba(62,72,55,.48); }

/* Alternating field, forest and paper chapters */
.letters::before { inset: 2rem -30vw; background: linear-gradient(180deg, rgba(255,250,229,.55), rgba(221,233,195,.76)); }
.character-stage { border-color: rgba(49,79,57,.17); background: rgba(255,253,239,.78); box-shadow: 0 30px 80px rgba(74,91,58,.13); }
.character-count { color: #a65d41; }
.character-copy blockquote { color: #3d654f; font-weight: 700; }
.character-portrait-wrap { background: radial-gradient(circle at 50% 48%, var(--stage-glow, rgba(223,182,95,.62)), transparent 52%), linear-gradient(160deg, #b8d8c0, #88b189 58%, #e8c77e); }
.portrait-halo { border-color: rgba(255,255,255,.42); }
.character-catchphrase { color: #294236; background: rgba(255,251,225,.9); box-shadow: 0 8px 20px rgba(51,75,55,.13); }
.arrow-actions button,
.character-tab span { color: #345443; border-color: rgba(50,82,60,.2); background: rgba(255,255,255,.42); }
.character-tab { color: rgba(40,67,49,.65); font-weight: 600; }
.character-tab[aria-selected="true"] { color: #233f31; }
.character-tab:hover span,
.character-tab[aria-selected="true"] span { border-color: #b87645; background: rgba(255,246,203,.76); }

.cinema { color: #fff8e8; background: linear-gradient(180deg, #2f584a, #1f403b 42%, #182f31 100%); }
.cinema .chapter-heading h2,
.cinema .cinema-console h3 { color: #fff8e8; }
.cinema .chapter-heading > div > p:last-child { color: rgba(255,248,232,.7); }
.cinema .chapter-no { color: #efbd63; }
.cinema-screen { border-color: rgba(245,222,174,.4); }
.cinema-console > div:first-child > p:last-child { color: rgba(255,248,232,.65); }

.years { color: var(--ink); }
.year-button { color: rgba(41,66,49,.66); border-color: rgba(47,75,56,.2); background: rgba(255,255,255,.3); font-family: var(--body); font-weight: 700; }
.year-button:hover,
.year-button[aria-selected="true"] { color: #fff; border-color: #527c5f; background: #527c5f; }
.year-memory { border-color: rgba(52,82,60,.18); background: linear-gradient(135deg, #a9d0d2, #cddcb8 56%, #ead098); box-shadow: 0 24px 65px rgba(64,84,55,.13); }
.year-big { -webkit-text-stroke-color: rgba(42,71,52,.25); text-shadow: 0 0 60px rgba(255,255,255,.5); }
.year-copy h3 { color: #2b5541; }
.year-copy > p:not(.year-emoji) { color: rgba(37,59,45,.82); }
.year-detail { color: rgba(38,59,45,.68); border-color: rgba(47,75,56,.18); }

.reply { background: radial-gradient(circle at 80% 45%, rgba(237,201,120,.45), transparent 31rem), rgba(212,229,197,.42); }
.reply-form { border-color: rgba(49,78,57,.18); background: rgba(255,253,241,.65); box-shadow: 0 18px 50px rgba(67,88,57,.09); }
.prompt-label,
.reply-form label > span { color: #415e4c; }
.prompt-chips button { color: #526b5a; border-color: rgba(51,80,59,.2); background: rgba(255,255,255,.52); }
.reply-form input,
.reply-form textarea { color: #294134; border-color: rgba(50,78,58,.24); background: rgba(255,255,255,.65); }
.reply-form ::placeholder { color: rgba(49,72,56,.46); }
.reply-form small { color: rgba(46,70,53,.48); }
.text-action { color: #526c5a; border-color: rgba(47,74,55,.28); }
.reply-paper { box-shadow: 0 35px 80px rgba(82,75,51,.2); }

.finale { color: #fff8e8; background: radial-gradient(circle at 50% 68%, rgba(246,194,102,.35), transparent 25rem), linear-gradient(180deg, rgba(69,107,78,.15), #3c684f 72%, #31523f); }
.finale h2 { color: #fff8e8; text-shadow: 0 2px 16px rgba(35,71,49,.2); }
.finale > p:first-of-type { color: rgba(255,248,232,.8); }
.finale-sign { color: #ffe1a0; }
.finale > a { color: rgba(255,248,232,.78); border-color: rgba(255,248,232,.36); }

.reader-character { background: radial-gradient(circle at 50% 45%, var(--reader-glow, rgba(210,173,89,.65)), transparent 55%), linear-gradient(160deg, #95c0ae, #5e8e72); }
.reader-character > p { color: rgba(255,255,240,.76); }
.saved-note { background: #fff2cd; }

@media (max-width: 900px) {
  .site-nav { width: calc(100% - 1.2rem); margin-top: .55rem; }
  .site-nav nav { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(42,75,58,.92); }
  .site-nav nav a { color: rgba(255,255,255,.7); }
  .site-nav nav a:hover,
  .site-nav nav a.is-current { color: #fff4c5; }
}

@media (max-width: 620px) {
  .arrival-copy h1 { font-size: clamp(2.25rem, 11vw, 3.5rem); }
  .envelope-button { width: 18rem; }
  .envelope-scene { width: 15rem; height: 9.6rem; }
  .envelope-letter { height: 8.6rem; }
  .envelope-letter img { height: 5.85rem; }
  .arrival.is-opening .envelope-letter { transform: translateY(-9.5rem) scale(1.18) rotate(-1deg); }
  .site-nav { border-radius: 1rem; }
  .wordmark { padding: .35rem .55rem; }
  .tv-shell { padding-right: 3.65rem; }
  .tv-controls { right: .4rem; gap: .42rem; }
  .channel-readout { width: 2.5rem; min-height: 3rem; }
  .tv-controls button { width: 2.25rem; height: 2.25rem; font-size: .95rem; }
}

/* ==========================================================
   Precision interaction pass · v3
   ========================================================== */

/* Single-channel TV: the photograph is the whole memory */
.tv-shell { padding-right: 1.15rem; }
.tv-screen { isolation: isolate; }
.hero-characters img.channel-group {
  transform-origin: 52% 62%;
  animation: livingPhoto 11s cubic-bezier(.4,0,.2,1) infinite alternate;
}
.hero-characters::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 15%, rgba(255,255,255,.13) 43%, transparent 62%);
  transform: translateX(-120%);
  animation: tvLightPass 8s 1.2s ease-in-out infinite;
}
.tv-caption span {
  display: inline-grid;
  place-items: center;
  margin-right: .45rem;
  padding: .18rem .42rem;
  color: #fffbe9;
  border-radius: .3rem;
  background: #446653;
  font-weight: 800;
  letter-spacing: .09em;
}
@keyframes livingPhoto {
  0% { transform: scale(1.01) translate3d(-.3%, 0, 0); filter: saturate(.88) contrast(.96); }
  100% { transform: scale(1.075) translate3d(.7%, -.7%, 0); filter: saturate(1) contrast(1); }
}
@keyframes tvLightPass {
  0%, 64% { transform: translateX(-120%); }
  82%, 100% { transform: translateX(120%); }
}

/* v4: keep every memory visible and let the opening photograph peek out */
#bgmAudio { display: none; }
.arrival:not(.is-opening) .envelope-letter {
  z-index: 4;
  transform: translateY(-2.2rem) scale(.94);
}
.envelope-letter img {
  object-fit: contain;
  object-position: center;
  background: linear-gradient(145deg, #e7edd9, #f7e8ba);
}
.hero-characters {
  background: linear-gradient(160deg, #a9d1d7, #d6e3c1 58%, #ead395);
}
.hero-characters img.channel-group {
  object-fit: contain;
  object-position: center;
  padding: .45rem;
}
@keyframes livingPhoto {
  0% { transform: scale(.985) translate3d(-.15%, 0, 0); filter: saturate(.9) contrast(.97); }
  100% { transform: scale(1.018) translate3d(.25%, -.15%, 0); filter: saturate(1) contrast(1); }
}

@media (max-width: 620px) {
  .arrival:not(.is-opening) .envelope-letter { transform: translateY(-1.55rem) scale(.94); }
  .arrival.is-opening .envelope-letter { transform: translateY(-9.5rem) scale(1.18) rotate(-1deg); }
}

/* Navigation: a liquid indicator that follows both scroll and hover */
.site-nav {
  overflow: hidden;
  isolation: isolate;
}
.site-nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -180%;
  left: -15%;
  width: 38%;
  height: 460%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  transform: rotate(20deg) translateX(-140%);
  animation: navGlint 10s 2s ease-in-out infinite;
}
@keyframes navGlint {
  0%, 68% { transform: rotate(20deg) translateX(-140%); }
  82%, 100% { transform: rotate(20deg) translateX(440%); }
}
.site-nav nav {
  position: relative;
  isolation: isolate;
  align-items: center;
  justify-self: center;
  padding: .28rem .42rem;
  border: 1px solid rgba(61,89,67,.1);
  border-radius: 1rem;
  background: rgba(113,143,103,.06);
}
.site-nav nav a {
  z-index: 2;
  padding: .45rem .72rem;
  border-radius: .72rem;
  transition: color .35s var(--ease), transform .35s var(--ease);
}
.site-nav nav a::after { display: none; }
.site-nav nav a:hover { transform: translateY(-1px); }
.nav-indicator {
  position: absolute;
  z-index: 1;
  left: 0;
  top: .28rem;
  height: calc(100% - .56rem);
  opacity: 0;
  border: 1px solid rgba(175,108,66,.18);
  border-radius: .72rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.75), transparent 36%),
    linear-gradient(135deg, rgba(239,199,115,.46), rgba(203,112,79,.2));
  box-shadow: 0 6px 18px rgba(119,79,52,.1), inset 0 1px rgba(255,255,255,.65);
  transform: translateX(0);
  transition: transform .58s cubic-bezier(.2,1.25,.35,1), width .48s cubic-bezier(.2,.9,.25,1), opacity .2s;
  will-change: transform, width;
}
.wordmark { transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s; }
.wordmark:hover { background: rgba(125,160,113,.2); box-shadow: 0 8px 20px rgba(52,84,59,.1); transform: translateY(-2px) rotate(-.4deg); }
.sound-button { position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.sound-button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: translateX(-130%); transition: transform .55s var(--ease); }
.sound-button:hover { box-shadow: 0 8px 20px rgba(53,80,58,.1); transform: translateY(-2px); }
.sound-button:hover::after { transform: translateX(130%); }

/* Character selector: magnetic portrait, orbiting dot and click shockwave */
.character-rail {
  position: relative;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: 1rem 1.1rem 1.25rem;
  border: 1px solid rgba(50,82,60,.12);
  border-radius: 1.6rem;
  background: rgba(255,253,239,.48);
  box-shadow: 0 16px 44px rgba(68,87,54,.08), inset 0 1px rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
}
.character-tab {
  position: relative;
  flex-basis: 5.1rem;
  gap: .62rem;
  min-height: 5.9rem;
  color: #526b59;
  font-weight: 800;
  transform: translate(var(--mag-x, 0), var(--mag-y, 0));
  transition: color .3s, transform .3s cubic-bezier(.2,.9,.3,1);
  will-change: transform;
}
.character-tab span {
  position: relative;
  width: 4.55rem;
  height: 4.55rem;
  overflow: visible;
  border: 1px solid rgba(54,87,64,.18);
  box-shadow: 0 8px 18px rgba(67,83,50,.08), inset 0 0 0 5px rgba(255,255,255,.25);
  transition: transform .48s cubic-bezier(.2,1.2,.3,1), border-color .3s, box-shadow .3s, background .3s;
}
.character-tab span::before {
  content: "";
  position: absolute;
  inset: -.48rem;
  z-index: -1;
  opacity: 0;
  border: 1px dashed rgba(176,102,62,.52);
  border-radius: 50%;
  transition: opacity .25s;
}
.character-tab span::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: -.55rem;
  width: .48rem;
  height: .48rem;
  margin-left: -.24rem;
  opacity: 0;
  border: 2px solid #fff9e7;
  border-radius: 50%;
  background: #c96c4b;
  box-shadow: 0 2px 8px rgba(153,75,46,.35);
  transform-origin: .24rem 2.82rem;
}
.character-tab img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(45,64,44,.12)); transition: transform .45s var(--ease), filter .3s; }
.character-tab:hover span,
.character-tab[aria-selected="true"] span {
  border-color: #bd7045;
  background: linear-gradient(145deg, rgba(255,253,224,.95), rgba(218,235,199,.9));
  box-shadow: 0 13px 28px rgba(93,100,56,.15), inset 0 0 0 5px rgba(255,255,255,.46);
  transform: translateY(-5px) scale(1.05);
}
.character-tab:hover span::before,
.character-tab[aria-selected="true"] span::before { opacity: 1; animation: ringSpin 9s linear infinite; }
.character-tab[aria-selected="true"] span::after { opacity: 1; animation: selectorOrbit 2.8s linear infinite; }
.character-tab:hover img { transform: scale(1.09) translateY(-3px); filter: drop-shadow(0 9px 8px rgba(45,64,44,.2)); }
.character-tab[aria-selected="true"] b { color: #244636; }
.character-tab.is-activating::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2.25rem;
  width: 4rem;
  height: 4rem;
  margin: -2rem;
  border: 2px solid rgba(196,104,68,.68);
  border-radius: 50%;
  pointer-events: none;
  animation: selectorBurst .72s var(--ease) forwards;
}
@keyframes selectorOrbit { to { transform: rotate(1turn); } }
@keyframes ringSpin { to { transform: rotate(1turn); } }
@keyframes selectorBurst { to { opacity: 0; transform: scale(1.85); } }
.character-stage.is-awake::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  border-radius: 2rem;
  box-shadow: inset 0 0 0 2px rgba(206,117,75,.4);
  animation: stageWake .85s var(--ease) forwards;
}
@keyframes stageWake { 0% { opacity: 0; transform: scale(.985); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.01); } }
.primary-action { position: relative; overflow: hidden; isolation: isolate; }
.primary-action::before { content: ""; position: absolute; z-index: 1; inset: -60% -35%; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.38) 50%, transparent 65%); transform: translateX(-70%) rotate(8deg); transition: transform .7s var(--ease); }
.primary-action:hover::before { transform: translateX(70%) rotate(8deg); }
.arrow-actions button { position: relative; overflow: hidden; }
.arrow-actions button::before { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(176,105,65,.35); border-radius: 50%; transition: transform .5s; }
.arrow-actions button:hover::before { transform: rotate(130deg); }

/* Time dial: legible monumental numerals and crafted time keys */
.year-buttons {
  position: relative;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding: .9rem;
  border: 1px solid rgba(57,88,64,.13);
  border-radius: 1.5rem;
  background: rgba(255,252,234,.48);
  box-shadow: 0 14px 40px rgba(77,87,48,.07), inset 0 1px rgba(255,255,255,.76);
}
.year-button {
  position: relative;
  display: grid;
  gap: .12rem;
  min-width: 7.2rem;
  padding: .75rem 1rem .82rem;
  overflow: hidden;
  border: 1px solid rgba(56,86,64,.18);
  border-radius: 1.15rem;
  background: rgba(255,255,255,.42);
  box-shadow: inset 0 1px rgba(255,255,255,.65);
  text-align: left;
  transition: color .35s, border-color .35s, background .35s, transform .42s cubic-bezier(.2,1.25,.3,1), box-shadow .35s;
}
.year-button small { color: rgba(51,77,57,.48); font-size: .5rem; font-weight: 800; letter-spacing: .15em; transition: color .3s; }
.year-button b { font-family: var(--body); font-size: 1.18rem; line-height: 1.15; }
.year-button::before {
  content: "";
  position: absolute;
  right: .65rem;
  top: .65rem;
  width: .42rem;
  height: .42rem;
  border: 1px solid rgba(48,78,57,.35);
  border-radius: 50%;
  background: #fffced;
  transition: transform .35s, background .35s, box-shadow .35s;
}
.year-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.62) 48%, transparent 64%);
  transform: translateX(-130%);
}
.year-button:hover { border-color: rgba(164,93,59,.42); transform: translateY(-4px); box-shadow: 0 12px 22px rgba(74,84,48,.1); }
.year-button:hover::after { transform: translateX(130%); transition: transform .65s var(--ease); }
.year-button[aria-selected="true"] {
  color: #fffced;
  border-color: #3f7057;
  background: linear-gradient(145deg, #527f63, #315f4b);
  box-shadow: 0 14px 26px rgba(49,94,73,.23), inset 0 1px rgba(255,255,255,.2);
  transform: translateY(-5px) scale(1.025);
}
.year-button[aria-selected="true"] small { color: rgba(255,252,237,.68); }
.year-button[aria-selected="true"]::before { border-color: #f2c56e; background: #f2c56e; box-shadow: 0 0 0 5px rgba(242,197,110,.16), 0 0 14px rgba(242,197,110,.45); animation: timePulse 2s ease-in-out infinite; }
@keyframes timePulse { 50% { transform: scale(.72); box-shadow: 0 0 0 8px rgba(242,197,110,0); } }
.year-memory { box-shadow: 0 28px 75px rgba(58,82,58,.16), inset 0 1px rgba(255,255,255,.6); }
.year-tape span { animation-name: ringSpin; }
.year-memory::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--year-light-x, 20%) var(--year-light-y, 28%), rgba(255,255,255,.48), transparent 27rem);
  transition: background .14s linear;
}
.year-big {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: .01em;
  color: #35614d;
  opacity: .92;
  font-size: clamp(5.8rem, 15vw, 11.5rem);
  letter-spacing: -.1em;
  -webkit-text-stroke: 0;
  text-shadow: 0 3px 0 rgba(255,255,255,.42), 0 18px 35px rgba(53,90,66,.16);
}
.year-big span {
  display: inline-block;
  transform-origin: 50% 100%;
  animation: digitRise .72s calc(var(--digit) * 70ms) cubic-bezier(.2,1.2,.25,1) both;
}
@keyframes digitRise { from { opacity: 0; transform: translateY(45%) rotateX(65deg) scale(.82); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }
.year-copy { border-left: 1px solid rgba(53,83,59,.17); }
.year-copy h3 { text-wrap: balance; }

/* Video attribution */
.video-credits {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.15rem;
  margin-top: 1rem !important;
  color: rgba(255,248,232,.82) !important;
  font-size: .7rem !important;
}
.video-credits span {
  position: relative;
  padding-left: .85rem;
}
.video-credits span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: #efbd63;
  box-shadow: 0 0 0 4px rgba(239,189,99,.12);
}

@media (max-width: 900px) {
  .nav-indicator { display: none; }
  .site-nav nav { padding: .7rem .75rem; background: rgba(42,75,58,.92); }
  .character-rail { border-radius: 1.25rem; }
}

@media (max-width: 620px) {
  .character-tab { flex-basis: 4.7rem; }
  .character-tab span { width: 4.15rem; height: 4.15rem; }
  .year-buttons { padding: .65rem; border-radius: 1.1rem; }
  .year-button { min-width: 6.25rem; padding: .65rem .8rem; }
  .year-big { min-height: 9rem; padding-top: 1rem; font-size: 5.6rem; }
  .year-copy { border-left: 0; border-top: 1px solid rgba(53,83,59,.17); padding-top: 1.5rem; }
}

/* ==========================================================
   Living transitions and interactive opening · v4
   ========================================================== */
:root {
  --pointer-x: 50vw;
  --pointer-y: 35vh;
  --pointer-nx: 0;
  --pointer-ny: 0;
  --page-progress: 0;
}

/* A visible but quiet cursor companion */
.cursor-wake {
  position: fixed;
  z-index: 1200;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
  will-change: transform;
}
.cursor-wake.is-visible { opacity: 1; }
.cursor-wake i,
.cursor-wake span { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%,-50%); }
.cursor-wake i {
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(83,125,91,.38);
  box-shadow: 0 0 0 7px rgba(255,243,179,.08), inset 0 0 15px rgba(255,255,255,.46);
  transition: width .28s var(--ease), height .28s var(--ease), border-color .28s;
  animation: cursorBreathe 2.7s ease-in-out infinite;
}
.cursor-wake span {
  width: .42rem;
  height: .42rem;
  background: #e8a84f;
  box-shadow: 0 0 13px 4px rgba(245,190,88,.35);
}
.cursor-wake.is-pressed i { width: 1.25rem; height: 1.25rem; border-color: #c66849; }
@keyframes cursorBreathe { 50% { box-shadow: 0 0 0 12px rgba(255,243,179,0), inset 0 0 18px rgba(255,255,255,.62); } }

/* Opening panorama: image, weather and depth all move independently */
.arrival {
  isolation: isolate;
  background: #8dcbd0;
}
.arrival::before { content: none; }
.arrival::after {
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 41%, rgba(255,253,223,.58) 0 18%, rgba(255,253,223,.12) 43%, transparent 67%),
    linear-gradient(180deg, rgba(29,83,80,.05), transparent 43%, rgba(41,67,40,.18));
  filter: none;
}
.arrival-world {
  position: absolute;
  z-index: 0;
  inset: -2.5rem;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(calc(var(--pointer-nx) * -15px), calc(var(--pointer-ny) * -10px), 0);
  transition: transform .22s linear;
}
.arrival-panorama {
  position: absolute;
  inset: -3%;
  background: url("../assets/generated/arrival/childhood-summer-panorama-v4.png") center center / cover no-repeat;
  filter: saturate(.93) contrast(.98) brightness(.96);
  animation: panoramaBreathe 16s ease-in-out infinite alternate;
  will-change: transform;
}
.arrival-sunwash {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 73% 20%, rgba(255,244,174,.64), transparent 22%);
  mix-blend-mode: screen;
  animation: sunDrift 12s ease-in-out infinite alternate;
}
.arrival-cloud {
  position: absolute;
  width: 19rem;
  height: 4.5rem;
  opacity: .24;
  border-radius: 50%;
  background: rgba(255,255,238,.85);
  filter: blur(13px);
  box-shadow: 6rem -1rem 0 1.3rem rgba(255,255,238,.65), 11rem .5rem 0 -.3rem rgba(255,255,238,.7);
  animation: cloudSail 28s linear infinite;
}
.arrival-cloud-a { left: -24rem; top: 11%; }
.arrival-cloud-b { left: -30rem; top: 27%; opacity: .16; animation-duration: 38s; animation-delay: -17s; transform: scale(.72); }
.arrival-cloud-c { left: -20rem; top: 5%; opacity: .12; animation-duration: 46s; animation-delay: -31s; transform: scale(1.25); }
.arrival-seeds i {
  position: absolute;
  left: var(--seed-left);
  top: -8vh;
  width: .28rem;
  height: .28rem;
  border-radius: 50% 0 50% 50%;
  background: #fff9cf;
  box-shadow: 0 0 8px rgba(255,246,181,.7);
  animation: seedFall var(--seed-time) linear infinite;
  animation-delay: var(--seed-delay);
}
.arrival-seeds i::after { content: ""; position: absolute; left: .2rem; top: .2rem; width: 1.1rem; height: 1px; background: rgba(255,250,213,.75); transform: rotate(42deg); transform-origin: left; }
.arrival-seeds i:nth-child(1) { --seed-left: 8%; --seed-time: 10s; --seed-delay: -4s; }
.arrival-seeds i:nth-child(2) { --seed-left: 21%; --seed-time: 13s; --seed-delay: -8s; }
.arrival-seeds i:nth-child(3) { --seed-left: 37%; --seed-time: 9s; --seed-delay: -2s; }
.arrival-seeds i:nth-child(4) { --seed-left: 48%; --seed-time: 14s; --seed-delay: -11s; }
.arrival-seeds i:nth-child(5) { --seed-left: 61%; --seed-time: 11s; --seed-delay: -6s; }
.arrival-seeds i:nth-child(6) { --seed-left: 73%; --seed-time: 15s; --seed-delay: -9s; }
.arrival-seeds i:nth-child(7) { --seed-left: 86%; --seed-time: 12s; --seed-delay: -1s; }
.arrival-seeds i:nth-child(8) { --seed-left: 95%; --seed-time: 16s; --seed-delay: -13s; }
.arrival-grass {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -5rem;
  height: 14rem;
  opacity: .28;
  background: repeating-linear-gradient(83deg, transparent 0 15px, rgba(49,99,53,.58) 16px 18px, transparent 19px 31px);
  transform-origin: 50% 100%;
  animation: fieldBreathe 5.5s ease-in-out infinite alternate;
  mask-image: linear-gradient(to bottom, transparent, #000 42%);
}
@keyframes panoramaBreathe { from { transform: scale(1.045) translate3d(-.3%,0,0); } to { transform: scale(1.095) translate3d(.5%,-.7%,0); } }
@keyframes sunDrift { to { transform: translate3d(-4%,4%,0) scale(1.08); opacity: .72; } }
@keyframes cloudSail { to { transform: translateX(calc(100vw + 48rem)); } }
@keyframes seedFall { 0% { opacity: 0; transform: translate3d(0,-5vh,0) rotate(0); } 12% { opacity: .9; } 100% { opacity: 0; transform: translate3d(18vw,112vh,0) rotate(540deg); } }
@keyframes fieldBreathe { to { transform: skewX(-2deg) translateX(1.2%); } }

.arrival-copy,
.arrival-stamp,
.envelope-button,
.arrival-tip,
.arrival-orbit { z-index: 3; }
.arrival-copy { transform: translate3d(calc(var(--pointer-nx) * 6px), calc(var(--pointer-ny) * 4px), 0); }
.arrival-copy h1 {
  color: #183d35;
  text-shadow: 0 2px 0 rgba(255,255,244,.78), 0 9px 26px rgba(30,68,53,.22), 0 0 45px rgba(255,252,217,.52);
}
.arrival-desc {
  color: #244d40;
  text-shadow: 0 1px 8px rgba(255,255,231,.9);
}
.arrival-stamp { color: rgba(28,65,54,.74); text-shadow: 0 1px rgba(255,255,255,.7); }
.arrival-orbit { opacity: .55; mix-blend-mode: soft-light; }
.envelope-scene { animation: envelopeFloat 4.2s ease-in-out infinite; }
.envelope-button:hover .envelope-scene { animation-play-state: paused; transform: translateY(-11px) rotate(-1.5deg) scale(1.025); }
.arrival.is-opening .envelope-scene { animation: none; transform: translateY(4.5rem); }
.open-label { backdrop-filter: blur(12px); }
@keyframes envelopeFloat { 50% { transform: translateY(-7px) rotate(.7deg); } }
.arrival.is-opening .arrival-world { transform: scale(1.08); filter: brightness(1.08); transition: transform 1.4s var(--ease), filter 1.2s; }

/* Chapter travel: one ribbon at the boundary, one directional reveal per chapter */
#mainContent::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 24rem at var(--pointer-x) var(--pointer-y), rgba(255,245,177,.18), transparent 70%);
  transition: background .12s linear;
}
.chapter-heading,
.hero-copy,
.memory-tv,
.down-cue,
.character-stage,
.character-rail,
.cinema-console,
.year-buttons,
.year-memory,
.reply-layout { position: relative; z-index: 2; }
.chapter-portal {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 7.5rem;
  overflow: hidden;
  pointer-events: none;
  transform: translate(-50%,-50%);
}
.chapter-portal::before {
  content: "";
  position: absolute;
  inset: 2.7rem -5%;
  opacity: .46;
  border: 1px solid rgba(72,112,78,.16);
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,248,206,.58), transparent);
  transform: rotate(-1.5deg);
}
.chapter-portal::after {
  content: "";
  position: absolute;
  left: -25%;
  top: 3.55rem;
  width: 24%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e3a657, transparent);
  box-shadow: 0 0 16px rgba(227,166,87,.55);
}
.chapter.is-current-chapter .chapter-portal::after { animation: portalSweep 1.15s var(--ease) both; }
@keyframes portalSweep { to { left: 105%; } }

.chapter[data-chapter-index="1"] .reveal,
.chapter[data-chapter-index="3"] .reveal { transform: translate3d(-3.5rem,2.2rem,0) rotate(-.7deg); clip-path: inset(0 8% 0 0 round 1rem); }
.chapter[data-chapter-index="2"] .reveal,
.chapter[data-chapter-index="4"] .reveal { transform: translate3d(3.5rem,2.2rem,0) rotate(.7deg); clip-path: inset(0 0 0 8% round 1rem); }
.chapter .reveal.is-visible { transform: none; clip-path: inset(0 0 0 0 round 0); }

.chapter-transition {
  position: fixed;
  z-index: 650;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
.chapter-transition i {
  position: absolute;
  left: -35vw;
  top: 50%;
  width: 28vw;
  height: 180vh;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,244,190,.32), rgba(115,166,127,.2), transparent);
  filter: blur(10px);
  transform: translateY(-50%) rotate(13deg);
}
.chapter-transition span {
  position: absolute;
  left: -8rem;
  top: 50%;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(255,238,163,.75);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(255,231,133,.45);
}
.chapter-transition.is-running { visibility: visible; }
.chapter-transition.is-running i { animation: travelWash .9s var(--ease); }
.chapter-transition.is-running span { animation: travelDot .9s var(--ease); }
@keyframes travelWash { 15% { opacity: 1; } 100% { left: 115vw; opacity: 0; } }
@keyframes travelDot { 100% { left: calc(100vw + 8rem); transform: translateY(-5rem) scale(.22); opacity: 0; } }

/* Characters now change in place; no desktop rail auto-panning */
.character-rail { overscroll-behavior-inline: contain; scroll-behavior: auto; }
.character-stage .character-copy > * { transition: opacity .22s ease, transform .42s var(--ease), filter .32s; }
.character-stage.is-switching .character-copy > * { opacity: 0; filter: blur(5px); transform: translateY(.85rem) scale(.985); }
.character-stage.is-switching .character-portrait { opacity: 0; filter: blur(5px) drop-shadow(0 26px 24px rgba(42,18,25,.22)); transform: translateY(1.1rem) scale(.94); }
.character-stage.is-switching .character-catchphrase { opacity: 0; transform: translateY(.8rem) rotate(-1.5deg); }
.character-portrait-wrap::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 12% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,250,204,.26), transparent 66%);
  animation: portraitGlow 4.5s ease-in-out infinite;
}
@keyframes portraitGlow { 50% { transform: scale(1.08); opacity: .55; } }

/* Modal letters dissolve and reform at the same position */
.letter-reader .reader-character img,
.letter-reader .reader-paper { transition: opacity .18s ease, transform .4s var(--ease), filter .3s; }
.letter-reader.is-letter-changing .reader-character img { opacity: 0; filter: blur(8px); transform: translateX(-50%) scale(.94); }
.letter-reader.is-letter-changing .reader-paper { opacity: 0; filter: blur(4px); transform: scale(.992); }
.letter-reader::after {
  content: "";
  position: absolute;
  z-index: 7;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,246,201,.46) 49%, transparent 63%);
  transform: translateX(-110%);
}
.letter-reader.is-letter-arriving::after { animation: letterGleam .58s var(--ease); }
@keyframes letterGleam { 35% { opacity: .8; } 100% { opacity: 0; transform: translateX(110%); } }

@media (max-width: 900px) {
  .arrival-world { inset: -1.5rem; }
  .arrival-copy { transform: none; }
  .chapter-portal { height: 5rem; }
}
@media (max-width: 620px) {
  .arrival-panorama { background-position: 52% center; }
  .arrival-cloud { opacity: .12; }
  .arrival-orbit { opacity: .32; }
  .chapter[data-chapter-index] .reveal { transform: translateY(2rem); clip-path: inset(0 0 8% 0 round 1rem); }
  .chapter .reveal.is-visible { transform: none; clip-path: inset(0); }
  .letter-reader.is-letter-changing .reader-character img { transform: scale(.94); }
}
@media (pointer: coarse) {
  .cursor-wake { display: none; }
  .arrival-world { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-wake,
  .chapter-transition,
  .arrival-cloud,
  .arrival-seeds,
  .arrival-grass { display: none; }
  .arrival-panorama { animation: none; transform: scale(1.03); }
  .arrival-world,
  .arrival-copy { transform: none; }
}
