/* Nioh 3 page, direction A "Seal" (15 Nov 2026, Nioh 3 film project D13).
   Square and flat: no pills, glows, gradient text, glass, hover lift, fade-ins or count-ups.
   Mono capitals only on the eyebrow, buttons, nav and verdict heads (.1em); small labels in sentence case.
   Everything with text sits on a 1680 px sheet; paragraphs keep a 38em measure and pull quotes move
   beside them from 1100 px; the hero art is full colour and full bleed. */

/* ── GaminSapiens type stack (local, no CDN) ── */
@font-face{font-family:'Bowlby One';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/BowlbyOne-400-latin.woff2') format('woff2')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/SpaceGrotesk-400-latin.woff2') format('woff2')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/SpaceGrotesk-500-latin.woff2') format('woff2')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/SpaceGrotesk-600-latin.woff2') format('woff2')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('../assets/fonts/SpaceGrotesk-700-latin.woff2') format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/JetBrainsMono-400-latin.woff2') format('woff2')}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/JetBrainsMono-500-latin.woff2') format('woff2')}
/* Noto Serif JP (OFL): the variable font cut to the characters on this page. Re-cut it when the
   text gains a character: the command is in README.md beside this file. */
@font-face{font-family:'Noto Serif JP';font-style:normal;font-weight:200 900;font-display:swap;src:url('../assets/fonts/NotoSerifJP-subset.woff2') format('woff2')}

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

:root {
  --crimson: #bf1d38;
  --crimson-dark: #8a1528;
  --crimson-lit: #e4566c;     /* crimson for small text: 5.6:1 on ink (brand crimson is 3.3:1) */
  --amber: #c9963a;
  --amber-dim: #a37c42;       /* text-safe cut of #96703a: 5:1 on ink */
  --ink: #08080b;
  --charcoal: #111116;
  --slate: #1a1a21;
  --smoke: #252530;
  --fog: #a8a6b4;
  --white: #ede8df;
  --paper: #d8d0c0;
  --true: #1d9e75;            /* the verdict's "historically accurate" */
  --line: rgba(237,232,223,0.2);
  --hair: rgba(237,232,223,0.1);

  /* GS brand — locked, independent of theme. Wordmark + mark keep true colours. */
  --gs-paper: #f6f4ef;
  --gs-steel: #8a9bb0;
  --gs-mint: #e8ede2;

  /* GaminSapiens type stack — JP glyphs fall through to Noto Serif JP */
  --font-display: 'Bowlby One', 'Noto Serif JP', system-ui, sans-serif;
  --font-body: 'Space Grotesk', 'Noto Serif JP', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-jp: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;

  /* the sheet */
  --sheet: 1680px;
  --gutter: clamp(20px, 4vw, 72px);
  --gap: clamp(16px, 2.2vw, 44px);
  --edge: max(var(--gutter), calc((100vw - var(--sheet)) / 2));
  --copy: min(56vw, 1060px);
  --measure: 38em;
}

html { font-size: 17px; scroll-behavior: smooth; color-scheme: dark; -webkit-text-size-adjust: 100%; }
@media (min-width: 1800px) { html { font-size: 18px; } }
@media (min-width: 2400px) { html { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  background: var(--ink);
  color: var(--fog);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}
::selection { background: var(--amber); color: var(--ink); }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
[id] { scroll-margin-top: 88px; }
strong { color: var(--white); font-weight: 600; }

/* everything that carries text sits on the sheet */
.nav-bar, .hero-inner, .stats-inner, .img-banner, .chapter-gate, .chapter-intro, .sub-head,
.section, .divider, .game-screenshot.break, footer {
  width: min(calc(100% - 2 * var(--gutter)), var(--sheet));
  margin-left: auto; margin-right: auto;
}

/* the mon (D64): a brass double ring for 戦国, the kings and the VS marks; the chapter mark is
   the same ring drawn in SVG by render.py. The red square seal (PBZ's chop) is retired here. */
.hero-kanji, .char-icon, .vs-badge, .stat-vs-col {
  background: var(--ink); color: var(--white); border-radius: 50%;
  box-shadow: inset 0 0 0 1.6px var(--amber), inset 0 0 0 5px var(--ink), inset 0 0 0 5.8px rgba(201,150,58,0.7);
}

/* ── Progress Bar ── */
.progress-bar {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--crimson); z-index: 200;
  transform: scaleX(0); transform-origin: left center;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s;
}
nav.scrolled { background: var(--ink); border-bottom-color: var(--line); }
.nav-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.nav-brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.nav-brand gaminsapiens-mark { flex: none; }
/* GS wordmark: locked brand colours. GAMIN paper + SAPIENS steel, always. */
.wordmark {
  font-family: var(--font-display); font-weight: 400; font-size: 19px;
  letter-spacing: -0.005em; text-transform: uppercase; line-height: 1;
  white-space: nowrap; color: var(--gs-paper);
}
.wordmark em { font-style: normal; color: var(--gs-steel); }
.nav-links { display: flex; list-style: none; }
.nav-links a {
  display: block; padding: 12px;
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--paper); text-decoration: none; transition: color 0.18s;
}
.nav-links a:hover { color: var(--white); box-shadow: inset 0 -2px 0 var(--crimson); }

