@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

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

:root {
  --ink: #0a0a08;
  --cream: #f5f0e8;
  --red: #c8182a;
  --red-dark: #8b0f1c;
  --gold: #c9920a;
  --mid: #4a4a44;
  --border: #0a0a08;
  --ff-display: 'Instrument Serif', 'EB Garamond', Georgia, serif;
  --ff-body: 'Raleway', Georgia, serif;
  --ff-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Phase colours */
  --ph1: #c8182a;
  --ph2: #c9920a;
  --ph3: #0a5e3a;
  --ph4: #1a3a6b;

  /* Pillar accents */
  --p1: #c8182a;
  --p2: #0a5e3a;
  --p3: #1a3a6b;
  --p4: #8b6914;
}

a {
  text-decoration: none;
  color: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  text-align: justify;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.55;
}

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 500;
  height: 55px;
  background: var(--ink);
  border-bottom: 3px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
}

.nav-top-row button {
  display: none;
}

.nav-top-row a span {
  padding: 0;
}

.nav-logo {
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}

.nav-logo span {
  color: var(--red);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

nav ul a {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--red);
}

.nav-cta {
  background: var(--red) !important;
  color: var(--cream) !important;
  padding: 8px 20px;
  letter-spacing: 0.12em !important;
  opacity: 1 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
}

/* ── TICKER ──────────────────────────────────────────────────── */
.hero-ticker {
  background: var(--red);
  color: var(--cream);
  padding: 8px 3rem;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-block;
  animation: ticker 50s linear infinite;
}

@keyframes ticker {
  from {
    transform: translateX(100vw);
  }

  to {
    transform: translateX(-100%);
  }
}

.ticker-sep {
  margin: 0 2rem;
  opacity: 0.5;
}

/* ── HERO ────────────────────────────────────────────────────── */
.roadmap-hero {
  background: var(--ink);
  color: var(--cream);
  padding: 3.5rem 8rem 5rem;
  border-bottom: 3px solid var(--red);
  position: relative;
  overflow: hidden;
}

.roadmap-hero::before {
  content: 'ROADMAP';
  position: absolute;
  font-family: var(--ff-display);
  font-size: 19vw;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.025);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.03em;
}

.rh-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  display: block;
}

.rh-title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.rh-title em {
  font-style: italic;
  color: var(--red);
}

.rh-sub {
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.6);
  max-width: 58ch;
  line-height: 1.65;
  margin-bottom: 3rem;
}

/* Phase summary bar */
.phase-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
}

.psb-item {
  background: var(--ink);
  padding: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: block;
  border-top: 3px solid transparent;
}

.psb-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.psb-item[data-phase="1"] {
  border-top-color: var(--ph1);
}

.psb-item[data-phase="2"] {
  border-top-color: var(--ph2);
}

.psb-item[data-phase="3"] {
  border-top-color: var(--ph3);
}

.psb-item[data-phase="4"] {
  border-top-color: var(--ph4);
}

.psb-phase {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

.psb-item[data-phase="1"] .psb-phase {
  color: var(--ph1);
}

.psb-item[data-phase="2"] .psb-phase {
  color: var(--ph2);
}

.psb-item[data-phase="3"] .psb-phase {
  color: #4a9d6f;
}

.psb-item[data-phase="4"] .psb-phase {
  color: #4a90d9;
}

.psb-name {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.psb-years {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.35);
  letter-spacing: 0.1em;
}

/* ── CONTROLS BAR ────────────────────────────────────────────── */
.controls-bar {
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
  padding: 0 3rem;
  display: none;
  align-items: center;
  gap: 1.5rem;
  height: 52px;
  position: sticky;
  top: 56px;
  z-index: 100;
}

.ctrl-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-right: 0.5rem;
}

.ctrl-btn {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid rgba(10, 10, 8, 0.25);
  background: transparent;
  color: var(--mid);
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.ctrl-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.ctrl-btn.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.ctrl-divider {
  height: 28px;
  width: 1px;
  background: rgba(10, 10, 8, 0.15);
}

.ctrl-search-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ctrl-search {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  border: 1.5px solid rgba(10, 10, 8, 0.2);
  background: transparent;
  color: var(--ink);
  padding: 5px 12px;
  outline: none;
  width: 200px;
  transition: border-color 0.2s;
}

.ctrl-search:focus {
  border-color: var(--ink);
}

.ctrl-search::placeholder {
  color: rgba(10, 10, 8, 0.3);
}

.ctrl-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--mid);
}

.ctrl-progress-bar {
  width: 80px;
  height: 4px;
  background: rgba(10, 10, 8, 0.1);
}

.ctrl-progress-fill {
  height: 4px;
  background: var(--red);
  width: 0%;
  transition: width 0.4s ease;
}

