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

:root {
  --deck-scale: 1;
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-soft: #f2f4f7;
  --text: #101114;
  --muted: #686b73;
  --border: #dfe2e7;
  --primary: #0f2c59;
  --primary-deep: #091f40;
  --primary-soft: #e8eef8;
  --shadow: 0 18px 50px rgba(15, 44, 89, 0.12);
}

html.theme-dark {
  --bg: #11151d;
  --surface: #191f2a;
  --surface-soft: #222a37;
  --text: #f6f7f9;
  --muted: #aeb5c0;
  --border: #343d4c;
  --primary: #8ab4f8;
  --primary-deep: #4f83d1;
  --primary-soft: #1d3354;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #dfe3e9;
  color: var(--text);
  font-family: 'Noto Sans CJK KR', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', NanumGothic, Inter, system-ui, sans-serif;
  word-break: keep-all;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--primary-deep);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1280px;
  height: 720px;
  transform: translate(-50%, -50%) scale(var(--deck-scale));
  transform-origin: center;
  background: var(--bg);
  box-shadow: 0 28px 90px rgba(15, 25, 40, 0.22);
  overflow: hidden;
}

.slide {
  display: none;
  flex-direction: column;
  width: 1280px;
  height: 720px;
  padding: 44px 72px 32px;
  background: var(--bg);
  color: var(--text);
}

.slide.is-active {
  display: flex;
}

.slide-header,
.cover-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 28px;
}

.brand-name {
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.03em;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}

