/* =========================================================
   这是我的故事 — Gaza Files
   Editorial art direction: ash, paper, bone, dried blood
   ========================================================= */

:root {
  --ink: #0d0d0d;
  --ink-soft: #181817;
  --paper: #ded8cc;
  --paper-2: #eae5db;
  --bone: #f0ece4;
  --ash: #9b9991;
  --ash-dark: #6f6d67;
  --line-dark: rgba(13, 13, 13, 0.18);
  --line-light: rgba(240, 236, 228, 0.16);
  --blood: #8e2f26;
  --blood-bright: #ac4639;
  --teal: #819a98;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-pad: clamp(1.25rem, 5vw, 6.5rem);
  --max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--bone);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

::selection {
  color: var(--bone);
  background: var(--blood);
}

img, video, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, blockquote, figure { margin: 0; }
ol, ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

[hidden] { display: none !important; }

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  transform: translateY(-160%);
  padding: 0.65rem 1rem;
  background: var(--bone);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.skip-link:focus { transform: translateY(0); }

.svg-defs {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
}

/* ----------------------------- global texture */

.site-grain {
  position: fixed;
  inset: -50%;
  z-index: 120;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  animation: grainShift 0.55s steps(2) infinite;
  mix-blend-mode: soft-light;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.5%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 210;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--blood-bright);
  transform-origin: left;
}

/* ----------------------------- fixed header */

.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 205;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem var(--page-pad);
  color: var(--bone);
  transition: color 0.5s var(--ease), background 0.5s var(--ease), padding 0.4s var(--ease);
}

body[data-surface="paper"] .site-head { color: var(--ink); }
body.is-scrolled .site-head {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.94), rgba(8, 8, 8, 0.58) 62%, rgba(8, 8, 8, 0));
}
body[data-surface="paper"].is-scrolled .site-head {
  background: linear-gradient(to bottom, rgba(222, 216, 204, 0.96), rgba(222, 216, 204, 0.66) 62%, rgba(222, 216, 204, 0));
}
body.is-menu-open .site-head,
body.is-menu-open[data-surface="paper"].is-scrolled .site-head {
  color: var(--bone);
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  letter-spacing: 0.12em;
}
.brand-cn {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
}
.brand-en {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  opacity: 0.65;
}

.head-right {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.head-date {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  opacity: 0.66;
}

.menu-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.58rem;
  min-width: 3.2rem;
  padding: 0.2rem 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle > span:not(.menu-word) {
  position: absolute;
  left: 0;
  width: 1.3rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.menu-toggle > span:nth-child(1) { top: 0.25rem; }
.menu-toggle > span:nth-child(2) { top: 0.53rem; width: 0.9rem; }
.menu-toggle > span:nth-child(3) { top: 0.81rem; }
.menu-word {
  margin-left: 2rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
}
body.is-menu-open .menu-toggle > span:nth-child(1) { transform: translateY(0.28rem) rotate(45deg); }
body.is-menu-open .menu-toggle > span:nth-child(2) { opacity: 0; }
body.is-menu-open .menu-toggle > span:nth-child(3) { transform: translateY(-0.28rem) rotate(-45deg); }

/* ----------------------------- vertical chapter rail */

.chapter-rail {
  position: fixed;
  top: 50%;
  right: clamp(0.85rem, 2vw, 2rem);
  z-index: 200;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.15rem;
}
.chapter-rail a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ash);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  opacity: 0.65;
  transition: color 0.3s, opacity 0.3s;
}
.chapter-rail a i {
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.chapter-rail a::after {
  content: attr(data-label);
  position: absolute;
  right: 3.3rem;
  opacity: 0;
  transform: translateX(5px);
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.chapter-rail a:hover::after,
.chapter-rail a:focus-visible::after { opacity: 1; transform: translateX(0); }
.chapter-rail a.is-active {
  color: var(--bone);
  opacity: 1;
}
body[data-surface="paper"] .chapter-rail a { color: var(--ash-dark); }
body[data-surface="paper"] .chapter-rail a.is-active { color: var(--ink); }
.chapter-rail a.is-active i { width: 2.1rem; background: var(--blood-bright); }

/* ----------------------------- full screen menu */

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 202;
  background: #0b0b0b;
  color: var(--bone);
  overflow-y: auto;
}
body.is-menu-open .chapter-rail { opacity: 0; pointer-events: none; }
.site-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 28%, rgba(142, 47, 38, 0.12), transparent 30%),
    linear-gradient(110deg, transparent 40%, rgba(255,255,255,0.02) 40.2%, transparent 40.6%);
}
.site-menu-inner {
  min-height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 10rem) var(--page-pad) 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.menu-kicker {
  color: var(--ash);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
}
.site-menu ol {
  list-style: none;
  margin-top: clamp(2rem, 6vh, 4rem);
  border-top: 1px solid var(--line-light);
}
.site-menu li { border-bottom: 1px solid var(--line-light); }
.site-menu li a {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(0.72rem, 1.65vh, 1.15rem) 0;
  transition: padding-left 0.35s var(--ease), color 0.35s;
}
.site-menu li a:hover { padding-left: 1rem; color: #cfaea6; }
.site-menu li span {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ash);
}
.site-menu li b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
}
.site-menu li small {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  color: var(--ash);
}
.menu-foot {
  margin-top: 3rem;
  color: var(--ash);
  font-size: 0.74rem;
  line-height: 1.9;
}
.menu-foot span { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; }

/* ----------------------------- shared chapter structure */

.chapter {
  position: relative;
  min-height: 100svh;
  padding: clamp(7.5rem, 12vw, 11rem) var(--page-pad) clamp(5rem, 8vw, 8rem);
}
.section-inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(80px, 0.42fr) minmax(380px, 1.6fr) minmax(260px, 0.9fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line-light);
}
.section-head-light { border-bottom-color: var(--line-dark); }

.chapter-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.35rem;
  font-family: var(--mono);
  color: var(--ash);
}
.chapter-num { font-size: 0.72rem; color: var(--blood-bright); }
.chapter-rule { flex: 1; max-width: 3.2rem; height: 1px; background: currentColor; opacity: 0.45; }
.chapter-total { font-size: 0.56rem; letter-spacing: 0.1em; }