/* ── Hero ── */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100svh);
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('../images/nioh3-keyvisual.jpg') 62% 22% / cover no-repeat;
}
/* darkens only where the text sits, measured from the text column; clear over the figure */
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,8,11,0.84) 0, rgba(8,8,11,0.66) calc(var(--edge) + var(--copy) * 0.55), rgba(8,8,11,0) calc(var(--edge) + var(--copy) + 6vw)),
    linear-gradient(180deg, rgba(8,8,11,0.6) 0, rgba(8,8,11,0) 160px),
    linear-gradient(0deg, var(--ink) 0, rgba(8,8,11,0) 26%);
}
.hero-inner { padding-bottom: clamp(48px, 8vh, 112px); }
.hero-content { max-width: var(--copy); }
.hero-kanji {
  display: inline-flex; justify-content: center; align-items: center;
  font-size: clamp(20px, 1.55vw, 30px); width: 3.3em; height: 3.3em; margin-bottom: 26px; background: rgba(8,8,11,0.55);
}
.hero-kanji span { font-family: var(--font-jp); font-weight: 700; line-height: 1; letter-spacing: 0.02em; }
.hero-label {
  font-family: var(--font-mono); font-weight: 500; font-size: 12.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 0.96; color: var(--white);
  font-size: clamp(2.1rem, 4.4vw, 4.6rem);
}
.hero h1 em { font-style: normal; color: var(--crimson); }
.hero-sub {
  max-width: 33em; margin-top: 24px; text-wrap: pretty;
  color: var(--paper); font-size: clamp(1rem, 1.15vw, 1.22rem); line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 22px;
  font-family: var(--font-mono); font-weight: 500; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.btn-primary { background: var(--crimson); border-color: var(--crimson); color: var(--white); }
.btn-primary:hover { background: var(--crimson-dark); border-color: var(--crimson-dark); }
.btn-primary:hover svg { transform: translateY(4px); }
.btn-line { color: var(--white); border-color: rgba(237,232,223,0.6); background: rgba(8,8,11,0.4); }
.btn-line:hover { background: var(--white); color: var(--ink); }
.hero-film[hidden] { display: none; }

/* ── Characters banner ── */
.chars-banner { position: relative; width: min(100%, 1100px); margin: 0 auto; }
.chars-banner img { display: block; width: 100%; height: auto; }
.chars-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,11,0.25) 0%, transparent 12%, transparent 75%, var(--ink) 100%);
}

/* ── Stats ── */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(26px, 2.6vw, 52px) clamp(16px, 2vw, 40px); border-left: 1px solid var(--hair); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
  font-family: var(--font-display); font-weight: 400; line-height: 1;
  letter-spacing: -0.01em; color: var(--white); font-size: clamp(2.3rem, 4vw, 5.2rem);
}
.stat-num .plus { color: var(--crimson); }
.stat-label { margin-top: 12px; font-size: 1rem; line-height: 1.4; color: var(--fog); }

/* ── Plates (paintings, screenshots, sketches) ── */
.img-banner { position: relative; margin-top: clamp(40px, 4vw, 72px); }
.img-banner img { display: block; width: 100%; height: auto; }
.img-caption { padding-top: 10px; font-size: 0.85rem; line-height: 1.45; color: var(--fog); }

/* ── Section layout: a 12-column sheet; paragraphs keep their measure ── */
.section {
  position: relative; display: flow-root;
  padding: clamp(40px, 4vw, 72px) 0;
  --main: calc((100% - 11 * var(--gap)) / 12 * 8 + 7 * var(--gap));
  --aside: calc((100% - 11 * var(--gap)) / 12 * 4 + 3 * var(--gap));
}
.section p { margin-bottom: 1.4em; max-width: var(--measure); font-size: 1.06rem; line-height: 1.75; color: var(--fog); text-wrap: pretty; }
.section p:last-child { margin-bottom: 0; }
/* wide pieces clear the pull quotes beside the text */
.character-grid, .unifier-rows, .timeline-full, .compare-grid, .kings-note, .portrait-wall, .stat-compare,
.game-screenshot, .timeline-h, .map-container, .img-duo, .artifact-row, .scorecard, .section .img-banner { clear: both; }

