:root {
  --ink: #171817;
  --muted: #555a55;
  --paper: #f4f1e8;
  --paper-2: #ebe7da;
  --surface: #fffefa;
  --line: #cbc7bb;
  --line-soft: rgba(23, 24, 23, 0.1);
  --teal: #259ca6;
  --teal-soft: #dceff0;
  --blue: #347cac;
  --blue-soft: #dcebf4;
  --green: #4a922d;
  --green-soft: #e1f0d9;
  --amber: #e8af3e;
  --amber-soft: #faecd0;
  --orange: #dd6b32;
  --orange-soft: #f7e0d3;
  --red: #b74f3d;
  --red-soft: #f5ddd7;
  --accent: var(--teal);
  --accent-soft: var(--teal-soft);
  --accent-ink: #0b4d52;
  --max: 1260px;
  --header-h: 64px;
  --progress: 0%;
  --shadow: 8px 8px 0 rgba(23, 24, 23, 0.08);
}

body[data-theme="web"] {
  --accent: var(--blue);
  --accent-soft: var(--blue-soft);
  --accent-ink: #17445f;
}

body[data-theme="cloud"] {
  --accent: var(--green);
  --accent-soft: var(--green-soft);
  --accent-ink: #285817;
}

body[data-theme="ai"] {
  --accent: var(--orange);
  --accent-soft: var(--orange-soft);
  --accent-ink: #773114;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  transform: translateY(-150%);
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--surface);
  font-weight: 800;
}

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

.wrap {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.95);
  backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: var(--progress);
  height: 3px;
  background: var(--accent);
  transition: width 120ms linear;
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(220px, 400px) minmax(230px, 1fr);
  align-items: center;
  gap: 22px;
}

.brand {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.brand-mark {
  width: 38px;
  height: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 4px;
  background: #07100f;
  color: var(--surface);
  object-fit: contain;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.brand-copy {
  min-width: 0;
  display: grid;
  line-height: 1.12;
}

.brand-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-progress {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 800;
}

.header-progress span {
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-progress progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 0;
  background: var(--paper-2);
  appearance: none;
}

.header-progress progress::-webkit-progress-bar {
  background: var(--paper-2);
}

.header-progress progress::-webkit-progress-value {
  background: var(--accent);
}

.header-progress progress::-moz-progress-bar {
  background: var(--accent);
}

.header-actions {
  justify-self: end;
  display: flex;
  gap: 8px;
}

.header-action,
.icon-button,
.command,
.segment button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-action,
.command {
  padding: 9px 14px;
  gap: 10px;
}

.icon-button {
  width: 44px;
  padding: 0;
  font-size: 18px;
}

.header-action:hover,
.icon-button:hover,
.command:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.command.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.command.accent {
  border-color: var(--accent);
  background: var(--accent);
  color: #0d1513;
}

.eyebrow,
.mono-label,
.phase-number,
.board-label,
.metric-label {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.hub-hero,
.roadmap-hero {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 232, 0.74);
}

.hub-hero {
  min-height: calc(86svh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 72px 0 60px;
}

.hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 68px;
  align-items: center;
}

.hub-hero h1,
.roadmap-hero h1 {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 6.4vw, 94px);
  font-weight: 500;
  line-height: 0.96;
}

.hub-thesis,
.roadmap-thesis {
  max-width: 690px;
  margin: 26px 0 0;
  font-size: 23px;
  font-weight: 760;
  line-height: 1.32;
}

.hub-copy,
.roadmap-copy {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
}

.publication-line {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 254, 250, 0.72);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  line-height: 1.55;
}

.publication-line strong {
  color: var(--ink);
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paper-board {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(rgba(23, 24, 23, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 23, 0.065) 1px, transparent 1px),
    var(--surface);
  background-size: 24px 24px;
  box-shadow: var(--shadow);
}

.series-map {
  min-height: 540px;
  padding: 32px;
}

.series-path {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px 18px;
  align-items: center;
  margin-top: 20px;
}

.series-node {
  min-height: 120px;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 6px 6px 0 rgba(23, 24, 23, 0.07);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.series-node:hover {
  transform: translateY(-3px);
  box-shadow: 8px 10px 0 rgba(23, 24, 23, 0.08);
}

.series-node:nth-of-type(1) { border-color: var(--teal); }
.series-node:nth-of-type(2) { border-color: var(--blue); }
.series-node:nth-of-type(3) { border-color: var(--green); }
.series-node:nth-of-type(4) { border-color: var(--orange); }

.series-node b {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.series-node strong {
  display: block;
  font-size: 14px;
}

.series-node small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.series-arrow {
  color: #737873;
  font-size: 22px;
  font-weight: 850;
}

.roadmap-hero {
  padding: 78px 0 66px;
}

.roadmap-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.62fr);
  gap: 64px;
  align-items: end;
}

.roadmap-hero h1 {
  max-width: 850px;
  font-size: clamp(52px, 6vw, 86px);
}

.readiness-card {
  padding: 26px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow);
}