/* ── OVERVIEW SECTION ────────────────────────────────────────── */
.overview-section {
  padding: 5rem 3rem;
  border-bottom: 2px solid var(--ink);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
}

.ov-divider {
  background: var(--ink);
}

.ov-left {
  padding-right: 3rem;
}

.ov-right {
  padding-left: 3rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--ink);
}

.section-number {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--red);
}

h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
}

.ov-quote {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.4;
  border-left: 4px solid var(--red);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.ov-body {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.7;
}

.ov-body p {
  margin-bottom: 1rem;
}

/* Mini timeline */
.mini-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mt-item {
  display: grid;
  grid-template-columns: 90px 2px 1fr;
  gap: 0 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px dashed rgba(10, 10, 8, 0.12);
  cursor: pointer;
  transition: background 0.15s;
}

.mt-item:last-child {
  border-bottom: none;
}

.mt-item:hover {
  background: rgba(10, 10, 8, 0.03);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.mt-year {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding-top: 2px;
}

.mt-line {
  align-self: stretch;
  position: relative;
}

.mt-line::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-color, var(--red));
}

.mt-line::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 0;
  bottom: 0;
  width: 2px;
  background: rgba(10, 10, 8, 0.1);
}

.mt-item:last-child .mt-line::after {
  display: none;
}

.mt-phase-tag {
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 0.4rem;
  color: var(--cream);
}

.mt-heading {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.mt-desc {
  font-size: 0.8rem;
  color: var(--mid);
  line-height: 1.5;
}

/* ── TIMELINE STRIP ──────────────────────────────────────────── */
.timeline-strip {
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  padding: 3rem;
  overflow-x: auto;
  position: relative;
}

.ts-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2rem;
  display: block;
}

.ts-header {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
}

.ts-header em {
  font-style: italic;
  color: var(--red);
}

.timeline-track {
  min-width: 900px;
  position: relative;
  padding-bottom: 2rem;
}

.tl-axis {
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  margin: 2rem 0;
}

.tl-axis::before,
.tl-axis::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tl-axis::before {
  left: 0;
  background: var(--red);
}

.tl-axis::after {
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.3);
}

.tl-year-markers {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: -3.2rem;
  padding: 0 0 1rem;
}

.tl-ym {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(245, 240, 232, 0.4);
}

.tl-events {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
}

.tl-event {
  flex: 0 0 auto;
  width: 160px;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s;
}

.tl-event:hover {
  transform: translateY(-3px);
}

.tl-event-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  border: 2px solid;
}

.tl-event-line {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto;
}

.tl-event-content {
  text-align: center;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.tl-event-content:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tl-event-year {
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(245, 240, 232, 0.4);
  margin-bottom: 3px;
}

.tl-event-title {
  font-family: var(--ff-display);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.2;
}

.tl-bands {
  display: flex;
  height: 6px;
  margin-top: 1.5rem;
  gap: 2px;
  border-radius: 0;
}

.tl-band {
  flex: 1;
  height: 6px;
}

/* ── DEPENDENCY MAP ──────────────────────────────────────────── */
.dep-section {
  padding: 4rem 3rem;
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
}

.dep-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-top: 2rem;
}

.dep-legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(10, 10, 8, 0.08);
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.dep-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dep-canvas-wrap {
  position: relative;
}

svg.dep-svg {
  width: 100%;
  overflow: visible;
}

/* ── ACCOUNTABILITY TRACKER ──────────────────────────────────── */
.tracker-section {
  padding: 4rem 3rem;
  border-bottom: 2px solid var(--ink);
  background: rgba(10, 10, 8, 0.02);
}

.tracker-header {
  margin-bottom: 2.5rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.tracker-table {
  width: 100%;
  border-collapse: collapse;
}

.tracker-table th {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
  color: var(--mid);
  cursor: pointer;
  user-select: none;
}

.tracker-table th:hover {
  color: var(--ink);
}

.tracker-table th .sort-arrow {
  margin-left: 4px;
  opacity: 0.4;
}

.tracker-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(10, 10, 8, 0.07);
  font-size: 0.88rem;
  vertical-align: middle;
}

.tracker-table tr:hover td {
  background: rgba(10, 10, 8, 0.03);
}

.td-mono {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.td-title {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: 400;
}

.progress-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-mini-bar {
  flex: 1;
  height: 4px;
  background: rgba(10, 10, 8, 0.08);
  max-width: 80px;
}

.progress-mini-fill {
  height: 4px;
  background: var(--bar-color, var(--red));
  transition: width 0.8s ease 0.2s;
}

.progress-pct {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--mid);
  white-space: nowrap;
}

.status-chip {
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1.5px solid;
  white-space: nowrap;
}

.pillar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── PHASE NAVIGATION ────────────────────────────────────────── */
.phase-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
  position: sticky;
  top: 56px;
  z-index: 90;
}

