.story-page {
  --night: #28203a;
  --story-bg: #fff;
  --accent: #294eaa;
  --lime: #d7edff;
  --handoff-ink: #805215;
  --night-text: #2b2140;
  --wire: #8d7ba6;
  --chart-surface: #f8f5fc;
  --chart-edge: #bdafcf;
  --muted-night: #61566d;
  color-scheme: light;
  background: var(--story-bg);
  color: var(--night-text);
  min-height: 100svh;
}

.story-page a:focus-visible, .story-page button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.story-page .skip-link { color: var(--ink); }
.story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: .75rem clamp(1.1rem, 4.5vw, 4.5rem);
  border-bottom: 1px solid #dfd6e8;
  background: var(--story-bg);
}
.story-home { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted-night); font-size: .875rem; font-weight: 650; text-decoration: none; }
.story-home:hover { color: var(--night-text); text-decoration: underline; text-underline-offset: .25em; }

.story-player {
  flex: 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse at 54% 62%, #f1e9fb 0%, transparent 67%),
    var(--story-bg);
}
.story-player::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(#a993c8 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: .32;
  mask-image: radial-gradient(ellipse, #000 12%, transparent 78%);
}
.scene {
  width: min(100%, 75rem);
  padding: clamp(1.8rem, 4vw, 3.5rem) clamp(1rem, 5vw, 4rem) 6rem;
  text-align: center;
}
.scene-heading { position: relative; z-index: 1; }
.scene-kicker {
  margin: 0 0 .8rem;
  color: var(--accent);
  font: 700 .76rem/1.25 ui-monospace, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.scene-heading h1 {
  max-width: 23ch;
  margin-inline: auto;
  font-size: clamp(2.1rem, 5.15vw, 4.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.07em;
  text-wrap: balance;
}
.scene-heading em { color: var(--accent); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.065em; }

.chart-viewport {
  --camera-x: 14deg;
  --camera-y: -13deg;
  --camera-z: -3deg;
  margin: clamp(1.8rem, 4vw, 3rem) auto 0;
  max-width: 48rem;
  perspective: 75rem;
  transform-origin: top left;
}
.chart-board {
  position: relative;
  margin: 0;
  padding: .95rem clamp(.75rem, 3vw, 2rem) 1.55rem;
  border: 1px solid var(--chart-edge);
  border-radius: .65rem;
  background: linear-gradient(150deg, #ffffff, var(--chart-surface) 58%, #eee8f8);
  box-shadow: 0 5px #e8ddf2, 0 6px var(--chart-edge), 0 25px 42px #38265a18;
  transform: rotateX(var(--camera-x)) rotateY(var(--camera-y)) rotateZ(var(--camera-z));
  transform-style: preserve-3d;
}
.chart-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid #d9cde6;
  text-align: left;
}
.chart-label strong { font-size: clamp(.85rem, 2vw, 1.05rem); letter-spacing: -.03em; }
.chart-label span { color: var(--muted-night); font: .68rem/1.3 ui-monospace, monospace; text-align: right; }

.org-tree, .org-tree ul { margin: 0; list-style: none; }
.org-tree, .org-branches { padding: 0; }
.org-tree { position: relative; padding-top: 1rem; transform-style: preserve-3d; }
.org-tree > li, .org-root, .org-branches, .org-branch, .org-teams { transform-style: preserve-3d; }
.org-root { position: relative; display: flex; justify-content: center; padding-bottom: 1rem; }
.org-root::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 0;
  height: 1rem;
  border-left: 1px solid var(--wire);
  transform: translateY(-100%);
}
.org-card {
  display: grid;
  position: relative;
  place-content: center;
  gap: .12rem;
  border: 1px solid #b9aacd;
  border-radius: .35rem;
  padding: .48rem .35rem;
  background: #f0eaf7;
  color: var(--night-text);
  box-shadow: 0 3px #dfd5ea;
  font-size: .75rem;
  line-height: 1.18;
}
.org-card strong { font-weight: 750; }
.org-card span { color: #5d506c; font-size: .72rem; }
.org-lead {
  z-index: 1;
  min-width: 9.5rem;
  padding-inline: .75rem;
  border-color: #89b8e8;
  background: #d6ebff;
  color: #213a62;
  font-size: 1rem;
  transform: translateZ(10px);
}
.org-lead span { color: #485d78; }
.org-branches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.org-branch { position: relative; padding: 1rem .37rem 0; }
.org-branch::before, .org-branch::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 1rem;
  border-top: 1px solid var(--wire);
}
.org-branch::before { left: 0; border-right: 1px solid var(--wire); }
.org-branch::after { right: 0; }
.org-branch:first-child::before, .org-branch:last-child::after { border-top: 0; }
.org-manager { z-index: 1; min-height: 2.85rem; background: #e8ddf7; transform: translateZ(6px); }
.org-teams { position: relative; display: grid; gap: .34rem; padding: .63rem 0 0 .65rem; text-align: left; }
.org-teams::before { content: ""; position: absolute; top: 0; bottom: .9rem; left: .25rem; border-left: 1px solid var(--wire); }
.org-teams .org-card { place-content: center start; min-height: 1.78rem; }
.org-teams .org-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -.45rem;
  width: .4rem;
  border-top: 1px solid var(--wire);
}

.scene.is-entering .scene-heading { animation: title-enter .75s ease-out both; }
.scene.is-entering:not(.is-reframing) .chart-board { animation: chart-enter 1.45s cubic-bezier(.16, 1, .28, 1) both; }
@keyframes title-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes chart-enter {
  from { opacity: 0; transform: translateY(22px) translateZ(-80px) rotateX(27deg) rotateY(-24deg) rotateZ(-5deg); }
  to { opacity: 1; transform: rotateX(var(--camera-x)) rotateY(var(--camera-y)) rotateZ(var(--camera-z)); }
}

.hr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5.25rem);
}
.hr-pillar {
  position: relative;
  min-width: 0;
  padding: 1.1rem clamp(.7rem, 2vw, 1.5rem) 2.1rem;
  border: 1px solid #c3b2d6;
  border-radius: .75rem;
  background: linear-gradient(155deg, #f8f4fc, #eee6f7 75%);
  box-shadow: .45rem .45rem 0 #efe9f5, .5rem .5rem 0 #c7b7d8;
}
.pillar-heading {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 3.55rem;
  margin-bottom: 1.55rem;
  border-bottom: 1px solid #d4c5e3;
  color: var(--accent);
}
.pillar-summary { margin: 0; font-size: clamp(.8rem, 2vw, 1.1rem); font-weight: 700; }
.pillar-cycle { display: none; position: absolute; inset: 0; place-items: center; }
.pillar-cycle span { grid-area: 1 / 1; font-size: clamp(1.25rem, 3vw, 2.05rem); font-weight: 750; letter-spacing: -.045em; }
.pillar-chart .chart-viewport { --camera-x: 5deg; --camera-y: -4deg; --camera-z: -1deg; margin: 0; }
.pillar-chart .chart-board { padding-inline: clamp(.35rem, 1.25vw, 1rem); }
.hr-copy { text-align: left; }
.hr-copy h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.1rem, 4.35vw, 4.25rem);
  line-height: 1;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.hr-copy p {
  max-width: 25ch;
  margin: 1.12rem 0 0;
  color: var(--accent);
  font: 400 clamp(1.35rem, 2.65vw, 2.4rem)/1.16 Georgia, serif;
  letter-spacing: -.035em;
  text-wrap: pretty;
}

@media (prefers-reduced-motion: no-preference) {
  .story-player:is([data-playback="playing"], [data-playback="manual"]) .pillar-cycle { display: grid; }
  .story-player:is([data-playback="playing"], [data-playback="manual"]) .pillar-summary { opacity: 0; }
  .pillar-cycle span { animation: cycle-pillar-name 4.8s linear infinite backwards; }
  .pillar-cycle span:nth-child(2) { animation-delay: 1.6s; }
  .pillar-cycle span:nth-child(3) { animation-delay: 3.2s; }
  .story-player[data-playback="manual"] .pillar-cycle { animation: end-pillar-cycle 0s 4.8s forwards; }
  .story-player[data-playback="manual"] .pillar-summary { animation: show-pillar-summary 0s 4.8s forwards; }
}
@keyframes cycle-pillar-name {
  0% { opacity: 0; transform: translateY(4px); }
  5%, 27% { opacity: 1; transform: translateY(0); }
  33.333%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes end-pillar-cycle { to { visibility: hidden; } }
@keyframes show-pillar-summary { to { opacity: 1; } }

.network-layout {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(1.6rem, 4vw, 4.4rem);
}
.network-copy { text-align: left; }
.network-copy h2 {
  max-width: 21ch;
  margin: 0;
  font-size: clamp(2rem, 3.55vw, 3.7rem);
  line-height: 1.03;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.network-copy p {
  max-width: 34ch;
  margin: 1rem 0 0;
  color: var(--muted-night);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.45;
  text-wrap: pretty;
}
.network-copy .accountability-copy { color: var(--night-text); font-weight: 700; transition: color .35s; }
.network-scene[data-beat="accountability"] .accountability-copy { color: var(--accent); }
.reference-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  margin-top: .5rem;
  color: var(--night-text);
  font-size: .9rem;
  font-weight: 650;
  text-underline-offset: .25rem;
}
.reference-link:hover { color: var(--accent); }

.network-chart .chart-viewport {
  --camera-x: 5deg;
  --camera-y: 6deg;
  --camera-z: 1deg;
  margin-top: 1.2rem;
}
.diagram-key {
  display: flex;
  justify-content: flex-end;
  color: var(--muted-night);
  font: 700 .72rem/1.25 ui-monospace, monospace;
}
.diagram-key span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .72rem;
  border: 1px solid #c4b3d5;
  border-radius: .35rem;
  background: #fbf9fe;
}
.diagram-key span::before { content: ""; width: 1.5rem; border-top: 2px dashed #245d96; }
.diagram-key .reporting-key::before { border-top: 2px solid var(--accent); }
.network-scene[data-beat="communication"] .reporting-key,
.network-scene[data-beat="accountability"] .communication-key { display: none; }
.communication-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translateZ(1px);
}
.network-scene[data-beat="accountability"] .chart-board { --wire: #2459aa; }
.network-scene[data-beat="accountability"] .org-manager { border-color: #3263ad; }

.capability-scene { --capability-accent: #d3eaff; --capability-ink: #245d96; padding-top: clamp(1.5rem, 3vw, 2rem); }
.capability-scene[data-beat="improvement"] { --capability-accent: #edddff; --capability-ink: #6b3d9b; }
.capability-heading h2 {
  max-width: 37ch;
  margin: 0 auto;
  font-size: clamp(1.9rem, 3.25vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.capability-heading p {
  margin: .7rem 0 0;
  color: var(--muted-night);
  font-size: clamp(.95rem, 1.65vw, 1.22rem);
  text-wrap: balance;
}
.capability-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr);
  align-items: stretch;
  gap: clamp(1rem, 3vw, 3rem);
  margin-top: 1.25rem;
}
.capability-layout .hr-pillar { padding-block: .7rem .9rem; }
.capability-layout .pillar-heading { min-height: 2.55rem; margin-bottom: .9rem; }
.capability-layout .chart-board { padding-bottom: .85rem; }
.fixed-pillar-title { margin: 0; font-size: clamp(1.1rem, 2.1vw, 1.7rem); font-weight: 750; letter-spacing: -.035em; }
.architecture-pillar { border-color: #b9bee0; background: linear-gradient(150deg, #f5f8ff, #eaf0fc 78%); }
.architecture-pillar .pillar-heading { color: #344d9a; }
.capability-board {
  position: relative;
  margin: 0;
  padding: .8rem .85rem .9rem;
  border: 1px solid var(--chart-edge);
  border-radius: .65rem;
  background: linear-gradient(150deg, #ffffff, var(--chart-surface) 58%, #eee8f8);
  box-shadow: 0 4px #e8ddf2, 0 5px var(--chart-edge), 0 12px 20px #38265a11;
}
.capability-group { margin-top: .65rem; text-align: left; }
.capability-group p { margin: 0 0 .28rem; color: var(--muted-night); font: 700 .68rem/1.25 ui-monospace, monospace; }
.capability-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.capability-tiles > * {
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: 2.75rem;
  padding: .3rem .45rem;
  border: 1px solid #b9aacd;
  border-radius: .35rem;
  background: #f0eaf8;
  color: var(--night-text);
  font: inherit;
  font-size: .75rem;
  font-weight: 650;
  text-align: left;
}
.capability-tiles button { border-style: dashed; cursor: pointer; }
.capability-tiles button:hover { border-color: var(--capability-ink); }
.capability-tiles button[aria-pressed="true"], .capability-scene [data-capability-match] {
  border-color: var(--capability-ink);
  border-style: solid;
  background: var(--capability-accent);
  color: var(--night);
}
.capability-tiles button, .capability-scene .org-card { transition: background .2s, color .2s, border-color .2s; }
.capability-caption strong { color: var(--capability-ink); }
.capability-caption span { display: none; }
.capability-scene[data-beat="onboarding"] [data-capability-summary="onboarding"],
.capability-scene[data-beat="improvement"] [data-capability-summary="improvement"] { display: inline; }
.scene.is-entering .architecture-pillar { animation: expand-architecture 1.2s .2s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes expand-architecture {
  from { opacity: .2; clip-path: inset(0 92% 0 0 round .75rem); transform: translateX(-12px); }
  75% { clip-path: inset(0 -1rem -1rem 0 round .75rem); }
  to { opacity: 1; clip-path: inset(-1rem round .75rem); transform: translateX(0); }
}

.process-scene, .journey-scene {
  --handoff-accent: #ffe5b0;
  width: min(100%, 87rem);
  padding: clamp(1.45rem, 2.5vw, 2.4rem) clamp(1rem, 3vw, 2.7rem) 6rem;
}
.journey-scene { --handoff-accent: #d3eaff; --handoff-ink: #245d96; }
.process-scene .capability-heading strong, .journey-scene .capability-heading strong { color: var(--handoff-ink); }
.process-layout, .journey-layout { display: grid; align-items: stretch; gap: clamp(.75rem, 1.55vw, 1.45rem); margin-top: 1.35rem; }
.process-layout { grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr) minmax(0, .97fr); }
.journey-layout { grid-template-columns: minmax(0, 1.08fr) repeat(3, minmax(0, 1fr)); }
.process-layout .hr-pillar, .journey-layout .hr-pillar { min-width: 0; padding: .65rem clamp(.4rem, .9vw, .85rem) 1rem; }
.process-layout .pillar-heading, .journey-layout .pillar-heading { min-height: 2.9rem; margin-bottom: .8rem; }
.process-layout .fixed-pillar-title, .journey-layout .fixed-pillar-title {
  padding-inline: .25rem;
  font-size: clamp(.86rem, 1.43vw, 1.35rem);
  line-height: 1.16;
  text-wrap: balance;
}
.process-pillar { border-color: #d6bc90; background: linear-gradient(150deg, #fff9ef, #f8efd9 78%); }
.process-pillar .pillar-heading { color: #805215; }
.journey-pillar { border-color: #a4bfdc; background: linear-gradient(150deg, #f1f8ff, #e8f2ff 78%); }
.journey-pillar .pillar-heading { color: var(--handoff-ink); }
.process-board {
  margin: 0;
  padding: .65rem .65rem .75rem;
  border: 1px solid var(--chart-edge);
  border-radius: .65rem;
  background: linear-gradient(150deg, #ffffff, var(--chart-surface) 58%, #eee8f8);
  box-shadow: 0 4px #e8ddf2, 0 5px var(--chart-edge);
}
.process-steps { display: grid; gap: .55rem; margin: .65rem 0 0; padding: 0; list-style: none; }
.process-steps li { position: relative; }
.process-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.36rem;
  top: 100%;
  height: .55rem;
  border-left: 1px solid var(--wire);
}
.process-steps li:has([data-handoff-from])::after {
  border-color: var(--handoff-ink);
  transform-origin: top;
  animation: handoff-link .6s ease-out both;
}
@keyframes handoff-link { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.process-steps button, .process-steps li > div {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  min-height: 2.9rem;
  padding: .35rem .45rem;
  border: 1px solid #b9aacd;
  border-radius: .35rem;
  background: #f1ebf8;
  color: var(--night-text);
  font: inherit;
  font-size: .76rem;
  line-height: 1.2;
  text-align: left;
}
.process-steps button:not(:disabled) { cursor: pointer; }
.process-steps button:not(:disabled):hover { border-color: var(--handoff-ink); }
.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #dfd1ef;
  color: var(--night-text);
  font: 700 .75rem/1 ui-monospace, monospace;
}
.process-steps small { display: block; margin-top: .2rem; color: inherit; opacity: .85; font-size: .69rem; }
.process-steps [data-handoff-to] .step-number { background: var(--night); color: #fff; }
.process-layout [data-handoff-to], .journey-layout [data-handoff-to] {
  border-color: var(--handoff-ink);
  border-style: solid;
  background: var(--handoff-accent);
  color: var(--night);
}
.process-layout [data-handoff-from] { border-color: var(--handoff-ink); border-style: dashed; }
:is(.process-layout, .journey-layout) .capability-tiles button:disabled { cursor: default; }
:is(.process-layout, .journey-layout) .capability-tiles button:disabled:not([data-handoff-from]) { border-style: solid; }
:is(.process-layout, .journey-layout) :is(.org-card, .capability-tiles > *, .process-steps button) { transition: background .22s, border-color .22s, color .22s; }
:is(.process-layout, .journey-layout) .chart-board { padding: .6rem .42rem .75rem; }
.process-layout .org-branch { padding-inline: .2rem; }
.process-layout .org-card { font-size: .68rem; }
.process-layout .org-lead { font-size: .9rem; }
.journey-layout .org-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.journey-layout .org-branch { padding-inline: .28rem; }
.journey-layout .org-branch:nth-child(-n+2) { padding-bottom: .45rem; }
.journey-layout .org-branch:nth-child(2) { box-shadow: -1px 0 var(--wire); }
.journey-layout .org-branch:nth-child(odd)::before, .journey-layout .org-branch:nth-child(even)::after { border-top: 0; }
.journey-layout .org-card { padding-block: .32rem; font-size: .68rem; }
.journey-layout .org-card span { font-size: .63rem; }
.journey-layout .org-teams { gap: .25rem; }
.journey-layout .org-teams .org-card { min-height: 1.5rem; }
.journey-layout .capability-tiles > * { font-size: .7rem; }
.scene.is-entering :is(.process-pillar, .journey-pillar):last-child {
  transform-origin: left center;
  animation: enter-work-pillar .85s .1s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes enter-work-pillar {
  from { opacity: .25; transform: translateX(-8px) scaleX(.94); }
  to { opacity: 1; transform: translateX(0) scaleX(1); }
}

@media (min-width: 1101px) and (max-height: 790px) {
  .journey-scene { padding-block: 1rem 5rem; }
  .journey-scene .capability-heading p { margin-top: .45rem; font-size: 1.05rem; }
  .journey-layout { margin-top: .9rem; }
  .journey-layout .org-root { padding-bottom: .8rem; }
  .journey-layout .org-root::after, .journey-layout .org-branch::before, .journey-layout .org-branch::after { height: .8rem; }
  .journey-layout .org-branch { padding-top: .8rem; }
  .journey-layout .org-teams .org-card { min-height: 1.35rem; }
}

.governance-role { display: none; }
.governance-scene {
  --governance-accent: #674198;
  --governance-pan: 0px;
  --governance-zoom: 1;
  width: min(100%, 87rem);
  padding: clamp(1.5rem, 2.5vw, 2.5rem) clamp(1rem, 3vw, 2.7rem) 6rem;
}
.governance-scene[data-beat="data-council"],
.governance-scene[data-beat="data-practice"] { --governance-accent: #245d96; --governance-pan: 14px; --governance-zoom: 1.035; }
.governance-scene[data-beat="risk-forum"],
.governance-scene[data-beat="performance-forum"] { --governance-accent: #895814; --governance-pan: -14px; --governance-zoom: 1.035; }
.governance-scene[data-beat="ai-committee"],
.governance-scene[data-beat="ai-practice"] { --governance-accent: #7040a4; --governance-pan: -9px; --governance-zoom: 1.055; }
.frameworks { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .55rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.frameworks li {
  padding: .35rem .52rem;
  border: 1px solid #c2afd5;
  border-radius: .3rem;
  background: #f2eaf9;
  color: var(--muted-night);
  font: 700 .72rem/1.2 ui-monospace, monospace;
}
.governance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 3.25vw, 3.25rem);
  margin-top: 1.7rem;
}
.governance-chart { min-width: 0; padding: .25rem .55rem; }
.governance-chart .chart-viewport {
  --camera-x: 4deg;
  --camera-y: -4deg;
  --camera-z: 0deg;
  margin: 0;
  max-width: none;
  transform-origin: center;
  transform: translateX(var(--governance-pan)) scale(var(--governance-zoom));
  transition: transform .75s cubic-bezier(.22, 1, .36, 1);
}
.governance-chart .chart-board { padding-inline: .95rem; }
.governance-scene .org-branch { padding-inline: .4rem; }
.governance-scene .org-teams { gap: .72rem; }
.governance-scene .org-teams > .org-card { place-content: stretch; padding: .43rem .4rem .54rem; }
.governance-scene .team-name { color: var(--muted-night); font-size: .68rem; }
.governance-scene .governance-role {
  display: grid;
  justify-items: center;
  position: relative;
  gap: .13rem;
  margin: .08rem .1rem 0 .32rem;
  padding: .35rem .18rem;
  border: 1px solid #c8b9d8;
  border-radius: .3rem;
  background: #fbf9fe;
  font-size: .69rem;
  text-align: center;
}
.governance-role::before { content: ""; position: absolute; left: -.28rem; top: -.3rem; width: .28rem; height: 65%; border: 1px solid var(--wire); border-width: 0 0 1px 1px; }
.governance-role .governance-duty { display: none; color: var(--governance-accent); font-size: .64rem; font-weight: 650; }
.governance-scene[data-beat="owners"] .governance-duty { display: block; }
.governance-scene [data-governance-member] { border-color: var(--governance-accent); background: #eee5fa; }
.governance-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transform: translateZ(2px); }
.governance-details { text-align: left; }
.governance-kind {
  margin: 0 0 .45rem;
  color: var(--governance-accent);
  font: 700 .7rem/1.2 ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.governance-details h3 { margin: 0; font-size: clamp(1.5rem, 2.65vw, 2.8rem); letter-spacing: -.055em; line-height: 1.05; text-wrap: balance; }
.governance-description { min-height: 3.8em; margin: .65rem 0 .9rem; color: var(--muted-night); font-size: .9rem; line-height: 1.37; }
.governance-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.governance-options button {
  min-height: 2.75rem;
  padding: .45rem .5rem;
  border: 1px solid #b9aacd;
  border-radius: .35rem;
  background: #f1ebf8;
  color: var(--night-text);
  font-family: inherit;
  font-size: .73rem;
  font-weight: 650;
  line-height: 1.18;
  text-align: left;
  cursor: pointer;
}
.governance-options button:hover { border-color: var(--governance-accent); }
.governance-options button[aria-pressed="true"] { background: color-mix(in srgb, var(--governance-accent) 17%, white); color: var(--night); }

.story-dock { position: fixed; z-index: 2; inset: auto 0 0; display: grid; justify-items: center; gap: .5rem; padding-top: .5rem; pointer-events: none; background: linear-gradient(transparent, #fffffff2 80%); }
.story-controls {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .35rem;
  border: 1px solid #c6b7d7;
  border-radius: 3rem;
  background: #faf7fd;
  box-shadow: 0 .35rem 1.2rem #38265a1a;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .2s, transform .25s ease-out;
}
.story-player:hover .story-controls, .story-controls:focus-within { opacity: 1; transform: translateY(0); pointer-events: auto; }
.story-controls button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid #c6b7d7;
  border-radius: 2rem;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.story-controls button:not([aria-disabled="true"]):hover { filter: brightness(1.17); }
.story-controls button[aria-disabled="true"] { cursor: default; color: #6e637a; border-color: #e5dceb; }
.story-arrow { color: var(--night-text); background: transparent; }
.story-arrow span { font-size: 1.15rem; }
.story-play { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 5.9rem !important; padding-inline: .75rem; color: #223a58; background: var(--lime); }
.story-play [data-play-icon] { font-size: 1.05rem; }
.story-counter { color: var(--muted-night); font: .68rem/1.3 ui-monospace, monospace; }
.story-track { width: 100%; height: 3px; background: #e5dceb; }
.story-track span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

@media (max-width: 590px) {
  .chart-viewport { --camera-x: 7deg; --camera-y: -5deg; --camera-z: -1deg; }
  .chart-board { padding-inline: .55rem; }
  .org-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-branch { padding-inline: .48rem; }
  .org-branch:nth-child(-n+2) { padding-bottom: .45rem; }
  .org-branch:nth-child(2) { box-shadow: -1px 0 var(--wire); }
  .org-branch:nth-child(odd)::before, .org-branch:nth-child(even)::after { border-top: 0; }
  .org-branch:nth-child(even)::before { border-top: 1px solid var(--wire); }
}

@media (max-width: 860px) {
  .hr-layout, .network-layout { grid-template-columns: minmax(0, 1fr); max-width: 38rem; margin-inline: auto; }
  .hr-copy { grid-row: 1; text-align: center; }
  .network-copy { text-align: center; }
  .hr-copy h2, .hr-copy p, .network-copy h2, .network-copy p { margin-inline: auto; }
  .diagram-key { justify-content: center; }
  .capability-layout { grid-template-columns: minmax(0, 1fr); max-width: 38rem; margin-inline: auto; }
  .governance-layout { grid-template-columns: minmax(0, 1fr); max-width: 42rem; margin-inline: auto; }
  .governance-details { grid-row: 1; }
  .governance-description { min-height: 0; }
  .governance-chart .chart-viewport { transform: none; }
}

@media (max-width: 1100px) {
  .journey-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .process-layout, .journey-layout { grid-template-columns: minmax(0, 1fr); max-width: 32rem; margin-inline: auto; }
  .process-layout .process-pillar, .journey-layout .journey-pillar { grid-row: 1; }
  .process-layout .fixed-pillar-title, .journey-layout .fixed-pillar-title { font-size: 1.15rem; }
}

@media (hover: none), (any-pointer: coarse) {
  .story-controls { opacity: 1; transform: none; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .scene.is-entering .scene-heading, .scene.is-entering .chart-board, .scene.is-entering .architecture-pillar { animation: none; }
  .story-controls { transition: none; }
  .network-copy .accountability-copy, .capability-tiles button, .capability-scene .org-card { transition: none; }
  .scene.is-entering :is(.process-pillar, .journey-pillar):last-child, .process-steps li:has([data-handoff-from])::after { animation: none; }
  :is(.process-layout, .journey-layout) :is(.org-card, .capability-tiles > *, .process-steps button) { transition: none; }
  .governance-chart .chart-viewport { transition: none; }
}

.swimlane-headings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .28rem;
  margin-top: .65rem;
}
.swimlane-headings span {
  display: grid;
  align-items: center;
  min-height: 1.75rem;
  padding: .25rem .15rem;
  border: 1px solid #b9aacd;
  border-radius: .25rem;
  background: #eee5f8;
  color: var(--night-text);
  font: 700 .66rem/1.12 ui-monospace, monospace;
  text-align: center;
}
.swimlane-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .3rem;
  margin-top: .32rem;
  padding: .26rem .14rem;
  background: repeating-linear-gradient(to right, #f7f2fb 0 calc(33.333% - 1px), #d9cbe7 calc(33.333% - 1px) 33.333%);
  border-radius: .25rem;
}
.swimlane-steps li:not(:last-child)::after { content: none; }
.swimlane-steps li:nth-child(1) { grid-area: 1 / 1; }
.swimlane-steps li:nth-child(2) { grid-area: 2 / 2; }
.swimlane-steps li:nth-child(3) { grid-area: 3 / 3; }
.swimlane-steps li:nth-child(4) { grid-area: 4 / 1; }
.swimlane-steps button { min-height: 2.7rem; gap: .24rem; padding: .22rem .25rem; font-size: .66rem; }
.swimlane-steps .step-number { flex-basis: .94rem; height: .94rem; font-size: .61rem; }
.swimlane-steps small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.process-board { position: relative; }
.process-scene .org-teams > .org-card { place-content: stretch; }
.process-scene .governance-role:is([data-node="accounts-lead"], [data-node="design-lead"], [data-node="delivery-lead"]) {
  position: relative;
  display: block;
  margin-top: .2rem;
  padding: .2rem .17rem;
  border: 1px solid #c8b9d8;
  border-radius: .22rem;
  background: #fbf9fe;
  font-size: .64rem;
  text-align: center;
}
.process-scene :is(.governance-role, .swimlane-headings span)[data-lane-match],
.process-scene :is(.governance-role, .swimlane-headings span)[data-lane-target] { border-color: #a86f21; background: #ffe5b0; color: var(--night); }
.process-scene :is(.governance-role, .swimlane-headings span)[data-lane-source] { border-color: #a86f21; border-style: dashed; }

.org-agent { display: none; }
.agents-scene {
  --agent-accent: #245d96;
  width: min(100%, 86rem);
  padding: clamp(1.4rem, 2.5vw, 2.4rem) clamp(1rem, 4vw, 3rem) 6rem;
}
.agents-scene[data-beat="shared"] { --agent-accent: #674198; }
.agents-scene[data-beat="autonomous"] { --agent-accent: #895814; }
.agents-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.32fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4rem);
  margin-top: clamp(1.4rem, 3vw, 2.7rem);
}
.agents-scene[data-beat="reporting"] .agents-layout { grid-template-columns: minmax(0, .74fr) minmax(0, 1.55fr); }
.agents-details { text-align: left; }
.agents-kind {
  margin: 0 0 .45rem;
  color: var(--agent-accent);
  font: 700 .73rem/1.2 ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.agents-details h3 { margin: 0; font-size: clamp(1.75rem, 3.65vw, 3.9rem); line-height: 1; letter-spacing: -.06em; text-wrap: balance; }
.agents-details :is([data-agent-description], .agent-accountability) { margin: .85rem 0 0; color: var(--muted-night); font-size: clamp(.9rem, 1.5vw, 1.15rem); line-height: 1.42; }
.agents-details .agent-accountability { color: var(--night-text); }
.agent-options { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.agent-options button {
  min-height: 2.6rem;
  padding: .4rem .58rem;
  border: 1px solid #b9a9ce;
  border-radius: .3rem;
  background: #f1ebf8;
  color: var(--night-text);
  font: inherit;
  font-size: .75rem;
  font-weight: 650;
  cursor: pointer;
}
.agent-options button:hover { border-color: var(--agent-accent); }
.agent-options button[aria-pressed="true"] { background: color-mix(in srgb, var(--agent-accent) 17%, white); border-color: var(--agent-accent); color: var(--night); }
.agent-network {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: .85rem clamp(.55rem, 2vw, 1.25rem) 1.05rem;
  border: 1px solid var(--chart-edge);
  border-radius: .65rem;
  background: linear-gradient(150deg, #ffffff, var(--chart-surface) 58%, #eee8f8);
  box-shadow: 0 5px #e8ddf2, 0 6px var(--chart-edge), 0 25px 42px #38265a18;
}
.agent-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 5vw, 5rem); text-align: left; }
.agent-column { display: grid; align-content: start; gap: .52rem; }
.agent-column h4 { margin: .7rem 0 .08rem; color: var(--muted-night); font: 700 .72rem/1.15 ui-monospace, monospace; }
.agent-person, .agent-card {
  display: grid;
  gap: .2rem;
  min-width: 0;
  padding: .47rem .58rem;
  border: 1px solid #bdadd0;
  border-radius: .34rem;
  background: #e8ddf7;
  font-size: clamp(.73rem, 1.32vw, .89rem);
  overflow-wrap: anywhere;
}
.agent-person span, .agent-card span { color: var(--muted-night); font-size: .73rem; }
.agent-card { border-color: #79acd7; border-style: dashed; background: #edf6ff; }
.agent-card-shared { border-color: #e6d9ff; background: #f1e9fc; }
.agent-card-autonomous, .agent-trigger { border-color: #a86f21; background: #fff4db; }
.agent-chart { min-width: 0; }
.agent-chart-key { margin: 0 0 .65rem; color: var(--muted-night); font: 700 .72rem/1.3 ui-monospace, monospace; }
.agent-chart .chart-viewport { --camera-x: 4deg; --camera-y: -4deg; --camera-z: 0deg; margin: 0 auto; }
.agent-chart .chart-board { padding-inline: .65rem; }
.agents-scene[data-beat="reporting"] .org-agent {
  display: grid;
  gap: .12rem;
  padding: .38rem .29rem;
  border: 1px dashed var(--agent-accent);
  border-radius: .32rem;
  background: #ecf5ff;
  color: var(--night-text);
  font-size: .69rem;
  line-height: 1.15;
}
.org-agent small { color: #4f5e75; font-size: .63rem; }
.org-agent-executive {
  position: absolute;
  top: 0;
  left: calc(50% + 5.75rem);
  max-width: min(11rem, calc(50% - 5.8rem));
  text-align: left;
}
.org-agent-executive::before { content: ""; position: absolute; top: 50%; right: 100%; width: .95rem; border-top: 1px dashed var(--agent-accent); }
.agents-scene[data-beat="reporting"] .org-branch { padding-inline: .24rem; }

@media (max-width: 860px) {
  .agents-layout, .agents-scene[data-beat="reporting"] .agents-layout { grid-template-columns: minmax(0, 1fr); max-width: 43rem; margin-inline: auto; }
  .agents-details { max-width: 36rem; }
}
@media (max-width: 590px) {
  .agent-chart .org-root { padding-bottom: 1.8rem; }
  .agent-chart .org-lead { min-width: 7.7rem; font-size: .88rem; }
  .org-agent-executive { left: calc(50% + 4.54rem); max-width: calc(50% - 4.6rem); }
  .org-agent-executive::before { width: .66rem; }
  .agent-person span, .agent-card span { font-size: .66rem; }
}

.proposal-scene, .offer-scene {
  --handoff-accent: #d7edff;
  --handoff-ink: var(--accent);
  width: min(100%, 87rem);
  padding: clamp(1.25rem, 2.2vw, 2.25rem) clamp(1rem, 3vw, 2.7rem) 6rem;
}
.proposal-scene .scene-kicker, .offer-scene .scene-kicker { margin: 0 0 .65rem; color: var(--accent); font-size: .73rem; }
.proposal-scene .capability-heading h2 { max-width: 38ch; }
.proposal-scene .proposal-copy, .offer-scene .capability-heading > p:last-child { max-width: 69ch; margin-inline: auto; }
.proposal-options { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 0; }
.proposal-options button {
  min-height: 2.35rem;
  padding: .3rem .58rem;
  border: 1px solid #b9a9ce;
  border-radius: .3rem;
  background: #f1ebf8;
  color: var(--night-text);
  font: inherit;
  font-size: .72rem;
  font-weight: 650;
  cursor: pointer;
}
.proposal-options button:hover { border-color: var(--accent); }
.proposal-options button[aria-pressed="true"] { border-color: var(--accent); background: var(--lime); color: var(--night); }
.shared-thread { margin: .8rem 0 -.45rem; text-align: center; color: var(--accent); font: 700 .72rem/1.2 ui-monospace, monospace; }
.proposal-layout { margin-top: .85rem; }
.proposal-layout .hr-pillar { padding-bottom: .65rem; }

.graph-scene { width: min(100%, 78rem); padding-top: clamp(1.25rem, 2.25vw, 2.25rem); }
.graph-scene .capability-heading p { min-height: 1.35em; }
.workchart-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(4.25rem, 1fr));
  align-items: center;
  gap: clamp(1.05rem, 2.8vw, 2.4rem);
  max-width: 63rem;
  min-width: 0;
  margin: clamp(1.1rem, 2.3vw, 2.1rem) auto 0;
  padding: clamp(.65rem, 2.4vw, 1.65rem);
  border: 1px solid #c1b3d0;
  border-radius: .65rem;
  background: radial-gradient(ellipse at center, #eee4fa 0, transparent 67%), radial-gradient(#cab7df 1px, transparent 1px) 0 0 / 19px 19px, #faf7fe;
  box-shadow: 0 .4rem 0 #eee7f4, 0 1rem 2rem #38265a15;
}
.graph-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: .3rem;
  min-width: 0;
  min-height: 4.1rem;
  padding: .45rem .35rem;
  border: 1px solid #b6a5cd;
  border-radius: .38rem;
  background: #f9f5fd;
  color: var(--night-text);
  font: inherit;
  line-height: 1.14;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.graph-node span, .graph-node small { color: var(--muted-night); font: 700 clamp(.56rem, .9vw, .72rem)/1.1 ui-monospace, monospace; }
.graph-node strong { font-size: clamp(.7rem, 1.4vw, 1.08rem); }
.graph-node:hover { border-color: var(--accent); }
.graph-node[aria-pressed="true"] { border-color: var(--accent); background: var(--lime); color: var(--night); box-shadow: 0 0 1rem #5078db38; }
.graph-node[aria-pressed="true"] :is(span, small) { color: #324c73; }
.graph-centre { grid-area: 2 / 2; min-height: 5.2rem; border-color: #9ab6d8; background: #eef7ff; }
.graph-centre strong { font-size: clamp(1rem, 3vw, 2rem); letter-spacing: -.065em; }
.graph-node[data-node="forums"] { grid-area: 1 / 1; }
.graph-node[data-node="journeys"] { grid-area: 1 / 2; }
.graph-node[data-node="capabilities"] { grid-area: 1 / 3; }
.graph-node[data-node="roles"] { grid-area: 2 / 1; }
.graph-node[data-node="processes"] { grid-area: 2 / 3; }
.graph-node[data-node="teams"] { grid-area: 3 / 1; }
.graph-node[data-node="agents"] { grid-area: 3 / 3; }
.workchart-map .communication-overlay { z-index: 0; transform: none; }
.scene.is-entering .workchart-map { animation: graph-pullback 1.2s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes graph-pullback { from { opacity: .15; transform: scale(1.15) translateY(15px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.baseline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1rem, 3.5vw, 3rem);
  max-width: 65rem;
  margin: clamp(1.3rem, 3vw, 2.25rem) auto 0;
  text-align: left;
}
.baseline-board, .baseline-benefit {
  border: 1px solid #b9aacd;
  border-radius: .55rem;
  background: linear-gradient(150deg, #fcfaff, #f3edf9);
  box-shadow: 0 .28rem #eee5f3;
}
.baseline-board { padding: clamp(.9rem, 2vw, 1.35rem); }
.baseline-elements { display: flex; flex-wrap: wrap; gap: .35rem; margin: .85rem 0 1.1rem; padding: 0; list-style: none; }
.baseline-elements li { padding: .25rem .36rem; border: 1px solid #c2b2d5; border-radius: .25rem; color: var(--muted-night); font: 700 .67rem/1.2 ui-monospace, monospace; }
.baseline-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 0; padding: 0; list-style: none; }
.baseline-route li { position: relative; padding: .7rem .3rem; border: 1px solid #ae97c5; border-radius: .32rem; background: #ede5f7; color: var(--night-text); font-size: .78rem; font-weight: 700; text-align: center; }
.baseline-route li:not(:last-child)::after { content: "→"; position: absolute; left: 100%; width: .9rem; color: var(--muted-night); }
.baseline-route li:nth-child(2)::after { color: var(--accent); }
.baseline-board > p, .baseline-benefit p { margin: .8rem 0 0; color: var(--muted-night); font-size: .9rem; line-height: 1.44; }
.baseline-benefits { display: grid; gap: .8rem; }
.baseline-benefit { padding: .9rem 1rem; }
.baseline-benefit h3 { margin: 0; font-size: clamp(1.05rem, 1.85vw, 1.45rem); letter-spacing: -.035em; }
.baseline-benefit p { margin-top: .4rem; }
.offer-scene[data-beat="baseline"] .baseline-board,
.offer-scene[data-beat="visibility"] [data-benefit="visibility"],
.offer-scene[data-beat="optimisation"] [data-benefit="optimisation"] { border-color: var(--accent); }
.offer-scene[data-beat="visibility"] [data-benefit="visibility"] h3,
.offer-scene[data-beat="optimisation"] [data-benefit="optimisation"] h3 { color: var(--accent); }

@media (max-width: 720px) {
  .baseline-layout { grid-template-columns: minmax(0, 1fr); }
  .workchart-map { grid-template-rows: repeat(3, minmax(3.8rem, 1fr)); gap: .66rem; }
  .graph-node { min-height: 3.65rem; }
  .graph-centre { min-height: 4.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .scene.is-entering .workchart-map { animation: none; }
  .graph-node { transition: none; }
}

.finance-scene {
  --handoff-accent: #ffedc3;
  width: min(100%, 87rem);
  padding: clamp(1.3rem, 2.3vw, 2rem) clamp(1rem, 3vw, 2.7rem) 6rem;
}
.finance-scene .capability-heading > p { max-width: 72ch; margin-inline: auto; }
.finance-scene .capability-heading .finance-mapping { margin-top: .45rem; font-size: clamp(.84rem, 1.45vw, 1.03rem); }
.finance-mapping strong { color: var(--handoff-ink); }
.finance-pillar { border-color: #d5be8c; background: linear-gradient(150deg, #fffaf1, #f9f0df 75%); }
.finance-pillar .pillar-heading { color: #805215; }
.finance-options { display: grid; gap: .45rem; margin-top: .65rem; }
.finance-options button {
  display: grid;
  gap: .24rem;
  min-height: 2.75rem;
  padding: .48rem;
  border: 1px solid #b9aacd;
  border-radius: .35rem;
  background: #f1ebf8;
  color: var(--night-text);
  font: inherit;
  text-align: left;
}
.finance-options button:not(:disabled) { cursor: pointer; }
.finance-options button:not(:disabled):hover { border-color: var(--handoff-ink); }
.finance-options span { color: inherit; font: 700 .68rem/1.16 ui-monospace, monospace; }
.finance-options strong { font-size: .78rem; line-height: 1.24; }
.finance-options button[aria-pressed="true"] { border-color: var(--handoff-ink); background: var(--handoff-accent); color: var(--night); }
.proposal-layout { grid-template-columns: minmax(0, 1.09fr) repeat(4, minmax(0, 1fr)); gap: .72rem; }
.graph-node[data-node="finance"] { grid-area: 3 / 2; }
@media (max-width: 720px) {
  .finance-layout .finance-pillar { grid-row: 1; }
}

.graph-modes { margin-top: .8rem; }
.underlying-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s ease;
}
.workchart-map[data-detail="true"] .underlying-graph { opacity: 1; }
.workchart-map[data-detail="true"] { background-color: #f7f2fb; }
.graph-node:disabled { cursor: default; }
.graph-node[data-route-member] { border-color: #6689c3; background: #edf4ff; color: #223a58; }
.graph-node[data-route-member][aria-pressed="true"] { border-color: var(--accent); background: var(--lime); color: #223a58; }
.governance-route { display: flex; justify-content: center; flex-wrap: wrap; gap: .38rem 1.35rem; margin: .85rem auto 0; padding: 0; list-style: none; }
.governance-route li { position: relative; padding: .33rem .42rem; border: 1px solid #b9aace; border-radius: .3rem; background: #f2ebf9; color: #33264c; font: 700 .69rem/1.2 ui-monospace, monospace; }
.governance-route li:not(:last-child)::after { content: "→"; position: absolute; left: calc(100% + .3rem); color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .underlying-graph { transition: none; }
}

:is(.capability-layout, .process-layout, .journey-layout, .proposal-layout) { position: relative; }
.pillar-sketch { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.proposal-strip { min-width: 0; max-width: 100%; overflow-x: auto; padding: .35rem .25rem .65rem; scrollbar-color: #aa96c1 #f4eef9; }
.proposal-layout { display: grid; align-items: stretch; min-width: 45rem; margin-top: 1.1rem; text-align: center; }
.proposal-layout .hr-pillar { padding: .7rem .65rem .95rem; }
.proposal-layout .pillar-heading { min-height: 2.75rem; margin-bottom: .65rem; }
.proposal-layout .fixed-pillar-title { font-size: clamp(.93rem, 1.54vw, 1.32rem); line-height: 1.16; text-wrap: balance; }
.pillar-motif {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(90%, 8rem);
  height: 5rem;
  margin: 0 auto .55rem;
  color: #785b9e;
}
.pillar-motif i { display: block; height: .9rem; border: 1px solid currentColor; border-radius: .15rem; background: #eae0f7; }
.motif-org { gap: .65rem; }
.motif-org > i { width: 2.1rem; background: #cfe6ff; }
.motif-org > span { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; width: 100%; }
.motif-org > span::before { content: ""; position: absolute; left: 15%; right: 15%; top: -.35rem; height: .35rem; border: 1px solid currentColor; border-bottom: 0; }
.motif-org > span i:last-child { background: #cfe6ff; }
.motif-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; width: min(72%, 6rem); }
.motif-capabilities i { width: 100%; height: 1.25rem; }
.motif-capabilities i:nth-child(3) { background: #cfe6ff; }
.motif-process { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .28rem; }
.motif-process::before, .motif-journey::before {
  content: "";
  position: absolute;
  left: .3rem;
  right: .3rem;
  top: 50%;
  border-top: 1px dashed currentColor;
}
.motif-process i, .motif-journey i { position: relative; width: .85rem; height: .85rem; border-radius: 50%; }
.motif-process i:nth-of-type(2), .motif-journey i:nth-of-type(2) { background: #cfe6ff; }
.motif-journey { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem; }
.motif-finance { justify-items: start; gap: .24rem; width: min(75%, 6rem); }
.motif-finance i { width: 63%; height: .62rem; }
.motif-finance i:nth-child(2) { width: 90%; background: #f6dfaa; }
.motif-finance i:nth-child(3) { width: 75%; }
.motif-label { display: grid; gap: .25rem; margin: 0; padding: .65rem .3rem; border: 1px solid #c8b8d9; border-radius: .3rem; background: #faf7fe; font-size: .85rem; line-height: 1.2; }
.motif-label span { color: var(--muted-night); font: 700 .66rem/1.2 ui-monospace, monospace; }
.proposal-scene:not([data-beat="pillars"]) .motif-label { background: #e8f4ff; border-color: #84a9d7; }

.first-step-button {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: .55rem .82rem;
  border: 1px solid var(--accent);
  border-radius: .35rem;
  background: var(--lime);
  color: var(--night);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.first-step-button:hover { background: #c4e4ff; }
.next-step-scene { width: min(100%, 76rem); padding-top: clamp(1.25rem, 2.4vw, 2.2rem); }
.next-step-scene .capability-heading p { max-width: 62ch; margin-inline: auto; }
.next-step-content { max-width: 64rem; margin: clamp(1.25rem, 2.6vw, 2rem) auto 0; text-align: left; }
.next-step-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.next-step-paths section, .twin-path {
  border: 1px solid #bcaacf;
  border-radius: .5rem;
  background: #f8f3fc;
  box-shadow: 0 .2rem #eee5f3;
}
.next-step-paths section { padding: .85rem .9rem; }
.next-step-paths section:nth-child(2) { border-color: #d2b891; background: #fff8e9; }
.next-step-paths section:nth-child(3), .twin-path { border-color: #a9beda; background: #f2f8ff; }
.next-step-paths h3, .twin-path h3 { margin: 0; font-size: clamp(.98rem, 1.6vw, 1.24rem); line-height: 1.16; letter-spacing: -.025em; }
.next-step-paths p { margin: .45rem 0 0; color: var(--muted-night); font-size: .875rem; line-height: 1.37; }
.twin-path { margin-top: .75rem; padding: .9rem; }
.twin-path ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem 1.05rem; margin: .65rem 0 0; padding: 0; list-style: none; }
.twin-path li { position: relative; display: grid; align-content: start; gap: .25rem; padding: .55rem .6rem; border: 1px solid #b2c6e2; border-radius: .3rem; background: #fff; }
.twin-path li:not(:last-child)::after { content: "→"; position: absolute; top: .55rem; left: 100%; width: 1.05rem; text-align: center; color: var(--accent); }
.twin-path strong { font-size: .84rem; }
.twin-path span { color: var(--muted-night); font-size: .78rem; line-height: 1.3; }
@media (max-width: 740px) {
  .next-step-paths, .twin-path ol { grid-template-columns: 1fr; }
  .twin-path li:not(:last-child)::after { content: none; }
}
