/* Each chapter has one primary composition; controls stay outside the scene. */
.work-story {
  --story-ink: #eeeef1;
  --story-muted: #a5a5ae;
  --story-line: #ffffff16;
  --story-fill: #ffffff06;
  --story-raised: #242427;
  --story-success: var(--accent);
  --story-denied: #d5aaa7;
  --story-pending: #d7c39f;
  color: var(--story-ink);
}
:root[data-theme="light"] .work-story {
  --story-ink: #28282c;
  --story-muted: #686870;
  --story-line: #22222c18;
  --story-fill: #20202804;
  --story-raised: #f3f3f5;
  --story-denied: #925c57;
  --story-pending: #786340;
}
.work-story .narrative-visual {
  height: 460px;
}
.story-stage-label {
  position: absolute;
  top: 17px;
  left: 24px;
  right: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--story-muted);
  line-height: 20px;
}
.story-chapters {
  position: absolute;
  bottom: 42px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  z-index: 4;
}
.story-chapters button {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  color: var(--story-muted);
  border-radius: 50%;
}
.story-chapters button::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 4px;
  background: var(--story-line);
}
.story-chapters button[aria-pressed="true"]::after {
  width: 17px;
  height: 4px;
  background: var(--story-muted);
}
.story-chapters button > i,
.chapter-number {
  display: none;
}
.story-chapters button > span:not(.chapter-number) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.story-chapters button:focus-visible {
  outline: 2px solid var(--story-success);
  outline-offset: 1px;
}
.work-story .visual-state {
  height: 30px;
  bottom: 6px;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
.work-story .visual-state > i {
  display: none;
}
.work-story .story-caption {
  min-height: 158px;
}
.work-story .story-caption h2 {
  font-size: 25px;
}
.dispatch-journey,
.security-journey {
  position: relative;
  top: 57px;
  margin: 0 36px;
  height: 320px;
  opacity: var(--story-reveal, 1);
  transform: translateY(calc((1 - var(--story-reveal, 1)) * 7px));
}

/* Contributors enter the brain; shared recall and a portable package follow. */
.brain-journey {
  position: relative;
  top: 21px;
  margin: 0 36px;
  height: 320px;
}
.brain-contributors {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.contributor {
  position: absolute;
  width: 88px;
  left: -10px;
  top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--story-muted);
  font-size: 11px;
  text-align: center;
  opacity: calc(var(--source-presence, 1) * var(--story-reveal, 1));
  transform: translateY(calc((1 - var(--source-presence, 1)) * 5px));
}
.contributor:nth-child(2) {
  left: auto;
  right: -10px;
  top: 50px;
}
.contributor:nth-child(3) {
  top: 228px;
}
.contributor-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 42px;
  width: 66px;
  color: var(--accent);
}
.contributor-image > img {
  width: 37px;
  height: 37px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--feature-surface);
  filter: saturate(0.45);
}
.contributor-image > img + img {
  margin-left: -15px;
}
.contributor-image > svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.3;
}
.agent-source {
  border-radius: 14px;
  width: 42px;
  background: #e7ded7;
}
.agent-source > img {
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 0;
  object-fit: contain;
}
.source-access {
  display: none;
}
.brain-card[data-story-phase="1"] .source-contribution {
  display: none;
}
.brain-card[data-story-phase="1"] .source-access {
  display: flex;
}
.brain-streams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: var(--story-reveal, 1);
}
.brain-streams path {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.24;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.brain-streams circle {
  fill: var(--accent);
}
.brain-journey[data-renderer="webgl"] .brain-streams {
  display: none;
}
.brain-model .brain-canvas {
  pointer-events: none;
}
.brain-model {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(336px, 78%);
  aspect-ratio: 1.25;
  transform: translate(-50%, -50%);
}
.brain-model[data-renderer="fallback"] .brain-fallback {
  display: block;
}
.brain-owner,
.memory-origin {
  display: none;
}
.memory-receipt {
  display: none;
}
.brain-card[data-story-phase="1"] .memory-receipt {
  display: block;
  position: absolute;
  top: 282px;
  left: -8px;
  right: -8px;
  text-align: center;
  opacity: var(--story-reveal, 1);
}
.brain-card[data-story-phase="1"] .receipt-symbol,
.brain-card[data-story-phase="1"] [data-brain-kicker] {
  display: none;
}
.memory-receipt strong {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.memory-receipt div > span {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  line-height: 18px;
  color: var(--story-muted);
}
.brain-card[data-story-phase="2"] .brain-contributors {
  display: none;
}
.brain-card[data-story-phase="2"] .memory-receipt {
  position: absolute;
  top: 282px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: left;
  opacity: var(--story-reveal, 1);
}
.brain-card[data-story-phase="2"] .receipt-symbol {
  color: var(--story-muted);
  display: flex;
}
.brain-card[data-story-phase="2"] .receipt-symbol > svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.1;
}
.brain-card[data-story-phase="2"] .memory-receipt strong {
  font-size: 14px;
}
.brain-card[data-story-phase="2"] .memory-receipt div > span {
  margin-top: 2px;
}
.brain-card[data-story-phase="2"] .memory-receipt small {
  display: none;
}
.brain-export {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--story-success);
  background: var(--story-fill);
}
.brain-export > svg {
  width: 17px;
  height: 17px;
}
.brain-export[hidden] {
  display: none;
}