.phase-nav-btn {
  border: none;
  background: var(--cream);
  cursor: pointer;
  padding: 1.5rem 2rem;
  text-align: left;
  border-right: 1px solid rgba(10, 10, 8, 0.1);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.phase-nav-btn:last-child {
  border-right: none;
}

.phase-nav-btn:hover {
  background: rgba(10, 10, 8, 0.04);
}

.phase-nav-btn.active {
  border-bottom-color: var(--phase-color);
  background: rgba(10, 10, 8, 0.03);
}

.pnb-num {
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}

.pnb-name {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.15;
  display: block;
}

.pnb-years {
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 300;
  color: var(--mid);
  letter-spacing: 0.1em;
  display: block;
  margin-top: 0.2rem;
}

.pnb-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--phase-color);
  transition: width 0.5s ease;
}

/* ── PHASE SECTIONS ──────────────────────────────────────────── */
.phase-section {
  border-bottom: 2px solid var(--ink);
}

.phase-header {
  padding: 4rem 3rem 3rem;
  display: grid;
  grid-template-columns: 280px 1px 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(10, 10, 8, 0.1);
}

.ph-left {
  padding-right: 3rem;
}

.ph-right {
  padding-left: 3rem;
}

.ph-divider {
  background: var(--ink);
}

.phase-tag {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: inline-block;
  padding: 5px 12px;
  color: var(--cream);
  margin-bottom: 1rem;
}

.phase-big-num {
  font-family: var(--ff-display);
  font-size: 9rem;
  font-weight: 400;
  font-style: italic;
  line-height: 0.8;
  opacity: 0.05;
  display: block;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.phase-year-range {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--mid);
  display: block;
  margin-bottom: 0.5rem;
}

.phase-status-badge {
  font-family: var(--ff-mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1.5px solid;
  display: inline-block;
  margin-bottom: 1rem;
}

.phase-milestone-count {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--mid);
  letter-spacing: 0.12em;
}

.phase-h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.phase-h2 em {
  font-style: italic;
}

.phase-summary {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--mid);
  line-height: 1.65;
  max-width: 58ch;
  margin-bottom: 2rem;
}

.phase-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pk {
  border-left: 3px solid;
  padding-left: 1rem;
}

.pk strong {
  font-family: var(--ff-display);
  font-size: 1.9rem;
  font-weight: 400;
  font-style: italic;
  display: block;
  line-height: 1;
}

.pk span {
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  display: block;
  margin-top: 3px;
}

/* ── MILESTONES GRID ─────────────────────────────────────────── */
.milestones-area {
  padding: 3rem;
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(10, 10, 8, 0.06);
}

.milestone-card {
  background: var(--cream);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.15s;
  border-bottom: 3px solid transparent;
}

.milestone-card:hover {
  background: #ede8e0;
}

.milestone-card.expanded {
  background: var(--ink);
  color: var(--cream);
  grid-column: span 3;
}

.mc-header {
  padding: 1.75rem;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.mc-left {
  flex: 1;
}

.mc-pillar {
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 0.5rem;
}

.mc-title {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.milestone-card.expanded .mc-title {
  color: var(--cream);
}

.mc-date {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--mid);
}

.milestone-card.expanded .mc-date {
  color: rgba(245, 240, 232, 0.5);
}

.mc-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  border: 2px solid;
}

.mc-expand-icon {
  font-family: var(--ff-mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--mid);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.milestone-card.expanded .mc-expand-icon {
  transform: rotate(45deg);
  color: var(--red);
}

.mc-body {
  display: none;
  padding: 0 1.75rem 1.75rem;
  border-top: 1px solid rgba(245, 240, 232, 0.08);
}

.milestone-card.expanded .mc-body {
  display: block;
}

.mc-body-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.mc-description {
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.75);
  line-height: 1.65;
}

.mc-targets h4 {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.mc-target-item {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.65);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
  line-height: 1.45;
}

.mc-target-item:last-child {
  border-bottom: none;
}

.mc-target-item::before {
  content: '→ ';
  color: var(--red);
  font-family: var(--ff-mono);
  font-size: 10px;
}

.mc-meta h4 {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  margin-bottom: 0.75rem;
}

.mc-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
}

.mc-meta-row:last-child {
  border-bottom: none;
}

.mc-meta-key {
  font-family: var(--ff-mono);
  font-size: 8.5px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 232, 0.4);
}

.mc-meta-val {
  font-family: var(--ff-mono);
  font-size: 8.5px;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.8);
  text-align: right;
}

/* Status colours */
.status-done {
  --s: #2a9d5c;
}

.status-active {
  --s: var(--gold);
}

.status-upcoming {
  --s: rgba(10, 10, 8, 0.25);
}

.status-planned {
  --s: rgba(10, 10, 8, 0.12);
}

/* ── CRITICAL PATH ───────────────────────────────────────────── */
.critical-section {
  padding: 4rem 3rem;
  border-bottom: 2px solid var(--ink);
}

