/* ============================================
   묻고 답하다 — 한국과 이란, 잊혀진 100년
   기획기사 5부작 반응형 스타일시트
   ============================================ */

/* Fonts now loaded via <link> in each page's <head> (faster + preconnect-able) */

/* ---------- CSS Variables ---------- */
:root {
  --bg: #faf7f0;
  --bg-paper: #ffffff;
  --bg-dark: #1a1612;
  --bg-card: #fdfbf5;
  --text: #1f1c18;
  --text-muted: #6b665e;
  --text-dim: #7a7269;
  --accent: #8b1a1a;
  --accent-dark: #5e1010;
  --accent-soft: #c9a87e;
  --blue: #1e3a5f;
  --rule: #d8d0bf;
  --rule-light: #e8e2d2;

  --serif: 'Noto Serif KR', 'Nanum Myeongjo', Georgia, serif;
  --sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Inter', 'SF Mono', Menlo, monospace;

  --container: 720px;
  --container-wide: 1080px;
  --container-narrow: 640px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Page background lives on <html> so position:fixed; z-index:-1 ghost-bg
     videos can actually show through. Body stays transparent. */
  background: var(--bg);
  overflow-x: hidden;
}

body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
  background: transparent;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; transition: color 0.15s; }
a:hover { color: var(--accent-dark); }

button { font-family: inherit; cursor: pointer; }

/* ---------- Top Navigation ---------- */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 13px;
}
.topnav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topnav-brand {
  font-weight: 700;
  color: var(--text);
  border: none;
  letter-spacing: -0.01em;
}
.topnav-brand:hover { color: var(--accent); }
.topnav-meta { color: var(--text-muted); font-size: 12px; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   LANDING PAGE (index.html)
   ============================================ */

.hero {
  background: linear-gradient(180deg, #1a1612 0%, #2a1f15 100%);
  color: #f5f0e6;
  padding: 80px 20px 100px;
  border-bottom: 4px solid var(--accent);
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero-kicker {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent-soft);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #fff;
}
.hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  color: var(--accent-soft);
  margin-bottom: 32px;
}
.hero-intro {
  font-size: 17px;
  line-height: 1.85;
  color: #d4cdba;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.hero-intro p + p { margin-top: 1em; }

/* Series intro */
.series-intro {
  background: var(--bg);
  padding: 60px 20px;
  border-bottom: 1px solid var(--rule);
}
.series-intro-inner { max-width: var(--container); margin: 0 auto; }
.series-intro h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--text);
}
.series-intro p {
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 1em;
  color: var(--text);
}

/* Stat strip */
.stat-strip {
  background: var(--bg-dark);
  color: #f5f0e6;
  padding: 50px 20px;
}
.stat-strip-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
@media (max-width: 960px) {
  .stat-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (max-width: 480px) {
  .stat-strip-inner { grid-template-columns: 1fr; gap: 28px; }
}
.stat {
  text-align: center;
  font-family: var(--sans);
}
.stat-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1;
  color: var(--accent-soft);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 13px;
  color: #b8b0a0;
  line-height: 1.5;
}

/* Article grid */
.parts-section {
  padding: 80px 20px 100px;
  background: var(--bg);
}
.parts-header {
  max-width: var(--container);
  margin: 0 auto 40px;
  text-align: center;
}
.parts-header h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.parts-header p {
  font-family: var(--sans);
  color: var(--text-muted);
  font-size: 15px;
}
.parts-grid {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .parts-grid { grid-template-columns: repeat(2, 1fr); }
}

.part-card {
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.part-card:hover {
  box-shadow: 0 8px 32px rgba(26, 22, 18, 0.12);
  transform: translateY(-2px);
}
.part-card a { border: none; color: inherit; display: flex; flex-direction: column; height: 100%; }

.part-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2a1f15 0%, #5e1010 100%);
  overflow: hidden;
  position: relative;
}
.part-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%; /* 16:9 카드 인물 얼굴 잘림 방지 */
  filter: brightness(0.85) sepia(0.15);
  transition: filter 0.3s;
}
.part-card:hover .part-card-image img { filter: brightness(1) sepia(0); }

.part-card-body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.part-card-num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.part-card-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
}
.part-card-period {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.part-card-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
  margin-bottom: 20px;
}
.part-card-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px solid var(--rule-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.part-card-cta {
  color: var(--accent);
  font-weight: 700;
}

/* ============================================
   ARTICLE PAGE (part1-4.html)
   ============================================ */

.article-hero {
  background: var(--bg-paper);
  padding: 60px 20px 50px;
  border-bottom: 1px solid var(--rule);
}
.article-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.article-series-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.article-series-label a { color: inherit; border: none; }
.article-series-label a:hover { color: var(--accent-dark); }
.article-part {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.article-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
}
.article-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-light);
}

/* Article body */
.article-body {
  padding: 50px 20px 80px;
  background: var(--bg);
}
.article-body-inner {
  max-width: var(--container);
  margin: 0 auto;
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--text);
}
.article-body-inner p {
  margin-bottom: 1.25em;
}
.article-body-inner p strong { color: var(--text); font-weight: 700; }
.article-body-inner > h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 2.5em 0 1em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text);
  color: var(--text);
}
.article-body-inner > h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.35;
  margin: 2em 0 0.8em;
  color: var(--text);
}
.article-body-inner ul, .article-body-inner ol { margin: 0 0 1.25em 1.6em; }
.article-body-inner li { margin-bottom: 0.5em; }

.article-body-inner blockquote {
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 1.5em 0;
  color: var(--text);
}