/* The identity stays; one aspect of growth changes beneath it. */
.employees-card .employee-heading {
  padding-bottom: 14px;
  text-align: center;
}
.employees-card .employee-heading p {
  margin-inline: auto;
  max-width: 42em;
}
.growth-visual {
  height: 486px;
  overflow: hidden;
}
.growth-profiles {
  position: relative;
  top: 52px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  margin: 0 36px;
}
.growth-profiles::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: color-mix(in srgb, var(--story-muted) 32%, transparent);
}
.employees-card .story-stage-label {
  top: 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 28px;
  color: var(--story-ink);
}
.growth-profile {
  min-width: 0;
  position: relative;
  height: 325px;
}
.growth-identity {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  height: 136px;
  text-align: center;
}
.growth-identity > img {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 20px;
  filter: saturate(0.45);
}
.growth-identity > div > span {
  display: block;
  font-size: 11px;
  color: var(--story-muted);
}
.growth-identity h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  margin-top: 5px;
}
.growth-version {
  display: none;
}
.growth-calls {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: 300px;
  transform: translateX(-50%);
  height: 80px;
  pointer-events: none;
}
.growth-call-scene {
  position: absolute;
  inset: 0;
}
.growth-call-scene[hidden] {
  display: none;
}
.growth-call {
  position: absolute;
  top: 8px;
  width: 28%;
  max-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  line-height: 15px;
  color: var(--story-muted);
  opacity: calc(var(--call-show, 0) * var(--story-reveal, 1));
  transform: translateY(calc((1 - var(--call-show, 0)) * 5px));
}
.growth-call-left {
  left: 0;
}
.growth-call-right {
  right: 0;
}
.growth-call::before {
  content: "";
  position: absolute;
  width: 28%;
  height: 1px;
  top: 20px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--story-muted),
    transparent
  );
  opacity: 0.5;
  transform: translateX(calc((var(--call-flow, 0) - 0.5) * 12px));
}
.growth-call-left::before {
  left: 100%;
}
.growth-call-right::before {
  right: 100%;
}
.call-symbol {
  width: 40px;
  height: 40px;
  border: 1px solid var(--story-line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--story-fill);
  box-shadow: inset 0 1px #ffffff0a;
}
.call-symbol > svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.4;
}
.call-symbol[data-tone="dark"] {
  background: #303034;
}
.call-symbol[data-tone="warm"] {
  background: #e7ded7;
}
.call-symbol > img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: grayscale(1);
}
.growth-call[data-complete="true"] .call-symbol {
  border-color: color-mix(in srgb, var(--story-muted) 35%, transparent);
  color: var(--story-ink);
}
.growth-capabilities {
  position: absolute;
  top: 162px;
  left: 0;
  right: 0;
  height: 130px;
  opacity: var(--story-reveal, 1);
}
.growth-row {
  display: none;
}
.employees-card[data-story-phase="0"] .growth-row:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 130px;
}
.growth-row:first-child > svg {
  width: 38px;
  height: 38px;
  color: var(--story-muted);
  stroke-width: 1.2;
}
.growth-row:first-child > span {
  display: none;
}
.growth-row:first-child > strong {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}
.employees-card[data-story-phase="1"] .memory-growth-row {
  display: block;
  text-align: center;
}
.memory-growth-row > svg,
.memory-growth-row > span {
  display: none;
}
.growth-memory {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.memory-documents {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 88px;
  padding: 5px 0;
}
.memory-documents > span {
  width: 54px;
  height: 72px;
  border: 1px solid var(--story-line);
  border-radius: 10px;
  background: var(--story-raised);
  display: grid;
  place-items: center;
  box-shadow: 0 5px 12px #00000006;
}
.memory-documents > span:nth-child(1) {
  transform: rotate(-12deg) translate(4px, 4px);
}
.memory-documents > span:nth-child(2) {
  position: relative;
  z-index: 1;
  transform: translateY(-3px);
}
.memory-documents > span:nth-child(3) {
  transform: rotate(12deg) translate(-4px, 4px);
}
.memory-documents svg {
  width: 25px;
  height: 25px;
  color: var(--story-muted);
  stroke-width: 1.1;
}
.memory-segments {
  display: none;
}
.growth-memory > span {
  font-size: 11px;
  color: var(--story-muted);
}
.growth-memory b {
  color: var(--story-ink);
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}
.employees-card[data-story-phase="2"] .growth-skill-row {
  display: block;
  padding-top: 18px;
}
.growth-skill-row > svg,
.growth-skill-row > span {
  display: none;
}
.growth-skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 300px;
  margin-inline: auto;
}
.growth-skills > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 14px;
  font-size: 12px;
  color: var(--story-muted);
}
.growth-skills svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.3;
  opacity: 0.3;
}
.growth-skills [data-ready="true"] svg {
  opacity: 1;
  color: var(--story-success);
}
.skill-ready {
  position: absolute;
  top: 0;
  left: calc(50% + 20px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--story-line);
}
[data-ready="true"] > .skill-ready {
  background: var(--story-success);
}
.growth-event {
  display: none;
}
.employees-card[data-story-phase="1"] .growth-event,
.employees-card[data-story-phase="2"] .growth-event {
  display: block;
  position: absolute;
  top: 305px;
  left: 0;
  right: 0;
  text-align: center;
}
.growth-event > svg,
.growth-event-mark,
.growth-event small {
  display: none;
}
.growth-event strong {
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 18px;
  color: var(--story-muted);
}
.growth-persona {
  display: none;
}
.employees-card[data-story-phase="3"] .growth-persona {
  display: flex;
  position: absolute;
  top: 166px;
  left: 0;
  right: 0;
  height: 130px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  opacity: var(--story-reveal, 1);
}
.growth-persona > small {
  order: 2;
  font-size: 11px;
  color: var(--story-muted);
  margin-top: 22px;
}
.growth-persona > strong {
  order: 3;
  font-size: 16px;
  font-weight: 500;
  margin-top: 9px;
  text-align: center;
  line-height: 1.5;
}
.persona-trace {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 42px;
}
.persona-trace i {
  width: 3px;
  height: calc(11px + var(--growth, 0) * 20px);
  border-radius: 2px;
  background: var(--story-success);
  opacity: 0.6;
}
.persona-trace i:nth-child(2n) {
  height: calc(7px + var(--growth, 0) * 35px);
}
.persona-trace i:nth-child(3n) {
  height: calc(13px + var(--growth, 0) * 12px);
}
.employees-card .employee-footnote {
  text-align: center;
}