.cp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--ink);
  margin-top: 2rem;
}

.cp-item {
  background: var(--cream);
  padding: 2rem 1.5rem;
  position: relative;
}

.cp-item::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-mono);
  font-size: 16px;
  color: rgba(10, 10, 8, 0.25);
  z-index: 1;
}

.cp-item:last-child::after {
  display: none;
}

.cp-num {
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
  display: block;
}

.cp-title {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.cp-desc {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--mid);
  line-height: 1.5;
}

.cp-blocker {
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(10, 10, 8, 0.12);
}

/* ── HOW TO EXTEND ───────────────────────────────────────────── */
.extend-section {
  padding: 4rem 3rem;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 2px solid var(--red);
}

.extend-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  margin-top: 2rem;
}

.extend-divider {
  background: rgba(255, 255, 255, 0.1);
}

.extend-left {
  padding-right: 3rem;
}

.extend-right {
  padding-left: 3rem;
}

.extend-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: start;
}

.extend-step-num {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}

.extend-step-body h4 {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.extend-step-body p {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.5;
}

.code-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.65);
  overflow-x: auto;
  margin-bottom: 1rem;
}

.code-block .ck {
  color: #4a90d9;
}

.code-block .cv {
  color: var(--gold);
}

.code-block .cs {
  color: #4a9d6f;
}

.code-block .cc {
  color: rgba(245, 240, 232, 0.3);
}

/* ── CTA ─────────────────────────────────────────────────────── */
.cta-section {
  padding: 6rem 3rem;
  background: var(--red);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: 'ACT';
  position: absolute;
  font-family: var(--ff-display);
  font-size: 22vw;
  font-weight: 400;
  font-style: italic;
  color: rgba(0, 0, 0, 0.06);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 1rem;
  position: relative;
}

.cta-section h2 em {
  font-style: italic;
}

.cta-section p {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  max-width: 45ch;
  margin: 0 auto 2.5rem;
  position: relative;
}

.btn-cta {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 13px 28px;
  text-decoration: none;
  border: 2px solid;
  margin: 0 0.5rem;
}

.btn-cta.solid {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.btn-cta.outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-cta.solid:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  border-top: 3px solid var(--red);
}

.footer-brand {
  padding-right: 7rem;
}

.footer-brand h3 {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.ft-sub {
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.3);
  margin-bottom: 1.25rem;
  display: block;
}

.footer-brand p {
  font-family: var(--ff-body);
  font-size: 0.84rem;
  text-align: justify;
  color: rgba(244, 239, 230, 0.4);
  line-height: 1.65;
  letter-spacing: 0.03em;
}

.ft-divider {
  height: 1px;
  background: var(--red-dark);
  margin: 1.5rem 0;
}

.ft-tricolor {
  height: 2px;
  width: 48px;
  background: linear-gradient(to right, #FF6B00 33%, #fff 33% 66%, #138808 66%);
}

.footer-col h4 {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(244, 239, 230, 0.45);
  padding: 5px 0;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: color 0.2s;
}

.footer-col ul li:hover {
  color: var(--cream);
}

.footer-bottom {
  background: #050503;
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom span {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: rgba(244, 239, 230, 0.22);
}

/* ── BTT & TOC ───────────────────────────────────────────────── */
#btt {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  padding: 10px 16px;
  border: 2px solid var(--red);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#btt.show {
  opacity: 1;
  pointer-events: all;
}

#btt:hover {
  background: var(--red);
}

.toc-bar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 8px;
  background: rgba(10, 10, 8, 0.88);
  border-right: 3px solid var(--red);
}

.toc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: block;
  text-decoration: none;
}

.toc-dot:hover,
.toc-dot.active {
  background: var(--red);
  transform: scale(1.4);
}

/* ── REVEAL ANIMATIONS ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── SEARCH HIGHLIGHT ────────────────────────────────────────── */
.search-highlight {
  background: rgba(201, 146, 10, 0.35);
  outline: 2px solid var(--gold);
}

.search-hidden {
  opacity: 0.25;
  pointer-events: none;
}

/* ── TOOLTIP ─────────────────────────────────────────────────── */
.tooltip {
  position: fixed;
  z-index: 500;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  border: 1px solid var(--red);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  max-width: 200px;
  line-height: 1.5;
}

.tooltip.show {
  opacity: 1;
}

/* Pillar colours on mc-pillar tags */
.mc-p1 {
  background: rgba(200, 24, 42, 0.12);
  color: var(--p1);
  border: 1px solid var(--p1);
}

.mc-p2 {
  background: rgba(10, 94, 58, 0.08);
  color: var(--p2);
  border: 1px solid var(--p2);
}

.mc-p3 {
  background: rgba(26, 58, 107, 0.08);
  color: var(--p3);
  border: 1px solid var(--p3);
}