/* ── Chapter Gate ── */
.chapter-gate {
  display: grid; grid-template-columns: auto 1fr; column-gap: clamp(18px, 2vw, 36px); align-items: start;
  margin-top: clamp(64px, 7vw, 130px); margin-bottom: clamp(24px, 2.6vw, 48px);
}
.chapter-num {
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 500; font-size: clamp(15px, 1.15vw, 21px); letter-spacing: 0.04em;
  min-width: 2.9em; height: 2.9em; padding: 0 0.4em; margin-top: 0.15em;
}
.chapter-gate h1, .chapter-gate h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1; color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 4.4rem); max-width: 22ch;
}
.chapter-gate .jp-sub, .jp-sub {
  display: block; margin-top: 16px;
  font-family: var(--font-jp); font-weight: 400; text-transform: none;
  letter-spacing: 0.03em; line-height: 1.5; color: var(--amber);
  font-size: clamp(0.95rem, 1vw, 1.2rem);
}

/* ── Japanese annotations ── */
.jp-name { font-family: var(--font-jp); color: var(--amber-dim); font-size: 0.84em; font-weight: 400; }

/* ── Pull quote: plain text under a rule; beside the text from 1100 px ── */
.pullquote {
  position: relative; margin: 2.4em 0; max-width: 30em;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--font-body); font-size: clamp(1.12rem, 1.25vw, 1.45rem);
  line-height: 1.5; color: var(--white); text-wrap: pretty;
}
.pullquote::before { content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--crimson); }
.pullquote .attr { display: block; margin-top: 0.8em; font-size: 0.9rem; line-height: 1.5; color: var(--amber); }
@media (min-width: 1100px) {
  .section > .pullquote:has(~ p), .section > .game-char-render {
    float: right; clear: right; width: var(--aside); max-width: none;
    margin: 0.4em 0 2.4em var(--gap);
  }
  /* after the Saito Fuku render the quote stays in the text column, beside the render */
  .section > .game-char-render ~ .pullquote { float: none; width: auto; max-width: 30em; margin: 2.4em 0; }
}

/* ── Chapter intro: VS pair + text, composed across the sheet ── */
.chapter-intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
.intro-media { grid-column: 1 / span 7; }
.intro-text { grid-column: 8 / span 5; }
.intro-text p { margin-bottom: 1.1em; max-width: 36em; font-size: 1.06rem; line-height: 1.75; text-wrap: pretty; }
.intro-text p:last-child { margin-bottom: 0; }

/* ── VS pair ── */
.vs-showcase { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.vs-card { display: flex; flex-direction: column; min-width: 0; }
.vs-card + .vs-badge + .vs-card { border-left: 1px solid var(--line); }
.vs-card img {
  display: block; width: 100%; height: clamp(250px, 27vw, 540px);
  object-fit: contain; padding: clamp(12px, 1.4vw, 28px); background: var(--charcoal);
}
.vs-label {
  position: relative; margin-top: auto;
  padding: 13px 16px 13px 36px; border-top: 1px solid var(--line);
  font-size: 0.92rem; line-height: 1.4; color: var(--paper);
}
.vs-label::before { content: ''; position: absolute; left: 16px; top: calc(13px + 0.35em); width: 10px; height: 10px; background: var(--crimson); }
.history-side .vs-label::before { background: var(--amber); }
.vs-badge {
  position: absolute; z-index: 2; left: 50%; top: calc(50% - 24px);
  display: grid; place-items: center; width: 46px; height: 46px;
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.06em;
  transform: translate(-50%, -50%);
}
/* Ii Naotora: no portrait survives, so the history side is a name plate */
.np-plate {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1rem;
  height: clamp(250px, 27vw, 540px); padding: clamp(16px, 2vw, 40px); background: var(--charcoal); text-align: center;
}
.np-kanji { font-family: var(--font-jp); font-weight: 700; font-size: clamp(2.4rem, 3.4vw, 4rem); line-height: 1; color: var(--amber-dim); }
.np-note { max-width: 22em; font-size: 0.9rem; line-height: 1.6; color: var(--fog); }

/* ── Compare (game vs history) ── */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; max-width: var(--main);
  margin: 0.4em 0 2.6em; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.compare-card { padding: 22px clamp(16px, 2vw, 36px) 26px; }
.compare-card:first-child { padding-left: 0; }
.compare-card + .compare-card { border-left: 1px solid var(--hair); }
.compare-card .tag { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; font-weight: 500; color: var(--paper); }
.compare-card .tag::before { content: ''; flex: none; width: 10px; height: 10px; background: var(--crimson); }
.compare-card.history .tag::before { background: var(--amber); }
.compare-card h4 { font-size: 1.12rem; font-weight: 600; line-height: 1.35; color: var(--white); margin-bottom: 8px; }
.section .compare-card p { font-size: 0.98rem; line-height: 1.62; margin: 0; }

/* ── Character cards: the three unifiers and the four kings ── */
.character-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 2.2em 0 2.6em;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.king-grid { grid-template-columns: repeat(4, 1fr); margin: 0; }
.char-card { min-width: 0; padding: clamp(26px, 2.2vw, 44px) clamp(18px, 1.8vw, 36px) clamp(28px, 2.4vw, 44px); border-left: 1px solid var(--hair); }
.char-card:first-child { border-left: 0; padding-left: 0; }
.char-card:last-child { padding-right: 0; }
.char-icon {
  display: inline-flex; justify-content: center; align-items: center;
  font-size: clamp(17px, 1.2vw, 23px); width: 3.4em; height: 3.4em; margin-bottom: 24px;
}
.char-icon span { font-family: var(--font-jp); font-weight: 700; line-height: 1; letter-spacing: 0.02em; }
.char-name { font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: var(--white); }
.char-name .jp-name { display: block; margin-top: 4px; font-size: 0.78em; }
.char-title { margin: 12px 0 14px; font-size: 0.95rem; font-weight: 500; line-height: 1.45; color: var(--amber); }
.section .char-card p { font-size: 0.98rem; line-height: 1.62; margin-bottom: 0; }
.char-card p + .boss-tag { margin-top: 18px; }

/* ── Boss tag: filled square = mandatory, outline square = optional ── */
.boss-tag { display: inline-flex; align-items: baseline; gap: 10px; font-size: 0.88rem; line-height: 1.45; color: var(--paper); }
.boss-tag::before { content: ''; flex: none; width: 9px; height: 9px; background: var(--crimson); transform: translateY(0.02em); }
.boss-tag.optional::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--amber); }