.readiness-card h2 {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.1;
}

.readiness-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.readiness-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(23, 24, 23, 0.18);
}

.readiness-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(23, 24, 23, 0.18);
  font-size: 12px;
  font-weight: 760;
}

.roadmap-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.84);
}

.roadmap-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
}

.roadmap-nav a {
  min-height: 82px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-content: center;
  padding: 14px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.roadmap-nav a span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
}

.roadmap-nav a:hover {
  background: var(--accent-soft);
}

.series-list,
.research,
.learning-model,
.portfolio-section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.74);
}

.series-list {
  background: rgba(244, 241, 232, 0.77);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 9px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.06;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.roadmap-list {
  border-top: 1px solid var(--line);
}

.roadmap-link {
  --row-accent: var(--teal);
  --row-soft: var(--teal-soft);
  min-height: 190px;
  display: grid;
  grid-template-columns: 100px minmax(260px, 0.75fr) minmax(0, 1.25fr) 58px;
  gap: 26px;
  align-items: center;
  padding: 24px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 180ms ease;
}

.roadmap-link[data-color="blue"] { --row-accent: var(--blue); --row-soft: var(--blue-soft); }
.roadmap-link[data-color="green"] { --row-accent: var(--green); --row-soft: var(--green-soft); }
.roadmap-link[data-color="orange"] { --row-accent: var(--orange); --row-soft: var(--orange-soft); }

.roadmap-link:hover {
  background: var(--row-soft);
}

.roadmap-index {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--row-accent);
  border-radius: 50%;
  color: var(--row-accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  font-weight: 850;
}

.roadmap-name span {
  color: var(--row-accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.roadmap-name h3 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.08;
}

.roadmap-summary {
  color: var(--muted);
  font-size: 14px;
}

.roadmap-summary strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.roadmap-open {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--row-accent);
  border-radius: 50%;
  color: var(--row-accent);
  font-size: 20px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.signal {
  min-height: 230px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal b {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 500;
  color: var(--accent);
}

.signal strong {
  display: block;
  margin-top: 10px;
  font-size: 15px;
}

.signal p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.signal a {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
}

.evidence-policy {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.evidence-tier {
  min-height: 180px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.72);
}

.evidence-tier span,
.evidence-status {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  color: var(--accent-ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.evidence-tier h3 {
  margin: 13px 0 0;
  font-size: 17px;
}

.evidence-tier p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.evidence-note {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--amber-soft);
  color: #4d421f;
  font-size: 12px;
}

.evidence-note strong {
  color: var(--ink);
}

.inline-citation {
  color: var(--accent-ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72em;
  font-weight: 850;
  text-decoration: none;
  vertical-align: super;
}

.learning-cycle {
  display: grid;
  grid-template-columns: repeat(7, minmax(70px, 1fr));
  gap: 10px;
  align-items: center;
  padding: 28px;
}

.flow-node {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 6px 6px 0 rgba(23, 24, 23, 0.07);
  text-align: center;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.35;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.flow-node.accent,
.flow-node.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.flow-node.is-on {
  transform: translateY(-5px);
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: #737873;
  font-size: 20px;
  font-weight: 850;
}

.phase {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 232, 0.77);
}

.phase:nth-of-type(even) {
  background: rgba(255, 254, 250, 0.76);
}

.phase-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.phase-intro {
  position: sticky;
  top: calc(var(--header-h) + 26px);
}

.phase-intro h2 {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.03;
}

.phase-intro p {
  margin: 20px 0 0;
  color: var(--muted);
}

.phase-rule {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 820;
}

.phase-content {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.learning-board {
  min-height: 330px;
  padding: 26px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.board-head h3 {
  margin: 5px 0 0;
  font-size: 21px;
  line-height: 1.25;
}

.segment {
  display: inline-grid;
  grid-auto-flow: column;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.segment button {
  padding: 8px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  font-size: 10px;
}

.segment button:last-child {
  border-right: 0;
}

.segment button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
}

.compare-stage > [data-panel] {
  display: none;
}

.compare-stage[data-mode="good"] > [data-panel="good"],
.compare-stage[data-mode="bad"] > [data-panel="bad"] {
  display: block;
}

.diagram-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(64px, 1fr));
  gap: 9px;
  align-items: center;
  min-height: 200px;
}

.diagram-branch {
  display: grid;
  gap: 8px;
}

.diagram-branch .flow-node {
  min-height: 54px;
}

.board-result,
.lab-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.board-result b,
.lab-status b {
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
}

.board-result p,
.lab-status p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.lesson-item {
  min-height: 174px;
  padding: 19px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.76);
}

.lesson-icon {
  width: 46px;
  height: 30px;
  position: relative;
  display: block;
  margin-bottom: 15px;
}

.lesson-icon::before,
.lesson-icon::after {
  content: "";
  position: absolute;
  border: 2px solid var(--accent);
}

.lesson-icon::before {
  inset: 3px 16px 3px 0;
  background: var(--accent-soft);
}

.lesson-icon::after {
  width: 13px;
  height: 13px;
  top: 8px;
  right: 0;
  border-color: var(--amber);
  background: var(--amber-soft);
}

.lesson-item strong {
  display: block;
  font-size: 14px;
}

.lesson-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.outcome-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: var(--surface);
}

.outcome {
  min-height: 166px;
  padding: 22px;
}

.outcome + .outcome {
  border-left: 1px solid var(--line);
}

.outcome.bad {
  background: var(--red-soft);
}

.outcome.good {
  background: var(--green-soft);
}

.outcome-label {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.outcome h3 {
  margin: 11px 0 0;
  font-size: 19px;
}

.outcome p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.stage-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stage-button {
  min-height: 72px;
  padding: 10px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
}

.stage-button span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
}

.stage-button[aria-pressed="true"] {
  background: var(--accent-soft);
}

.stage-detail {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.stage-output {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 850;
}

.stage-detail h3 {
  margin: 0;
  font-size: 20px;
}

.stage-detail p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.project-ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project {
  min-height: 310px;
  display: grid;
  align-content: space-between;
  padding: 23px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.8);
}

.project span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 850;
}

.project h3 {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.08;
}

.project p {
  color: var(--muted);
  font-size: 12px;
}

.project ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.project li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.skill-lab {
  padding: 26px;
}

.skill-summary {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
}

.skill-score {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.skill-score strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37px;
  font-weight: 500;
}

.skill-summary h3 {
  margin: 0;
  font-size: 24px;
}

.skill-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.skill-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skill-check {
  min-height: 70px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font-size: 11px;
  font-weight: 760;
}

.skill-check::before {
  content: "";
  width: 22px;
  height: 22px;
  display: block;
  border: 1px solid var(--line);
  background: var(--paper);
}

.skill-check[aria-pressed="true"] {
  background: var(--green-soft);
}

.skill-check[aria-pressed="true"]::before {
  content: "✓";
  display: grid;
  place-items: center;
  border-color: var(--green);
  color: var(--green);
  font-weight: 900;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.source-link {
  min-height: 120px;
  display: grid;
  align-content: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.source-link:hover {
  background: var(--accent-soft);
}

.source-link span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 850;
}

.source-link strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.source-link small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.source-link cite {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: normal;
}

.source-link .evidence-status {
  width: fit-content;
  margin-top: 8px;
}

.closing {
  padding: 82px 0;
  background: var(--ink);
  color: var(--surface);
}

.closing-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 68px;
  align-items: end;
}

.closing h2 {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 5vw, 70px);
  font-weight: 500;
  line-height: 1.02;
}

.closing p {
  margin: 0;
  color: #c2c5c0;
}

.next-roadmap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--surface);
  font-weight: 800;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid #383b38;
  background: var(--ink);
  color: #aeb2ac;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.js .reveal.is-seen {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: minmax(190px, 1fr) minmax(180px, 300px) auto;
  }

  .hub-hero-grid,
  .roadmap-hero-grid,
  .phase-grid {
    grid-template-columns: 1fr;
  }

  .phase-intro {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 34px;
    align-items: end;
  }

  .phase-intro .phase-rule {
    grid-column: 2;
  }

  .signal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .evidence-policy {
    grid-template-columns: 1fr;
  }

  .roadmap-link {
    grid-template-columns: 86px minmax(220px, 0.72fr) minmax(0, 1.28fr) 50px;
  }
}