.mc-p4 {
  background: rgba(139, 105, 20, 0.08);
  color: var(--p4);
  border: 1px solid var(--p4);
}

.mc-pa {
  background: rgba(10, 10, 8, 0.06);
  color: var(--mid);
  border: 1px solid rgba(10, 10, 8, 0.2);
}

/* Status badge colours */
.s-active {
  border-color: var(--gold);
  color: var(--gold);
}

.s-done {
  border-color: #2a9d5c;
  color: #2a9d5c;
}

.s-upcoming {
  border-color: var(--p3);
  color: var(--p3);
}

.s-planned {
  border-color: var(--mid);
  color: var(--mid);
}

/* Filter hidden states */
.phase-section.filter-hidden {
  display: none;
}

.milestone-card.filter-hidden {
  display: none;
}

/* Responsive table scroll */
.table-scroll {
  overflow-x: auto;
}


/* ═══════════════════════════════════════════════════════════════
   TABLET  ≤ 1024px
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  nav {
    padding: 0 1.75rem;
  }

  nav ul {
    gap: 1.75rem;
  }

  .roadmap-hero {
    padding: 4rem 2.5rem 3.5rem;
  }

  .rh-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
  }

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

  .controls-bar {
    padding: 0 1.75rem;
    height: auto;
    min-height: 52px;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .ctrl-search-wrap {
    margin-left: 0;
    width: 100%;
  }

  .ctrl-search {
    width: 100%;
  }

  .ctrl-progress-wrap {
    margin-left: auto;
  }

  .overview-section {
    padding: 3.5rem 2.5rem;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .ov-divider {
    display: none;
  }

  .ov-left {
    padding-right: 0;
  }

  .ov-right {
    padding-left: 0;
    padding-top: 2rem;
    border-top: 2px solid var(--ink);
    margin-top: 2.5rem;
  }

  .phase-nav {
    grid-template-columns: repeat(2, 1fr);
    position: static;
  }

  .phase-nav-btn {
    padding: 1.25rem 1.5rem;
  }

  .phase-nav-btn:nth-child(2) {
    border-right: none;
  }

  .phase-nav-btn:nth-child(1),
  .phase-nav-btn:nth-child(2) {
    border-bottom: 1px solid rgba(10, 10, 8, 0.1);
  }

  .phase-header {
    padding: 3rem 2.5rem 2.5rem;
    grid-template-columns: 1fr;
  }

  .ph-divider {
    display: none;
  }

  .ph-left {
    padding-right: 0;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .ph-right {
    padding-left: 0;
  }

  .milestones-area {
    padding: 2rem 2.5rem;
  }

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

  .milestone-card.expanded {
    grid-column: span 2;
  }

  .mc-body-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .mc-description {
    grid-column: 1 / -1;
  }

  .tracker-section {
    padding: 3rem 2.5rem;
  }

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

  .cp-item::after {
    display: none;
  }

  .cp-item {
    border-bottom: 2px solid var(--ink);
  }

  .cp-item:nth-child(3),
  .cp-item:nth-child(4) {
    border-bottom: none;
  }

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

  .extend-section {
    padding: 3rem 2.5rem;
  }

  .extend-grid {
    grid-template-columns: 1fr;
  }

  .extend-divider {
    display: none;
  }

  .extend-right {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    margin-top: 2rem;
  }

  footer {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 3rem 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .toc-bar {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE  ≤ 640px
═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  body {
    font-size: 16px;
    overflow-x: hidden;
  }

  .toc-bar {
    display: none;
  }

  #btt {
    bottom: 1rem;
    right: 1rem;
    font-size: 8px;
    padding: 8px 13px;
    border-width: 1.5px;
  }

  /* NAV */
  nav {
    height: auto;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    position: sticky;
    top: 0;
    z-index: 200;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 1.25rem;
    font-size: 11px;
    letter-spacing: 0.2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex: 1;
  }

  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: none;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--cream);
    cursor: pointer;
    font-size: 20px;
    flex-shrink: 0;
  }

  .nav-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-top-row button {
    display: inline;
  }

  .nav-top-row a span {
    padding: 10px;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease;
    padding: 0;
    gap: 0;
  }

  nav ul.nav-open {
    max-height: 400px;
  }

  nav ul li {
    flex-shrink: 0;
    width: 100%;
  }

  nav ul a {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 1rem;
    font-size: 10px;
    letter-spacing: 0.15em;
    opacity: 1;
    color: rgba(245, 240, 232, 0.65);
    border-right: none;
    background: #191919 !important;
    color: #fff !important;
    height: 46px !important;
    justify-content: center;
    font-size: 10px !important;
    border-bottom: none !important;
    margin: 0.5rem 1.25rem 0;
    width: calc(100% - 2.5rem);
  }

  nav ul a:hover {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.04);
  }

  nav ul li:last-child a {
    border-bottom: none;
  }

  .nav-cta {
    background: var(--red) !important;
    color: var(--cream) !important;
    opacity: 1 !important;
    padding: 0 1.25rem !important;
    height: 46px !important;
    justify-content: center;
    font-size: 10px !important;
    border-bottom: none !important;
    margin: 0.5rem 1.25rem 0.75rem;
    width: calc(100% - 2.5rem);
  }

  /* TICKER */
  .hero-ticker {
    padding: 7px 0;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .ticker-inner {
    animation-duration: 36s;
  }

  .ticker-sep {
    margin: 0 1.25rem;
  }

  /* HERO */
  .roadmap-hero {
    padding: 2.5rem 1.25rem 2rem;
  }

  .roadmap-hero::before {
    font-size: 38vw;
  }

  .rh-label {
    font-size: 8px;
    letter-spacing: 0.22em;
    margin-bottom: 1rem;
  }

  .rh-title {
    font-size: clamp(2.6rem, 13vw, 4rem);
    line-height: 0.88;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
  }

  .rh-sub {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 100%;
    color: rgba(245, 240, 232, 0.58);
  }

  /* PHASE SUMMARY BAR */
  .phase-summary-bar {
    grid-template-columns: 1fr;
    gap: 2px;
    margin-top: 2rem;
  }

  .psb-item {
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top-width: 2px;
  }

  .psb-item>* {
    display: block;
  }

  .psb-phase {
    font-size: 7.5px;
    letter-spacing: 0.2em;
    margin-bottom: 0;
    flex-shrink: 0;
    width: 90px;
  }

  .psb-name {
    font-size: 0.88rem;
    line-height: 1.15;
    flex: 1;
    margin-bottom: 0;
  }

  .psb-years {
    font-size: 7.5px;
    letter-spacing: 0.07em;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* CONTROLS */
  .controls-bar {
    position: static;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    height: auto;
    border-bottom: 2px solid var(--ink);
    background: var(--cream);
  }

  .ctrl-label {
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .ctrl-btn {
    font-size: 8.5px;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-width: 1.5px;
  }

  .ctrl-divider {
    display: none;
  }

  .ctrl-progress-wrap {
    width: 100%;
    order: 10;
    justify-content: flex-start;
    font-size: 8px;
    letter-spacing: 0.12em;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(10, 10, 8, 0.08);
    gap: 0.5rem;
  }

  .ctrl-progress-bar {
    width: 100px;
  }

  .ctrl-search-wrap {
    width: 100%;
    order: 11;
    margin-left: 0;
  }

  .ctrl-search {
    width: 100%;
    font-size: 9.5px;
    padding: 6px 10px;
  }

  /* OVERVIEW */
  .overview-section {
    padding: 2.5rem 1.25rem;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .ov-divider {
    display: none;
  }

  .ov-left {
    padding-right: 0;
  }

  .ov-right {
    padding-left: 0;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 2px solid var(--ink);
  }

  .section-header {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
  }

  .section-number {
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  h2 {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
  }

  .ov-quote {
    font-size: 1.05rem;
    line-height: 1.4;
    border-left-width: 3px;
    padding-left: 1rem;
    margin-bottom: 1.25rem;
  }

  .ov-body {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .ov-body p {
    margin-bottom: 0.85rem;
  }

  /* MINI TIMELINE */
  .mt-item {
    grid-template-columns: 68px 2px 1fr;
    gap: 0 0.75rem;
    padding: 1rem 0;
  }

  .mt-item:hover {
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .mt-year {
    font-size: 0.65rem;
  }

  .mt-phase-tag {
    font-size: 7px;
    letter-spacing: 0.15em;
    padding: 2px 6px;
    margin-bottom: 0.3rem;
  }

  .mt-heading {
    font-size: 0.875rem;
    margin-bottom: 0.15rem;
  }

  .mt-desc {
    font-size: 0.775rem;
    line-height: 1.5;
  }

  /* TIMELINE STRIP */
  .timeline-strip {
    padding: 2rem 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ts-label {
    font-size: 8.5px;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
  }

  .ts-header {
    font-size: clamp(1.2rem, 5.5vw, 1.8rem);
    margin-bottom: 1.5rem;
  }

  .timeline-track {
    min-width: 700px;
    padding-bottom: 0.5rem;
  }

  .tl-ym {
    font-size: 7.5px;
    letter-spacing: 0.08em;
  }

  .tl-event {
    width: 120px;
  }

  .tl-event-title {
    font-size: 0.72rem;
  }

  .tl-event-year {
    font-size: 7px;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
  }

  .tl-event-dot {
    width: 10px;
    height: 10px;
  }

  .tl-event-line {
    height: 18px;
  }

  .tl-bands {
    height: 5px;
    margin-top: 1rem;
  }

  /* PHASE NAV */
  .phase-nav {
    grid-template-columns: repeat(2, 1fr);
    position: static;
    border-bottom: 2px solid var(--ink);
  }

  .phase-nav-btn {
    padding: 0.85rem 1rem;
    border-right: 1px solid rgba(10, 10, 8, 0.1);
    border-bottom: 3px solid transparent;
  }

  .phase-nav-btn:nth-child(2) {
    border-right: none;
  }

  .phase-nav-btn:nth-child(1),
  .phase-nav-btn:nth-child(2) {
    border-bottom-color: inherit;
  }

  .phase-nav-btn:nth-child(3) {
    border-bottom: none;
  }

  .phase-nav-btn:nth-child(4) {
    border-right: none;
    border-bottom: none;
  }

  .pnb-num {
    font-size: 7.5px;
    letter-spacing: 0.18em;
    margin-bottom: 0.2rem;
  }

  .pnb-name {
    font-size: 0.85rem;
    line-height: 1.15;
  }

  .pnb-years {
    font-size: 7px;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
    display: none;
  }

  /* PHASE HEADERS */
  .phase-header {
    padding: 2rem 1.25rem;
    grid-template-columns: 1fr;
  }

  .ph-divider {
    display: none;
  }

  .ph-left {
    padding-right: 0;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
  }

  .ph-right {
    padding-left: 0;
  }

  .phase-tag {
    font-size: 8px;
    letter-spacing: 0.25em;
    padding: 3px 8px;
  }

  .phase-big-num {
    font-size: 4.5rem;
    line-height: 0.8;
    opacity: 0.05;
  }

  .phase-year-range {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .phase-status-badge {
    font-size: 7.5px;
    letter-spacing: 0.12em;
    padding: 3px 9px;
    border-width: 1px;
  }

  .phase-milestone-count {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .phase-h2 {
    font-size: clamp(1.7rem, 8.5vw, 2.6rem);
    line-height: 0.92;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
  }

  .phase-summary {
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .phase-kpis {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .pk {
    padding-left: 0.75rem;
    border-left-width: 2px;
  }

  .pk strong {
    font-size: 1.5rem;
  }

  .pk span {
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  /* MILESTONES */
  .milestones-area {
    padding: 1.25rem 1rem 2rem;
  }

  .milestones-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .milestone-card.expanded {
    grid-column: span 1;
  }

  .milestone-card {
    border-bottom-width: 2px;
  }

  .milestone-card:hover {
    background: #ede8e0;
  }

  .mc-header {
    padding: 1.25rem 1.1rem;
    gap: 0.75rem;
  }

  .mc-pillar {
    font-size: 7px;
    letter-spacing: 0.18em;
    padding: 2px 6px;
    margin-bottom: 0.35rem;
  }

  .mc-title {
    font-size: 0.92rem;
    line-height: 1.2;
    margin-bottom: 0.3rem;
  }

  .mc-date {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .mc-status {
    width: 9px;
    height: 9px;
    margin-top: 3px;
    border-width: 1.5px;
  }

  .mc-expand-icon {
    font-size: 16px;
    flex-shrink: 0;
  }

  .mc-body {
    padding: 0 1.1rem 1.25rem;
  }

  .mc-body-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
  }

  .mc-description {
    font-size: 0.83rem;
    line-height: 1.65;
  }

  .mc-targets h4 {
    font-size: 8px;
    letter-spacing: 0.18em;
    margin-bottom: 0.6rem;
  }

  .mc-target-item {
    font-size: 0.78rem;
    padding: 0.4rem 0;
    line-height: 1.4;
  }

  .mc-target-item::before {
    font-size: 9px;
  }

  .mc-meta h4 {
    font-size: 8px;
    letter-spacing: 0.18em;
    margin-bottom: 0.6rem;
  }

  .mc-meta-row {
    padding: 0.4rem 0;
  }

  .mc-meta-key,
  .mc-meta-val {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .milestone-card[style*="dashed"] .mc-header {
    padding: 1rem 1.1rem;
  }

  /* TRACKER */
  .tracker-section {
    padding: 2.5rem 1.25rem;
  }

  .tracker-header {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
  }

  .tracker-header>div:last-child {
    text-align: left;
  }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tracker-table {
    min-width: 600px;
  }

  .tracker-table th {
    font-size: 8px;
    letter-spacing: 0.15em;
    padding: 0.6rem 0.75rem;
    white-space: nowrap;
  }

  .tracker-table td {
    padding: 0.7rem 0.75rem;
    font-size: 0.82rem;
  }

  .td-mono {
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .td-title {
    font-size: 0.85rem;
  }

  .progress-mini-bar {
    max-width: 60px;
  }

  .progress-pct {
    font-size: 8px;
  }

  .status-chip {
    font-size: 7.5px;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-width: 1px;
  }

  .pillar-dot {
    width: 7px;
    height: 7px;
    margin-right: 4px;
  }

  /* CRITICAL PATH */
  .critical-section {
    padding: 2.5rem 1.25rem;
  }

  .critical-section>p {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }

  .cp-grid {
    grid-template-columns: 1fr;
    gap: 2px;
    background: var(--ink);
  }

  .cp-item {
    padding: 1.5rem 1.25rem;
    border-bottom: 2px solid var(--ink);
  }

  .cp-item:last-child {
    border-bottom: none;
  }

  .cp-item::after {
    display: none;
  }

  .cp-num {
    font-size: 7.5px;
    letter-spacing: 0.18em;
    margin-bottom: 0.4rem;
  }

  .cp-title {
    font-size: 0.92rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
  }

  .cp-desc {
    font-size: 0.8rem;
    line-height: 1.55;
  }

  .cp-blocker {
    font-size: 7.5px;
    letter-spacing: 0.08em;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
  }

  /* EXTEND */
  .extend-section {
    padding: 2.5rem 1.25rem;
  }

  .extend-section>p {
    font-size: 0.82rem;
    line-height: 1.65;
    margin-bottom: 0;
  }

  .extend-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 2rem;
  }

  .extend-divider {
    display: none;
  }

  .extend-right {
    padding-left: 0;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .extend-step {
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .extend-step-num {
    font-size: 2rem;
    width: 34px;
  }

  .extend-step-body h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }

  .extend-step-body p {
    font-size: 0.8rem;
    line-height: 1.55;
  }

  .code-block {
    font-size: 0.65rem;
    line-height: 1.65;
    padding: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.75rem;
  }

  /* CTA */
  .cta-section {
    padding: 4rem 1.25rem;
  }

  .cta-section::before {
    font-size: 34vw;
  }

  .cta-section h2 {
    font-size: clamp(1.8rem, 9vw, 3rem);
    margin-bottom: 1rem;
  }

  .cta-section p {
    font-size: 0.92rem;
    margin-bottom: 2rem;
    max-width: 100%;
  }

  .btn-cta {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0.4rem auto;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.15em;
    padding: 13px 20px;
  }

  /* FOOTER */
  footer {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem 3rem;
    border-top-width: 2px;
  }

  .footer-brand {
    grid-column: auto;
    padding-right: 0;
  }

  .footer-brand h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
  }

  .footer-brand p {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .ft-sub {
    font-size: 7.5px;
    letter-spacing: 0.18em;
  }

  .ft-divider {
    margin: 1.1rem 0;
  }

  .ft-tricolor {
    height: 2px;
    width: 38px;
  }

  .footer-col h4 {
    font-size: 9px;
    letter-spacing: 0.18em;
    margin-bottom: 0.85rem;
  }

  .footer-col ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.5rem;
  }

  .footer-col ul li {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    padding: 5px 0;
  }

  .footer-bottom {
    padding: 0.85rem 1.25rem;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }

  .footer-bottom span {
    font-size: 7.5px;
    letter-spacing: 0.1em;
  }

  /* REVEAL */
  .reveal {
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .search-highlight {
    outline-width: 1.5px;
  }

  .search-hidden {
    opacity: 0.2;
  }
}


@media (max-width: 380px) {

  .rh-title {
    font-size: clamp(2.2rem, 14vw, 3.2rem);
  }

  .roadmap-hero {
    padding: 2rem 1rem 1.75rem;
  }

  .psb-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
  }

  .psb-phase {
    width: auto;
  }

  .psb-name {
    font-size: 0.82rem;
  }

  .controls-bar {
    padding: 0.65rem 0.85rem;
  }

  .ctrl-btn {
    font-size: 8px;
    padding: 3px 8px;
  }

  .overview-section {
    padding: 2rem 1rem;
  }

  .milestones-area {
    padding: 1rem 0.85rem 1.75rem;
  }

  .mc-header {
    padding: 1rem 0.9rem;
  }

  .mc-body {
    padding: 0 0.9rem 1rem;
  }

  .phase-header {
    padding: 1.75rem 1rem;
  }

  .phase-kpis {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .pk strong {
    font-size: 1.25rem;
  }

  .tracker-section {
    padding: 2rem 1rem;
  }

  .critical-section {
    padding: 2rem 1rem;
  }

  .extend-section {
    padding: 2rem 1rem;
  }

  .phase-nav-btn {
    padding: 0.7rem 0.75rem;
  }

  .pnb-name {
    font-size: 0.78rem;
  }

  footer {
    padding: 2rem 1rem 2.5rem;
  }

  .footer-col ul {
    grid-template-columns: 1fr;
  }

  nav ul a {
    padding: 0 10px;
    font-size: 8px;
  }

  .nav-cta {
    padding: 0 12px !important;
  }
}