/* ── Sub heads: the Four Heavenly Kings, Ii Naotora, Saito Fuku ── */
.sub-head { margin-top: clamp(64px, 7vw, 130px); margin-bottom: clamp(24px, 2.6vw, 44px); }
.sub-kicker { margin-bottom: 10px; font-family: var(--font-jp); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; color: var(--amber); }
.sub-head h3 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1.02; color: var(--white); font-size: clamp(1.6rem, 2.6vw, 3.3rem);
}
.sub-head h3 .jp-name { margin-left: 0.3em; font-size: 0.5em; vertical-align: middle; }
.sub-jp { margin-top: 10px; font-family: var(--font-jp); font-size: 1rem; color: var(--amber-dim); }
.section.kings { padding-top: 0; }
.kings-note { margin-top: 28px; max-width: 50em; font-size: 1.02rem; line-height: 1.6; color: var(--paper); }

/* ── Portrait wall: game render beside the Kuniyoshi print, six across on wide screens ── */
.portrait-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 2.6em 0; }
.portrait-wall .img-duo { display: contents; }
.img-duo-item { margin: 0; min-width: 0; }
.img-duo-item img { display: block; width: 100%; height: auto; background: var(--charcoal); }
.portrait-wall .img-duo-item img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.img-label { padding-top: 10px; font-size: 0.85rem; line-height: 1.45; color: var(--fog); }

/* two plates side by side (the Mikatagahara map and the frowning portrait) */
.img-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; max-width: var(--main); margin: 2.6em 0; }

/* ── Stat compare: Tadakatsu vs Baba ── */
.stat-compare {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; max-width: var(--main);
  margin: 2.6em 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat-box { padding: 24px 0 28px; }
.stat-box.takeda { padding-left: clamp(36px, 2.6vw, 48px); border-left: 1px solid var(--hair); }
.stat-box.tokugawa { padding-right: clamp(36px, 2.6vw, 48px); }
.stat-vs-col {
  align-self: center; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 -20px; position: relative; z-index: 1;
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.06em;
}
.sb-side { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; font-weight: 500; color: var(--paper); }
.sb-side::before { content: ''; flex: none; width: 10px; height: 10px; background: var(--amber); }
.takeda .sb-side::before { background: var(--crimson); }
.sb-name { font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: var(--white); }
.stat-nums { display: flex; gap: 2rem; margin: 16px 0; }
.stat-num-val { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 2.6vw, 3.2rem); line-height: 1; color: var(--white); }
.stat-num-lbl { margin-top: 6px; font-size: 0.88rem; color: var(--fog); }
.sb-note { font-size: 0.98rem; line-height: 1.62; color: var(--fog); }
.stat-box .boss-tag { margin-top: 16px; }

/* ── Key dates: a ruled table across the sheet ── */
.timeline-full { margin: 2.2em 0 0.6em; border-bottom: 1px solid var(--line); }
.tf-item {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  padding: 16px 0 16px 26px; border-top: 1px solid var(--hair);
}
.tf-item:first-child { border-top-color: var(--line); }
.tf-dot { position: absolute; left: 0; top: calc(16px + 0.45em); width: 10px; height: 10px; box-shadow: inset 0 0 0 1.5px var(--fog); }
.tf-dot.key { background: var(--crimson); box-shadow: none; }
.tf-year { grid-column: 1 / span 3; font-size: 1rem; font-weight: 600; line-height: 1.45; color: var(--white); }
.tf-desc { grid-column: 4 / span 5; font-size: 0.98rem; line-height: 1.55; color: var(--fog); }
.tf-game { grid-column: 9 / span 4; font-size: 0.92rem; line-height: 1.5; }
.tf-game.info { color: var(--amber); }
.tf-game.warn { color: var(--crimson-lit); }

