:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #5d6b7d;
  --paper: #f8fbff;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(48, 70, 101, 0.16);
  --navy: #102a43;
  --blue: #1f77b4;
  --teal: #008b8b;
  --green: #2e7d57;
  --saffron: #d1841f;
  --rose: #b34a5b;
  --violet: #6654a6;
  --shadow: 0 24px 70px rgba(34, 50, 84, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(31, 119, 180, 0.14), transparent 30rem),
    radial-gradient(circle at 90% 8%, rgba(209, 132, 31, 0.13), transparent 28rem),
    linear-gradient(135deg, #f8fbff 0%, #eef6f8 48%, #fff8ef 100%);
  min-height: 100vh;
}

body.presentation-active {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

:focus-visible {
  outline: 3px solid rgba(31, 119, 180, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(248, 251, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar strong,
.topbar span {
  display: block;
}

.topbar strong {
  font-size: 0.98rem;
}

.topbar span {
  color: var(--muted);
  font-size: 0.78rem;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.topbar nav a,
.home-link,
.ncc-link,
.mode-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  padding: 0.56rem 0.82rem;
  color: var(--navy);
  font-size: 0.82rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.home-link,
.ncc-link,
.mode-button {
  white-space: nowrap;
}

.topbar nav a:hover,
.home-link:hover,
.ncc-link:hover,
.mode-button:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 119, 180, 0.42);
  background: #fff;
}

.home-link {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 800;
}

.home-link:hover {
  background: #173b5f;
  color: #fff;
}

.ncc-link {
  background: rgba(0, 139, 139, 0.1);
  border-color: rgba(0, 139, 139, 0.32);
  color: var(--teal);
  font-weight: 800;
}

.ncc-link:hover {
  background: rgba(0, 139, 139, 0.16);
  color: #006f6f;
}

main {
  padding: clamp(1rem, 3vw, 2.5rem);
}

.section-panel {
  position: relative;
  width: min(1420px, 100%);
  margin: 0 auto clamp(1rem, 3vw, 2rem);
  padding: clamp(1.15rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 32, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 51, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero {
  min-height: calc(100vh - 7rem);
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.hero-copy,
.mission-board,
.section-heading,
.timeline,
.engine-layout,
.score-grid,
.pipeline,
.stakeholder-map,
.triple-section > article,
.compare,
.business-flow,
.mission-flow,
.activity-cloud {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-weight: 800;
  font-size: 0.77rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.65rem;
  color: var(--navy);
  font-size: clamp(2.9rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.7rem;
  color: var(--navy);
  font-size: clamp(1.6rem, 3.4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  color: var(--navy);
  font-size: 1.15rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-line {
  color: var(--green);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
}

.hero-text {
  max-width: 62ch;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.hero-actions span,
.activity-cloud span,
.rank-list span,
.compare span,
.business-flow span {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.45rem 0.75rem;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.mission-board {
  min-height: 560px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(237, 247, 247, 0.66)),
    radial-gradient(circle at center, rgba(31, 119, 180, 0.13), transparent 17rem);
  border: 1px solid var(--line);
}

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

.board-lines path {
  fill: none;
  stroke: rgba(31, 119, 180, 0.36);
  stroke-width: 2;
  stroke-dasharray: 10 12;
  animation: flowLine 7s linear infinite;
}

.core-node,
.orbit-node,
.ladder-step,
.mission-flow button,
.stakeholder-map button {
  border: 1px solid rgba(16, 42, 67, 0.15);
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  box-shadow: 0 14px 38px rgba(34, 50, 84, 0.12);
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.core-node:hover,
.orbit-node:hover,
.ladder-step:hover,
.mission-flow button:hover,
.stakeholder-map button:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 119, 180, 0.48);
  box-shadow: 0 18px 42px rgba(34, 50, 84, 0.17);
}

.wheel button:hover {
  border-color: rgba(31, 119, 180, 0.48);
  box-shadow: 0 12px 26px rgba(34, 50, 84, 0.16);
}

.core-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(190px, 24vw, 250px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  background: linear-gradient(145deg, #ffffff, #e9f7f4);
}

.core-node:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

.core-node::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px dashed rgba(0, 139, 139, 0.42);
  border-radius: 50%;
  animation: rotate 18s linear infinite;
}

.core-node span {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  color: var(--blue);
}

.core-node small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.orbit-node {
  position: absolute;
  min-width: 118px;
  min-height: 58px;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-weight: 850;
}

.n1 { left: 5%; top: 8%; }
.n2 { right: 5%; top: 8%; }
.n3 { left: 4%; top: 42%; }
.n4 { right: 4%; top: 42%; }
.n5 { left: 6%; bottom: 8%; }
.n6 { right: 6%; bottom: 8%; }
.n7 { left: 50%; bottom: 2%; transform: translateX(-50%); }
.n7:hover { transform: translateX(-50%) translateY(-3px); }

.section-heading {
  max-width: 850px;
  margin-bottom: 1.4rem;
}

.ladder {
  display: grid;
  grid-template-columns: repeat(11, minmax(96px, 1fr));
  gap: 0.7rem;
  align-items: stretch;
}

.ladder-step {
  position: relative;
  min-height: 70px;
  border-radius: var(--radius);
  padding: 0.7rem;
  font-weight: 850;
}

.ladder-step::after,
.pipeline span::after,
.business-flow span::after {
  content: "\2192";
  position: absolute;
  right: -0.62rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-weight: 900;
}

.ladder-step:last-child::after,
.pipeline span:last-child::after,
.business-flow span:last-child::after {
  content: "";
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
}

.timeline {
  min-height: 420px;
  padding: 1rem 0;
}

.timeline-track {
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  bottom: 1rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(var(--blue), var(--teal), var(--saffron));
}

.timeline ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.7rem 1rem;
  margin: 0;
  padding-left: 2.7rem;
  counter-reset: journey;
}

.timeline li {
  list-style: none;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  padding: 0.78rem 0.9rem 0.78rem 2.7rem;
  color: var(--navy);
  font-weight: 750;
}

.timeline li::before {
  counter-increment: journey;
  content: counter(journey);
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.76rem;
}

.engine-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
}

.wheel {
  position: relative;
  width: min(680px, 100%);
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 23%, transparent 24%),
    conic-gradient(from -15deg, rgba(31, 119, 180, 0.22), rgba(0, 139, 139, 0.2), rgba(209, 132, 31, 0.23), rgba(46, 125, 87, 0.2), rgba(179, 74, 91, 0.16), rgba(31, 119, 180, 0.22));
  border: 1px solid var(--line);
}

.wheel button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8.3rem;
  min-height: 2.55rem;
  margin: -1.275rem 0 0 -4.15rem;
  transform: rotate(calc(var(--i) * 22.5deg)) translateY(-15.2rem) rotate(calc(var(--i) * -22.5deg));
  border: 1px solid rgba(16, 42, 67, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.05;
  padding: 0.35rem 0.55rem;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.wheel button.is-active {
  background: var(--navy);
  color: #fff;
}

.wheel-center {
  position: absolute;
  inset: 34%;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(34, 50, 84, 0.14);
  padding: 1rem;
}

.wheel-center strong {
  color: var(--blue);
  font-size: 1.35rem;
}

.wheel-center span {
  color: var(--muted);
  font-size: 0.85rem;
}

.detail-panel,
.score-card,
.ranking-card,
.triple-section > article,
.compare > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.detail-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.mission-flow,
.pipeline,
.business-flow {
  display: grid;
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  gap: 0.65rem;
}

.mission-flow button,
.pipeline span,
.business-flow span {
  position: relative;
  min-height: 68px;
  border-radius: var(--radius);
  padding: 0.7rem;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 850;
}

.pipeline,
.business-flow {
  grid-template-columns: repeat(11, minmax(95px, 1fr));
}

.business-flow {
  grid-template-columns: repeat(9, minmax(105px, 1fr));
  margin-top: 1rem;
}

.pipeline span,
.business-flow span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--navy);
}

.activity-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.score-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
}

.score-card {
  text-align: center;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 172px;
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 84%, rgba(20, 32, 51, 0.1) 84% 100%);
}

.score-ring span {
  display: grid;
  place-items: center;
  width: 122px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 3.1rem;
  font-weight: 900;
}

.bar-stack {
  display: grid;
  gap: 0.55rem;
}

.bar-stack span {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  padding-left: 0.75rem;
  color: var(--navy);
  font-weight: 800;
}

.bar-stack span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 1%);
  background: linear-gradient(90deg, rgba(31, 119, 180, 0.16), rgba(0, 139, 139, 0.12));
  z-index: -1;
}

.rank-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.stakeholder-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 0.75rem;
}

