/* FROZEN INK — see DESIGN.md */
:root {
  --ink: #0a0a0a;
  --ink-2: #161616;
  --paper: #eceae4;
  --paper-2: #d9d6ce;
  --frost: #c9d1d6;
  --fire: #ff4d12;
  --ember: #ffb02e;
  --heat: 0;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --display: "Anton", Impact, sans-serif;
  --jp: "Zen Antique", serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --tone: radial-gradient(var(--ink) 1.2px, transparent 1.4px) 0 0 / 6px 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--frost);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 {
  font: 400 clamp(48px, 8vw, 120px)/.92 var(--display);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.jp { font-family: var(--jp); }
.mono, .label {
  font: 500 12px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.label { margin: 0 0 18px; opacity: .7; }
.label--fire { color: var(--ember); opacity: 1; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 8px 14px;
}
.skip:focus { top: 12px; }

/* ---------- global layers ---------- */
#weather {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 40;
}
.heatwash {
  position: fixed; inset: 0; pointer-events: none; z-index: 39;
  background: radial-gradient(120% 70% at 50% 110%, var(--fire), transparent 60%);
  opacity: calc(var(--heat) * .45);
  mix-blend-mode: screen;
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 41; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- network + masthead ---------- */
.network {
  position: relative; z-index: 50;
  display: flex; gap: 14px; align-items: center; justify-content: center;
  padding: 7px 16px; border-bottom: 1px solid #2a2a2a;
  font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.network__link { text-decoration: none; color: var(--paper); }
.network__link:hover { text-decoration: underline; }
.network__sub { opacity: .55; }

.masthead {
  position: sticky; top: 0; z-index: 45;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  color: #fff; mix-blend-mode: difference;
}
.wordmark {
  font: 400 26px/1 var(--display); letter-spacing: .02em; text-decoration: none;
}
.wordmark span { opacity: .45; margin: 0 2px; }
.nav { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav a {
  font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.lang {
  font: 500 12px/1 var(--mono); letter-spacing: .1em;
  background: none; color: #fff; border: 2px solid #fff; padding: 7px 10px; cursor: pointer;
}

/* ---------- HUD thermometer ---------- */
.hud {
  position: fixed; left: clamp(12px, 2vw, 24px); bottom: 20px; z-index: 46;
  display: flex; align-items: flex-end; gap: 10px;
  color: #fff; mix-blend-mode: difference;
}
.hud__bar { width: 6px; height: 90px; border: 1.5px solid #fff; position: relative; }
.hud__bar i {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--fill, 5%); background: #fff; transition: height .3s;
}
.hud__txt { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; }
.hud__txt b { display: block; font: 400 26px/1 var(--display); letter-spacing: 0; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; margin-top: -58px;
  display: grid; place-content: center; justify-items: center; text-align: center;
  padding: 120px 20px 160px; overflow: hidden; isolation: isolate;
}
.hero__speed {
  position: absolute; inset: -30%; z-index: -1;
  background: repeating-conic-gradient(from 0deg at 50% 55%, #ffffff0d 0 .6deg, transparent .6deg 3.2deg);
  -webkit-mask: radial-gradient(circle at 50% 55%, transparent 18%, #000 60%);
          mask: radial-gradient(circle at 50% 55%, transparent 18%, #000 60%);
  opacity: calc(.35 + var(--heat) * .65);
  transform: scale(calc(1 + var(--heat) * .08));
}
.hero__kicker { margin: 0 0 18px; opacity: .65; }
.hero__title {
  font: 400 clamp(84px, 15vw, 240px)/.82 var(--display);
  text-transform: uppercase; display: grid;
}
.hero__line {
  position: relative; display: block;
  color: transparent; -webkit-text-stroke: 2px var(--frost);
}
.hero__line::after {           /* fire rising inside the letters */
  content: attr(data-text);
  position: absolute; inset: 0;
  -webkit-text-stroke: 0;
  background: linear-gradient(0deg, var(--fire) 0%, var(--ember) 45%, #fff6d8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  clip-path: inset(calc((1 - var(--heat)) * 100%) 0 0 0);
  filter: drop-shadow(0 0 calc(var(--heat) * 24px) var(--fire));
}
.hero__line::before {          /* faint frost fill so it reads when cold */
  content: attr(data-text); position: absolute; inset: 0;
  -webkit-text-stroke: 0; color: var(--frost); opacity: calc(.14 * (1 - var(--heat)));
}
.hero__jp {
  position: absolute; right: clamp(14px, 5vw, 70px); top: 50%; translate: 0 -50%;
  writing-mode: vertical-rl; font-size: clamp(28px, 4vw, 54px); letter-spacing: .2em;
  margin: 0; color: var(--paper);
}
.hero__lede { max-width: 30ch; margin: 28px auto 34px; font-size: 19px; color: var(--paper); }
.ignite {
  position: relative; display: grid; place-items: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: none; color: var(--paper); border: 2px solid var(--frost);
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none;
  transition: border-color .3s;
}
.ignite span.mono { max-width: 11ch; font-size: 11px; }
.ignite__ring {
  position: absolute; inset: -8px; border-radius: 50%;
  background: conic-gradient(var(--fire) calc(var(--heat) * 360deg), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
}
.ignite:hover { border-color: var(--ember); }
.hero__fire {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38%;
  z-index: -1; image-rendering: pixelated; opacity: .95;
}
.hero__down {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0;
  text-decoration: none; color: var(--paper);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- chapter break ---------- */
.chapter {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 24px;
  padding: 26px clamp(16px, 5vw, 64px);
  background: var(--ink); color: var(--paper);
  border-block: 3px solid var(--paper);
}
.chapter::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 22px, #ffffff12 22px 24px);
  transform: translateX(-100%); transition: transform 1.1s var(--ease);
}
.chapter .jp { font-size: clamp(36px, 5vw, 64px); line-height: 1; }
.chapter .jp, .chapter .mono {
  position: relative; transform: translateX(-40px); opacity: 0;
  transition: transform .9s var(--ease), opacity .9s;
}
.chapter .mono { transition-delay: .12s; }
.chapter.is-in::before { transform: translateX(0); }
.chapter.is-in .jp, .chapter.is-in .mono { transform: none; opacity: 1; }
.chapter--fire .jp { color: var(--ember); text-shadow: 0 0 18px var(--fire); }

/* ---------- panel wipe (only with JS) ---------- */
.js .wipe {
  clip-path: polygon(0 0, 0 0, -20% 100%, -20% 100%);
  transition: clip-path .9s var(--ease);
}
.js .wipe.is-in { clip-path: polygon(0 0, 120% 0, 100% 100%, -20% 100%); }
.js .char.wipe { transition: clip-path .9s var(--ease), color .35s, border-color .35s; }

/* ---------- manga page sections ---------- */
.page {
  position: relative; background: var(--paper); color: var(--ink);
  padding: clamp(56px, 8vw, 110px) clamp(14px, 4vw, 48px);
}
.page__grid, .page__head, .cast { max-width: 1240px; margin: 0 auto; }
.world {
  display: grid; gap: 12px;
  grid-template-columns: repeat(6, 1fr);
}
.panel {
  position: relative; border: 3px solid var(--ink); background: var(--paper);
  padding: clamp(22px, 3vw, 38px);
}
.panel p { margin: 0; max-width: 52ch; }
.panel--wide { grid-column: 1 / -1; padding-block: clamp(36px, 5vw, 64px); }
.panel--tone { grid-column: span 4; }
.panel--tone::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 45%; height: 70%;
  background: var(--tone); opacity: .22; pointer-events: none;
  -webkit-mask: linear-gradient(135deg, transparent 30%, #000);
          mask: linear-gradient(135deg, transparent 30%, #000);
}
.panel--ink { grid-column: span 2; background: var(--ink); color: var(--paper); }
.panel--ink .big { font-size: clamp(44px, 5vw, 68px); line-height: 1; margin-bottom: 14px; }
.panel--quote {
  grid-column: span 3; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; font-weight: 500;
  background:
    repeating-conic-gradient(from 0deg at 0% 50%, #0000000f 0 .8deg, transparent .8deg 3deg),
    var(--paper);
}
.panel--city { grid-column: span 3; padding: 0; margin: 0; display: flex; flex-direction: column; }
.panel--city img { width: 100%; height: 240px; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.panel--city figcaption { padding: 16px 20px; border-top: 3px solid var(--ink); font-size: 15px; }
.sfx {
  position: absolute !important; right: 18px; top: 50%; translate: 0 -50%;
  font: 400 64px/1 var(--jp); transform: rotate(-8deg);
  color: var(--paper); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
}

.page__head { margin-bottom: 36px; }
.note { margin: 14px 0 0; opacity: .7; }

/* ---------- AGNI ---------- */
.agni {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
  padding: clamp(64px, 9vw, 130px) clamp(16px, 4vw, 48px);
}
.agni::before {     /* permanent ember glow behind Agni */
  content: ""; position: absolute; left: 10%; top: 20%; width: 50vw; height: 50vw;
  background: radial-gradient(circle, #ff4d1233, transparent 65%);
  opacity: calc(.6 + var(--heat) * .4); pointer-events: none;
}
.agni__inner {
  position: relative; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.agni__cover {
  position: relative; margin: 0; border: 3px solid var(--paper);
  --mx: 50%; --my: 40%; --r: 0px; cursor: crosshair;
}
.agni__cover img { width: 100%; height: auto; filter: grayscale(1) contrast(1.15) brightness(.9); }
.agni__cover .agni__color {
  position: absolute; inset: 0; height: 100%; object-fit: cover; filter: saturate(1.2);
  -webkit-mask: radial-gradient(circle at var(--mx) var(--my), #000 var(--r), transparent calc(var(--r) + 70px));
          mask: radial-gradient(circle at var(--mx) var(--my), #000 var(--r), transparent calc(var(--r) + 70px));
}
.agni__cover figcaption {
  position: absolute; left: -3px; right: -3px; top: 100%;
  background: var(--paper); color: var(--ink); padding: 8px 12px; font-size: 11px;
}
.agni__name {
  font: 400 clamp(90px, 14vw, 200px)/.85 var(--display);
  color: var(--ember);
  text-shadow: 0 0 calc(10px + var(--heat) * 40px) var(--fire);
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px;
}
.agni__name .jp {
  writing-mode: vertical-rl; font-size: clamp(20px, 2.4vw, 32px);
  color: var(--paper); text-shadow: none; letter-spacing: .15em;
}
.agni__text p { max-width: 54ch; margin: 0 0 16px; }
.agni__text strong { color: var(--ember); font-weight: 700; }
.agni__quote {
  margin: 30px 0; padding: 18px 22px; border-left: 4px solid var(--fire);
  display: flex; align-items: center; gap: 20px;
}
.agni__quote .jp { font-size: 52px; line-height: 1; color: var(--paper); }
.agni__stats {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 2px solid #ffffff33;
}
.agni__stats li { padding: 14px; border-right: 2px solid #ffffff33; }
.agni__stats li:last-child { border: 0; }
.agni__stats span { display: block; opacity: .55; margin-bottom: 6px; }
.agni__stats b { font: 400 18px/1.2 var(--display); letter-spacing: .03em; color: var(--paper); }

/* ---------- CAST ---------- */
.cast {
  display: grid; gap: 12px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 290px;
}
.char {
  position: relative; overflow: hidden; isolation: isolate;
  grid-column: span 2;
  border: 3px solid var(--ink); background: var(--ink); color: var(--ink);
  padding: 0; text-align: left; font: inherit; cursor: pointer;
}
.js .char.wipe { transition: clip-path .9s var(--ease), border-color .35s; }
.cast .char:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.cast .char:nth-child(7), .cast .char:nth-child(8) { grid-column: span 3; }
.char__img { position: absolute; inset: 0; }
.char__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12);
  transition: transform .8s var(--ease), filter .5s;
}
.char__img::after {          /* the burn: fire tint rises over the manga print */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--fire), var(--ember) 45%, #ffd9a0 80%);
  mix-blend-mode: multiply;
  clip-path: inset(100% 0 0 0);
  transition: clip-path .7s var(--ease);
}
.char__jp {
  position: absolute; top: 0; right: 0; writing-mode: vertical-rl;
  font: 400 22px/1 var(--jp); letter-spacing: .12em;
  background: var(--ink); color: var(--paper); padding: 12px 8px;
}
.char__plate {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--paper); border-top: 3px solid var(--ink);
  padding: 12px 18px 14px;
  transition: background .35s, color .35s, border-color .35s;
}
.char__name { display: block; font: 400 clamp(28px, 3vw, 40px)/.95 var(--display); text-transform: uppercase; }
.cast .char:nth-child(1) .char__name { font-size: clamp(56px, 8vw, 110px); }
.char__desc {
  display: block; max-width: 46ch; font-size: 14.5px; line-height: 1.5;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s, margin .4s;
}
.cast .char:nth-child(1) .char__desc { max-height: 8em; opacity: 1; margin-top: 8px; font-size: 16px; }
.char:is(:hover, :focus-visible, .lit) { border-color: var(--fire); }
.char:is(:hover, :focus-visible, .lit) .char__img img { transform: scale(1.05); }
.char:is(:hover, :focus-visible, .lit) .char__img::after { clip-path: inset(0); }
.char:is(:hover, :focus-visible, .lit) .char__plate { background: var(--ink); color: var(--paper); border-color: var(--fire); }
.char:is(:hover, :focus-visible, .lit) .char__desc { max-height: 8em; opacity: 1; margin-top: 8px; }
/* the ice witch freezes instead of burns */
.char--ice .char__img::after { background: linear-gradient(0deg, #fff, var(--frost) 55%, #8d979c); mix-blend-mode: screen; }
.char--ice:is(:hover, :focus-visible, .lit) { border-color: var(--frost); }
.char--ice:is(:hover, :focus-visible, .lit) .char__plate { border-color: var(--frost); }

.side__title { max-width: 1240px; margin: 56px auto 14px; font-size: 13px; }
.side {
  max-width: 1240px; margin: 0 auto;
  display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 330px;
}
.char--side { grid-column: auto; }

/* ---------- ARCS ---------- */
.arcs {
  position: relative; background: var(--ink); color: var(--paper);
  padding: clamp(64px, 9vw, 130px) clamp(16px, 4vw, 48px);
}
.arcs__inner { max-width: 1240px; margin: 0 auto; }
.arcs__head .note { max-width: 62ch; color: var(--frost); }
.arcs__head strong { color: var(--ember); }

.ruler { margin: 44px 0 56px; }
.ruler__label { margin: 0 0 12px; opacity: .6; }
.ruler__track { display: flex; gap: 6px; }
.ruler__seg {
  flex-basis: 0; min-width: 72px; text-decoration: none; color: var(--frost);
  display: grid; gap: 6px; align-content: start;
}
.ruler__ticks {
  height: 36px; border-bottom: 3px solid currentColor;
  background: linear-gradient(90deg, currentColor 2px, transparent 2px) 0 0 / calc(100% / var(--n)) 100%;
  opacity: .55; transition: opacity .3s, color .3s;
}
.ruler__name { font: 400 18px/1.05 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.ruler__ch { font-size: 11px; opacity: .6; }
.ruler__seg:is(:hover, :focus-visible, .on) { color: var(--ember); }
.ruler__seg:is(:hover, :focus-visible, .on) .ruler__ticks { opacity: 1; filter: drop-shadow(0 0 6px var(--fire)); }

.arcs__list { display: grid; gap: 28px; }
.arc {
  display: grid; grid-template-columns: minmax(220px, 4fr) 8fr;
  border: 3px solid var(--paper); background: var(--ink-2);
  scroll-margin-top: 90px;
}
.arc:nth-child(even) { grid-template-columns: 8fr minmax(220px, 4fr); }
.arc:nth-child(even) .arc__visual { order: 2; border-right: 0; border-left: 3px solid var(--paper); }
.arc__visual { position: relative; overflow: hidden; border-right: 3px solid var(--paper); }
.arc__visual img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  filter: grayscale(1) contrast(1.15) brightness(.85);
  transition: filter .8s, transform 1.2s var(--ease);
}
.arc:hover .arc__visual img, .arc:has(.seal.open) .arc__visual img { filter: none; transform: scale(1.03); }
.arc__no {
  position: absolute; left: 14px; bottom: -10px;
  font: 400 clamp(110px, 13vw, 190px)/.8 var(--display);
  color: transparent; -webkit-text-stroke: 3px var(--paper);
  text-shadow: 0 0 30px #000;
}
.arc__body { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; }
.arc__meta { margin: 0 0 12px; color: var(--frost); opacity: .75; }
.arc__name {
  font: 400 clamp(48px, 6vw, 84px)/.9 var(--display); text-transform: uppercase;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
}
.arc__name .jp { font-size: clamp(18px, 2vw, 24px); color: var(--frost); letter-spacing: .1em; }
.arc__hook { margin: 20px 0 10px; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.35; font-weight: 500; color: #fff; max-width: 34ch; }
.arc__tease { margin: 0 0 18px; color: var(--frost); max-width: 58ch; }
.arc__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 26px; }
.arc__tags li { border: 1.5px solid #ffffff40; padding: 5px 9px; font-size: 11px; }

/* frozen spoiler seal */
.seal { position: relative; margin-top: auto; border: 2px solid #ffffff2e; --melt: 0; }
.spoil {
  padding: 22px 24px; max-height: 210px; overflow: hidden;
  filter: blur(calc((1 - var(--melt)) * 7px)); opacity: calc(.45 + var(--melt) * .3);
  user-select: none; transition: max-height .9s var(--ease);
}
.spoil h4 { margin: 0 0 8px; color: var(--ember); font-size: 12px; }
.spoil h4:not(:first-child) { margin-top: 22px; }
.spoil p { margin: 0; max-width: 66ch; }
.spoil__note { margin-top: 10px !important; font-size: 13px; opacity: .6; font-style: italic; }
.spoil__close {
  margin-top: 22px; background: none; color: var(--frost); cursor: pointer;
  border: 2px solid #ffffff40; padding: 9px 14px; font-size: 11px;
}
.spoil__close:hover { border-color: var(--frost); color: #fff; }
.ice {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none; z-index: 1;
}
.seal__btn {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper); border: 2px solid var(--paper);
  padding: 13px 18px; cursor: pointer; white-space: nowrap;
  user-select: none; -webkit-user-select: none; touch-action: none;
  z-index: 2;
  box-shadow: 4px 4px 0 var(--ink);
  transition: border-color .3s, background .3s, opacity .35s, scale .35s;
}
.seal__btn:hover { border-color: var(--ember); background: #1d1d1d; }
.seal__btn:hover .seal__flake { rotate: 60deg; color: var(--ember); }
.seal__flake { font-size: 20px; line-height: 1; transition: rotate .5s var(--ease), color .3s; }
.seal.melting .seal__btn, .seal.freezing .seal__btn { opacity: 0; scale: .85; pointer-events: none; }
.seal.open .spoil { filter: none; opacity: 1; max-height: 1400px; user-select: text; }
.seal.open .ice, .seal.open .seal__btn { display: none; }
.seal.freezing .spoil { transition: none; }   /* collapse instantly so the ice is sized to the sealed box */

/* volume shelf */
.shelf__label { margin: 0 0 14px; opacity: .65; }
.shelf { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-bottom: 56px; }
.vol { margin: 0; }
.vol img {
  width: 100%; height: auto; border: 2px solid var(--paper);
  filter: grayscale(1) contrast(1.1);
  transition: filter .5s, transform .5s var(--ease);
}
.vol:hover img { filter: none; transform: translateY(-8px) rotate(-1.5deg); }
.vol figcaption { margin-top: 10px; font-size: 10.5px; line-height: 1.5; opacity: .75; }
.vol figcaption b { display: block; font: 400 18px/1.1 var(--display); letter-spacing: .02em; }

/* ---------- FACTS ---------- */
.facts {
  background: var(--ink); color: var(--paper);
  padding: clamp(64px, 9vw, 130px) clamp(16px, 4vw, 48px);
}
.facts__inner { max-width: 1240px; margin: 0 auto; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 40px 0 56px;
}
.stat { border: 3px solid var(--paper); padding: 22px; }
.stat b {
  display: block; font: 400 clamp(56px, 7vw, 110px)/.9 var(--display);
  color: transparent; -webkit-text-stroke: 2px var(--paper);
}
.stat span { display: block; margin-top: 12px; opacity: .7; }
.trivia {
  list-style: none; counter-reset: t; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 2px solid #ffffff2e;
}
.trivia li {
  counter-increment: t; position: relative;
  padding: 22px 22px 22px 70px; border-bottom: 2px solid #ffffff2e;
  transition: background .3s, color .3s;
}
.trivia li:nth-child(odd) { border-right: 2px solid #ffffff2e; }
.trivia li::before {
  content: counter(t, decimal-leading-zero);
  position: absolute; left: 20px; top: 20px;
  font: 400 26px/1 var(--display); color: var(--frost); opacity: .5;
}
.trivia li:hover { background: var(--paper); color: var(--ink); }
.trivia li:hover::before { color: var(--fire); opacity: 1; }

/* ---------- READ ---------- */
.read {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(80px, 12vw, 170px) 20px;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, #ffffff0a 0 .7deg, transparent .7deg 3deg),
    var(--ink);
}
.read__inner { max-width: 760px; margin: 0 auto; }
.read p:not(.label) { margin: 18px 0 32px; color: var(--paper); }
.read__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 3px solid var(--paper); padding: 14px 22px;
  font: 400 22px/1 var(--display); letter-spacing: .03em; color: var(--paper); text-decoration: none;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn .mono { font-size: 11px; opacity: .65; }

.footer {
  border-top: 3px solid var(--paper); padding: 28px 20px 70px; text-align: center;
  font-size: 13px; color: #9aa1a5;
}
.footer p { margin: 6px 0; }

/* ---------- render cost: skip layout/paint of sections far off-screen ---------- */
.page, .agni, .arcs, .facts, .read { content-visibility: auto; contain-intrinsic-size: auto 1200px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .world, .cast { grid-template-columns: 1fr 1fr; }
  .panel--tone, .panel--ink, .panel--quote, .cast .char:nth-child(n) { grid-column: 1 / -1; grid-row: auto; }
  .panel--city { grid-column: 1 / -1; }
  .cast { grid-auto-rows: 360px; }
  .side { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
  .char--side { grid-column: auto !important; }
  .char__desc { max-height: 8em; opacity: 1; margin-top: 6px; }
  .arc, .arc:nth-child(even) { grid-template-columns: 1fr; }
  .arc__visual, .arc:nth-child(even) .arc__visual { order: 0; height: 260px; border: 0; border-bottom: 3px solid var(--paper); }
  .ruler__track { gap: 4px; }
  .ruler__seg { min-width: 44px; }
  .ruler__name, .ruler__ch { font-size: 10px; }
  .ruler__name { font-family: var(--mono); }
  .shelf { grid-template-columns: repeat(4, 1fr); }
  .seal__btn { white-space: normal; width: max-content; max-width: 86%; }
  .agni__inner { grid-template-columns: 1fr; }
  .agni__cover { max-width: 420px; margin-bottom: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .trivia { grid-template-columns: 1fr; }
  .trivia li:nth-child(odd) { border-right: 0; }
  .hero__jp { display: none; }
  .hud { bottom: 12px; }
  .hud__bar { height: 56px; }
  .network__sub { display: none; }
}
@media (max-width: 480px) {
  .agni__stats { grid-template-columns: 1fr; }
  .agni__stats li { border-right: 0; border-bottom: 2px solid #ffffff33; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .wipe { clip-path: none; }
}