/* ── Three unifiers mapped to the three games ── */
.unifier-rows { margin: 2em 0 2.6em; border-bottom: 1px solid var(--line); }
.unifier-row {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start;
  padding: 20px 0; border-top: 1px solid var(--hair);
}
.unifier-row:first-child { border-top-color: var(--line); }
.unifier-hist { grid-column: 1 / span 5; }
.unifier-eq { grid-column: 6 / span 1; text-align: center; font-size: 1.2rem; line-height: 1.4; color: var(--fog); }
.unifier-game { grid-column: 7 / span 6; }
.unifier-lbl { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; font-size: 0.88rem; font-weight: 500; color: var(--fog); }
.unifier-game .unifier-lbl::before { content: ''; flex: none; width: 10px; height: 10px; }
.unifier-game.nioh2 .unifier-lbl::before { background: #5da8e8; }
.unifier-game.nioh1 .unifier-lbl::before { background: var(--amber); }
.unifier-game.nioh3 .unifier-lbl::before { background: var(--crimson); }
.unifier-name { font-size: 1.12rem; font-weight: 600; line-height: 1.35; color: var(--white); }
.unifier-sub { margin-top: 4px; font-size: 0.95rem; line-height: 1.55; color: var(--fog); }

/* ── Game screenshots ── */
.game-screenshot { margin: 2.6em 0; }
.game-screenshot img { display: block; width: 100%; height: auto; }
.game-screenshot.break { margin-top: clamp(56px, 6vw, 110px); }
.game-screenshot.break img, .game-screenshot.break .img-caption { max-width: 1100px; }

/* ── Game char render (Saito Fuku) ── */
.game-char-render { width: min(100%, 300px); margin: 2.4em 0; }
.game-char-render img { display: block; width: 100%; height: clamp(300px, 24vw, 460px); object-fit: contain; padding: 16px; background: var(--charcoal); }

/* ── March to Mikatagahara: four steps, one row on wide screens ── */
.timeline-h { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); margin: 2.6em 0; border-top: 1px solid var(--line); }
.timeline-h-item { position: relative; padding-top: 26px; }
.timeline-h-item::before { content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--crimson); }
.timeline-h-date { margin-bottom: 6px; font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.02em; color: var(--amber); }
.timeline-h-item h4 { margin-bottom: 6px; font-size: 1.08rem; font-weight: 600; line-height: 1.35; color: var(--white); }
.section .timeline-h-item p { font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* ── SVG map ── */
.map-container { max-width: var(--main); margin: 2.6em 0; border: 1px solid var(--line); background: var(--charcoal); }
.map-container svg { display: block; width: 100%; height: auto; }

/* ── Artifacts: the helm and the spear ── */
.artifact-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); max-width: var(--main); margin: 2.6em 0; }
.artifact img { display: block; width: 100%; height: clamp(300px, 32vw, 640px); object-fit: contain; padding: 16px; background: var(--charcoal); }
.artifact-info { padding-top: 14px; }
.artifact-name { margin-bottom: 4px; font-size: 1.05rem; font-weight: 600; color: var(--white); }
.artifact-desc { font-size: 0.95rem; line-height: 1.6; color: var(--fog); }

/* ── Sketch plate (Hokusai) inside a section ── */
.img-banner.sketch { max-width: var(--main); margin: 2.6em 0; }
.img-banner.sketch img { max-height: 560px; object-fit: contain; padding: 18px; background: var(--charcoal); }

/* ── Verdict: the 12 accurate points in two columns, liberties and the missed detail beside them ── */
.scorecard { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 48px; align-items: start; margin: 2.2em 0 3em; }
.score-sec:nth-child(1) { grid-column: 1 / span 8; grid-row: 1 / span 2; }
.score-sec:nth-child(n+2) { grid-column: 9 / span 4; }
.score-hdr { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.score-dot2 { flex: none; width: 12px; height: 12px; }
.score-heading { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); }
.score-sec:nth-child(1) .score-list { columns: 2; column-gap: var(--gap); }
.score-item2 { position: relative; break-inside: avoid; padding: 14px 0 14px 24px; border-bottom: 1px solid var(--hair); font-size: 1rem; line-height: 1.5; color: var(--paper); }
.score-item2::before { content: ''; position: absolute; left: 0; top: calc(14px + 0.5em); width: 8px; height: 8px; }
.score-item2.green::before { background: var(--true); }
.score-item2.amber::before { background: var(--amber); }
.score-item2.red::before { background: var(--crimson); }