/* Data stats box */
.data-box {
  background: var(--bg-dark);
  color: #f5f0e6;
  border-radius: 4px;
  padding: 32px 28px;
  margin: 2.5em 0;
  font-family: var(--sans);
}
.data-box-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-soft);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #3a2f25;
}
.data-box ul { list-style: none; margin: 0; padding: 0; }
.data-box li {
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.65;
  border-bottom: 1px solid #2a221a;
}
.data-box li:last-child { border-bottom: none; }
.data-box li strong {
  color: var(--accent-soft);
  font-weight: 700;
  font-family: var(--serif);
}

/* 더스쿠프 ■ 소제목 — 본문 내 결론형 소제목 */
.scoop-subhead {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--accent-dark, #3a1410);
  margin: 2.2em 0 0.7em;
  letter-spacing: -0.01em;
  text-wrap: balance; /* 제목 끝줄 외톨이 단어 방지 */
}
.scoop-subhead::before {
  content: "\25A0\00A0";   /* ■ + 공백 */
  color: var(--accent, #8a1a14);
  font-size: 0.7em;
  vertical-align: 0.12em;
}

/* 더스쿠프 [※참고:] 삽입 박스 — 정의·배경 단서 */
.scoop-note {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.7;
  color: #4a4036;
  background: #f3ede0;
  border-left: 3px solid var(--accent, #8a1a14);
  border-radius: 0 4px 4px 0;
  padding: 14px 18px;
  margin: 1.8em 0;
}
.scoop-note b, .scoop-note strong { color: var(--accent-dark, #3a1410); font-weight: 700; }

/* Question/quote box */
.question-box {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  margin: 2.5em 0;
  font-family: var(--serif);
}
.question-box-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.question-box p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  color: var(--text);
}

/* Figure */
.article-figure {
  margin: 2.5em 0;
}
.article-figure img {
  width: 100%;
  border-radius: 4px;
}
.article-figure figcaption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 12px;
  padding-left: 8px;
  border-left: 2px solid var(--rule);
}
.article-figure figcaption strong {
  color: var(--text);
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

/* Footnote/sources */
.article-sources {
  background: var(--bg-paper);
  border-top: 2px solid var(--text);
  padding: 40px 20px 60px;
}
.article-sources-inner {
  max-width: var(--container);
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
}
.article-sources h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--text);
}
.article-sources h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  margin: 24px 0 10px;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.article-sources ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-sources li {
  margin-bottom: 6px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.article-sources li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

/* Article nav (next/prev) */
.article-nav {
  background: var(--bg);
  padding: 40px 20px 80px;
}
.article-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.article-nav-card {
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.article-nav-card:hover {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(26, 22, 18, 0.08);
}
.article-nav-card.prev { text-align: left; }
.article-nav-card.next { text-align: right; }
.article-nav-card.disabled { opacity: 0.4; pointer-events: none; }
.article-nav-direction {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.article-nav-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #b8b0a0;
  padding: 50px 20px 40px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}
.site-footer-inner { max-width: var(--container-wide); margin: 0 auto; }
.site-footer p { margin-bottom: 8px; }
.site-footer a { color: var(--accent-soft); border-bottom-color: transparent; }
.site-footer a:hover { border-bottom-color: var(--accent-soft); }

/* ============================================
   DATA TABLES, TIMELINES, INFOGRAPHICS
   ============================================ */

/* Data table (newspaper-style) */
.data-table-wrap {
  margin: 2.5em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg-paper);
  border: 1px solid var(--rule);
}
.data-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 0;
}
.data-table caption .caption-sub {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.005em;
  text-transform: none;
  margin-top: 4px;
}
.data-table thead { background: var(--bg-dark); color: #f5f0e6; }
.data-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-right: 1px solid #3a2f25;
}
.data-table th:last-child { border-right: none; }
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-light);
  border-right: 1px solid var(--rule-light);
  vertical-align: top;
  color: var(--text);
}
.data-table td:last-child { border-right: none; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) { background: var(--bg-card); }
.data-table tbody tr:hover { background: #f5efe0; }
.data-table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.data-table .accent { color: var(--accent); font-weight: 700; }
.data-table .small { font-size: 13px; color: var(--text-muted); }

.table-source {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* Vertical timeline */
.timeline {
  margin: 2.5em 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--rule);
}
.timeline-item {
  position: relative;
  padding: 0 0 22px 36px;
  font-family: var(--sans);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}
.timeline-item.major::before { background: var(--accent-dark); width: 18px; height: 18px; left: 3px; }
.timeline-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.timeline-content {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}
.timeline-content strong { color: var(--text); font-weight: 700; }
.timeline-caption {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.timeline-caption .caption-sub {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.005em;
  text-transform: none;
  margin-top: 4px;
}

/* Infographic box (compare two sides) */
.compare-box {
  margin: 2.5em 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--sans);
}
.compare-side {
  background: var(--bg-paper);
  padding: 24px 22px;
}
.compare-side h4 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text);
}
.compare-side .compare-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.compare-side ul { list-style: none; margin: 0; padding: 0; }
.compare-side li {
  font-size: 14px;
  line-height: 1.6;
  padding: 6px 0;
  border-top: 1px solid var(--rule-light);
  color: var(--text);
}
.compare-side li:first-child { border-top: none; }
.compare-side li strong { color: var(--accent); font-weight: 700; }
.compare-caption {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Stat-row inline (e.g., "1973 14.9% → 1974 2.3%") */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 2em 0;
  font-family: var(--sans);
}
.stat-cell {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
}
.stat-cell-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.stat-cell-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   SCROLLYTELLING — IMMERSIVE INTERACTIVE
   ============================================ */

