:root {
  --paper: #f5f1e8;
  --paper-deep: #eae4d7;
  --surface: #fffdf7;
  --ink: #17201c;
  --muted: #626a64;
  --line: #d6d1c4;
  --line-strong: #aaa99f;
  --primary: #17654c;
  --primary-dark: #0f4e3a;
  --signal: #c23927;
  --signal-dark: #93291d;
  --marker: #d8ef6b;
  --sun: #f2c14d;
  --white: #fff;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Helvetica Neue", Arial, sans-serif;
  --shadow-small: 0 8px 24px rgb(23 32 28 / 7%);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shell: 1240px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }

::selection { color: var(--ink); background: var(--marker); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--surface);
  background: var(--ink);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform 150ms ease-out;
}

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

.shell {
  width: min(calc(100% - 64px), var(--shell));
  margin-inline: auto;
}

.section { padding-block: 132px; }

.scroll-progress {
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--signal);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgb(23 32 28 / 12%);
  background: rgb(245 241 232 / 88%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  width: min(calc(100% - 64px), var(--shell));
  height: 100%;
  margin-inline: auto;
}

.brand { display: inline-flex; gap: 12px; align-items: center; width: max-content; }

.brand-mark {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 38px;
  padding-inline: 8px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
}

.brand-copy {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-nav { display: flex; justify-content: center; gap: 34px; }

.site-nav a {
  position: relative;
  padding-block: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease-out;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }

.print-button,
.expand-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 100px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  transition: color 140ms ease, background 140ms ease, transform 90ms ease;
}

.print-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.print-button:hover, .expand-button:hover { color: var(--paper); background: var(--ink); }
.print-button:active, .expand-button:active { transform: scale(.98); }
.menu-button { display: none; }

.hero { overflow: hidden; padding: 94px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  gap: 52px;
  align-items: center;
  min-height: 600px;
}