/* ── Section boundary: one hairline across the sheet ── */
.divider { height: 1px; margin-top: clamp(48px, 5vw, 96px); background: var(--line); }

/* ── Epilogue ── */
.epilogue { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.epi-head { grid-column: 1 / span 4; }
.epi-label { margin-bottom: 12px; font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.epi-head h1, .epi-head h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1; color: var(--white); font-size: clamp(1.8rem, 3.4vw, 4.4rem);
}
.epi-body { grid-column: 5 / span 7; }

/* ── Footer ── */
footer {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 28px;
  padding: clamp(32px, 3vw, 56px) 0 56px;
  font-size: 0.95rem; color: var(--fog);
}
.footer-main { grid-column: 1 / span 6; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 0.5rem; }
.footer-brand .wordmark { font-size: 15px; }
footer p { margin: 1em 0 0; max-width: 36em; }
footer a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
footer a:hover { color: var(--white); }
.footer-credits { grid-column: 7 / span 6; font-size: 0.85rem; line-height: 1.75; color: rgba(168,166,180,0.8); }

/* ── Tablet and down ── */
@media (max-width: 1100px) {
  .king-grid { grid-template-columns: 1fr 1fr; }
  .king-grid .char-card:nth-child(odd) { border-left: 0; padding-left: 0; }
  .king-grid .char-card:nth-child(even) { padding-right: 0; }
  .king-grid .char-card:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .portrait-wall { grid-template-columns: repeat(3, 1fr); }
  .score-sec:nth-child(1), .score-sec:nth-child(n+2) { grid-column: 1 / -1; grid-row: auto; }
  .tf-year { grid-column: 1 / -1; }
  .tf-desc { grid-column: 1 / span 7; }
  .tf-game { grid-column: 8 / span 5; }
  .epi-head, .epi-body { grid-column: 1 / -1; }
  .epi-head { margin-bottom: 28px; }
  .footer-main, .footer-credits { grid-column: 1 / -1; }
}
/* below 1100 nothing floats beside the text, so the eight-column pieces take the full sheet */
@media (max-width: 1099px) {
  .compare-grid, .stat-compare, .img-duo, .artifact-row, .map-container, .img-banner.sketch { max-width: none; }
}
@media (max-width: 1000px) {
  .intro-media, .intro-text { grid-column: 1 / -1; }
  .intro-text { margin-top: 32px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .timeline-h { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: var(--gap); }
  .timeline-h::-webkit-scrollbar { display: none; }
  .timeline-h-item { flex: 0 0 min(76vw, 280px); scroll-snap-align: start; }
}
/* phones: the art becomes a plate across the top, the text sits on ink under it */
@media (max-width: 800px) {
  .hero { display: block; min-height: 0; }
  .hero-bg { inset: 0 0 auto 0; height: min(68svh, 150vw); background-position: 60% 30%; }
  .hero-overlay {
    inset: 0 0 auto 0; height: min(68svh, 150vw);
    background: linear-gradient(180deg, rgba(8,8,11,0.55) 0, rgba(8,8,11,0) 24%, rgba(8,8,11,0) 52%, var(--ink) 100%);
  }
  .hero-inner { padding-top: calc(min(68svh, 150vw) - 140px); padding-bottom: 56px; }
  .hero-content { max-width: none; }
}
@media (max-width: 760px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 0 22px 18px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .character-grid { grid-template-columns: 1fr; }
  .character-grid .char-card { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; border-left: 0; padding: 26px 0; }
  .character-grid .char-card + .char-card { border-top: 1px solid var(--hair); }
  .character-grid .char-card > :not(.char-icon) { grid-column: 2; }
  .character-grid .char-icon { grid-row: 1 / span 4; font-size: 20px; margin: 4px 0 0; }
  .compare-grid, .stat-compare, .img-duo, .artifact-row { grid-template-columns: 1fr; }
  .compare-card { padding-left: 0; padding-right: 0; }
  .compare-card + .compare-card { border-left: 0; border-top: 1px solid var(--hair); }
  .stat-box.takeda { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); }
  .stat-box.tokugawa { padding-right: 0; }
  .stat-vs-col { display: none; }
  .unifier-hist, .unifier-game { grid-column: 1 / -1; }
  .unifier-eq { display: none; }
  .unifier-game { margin-top: 14px; }
  .tf-desc, .tf-game { grid-column: 1 / -1; }
  .tf-game { margin-top: 4px; }
  .img-duo { gap: 28px; }
  .np-plate { height: auto; min-height: 250px; }
  .np-kanji { font-size: 2.2rem; }
  .np-note { font-size: 0.82rem; }
}
@media (max-width: 700px) { .score-sec:nth-child(1) .score-list { columns: 1; } .portrait-wall { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .king-grid { grid-template-columns: 1fr; }
  .king-grid .char-card:nth-child(n) { padding: 26px 0; border-left: 0; }
  .king-grid .char-card + .char-card { border-top: 1px solid var(--hair); }
  .king-grid .char-card { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; }
  .king-grid .char-card > :not(.char-icon) { grid-column: 2; }
  .king-grid .char-icon { grid-row: 1 / span 4; font-size: 20px; margin: 4px 0 0; }
  .king-grid .boss-tag { justify-self: start; }
}
/* The film (release day): src/render.py writes the embed and the chapter links only once
   src/site.json has the video id, so nothing here is hidden by CSS */
.film-wrap { padding-top: clamp(40px, 4vw, 80px); }
.film-embed { position: relative; width: 100%; max-width: 1200px; aspect-ratio: 16 / 9; background: var(--charcoal); border: 1px solid var(--hair); }
.film-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-cap { margin-top: 14px; font-size: 0.95rem; color: var(--fog); }
.film-cap a, .chap-watch { color: var(--amber); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.chap-watch { display: inline-block; font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.chap-watch:hover, .film-cap a:hover { text-decoration-color: var(--amber); }
.chapter-gate .chap-watch { grid-column: 2; justify-self: start; margin-top: 16px; }
.epi-head .chap-watch { margin-top: 16px; }
.chap-line { margin-bottom: 1.4em; }

/* Sources (content pass D55): the epilogue grid, ruled lists, no boxes */
.sources .src-group { margin-top: 36px; }
.sources .src-group h3 { margin-bottom: 12px; font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.sources .src-list { list-style: none; border-top: 1px solid var(--hair); }
.sources .src-list li { padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 0.95rem; line-height: 1.6; color: var(--paper); }
.sources .src-list a { color: var(--white); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.sources .src-list a:hover { text-decoration-color: var(--amber); }

/* ── Microsite (D59): shared nav, menu, doors, pager, per-chapter sources ── */
.sub nav { background: var(--ink); border-bottom-color: var(--line); }
.sub main { padding-top: 68px; }
.sub .chapter-gate:first-child { margin-top: clamp(48px, 5vw, 96px); }
.sub main > .epilogue:first-child { margin-top: clamp(48px, 5vw, 96px); }
.nav-links a { padding: 12px 10px; }
.nav-links a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--crimson); }
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; padding: 12px 14px; min-height: 44px;
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); border: 1px solid var(--line); background: var(--ink);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { border-color: var(--crimson); }
.nav-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; list-style: none;
  background: var(--ink); border: 1px solid var(--line);
}
.nav-menu li + li { border-top: 1px solid var(--hair); }
.nav-menu a {
  display: block; padding: 12px 16px;
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--paper); text-decoration: none;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--white); box-shadow: inset 2px 0 0 var(--crimson); }
@media (max-width: 1399px) { .nav-links { display: none; } .nav-menu { display: block; } }