/* ---------- Side TOC (scroll spy) ---------- */
.toc-sidebar {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 90;
  width: 220px;
  font-family: var(--sans);
  font-size: 12px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.toc-sidebar::-webkit-scrollbar { width: 4px; }
.toc-sidebar::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 2px; }
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--rule);
}
.toc-item {
  position: relative;
  padding: 8px 0 8px 18px;
  cursor: pointer;
  transition: padding 0.2s ease;
  border-left: 2px solid transparent;
  margin-left: -1px;
  line-height: 1.4;
}
.toc-item:hover,
.toc-item:focus-visible { padding-left: 22px; }
.toc-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.toc-item.active {
  border-left-color: var(--accent);
  padding-left: 18px;
}
.toc-item-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 2px;
  transition: color 0.2s ease;
}
.toc-item-en {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-bottom: 1px;
  transition: color 0.2s ease;
}
.toc-item-ko {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--text);
  font-weight: 400;
  display: block;
  transition: color 0.2s ease, font-weight 0.2s ease;
}
.toc-item.active .toc-item-num,
.toc-item.active .toc-item-en {
  color: var(--accent);
}
.toc-item.active .toc-item-ko {
  color: var(--text);
  font-weight: 700;
}
.toc-header {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-left: 18px;
}

/* Hide TOC on mobile + smaller desktop */
@media (max-width: 1280px) {
  .toc-sidebar { display: none; }
}

/* ---------- Chart entry animation — visible by default, JS arms hiding ---------- */
.svg-figure svg .chart-bar {
  transform-origin: bottom center;
  transform-box: fill-box;
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.js .svg-figure:not(.in-view) svg .chart-bar { transform: scaleY(0); }
.svg-figure.in-view svg .chart-bar { transform: scaleY(1); }
.svg-figure.in-view svg .chart-bar:nth-of-type(1) { transition-delay: 0.05s; }
.svg-figure.in-view svg .chart-bar:nth-of-type(2) { transition-delay: 0.15s; }
.svg-figure.in-view svg .chart-bar:nth-of-type(3) { transition-delay: 0.25s; }
.svg-figure.in-view svg .chart-bar:nth-of-type(4) { transition-delay: 0.35s; }
.svg-figure.in-view svg .chart-bar:nth-of-type(5) { transition-delay: 0.45s; }

.svg-figure svg .chart-line {
  transition: stroke-dashoffset 2s ease-out;
}
html.js .svg-figure:not(.in-view) svg .chart-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}
.svg-figure.in-view svg .chart-line { stroke-dashoffset: 0; }

.svg-figure svg .chart-dot {
  transition: opacity 0.4s ease-out;
}
html.js .svg-figure:not(.in-view) svg .chart-dot { opacity: 0; }
.svg-figure.in-view svg .chart-dot { opacity: 1; }
.svg-figure.in-view svg .chart-dot:nth-of-type(1) { transition-delay: 0.4s; }
.svg-figure.in-view svg .chart-dot:nth-of-type(2) { transition-delay: 0.6s; }
.svg-figure.in-view svg .chart-dot:nth-of-type(3) { transition-delay: 0.8s; }
.svg-figure.in-view svg .chart-dot:nth-of-type(4) { transition-delay: 1.0s; }
.svg-figure.in-view svg .chart-dot:nth-of-type(5) { transition-delay: 1.2s; }
.svg-figure.in-view svg .chart-dot:nth-of-type(6) { transition-delay: 1.4s; }
.svg-figure.in-view svg .chart-dot:nth-of-type(7) { transition-delay: 1.6s; }

.svg-figure svg .map-marker-anim {
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
html.js .svg-figure:not(.in-view) svg .map-marker-anim,
html.js .interactive-map:not(.in-view) svg .map-marker-anim {
  opacity: 0;
  transform: scale(0.4);
}
.svg-figure.in-view svg .map-marker-anim,
.interactive-map.in-view svg .map-marker-anim { opacity: 1; transform: scale(1); }
.svg-figure.in-view svg .map-marker-anim:nth-of-type(1),
.interactive-map.in-view svg .map-marker-anim:nth-of-type(1) { transition-delay: 0.2s; }
.svg-figure.in-view svg .map-marker-anim:nth-of-type(2),
.interactive-map.in-view svg .map-marker-anim:nth-of-type(2) { transition-delay: 0.4s; }
.svg-figure.in-view svg .map-marker-anim:nth-of-type(3),
.interactive-map.in-view svg .map-marker-anim:nth-of-type(3) { transition-delay: 0.6s; }
.svg-figure.in-view svg .map-marker-anim:nth-of-type(4),
.interactive-map.in-view svg .map-marker-anim:nth-of-type(4) { transition-delay: 0.8s; }

/* ---------- Polaroid gallery (index page) ---------- */
.polaroid-section {
  padding: 60px 24px 80px;
  background: var(--bg);
  overflow: hidden;
}
.polaroid-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
}
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  margin-top: 40px;
}
@media (max-width: 1024px) {
  .polaroid-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .polaroid-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}