.section-en {
  margin-bottom: 0.55rem;
  color: var(--ash);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.27em;
}
.section-head-light .section-en { color: var(--ash-dark); }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 5.8vw, 6.1rem);
  line-height: 1.08;
  letter-spacing: 0.015em;
}
.section-lead {
  padding-bottom: 0.4rem;
  color: var(--ash);
  font-family: var(--serif);
  font-size: clamp(0.88rem, 1.15vw, 1.03rem);
  line-height: 2;
}
.section-head-light .section-lead { color: #55514b; }

[data-reveal] {
  opacity: 1;
  transform: none;
}
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   01 — COVER
   ========================================================= */

.cover {
  min-height: 100svh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
  background: #090909;
  isolation: isolate;
}

.cover-media,
.cover-fallback {
  position: absolute;
  inset: 0;
}
.cover-media { overflow: hidden; z-index: 0; }

.cover-fallback {
  background:
    radial-gradient(ellipse at 58% 40%, #82786d 0%, #4e4a44 24%, #1a1918 66%, #090909 100%);
}

.cover-img,
.cover-video {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center 44%;
  filter: grayscale(0.4) saturate(0.45) contrast(1.06) brightness(0.7);
  transform-origin: 52% 56%;
  will-change: transform;
}
.cover-img {
  animation: coverBreathe 28s ease-in-out infinite alternate;
}
.cover-video {
  opacity: 0;
  transition: opacity 1.2s;
  z-index: 1;
}
.cover-video.is-ready { opacity: 1; }

@keyframes coverBreathe {
  0% { transform: scale(1.035) translate3d(-0.5%, 0.3%, 0); }
  50% { transform: scale(1.075) translate3d(0.45%, -0.5%, 0); }
  100% { transform: scale(1.12) translate3d(-0.2%, 0.5%, 0); }
}

.cover-grade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.62) 0%, rgba(5,5,5,0.12) 28%, rgba(5,5,5,0.2) 54%, rgba(5,5,5,0.92) 100%),
    radial-gradient(ellipse at 50% 48%, transparent 20%, rgba(4,4,4,0.56) 92%);
}
.cover-grade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 39%, rgba(215, 220, 218, 0.035) 47%, transparent 55% 100%);
  mix-blend-mode: screen;
  animation: lightSweep 14s ease-in-out infinite;
}
@keyframes lightSweep {
  0%, 100% { transform: translateX(-10%); opacity: 0.3; }
  50% { transform: translateX(12%); opacity: 0.9; }
}
.cover-light {
  position: absolute;
  z-index: 2;
  left: 50%; top: 36%;
  width: min(50vw, 650px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(234, 231, 223, 0.1), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.dust-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

.tear-field {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.tear {
  position: absolute;
  left: var(--x);
  top: 45%;
  width: 1px;
  height: var(--h);
  background: linear-gradient(to bottom, transparent, rgba(198, 203, 201, 0.26) 22%, rgba(176, 181, 179, 0.62) 82%, transparent);
  filter: blur(0.35px);
  opacity: 0.72;
  animation: tearGlint var(--dur) ease-in-out var(--delay) infinite;
}
.tear::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 6px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, rgba(244, 246, 243, 0.96), rgba(133, 138, 137, 0.2));
  box-shadow: 0 2px 12px rgba(220, 226, 223, 0.36);
  animation: tearDrop var(--dur) ease-in var(--delay) infinite;
}
@keyframes tearGlint {
  0%, 100% { opacity: 0.2; }
  40% { opacity: 0.55; }
  55% { opacity: 0.35; }
}
@keyframes tearDrop {
  0% { transform: translate(-50%, 0) rotate(45deg) scale(0.7); opacity: 0; }
  10% { opacity: 1; }
  70% { opacity: 0.55; }
  100% { transform: translate(-50%, 165px) rotate(45deg) scale(1.05); opacity: 0; }
}

.cover-content {
  position: relative;
  z-index: 6;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem var(--page-pad) 8rem;
}

.cover-kicker {
  margin-bottom: clamp(1.4rem, 3.2vh, 2.4rem);
  padding-left: 0.2em;
  color: rgba(237, 233, 224, 0.7);
  font-size: clamp(0.62rem, 0.85vw, 0.74rem);
  letter-spacing: 0.34em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
}

.hero-title {
  position: relative;
  margin-left: 0.02em;
  color: #ece9e1;
  font-family: "STKaiti", "KaiTi", var(--serif);
  font-weight: 400;
  font-size: clamp(3.7rem, 12.1vw, 11.4rem);
  line-height: 1.02;
  letter-spacing: 0.035em;
  white-space: nowrap;
  filter: url(#wetInk);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 50px rgba(0, 0, 0, 0.66),
    0 0 110px rgba(217, 220, 218, 0.11);
  animation: titleBreathe 9s ease-in-out infinite alternate;
}
@keyframes titleBreathe {
  0% { transform: translateY(0) scale(1); filter: url(#wetInk) brightness(0.98); }
  100% { transform: translateY(-2px) scale(1.006); filter: url(#wetInk) brightness(1.04); }
}
.hero-line {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.hero-seg {
  display: inline-block;
  white-space: nowrap;
}
.hero-title .char {
  display: inline-block;
  color: transparent;
  background: linear-gradient(180deg, #f3f0e9 0%, #d3d1ca 31%, #a8aaa6 58%, #747877 81%, #565b5b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  transform: translateY(24px);
  animation: charIn 1.05s var(--ease) forwards;
  animation-delay: calc(var(--ci, 0) * 0.07s + 0.08s);
  text-shadow: none;
}
.hero-title .char.gap { margin-left: 0.22em; }
@keyframes charIn {
  0% { opacity: 0; transform: translateY(28px) scale(1.03); filter: blur(8px); }
  70% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.hero-tear-seam {
  position: absolute;
  left: 50%;
  bottom: -0.2em;
  width: 52%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(196, 201, 199, 0.55) 35%, rgba(233, 235, 232, 0.72) 50%, rgba(196, 201, 199, 0.55) 65%, transparent);
  filter: blur(1px);
  opacity: 0.65;
}
.hero-tear-seam::after {
  content: "";
  position: absolute;
  left: 51%;
  top: -2px;
  width: 4px;
  height: 62px;
  background: linear-gradient(to bottom, rgba(232, 234, 231, 0.42), transparent);
  filter: blur(1.2px);
}

.hero-en {
  margin-top: clamp(1rem, 2.4vh, 1.8rem);
  color: rgba(220, 220, 215, 0.4);
  font-family: var(--mono);
  font-size: clamp(0.5rem, 0.68vw, 0.62rem);
  letter-spacing: 0.52em;
}

.hero-dek {
  margin-top: clamp(1.6rem, 3.6vh, 2.7rem);
  color: rgba(238, 234, 226, 0.78);
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.35vw, 1.22rem);
  line-height: 2;
  letter-spacing: 0.11em;
  text-shadow: 0 3px 22px rgba(0,0,0,0.7);
}
.mobile-br { display: none; }

.cover-enter {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2.1rem, 5vh, 3.7rem);
  color: rgba(240, 236, 228, 0.76);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  transition: color 0.3s;
}
.cover-enter i {
  position: relative;
  width: 46px;
  height: 1px;
  background: rgba(240, 236, 228, 0.45);
  transition: width 0.4s var(--ease), background 0.3s;
}
.cover-enter i::after {
  content: "";
  position: absolute;
  right: 0; top: -2px;
  width: 5px; height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.cover-enter:hover { color: var(--bone); }
.cover-enter:hover i { width: 64px; background: var(--bone); }

.cover-foot {
  position: absolute;
  z-index: 7;
  left: var(--page-pad);
  right: var(--page-pad);
  bottom: clamp(1.2rem, 3.2vh, 2.5rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  align-items: end;
  gap: 2rem;
  color: rgba(235, 231, 223, 0.48);
  font-size: 0.58rem;
  line-height: 1.6;
}
.cover-credit {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: 36rem;
  color: rgba(240, 236, 228, 0.74);
  font-size: 0.62rem;
}
.credit-dot {
  flex: 0 0 auto;
  width: 4px; height: 4px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--blood-bright);
}
.cover-meta {
  display: flex;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.09em;
}
.cover-meta span { color: rgba(235, 231, 223, 0.28); margin-right: 0.35rem; }
.cover-scroll {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.47rem;
  letter-spacing: 0.26em;
  writing-mode: vertical-rl;
}
.cover-scroll i {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(235,231,223,0.45), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 0.9; }
}

.media-edit {
  position: absolute;
  right: var(--page-pad);
  bottom: 5.6rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  border: 1px dashed rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.72);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.09em;
  cursor: pointer;
}
body.is-edit .media-edit { display: block; }

/* =========================================================
   02 — STORIES
   ========================================================= */

.stories {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(102, 82, 66, 0.1), transparent 38%),
    #111110;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.stories::before {
  content: "STORY";
  position: absolute;
  right: -0.05em;
  top: 2.4rem;
  color: rgba(255, 255, 255, 0.018);
  font-family: var(--sans);
  font-size: clamp(10rem, 28vw, 28rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  pointer-events: none;
}
.section-head { position: relative; z-index: 1; }

.story-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: clamp(2rem, 4vw, 3.2rem) 0 1rem;
}
.rail-hint {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ash);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.hint-line {
  display: inline-block;
  width: 2.2rem;
  height: 1px;
  background: var(--blood-bright);
}
.rail-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ash);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}
.rail-controls button {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: transparent;
  color: var(--bone);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.rail-controls button:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.rail-controls button:disabled { opacity: 0.25; cursor: default; }
.rail-controls button:disabled:hover { background: transparent; color: var(--bone); border-color: var(--line-light); }
.rail-controls b { color: var(--bone); font-weight: 400; }

.story-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 1.1rem) / 4);
  gap: 1.1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.2rem 0 1.4rem;
}
.story-rail::-webkit-scrollbar { display: none; }