.hero-cta:hover svg { transform: translateX(4px); }
.sub-head h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1; color: var(--white); font-size: clamp(1.6rem, 2.6vw, 3.2rem);
}

.doors { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.doors li { border-bottom: 1px solid var(--hair); }
.doors li:not(:nth-child(4n+1)) { border-left: 1px solid var(--hair); }
.door { display: grid; grid-template-rows: auto auto 1fr auto; row-gap: 12px; height: 100%; padding: 28px var(--gap) 28px 0; text-decoration: none; color: var(--fog); }
.doors li:not(:nth-child(4n+1)) .door { padding-left: var(--gap); }
.door-num { justify-self: start; }
.door-num svg { display: block; width: 52px; height: 52px; }
.door-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1.05; color: var(--white); font-size: clamp(1.15rem, 1.4vw, 1.7rem); }
.door-line { font-size: 0.98rem; line-height: 1.6; }
.door-time { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-dim); }
.door:hover .door-title { text-decoration: underline; text-decoration-color: var(--crimson); text-underline-offset: 6px; }
.home-sources { padding-top: 0; }
.home-sources p, .home-sources a { font-size: 1.05rem; }
.home-sources a, .epi-body a, .section p a { color: var(--white); text-decoration: underline; text-decoration-color: var(--crimson); text-underline-offset: 4px; }
@media (max-width: 1100px) {
  .doors { grid-template-columns: 1fr 1fr; }
  .doors li:not(:nth-child(4n+1)) { border-left: 0; }
  .doors li:nth-child(even) { border-left: 1px solid var(--hair); }
  .doors li:not(:nth-child(4n+1)) .door { padding-left: 0; }
  .doors li:nth-child(even) .door { padding-left: var(--gap); }
}
@media (max-width: 640px) {
  .doors { grid-template-columns: 1fr; }
  .doors li:nth-child(even) { border-left: 0; }
  .doors li:nth-child(even) .door { padding-left: 0; }
  .door { padding-right: 0; }
}