.brand-sub,
.section-tag,
.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.slide > h1 {
  max-width: 1120px;
  margin: 0;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.slide > h1::after {
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 18px;
  background: var(--primary);
  border-radius: 4px;
  content: "";
}

.lead {
  max-width: 1080px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.slide-body {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 18px;
}

.slide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.slide-footer b {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.slide--cover {
  position: relative;
  padding: 56px 88px 56px;
  background:
    radial-gradient(circle at 88% 12%, var(--primary-soft) 0, transparent 32%),
    linear-gradient(140deg, var(--surface) 0%, var(--bg) 68%);
}

.slide--cover .cover-brand {
  justify-content: flex-start;
  gap: 18px;
}

.cover-hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  max-width: 1020px;
  padding-bottom: 32px;
}

.cover-hero .eyebrow {
  margin: 0 0 22px;
}

.cover-hero h1 {
  margin: 0;
  font-size: 68px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.cover-subtitle {
  max-width: 960px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 25px;
  line-height: 1.45;
}

.cover-meta {
  display: flex;
  gap: 72px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.cover-meta div {
  min-width: 128px;
}

.cover-meta dt {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.cover-meta dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.slide--section {
  position: relative;
  justify-content: center;
  padding: 86px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(80, 130, 210, 0.35), transparent 30%),
    linear-gradient(140deg, #071426, var(--primary-deep));
}

.slide--section .eyebrow {
  color: #8ab4f8;
  margin: 0 0 24px;
}

.slide--section h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: 70px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.slide--section > p:not(.eyebrow) {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 25px;
}

.section-number {
  position: absolute;
  right: 80px;
  bottom: 38px;
  color: rgba(255, 255, 255, 0.11);
  font-size: 170px;
  font-weight: 950;
  line-height: 1;
}

.flow {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.flow__step,
.card,
.panel,
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.flow__step {
  position: relative;
  flex: 1;
  min-height: 230px;
  padding: 30px 28px 24px;
  overflow: hidden;
}

.flow__step::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--primary);
  content: "";
}

.flow__step > span,
.card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 38px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--primary-deep);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.flow__step h2,
.card h2,
.panel h2,
.kpi h2 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.flow__step p,
.card p,
.panel p,
.kpi p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.flow__arrow {
  display: flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 26px;
}

.takeaway {
  margin: auto 0 0;
  padding: 12px 0 12px 18px;
  color: var(--text);
  border-left: 4px solid var(--primary);
  font-size: 17px;
  line-height: 1.5;
}

.takeaway strong {
  color: var(--primary);
}

.two-col,
.code-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.panel {
  min-height: 280px;
  padding: 30px 34px;
}

.panel--accent {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.panel .eyebrow {
  margin: 0 0 14px;
}

.panel ul,
.panel ol {
  margin: 20px 0 0;
  padding-left: 23px;
  color: var(--text);
}

.panel li {
  margin: 9px 0;
  font-size: 16px;
  line-height: 1.45;
}

.kpi-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.kpi {
  min-height: 210px;
  padding: 30px 30px 24px;
}

.kpi > strong {
  display: block;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 56px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.source-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.code-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: stretch;
}

.code-block {
  min-height: 280px;
  margin: 0;
  padding: 34px 38px;
  overflow: hidden;
  color: #e8edf6;
  background: linear-gradient(145deg, #090e17, #141c29);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-family: "D2Coding", "JetBrains Mono", Consolas, monospace;
  font-size: 18px;
  line-height: 1.75;
  white-space: pre-wrap;
  box-shadow: var(--shadow);
}

.code-comment {
  color: #8e9caf;
}

.slide--closing {
  position: relative;
  padding: 50px 84px 46px;
  background:
    radial-gradient(circle at 12% 80%, var(--primary-soft), transparent 34%),
    var(--bg);
}

.slide--closing .cover-brand {
  justify-content: flex-start;
  gap: 18px;
}

.closing-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.closing-body > h1 {
  max-width: 930px;
  margin: 14px 0 32px;
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.card {
  min-height: 190px;
  padding: 24px 26px;
}

.closing-question {
  margin: 30px 0 0;
  color: var(--primary);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0.15em;
}

.back-link {
  color: var(--muted);
  font-size: 13px;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
}

.closing-links {
  display: flex;
  gap: 22px;
}

.deck-settings {
  position: fixed;
  z-index: 44;
  top: 18px;
  right: 18px;
  color: var(--text);
  transition: opacity 0.25s;
}

.deck-settings button,
.deck-settings a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.deck-settings-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
}

.deck-settings-toggle svg {
  width: 18px;
  height: 18px;
}

.deck-settings-panel {
  position: absolute;
  top: 50px;
  right: 0;
  width: min(264px, calc(100vw - 36px));
  padding: 14px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.deck-settings-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.deck-settings-panel__group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.deck-settings-panel__group:first-child {
  padding-top: 0;
}

.deck-settings-panel__group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.deck-settings-panel__label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deck-settings-panel #themeButton,
.deck-settings-action,
.deck-settings-panel a {
  position: static;
  width: auto;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.deck-settings-panel #themeButton {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  font-size: 16px;
}

.deck-quick-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.deck-settings-panel .deck-quick-links a {
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  font-size: 11px;
}

.deck-settings button:hover,
.deck-settings button:focus-visible,
.deck-settings a:hover,
.deck-settings a:focus-visible,
.deck-settings a[aria-current="page"] {
  color: var(--primary);
  background: var(--surface-soft);
  outline: none;
  transform: translateY(-1px);
}

.deck-controls {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  color: #eef3fb;
  background: rgba(8, 16, 29, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: opacity 0.25s;
}

.deck-controls button,
.toc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  padding: 0 9px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.deck-controls button:hover,
.deck-controls button:focus-visible,
.toc-button:hover,
.toc-button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

#deckCounter {
  min-width: 58px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.toc-button {
  position: fixed;
  z-index: 42;
  top: 18px;
  left: 18px;
  color: #eef3fb;
  background: rgba(8, 16, 29, 0.88);
}

.toc {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(390px, 86vw);
  padding: 72px 22px 28px;
  overflow-y: auto;
  color: #eef3fb;
  background: rgba(8, 16, 29, 0.97);
  box-shadow: 20px 0 70px rgba(0, 0, 0, 0.32);
  transform: translateX(-105%);
  transition: transform 0.25s ease;
}

.toc.open {
  transform: translateX(0);
}

.toc h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.toc-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  width: 100%;
  padding: 11px 10px;
  color: #bdc7d6;
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.toc-item:hover,
.toc-item.current {
  color: #fff;
  background: rgba(138, 180, 248, 0.14);
}

.toc-item span:first-child {
  color: #8ab4f8;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.deck-progress {
  position: fixed;
  z-index: 35;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(15, 44, 89, 0.16);
}

.deck-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #4f83d1;
  transition: width 0.2s ease;
}

body.chrome-hidden .deck-controls,
body.chrome-hidden .toc-button,
body.chrome-hidden .deck-settings {
  opacity: 0;
  pointer-events: none;
}

/* ===== Chapter 1 presentation components ===== */
.graph-scene {
  display: grid;
  grid-template-columns: 1fr 120px 1fr 120px 1fr;
  align-items: center;
  gap: 12px;
}

.graph-node {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow);
  text-align: center;
}

.graph-node--focus {
  color: #fff;
  background: var(--primary-deep);
  border-color: var(--primary-deep);
}

.graph-node span,
.graph-node small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.graph-node--focus span,
.graph-node--focus small {
  color: rgba(255, 255, 255, 0.72);
}

.graph-node strong {
  margin: 8px 0;
  font-size: 26px;
}

.graph-edge {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary);
}

.graph-edge span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.graph-edge b {
  font-size: 34px;
}

.legend-row {
  display: flex;
  justify-content: center;
  gap: 42px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.legend-row b {
  margin-right: 5px;
  color: var(--primary);
}

.access-path,
.shift,
.maturity-line {
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.access-path > div,
.shift article,
.maturity-line article {
  display: flex;
  flex: 1;
  min-height: 210px;
  flex-direction: column;
  justify-content: center;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.access-path > b,
.shift > b,
.maturity-line > b {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 28px;
}

.access-path span,
.maturity-line span {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.access-path strong {
  font-size: 22px;
  line-height: 1.4;
}

.shift article {
  min-height: 250px;
}

.shift article h2,
.maturity-line h2 {
  margin: 12px 0;
  font-size: 27px;
}

.shift article > p:last-child,
.maturity-line p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.shift__focus {
  background: var(--primary-soft) !important;
  border-color: var(--primary) !important;
}

.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.balance-grid article {
  min-height: 280px;
  padding: 30px 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--primary);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.balance-grid article:last-child {
  border-top-color: var(--muted);
}

.balance-grid span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.balance-grid h2 {
  margin: 14px 0 18px;
  font-size: 28px;
}

.balance-grid ul {
  margin: 0;
  padding-left: 22px;
}

.balance-grid li {
  margin: 10px 0;
  font-size: 17px;
}

.hybrid-loop {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.hybrid-loop article {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.hybrid-loop article > span,
.maturity-line article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--primary-deep);
  border-radius: 9px;
  font-weight: 900;
}

.hybrid-loop article strong {
  font-size: 19px;
  line-height: 1.3;
}

.hybrid-loop article small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.hybrid-loop > b {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 22px;
}

.hybrid-loop__focus {
  background: var(--primary-soft) !important;
  border-color: var(--primary) !important;
}

.pillar-grid,
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pillar-grid article,
.use-case-grid article {
  min-height: 235px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.pillar-grid strong {
  display: block;
  color: var(--primary);
  font-size: 31px;
}

.pillar-grid span {
  display: block;
  margin: 5px 0 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pillar-grid p,
.use-case-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.use-case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.use-case-grid article {
  min-height: 250px;
  padding: 28px 30px;
}

.use-case-grid h2 {
  margin: 14px 0 16px;
  font-size: 24px;
}

.conversation {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: stretch;
  gap: 20px;
}

.conversation > article,
.conversation__middle {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.conversation article > span {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.conversation article p {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.conversation__middle {
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  align-content: center;
  align-items: center;
  background: var(--primary-soft);
  border-color: var(--primary);
  text-align: center;
}

.conversation__middle strong {
  color: var(--primary);
  font-size: 24px;
}

.conversation__middle span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.conversation__middle b {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--primary);
  font-size: 26px;
}

.decision-grid,
.semantic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.decision-grid article,
.semantic-grid article {
  min-height: 300px;
  padding: 28px 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.decision-grid article:first-child,
.semantic-grid article:first-child {
  border-top: 5px solid var(--primary);
}

.decision-grid h2,
.semantic-grid h2 {
  margin: 12px 0 16px;
  font-size: 25px;
}

.decision-grid ul {
  margin: 0;
  padding-left: 22px;
}

.decision-grid li {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.4;
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 15px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  line-height: 1.4;
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-right: 0;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table thead th {
  color: #fff;
  background: var(--primary-deep);
  font-size: 14px;
}

.compare-table tbody th {
  width: 16%;
  color: var(--primary);
  background: var(--primary-soft);
}

.hierarchy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
}

.hierarchy span,
.relation-tags span {
  padding: 10px 15px;
  color: var(--text);
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 800;
}

.hierarchy b {
  color: var(--primary);
}

.relation-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}

.semantic-grid article > p:last-child {
  color: var(--muted);
  font-size: 15px;
}

.maturity-line article {
  min-height: 230px;
}

.question-list {
  display: grid;
  gap: 14px;
}

.question-list article {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  min-height: 88px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.question-list span {
  color: var(--primary);
  font-size: 18px;
  font-weight: 950;
}

.question-list p {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

/* ===== Report-derived Chapter 1 deck ===== */
.report-ref {
  color: var(--primary);
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
  text-underline-offset: 3px;
}

.report-ref:hover,
.report-ref:focus-visible {
  text-decoration: underline;
  outline: none;
}

.toc-intro {
  margin: -8px 0 16px;
  color: #9ca9bb;
  font-size: 12px;
  line-height: 1.5;
}

.thesis-pair {
  display: grid;
  grid-template-columns: 1fr 118px 1fr;
  align-items: stretch;
  gap: 18px;
}

.thesis-pair article {
  min-height: 278px;
  padding: 34px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--primary);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.thesis-pair__kg {
  color: #fff;
  background: var(--primary-deep) !important;
  border-color: var(--primary-deep) !important;
}

.thesis-pair article > span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
}

.thesis-pair__kg > span,
.thesis-pair__kg p { color: rgba(255, 255, 255, .74) !important; }
.thesis-pair article h2 { margin: 20px 0 16px; font-size: 29px; line-height: 1.25; }
.thesis-pair article p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.thesis-pair__bridge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--primary); }
.thesis-pair__bridge b { font-size: 44px; }
.thesis-pair__bridge span { font-size: 12px; font-weight: 900; text-align: center; }

.question-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.question-map article {
  position: relative;
  min-height: 142px;
  padding: 24px 28px 22px 76px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.question-map article > span {
  position: absolute;
  top: 25px;
  left: 24px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 950;
}

.question-map h2 { margin: 0 0 10px; font-size: 23px; }
.question-map p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.question-map--compact article { min-height: 135px; padding-left: 32px; }
.question-map--compact article > span { position: static; display: block; margin-bottom: 12px; font-size: 11px; letter-spacing: .12em; }

.narrative-rail {
  display: flex;
  align-items: stretch;
  gap: 7px;
}

.narrative-rail article {
  flex: 1;
  min-width: 0;
  min-height: 230px;
  padding: 22px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.narrative-rail > b { display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 24px; }
.narrative-rail article > span { color: var(--primary); font-size: 12px; font-weight: 950; }
.narrative-rail strong { display: block; margin: 12px 0 8px; font-size: 17px; line-height: 1.3; }
.narrative-rail small { color: var(--muted); font-size: 12px; }

.slide--visual { padding: 28px 54px 24px; }
.slide--visual .slide-header { min-height: 32px; margin-bottom: 8px; }
.slide--visual > h1 { font-size: 36px; line-height: 1.12; }
.slide--visual > h1::after { width: 46px; height: 3px; margin-top: 9px; }
.slide--visual .slide-footer { padding-top: 8px; }
.report-visual-body { justify-content: center; padding: 8px 0 6px; }

.deck-report-figure {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.deck-report-figure img {
  display: block;
  width: auto;
  max-width: 1080px;
  height: auto;
  max-height: 420px;
  background: #fafaf9;
  border: 1px solid #dfe2e7;
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(15, 44, 89, .11);
}

.deck-report-figure--tall img { max-height: 400px; }
.deck-report-figure figcaption {
  display: grid;
  grid-template-columns: 120px repeat(3, 1fr);
  width: min(1080px, 100%);
  margin-top: 9px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.deck-report-figure figcaption > * { padding: 9px 12px; border-right: 1px solid var(--border); font-size: 12px; line-height: 1.35; }
.deck-report-figure figcaption > *:last-child { border-right: 0; }
.deck-report-figure figcaption b { color: #fff; background: var(--primary-deep); text-align: center; }
.deck-report-figure figcaption span { color: var(--muted); }

.evidence-grid { display: grid; gap: 18px; }
.evidence-grid--four { grid-template-columns: repeat(4, 1fr); }
.evidence-grid article {
  min-height: 238px;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.evidence-grid__focus { background: var(--primary-soft) !important; border-top-color: var(--primary) !important; }
.evidence-grid article > span { color: var(--primary); font-size: 11px; font-weight: 950; letter-spacing: .12em; }
.evidence-grid h2 { margin: 18px 0 16px; font-size: 24px; line-height: 1.25; }
.evidence-grid p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cost-grid article { min-height: 285px; padding: 30px 30px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.cost-grid article > span { color: var(--primary); font-size: 12px; font-weight: 950; letter-spacing: .1em; }
.cost-grid h2 { margin: 18px 0 16px; font-size: 28px; }
.cost-grid p { min-height: 104px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.cost-grid small { display: block; padding-top: 14px; border-top: 1px solid var(--border); color: var(--primary); font-size: 13px; font-weight: 850; }

.compare-table--dense th,
.compare-table--dense td { padding: 13px 16px; font-size: 15px; line-height: 1.35; }

.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gate-grid article { min-height: 155px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--primary); border-radius: 10px; box-shadow: var(--shadow); }
.gate-grid article > span { color: var(--primary); font-size: 11px; font-weight: 950; letter-spacing: .08em; }
.gate-grid h2 { margin: 10px 0 8px; font-size: 21px; }
.gate-grid p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.gate-grid small { color: var(--text); font-size: 12px; font-weight: 750; }

.case-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-compare article { min-height: 320px; padding: 30px 34px; background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--primary); border-radius: 12px; box-shadow: var(--shadow); }
.case-compare h2 { margin: 15px 0 22px; font-size: 28px; }
.case-compare dl { margin: 0; }
.case-compare dl div { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.case-compare dt { color: var(--primary); font-size: 13px; font-weight: 950; }
.case-compare dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; }

.decision-checklist { display: grid; gap: 10px; }
.decision-checklist article { display: grid; grid-template-columns: 44px 1fr 180px; align-items: center; min-height: 64px; padding: 10px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; box-shadow: 0 8px 22px rgba(15, 44, 89, .06); }
.decision-checklist b { color: var(--primary); font-size: 17px; }
.decision-checklist p { margin: 0; font-size: 16px; }
.decision-checklist span { color: var(--primary); font-size: 12px; font-weight: 850; text-align: right; }

.step-chain { display: flex; align-items: stretch; gap: 8px; }
.step-chain article { display: flex; flex: 1; min-width: 0; min-height: 230px; flex-direction: column; align-items: center; justify-content: center; padding: 20px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); text-align: center; }
.step-chain > b { display: flex; align-items: center; color: var(--primary); font-size: 24px; }
.step-chain article > span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: #fff; background: var(--primary-deep); border-radius: 8px; font-size: 14px; font-weight: 950; }
.step-chain h2 { margin: 18px 0 12px; font-size: 21px; }
.step-chain p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.discussion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.discussion-grid article { min-height: 270px; padding: 26px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.discussion-grid article > span { color: var(--primary); font-size: 20px; font-weight: 950; }
.discussion-grid h2 { margin: 18px 0 16px; font-size: 23px; line-height: 1.35; }
.discussion-grid p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

html.theme-dark .deck-report-figure img { background: #fafaf9; border-color: #6f7886; }
html.theme-dark .deck-report-figure figcaption b { color: #fff; background: #0f2c59; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@page {
  size: 13.333in 7.5in;
  margin: 0;
}

@media print {
  html,
  body {
    width: auto;
    height: auto;
    overflow: visible;
    background: #fff;
  }

  .stage {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    transform: none;
    box-shadow: none;
  }

  .slide,
  .slide.is-active {
    display: flex;
    break-after: page;
    page-break-after: always;
  }

  .slide:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .deck-controls,
  .deck-settings,
  .toc-button,
  .toc,
  .deck-progress,
  .skip-link {
    display: none !important;
  }
}
