:root {
  --bg: #f5f0e7;
  --paper: rgba(255, 249, 239, 0.72);
  --paper-strong: rgba(255, 249, 239, 0.92);
  --ink: #17241d;
  --muted: #526056;
  --line: rgba(23, 36, 29, 0.15);
  --gold: #d8843e;
  --gold-soft: rgba(216, 132, 62, 0.18);
  --forest: #35594a;
  --teal: #3f6f74;
  --berry: #6f4f59;
  --shadow: 0 24px 60px rgba(35, 44, 35, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 132, 62, 0.17), transparent 26%),
    radial-gradient(circle at top right, rgba(63, 111, 116, 0.16), transparent 28%),
    linear-gradient(180deg, #f7f2ea 0%, #f3ede3 52%, #ede5d8 100%);
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

body.page-ai {
  background:
    radial-gradient(circle at top left, rgba(74, 120, 160, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(53, 89, 74, 0.14), transparent 24%),
    linear-gradient(180deg, #eef3f4 0%, #e5ece9 48%, #e0e7e5 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(23, 36, 29, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 36, 29, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  pointer-events: none;
}

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

.page-shell {
  width: min(1460px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 0 28px;
  padding: 16px 20px;
  border: 1px solid rgba(23, 36, 29, 0.1);
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(35, 44, 35, 0.08);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.page-switch {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(23, 36, 29, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

.page-switch a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-switch a.is-active,
.page-switch a:hover {
  background: var(--ink);
  color: #f8f1e7;
}

.brand-mark,
.section-kicker,
.mini-label,
.node-tag,
.module-stage,
.ladder-level,
.path-card span,
.workflow-card span {
  font-family: "Menlo", "Monaco", "Courier New", monospace;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #f8f1e7;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.brand-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topnav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.topnav a:hover {
  background: rgba(23, 36, 29, 0.08);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.overview-band article,
.bridge-card,
.atlas-section,
.framework-section,
.workflow-section,
.modules-section,
.scenario-section,
.metrics-section,
.deliverables-section,
.decision-section,
.ladder-section,
.matrix-section,
.pitfall-section,
.path-section {
  border: 1px solid rgba(23, 36, 29, 0.1);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.atlas-section,
.framework-section,
.workflow-section,
.modules-section,
.scenario-section,
.metrics-section,
.deliverables-section,
.decision-section,
.ladder-section,
.matrix-section,
.pitfall-section,
.path-section {
  padding: 34px;
}

.section-kicker,
.mini-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 62ch;
  margin: 24px 0;
  color: #2e3f35;
  font-size: 1.08rem;
  line-height: 1.8;
}

.formula-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.formula-strip span {
  padding: 12px 14px;
  border: 1px solid rgba(23, 36, 29, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  font-size: 0.95rem;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(53, 89, 74, 0.08), transparent 60%),
    var(--paper);
}

.hero-panel-ai {
  background:
    linear-gradient(180deg, rgba(74, 120, 160, 0.12), transparent 60%),
    var(--paper);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 18px;
  border: 1px solid rgba(23, 36, 29, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-note {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(23, 36, 29, 0.05);
}

.panel-note p,
.panel-note ul {
  margin: 0;
}

.panel-note ul {
  padding-left: 20px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.overview-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.overview-band article {
  padding: 24px;
}

.overview-band h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.overview-band p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.bridge-section {
  margin-top: 22px;
}

.bridge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
}

.bridge-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.06;
}

.bridge-card p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.bridge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #f7f0e6;
  font-size: 0.94rem;
}

.atlas-section,
.framework-section,
.workflow-section,
.modules-section,
.scenario-section,
.metrics-section,
.deliverables-section,
.decision-section,
.ladder-section,
.matrix-section,
.pitfall-section,
.path-section {
  margin-top: 22px;
}

.section-heading {
  max-width: 78ch;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-heading p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.atlas-scroll {
  margin-top: 28px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.atlas-canvas {
  position: relative;
  width: 1400px;
  height: 980px;
  border-radius: 34px;
  background:
    radial-gradient(circle at center, rgba(216, 132, 62, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(23, 36, 29, 0.06), rgba(255, 255, 255, 0.28));
  border: 1px solid rgba(23, 36, 29, 0.1);
  overflow: hidden;
}

.ai-atlas-canvas {
  background:
    radial-gradient(circle at center, rgba(74, 120, 160, 0.16), transparent 18%),
    linear-gradient(180deg, rgba(19, 52, 69, 0.05), rgba(255, 255, 255, 0.28));
}

.atlas-canvas::before {
  position: absolute;
  inset: 24px;
  border: 1px dashed rgba(23, 36, 29, 0.12);
  border-radius: 28px;
  content: "";
}

.atlas-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-lines path {
  fill: none;
  stroke: rgba(23, 36, 29, 0.2);
  stroke-linecap: round;
  stroke-width: 2.4;
  stroke-dasharray: 7 9;
}

.stage-badge {
  position: absolute;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.94);
  border: 1px solid rgba(23, 36, 29, 0.1);
  color: var(--muted);
  font-family: "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-a {
  top: 34px;
  left: 54px;
}

.stage-b {
  top: 34px;
  right: 54px;
}

.stage-c {
  bottom: 42px;
  left: 54px;
}

.stage-d {
  bottom: 42px;
  right: 54px;
}

.hub-card,
.atlas-node {
  position: absolute;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255, 249, 239, 0.92);
  border: 1px solid rgba(23, 36, 29, 0.12);
  box-shadow: 0 18px 40px rgba(35, 44, 35, 0.12);
}

.hub-card {
  top: 50%;
  left: 50%;
  width: 320px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(180deg, rgba(216, 132, 62, 0.12), rgba(255, 249, 239, 0.94));
}

.hub-card h3,
.atlas-node h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

.hub-card p,
.atlas-node p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hub-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding-left: 18px;
  margin: 16px 0 0;
  color: #2f4036;
}

.atlas-node {
  width: 248px;
}

.node-tag,
.module-stage {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.opportunity {
  background: rgba(63, 111, 116, 0.12);
  color: var(--teal);
}

.product {
  background: rgba(216, 132, 62, 0.14);
  color: #9c5a1d;
}

.growth {
  background: rgba(53, 89, 74, 0.14);
  color: var(--forest);
}

.operation {
  background: rgba(111, 79, 89, 0.14);
  color: var(--berry);
}

.ai-core {
  background: rgba(74, 120, 160, 0.15);
  color: #365a7a;
}

.ai-context {
  background: rgba(70, 119, 96, 0.16);
  color: #325c49;
}

.ai-system {
  background: rgba(210, 132, 63, 0.16);
  color: #9c5b24;
}

.ai-govern {
  background: rgba(118, 86, 122, 0.15);
  color: #6b4d71;
}

.node-1 {
  top: 12%;
  left: 6%;
}

.node-2 {
  top: 7%;
  left: 28%;
}

.node-3 {
  top: 7%;
  right: 28%;
}

.node-4 {
  top: 13%;
  right: 6%;
}

.node-5 {
  top: 43%;
  left: 2.4%;
}

.node-6 {
  bottom: 15%;
  left: 7%;
}

.node-7 {
  bottom: 6%;
  left: 29%;
}

.node-8 {
  bottom: 6%;
  right: 7%;
}

.node-9 {
  top: 43%;
  right: 1.6%;
}

.node-10 {
  top: 26%;
  right: 1.2%;
}

.node-11 {
  bottom: 2.8%;
  left: 50%;
  transform: translateX(-50%);
}

.node-12 {
  bottom: 6%;
  left: 10%;
}

.hub-card-ai {
  background:
    linear-gradient(180deg, rgba(74, 120, 160, 0.14), rgba(246, 249, 248, 0.95));
}

.ai-node {
  width: 240px;
}

.ai-node-1 {
  top: 9%;
  left: 5%;
}

.ai-node-2 {
  top: 4.8%;
  left: 41%;
  transform: translateX(-50%);
}

.ai-node-3 {
  top: 9%;
  right: 6%;
}

.ai-node-4 {
  top: 33%;
  right: 1.6%;
}

.ai-node-5 {
  bottom: 11%;
  right: 7%;
}

.ai-node-6 {
  bottom: 4%;
  left: 54%;
}

.ai-node-7 {
  bottom: 6%;
  left: 26%;
}

.ai-node-8 {
  bottom: 12%;
  left: 4.5%;
}

.ai-node-9 {
  top: 30%;
  left: 1.4%;
}

.workflow-grid,
.scenario-grid,
.ladder-grid,
.path-grid,
.framework-grid,
.deliverable-grid,
.decision-grid {
  display: grid;
  gap: 18px;
}

.framework-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
}

.framework-card,
.deliverable-card {
  padding: 22px;
  border: 1px solid rgba(23, 36, 29, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 248, 236, 0.9));
}

.framework-card h3,
.deliverable-card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.framework-card ul,
.deliverable-card ul {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.workflow-card,
.scenario-card,
.ladder-card,
.path-card,
.metric-panel,
.pitfall-grid article {
  padding: 22px;
  border: 1px solid rgba(23, 36, 29, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
}

.workflow-card span,
.path-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.workflow-card h3,
.scenario-card h3,
.metric-panel h3,
.ladder-card h3,
.path-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.workflow-card p,
.scenario-card li,
.module-summary,
.metric-panel,
.ladder-card li,
.path-card p {
  color: var(--muted);
  line-height: 1.7;
}

.workflow-card ul,
.scenario-card ul,
.ladder-card ul {
  padding-left: 20px;
  margin: 12px 0 0;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.module-card {
  padding: 24px;
  border: 1px solid rgba(23, 36, 29, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 248, 236, 0.88));
}

.module-card header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.module-summary {
  margin: 12px 0 18px;
}

.module-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.module-lanes > div {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.45);
}

.module-lanes h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.module-lanes ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.scenario-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.deliverable-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
}

.decision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.decision-card {
  padding: 22px;
  border: 1px solid rgba(23, 36, 29, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(242, 247, 246, 0.88));
}

.decision-card h3 {
  margin: 0 0 12px;
  font-size: 1.26rem;
  line-height: 1.2;
}

.decision-card ul {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.double-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-list span {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 36, 29, 0.1);
  background: rgba(255, 249, 239, 0.9);
  font-size: 0.92rem;
}

.ladder-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.matrix-table {
  margin-top: 26px;
  overflow-x: auto;
  border: 1px solid rgba(23, 36, 29, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.42);
}

.matrix-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(220px, 1fr));
}

.matrix-row + .matrix-row {
  border-top: 1px solid rgba(23, 36, 29, 0.08);
}

.matrix-head {
  background: rgba(23, 36, 29, 0.06);
}

.matrix-cell {
  padding: 18px 18px 20px;
  min-width: 0;
  color: var(--muted);
  line-height: 1.72;
}

.matrix-cell + .matrix-cell {
  border-left: 1px solid rgba(23, 36, 29, 0.08);
}

.matrix-head .matrix-cell {
  font-family: "Menlo", "Monaco", "Courier New", monospace;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-label {
  color: var(--ink);
  font-weight: 700;
}

.ladder-level {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.pitfall-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.pitfall-grid article span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.82rem;
}

.pitfall-grid article p {
  margin: 0;
  line-height: 1.7;
}

.path-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
}

@media (max-width: 1280px) {
  .hero,
  .overview-band,
  .workflow-grid,
  .framework-grid,
  .module-grid,
  .scenario-grid,
  .deliverable-grid,
  .double-grid,
  .decision-grid,
  .ladder-grid,
  .pitfall-grid,
  .path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 24px, 100%);
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .nav-stack {
    width: 100%;
    align-items: flex-start;
  }

  .hero,
  .overview-band,
  .workflow-grid,
  .framework-grid,
  .module-grid,
  .scenario-grid,
  .deliverable-grid,
  .double-grid,
  .decision-grid,
  .ladder-grid,
  .pitfall-grid,
  .path-grid,
  .module-lanes {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .bridge-card,
  .atlas-section,
  .framework-section,
  .workflow-section,
  .modules-section,
  .scenario-section,
  .metrics-section,
  .deliverables-section,
  .decision-section,
  .ladder-section,
  .matrix-section,
  .pitfall-section,
  .path-section {
    padding: 24px;
  }

  .bridge-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .atlas-scroll {
    overflow: visible;
  }

  .atlas-canvas {
    width: 100%;
    height: auto;
    min-height: 0;
    display: grid;
    gap: 14px;
    padding: 18px;
  }

  .atlas-lines,
  .stage-badge {
    display: none;
  }

  .hub-card,
  .atlas-node {
    position: static;
    width: 100%;
    transform: none;
  }

  .matrix-row {
    grid-template-columns: 1fr;
  }

  .matrix-cell + .matrix-cell {
    border-left: none;
    border-top: 1px solid rgba(23, 36, 29, 0.08);
  }
}