.page-sources { margin-top: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.ps-head { margin-bottom: 14px; font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.ps-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; max-width: 72em; }
.ps-list li { font-size: 0.95rem; }
.ps-list li + li::before { content: '\00B7'; padding: 0 0.7em; color: var(--fog); }
.ps-list a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.ps-list a:hover { color: var(--white); text-decoration-color: var(--amber); }
.ps-note { margin-top: 14px; font-size: 0.9rem; }

.pager { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(40px, 4vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pager a { display: grid; row-gap: 6px; padding: 24px 0; text-decoration: none; }
.pager .pg-next { text-align: right; border-left: 1px solid var(--hair); padding-left: var(--gap); }
.pager .pg-prev { padding-right: var(--gap); }
.pg-dir { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.pg-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1.1; color: var(--white); font-size: clamp(1rem, 1.3vw, 1.5rem); }
.pager a:hover .pg-title { text-decoration: underline; text-decoration-color: var(--crimson); text-underline-offset: 5px; }

.film-page .film-embed { margin-bottom: 0; }
.film-page .epi-body > p { margin-top: 1.2em; }
.film-chapters { list-style: none; margin-top: 28px; border-top: 1px solid var(--hair); }
.film-chapters li { display: grid; grid-template-columns: 5.5em 1fr; column-gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.fc-time { font-family: var(--font-mono); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.04em; color: var(--amber); }
a.fc-time { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.fc-title, .fc-title a { color: var(--white); }
.fc-title a { text-decoration: underline; text-decoration-color: var(--crimson); text-underline-offset: 4px; }
.src-labels strong { color: var(--white); }
.pager { padding: 0; }
.page-sources { padding-bottom: 0; }

/* ── D64: chapter mark, header plate with wide-screen gutters, figures in the text ── */
.chap-mark { display: grid; justify-items: center; row-gap: 10px; margin-top: 0.1em; }
.chap-mark svg { display: block; width: clamp(64px, 5.4vw, 112px); height: auto; }
.mark-label { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); white-space: nowrap; }

.plate { position: relative; z-index: 0; margin-top: -68px; height: clamp(360px, 44vw, 940px); overflow: hidden; }
.plate-img { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; filter: brightness(0.62) saturate(0.85) contrast(1.05); }
.plate::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,11,0.7) 0, rgba(8,8,11,0.15) 30%, rgba(8,8,11,0.35) 62%, var(--ink) 100%); }
.plate-credit { position: absolute; z-index: 1; right: var(--edge); top: 86px; max-width: 34em; margin: 0; text-align: right; font-size: 0.8rem; line-height: 1.5; color: rgba(237,232,223,0.72); }
.sub main > *:not(.plate) { position: relative; z-index: 1; }
.sub .plate + .chapter-gate, .sub .plate + * + .chapter-gate { margin-top: calc(-1 * clamp(150px, 13vw, 300px)); }
/* the same picture, dimmed and fixed, in the side gutters of wide screens */
body.has-plate { background:
  linear-gradient(90deg, transparent 0, transparent calc(50% - 840px - 72px), var(--ink) calc(50% - 840px - 12px), var(--ink) calc(50% + 840px + 12px), transparent calc(50% + 840px + 72px)),
  linear-gradient(rgba(8,8,11,0.7), rgba(8,8,11,0.7)),
  var(--gutter-img) center 25% / cover fixed var(--ink); }
@media (max-width: 1840px) { body.has-plate { background: var(--ink); } }
@media (max-width: 800px) {
  .plate { height: 62vw; min-height: 260px; }
  .plate-credit { top: auto; bottom: 10px; left: var(--gutter); right: var(--gutter); text-align: left; font-size: 0.72rem; }
  .sub .plate + .chapter-gate, .sub .plate + * + .chapter-gate { margin-top: 24px; }
}

.fig { margin: 2.4em 0; }
.fig img { display: block; width: 100%; height: auto; border: 1px solid var(--hair); }
.fig figcaption { padding-top: 10px; font-size: 0.85rem; line-height: 1.5; color: var(--fog); max-width: 40em; }
.fig figcaption .credit { display: block; margin-top: 4px; color: rgba(168,166,180,0.8); font-size: 0.8rem; }
@media (min-width: 1100px) { .section > .fig { float: right; clear: right; width: var(--aside); margin: 0.4em 0 2.4em var(--gap); } }
.artifact-credit { margin-top: 8px; font-size: 0.8rem; line-height: 1.5; color: rgba(168,166,180,0.8); }
.vs-credit { display: block; margin-top: 2px; font-size: 0.78rem; font-weight: 400; color: rgba(168,166,180,0.8); }