.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(240, 236, 228, 0.13);
  background: #151514;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.55s var(--ease), border-color 0.4s, background 0.4s;
}
.story-card:hover,
.story-card:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(240, 236, 228, 0.38);
  background: #1a1917;
  outline: none;
}
.story-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blood-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.story-card:hover::after,
.story-card:focus-visible::after { transform: scaleX(1); }

.card-art {
  position: relative;
  height: 178px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  isolation: isolate;
}
.art-index {
  position: absolute;
  right: 0.55rem;
  bottom: -1.25rem;
  color: rgba(255,255,255,0.1);
  font-family: var(--sans);
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  z-index: 2;
}
.art-dusk {
  background:
    radial-gradient(ellipse at 67% 31%, rgba(205, 153, 102, 0.8), rgba(98, 67, 47, 0.35) 32%, transparent 58%),
    linear-gradient(160deg, #34302a 0%, #1a1816 63%, #0d0d0c 100%);
}
.art-weather {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background: repeating-linear-gradient(105deg, transparent 0 15px, rgba(230, 214, 191, 0.1) 15px 16px, transparent 16px 33px);
}
.art-window {
  position: absolute;
  left: 12%; top: 26%;
  width: 36%; height: 55%;
  border: 1px solid rgba(230, 216, 192, 0.33);
  box-shadow: 0 0 32px rgba(197, 145, 96, 0.09);
  background:
    linear-gradient(90deg, transparent 48%, rgba(230,216,192,0.27) 48% 50%, transparent 50%),
    linear-gradient(0deg, transparent 48%, rgba(230,216,192,0.27) 48% 50%, transparent 50%);
  transform: perspective(300px) rotateY(7deg);
}
.art-hour {
  position: absolute;
  left: 12%;
  bottom: 1rem;
  color: rgba(239, 231, 218, 0.55);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
}
.art-ring {
  background:
    radial-gradient(circle at 55% 50%, rgba(155, 128, 72, 0.23), transparent 35%),
    linear-gradient(145deg, #1e1c19, #0e0e0d 75%);
}
.ring-outer, .ring-inner {
  position: absolute;
  left: 50%; top: 50%;
  border: 1px solid rgba(190, 160, 98, 0.65);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
}
.ring-outer {
  width: 103px; height: 103px;
  box-shadow: 0 0 30px rgba(181, 147, 77, 0.12), inset 0 0 20px rgba(181, 147, 77, 0.08);
}
.ring-inner {
  width: 63px; height: 63px;
  border-color: rgba(190, 160, 98, 0.28);
}
.art-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #c2a05e;
  box-shadow: 0 0 35px 12px rgba(194, 160, 94, 0.2);
  transform: translate(-50%, -50%);
}
.art-object {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  color: rgba(231, 218, 195, 0.46);
  font-family: var(--serif);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}
.art-empty {
  background:
    linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(150deg, #1a1917, #0e0e0d);
  background-size: 26px 26px, 26px 26px, auto;
}
.art-empty-2 { background-position: 8px 8px, 8px 8px, 0 0; }
.empty-cross {
  position: absolute;
  left: 1.2rem;
  top: 1rem;
  width: 22px;
  height: 22px;
}
.empty-cross::before,
.empty-cross::after {
  content: "";
  position: absolute;
  background: rgba(240, 236, 228, 0.22);
}
.empty-cross::before { left: 50%; top: 0; width: 1px; height: 100%; }
.empty-cross::after { top: 50%; left: 0; height: 1px; width: 100%; }
.empty-label {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  color: rgba(240, 236, 228, 0.24);
  font-family: var(--mono);
  font-size: 0.44rem;
  letter-spacing: 0.2em;
}
.art-tale {
  background:
    radial-gradient(circle at 79% 24%, rgba(194, 159, 98, 0.2), transparent 22%),
    radial-gradient(ellipse at 50% 120%, rgba(90, 101, 80, 0.18), transparent 45%),
    linear-gradient(150deg, #1b1d18, #0c0d0c 74%);
}
.tale-drawing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(213, 208, 189, 0.34);
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: blur(0.15px);
}
.art-tent {
  background:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px),
    radial-gradient(circle at 70% 28%, rgba(106, 130, 126, 0.2), transparent 27%),
    linear-gradient(150deg, #171c1b, #0d0f0e 76%);
  background-size: 28px 28px, 28px 28px, auto, auto;
}
.tent-drawing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(167, 193, 186, 0.36);
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art-coord {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  color: rgba(198, 208, 201, 0.27);
  font-family: var(--mono);
  font-size: 0.42rem;
  letter-spacing: 0.14em;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.15rem;
}
.card-kicker {
  margin-bottom: 0.55rem;
  color: #a79f92;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.13em;
}
.card-kicker span { color: var(--blood-bright); margin: 0 0.18rem; }
.card-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 1.9vw, 1.92rem);
  line-height: 1.34;
  letter-spacing: 0.03em;
}
.card-excerpt {
  margin-top: 0.8rem;
  color: #a19d95;
  font-family: var(--serif);
  font-size: 0.78rem;
  line-height: 1.95;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.card-choice {
  color: rgba(240, 236, 228, 0.38);
  font-family: var(--mono);
  font-size: 0.47rem;
  letter-spacing: 0.09em;
}
.is-muted { color: rgba(240, 236, 228, 0.22); }
.card-enter {
  color: rgba(240, 236, 228, 0.7);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.card-enter i {
  display: inline-block;
  margin-left: 0.25rem;
  font-style: normal;
  transition: transform 0.35s var(--ease);
}
.story-card:hover .card-enter i { transform: translate(3px, -3px); }
.story-card.is-pending { opacity: 0.78; }
.story-card.is-pending .card-body h3 { color: #c9c3b8; }

.stories-foot {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 3.3rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line-light);
  color: var(--ash);
  font-size: 0.63rem;
  line-height: 1.85;
}
.stories-foot p:first-child { max-width: 46rem; }
.stories-foot-note { text-align: right; white-space: nowrap; }
kbd {
  display: inline-block;
  margin: 0 0.12rem;
  padding: 0.08rem 0.28rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.52rem;
  line-height: 1.3;
}

/* =========================================================
   03 — WOUNDS
   ========================================================= */

.wounds {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 8% 12%, rgba(255,255,255,0.34), transparent 34%),
    radial-gradient(ellipse at 88% 60%, rgba(126, 103, 74, 0.08), transparent 33%),
    var(--paper);
  border-top: 1px solid rgba(0,0,0,0.25);
}
.wounds::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.wounds .section-inner { z-index: 1; }
.wounds .chapter-num { color: var(--blood); }

.wound-intro {
  display: grid;
  grid-template-columns: minmax(300px, 1.65fr) minmax(250px, 0.9fr);
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(2.4rem, 5vw, 4.4rem) 0 clamp(2.8rem, 5vw, 4.8rem);
}
.dropcap {
  max-width: 48rem;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.45vw, 1.3rem);
  line-height: 2.08;
}
.dropcap::first-letter {
  float: left;
  margin: 0.12em 0.13em 0 0;
  color: var(--blood);
  font-family: var(--serif);
  font-size: 4.1em;
  line-height: 0.72;
}
.wound-aside {
  align-self: end;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(13, 13, 13, 0.34);
  color: #5e5a53;
  font-family: var(--serif);
  font-size: clamp(0.78rem, 1.04vw, 0.96rem);
  line-height: 2.1;
}