.stakeholder-map button {
  min-height: 76px;
  border-radius: var(--radius);
  padding: 0.75rem;
  font-weight: 850;
}

.triple-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.quote {
  border-left: 4px solid var(--teal);
  padding-left: 0.9rem;
  color: var(--navy);
  font-weight: 800;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare > div {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.55rem;
}

.compare h3 {
  flex-basis: 100%;
}

.tooltip {
  position: fixed;
  z-index: 30;
  display: none;
  max-width: min(340px, calc(100vw - 2rem));
  border: 1px solid rgba(31, 119, 180, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(20, 32, 51, 0.18);
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  pointer-events: none;
}

.tooltip strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--navy);
}

.node-dialog {
  width: min(520px, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 30px 90px rgba(20, 32, 51, 0.24);
  padding: 1.6rem;
}

.node-dialog::backdrop {
  background: rgba(16, 42, 67, 0.3);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@keyframes flowLine {
  to {
    stroke-dashoffset: -88;
  }
}

@keyframes rotate {
  to {
    rotate: 360deg;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .hero,
  .split-section,
  .engine-layout,
  .score-grid,
  .triple-section {
    grid-template-columns: 1fr;
  }

  .ladder,
  .mission-flow,
  .pipeline,
  .business-flow,
  .stakeholder-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ladder-step::after,
  .pipeline span::after,
  .business-flow span::after {
    content: "";
  }
}

@media (max-width: 760px) {
  main {
    padding: 0.7rem;
  }

  .topbar nav {
    display: none;
  }

  .section-panel {
    padding: 1rem;
  }

  .hero {
    min-height: auto;
  }

  .mission-board {
    min-height: 620px;
  }

  .core-node {
    width: 170px;
  }

  .orbit-node {
    min-width: 104px;
    min-height: 50px;
    font-size: 0.78rem;
  }

  .timeline ol,
  .ladder,
  .mission-flow,
  .pipeline,
  .business-flow,
  .stakeholder-map,
  .compare {
    grid-template-columns: 1fr;
  }

  .wheel {
    width: min(520px, 100%);
    margin-top: 1rem;
  }

  .wheel button {
    width: 6.2rem;
    min-height: 2.25rem;
    margin: -1.125rem 0 0 -3.1rem;
    transform: rotate(calc(var(--i) * 22.5deg)) translateY(-10.9rem) rotate(calc(var(--i) * -22.5deg));
    font-size: 0.66rem;
  }

  .wheel-center {
    inset: 31%;
  }

  .wheel-center strong {
    font-size: 1rem;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 2.55rem;
  }

  .mission-board {
    min-height: 700px;
  }

  .n1 { left: 4%; top: 3%; }
  .n2 { right: 4%; top: 3%; }
  .n3 { left: 3%; top: 25%; }
  .n4 { right: 3%; top: 25%; }
  .n5 { left: 3%; bottom: 18%; }
  .n6 { right: 3%; bottom: 18%; }
  .n7 { bottom: 3%; }

  .wheel button {
    width: 5.5rem;
    transform: rotate(calc(var(--i) * 22.5deg)) translateY(-8.7rem) rotate(calc(var(--i) * -22.5deg));
  }
}

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

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .tooltip,
  .node-dialog {
    display: none !important;
  }

  main {
    padding: 0;
  }

  .section-panel {
    break-inside: avoid;
    box-shadow: none;
    border-color: #ccd6e0;
    background: #fff;
  }

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