@media (max-width: 420px) {
  .polaroid-grid { grid-template-columns: 1fr; gap: 28px; }
}
.polaroid {
  background: #fdfbf5;
  padding: 14px 14px 56px;
  box-shadow: 0 8px 28px rgba(26,22,18,0.14), 0 2px 6px rgba(26,22,18,0.08);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  font-family: var(--sans);
  text-align: center;
}
.polaroid:nth-child(odd) { transform: rotate(-1.5deg); }
.polaroid:nth-child(even) { transform: rotate(1.2deg); }
.polaroid:nth-child(3n) { transform: rotate(-0.6deg); }
.polaroid:nth-child(4n) { transform: rotate(2deg); }
.polaroid:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 18px 50px rgba(26,22,18,0.22);
  z-index: 2;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 25%; /* 정사각 크롭에서 인물 얼굴 잘림 방지 */
  display: block;
  filter: sepia(0.12) contrast(1.05);
}
.polaroid-year {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.polaroid-label {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: var(--serif);
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  max-width: 60%;
  line-height: 1.3;
  text-align: right;
}

/* Reading progress bar (top of viewport) */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* Full-bleed hero (each article page) */
.scroll-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: #0a0805;
  color: #f5f0e6;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.scroll-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 22%; /* 인물 초상 히어로(팔라비·호메이니·솔레이마니) 얼굴 잘림 방지 */
  filter: brightness(0.7) contrast(1.02) sepia(0.05);
  z-index: 0;
}
.scroll-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7) contrast(1.02) sepia(0.05);
  z-index: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hero-video { display: none; }
}
.scroll-hero-gradient {
  position: absolute;
  inset: 0;
  /* Left-bottom area dim for text legibility, top-right area shows the photo */
  background:
    linear-gradient(180deg, rgba(10,8,5,0.15) 0%, rgba(10,8,5,0.55) 70%, rgba(10,8,5,0.85) 100%),
    linear-gradient(90deg, rgba(10,8,5,0.55) 0%, rgba(10,8,5,0.2) 50%, rgba(10,8,5,0) 100%);
  z-index: 1;
}
/* Title gets subtle text-shadow to stay readable even on lighter areas */
.scroll-hero-title,
.scroll-hero-lead {
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.scroll-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px 80px;
  max-width: var(--container-wide);
  margin: 0 auto;
}
.scroll-hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent-soft);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.scroll-hero-eyebrow::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.scroll-hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.25rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 18px;
  max-width: 18ch;
  text-wrap: balance;
}
.scroll-hero-en {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  letter-spacing: 0.15em;
  color: var(--accent-soft);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.scroll-hero-lead {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: #d4cdba;
  max-width: 36ch;
  font-style: italic;
  font-weight: 400;
}
.scroll-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 240, 230, 0.15);
  font-family: var(--sans);
  font-size: 13px;
  color: #b8b0a0;
  letter-spacing: 0.05em;
}
.scroll-hero-scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(245, 240, 230, 0.55);
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
  animation: scrollPulse 2.2s ease-in-out infinite;
}
.scroll-hero-scroll-cue::after {
  content: '';
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(245, 240, 230, 0.55);
  margin: 10px auto 0;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 4px); }
}

/* Episode thesis — standalone meaning block right after hero */
.episode-thesis {
  background: var(--bg-paper);
  padding: 80px 24px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.episode-thesis::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--bg-paper);
}
.episode-thesis-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.thesis-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.thesis-text {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 900;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.thesis-rationale {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* Bilingual section divider (HISTORY / 역사) */
.section-divider {
  padding: 100px 24px 60px;
  text-align: center;
  background: var(--bg);
}
.section-divider-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.section-divider-en {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-divider-ko {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 16px;
  text-wrap: balance;
}
.section-divider-rule {
  width: 64px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 20px;
}
.section-divider-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Sticky-image reveal (image sticks left, text scrolls right) */
.sticky-reveal {
  margin: 0 auto;
  max-width: var(--container-wide);
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.sticky-reveal-fig {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sticky-reveal-fig img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(26,22,18,0.18);
}
.sticky-reveal-fig figcaption {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  padding-left: 8px;
  border-left: 2px solid var(--rule);
  line-height: 1.5;
}
.sticky-reveal-text {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.85;
  padding: 60px 0;
}
.sticky-reveal-text p { margin-bottom: 1.25em; }
.sticky-reveal-text strong { font-weight: 700; color: var(--text); }

/* Full-bleed dramatic pullquote */
.pullquote-screen {
  background: rgba(26, 22, 18, 0.92);  /* 거의 불투명 — 텍스트 또렷, 영상은 가장자리에 약간만 */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f5f0e6;
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pullquote-screen::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 240px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
  pointer-events: none;
}
.pullquote-screen blockquote {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 24ch;
  margin: 0 auto;
  position: relative;
  color: #f5f0e6;
}
.pullquote-screen cite {
  display: block;
  margin-top: 32px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent-soft);
  text-transform: uppercase;
}

/* Fade-up reveal — visible by default, JS arms hiding before reveal */
.fade-up {
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
/* Only hide when JS confirms it's running (html.js class added inline in <head>) */
html.js .fade-up:not(.in-view) {
  opacity: 0;
  transform: translateY(40px);
}
/* Safety net: even with JS, force-reveal after 1s if IO fails to fire */
html.js .fade-up {
  animation: fadeUpAutoReveal 0.9s ease-out 1s forwards;
}
html.js .fade-up.in-view {
  animation: none;
}
@keyframes fadeUpAutoReveal {
  to { opacity: 1; transform: translateY(0); }
}
.fade-up.delay-1 { transition-delay: 0.15s; }
.fade-up.delay-2 { transition-delay: 0.3s; }
.fade-up.delay-3 { transition-delay: 0.45s; }

/* Number ticker (large stat reveals) */
.number-reveal {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg);
}
.number-reveal-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.number-reveal-label {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 30ch;
  margin: 0 auto;
}

/* Full-bleed image break */
.fullbleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 80px;
  margin-bottom: 80px;
  position: relative;
}
.fullbleed img {
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
  object-position: center 22%; /* 인물 사진 얼굴 잘림 방지(상단 바이어스) */
  display: block;
}
.fullbleed-caption {
  background: rgba(26, 22, 18, 0.92);  /* 거의 불투명 — 캡션 텍스트 또렷 */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #d4cdba;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}
.fullbleed-caption strong { color: var(--accent-soft); display: block; margin-bottom: 4px; font-weight: 700; }

/* Interactive map markers */
.interactive-map {
  position: relative;
  margin: 2.5em 0;
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px 22px 18px;
}
.interactive-map svg .marker-hit {
  cursor: pointer;
  fill: transparent;
}
.interactive-map svg .marker-dot {
  transition: transform 0.2s ease, filter 0.2s ease;
  transform-origin: center;
  transform-box: fill-box;
  pointer-events: none;
}
.interactive-map svg .marker-group:hover .marker-dot,
.interactive-map svg .marker-group:focus-visible .marker-dot,
.interactive-map svg .marker-group.active .marker-dot {
  transform: scale(1.4);
  filter: drop-shadow(0 0 8px rgba(139, 26, 26, 0.6));
}
.interactive-map svg .marker-group:focus-visible {
  outline: none;
}
.interactive-map svg .marker-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: markerPulse 2s ease-in-out infinite;
}
@keyframes markerPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.05; transform: scale(2.2); }
}
.map-detail-panel {
  margin-top: 18px;
  padding: 20px 22px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  min-height: 110px;
  transition: all 0.3s ease;
}
.map-detail-panel h4 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 4px;
}
.map-detail-panel .meta {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.map-detail-panel p { color: var(--text); margin: 0; }
.map-instructions {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 10px;
  text-align: center;
}

/* Index page series cards — overhaul for immersive feel */
.scroll-card-grid {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.scroll-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 4px;
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.scroll-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26,22,18,0.16);
}
.scroll-card.alt { grid-template-columns: 1fr 1fr; }
.scroll-card.alt .scroll-card-image { order: 2; }
.scroll-card-image {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--bg-dark);
}
.scroll-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%; /* 카드 썸네일 인물(솔레이마니·박근혜) 얼굴 잘림 방지 */
  filter: brightness(0.75) sepia(0.1);
  transition: filter 0.4s ease, transform 0.6s ease;
}
.scroll-card:hover .scroll-card-image img {
  filter: brightness(1) sepia(0);
  transform: scale(1.04);
}
.scroll-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(26,22,18,0.4) 100%);
  pointer-events: none;
}
.scroll-card-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.scroll-card-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.scroll-card-en {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.scroll-card-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 18px;
}
.scroll-card-period {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.scroll-card-excerpt {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 28px;
}
.scroll-card-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: none;
}
.scroll-card-cta::after {
  content: '→';
  transition: transform 0.2s ease;
}
.scroll-card:hover .scroll-card-cta::after {
  transform: translateX(6px);
}