.wound-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.wound-stat {
  position: relative;
  padding: 2rem 1.7rem 1.9rem 0;
}
.wound-stat + .wound-stat {
  padding-left: 1.7rem;
  border-left: 1px solid var(--line-dark);
}
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 7.2vw, 7.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat-value em {
  font-size: 0.24em;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
}
.stat-label {
  display: block;
  margin-top: 1.05rem;
  color: #5e5a53;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
sup a {
  color: var(--blood);
  font-family: var(--mono);
  font-size: 0.56em;
  text-decoration: none;
  vertical-align: super;
  margin-left: 0.1em;
}
sup a:hover { text-decoration: underline; }

.window-section {
  display: grid;
  grid-template-columns: minmax(290px, 0.8fr) minmax(380px, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(4rem, 8vw, 7.4rem) 0;
}
.chart-kicker {
  margin-bottom: 1.3rem;
  color: var(--blood);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
}
.chart-copy h3,
.child-copy h3,
.letter-copy h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.chart-copy > p:not(.chart-kicker),
.child-copy > p:not(.chart-kicker):not(.data-note),
.letter-copy > p:not(.chart-kicker) {
  max-width: 31rem;
  margin-top: 1.5rem;
  color: #57534c;
  font-family: var(--serif);
  font-size: clamp(0.86rem, 1vw, 0.96rem);
  line-height: 2.05;
}
.chart-legend {
  display: flex;
  gap: 1.3rem;
  margin-top: 2rem;
  color: #5f5b54;
  font-size: 0.63rem;
}
.chart-legend span { display: flex; align-items: center; gap: 0.45rem; }
.chart-legend i { width: 9px; height: 9px; display: inline-block; }
.key-hit { background: #1b1a18; }
.key-safe { border: 1px solid rgba(13,13,13,0.36); background: #e9e3d8; }

.window-figure { width: 100%; max-width: 560px; justify-self: end; }
.window-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: clamp(4px, 0.55vw, 7px);
  padding: clamp(0.75rem, 1.4vw, 1.2rem);
  border: 1px solid rgba(13,13,13,0.25);
  background: rgba(240, 236, 228, 0.25);
  box-shadow: 0 18px 60px rgba(60, 47, 34, 0.07);
}
.window-cell {
  position: relative;
  aspect-ratio: 1;
  background: #1b1a18;
  opacity: 0;
  transform: scale(0.55);
  transition: opacity 0.55s ease, transform 0.55s var(--ease), background 0.3s;
  transition-delay: calc(var(--i) * 4ms);
}
.window-cell.is-hit::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    linear-gradient(126deg, transparent 46%, rgba(222, 216, 204, 0.55) 47%, transparent 49%),
    linear-gradient(54deg, transparent 67%, rgba(222, 216, 204, 0.22) 68%, transparent 69%);
}
.window-cell:nth-child(7n).is-hit { background: #2a2420; }
.window-cell:nth-child(11n).is-hit { background: #3a2c24; }
.window-cell:nth-child(13n).is-hit::before { transform: scaleX(-1); }
.window-cell.is-safe { background: #e5dfd4; border: 1px solid rgba(13,13,13,0.24); }
.window-cell.is-safe::after {
  content: "";
  position: absolute;
  inset: 31%;
  background: rgba(142, 47, 38, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(142, 47, 38, 0.28);
}
.window-grid.is-in .window-cell { opacity: 1; transform: scale(1); }
.window-cell:hover { background: var(--blood); transform: scale(1.12); z-index: 2; }
.window-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  color: #615d56;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}
.window-caption span:first-child { color: var(--ink); }

.quote-band {
  position: relative;
  margin: 0 calc(var(--page-pad) * -0.16);
  padding: clamp(2.6rem, 6vw, 5.2rem) clamp(1.5rem, 6vw, 6rem);
  background: #111110;
  color: var(--bone);
  overflow: hidden;
}
.quote-band::after {
  content: "";
  position: absolute;
  right: -6%; top: -70%;
  width: 50%; aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}
.quote-mark {
  display: block;
  height: 0.6em;
  color: var(--blood-bright);
  font-family: Georgia, serif;
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.8;
}
.quote-band blockquote {
  position: relative;
  z-index: 1;
  max-width: 58rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.8vw, 2.7rem);
  line-height: 1.75;
  letter-spacing: 0.02em;
}
.quote-band cite {
  display: block;
  margin-top: 2rem;
  color: #99958c;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.66rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
}
.quote-band cite span { color: #66635d; font-family: var(--mono); font-size: 0.55rem; }

.child-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 4vw, 3.8rem);
  background: #121211;
  color: var(--bone);
}
.child-copy h3 { color: var(--bone); }
.child-copy > p:not(.chart-kicker):not(.data-note) { color: #9f9b92; }
.child-copy .data-note {
  margin-top: 1.8rem;
  color: #6f6b64;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
}
.child-copy .data-note sup a { color: #b85c50; }
.child-figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.child-dots {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: clamp(3px, 0.45vw, 6px);
  width: 100%;
}
.child-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c8c2b6;
  opacity: 0;
  transform: scale(0.35);
  transition: opacity 0.5s ease, transform 0.5s var(--ease), background 0.25s;
  transition-delay: calc(var(--i) * 0.7ms);
}
.child-dot:nth-child(7n) { background: #8f8a80; }
.child-dot:nth-child(11n) { background: var(--blood-bright); }
.child-dots.is-in .child-dot { opacity: 1; transform: scale(1); }
.child-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.3rem;
  color: #625e58;
  font-family: var(--mono);
  font-size: 0.46rem;
  letter-spacing: 0.12em;
}
.child-caption span { color: #cbc5b9; font-size: 0.9rem; letter-spacing: 0.04em; }

.loss-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line-dark);
}
.loss-item {
  padding: 1.8rem 1.8rem 0 0;
}
.loss-item + .loss-item {
  padding-left: 1.8rem;
  border-left: 1px solid var(--line-dark);
}
.loss-number {
  display: flex;
  align-items: flex-start;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.2vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.loss-number sup { margin-top: 0.25em; color: var(--blood); font-family: var(--sans); font-size: 0.28em; }
.loss-number em { margin-left: 0.18em; font-size: 0.23em; font-style: normal; letter-spacing: 0; }
.loss-text { margin-top: 0.8rem; font-size: 0.74rem; }
.loss-note {
  margin-top: 0.65rem;
  color: #6b665f;
  font-size: 0.61rem;
  line-height: 1.75;
}
.source-inline {
  margin-top: 2rem;
  color: #777168;
  font-family: var(--mono);
  font-size: 0.51rem;
  letter-spacing: 0.03em;
}

/* =========================================================
   04 — NOW
   ========================================================= */

.now {
  color: var(--bone);
  background:
    radial-gradient(ellipse at 15% 20%, rgba(109, 137, 133, 0.13), transparent 33%),
    radial-gradient(ellipse at 90% 85%, rgba(137, 101, 77, 0.08), transparent 36%),
    #0d1414;
  border-top: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}
.now::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255,255,255,0.024) calc(25% - 1px) 25%);
  pointer-events: none;
}
.now .section-inner { z-index: 1; }

.now-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.breath-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 470px;
  isolation: isolate;
}
.breath-stage::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 154, 152, 0.08), transparent 67%);
  filter: blur(10px);
}
.breath-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 270px; height: 270px;
  border: 1px solid rgba(129, 154, 152, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ringBreath 9s ease-in-out infinite;
}
.breath-ring-2 { width: 335px; height: 335px; animation-delay: -3s; opacity: 0.65; }
.breath-ring-3 { width: 405px; height: 405px; animation-delay: -6s; opacity: 0.38; }
@keyframes ringBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(0.91); opacity: 0.22; }
  48% { transform: translate(-50%, -50%) scale(1.06); opacity: 0.75; }
}
.breath-orb {
  position: relative;
  z-index: 2;
  width: clamp(176px, 18vw, 228px);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(202, 212, 207, 0.25);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(202, 215, 210, 0.16), transparent 34%),
    radial-gradient(circle at 50% 60%, #263332, #141b1b 72%);
  box-shadow:
    0 0 0 12px rgba(129, 154, 152, 0.025),
    0 0 75px rgba(129, 154, 152, 0.12),
    inset 0 0 55px rgba(190, 207, 202, 0.05);
  animation: orbBreath 9s ease-in-out infinite;
}
@keyframes orbBreath {
  0%, 100% { transform: scale(0.96); }
  48% { transform: scale(1.035); }
}
.breath-word {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.2vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-shadow: 0 0 28px rgba(209, 220, 215, 0.16);
}
.breath-small {
  margin-top: 0.2rem;
  color: rgba(211, 221, 216, 0.36);
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.28em;
}
.breath-caption {
  position: absolute;
  bottom: 0.4rem;
  left: 0;
  color: rgba(238, 234, 226, 0.58);
  font-family: var(--serif);
  font-size: 0.88rem;
  line-height: 1.65;
  letter-spacing: 0.08em;
}
.breath-hint {
  position: absolute;
  bottom: 0.6rem;
  right: 0;
  max-width: 9rem;
  color: rgba(238, 234, 226, 0.25);
  font-family: var(--mono);
  font-size: 0.48rem;
  line-height: 1.8;
  text-align: right;
  letter-spacing: 0.05em;
}

