/* A concise explanation and its concrete example share the same reading flow. */
.balanced-journey { padding: 60px 0 54px; }
.balanced-journey .visual-journey-heading { display: flex; align-items: center; justify-content: flex-start; gap: 20px; margin: 0 0 22px; }
.balanced-journey .visual-journey-heading .kicker { margin: 0; white-space: nowrap; font-size: 11px; }
.balanced-journey .visual-journey-heading h2 { margin: 0; font-size: clamp(22px,2.7vw,32px); letter-spacing: -.035em; line-height: 1.2; }
.balanced-journey .visual-journey-tabs { gap: 7px; margin: 0 0 32px; }
.balanced-journey .visual-journey-tabs button { padding: 9px 14px; font-size: 13px; }
.capability-story { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.25fr); align-items: center; gap: clamp(28px,4vw,64px); }
.capability-story-copy { padding: 10px 0 24px; }
.capability-story-name { color: var(--pink); font-size: 13px; font-weight: 600; margin: 0 0 15px; }
.capability-story-copy h3 { color: var(--ink); font-size: clamp(28px,3.2vw,43px); line-height: 1.14; letter-spacing: -.04em; font-weight: 500; margin: 0 0 22px; max-width: 560px; }
.capability-story-intro { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0 0 23px; max-width: 540px; }
.capability-story-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.capability-story-points li { display: flex; gap: 12px; align-items: start; color: var(--ink); font-size: 15px; line-height: 1.5; }
.capability-story-points li::before { content: ""; width: 5px; height: 5px; margin-top: 9px; flex: none; border-radius: 50%; background: var(--pink); }
.capability-story-copy > .text-link { color: var(--ink); font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.capability-story-figure { container: capability-visual / inline-size; margin: 0; min-width: 0; }
.capability-story-example { display: grid; gap: 16px; padding: 22px 3px 0; }
.capability-story-example > div { display: grid; grid-template-columns: 120px minmax(0,1fr); align-items: baseline; gap: 15px; }
.capability-story-example span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.capability-story-example p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.5; }
.capability-story-example > div:last-child { border-top: 1px solid var(--line); padding-top: 15px; }
.capability-story-example > div:last-child p { font-weight: 500; }
.is-story .vs-topbar { padding: 13px 16px; gap: 10px; }
.is-story .vs-scene-brand { gap: 10px; font-size: 10px; letter-spacing: .08em; }
.is-story .vs-scene-brand b { padding-left: 10px; font-size: 13px; }
.is-story .vs-example-badge { font-size: 10px; }
.is-story .vs-stage { min-height: 340px; padding: 26px 22px; background-image: none; }
.is-story .vs-stage::before { opacity: .45; }
.is-story .vs-outcome { display: none; }
.is-story .vs-disclaimer { padding: 0 16px 13px; margin: 0; font-size: 11px; line-height: 1.4; }
.vs-demo-details { border-top: 1px solid var(--line); margin: 0 16px 12px; }
.vs-demo-details > summary { color: var(--ink); font-size: 12px; line-height: 1.5; padding: 12px 0 0; cursor: pointer; }
.vs-demo-details[open] > summary { padding-bottom: 10px; }
.vs-demo-details .vs-controls { border: 0; padding: 8px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.vs-demo-details .vs-phase-buttons { flex: 1 0 100%; }
.vs-demo-details .vs-phase-buttons button { font-size: 11px; padding: 8px 5px; }
.vs-demo-details .vs-run { padding: 10px 14px; font-size: 12px; }
.is-story .vs-call-transcript, .is-story .vs-agent-brief, .is-story .vs-team-output, .is-story .vs-model-out { display: none; }
.is-story[data-phase] .vs-call-destination, .is-story[data-phase] .vs-chat-answer, .is-story[data-phase] .vs-linked-knowledge, .is-story[data-phase] .vs-human-handoff, .is-story[data-phase] .vs-security-actions, .is-story[data-phase] .vs-host-service, .is-story[data-phase] .vs-wallet-message { opacity: 1; }
.is-story .vs-rack-row, .is-story .vs-agent-node > span, .is-story .vs-inbox, .is-story .vs-hypervisor, .is-story .vs-wallet-phone { transform: none; }
.is-story .vs-small > span { font-size: 11px; }
.is-story .vs-small > strong { font-size: 12px; }
.cap-detail.visual-detail > .visual-detail-heading > .lede { display: none; }
.visual-detail > .capability-story { padding-block: 8px 24px; }
.visual-detail > .visual-detail-actions { margin-top: 24px; }

@container capability-visual (max-width: 720px) {
  .is-story .vs-stage { min-height: 330px; padding: 24px 18px; }
  .is-story .vs-choice { padding: 10px; gap: 8px; font-size: 12px; }
  .is-story .vs-choice .vs-icon { width: 18px; height: 18px; }
  .is-story .vs-call-desk { grid-template-columns: 1fr .3fr 1fr; gap: 14px; }
  .is-story .vs-call-desk > .vs-wire:nth-child(4) { display: none; }
  .is-story .vs-ring { width: 95px; height: 95px; }
  .is-story .vs-call-center .vs-chip { width: 95px; height: 102px; }
  .is-story .vs-call-destination { grid-column: 1/-1; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
  .is-story .vs-extension { flex-basis: 100%; text-align: center; font-size: 11px; }
  .is-story .vs-call-input > strong { font-size: 15px; }
  .is-story .vs-provider-tags { font-size: 10px; }
  .is-story .vs-inbox { grid-template-columns: 115px minmax(0,1fr); }
  .is-story .vs-channel-rail { padding: 12px 8px; }
  .is-story .vs-channel-rail .vs-choice { font-size: 11px; padding: 10px 6px; gap: 6px; }
  .is-story .vs-channel-rail .vs-icon { width: 15px; height: 15px; }
  .is-story .vs-conversation { padding: 12px; }
  .is-story .vs-chat-bubble { padding: 12px; max-width: 100%; font-size: 12px; }
  .is-story .vs-linked-knowledge, .is-story .vs-human-handoff { font-size: 11px; }
  .is-story .vs-data-center { grid-template-columns: 1fr; gap: 18px; }
  .is-story .vs-rack-row { gap: 10px; max-width: 100%; margin: 0; }
  .is-story .vs-rack { min-height: 130px; padding: 12px 9px; box-shadow: 5px 7px 0 var(--accent-soft); }
  .is-story .vs-rack > span { font-size: 10px; }
  .is-story .vs-rack > i { padding-block: 5px; }
  .is-story .vs-host-inspector { width: 100%; max-width: none; transform: none; }
  .is-story .vs-inspector-top, .is-story .vs-security-row, .is-story .vs-host-service { padding: 12px 16px; }
  .is-story .vs-security-actions { padding: 10px 16px; font-size: 11px; }
  .is-story .vs-hosting { grid-template-columns: 1fr 1.3fr; gap: 20px; }
  .is-story .vs-domain-tree { display: none; }
  .is-story .vs-publish-window { grid-column: auto; width: 100%; margin: 0; transform: none; }
  .is-story .vs-files { padding: 20px 15px; gap: 18px; font-size: 12px; grid-template-columns: 1fr; }
  .is-story .vs-edge-world { min-height: 280px; }
  .is-story .vs-edge-core { width: 115px; height: 115px; left: calc(50% - 58px); }
  .is-story .vs-edge-core strong { font-size: 16px; }
  .is-story .vs-edge-tools { left: 0; }
  .is-story .vs-edge-tools .vs-choice { padding: 9px; font-size: 11px; }
  .is-story .vs-edge-record { bottom: -8px; padding: 12px 5px; }
  .is-story .vs-edge-record .vs-small { padding: 0 10px; }
  .is-story .vs-edge-record .vs-small > strong { font-size: 11px; }
  .is-story .vs-lines-title { font-size: 14px; margin-bottom: 20px; }
  .is-story .vs-lines-grid { gap: 12px; }
  .is-story .vs-line-card { padding: 20px 14px; min-width: 0; }
  .is-story .vs-line-card strong { font-size: 15px; }
  .is-story .vs-line-card > span { font-size: 11px; }
  .is-story .vs-repair-flow { gap: 12px; font-size: 12px; margin-top: 25px; }
  .is-story .vs-hypervisor { padding: 20px; }
  .is-story .vs-vms { gap: 12px; }
  .is-story .vs-vm { padding: 20px 12px; }
  .is-story .vs-agent-network { grid-template-columns: repeat(4,minmax(0,1fr)); min-height: 210px; gap: 14px; }
  .is-story .vs-agent-node > span { width: 72px; height: 72px; box-shadow: 5px 7px 0 var(--accent-soft); }
  .is-story .vs-agent-node .vs-icon { width: 32px; height: 32px; }
  .is-story .vs-agent-node > strong { font-size: 12px; }
  .is-story .vs-agent-node small { display: none; }
  .is-story .vs-model-router { grid-template-columns: 1fr 85px 1fr; gap: 12px; }
  .is-story .vs-model-router > .vs-wire { display: none; }
  .is-story .vs-router-chip { width: 85px; height: 100px; }
  .is-story .vs-mcp-fabric { grid-template-columns: 1fr 85px 1fr; gap: 12px; }
  .is-story .vs-mcp-bus > .vs-chip { width: 85px; height: 100px; }
  .is-story .vs-mcp-targets > span { font-size: 11px; padding: 15px 10px; }
  .is-story .vs-permission-console { grid-template-columns: 1fr .65fr; gap: 22px; }
  .is-story .vs-guard-target { display: none; }
  .is-story .vs-guard-gate > .vs-icon { width: 75px; height: 75px; }
  .is-story .vs-code-workspace { grid-template-columns: 1fr; gap: 15px; min-height: 300px; }
  .is-story .vs-editor, .is-story .vs-browser { width: 100%; justify-self: stretch; transform: none; }
  .is-story .vs-editor { background: transparent; border: 0; box-shadow: none; }
  .is-story .vs-editor > .vs-window-bar, .is-story .vs-code, .is-story .vs-code-check { display: none; }
  .is-story .vs-editor-controls { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 0; }
  .is-story .vs-palette { grid-column: 1/-1; }
  .is-story .vs-site-preview { min-height: 240px; }
  .is-story .vs-site-preview-hero { min-height: 140px; }
  .is-story .vs-site-preview-hero h3 { font-size: 32px; }
  .is-story .vs-creative-studio { grid-template-columns: 100px 1fr; gap: 18px; }
  .is-story .vs-creative-assets { display: none; }
  .is-story .vs-artboard { min-height: 250px; }
  .is-story .vs-guest-network { grid-template-columns: 1fr 1.3fr; gap: 18px; }
  .is-story .vs-guest-network > .vs-wire { display: none; }
  .is-story .vs-hotspot-icon { width: 80px; height: 80px; }
  .is-story .vs-wallet-phone { min-height: 290px; padding: 20px 12px; max-width: 220px; }
  .is-story .vs-wallet-card { padding: 18px; }
  .is-story .vs-wallet-card > strong { font-size: 20px; }
  .is-story .vs-wallet-message { font-size: 11px; padding: 10px; }
  .is-story .vs-wallet-survey { display: none; }
  .is-story .vs-guest-controls { grid-column: 1/-1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .is-story .vs-guest-controls [data-scene-options] { display: flex; flex-wrap: wrap; gap: 6px; }
  .is-story .vs-guest-controls .vs-choice { padding: 7px; font-size: 11px; }
  .is-story .vs-guest-controls .vs-choice .vs-icon { display: none; }
  .is-story .vs-language-status { font-size: 12px; padding: 8px; }
  .is-story .vs-knowledge-space { grid-template-columns: 1fr; }
  .is-story .vs-knowledge-graph { display: none; }
  .is-story .vs-note-editor { max-width: none; transform: none; }
  .is-story .vs-monitor-row { gap: 12px; }
  .is-story .vs-monitor-glass { height: 135px; padding: 7px; }
  .is-story .vs-mini-content { height: 75px; }
  .is-story .vs-monitor-glass > span, .is-story .vs-monitor > strong { font-size: 11px; }
  .is-story .vs-selected-context { gap: 10px; padding: 15px; font-size: 12px; }
  .is-story .vs-connected-workspace { grid-template-columns: 1fr; }
  .is-story .vs-app-windows { min-height: 260px; }
  .is-story .vs-app-window { min-height: 165px; }
  .is-story .vs-brief-document { display: none; }
  .is-story .vs-travel-types { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .is-story .vs-journey-map { margin: 28px auto 20px; gap: 14px; }
  .is-story .vs-trip-stop > span { width: 60px; height: 60px; }
  .is-story .vs-reservation { padding: 12px 4px; }
  .is-story .vs-reservation .vs-small { padding-inline: 10px; }
  .is-story .vs-sales-column { padding: 12px; }
  .is-story .vs-sales-column h4 { font-size: 12px; }
  .is-story .vs-contact-card { padding: 12px; }
  .is-story .vs-contact-card strong { font-size: 11px; }
  .is-story .vs-smart-space { grid-template-columns: 1fr; gap: 20px; }
  .is-story .vs-room-plan { min-height: 215px; transform: none; }
  .is-story .vs-home-scenes { display: flex; justify-content: center; gap: 12px; }
  .is-story .vs-lamp { gap: 5px; }
  .is-story .vs-lamp small { font-size: 10px; }
}

@media (max-width: 1050px) {
  .capability-story { grid-template-columns: minmax(0,.85fr) minmax(0,1.1fr); gap: 28px; }
  .capability-story-copy h3 { font-size: 31px; }
  .capability-story-intro { font-size: 16px; }
  .capability-story-example > div { grid-template-columns: 1fr; gap: 5px; }
}
@media (max-width: 800px) {
  .balanced-journey { padding-block: 40px; }
  .balanced-journey .visual-journey-heading { display: block; }
  .balanced-journey .visual-journey-heading h2 { margin-top: 8px; font-size: 26px; }
  .balanced-journey .visual-journey-tabs { margin-bottom: 24px; }
  .capability-story { grid-template-columns: 1fr; gap: 20px; }
  .capability-story-copy { padding-bottom: 0; }
  .capability-story-copy h3 { max-width: 680px; font-size: clamp(29px,5vw,37px); margin-bottom: 16px; }
  .capability-story-intro { max-width: 680px; margin-bottom: 18px; }
  .capability-story-points { margin-bottom: 18px; gap: 9px; }
  .capability-story-example { padding-top: 18px; }
  .capability-story-example > div { grid-template-columns: 105px minmax(0,1fr); gap: 12px; }
}
@container capability-visual (max-width: 400px) {
  .is-story .vs-topbar { padding: 11px 12px; }
  .is-story .vs-example-badge { font-size: 9px; }
  .is-story .vs-stage { padding-inline: 12px; }
  .is-story .vs-agent-network { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .is-story .vs-rack-row { gap: 6px; }
  .is-story .vs-rack { padding: 10px 6px; }
  .is-story .vs-rack > span { font-size: 9px; }
  .is-story .vs-lines-grid { gap: 7px; }
  .is-story .vs-line-card { padding: 15px 9px; }
  .is-story .vs-line-card strong { font-size: 13px; }
  .is-story .vs-repair-flow { font-size: 11px; }
  .is-story .vs-monitor-row { gap: 7px; }
  .is-story .vs-monitor-glass { height: 125px; }
  .is-story .vs-guest-network { gap: 12px; }
  .is-story .vs-wallet-card { padding: 12px; }
  .is-story .vs-inbox { grid-template-columns: 95px minmax(0,1fr); }
  .is-story .vs-channel-rail .vs-choice { font-size: 10px; }
  .is-story .vs-channel-rail .vs-icon { display: none; }
  .capability-story-example > div { grid-template-columns: 1fr; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .capability-story *, .capability-story *::before { animation: none !important; transition: none !important; }
}

/* The technology determines the composition; the reading flow stays consistent. */
.capability-story .visual-scene.is-story { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.capability-story .is-story .vs-topbar { display: none; }
.capability-story .is-story .vs-stage { overflow: visible; }
.capability-story .is-story .vs-stage::before { border-radius: 50%; background: radial-gradient(ellipse,var(--scene-fill),transparent 70%); }
.capability-story .vs-demo-details { margin-inline: 0; }
.capability-story .is-story .vs-disclaimer { padding-inline: 0; }
[data-story-layout="dialogue"] .vs-ring { border-radius: 50%; }
[data-story-layout="dialogue"] .vs-call-center .vs-chip { border-radius: 32% 32% 40% 40%; }
[data-story-layout="operations"] .is-story .vs-stage::before { border-radius: 12%; transform: rotate(-7deg); }
[data-story-layout="operations"] .vs-rack-row { transform: perspective(1300px) rotateY(-12deg); }
[data-story-layout="studio"] .vs-browser { box-shadow: 15px 22px 0 var(--accent-soft); }
[data-story-layout="studio"] .vs-stage::before { transform: rotate(15deg); }
[data-story-layout="pass"] .vs-wallet-phone { box-shadow: 20px 18px 0 var(--accent-soft); transform: rotate(3deg); }
[data-story-layout="notebook"] .vs-note-editor { background-image: repeating-linear-gradient(transparent,transparent 34px,var(--line) 35px,transparent 36px); border-radius: 4px 18px 18px 4px; box-shadow: -9px 0 0 var(--accent-soft),-11px 0 0 var(--line); transform: rotate(-2deg); }
[data-story-layout="spatial"] .vs-room-plan { clip-path: polygon(9% 0,100% 11%,91% 100%,0 88%); min-height: 270px; }
[data-story-layout="journey"] .vs-trip-stop > span { border-radius: 50%; }
[data-story-layout="journey"] .vs-journey-map { transform: rotate(-5deg); }
[data-story-layout="constellation"] .vs-agent-network { grid-template-columns: repeat(2,1fr); gap: 25px 170px; max-width: 700px; min-height: 320px; margin: auto; }
[data-story-layout="constellation"] .vs-agent-node { position: relative; z-index: 1; }
[data-story-layout="constellation"] .vs-agent-node > span { width: 75px; height: 75px; border-radius: 50%; box-shadow: none; }
[data-story-layout="constellation"] .vs-agent-network::before { content: "COMNEX"; position: absolute; left: calc(50% - 48px); top: calc(50% - 48px); width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--scene-accent); background: var(--scene-panel); color: var(--ink); font: 11px ui-monospace,monospace; letter-spacing: .08em; box-shadow: 0 0 0 23px var(--accent-soft); }
[data-story-layout="constellation"] .vs-agent-network::after { content: ""; position: absolute; inset: 20%; border: 1px dashed var(--line); border-radius: 50%; transform: rotate(-20deg); pointer-events: none; }
[data-story-layout="constellation"] .vs-agent-links { display: none; }
@media (min-width: 801px) {
  [data-story-layout="operations"], [data-story-layout="journey"] { grid-template-columns: minmax(0,1.2fr) minmax(0,.85fr); }
  [data-story-layout="operations"] > .capability-story-copy, [data-story-layout="journey"] > .capability-story-copy { grid-column: 2; grid-row: 1; }
  [data-story-layout="operations"] > .capability-story-figure, [data-story-layout="journey"] > .capability-story-figure { grid-column: 1; grid-row: 1; }
  [data-story-layout="constellation"], [data-story-layout="panorama"] { grid-template-columns: 1fr; gap: 24px; }
  [data-story-layout="constellation"] > .capability-story-copy { text-align: center; max-width: 850px; margin: auto; padding-bottom: 0; }
  [data-story-layout="constellation"] .capability-story-copy h3 { max-width: 850px; }
  [data-story-layout="constellation"] .capability-story-intro { max-width: 720px; margin-inline: auto; }
  [data-story-layout="constellation"] .capability-story-points { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 28px; margin-bottom: 18px; }
  [data-story-layout="constellation"] > .capability-story-figure { width: min(100%,1000px); justify-self: center; }
  [data-story-layout="constellation"] .is-story .vs-stage { min-height: 230px; padding-block: 14px; }
  [data-story-layout="constellation"] .capability-story-example, [data-story-layout="panorama"] .capability-story-example { grid-template-columns: 1fr 1fr; gap: 35px; }
  [data-story-layout="constellation"] .capability-story-example > div, [data-story-layout="panorama"] .capability-story-example > div { grid-template-columns: 1fr; gap: 7px; }
  [data-story-layout="constellation"] .capability-story-example > div:last-child, [data-story-layout="panorama"] .capability-story-example > div:last-child { border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: 30px; }
  [data-story-layout="panorama"] > .capability-story-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 0 70px; padding-bottom: 0; }
  [data-story-layout="panorama"] .capability-story-name { grid-column: 1/-1; }
  [data-story-layout="panorama"] .capability-story-copy h3 { grid-row: 2/4; }
  [data-story-layout="panorama"] .capability-story-intro, [data-story-layout="panorama"] .capability-story-points { grid-column: 2; }
  [data-story-layout="panorama"] > .capability-story-figure { max-width: 1100px; width: 100%; justify-self: center; }
  [data-story-layout="panorama"] .is-story .vs-stage { min-height: 260px; padding-block: 12px; }
  [data-story-layout="panorama"] .vs-monitor-row { gap: 40px; }
  [data-story-layout="panorama"] .vs-monitor-glass { height: 180px; }
  [data-story-layout="panorama"] .vs-selected-context { margin-top: 25px; }
}
@media (max-width: 800px) {
  [data-story-layout="constellation"] .vs-agent-network { gap: 22px 105px; min-height: 310px; }
  [data-story-layout="constellation"] .vs-agent-network::before { width: 70px; height: 70px; left: calc(50% - 35px); top: calc(50% - 35px); font-size: 9px; box-shadow: 0 0 0 15px var(--accent-soft); }
  [data-story-layout="constellation"] .vs-agent-node > span { width: 62px; height: 62px; }
  [data-story-layout="studio"] .vs-browser { box-shadow: 7px 10px 0 var(--accent-soft); }
  [data-story-layout="pass"] .vs-wallet-phone { box-shadow: 8px 10px 0 var(--accent-soft); }
  [data-story-layout="spatial"] .vs-room-plan { min-height: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-story-layout] .vs-rack-row, [data-story-layout] .vs-wallet-phone, [data-story-layout] .vs-note-editor, [data-story-layout] .vs-journey-map { transform: none; }
}