@media (max-width: 768px) {
  .sticky-reveal { grid-template-columns: 1fr; gap: 30px; }
  .sticky-reveal-fig { position: relative; top: auto; max-height: none; }
  .sticky-reveal-fig img { max-height: 50vh; }
  .sticky-reveal-text { padding: 0; font-size: 16.5px; }
  .scroll-card { grid-template-columns: 1fr; }
  .scroll-card.alt .scroll-card-image { order: 1; }
  .scroll-card-image { min-height: 220px; }
  .scroll-card-body { padding: 28px 24px; }
  .pullquote-screen { padding: 80px 24px; }
  .pullquote-screen::before { font-size: 140px; top: 10px; }
  .section-divider { padding: 70px 24px 50px; }
  .scroll-hero-content { padding-bottom: 60px; }
  .fullbleed { margin-top: 40px; margin-bottom: 40px; }
}

/* ============================================
   RESPONSIVE SVG CHARTS & MAPS
   ============================================ */

.svg-figure {
  margin: 2.5em 0;
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px 22px 18px;
  font-family: var(--sans);
}
.svg-figure-caption {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.svg-figure-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.svg-figure svg {
  width: 100%;
  height: auto;
  display: block;
}
.svg-figure-source {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
  padding-top: 10px;
  border-top: 1px solid var(--rule-light);
}
.svg-figure-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text);
}
.svg-figure-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.svg-figure-legend .legend-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* SVG colors for inline use */
:root {
  --svg-accent: #8b1a1a;
  --svg-accent-dark: #5e1010;
  --svg-blue: #1e3a5f;
  --svg-gold: #c9a87e;
  --svg-grid: #d8d0bf;
  --svg-text: #1f1c18;
  --svg-text-mute: #6b665e;
  --svg-bg: #faf7f0;
}

/* SVG chart text inherits sans */
.svg-figure svg text {
  font-family: var(--sans);
  fill: var(--svg-text);
}
.svg-figure svg .axis-text { font-size: 11px; fill: var(--svg-text-mute); }
.svg-figure svg .label-text { font-size: 12px; font-weight: 600; }
.svg-figure svg .value-text { font-size: 13px; font-weight: 700; fill: var(--svg-accent); }
.svg-figure svg .annotation { font-size: 11px; fill: var(--svg-text-mute); font-style: italic; }
.svg-figure svg .city-name { font-size: 12px; font-weight: 700; }
.svg-figure svg .country-name { font-size: 13px; font-weight: 700; fill: var(--svg-text-mute); letter-spacing: 0.05em; text-transform: uppercase; }