.survival-list {
  border-top: 1px solid var(--line-light);
}
.survival-item {
  display: grid;
  grid-template-columns: 2.2rem minmax(5.3rem, 0.75fr) 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 0.6rem 1.1rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  background: transparent;
  color: var(--bone);
  text-align: left;
  cursor: pointer;
  transition: padding-left 0.4s var(--ease), background 0.3s, opacity 0.3s;
}
.survival-item:hover { padding-left: 0.7rem; background: rgba(255,255,255,0.025); }
.survival-item.is-active { padding-left: 0.9rem; background: rgba(140, 168, 163, 0.06); }
.survival-item:not(.is-active) { opacity: 0.54; }
.survival-index {
  color: var(--blood-bright);
  font-family: var(--mono);
  font-size: 0.49rem;
  letter-spacing: 0.08em;
}
.survival-main { display: flex; align-items: baseline; gap: 0.7rem; }
.survival-main b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.18rem, 1.7vw, 1.5rem);
  letter-spacing: 0.06em;
}
.survival-main small {
  color: var(--ash);
  font-family: var(--mono);
  font-size: 0.44rem;
  letter-spacing: 0.16em;
}
.survival-value {
  justify-self: end;
  color: rgba(238, 235, 226, 0.32);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.3vw, 2.15rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.35s;
}
.survival-value em { font-size: 0.4em; font-style: normal; }
.survival-item.is-active .survival-value { color: var(--bone); }

.now-detail {
  min-height: 245px;
  margin-top: clamp(1.7rem, 3vw, 2.7rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(129, 154, 152, 0.3);
}
.now-kicker {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.15em;
}
.now-figure {
  display: flex;
  align-items: flex-start;
  margin-top: 0.8rem;
  font-family: var(--serif);
  font-size: clamp(3.3rem, 5.6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.now-figure em {
  margin-top: 0.15em;
  color: var(--teal);
  font-family: var(--sans);
  font-size: 0.25em;
  font-style: normal;
  letter-spacing: 0;
}
.now-desc {
  max-width: 42rem;
  margin-top: 1rem;
  color: #a8a59d;
  font-family: var(--serif);
  font-size: clamp(0.86rem, 1.08vw, 0.98rem);
  line-height: 2.05;
}
.now-source {
  margin-top: 0.9rem;
  color: #5f6562;
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.05em;
}

.now-note {
  display: grid;
  grid-template-columns: 0.35fr 1.15fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2rem, 4vw, 4rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-light);
}
.now-note-index {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.49rem;
  letter-spacing: 0.14em;
}
.now-note p {
  color: #aaa69e;
  font-family: var(--serif);
  font-size: 0.8rem;
  line-height: 2;
}
.now-note .now-note-small { color: #6c6a65; font-family: var(--sans); font-size: 0.66rem; }

/* =========================================================
   05 — FUTURE
   ========================================================= */

.future {
  color: var(--ink);
  background:
    linear-gradient(180deg, #d8d1c5 0%, #cec6ba 28%, #b8b0a5 60%, #cbc3b7 100%);
  padding-bottom: 0;
  overflow: hidden;
}
.future::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34%;
  background: linear-gradient(to bottom, transparent, rgba(36, 32, 28, 0.18));
  pointer-events: none;
}
.future-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.future-sun {
  position: absolute;
  left: 63%; top: 15%;
  width: min(24vw, 310px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, rgba(248, 238, 218, 0.92), rgba(229, 215, 192, 0.3) 52%, transparent 70%);
  filter: blur(8px);
  opacity: 0.68;
}
.future-haze {
  position: absolute;
  left: -10%; right: -10%; top: 39%;
  height: 24%;
  background: linear-gradient(180deg, transparent, rgba(233, 224, 208, 0.3) 42%, transparent);
  filter: blur(18px);
}
.future .section-inner { z-index: 1; }
.future .chapter-num { color: var(--blood); }
.future .section-en, .future .chapter-mark { color: #5e584f; }

.future-intro {
  padding: clamp(2.4rem, 5vw, 4.2rem) 0 clamp(2.8rem, 5vw, 4.8rem);
}
.future-intro .dropcap { max-width: 53rem; color: #25221e; }

.future-interactive {
  position: relative;
  border-top: 1px solid rgba(13,13,13,0.28);
}
.future-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(13,13,13,0.28);
}
.future-tab {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 1.25rem 1rem 1.1rem 0;
  border: 0;
  border-right: 1px solid rgba(13,13,13,0.18);
  background: transparent;
  color: #575149;
  text-align: left;
  cursor: pointer;
  transition: background 0.35s, color 0.35s, padding-left 0.35s var(--ease);
}
.future-tab:last-child { border-right: 0; }
.future-tab + .future-tab { padding-left: 1.25rem; }
.future-tab:hover { background: rgba(255,255,255,0.16); }
.future-tab.is-active { background: var(--ink); color: var(--bone); padding-left: 1.25rem; }
.future-tab > span {
  color: var(--blood);
  font-family: var(--mono);
  font-size: 0.48rem;
}
.future-tab.is-active > span { color: #c17164; }
.future-tab b { font-family: var(--serif); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.45rem); }
.future-tab small {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.44rem;
  letter-spacing: 0.1em;
  opacity: 0.52;
}

.future-horizon {
  position: relative;
  margin: 1.2rem 0 0;
  overflow: hidden;
}
.future-horizon svg { width: 100%; height: clamp(130px, 17vw, 220px); overflow: visible; }
.horizon-line {
  fill: none;
  stroke: rgba(13,13,13,0.68);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  transition: stroke-dashoffset 2.2s var(--ease);
}
.future-interactive.is-in .horizon-line { stroke-dashoffset: 0; }
.horizon-line-soft { stroke: rgba(13,13,13,0.22); stroke-dasharray: 5 8; }
.horizon-dot {
  fill: var(--blood);
  opacity: 0.25;
  transition: opacity 0.4s, r 0.4s;
}
.horizon-dot.is-active { opacity: 1; r: 8; filter: drop-shadow(0 0 8px rgba(142, 47, 38, 0.45)); }
.horizon-label {
  position: absolute;
  bottom: 0.1rem;
  color: #5e584f;
  font-family: var(--mono);
  font-size: 0.46rem;
  letter-spacing: 0.12em;
}
.horizon-label-a { left: 0; }
.horizon-label-b { right: 0; }

.future-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3.3rem, 6vw, 5.5rem);
  border-bottom: 1px solid rgba(13,13,13,0.24);
}
.future-kicker {
  margin-bottom: 1rem;
  color: var(--blood);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.18em;
}
.future-panel-copy h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.2vw, 4.5rem);
  line-height: 1.32;
  letter-spacing: 0.01em;
}
.future-panel-copy > p:last-child {
  max-width: 36rem;
  margin-top: 1.4rem;
  color: #514c45;
  font-family: var(--serif);
  font-size: clamp(0.87rem, 1.02vw, 0.97rem);
  line-height: 2.05;
}
.future-numbers {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(13,13,13,0.22);
}
.future-numbers > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(13,13,13,0.22);
}
.future-numbers strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.7vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.future-numbers em { margin-left: 0.1em; font-size: 0.34em; font-style: normal; letter-spacing: 0; }
.future-numbers span {
  max-width: 7.5rem;
  color: #625c53;
  font-size: 0.59rem;
  line-height: 1.6;
  text-align: right;
}