/* Plan, delegate and archive occupy the same stage, never all at once. */
.agent-matrix {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 320px);
  margin: 26px auto 0;
}
.agents-card[data-story-phase="0"] .agent-matrix {
  display: grid;
}
.agents-card[data-story-phase="0"] .dispatch-brief,
.agents-card[data-story-phase="0"] .dispatch-work {
  display: none;
}
.agent-matrix-cell {
  display: block;
  aspect-ratio: 1;
  min-width: 0;
  will-change: opacity, transform;
}
.agent-matrix-cell > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #f0f0f2;
  box-shadow:
    inset 0 1px #ffffff60,
    inset 0 -1px #00000014;
}
.agent-matrix-cell[data-tone="dark"] > span {
  background: #2d2d30;
}
.agent-matrix-cell[data-tone="warm"] > span {
  background: #e7ded7;
}
.agent-matrix-cell img {
  width: 54%;
  height: 54%;
  object-fit: contain;
  filter: saturate(0.7);
}
.dispatch-brief {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
  padding: 0 15px;
  border: 1px solid var(--story-line);
  border-radius: 18px;
  background: var(--story-fill);
}
.dispatch-brief > img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.dispatch-brief > div {
  flex: 1;
  min-width: 0;
}
.dispatch-brief small {
  display: block;
  font-size: 10px;
  color: var(--story-muted);
}
.dispatch-brief strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  margin-top: 3px;
}
.dispatch-count {
  font-size: 11px;
  color: var(--story-muted);
  font-variant-numeric: tabular-nums;
}
.dispatch-count b {
  color: var(--story-ink);
  font-weight: 500;
}
.dispatch-work {
  position: relative;
  height: 220px;
}
.dispatch-lanes {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.dispatch-lanes::before {
  content: "";
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 27px;
  height: 18px;
  border: 1px solid var(--story-line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.dispatch-lane {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
  padding-top: 62px;
  opacity: var(--lane-reveal, 1);
  transform: translateY(calc((1 - var(--lane-reveal, 1)) * 8px));
}
.dispatch-wire {
  position: absolute;
  top: 0;
  height: 62px;
  width: 1px;
  background: var(--story-line);
}
.dispatch-wire i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: var(--story-success);
  left: -1.5px;
  top: calc(var(--packet, 0) * 58px);
  opacity: 0.6;
}
.dispatch-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #e3e4e7;
}
.dispatch-logo[data-brand="Cursor"] {
  background: #292a30;
}
.dispatch-logo[data-brand="Claude"] {
  background: #e6dcd4;
}
.dispatch-logo > img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: saturate(0.6);
}
.task-symbol {
  display: none;
}
.agents-card[data-story-phase="0"] .dispatch-logo {
  display: none;
}
.agents-card[data-story-phase="0"] .task-symbol {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--story-muted);
}
.task-symbol > svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.2;
}
.dispatch-lane > strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  margin-top: 16px;
  text-align: center;
}
.dispatch-lane > small {
  font-size: 10px;
  color: var(--story-muted);
  margin-top: 6px;
}
.lane-progress {
  height: 2px;
  width: 64%;
  background: var(--story-line);
  margin-top: 14px;
}
.lane-progress i {
  display: block;
  width: var(--task-fill, 0);
  height: 100%;
  background: var(--story-success);
}
.lane-output {
  display: none;
}
.agents-card[data-story-phase="0"] .dispatch-lane > small,
.agents-card[data-story-phase="0"] .lane-progress,
.agents-card[data-story-phase="0"] .dispatch-count {
  visibility: hidden;
}
.asset-ledger {
  display: none;
}
.agents-card[data-story-phase="1"] .asset-ledger {
  display: block;
  text-align: center;
  margin-top: 6px;
}
.agents-card[data-story-phase="1"] .asset-ledger > span,
.agents-card[data-story-phase="1"] .asset-ledger small,
.agents-card[data-story-phase="1"] .asset-ledger strong {
  display: none;
}
.asset-ledger div > span {
  font-size: 11px;
  line-height: 19px;
  color: var(--story-muted);
}
.agents-card[data-story-phase="2"] .dispatch-brief,
.agents-card[data-story-phase="2"] .dispatch-work {
  display: none;
}
.agents-card[data-story-phase="2"] .asset-ledger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 320px;
  text-align: center;
  gap: 25px;
}
.asset-stack > svg {
  width: 76px;
  height: 76px;
  stroke-width: 1;
  color: var(--story-success);
}
.asset-ledger small {
  display: block;
  font-size: 11px;
  color: var(--story-muted);
  margin-bottom: 9px;
}
.asset-ledger strong {
  display: block;
  font-size: 19px;
  font-weight: 500;
  line-height: 27px;
  margin-bottom: 10px;
}
.asset-save {
  display: none;
}