/* Highlight figure (with gallery-like grid) */
.figure-grid {
  margin: 2.5em 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.figure-grid figure { margin: 0; }
.figure-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center 28%; /* 인물/가면 얼굴 잘림 방지 */
  border-radius: 4px;
}
.figure-grid figcaption {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* ---------- Mobile-specific tweaks ---------- */
@media (max-width: 640px) {
  .hero { padding: 60px 20px 80px; }
  .article-hero { padding: 40px 20px 35px; }
  .article-body { padding: 35px 20px 60px; }
  .article-body-inner { font-size: 16.5px; }
  .data-box { padding: 24px 20px; }
  .question-box { padding: 20px 22px; }
  .article-nav-inner { grid-template-columns: 1fr; }
  .topnav-meta { display: none; }
  .compare-box { grid-template-columns: 1fr; }
  .figure-grid { grid-template-columns: 1fr; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 10px; }
  .timeline-item { padding-left: 30px; }
}

/* Print */
@media print {
  .topnav, .article-nav, .site-footer { display: none; }
  body { background: white; }
  .article-body-inner { max-width: 100%; }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE PATCHES (post-QA)
   ============================================ */

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1 !important; transform: none !important; }
  .svg-figure.in-view svg .chart-bar { transform: scaleY(1) !important; }
  .svg-figure.in-view svg .chart-line { stroke-dashoffset: 0 !important; }
  .svg-figure.in-view svg .chart-dot { opacity: 1 !important; }
  .marker-pulse { animation: none !important; }
  .scroll-hero-scroll-cue { animation: none !important; }
  .map-marker-anim,
  .svg-figure svg .map-marker-anim,
  .interactive-map svg .map-marker-anim {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mobile SVG text legibility */
@media (max-width: 640px) {
  .svg-figure svg text,
  .interactive-map svg text { font-size: 14px; }
  .svg-figure svg .axis-text,
  .interactive-map svg .axis-text { font-size: 13px; }
  .svg-figure svg .annotation,
  .interactive-map svg .annotation { font-size: 13px; }
  /* Padding compression on small screens */
  .episode-thesis { padding: 56px 20px; }
  .pullquote-screen { padding: 72px 20px; }
  .number-reveal { padding: 56px 20px; }
}

/* Mobile-safe viewport heights (handle iOS Safari URL bar) */
.scroll-hero {
  min-height: 100svh;
  min-height: 100dvh;
}

/* Topnav: disable backdrop-filter on low-power devices */
@media (max-width: 720px) {
  .topnav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(250, 247, 240, 0.97);
  }
}

/* Polaroid: tighter rotation on small screens to avoid clipping */
@media (max-width: 640px) {
  .polaroid:nth-child(odd) { transform: rotate(-0.6deg); }
  .polaroid:nth-child(even) { transform: rotate(0.6deg); }
  .polaroid:nth-child(3n) { transform: rotate(-0.3deg); }
  .polaroid:nth-child(4n) { transform: rotate(0.8deg); }
}

/* Data table swipe affordance on mobile */
@media (max-width: 768px) {
  .data-table-wrap {
    position: relative;
  }
  .data-table-wrap::after {
    content: '→ 좌우로 스와이프';
    display: block;
    font-family: var(--sans);
    font-size: 11px;
    color: var(--text-dim);
    text-align: right;
    margin-top: 6px;
    font-style: italic;
  }
}

/* Timeline item hover (subtle) */
.timeline-item { transition: transform 0.18s ease; }
.timeline-item:hover { transform: translateX(4px); }
.timeline-item:hover::before { transform: scale(1.18); transition: transform 0.18s ease; }

/* ============================================
   Sortable data tables
   ============================================ */
.data-table.sortable th {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 22px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.data-table.sortable th:hover {
  background-color: rgba(139, 26, 26, 0.05);
}
.data-table.sortable th:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.data-table.sortable th .sort-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.32;
  position: relative;
}
.data-table.sortable th .sort-indicator::before,
.data-table.sortable th .sort-indicator::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.data-table.sortable th .sort-indicator::before {
  top: 0;
  border-bottom: 5px solid currentColor;
}
.data-table.sortable th .sort-indicator::after {
  bottom: 0;
  border-top: 5px solid currentColor;
}
.data-table.sortable th.sort-asc .sort-indicator {
  opacity: 1;
}
.data-table.sortable th.sort-asc .sort-indicator::after {
  opacity: 0.2;
}
.data-table.sortable th.sort-desc .sort-indicator {
  opacity: 1;
}
.data-table.sortable th.sort-desc .sort-indicator::before {
  opacity: 0.2;
}
.data-table.sortable th.sort-asc,
.data-table.sortable th.sort-desc {
  color: var(--accent);
  background-color: rgba(139, 26, 26, 0.04);
}

/* ============================================
   Chart hover tooltips
   ============================================ */
.svg-figure { position: relative; }
.chart-dot {
  transition: r 0.18s ease, stroke-width 0.18s ease;
  cursor: pointer;
}
.chart-dot.hover,
.chart-dot:hover,
.chart-dot:focus {
  stroke-width: 3;
  outline: none;
}
.chart-dot:focus-visible {
  filter: drop-shadow(0 0 6px rgba(139, 26, 26, 0.65));
}
.chart-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  background: var(--bg-dark);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.02em;
}
.chart-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--bg-dark);
}
.chart-tooltip strong {
  display: block;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
}
.chart-tooltip .chart-tooltip-value {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}
.chart-tooltip .chart-tooltip-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.78;
  max-width: 220px;
  white-space: normal;
}

/* ============================================
   Animated dashed flow line (호르무즈 탱커 경로)
   ============================================ */
.flow-line {
  animation: dashFlow 1.6s linear infinite;
}
@keyframes dashFlow {
  to { stroke-dashoffset: -20; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-line { animation: none; }
}

/* ============================================
   Polaroid clickable + Lightbox modal
   ============================================ */
.polaroid {
  cursor: pointer;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.32s ease;
  position: relative;
}
.polaroid:hover,
.polaroid:focus-visible {
  transform: translateY(-6px) rotate(-0.6deg) scale(1.025);
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.32), 0 8px 16px -4px rgba(0, 0, 0, 0.18);
  z-index: 5;
  outline: none;
}
.polaroid::after {
  content: '⊕';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  background: rgba(31, 28, 24, 0.78);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.polaroid:hover::after,
.polaroid:focus-visible::after {
  opacity: 1;
}
.polaroid:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.polaroid-hint {
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 32px;
  letter-spacing: 0.02em;
  font-style: italic;
}

.polaroid-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.polaroid-lightbox.open {
  display: flex;
  animation: lightboxFadeIn 0.28s ease-out;
}
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.polaroid-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 5, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.polaroid-lightbox-panel {
  position: relative;
  background: var(--bg-paper);
  border-radius: 6px;
  max-width: min(1080px, 94vw);
  max-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  overflow: hidden;
  box-shadow: 0 40px 80px -16px rgba(0, 0, 0, 0.5);
  animation: lightboxPanelIn 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lightboxPanelIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.polaroid-lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%; /* 확대 보기에서 인물 얼굴 잘림 방지 */
  background: #f0ece2;
  max-height: 92vh;
}
.polaroid-lightbox-info {
  padding: 36px 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  max-height: 92vh;
}
.polaroid-lightbox-year {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.polaroid-lightbox-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 700;
  word-break: keep-all;
}
.polaroid-lightbox-meta {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-light);
}
.polaroid-lightbox-body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
  word-break: keep-all;
}
.polaroid-lightbox-link {
  display: inline-block;
  margin-top: 24px;
  padding: 11px 22px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 3px;
  align-self: flex-start;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}