.future-question {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(4rem, 9vw, 8rem) 0;
}
.future-q-mark {
  color: rgba(142, 47, 38, 0.32);
  font-family: Georgia, serif;
  font-size: clamp(5rem, 12vw, 13rem);
  line-height: 0.75;
}
.future-question > p:last-child {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.7vw, 3.9rem);
  line-height: 1.62;
  letter-spacing: 0.015em;
}

.letter-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background: rgba(245, 240, 231, 0.36);
  border: 1px solid rgba(13,13,13,0.18);
  box-shadow: 0 26px 80px rgba(55, 44, 32, 0.06);
}
.letter-copy h3 { font-size: clamp(1.9rem, 3vw, 3.1rem); }
.letter-form {
  align-self: center;
  padding: 1.2rem;
  border: 1px solid rgba(13,13,13,0.24);
  background: rgba(236, 230, 220, 0.55);
}
.letter-form textarea {
  display: block;
  width: 100%;
  min-height: 5.3rem;
  padding: 0.9rem 0.8rem;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid rgba(13,13,13,0.3);
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.9;
  outline: none;
}
.letter-form textarea::placeholder { color: #8b857b; }
.letter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
}
.char-count { color: #756e64; font-family: var(--mono); font-size: 0.52rem; }
.char-count b { font-weight: 400; }
.letter-actions button {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.letter-actions button:hover { background: transparent; color: var(--ink); }
.letter-privacy {
  margin-top: 0.75rem;
  color: #7b746a;
  font-family: var(--mono);
  font-size: 0.47rem;
  letter-spacing: 0.05em;
}
.message-wall {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(13,13,13,0.18);
}
.message-empty {
  color: #7b746a;
  font-family: var(--serif);
  font-size: 0.76rem;
}
.message-wall ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}
.message-wall li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(13,13,13,0.26);
  background: rgba(247, 243, 235, 0.48);
  font-family: var(--serif);
  font-size: 0.75rem;
  animation: noteIn 0.6s var(--ease);
}
.message-wall li .note-text {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.75rem;
  line-height: 1.8;
}
.message-wall li span:last-child {
  color: #857d71;
  font-family: var(--mono);
  font-size: 0.43rem;
  letter-spacing: 0.05em;
}
@keyframes noteIn {
  from { opacity: 0; transform: translateY(6px) rotate(-1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.end-mark {
  position: relative;
  z-index: 1;
  margin: clamp(5rem, 10vw, 9rem) calc(50% - 50vw) 0;
  padding: clamp(4rem, 9vw, 8rem) var(--page-pad);
  background: #111110;
  color: var(--bone);
  text-align: center;
}
.end-kicker {
  color: var(--ash-dark);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.32em;
}
.end-line {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.8rem;
  color: var(--ash);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
}
.back-top span { display: inline-block; transition: transform 0.35s var(--ease); }
.back-top:hover { color: var(--bone); }
.back-top:hover span { transform: translateY(-4px); }

.sources {
  position: relative;
  z-index: 1;
  margin: 0 calc(50% - 50vw);
  padding: clamp(3rem, 6vw, 5rem) var(--page-pad);
  background: #0b0b0b;
  color: var(--ash);
}
.sources-head {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-light);
}
.sources-head .chart-kicker { margin: 0; color: #b85c50; }
.sources-head > p:last-child {
  max-width: 42rem;
  color: #77736b;
  font-size: 0.69rem;
  line-height: 1.9;
}
.source-list {
  max-width: var(--max);
  margin: 0 auto;
  list-style: none;
}
.source-list li {
  display: grid;
  grid-template-columns: 3.3rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.source-list li > span { color: #574f49; font-family: var(--mono); font-size: 0.5rem; }
.source-list p { font-size: 0.65rem; line-height: 1.8; }
.source-list a { color: #b2aca2; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.2); }
.source-list a:hover { color: var(--bone); }
.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem 2rem;
  max-width: var(--max);
  margin: 2.5rem auto 0;
  color: #4f4c47;
  font-family: var(--mono);
  font-size: 0.47rem;
  letter-spacing: 0.05em;
}

/* =========================================================
   STORY DIALOG
   ========================================================= */

.story-dialog {
  width: min(1050px, calc(100vw - 2rem));
  max-width: none;
  max-height: min(88vh, 820px);
  padding: 0;
  border: 1px solid rgba(240, 236, 228, 0.2);
  background: #111110;
  color: var(--bone);
  overflow: hidden;
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.7);
}
.story-dialog[open] { animation: dialogIn 0.5s var(--ease); }
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.story-dialog::backdrop {
  background: rgba(4, 4, 4, 0.78);
  backdrop-filter: blur(9px);
}

.dialog-shell {
  position: relative;
  display: grid;
  grid-template-columns: 246px 1fr;
  max-height: min(88vh, 820px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dialog-close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  z-index: 5;
  width: 2.2rem; height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 236, 228, 0.25);
  border-radius: 50%;
  background: rgba(10,10,10,0.38);
  color: var(--bone);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.dialog-close:hover { background: var(--bone); color: var(--ink); }

.dialog-aside {
  position: relative;
  min-height: 100%;
  padding: 2rem 1.4rem;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(ellipse at 24% 18%, rgba(143, 96, 66, 0.24), transparent 36%),
    linear-gradient(165deg, #211d19, #0d0d0c 70%);
}
.dialog-aside::before {
  content: "";
  position: absolute;
  left: -70%; bottom: -20%;
  width: 300px; height: 300px;
  border: 1px solid rgba(240, 236, 228, 0.08);
  border-radius: 50%;
}
.dialog-index {
  display: block;
  color: rgba(240, 236, 228, 0.1);
  font-family: var(--sans);
  font-size: 10rem;
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.1em;
}
.dialog-aside-label {
  margin-top: 2.4rem;
  color: rgba(240, 236, 228, 0.32);
  font-family: var(--mono);
  font-size: 0.55rem;
  line-height: 1.7;
  letter-spacing: 0.3em;
}
.dialog-aside-rule {
  display: block;
  width: 2.2rem;
  height: 1px;
  margin: 1.7rem 0;
  background: var(--blood-bright);
}
.dialog-aside-note {
  max-width: 11rem;
  color: rgba(240, 236, 228, 0.42);
  font-family: var(--serif);
  font-size: 0.7rem;
  line-height: 2;
  white-space: pre-line;
}

.dialog-main {
  min-width: 0;
  padding: clamp(2.2rem, 4.2vw, 4rem);
}
.dialog-kicker {
  color: #b85c50;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.13em;
}
.dialog-head h2 {
  margin-top: 0.65rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
}
.dialog-premise {
  max-width: 37rem;
  margin-top: 1.4rem;
  color: #b7b2a8;
  font-family: var(--serif);
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  line-height: 2.1;
}
.dialog-premise p + p { margin-top: 0.65rem; }

.choice-panel {
  margin-top: clamp(1.6rem, 3vw, 2.5rem);
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,0.09);
}
.choice-label {
  color: #726d65;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
}
.choice-buttons {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}
.choice-btn {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(240, 236, 228, 0.2);
  background: transparent;
  color: var(--bone);
  text-align: left;
  cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.choice-btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); transform: translateX(5px); }
.choice-btn-letter {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--blood-bright);
}
.choice-btn:hover .choice-btn-letter { color: var(--blood); }
.choice-btn-text { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.02em; }
.choice-btn-arrow { font-size: 0.82rem; opacity: 0.45; transition: transform 0.3s; }
.choice-btn:hover .choice-btn-arrow { opacity: 1; transform: translate(2px, -2px); }
.choice-note {
  margin-top: 0.9rem;
  color: #5d5953;
  font-size: 0.58rem;
  line-height: 1.8;
}

.branch-panel {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.09);
  animation: branchIn 0.7s var(--ease);
}
@keyframes branchIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.branch-choice-label {
  color: #8a8178;
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
}
.branch-panel h3 {
  margin-top: 0.55rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.45;
  color: #e9e4da;
}
.branch-body {
  max-width: 39rem;
  margin-top: 1.15rem;
}
.branch-body p {
  color: #bbb6ac;
  font-family: var(--serif);
  font-size: clamp(0.87rem, 1.02vw, 0.96rem);
  line-height: 2.08;
}
.branch-body p + p { margin-top: 0.8rem; }
.branch-source {
  margin-top: 1.4rem;
  color: #645f58;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
}
.branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.9rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #b4ada3;
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.text-btn:hover { color: var(--bone); }
.text-btn-muted { color: #5f5a54; }

.placeholder-panel {
  margin-top: 1.7rem;
  padding: 1.45rem;
  border: 1px dashed rgba(240, 236, 228, 0.2);
  animation: branchIn 0.6s var(--ease);
}
.placeholder-mark { color: var(--blood-bright); font-family: var(--mono); font-size: 1rem; }
.placeholder-panel h3 {
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}
.placeholder-panel > p:not(.placeholder-mark):not(.placeholder-note) {
  max-width: 33rem;
  margin-top: 0.8rem;
  color: #aaa49a;
  font-family: var(--serif);
  font-size: 0.85rem;
  line-height: 2;
}
.placeholder-note {
  margin-top: 1rem;
  color: #5f5a54;
  font-family: var(--mono);
  font-size: 0.49rem;
  letter-spacing: 0.08em;
}
.placeholder-panel .text-btn { margin-top: 1.4rem; }

/* ----------------------------- misc fixed */

.back-fab {
  position: fixed;
  right: clamp(1rem, 2.3vw, 2.2rem);
  bottom: clamp(1rem, 2.3vw, 2rem);
  z-index: 190;
  width: 3.1rem;
  height: 3.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  border: 1px solid rgba(240, 236, 228, 0.2);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.58);
  color: rgba(240, 236, 228, 0.64);
  font-family: var(--mono);
  font-size: 0.74rem;
  backdrop-filter: blur(7px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s var(--ease), background 0.3s, color 0.3s;
}
.back-fab span { font-size: 0.4rem; letter-spacing: 0.08em; }
body.is-scrolled .back-fab { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-fab:hover { background: var(--bone); color: var(--ink); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1280px) {
  .chapter-rail { display: none; }
}

@media (max-width: 1180px) {
  .section-head {
    grid-template-columns: 90px 1fr;
    align-items: start;
  }
  .section-lead {
    grid-column: 2;
    max-width: 29rem;
    margin-top: 0.8rem;
  }
  .story-rail { grid-auto-columns: calc((100% - 2.2rem) / 3); }
  .story-card:last-child { margin-right: 18vw; }
  .wound-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-value { font-size: clamp(3rem, 7vw, 5.6rem); }
  .now-layout { gap: 3.5rem; }
  .breath-caption, .breath-hint { position: static; margin-top: 1.1rem; text-align: center; max-width: none; }
  .breath-stage { min-height: 420px; }
}

@media (max-width: 940px) {
  .cover-meta { display: none; }
  .cover-foot { grid-template-columns: 1fr auto; }
  .cover-scroll span { display: none; }
  .cover-scroll i { height: 28px; }

  .story-rail { grid-auto-columns: min(74vw, 390px); }
  .story-card:last-child { margin-right: 20vw; }
  .stories-foot { flex-direction: column; gap: 0.8rem; }
  .stories-foot-note { text-align: left; white-space: normal; }

  .wound-intro { grid-template-columns: 1fr; gap: 2rem; }
  .wound-aside { max-width: 28rem; }
  .window-section { grid-template-columns: 1fr; gap: 2.4rem; }
  .window-figure { justify-self: start; max-width: 560px; }
  .child-section { grid-template-columns: 1fr; }
  .child-dots { max-width: 600px; }

  .now-layout { grid-template-columns: 1fr; gap: 2rem; }
  .breath-stage { min-height: 370px; }
  .now-content { max-width: 720px; margin: 0 auto; width: 100%; }
  .now-note { grid-template-columns: 1fr 1fr; }
  .now-note-index { grid-column: 1 / -1; }

  .future-panel { grid-template-columns: 1fr; gap: 2.4rem; }
  .future-numbers { max-width: 35rem; }
  .letter-section { grid-template-columns: 1fr; }
  .letter-copy > p:not(.chart-kicker) { max-width: 38rem; }
  .sources-head { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --page-pad: 1.15rem; }
  body { font-size: 15px; }
  .site-head { padding-top: 1rem; padding-bottom: 1rem; }
  .brand { gap: 0.5rem; }
  .brand-en { display: none; }
  .head-date { display: none; }
  .chapter-rail { display: none; }
  .site-menu li a { grid-template-columns: 2.4rem 1fr; }
  .site-menu li small { display: none; }
  .site-menu-inner { padding-top: 6rem; }

  .chapter { padding-top: 6.8rem; padding-bottom: 4.5rem; }
  .cover { padding: 0; }
  .cover-content { padding-left: 1.1rem; padding-right: 1.1rem; padding-bottom: 8rem; }
  .cover-kicker { letter-spacing: 0.2em; font-size: 0.57rem; }
  .hero-title { font-size: clamp(3rem, 18vw, 6.2rem); letter-spacing: 0; white-space: normal; line-height: 1.06; }
  .hero-title .char.gap { margin-left: 0; }
  .hero-line { display: block; white-space: normal; }
  .hero-seg { display: block; white-space: nowrap; }
  .hero-seg + .hero-seg { margin-top: 0.02em; }
  .hero-en { letter-spacing: 0.35em; }
  .hero-dek { font-size: 0.88rem; letter-spacing: 0.05em; }
  .mobile-br { display: block; }
  .cover-foot { grid-template-columns: 1fr; gap: 0.7rem; bottom: 1.15rem; }
  .cover-credit { font-size: 0.58rem; max-width: 20rem; }
  .cover-scroll { position: absolute; right: 0; bottom: 0.2rem; }
  .tear-field { opacity: 0.7; }
  .tear { top: 44%; }
  .tear-a { --x: 17%; }
  .tear-c { --x: 83%; }
  .tear-d { display: none; }

  .section-head { grid-template-columns: 1fr; gap: 0.8rem; padding-bottom: 2.2rem; }
  .chapter-mark { grid-row: 1; }
  .section-title-wrap h2 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .section-lead { grid-column: 1; margin-top: 0; }
  .story-toolbar { align-items: flex-end; margin-top: 1.6rem; }
  .rail-hint { max-width: 13rem; font-size: 0.62rem; }
  .hint-line { display: none; }
  .rail-controls { gap: 0.55rem; }
  .rail-controls button { width: 2rem; height: 2rem; }
  .story-rail { grid-auto-columns: 82vw; gap: 0.8rem; }
  .story-card { min-height: 440px; }
  .story-card:last-child { margin-right: 18vw; }
  .card-art { height: 160px; }
  .stories-foot { font-size: 0.58rem; }
  .stories-foot-note { display: none; }

  .wound-intro { padding-top: 2rem; }
  .dropcap { font-size: 0.98rem; line-height: 2; }
  .wound-stats { grid-template-columns: 1fr; }
  .wound-stat { padding: 1.4rem 0; }
  .wound-stat + .wound-stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .stat-value { font-size: clamp(3.4rem, 19vw, 5.2rem); }
  .stat-label { margin-top: 0.5rem; }
  .window-section { padding: 3.2rem 0; }
  .window-grid { gap: 4px; padding: 0.55rem; }
  .quote-band { margin-left: -0.35rem; margin-right: -0.35rem; padding-left: 1.15rem; padding-right: 1.15rem; }
  .quote-band blockquote { font-size: clamp(1.15rem, 5.9vw, 1.65rem); line-height: 1.85; }
  .child-section { padding: 1.4rem; margin-top: 3rem; }
  .child-dots { grid-template-columns: repeat(20, 1fr); gap: 4px; }
  .child-caption { display: block; }
  .child-caption span { display: block; margin-bottom: 0.2rem; }
  .loss-strip { grid-template-columns: 1fr; }
  .loss-item { padding: 1.4rem 0; }
  .loss-item + .loss-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .loss-number { font-size: clamp(3rem, 16vw, 4.4rem); }

  .breath-stage { min-height: 340px; }
  .breath-ring { width: 230px; height: 230px; }
  .breath-ring-2 { width: 285px; height: 285px; }
  .breath-ring-3 { width: 335px; height: 335px; }
  .breath-orb { width: 165px; }
  .breath-word { font-size: 2.4rem; }
  .breath-caption br { display: none; }
  .breath-caption { font-size: 0.75rem; }
  .breath-hint { display: none; }
  .survival-item { grid-template-columns: 1.6rem 1fr auto; gap: 0.65rem; }
  .survival-main small { display: none; }
  .survival-value { font-size: 1.35rem; }
  .now-detail { min-height: 220px; }
  .now-figure { font-size: 3.4rem; }
  .now-note { grid-template-columns: 1fr; }
  .now-note-index { grid-column: auto; }

  .future-intro { padding-top: 2rem; }
  .future-tabs { grid-template-columns: 1fr; }
  .future-tab { border-right: 0; border-bottom: 1px solid rgba(13,13,13,0.18); padding-left: 0; }
  .future-tab + .future-tab { padding-left: 0; }
  .future-tab.is-active { padding-left: 0.9rem; }
  .future-tab small { font-size: 0.4rem; }
  .future-panel { padding: 2rem 0 3rem; }
  .future-panel-copy h3 { font-size: clamp(2rem, 9vw, 3rem); }
  .future-numbers > div { padding: 0.8rem 0; }
  .future-numbers span { max-width: 6.5rem; }
  .future-question { position: relative; gap: 0; padding: 3.5rem 0 3.5rem 1.6rem; }
  .future-q-mark {
    position: absolute;
    left: 0;
    top: 2.5rem;
    font-size: 4.1rem;
    opacity: 0.34;
  }
  .future-question > p:last-child { font-size: clamp(1.34rem, 5.8vw, 1.95rem); line-height: 1.7; }
  .letter-section { padding: 1.3rem; gap: 1.6rem; }
  .message-wall { margin-top: 0.2rem; }

  .end-mark { padding-top: 4rem; padding-bottom: 4rem; }
  .end-line { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .source-list li { grid-template-columns: 2rem 1fr; gap: 0.6rem; }
  .colophon { display: block; }
  .colophon p + p { margin-top: 0.4rem; }

  .story-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
    border: 0;
  }
  .dialog-shell {
    display: block;
    max-height: 100svh;
    height: 100%;
  }
  .dialog-aside {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 0;
    padding: 1rem 3.6rem 1rem 1.2rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .dialog-aside::before { display: none; }
  .dialog-index { font-size: 2.2rem; color: rgba(240, 236, 228, 0.3); }
  .dialog-aside-label { margin: 0; font-size: 0.4rem; letter-spacing: 0.18em; }
  .dialog-aside-rule { width: 1.5rem; margin: 0; }
  .dialog-aside-note { display: none; }
  .dialog-close { position: fixed; top: 0.7rem; right: 0.7rem; background: #111; }
  .dialog-main { padding: 1.5rem 1.15rem 3rem; }
  .dialog-head h2 { font-size: 2rem; }
  .choice-btn { grid-template-columns: 1.6rem 1fr auto; gap: 0.6rem; padding: 0.85rem 0.8rem; }
  .choice-btn-text { font-size: 0.9rem; }
  .branch-actions { justify-content: space-between; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 17.2vw; }
  .cover-kicker { font-size: 0.52rem; }
  .hero-dek { font-size: 0.8rem; }
  .window-cell.is-safe::after { inset: 26%; }
  .future-tab b { font-size: 1rem; }
  .future-tab small { display: none; }
}

/* ----------------------------- motion / print */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-title .char { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  .cover-img { animation: none; transform: scale(1.04); }
  .dust-canvas { display: none; }
  .tear-field { display: none; }
  .window-cell, .child-dot { opacity: 1; transform: none; }
}

@media print {
  .site-head, .chapter-rail, .site-grain, .reading-progress, .back-fab, .cover-scroll, .story-toolbar, .rail-controls, .letter-form, .media-edit { display: none !important; }
  body, .stories, .now, .cover, .wounds, .future, .sources { background: #fff !important; color: #000 !important; }
  .chapter { min-height: 0; break-after: page; padding: 2rem; }
}