/* Data gates, human approval and audit are separate shots. */
.access-request {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
}
.access-request > span:first-child > svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.3;
  color: var(--story-muted);
}
.access-request > div {
  flex: 1;
  min-width: 0;
}
.access-request small {
  display: none;
}
.access-request strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}
.access-badge {
  color: var(--story-success);
  font-size: 10px;
  flex: none;
}
.access-diagram {
  display: grid;
  grid-template-columns: 48px 1fr 82px 1fr 48px;
  align-items: center;
  height: 132px;
  gap: 6px;
}
.access-party {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--story-muted);
  font-size: 10px;
  white-space: nowrap;
}
.access-party > svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.3;
}
.access-gate {
  position: relative;
  height: 92px;
  width: 82px;
  color: var(--story-success);
}
.access-gate > svg {
  width: 82px;
  height: 92px;
  stroke-width: 1;
  fill: var(--story-fill);
}
.access-gate > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 5px;
}
.access-gate > span > svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.5;
}
.access-path {
  position: relative;
  height: 30px;
  overflow: hidden;
  margin-top: -20px;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}
.access-path::before {
  content: "";
  position: absolute;
  inset: 5px 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 4px,
    var(--story-line) 4px 5px
  );
  border-radius: 50%;
}
.access-path > i {
  position: absolute;
  top: calc(5px + var(--strand) * 5px);
  left: calc(var(--fiber-flow, 0) * 160% - 60%);
  width: 65%;
  height: 1px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--story-muted) 65%,
    var(--story-ink) 92%,
    transparent
  );
  box-shadow: 0 0 4px color-mix(in srgb, var(--story-muted) 55%, transparent);
  opacity: 0.85;
}
.security-card .gate-pending,
.security-card .gate-deny {
  opacity: 0;
}
.security-card[data-access="blocked"] .access-gate,
.security-card[data-access="blocked"] .access-badge {
  color: var(--story-denied);
}
.security-card[data-access="blocked"] .gate-allow,
.security-card[data-access="pending"] .gate-allow {
  opacity: 0;
}
.security-card[data-access="blocked"] .gate-deny,
.security-card[data-access="pending"] .gate-pending {
  opacity: 1;
}
.security-card[data-access="blocked"] .access-path-out > i,
.security-card[data-access="pending"] .access-path-out > i {
  opacity: 0;
}
.security-card[data-access="pending"] .access-gate,
.security-card[data-access="pending"] .access-badge {
  color: var(--story-pending);
}
.access-detail {
  margin-top: 19px;
}
.scope-row {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 38px;
  font-size: 12px;
}
.scope-row > svg {
  width: 14px;
  height: 14px;
  color: var(--story-muted);
  flex: none;
}
.scope-row > span {
  flex: 1;
}
.scope-row > strong {
  font-size: 10px;
  font-weight: 400;
  color: var(--story-muted);
}
.scope-row:first-child > svg,
.scope-row:first-child > strong {
  color: var(--story-success);
}
.scope-note {
  display: none;
}
.blocked-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding-top: 8px;
}
.blocked-result > svg {
  display: none;
}
.blocked-result > strong {
  font-size: 16px;
  font-weight: 500;
}
.blocked-result > span {
  font-size: 11px;
  color: var(--story-muted);
  line-height: 18px;
}
.security-card[data-story-phase="2"] .access-request,
.security-card[data-story-phase="2"] .access-diagram,
.security-card[data-story-phase="3"] .access-request,
.security-card[data-story-phase="3"] .access-diagram {
  display: none;
}
.security-card[data-story-phase="2"] .access-detail {
  padding: 29px 24px;
  border: 1px solid var(--story-line);
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--story-raised) 86%, white),
    var(--story-raised) 65%
  );
  border-radius: 28px;
  box-shadow:
    0 16px 38px #0000001c,
    0 3px 8px #0000000a,
    inset 0 1px #ffffff15;
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  margin: 0;
}
.approval-owner {
  display: flex;
  align-items: center;
  gap: 11px;
}
.approval-owner > img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  filter: saturate(0.45);
}
.approval-owner > div {
  flex: 1;
  min-width: 0;
}
.approval-owner small {
  display: block;
  font-size: 10px;
  color: var(--story-muted);
}
.approval-owner strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  margin-top: 5px;
}
.approval-owner > span {
  display: none;
}
.approval-scope {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
  font-size: 11px;
  line-height: 18px;
  color: var(--story-muted);
}
.approval-scope > svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.approval-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.approval-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--story-ink);
  color: var(--story-raised);
  box-shadow:
    inset 0 1px #ffffff20,
    0 2px 5px #00000010;
  font-size: 12px;
}
.approval-actions button:first-child {
  width: 38px;
  padding: 0;
  color: var(--story-muted);
  background: var(--story-fill);
  border: 1px solid var(--story-line);
}
.approval-actions button > svg {
  width: 15px;
  height: 15px;
}
.approval-actions[data-approved="true"] button:last-child {
  color: var(--story-raised);
  box-shadow: inset 0 0 0 1px var(--story-muted);
}
.security-card[data-story-phase="3"] .access-detail {
  margin-top: 0;
  padding-top: 66px;
}
.audit-row {
  display: grid;
  grid-template-columns: 34px 15px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  font-size: 12px;
  border-bottom: 1px solid var(--story-line);
}
.audit-row time {
  font-size: 10px;
  color: var(--story-muted);
  font-variant-numeric: tabular-nums;
}
.audit-row > svg {
  width: 14px;
  height: 14px;
  color: var(--story-success);
}
.audit-row:nth-child(2) > svg {
  color: var(--story-denied);
}
.audit-row > strong {
  font-size: 10px;
  font-weight: 400;
  color: var(--story-muted);
}
.audit-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 24px;
  font-size: 10px;
  color: var(--story-muted);
}
.audit-footer > svg {
  width: 13px;
  height: 13px;
}
.access-pane[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .growth-profiles::before {
    display: none;
  }
  .growth-visual {
    height: 866px;
  }
  .growth-profiles {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-inline: 36px;
  }
  .growth-profile {
    height: 330px;
  }
  .growth-profile + .growth-profile {
    border-top: 1px solid
      color-mix(in srgb, var(--story-muted) 32%, transparent);
    padding-top: 24px;
    height: 354px;
  }
  .growth-profile + .growth-profile .growth-capabilities {
    top: 186px;
  }
  .growth-profile + .growth-profile .growth-event {
    top: 329px;
  }
  .growth-profile + .growth-profile .growth-persona {
    top: 190px;
  }
}
@media (max-width: 760px) {
  .brain-journey,
  .dispatch-journey,
  .security-journey {
    margin-inline: 24px;
  }
  .growth-profiles {
    margin-inline: 24px;
  }
  .growth-identity {
    gap: 12px;
  }
  .growth-identity > img {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }
  .growth-identity h3 {
    font-size: 18px;
  }
  .work-story .story-caption h2 {
    font-size: 23px;
  }
  .work-story .visual-state {
    font-size: 11px;
  }
  .growth-persona > strong {
    font-size: 15px;
  }
  .memory-receipt strong {
    font-size: 15px;
  }
}
@media (max-width: 370px) {
  .agent-matrix {
    gap: 18px;
    margin-top: 44px;
  }
  .growth-call {
    font-size: 9px;
  }
  .brain-journey,
  .dispatch-journey,
  .security-journey {
    margin-inline: 20px;
  }
  .contributor {
    width: 68px;
    font-size: 10px;
  }
  .contributor-image {
    height: 36px;
  }
  .contributor-image > img {
    width: 31px;
    height: 31px;
  }
  .agent-source {
    width: 36px;
  }
  .agent-source > img {
    width: 24px;
    height: 24px;
  }
  .brain-card[data-story-phase="2"] .memory-receipt {
    gap: 8px;
  }
  .brain-card[data-story-phase="2"] .memory-receipt strong {
    font-size: 12px;
  }
  .brain-card[data-story-phase="2"] .memory-receipt div > span {
    font-size: 10px;
  }
  .dispatch-lanes {
    gap: 8px;
  }
  .dispatch-lane > strong {
    font-size: 11px;
  }
  .dispatch-brief {
    padding-inline: 10px;
    gap: 9px;
  }
  .dispatch-brief strong {
    font-size: 14px;
  }
  .access-request {
    gap: 8px;
  }
  .access-request strong {
    font-size: 12px;
  }
  .scope-row {
    font-size: 11px;
  }
  .audit-row {
    gap: 6px;
    font-size: 10px;
  }
  .audit-row strong {
    font-size: 9px;
  }
  .security-card[data-story-phase="2"] .access-detail {
    padding: 24px 17px;
  }
  .approval-owner strong {
    font-size: 13px;
  }
  .growth-profiles {
    margin-inline: 24px;
  }
  .growth-identity {
    gap: 13px;
  }
  .growth-identity h3 {
    font-size: 17px;
  }
}