.polaroid-lightbox-link:hover,
.polaroid-lightbox-link:focus-visible {
  background: var(--accent-dark);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(139, 26, 26, 0.32);
  outline: none;
  color: var(--bg);
}
.polaroid-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  background: rgba(31, 28, 24, 0.82);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.polaroid-lightbox-close:hover,
.polaroid-lightbox-close:focus-visible {
  background: var(--accent);
  transform: rotate(90deg);
  outline: none;
}
@media (max-width: 760px) {
  .polaroid-lightbox-panel {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow-y: auto;
  }
  .polaroid-lightbox-img {
    max-height: 50vh;
  }
  .polaroid-lightbox-info {
    padding: 24px 20px 28px;
    overflow-y: visible;
    max-height: none;
  }
  .polaroid-lightbox-title {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .polaroid-lightbox.open,
  .polaroid-lightbox-panel,
  .polaroid:hover,
  .polaroid:focus-visible {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* ============================================
   Ghost background video — atmospheric layer
   behind the article (each episode has its own loop)
   ============================================ */
.ghost-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ghost-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) brightness(0.6) contrast(1.3);
  opacity: 0.95;  /* 거의 풀 가시 — 영상이 페이지 배경의 주인공 */
}
.ghost-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* 화면 가장자리만 가볍게 어둡게 — vignette */
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.06) 70%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

/* 본문 카드 — 텍스트 가독성 최우선, 완전 불투명 종이 */
.article-body-inner,
.episode-thesis-inner,
.series-intro-inner,
.parts-grid {
  position: relative;
  background: var(--bg);
  border-radius: 4px;
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.18);
}
.article-body-inner { padding: 32px 36px; margin: 0 auto; }
@media (max-width: 720px) {
  .article-body-inner { padding: 20px 18px; }
}

/* 데이터 박스 — 원래 어두운 카드 (텍스트 흰색 디자인 보존) */
.data-box {
  background: var(--bg-dark);
}
/* 인용·표는 크림 카드 */
aside.question-box,
.testimony-quote,
.data-table-wrap {
  background: var(--bg-card);
}

/* Section dividers — 텍스트 가독성 우선 (반투명 너무 강해서 흐려지는 부작용 제거) */
.section-divider {
  background: var(--bg);
}

/* Episode-specific ghost intensity tuning — 모두 매우 강하게 */
.ghost-bg.ghost-bg-archive video { opacity: 0.88; filter: grayscale(1) brightness(0.62) contrast(1.22) sepia(0.1); }
.ghost-bg.ghost-bg-newsreel video { opacity: 0.92; filter: grayscale(1) brightness(0.58) contrast(1.25); }
.ghost-bg.ghost-bg-war video { opacity: 1.0; filter: grayscale(1) brightness(0.55) contrast(1.3); }

@media (prefers-reduced-motion: reduce) {
  .ghost-bg video { display: none; }
}

/* ============================================
   Briefing-board polaroid wall
   ============================================ */
.polaroid-board {
  position: relative;
  background-color: #1a1612;
  background-image: url('assets/polaroid-board-bg.png');
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  padding: 56px 32px 64px;
  margin: 40px 0 24px;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.7),
    0 30px 60px -20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.polaroid-board::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center top, rgba(255, 230, 170, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.32) 100%);
  pointer-events: none;
  z-index: 0;
}
.polaroid-board .polaroid-grid {
  position: relative;
  z-index: 1;
}
.polaroid-board-header {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--mono);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(201, 168, 126, 0.85);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(201, 168, 126, 0.3);
  word-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.polaroid-board-header::before,
.polaroid-board-header::after {
  content: '· · ·';
  margin: 0 14px;
  opacity: 0.5;
  letter-spacing: 0;
}
@media (max-width: 640px) {
  .polaroid-board-header {
    font-size: 10px;
    letter-spacing: 0.18em;
    white-space: normal;
    line-height: 1.6;
    padding: 0 8px 16px;
  }
  .polaroid-board-header::before,
  .polaroid-board-header::after { margin: 0 6px; }
}
/* Pin decoration on polaroids when inside board */
.polaroid-board .polaroid {
  background: #fdfbf5;
}
.polaroid-board .polaroid::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 35% 35%, #ef5a3a, #8b1a1a 70%, #5e1010);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.45), inset -1px -1px 2px rgba(0,0,0,0.3);
  z-index: 6;
}
.polaroid-board .polaroid-hint {
  position: relative;
  z-index: 1;
  color: rgba(201, 168, 126, 0.75);
  border-top: 1px dashed rgba(201, 168, 126, 0.3);
  padding-top: 18px;
  margin-top: 36px;
}
@media (max-width: 760px) {
  .polaroid-board {
    padding: 36px 16px 44px;
  }
}