.eyebrow,
.section-kicker,
.card-index {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.eyebrow { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.eyebrow > span { width: 28px; height: 2px; background: var(--signal); }

.hero h1 {
  max-width: 830px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(56px, 6.25vw, 92px);
  font-weight: 600;
  line-height: .97;
  letter-spacing: -.045em;
}

h1 em, h2 em { color: var(--signal); font-style: normal; }

.hero-lede {
  max-width: 650px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: color 160ms ease, background 160ms ease, transform 90ms ease;
}

.button-primary { color: var(--paper); background: var(--ink); }
.button-primary:hover { background: var(--primary); border-color: var(--primary); }
.button-ghost { gap: 28px; }
.button-ghost:hover { color: var(--surface); background: var(--signal); border-color: var(--signal); }
.button:active { transform: scale(.98); }

.hero-map {
  position: relative;
  min-height: 540px;
  isolation: isolate;
}

.hero-map::before {
  position: absolute;
  z-index: -2;
  inset: 18px;
  content: "";
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-small);
}

.hero-map::after {
  position: absolute;
  z-index: -1;
  top: 53px;
  right: 58px;
  width: 68px;
  height: 68px;
  content: "";
  background: var(--marker);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.hero-number {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  color: var(--paper-deep);
  font-family: var(--font-display);
  font-size: 240px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.08em;
  transform: translate(-52%, -54%);
}

.route-line { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.route-line path { fill: none; stroke-linecap: round; }
.route-shadow { stroke: var(--ink); stroke-width: 7; opacity: .08; transform: translate(0, 5px); }
.route-path { stroke: var(--signal); stroke-width: 3; stroke-dasharray: 8 10; }
.route-line circle { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.route-line .route-end { fill: var(--marker); stroke: var(--ink); }

.map-label {
  position: absolute;
  padding: 5px 9px;
  color: var(--surface);
  background: var(--ink);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .08em;
}

.map-label-start { top: 68px; left: 4px; }
.map-label-data { top: 86px; left: 39%; }
.map-label-api { top: 150px; right: 0; }
.map-label-infra { right: 36%; bottom: 132px; }
.map-label-ship { right: 0; bottom: 82px; color: var(--ink); background: var(--marker); }

.map-note {
  position: absolute;
  right: 56px;
  bottom: 32px;
  max-width: 200px;
  padding-left: 13px;
  border-left: 2px solid var(--signal);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.stat-strip > div { display: flex; gap: 14px; align-items: baseline; padding: 24px 28px; border-right: 1px solid var(--line-strong); }
.stat-strip > div:first-child { padding-left: 0; }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip strong { font-family: var(--font-display); font-size: 38px; line-height: 1; letter-spacing: -.04em; }
.stat-strip span { color: var(--muted); font-size: 13px; line-height: 1.2; }

.stack-ticker { overflow: hidden; padding: 17px 0; color: var(--paper); background: var(--ink); white-space: nowrap; }
.ticker-track { display: flex; gap: 25px; align-items: center; justify-content: center; min-width: max-content; margin-inline: auto; padding-inline: 24px; }
.ticker-track span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ticker-track i { color: var(--signal); font-style: normal; }

.section-kicker { display: block; margin-bottom: 20px; color: var(--primary); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 70px;
}

.section-heading h2,
.brief h2,
.final h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.04em;
}

.section-heading > p,
.route-controls > p {
  max-width: 530px;
  color: var(--muted);
  font-size: 17px;
}

.brief-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 90px; align-items: start; }
.section-lede { max-width: 660px; margin-top: 30px; color: var(--muted); font-size: 19px; }

.outcome-card,
.rubric-card,
.mentor-card,
.security-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.card-index { display: block; margin-bottom: 22px; color: var(--signal); }
.check-list { display: grid; gap: 13px; list-style: none; }
.check-list li { position: relative; padding-left: 28px; font-size: 15px; }
.check-list li::before { position: absolute; top: 3px; left: 0; width: 16px; height: 16px; content: ""; border: 1px solid var(--primary); border-radius: 50%; }
.check-list li::after { position: absolute; top: 7px; left: 4px; width: 8px; height: 5px; content: ""; border-bottom: 2px solid var(--primary); border-left: 2px solid var(--primary); transform: rotate(-45deg); }

.diagnostic-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  margin-top: 78px;
  padding: 36px;
  color: var(--surface);
  background: var(--primary);
  border-radius: var(--radius-lg);
}

.diagnostic-number { font-family: var(--font-display); font-size: 82px; font-weight: 600; line-height: .8; letter-spacing: -.06em; }
.diagnostic-number span { margin-left: 4px; font-family: var(--font-body); font-size: 16px; letter-spacing: 0; }
.diagnostic-card .eyebrow { color: rgb(255 255 255 / 84%); }
.diagnostic-card h3 { margin: 8px 0 5px; font-family: var(--font-display); font-size: 27px; }
.diagnostic-card p:not(.eyebrow) { max-width: 720px; color: rgb(255 255 255 / 76%); font-size: 15px; }
.text-link { display: inline-flex; gap: 26px; align-items: center; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 600; white-space: nowrap; }
.text-link span { font-size: 20px; transition: transform 150ms ease; }
.text-link:hover span { transform: translateX(5px); }

.scope-note { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 36px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scope-note strong { margin-right: 8px; font-size: 14px; }
.scope-note > span { padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--muted); font-size: 11px; font-weight: 500; }
.scope-note p { flex-basis: 100%; margin-top: 5px; color: var(--muted); font-size: 14px; font-style: italic; }

.rhythm { background: var(--surface); border-block: 1px solid var(--line); }

.day-clock {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 2.6fr 1fr .8fr;
  min-height: 210px;
  margin-top: 10px;
  overflow: hidden;
  color: var(--surface);
  background: var(--ink);
  border-radius: var(--radius-lg);
}

.clock-center { position: absolute; z-index: 3; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 130px; height: 130px; color: var(--ink); background: var(--marker); border: 8px solid var(--ink); border-radius: 50%; transform: translate(-50%, -50%); }
.clock-center strong { font-family: var(--font-display); font-size: 38px; line-height: 1; }
.clock-center span { margin-top: 5px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.clock-segment { display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 22px; border-right: 1px solid rgb(255 255 255 / 15%); }
.clock-segment:last-child { border-right: 0; }
.clock-segment strong { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.clock-segment span { margin-top: 8px; color: rgb(255 255 255 / 84%); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.clock-a { background: var(--primary); }
.clock-c { background: var(--signal); }
.clock-c span { color: var(--surface); }
.clock-e { color: var(--ink); background: var(--sun); }
.clock-e span { color: rgb(23 32 28 / 68%); }

.week-rhythm { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 26px; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.week-rhythm li { min-height: 138px; padding: 18px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.week-rhythm li > span { display: block; color: var(--signal); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.week-rhythm strong { display: block; margin-top: 22px; font-family: var(--font-display); font-size: 19px; }
.week-rhythm small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.35; }

.route-heading { margin-bottom: 40px; }
.route-controls { display: grid; justify-items: start; gap: 18px; }
.expand-button[aria-pressed="true"] { color: var(--surface); background: var(--primary); border-color: var(--primary); }

.phase-nav {
  position: sticky;
  z-index: 20;
  top: calc(var(--header-height) + 14px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 72px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(23 32 28 / 8%);
}

.phase-nav a { display: flex; gap: 10px; align-items: center; min-height: 52px; padding: 0 18px; border-right: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; transition: color 140ms ease, background 140ms ease; }
.phase-nav a:last-child { border-right: 0; }
.phase-nav a span { color: var(--signal); font-size: 10px; letter-spacing: .08em; }
.phase-nav a:hover, .phase-nav a[aria-current="true"] { color: var(--ink); background: var(--marker); }

.phase { scroll-margin-top: 145px; margin-bottom: 110px; }
.phase:last-child { margin-bottom: 0; }

.phase-header {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 2px solid var(--ink);
}

.phase-number { font-family: var(--font-display); font-size: 62px; font-weight: 600; line-height: 1; letter-spacing: -.06em; }
.phase-header p { color: var(--primary); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.phase-header h3 { margin-top: 4px; font-family: var(--font-display); font-size: 32px; letter-spacing: -.025em; }
.phase-hours { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--muted); font-size: 11px; }

.weeks-list { position: relative; padding-left: 38px; }
.weeks-list::before { position: absolute; top: 28px; bottom: 28px; left: 10px; width: 1px; content: ""; background: var(--line-strong); }

.week-card {
  position: relative;
  scroll-margin-top: 155px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: margin 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.week-card::before { position: absolute; z-index: 2; top: 29px; left: -34px; width: 13px; height: 13px; content: ""; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; transition: background 160ms ease, transform 160ms ease; }
.week-card:has(.checkpoint-chip)::before { border-radius: 2px; transform: rotate(45deg); }
.week-card[open] { margin-block: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-small); }
.week-card[open]::before { background: var(--signal); transform: scale(1.12); }
.week-card[open]:has(.checkpoint-chip)::before { transform: rotate(45deg) scale(1.12); }

.week-card summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto 28px;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 13px 18px;
  cursor: pointer;
  list-style: none;
}

.week-card summary::-webkit-details-marker { display: none; }
.week-card summary:hover .week-title strong { color: var(--signal); }
.week-no { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.week-title { display: flex; flex-direction: column; }
.week-title small { color: var(--primary); font-size: 9px; font-weight: 600; letter-spacing: .1em; }
.week-title strong { margin-top: 4px; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.25; transition: color 140ms ease; }
.week-chip { padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.checkpoint-chip { color: var(--ink); background: var(--marker); border-color: var(--ink); }
.week-toggle { position: relative; width: 22px; height: 22px; }
.week-toggle::before, .week-toggle::after { position: absolute; top: 50%; left: 50%; width: 13px; height: 1.5px; content: ""; background: var(--ink); transform: translate(-50%, -50%); transition: transform 180ms ease; }
.week-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.week-card[open] .week-toggle::after { transform: translate(-50%, -50%) rotate(0); }

.week-body { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.week-body > div { min-height: 146px; padding: 22px; border-right: 1px solid var(--line); }
.week-body > div:last-child { border-right: 0; }
.week-body small { color: var(--signal); font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.week-body p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.week-body code { color: var(--ink); font-size: .92em; }

.ai-section { color: var(--surface); background: var(--ink); }
.ai-section .section-kicker { color: var(--marker); }
.ai-section .section-heading h2 em { color: var(--marker); }
.ai-section .section-heading > p { color: rgb(255 255 255 / 62%); }

.ai-role-grid { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: stretch; }
.ai-role { padding: 38px; border: 1px solid rgb(255 255 255 / 22%); border-radius: var(--radius-lg); }
.codex-role { background: var(--primary); transform: rotate(-1deg); }
.claude-role { color: var(--ink); background: var(--marker); transform: rotate(1deg); }
.role-top { display: flex; gap: 17px; align-items: center; }
.role-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--font-display); font-size: 25px; }
.role-top small { font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.role-top h3 { margin-top: 2px; font-family: var(--font-display); font-size: 35px; }
.ai-role ul { display: grid; gap: 11px; margin-top: 34px; list-style: none; }
.ai-role li { position: relative; padding-left: 23px; font-size: 14px; }
.ai-role li::before { position: absolute; top: .7em; left: 0; width: 10px; height: 1px; content: ""; background: currentColor; }
.ai-rule { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ai-rule span { color: var(--signal); font-family: var(--font-display); font-size: 54px; line-height: 1; }
.ai-rule p { margin-top: 8px; color: rgb(255 255 255 / 54%); font-size: 10px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }

.ai-stages { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 72px; border-top: 1px solid rgb(255 255 255 / 22%); border-left: 1px solid rgb(255 255 255 / 22%); }
.ai-stages > div { min-height: 138px; padding: 20px 16px; border-right: 1px solid rgb(255 255 255 / 22%); border-bottom: 1px solid rgb(255 255 255 / 22%); }
.ai-stages span { color: var(--marker); font-size: 10px; font-weight: 600; letter-spacing: .09em; }
.ai-stages strong { display: block; margin-top: 27px; font-family: var(--font-display); font-size: 18px; }
.ai-stages small { display: block; margin-top: 5px; color: rgb(255 255 255 / 52%); font-size: 10px; }

.ai-bottom-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 24px; margin-top: 24px; }
.prompt-card { overflow: hidden; background: #0d1310; border: 1px solid rgb(255 255 255 / 22%); border-radius: var(--radius); }
.terminal-top { display: flex; gap: 7px; align-items: center; min-height: 42px; padding: 0 16px; border-bottom: 1px solid rgb(255 255 255 / 16%); }
.terminal-top > span { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; }
.terminal-top > span:nth-child(2) { background: var(--sun); }
.terminal-top > span:nth-child(3) { background: var(--primary); }
.terminal-top small { margin-left: 8px; color: rgb(255 255 255 / 50%); font-size: 10px; }
.prompt-card pre { min-height: 236px; margin: 0; padding: 28px; overflow: auto; color: #dce9df; font: 14px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.security-card { color: var(--ink); background: var(--surface); }
.security-card h3 { font-family: var(--font-display); font-size: 29px; }
.security-card p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.security-card strong { display: block; margin-top: 28px; padding: 18px; background: var(--paper); border-left: 3px solid var(--signal); font-size: 13px; }

.checkpoint-track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 24px; }
.checkpoint-track::before { position: absolute; top: 28px; right: 8%; left: 8%; height: 2px; content: ""; background: var(--line-strong); }
.checkpoint-track article { position: relative; z-index: 1; padding: 0 14px; text-align: center; }
.checkpoint-track article > span { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-inline: auto; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.checkpoint-track article > span::before { position: absolute; z-index: -1; inset: 0; content: ""; background: var(--marker); border: 2px solid var(--ink); border-radius: 4px; transform: rotate(45deg); }
.checkpoint-track article > div { margin-top: 30px; }
.checkpoint-track small { color: var(--signal); font-size: 9px; font-weight: 600; letter-spacing: .09em; }
.checkpoint-track h3 { margin-top: 5px; font-family: var(--font-display); font-size: 18px; }
.checkpoint-track p { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }

.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 90px; }
.rubric-card h3, .mentor-card h3 { font-family: var(--font-display); font-size: 27px; }
.rubric-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 26px; border-top: 1px solid var(--line); }
.rubric-list span { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.rubric-list b { color: var(--ink); }
.rubric-card > p, .mentor-card > p { margin-top: 22px; color: var(--muted); font-size: 13px; }
.mentor-card { color: var(--surface); background: var(--primary); border-color: var(--primary); }
.mentor-card .card-index { color: var(--marker); }
.mentor-card ol { display: grid; gap: 0; margin-top: 20px; list-style: none; border-top: 1px solid rgb(255 255 255 / 26%); }
.mentor-card li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgb(255 255 255 / 26%); font-size: 13px; }
.mentor-card li span { min-width: 54px; color: var(--marker); font-size: 10px; font-weight: 600; letter-spacing: .05em; }
.mentor-card > p { color: rgb(255 255 255 / 78%); }

.access-ladder { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: center; margin-top: 100px; padding-top: 80px; border-top: 1px solid var(--line-strong); }
.ladder-copy h3 { font-family: var(--font-display); font-size: 43px; line-height: 1.07; letter-spacing: -.035em; }
.ladder-copy p { max-width: 440px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.access-ladder ol { display: grid; gap: 8px; list-style: none; }
.access-ladder li { display: grid; grid-template-columns: 66px 1fr; align-items: center; min-height: 70px; padding: 10px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.access-ladder li > span { color: var(--signal); font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.access-ladder li div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.access-ladder li strong { font-size: 14px; }
.access-ladder li small { color: var(--muted); font-size: 11px; }

.final { overflow: hidden; color: var(--surface); background: var(--primary); }
.final .section-kicker { color: var(--marker); }
.final h2 em { color: var(--marker); }
.final-shell { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; align-items: center; }
.final-copy > p { max-width: 560px; margin-top: 28px; color: rgb(255 255 255 / 78%); }
.final-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 34px; list-style: none; }
.final-list li { position: relative; padding-left: 19px; font-size: 12px; }
.final-list li::before { position: absolute; top: .65em; left: 0; width: 8px; height: 1px; content: ""; background: var(--marker); }

.system-map { position: relative; min-height: 610px; color: var(--ink); }
.system-map::before { position: absolute; inset: 28px; content: ""; background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 26%); border-radius: 50%; }
.system-map > svg { position: absolute; inset: 30px; width: calc(100% - 60px); height: calc(100% - 60px); }
.system-map > svg path { fill: none; stroke: rgb(255 255 255 / 45%); stroke-width: 2; stroke-dasharray: 6 7; }
.system-node { position: absolute; z-index: 2; display: flex; flex-direction: column; justify-content: center; width: 150px; min-height: 82px; padding: 15px; background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius-sm); box-shadow: 5px 5px 0 var(--ink); }
.system-node small { color: var(--signal-dark); font-size: 9px; font-weight: 600; letter-spacing: .08em; }
.system-node strong { margin-top: 3px; font-family: var(--font-display); font-size: 18px; }
.system-node span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.node-client { top: 20px; left: 50%; transform: translateX(-50%); }
.node-api { top: 170px; left: 50%; transform: translateX(-50%); background: var(--marker); }
.node-app { top: 290px; left: 50%; transform: translateX(-50%); }
.node-db { top: 400px; left: 4%; }
.node-cache { top: 400px; left: 50%; transform: translateX(-50%); }
.node-bus { top: 400px; right: 4%; }
.node-worker { right: 4%; bottom: 0; background: var(--sun); }
.node-api span, .node-worker span { color: #4d554f; }
.system-arrow { position: absolute; z-index: 4; color: var(--marker); font-size: 28px; }
.arrow-a { top: 117px; left: 50%; transform: translateX(-50%) rotate(90deg); }
.arrow-b { top: 260px; left: 50%; transform: translateX(-50%); }
.failure-note { position: absolute; z-index: 5; bottom: 10px; left: 0; width: 270px; padding: 17px; color: var(--surface); background: var(--signal-dark); border: 1px solid var(--ink); border-radius: var(--radius-sm); box-shadow: 5px 5px 0 var(--ink); transform: rotate(-2deg); }
.failure-note span { color: var(--marker); font-size: 9px; font-weight: 600; letter-spacing: .1em; }
.failure-note p { margin-top: 5px; font-size: 11px; line-height: 1.4; }

.finish-line { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 90px; border-top: 1px solid rgb(255 255 255 / 30%); border-bottom: 1px solid rgb(255 255 255 / 30%); }
.finish-line > div { display: flex; flex-direction: column; min-height: 120px; padding: 24px; border-right: 1px solid rgb(255 255 255 / 30%); }
.finish-line > div:last-child { border-right: 0; }
.finish-line span { color: rgb(255 255 255 / 78%); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.finish-line strong { margin-top: auto; font-family: var(--font-display); font-size: 25px; }

.site-footer { padding: 52px 0; color: var(--paper); background: var(--ink); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: end; }
.footer-inner > div { display: flex; gap: 14px; align-items: center; }
.footer-inner p { color: rgb(255 255 255 / 52%); font-size: 11px; line-height: 1.5; }
.footer-inner > p { text-align: center; }
.footer-inner > a { display: flex; gap: 20px; align-items: center; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 12px; }

@media (max-width: 1100px) {
  :root { --header-height: 68px; }
  .shell, .header-inner { width: min(calc(100% - 40px), var(--shell)); }
  .header-inner { grid-template-columns: 180px 1fr auto; }
  .site-nav { gap: 20px; }
  .hero-grid { grid-template-columns: 1fr .78fr; min-height: 560px; }
  .hero h1 { font-size: clamp(52px, 6.8vw, 74px); }
  .hero-map { min-height: 470px; }
  .hero-number { font-size: 190px; }
  .brief-grid { gap: 50px; }
  .week-rhythm { grid-template-columns: repeat(4, 1fr); }
  .week-rhythm li:nth-child(4) { border-right: 0; }
  .ai-stages { grid-template-columns: repeat(3, 1fr); }
  .checkpoint-track { grid-template-columns: repeat(3, 1fr); gap: 52px 0; }
  .checkpoint-track::before { display: none; }
  .final-shell { gap: 36px; }
}

@media (max-width: 820px) {
  :root { --header-height: 62px; }
  .section { padding-block: 88px; }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .brand-copy { display: none; }
  .print-button { margin-right: 12px; }
  .menu-button { position: relative; z-index: 102; display: grid; place-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 50%; cursor: pointer; }
  .menu-button > span:not(.sr-only) { display: block; width: 17px; height: 1.5px; margin: 2px 0; background: var(--ink); transition: transform 160ms ease; }
  .menu-button[aria-expanded="true"] > span:first-child { transform: translateY(2.7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-2.7px) rotate(-45deg); }
  .site-nav { position: fixed; z-index: 101; top: var(--header-height); right: 0; left: 0; display: grid; gap: 0; padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--ink); box-shadow: var(--shadow-small); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity 150ms ease, transform 150ms ease; }
  .site-nav[data-open="true"] { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav a { min-height: 46px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .hero { padding-top: 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-copy { position: relative; z-index: 2; }
  .hero h1 { max-width: 720px; font-size: clamp(50px, 10.5vw, 78px); }
  .hero-map { min-height: 420px; width: min(100%, 560px); margin-inline: auto; }
  .hero-map::before { inset: 8px 55px; }
  .route-line { inset: -18px 30px; width: calc(100% - 60px); height: calc(100% + 36px); }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
  .stat-strip > div:first-child, .stat-strip > div { padding: 20px; }
  .section-heading, .brief-grid, .final-shell { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .section-heading > *, .route-controls { min-width: 0; }
  .section-heading { margin-bottom: 48px; }
  .brief-grid { gap: 38px; }
  .diagnostic-card { grid-template-columns: 90px 1fr; }
  .diagnostic-card .text-link { grid-column: 2; width: max-content; }
  .diagnostic-number { font-size: 64px; }
  .day-clock { grid-template-columns: repeat(5, 1fr); min-height: 190px; }
  .clock-segment { padding: 18px 10px; }
  .clock-segment strong { font-size: 27px; }
  .clock-segment span { font-size: 8px; }
  .clock-center { width: 110px; height: 110px; }
  .phase-nav { top: calc(var(--header-height) + 8px); display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .phase-nav a { flex: 0 0 132px; scroll-snap-align: start; }
  .phase-header { grid-template-columns: 68px 1fr; }
  .phase-hours { grid-column: 2; width: max-content; }
  .phase-number { font-size: 50px; }
  .week-card summary { grid-template-columns: 45px 1fr 26px; gap: 12px; }
  .week-chip { display: none; }
  .week-body { grid-template-columns: 1fr; }
  .week-body > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .week-body > div:last-child { border-bottom: 0; }
  .ai-role-grid { grid-template-columns: 1fr; gap: 18px; }
  .ai-rule { flex-direction: row; gap: 16px; min-height: 70px; }
  .ai-rule p { margin-top: 0; text-align: left; }
  .codex-role, .claude-role { transform: none; }
  .ai-bottom-grid, .review-grid, .access-ladder { grid-template-columns: minmax(0, 1fr); }
  .ai-bottom-grid > *, .review-grid > *, .access-ladder > * { min-width: 0; }
  .checkpoint-track { grid-template-columns: 1fr 1fr; }
  .access-ladder { gap: 36px; }
  .system-map { width: min(100%, 650px); margin-inline: auto; }
  .finish-line { grid-template-columns: 1fr 1fr; }
  .finish-line > div:nth-child(2) { border-right: 0; }
  .finish-line > div:nth-child(-n+2) { border-bottom: 1px solid rgb(255 255 255 / 30%); }
}

@media (max-width: 560px) {
  .shell, .header-inner { width: min(calc(100% - 28px), var(--shell)); }
  .section { padding-block: 72px; }
  .print-button { min-width: 44px; width: 44px; padding: 0; font-size: 0; }
  .print-button svg { width: 18px; }
  .hero { padding-top: 54px; }
  .hero h1 { font-size: clamp(45px, 14.3vw, 64px); line-height: .99; }
  .hero-lede { font-size: 16px; }
  .button { width: 100%; }
  .hero-map { min-height: 340px; }
  .hero-map::before { inset: 5px 20px; }
  .hero-map::after { top: 25px; right: 35px; width: 48px; height: 48px; }
  .hero-number { font-size: 145px; }
  .route-line { inset: -28px 5px; width: calc(100% - 10px); height: calc(100% + 56px); }
  .map-label { font-size: 8px; }
  .map-label-start { top: 46px; }
  .map-label-data { top: 53px; }
  .map-label-api { top: 114px; }
  .map-label-infra { bottom: 95px; }
  .map-label-ship { bottom: 57px; }
  .map-note { right: 30px; bottom: 10px; max-width: 170px; font-size: 10px; }
  .stat-strip strong { font-size: 30px; }
  .stat-strip span { font-size: 10px; }
  .ticker-track { justify-content: flex-start; }
  .section-heading h2, .brief h2, .final h2 { font-size: clamp(39px, 12vw, 54px); }
  .section-heading > p, .route-controls > p, .section-lede { font-size: 15px; }
  .outcome-card, .rubric-card, .mentor-card, .security-card { padding: 24px; }
  .diagnostic-card { grid-template-columns: 1fr; padding: 26px; }
  .diagnostic-card .text-link { grid-column: 1; }
  .scope-note > span { font-size: 10px; }
  .day-clock { grid-template-columns: 1fr; min-height: 0; }
  .clock-center { position: relative; top: auto; left: auto; width: 100%; height: 100px; border: 0; border-radius: 0; transform: none; }
  .clock-segment { min-height: 80px; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 15%); }
  .clock-segment strong { font-size: 25px; }
  .week-rhythm { grid-template-columns: 1fr 1fr; }
  .week-rhythm li:nth-child(2n) { border-right: 0; }
  .week-rhythm li:nth-child(4) { border-right: 0; }
  .week-rhythm li:last-child { grid-column: 1 / -1; }
  .route-heading { margin-bottom: 30px; }
  .phase-nav { margin-bottom: 50px; }
  .phase { margin-bottom: 80px; }
  .phase-header { grid-template-columns: 50px 1fr; gap: 12px; }
  .phase-number { font-size: 40px; }
  .phase-header h3 { font-size: 25px; }
  .weeks-list { padding-left: 24px; }
  .weeks-list::before { left: 3px; }
  .week-card::before { left: -27px; }
  .week-card summary { grid-template-columns: 34px 1fr 22px; min-height: 80px; padding: 12px 10px; }
  .week-title strong { font-size: 17px; }
  .week-body > div { padding: 18px; }
  .ai-role { padding: 28px 24px; }
  .ai-stages { grid-template-columns: 1fr 1fr; }
  .prompt-card pre { padding: 20px; font-size: 11px; }
  .checkpoint-track { grid-template-columns: 1fr; gap: 34px; }
  .checkpoint-track article { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 20px; text-align: left; }
  .checkpoint-track article > span { margin: 0; }
  .checkpoint-track article > div { margin-top: 0; }
  .rubric-list { grid-template-columns: 1fr; }
  .access-ladder { margin-top: 72px; padding-top: 60px; }
  .access-ladder li div { display: block; }
  .access-ladder li small { display: block; margin-top: 2px; }
  .final-list { grid-template-columns: 1fr; }
  .system-map { min-height: 720px; }
  .system-map::before, .system-map > svg, .system-arrow { display: none; }
  .system-node { position: relative; top: auto; right: auto; bottom: auto; left: auto; width: calc(50% - 8px); min-height: 80px; margin-bottom: 12px; transform: none; box-shadow: 3px 3px 0 var(--ink); }
  .node-client, .node-api, .node-app { width: 100%; }
  .node-db, .node-cache, .node-bus, .node-worker { display: inline-flex; vertical-align: top; }
  .node-db, .node-bus { margin-right: 10px; }
  .failure-note { right: 0; bottom: 0; width: 100%; transform: none; }
  .finish-line > div { min-height: 100px; padding: 18px; }
  .finish-line strong { font-size: 21px; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner > p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  :root { --paper: #fff; --surface: #fff; }
  @page { size: A4; margin: 14mm; }
  body { color: #111; background: #fff; font-size: 10pt; }
  .site-header, .scroll-progress, .stack-ticker, .hero-map, .hero-actions, .phase-nav, .expand-button, .ai-rule, .system-map, .site-footer { display: none !important; }
  .shell { width: 100%; }
  .section, .hero { padding: 18mm 0 0; }
  .hero-grid, .section-heading, .brief-grid, .final-shell { display: block; min-height: 0; }
  .hero h1 { font-size: 34pt; }
  .stat-strip, .week-rhythm, .ai-stages, .checkpoint-track, .finish-line { break-inside: avoid; }
  .phase, .week-card, .review-grid > *, .diagnostic-card { break-inside: avoid; }
  .week-card { display: block; margin: 0 0 5mm; border: 1px solid #bbb; background: #fff; }
  .week-card > summary { list-style: none; }
  .week-card:not([open]) > :not(summary) { display: block !important; }
  .week-toggle { display: none; }
  .week-body { display: grid !important; }
  .ai-section, .final { color: #111; background: #fff; }
  .ai-section .section-heading > p, .final-copy > p { color: #444; }
  a { text-decoration: none; }
}