@media (max-width: 800px) {
  :root { --header-h: 60px; }

  body { font-size: 16px; }

  .wrap { width: min(calc(100% - 32px), var(--max)); }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .header-progress,
  .header-action {
    display: none;
  }

  .hub-hero {
    min-height: auto;
    padding: 60px 0;
  }

  .hub-hero-grid {
    gap: 42px;
  }

  .roadmap-hero {
    padding: 60px 0;
  }

  .hub-hero h1,
  .roadmap-hero h1 {
    font-size: 54px;
  }

  .series-path {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .series-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .roadmap-nav-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .closing-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-link {
    grid-template-columns: 70px minmax(0, 1fr) 48px;
    gap: 16px;
  }

  .roadmap-summary {
    grid-column: 2 / -1;
  }

  .lesson-grid,
  .project-ladder {
    grid-template-columns: repeat(2, 1fr);
  }

  .project:last-child {
    grid-column: span 2;
  }

  .phase {
    padding: 70px 0;
  }

  .phase-intro {
    display: block;
  }

  .phase-intro .phase-rule {
    grid-column: auto;
  }

  .learning-cycle,
  .diagram-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .diagram-branch {
    grid-template-columns: repeat(3, 1fr);
  }

  .stage-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .brand-copy small { display: none; }

  .hub-hero,
  .roadmap-hero {
    padding: 42px 0 52px;
  }

  .hub-hero-grid {
    gap: 28px;
  }

  .hub-hero h1,
  .roadmap-hero h1 {
    font-size: 43px;
  }

  .hub-thesis,
  .roadmap-thesis {
    font-size: 19px;
  }

  .series-map,
  .learning-board,
  .skill-lab {
    padding: 18px;
    box-shadow: 5px 5px 0 rgba(23, 24, 23, 0.08);
  }

  .series-node {
    min-height: 104px;
  }

  .roadmap-nav-inner,
  .signal-grid,
  .evidence-policy,
  .lesson-grid,
  .outcome-pair,
  .project-ladder,
  .skill-checks,
  .source-list,
  .stage-detail {
    grid-template-columns: 1fr;
  }

  .roadmap-link {
    grid-template-columns: 52px minmax(0, 1fr) 44px;
    min-height: 230px;
    padding-inline: 8px;
  }

  .roadmap-index {
    width: 48px;
    height: 48px;
  }

  .roadmap-name h3 {
    font-size: 25px;
  }

  .roadmap-summary {
    grid-column: 1 / -1;
  }

  .outcome + .outcome {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .project:last-child {
    grid-column: auto;
  }

  .board-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .segment {
    width: 100%;
    grid-auto-flow: initial;
    grid-template-columns: 1fr 1fr;
  }

  .stage-selector {
    grid-template-columns: 1fr;
  }

  .skill-summary {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 340px) {
  .brand-copy { display: none; }

  .hub-hero h1,
  .roadmap-hero h1 {
    font-size: 39px;
  }

  .hero-actions .command {
    flex: 1;
    min-width: 0;
    padding-inline: 8px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  :root { --header-h: 0px; }

  body {
    background: #fff;
    color: #000;
    font-size: 10pt;
  }

  .site-header,
  .hero-actions,
  .command,
  .segment {
    display: none !important;
  }

  .hub-hero,
  .roadmap-hero,
  .phase,
  .series-list,
  .research,
  .learning-model,
  .portfolio-section {
    min-height: 0;
    padding: 26px 0;
    background: #fff;
  }

  .hub-hero-grid,
  .roadmap-hero-grid,
  .phase-grid,
  .closing-grid {
    grid-template-columns: 1fr;
  }

  .phase-intro {
    position: static;
  }

  .paper-board,
  .readiness-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .closing,
  .site-footer {
    background: #fff;
    color: #000;
  }
}