/* ============================================
   Series footer (ep05) — 시리즈 마침표 네비
   ============================================ */
.series-footer {
  max-width: var(--container-wide);
  margin: 80px auto 0;
  padding: 56px 24px 80px;
  border-top: 1px solid var(--rule);
  position: relative;
}
.series-footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.series-footer-prev,
.series-footer-next {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.series-footer-prev a,
.series-footer-next a {
  display: block;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  word-break: keep-all;
}
.series-footer-prev a:hover,
.series-footer-next a:hover,
.series-footer-prev a:focus-visible,
.series-footer-next a:focus-visible {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  outline: none;
  transform: translateY(-2px);
}
.series-footer-next {
  text-align: right;
}
.series-footer-meta {
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  padding-top: 36px;
  border-top: 1px dashed var(--rule);
}
.series-footer-meta p { margin: 0 0 6px; }
.series-footer-meta strong { color: var(--text); font-size: 15px; }
@media (max-width: 640px) {
  .series-footer { padding: 40px 16px 56px; margin-top: 56px; }
  .series-footer-inner { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
  .series-footer-next { text-align: left; }
  .series-footer-prev a, .series-footer-next a { padding: 14px 18px; font-size: 13px; }
}

/* ============================================
   ep05 testimony quote (잔류 한국인 디스패치)
   ============================================ */
.testimony-quote {
  margin: 30px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--accent);
  background: rgba(139, 26, 26, 0.04);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.85;
  border-radius: 0 4px 4px 0;
}
.testimony-quote p { margin: 0 0 14px; }
.testimony-quote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .testimony-quote { padding: 18px 20px; font-size: 16px; }
}

/* ============================================
   SVG interactive map markers — mobile hit-area
   (touch target 44px+ per WCAG AAA)
   ============================================ */
.interactive-map svg .marker-hit {
  /* invisible big touch target — keep visual marker small */
  fill: transparent;
  cursor: pointer;
  pointer-events: all;
  transition: opacity 0.2s ease;
}
.interactive-map svg .marker-group:hover .marker-hit,
.interactive-map svg .marker-group:focus-within .marker-hit {
  fill: rgba(139, 26, 26, 0.06);
}
@media (max-width: 760px) {
  /* Enlarge marker hit-area + dot visibility on mobile */
  .interactive-map svg .marker-hit {
    r: 30 !important;
    width: 60px !important;
    height: 60px !important;
  }
  .interactive-map svg .marker-dot {
    r: 10 !important;
  }
  .interactive-map svg .city-name,
  .interactive-map svg .country-name {
    font-size: 16px !important;
  }
}

/* ============================================
   Data table mobile improvements (ep05 등 짧은 데이터)
   ============================================ */
@media (max-width: 640px) {
  /* Force tables wider than viewport to scroll horizontally; remove inline width hints */
  .data-table-wrap .data-table {
    min-width: 540px;
  }
  /* Tighten cell padding on narrow phones */
  .data-table th, .data-table td {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* ============================================
   Three Roads decision tree (ep05 ACT 4)
   ============================================ */
.three-roads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 36px 0 0;
}
.road-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  padding: 22px 18px 18px;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  color: var(--text);
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  word-break: keep-all;
}
.road-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -8px rgba(26, 22, 18, 0.18);
}
.road-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.road-card.active {
  border-color: var(--accent);
  background: var(--bg-paper);
  box-shadow: 0 8px 24px -10px rgba(139, 26, 26, 0.32);
}
.road-card.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--accent);
}
.road-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 10px;
}
.road-card:not(.active) .road-letter {
  background: var(--text-muted);
}
.road-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.road-tagline {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.road-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.road-detail {
  margin-top: 28px;
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: 6px;
  padding: 32px;
  min-height: 240px;
  word-break: keep-all;
}
.road-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--rule-light);
}
.road-detail-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
}
.road-detail-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
  line-height: 1.3;
}
.road-detail-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.road-detail-list {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px 24px;
  margin: 0;
}
.road-detail-list dt {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 3px;
}
.road-detail-list dd {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.78;
  margin: 0;
  color: var(--text);
}
@media (max-width: 760px) {
  .three-roads {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .road-card { padding: 18px 16px 14px; }
  .road-card.active::after { display: none; }
  .road-detail { padding: 24px 18px; }
  .road-detail-header { gap: 14px; padding-bottom: 14px; margin-bottom: 18px; }
  .road-detail-letter { width: 38px; height: 38px; font-size: 18px; }
  .road-detail-title { font-size: 19px; }
  .road-detail-list { grid-template-columns: 1fr; gap: 6px 0; }
  .road-detail-list dt { padding-top: 14px; }
  .road-detail-list dt:first-child { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .road-card,
  .road-card:hover {
    transition: none;
    transform: none;
  }
}

/* ============================================
   Skip link — 키보드 사용자 접근성
   ============================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 3px solid var(--bg);
  outline-offset: 2px;
}

/* ============================================
   인터랙티브 컴포넌트 모바일 hit-area 확대 (44px+)
   ============================================ */
@media (max-width: 760px) {
  .interactive-map svg .marker-hit {
    r: 28 !important;
    width: 56px !important;
    height: 56px !important;
  }
  .interactive-map svg .marker-dot {
    r: 9 !important;
  }
  .chart-dot {
    r: 12 !important;
  }
  .polaroid-lightbox-close {
    width: 44px !important;
    height: 44px !important;
    font-size: 26px;
  }
}

/* ============================================
   scroll-card / part-card focus-visible 보강
   ============================================ */
.scroll-card:focus-visible,
.part-card:focus-visible,
.article-nav-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ============================================
   Ghost-bg video reduce-motion 가드 (재차)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .ghost-bg video,
  .scroll-hero-video { display: none !important; }
}
