/* Three pillars, a few contextual junctions, and the emblem they share. */
.home-system-page .brand-mark{mix-blend-mode:normal}
.home-system-page .hero-content :is(.eyebrow,h1,.hero-actions){animation:none}
.home-system-page .home-hero .hero-content{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(32px,4vw,68px);padding-block:60px 100px}
.home-system-page .home-hero h1{font-size:clamp(56px,5.2vw,88px);font-weight:350;line-height:1.08;letter-spacing:-.045em}
.home-system-page .hero-copy>p{font-size:clamp(16px,1.2vw,19px);max-width:510px;color:#c2c6c4}
.home-system-page .header-cta{border-color:transparent;color:var(--muted)}
.system-map{position:relative;min-width:0;--map-quiet:#a0aaa4}
.system-map [hidden]{display:none!important}
.system-map button{font:inherit;color:var(--ink);touch-action:manipulation}
.system-map-intro{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:10px;z-index:8}
.system-map-intro button{background:none;border:0;padding:6px 0;min-height:32px;font-size:11px;color:var(--map-quiet)}
.system-map-intro button:hover{color:var(--ink)}
.system-map-intro [data-map-size]{display:grid;place-items:center;width:28px}
.system-map-intro svg,.system-map-arrow svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.5}
.system-map-stage{height:560px;overflow:hidden;position:relative}
.system-map-canvas{position:relative;width:100%;isolation:isolate}
.system-map-nodes{position:relative;z-index:1;display:block;max-width:none;overflow:visible;pointer-events:none}
.system-map-lines{position:absolute;inset:0;z-index:0;overflow:visible}
.system-emblem-mark,.system-emblem-light,.system-vault-light{pointer-events:none}
.system-node{cursor:pointer;outline:none;font-size:13px;line-height:1;touch-action:manipulation}
.system-node-shape{fill:transparent;stroke:none;pointer-events:all}
.system-node-label{fill:#fff;font-weight:400;pointer-events:none}
.system-node[data-node=you] .system-node-label{font-size:13px}
.system-node.on-white .system-node-label{fill:#101212}
.system-node:is(:hover,:focus-visible,.is-selected,.is-arriving) .system-node-label{text-decoration:underline;text-underline-offset:3px}
.system-map.is-compact .system-node-label{font-size:11px}
.system-map.is-compact [data-node=you] .system-node-label{font-size:11px}
.system-track{cursor:pointer;outline:none}
.system-track-hit{fill:transparent;stroke:transparent;pointer-events:all}
.system-map[data-scene=separate] .system-track-hit{fill:none;pointer-events:stroke}
.system-edge{fill:none;stroke:transparent;stroke-width:1;pointer-events:none}
.system-arm-label{fill:#101212;font-weight:500;pointer-events:all}
.system-track:is(:hover,:focus-visible,.is-selected) .system-arm-label{font-weight:600}
.system-map-world{transform-origin:0 0}
.system-map.is-changing-scene .system-map-stage{pointer-events:none}
.system-map.is-changing-scene :is(.system-node,.system-track,.system-node-shape,.system-track-hit){pointer-events:none!important}
.system-map.is-changing-scene .system-map-detail{transition:none}
.system-map-leader{fill:none;stroke:#d89b8b66;stroke-width:1;pointer-events:none;stroke-linejoin:miter}
.system-map-detail.is-inspector{position:absolute;z-index:5;height:auto;min-height:0;padding:9px 11px;border-left:1px solid #d89b8b80;background:#121515f5;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#67726b transparent}
.system-map-detail.is-inspector h2{font-size:15px;margin-bottom:5px}
.system-map-detail.is-inspector p{font-size:12px;line-height:1.5}
.system-map-detail.is-inspector .system-map-note{font-size:10px;line-height:1.45}
.system-map:not([data-scene=separate]) .system-edge-signal{display:none}
.system-map[data-scene=separate] .system-edge{stroke:#a9b5ae4a;stroke-dasharray:4 5}
.system-map[data-scene=separate] .system-edge.is-held{stroke:#d39687}
.system-map[data-scene=separate] .system-node-shape{fill:#191c1d;stroke:#ffffff30;stroke-width:1;rx:12}
.system-map[data-scene=separate] .system-node.is-arriving .system-node-shape{stroke:#edb3a3}
.system-map[data-scene=separate] .system-node-label{fill:#fff}
.system-edge-signal{fill:none;stroke:#f1b0a3;stroke-width:1.8;stroke-linecap:round;vector-effect:non-scaling-stroke;pointer-events:none}
.system-particle{pointer-events:none}
.system-particle rect{fill:#191d1c;stroke:#f1b5ad;stroke-width:1.3}
.system-map-example{position:absolute;z-index:4;box-sizing:border-box;margin:0;padding:9px 11px;background:#121515f5;border:1px solid #ffffff18;border-radius:14px;box-shadow:0 5px 18px #0002;color:#e1e5e2;font-size:12px;line-height:1.5;overflow:auto;pointer-events:auto;scrollbar-width:thin}
.system-map-example span{display:block}
.system-map-example span:first-child{font-size:10px;margin-bottom:4px;color:#ed827b}
.system-map-example .system-example-file{display:grid;grid-template-columns:20px minmax(0,1fr);gap:2px 7px;align-items:center;width:100%;padding:6px 7px;margin-top:7px;border:1px solid #ffffff1c;border-radius:7px;background:#1b201e;color:#d1dad4;text-align:left;cursor:pointer}
.system-example-file svg{grid-row:1 / 3;width:20px;height:20px;fill:none;stroke:#e9a69a;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.system-example-file strong{display:block;font-size:10px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.system-example-file small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.4;color:#9faea4}
.system-map-example .system-example-file:hover{background:#232b26;border-color:#ed827b80}
.system-map-example .system-example-file:focus-visible{outline:1px solid #ed827b;outline-offset:3px}
.system-map-example.has-source .system-example-transfer{margin-top:6px}
.system-map-example.has-source.is-merged .system-example-transfer:last-child{margin-top:3px;font-size:9px;color:#8fa397}
.system-map-example.has-source.is-merged .system-example-transfer:last-child strong{color:#9fafa5}
.system-example-transfer{display:block;margin-top:7px;font-size:10px;line-height:1.5;color:#adb9b1}
.system-example-transfer strong{font-weight:400;color:#f29a90}
.system-example-transfer span{display:inline}
.system-map-controls{display:flex;align-items:center;gap:15px;min-height:36px;margin-top:2px}
.system-map-count{font-size:11px;color:#8b968f;font-variant-numeric:tabular-nums}
.system-map-controls button{min-height:28px;border:0;background:none;padding:3px 0;color:var(--map-quiet);font-size:11px}
.system-map-controls button:hover{color:var(--ink)}
.system-map-controls button:disabled{opacity:.45;cursor:default}
.system-map-controls [data-map-play]{min-width:72px;text-align:left}
.system-map-seek{appearance:none;min-width:40px;width:100%;height:28px;margin:0 4px;padding:0;flex:1;background:transparent;cursor:pointer;color:var(--red-text);border:0;border-radius:0}
.system-map-seek::-webkit-slider-runnable-track{height:2px;background:#ffffff1c;border-radius:1px}
.system-map-seek::-webkit-slider-thumb{appearance:none;width:6px;height:6px;margin-top:-2px;background:#d6655e;border:0;border-radius:50%;transition:background .15s}
.system-map-seek:hover::-webkit-slider-thumb,.system-map-seek:focus-visible::-webkit-slider-thumb{background:#ffaaa4}
.system-map-seek::-moz-range-track{height:2px;background:#ffffff1c;border:0}
.system-map-seek::-moz-range-thumb{width:6px;height:6px;background:#d6655e;border:0;border-radius:50%}
.system-map-controls .system-map-arrow{display:grid;place-items:center;width:28px}
.system-map-detail-slot{height:148px;flex:none}
.system-map-detail{height:100%;min-height:0;padding-top:12px;overflow:auto;opacity:var(--scene-opacity,1)}
.system-map-detail h2{font-size:17px;line-height:1.35;font-weight:400!important;letter-spacing:0!important;margin:0 0 7px}
.system-map-detail p{font-size:13px;line-height:1.6;color:#b5bfb8;margin:0;max-width:640px}
.system-map-detail .system-map-note{font-size:11px;color:#939f96;line-height:1.55;margin-top:7px}
.system-map-note:empty{display:none}
.system-map-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.system-map:not(.is-ready) :is(.system-map-intro,.system-map-stage,.system-map-controls){display:none}
.system-map-dialog{color:var(--ink);background:#141718;border:1px solid #ffffff25;padding:24px;width:min(1400px,calc(100vw - 32px));max-width:none;height:calc(100svh - 32px);max-height:none;overflow:hidden}
.system-map-dialog::backdrop{background:#080a0be8}
.system-map-dialog .system-map{height:100%;display:flex;flex-direction:column}
.system-map-dialog .system-map-stage{height:auto;flex:1;min-height:120px}
.system-map-dialog .system-map-detail-slot{height:148px}

@media(max-width:1100px){.home-system-page .home-hero .hero-content{gap:28px;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}.home-system-page .home-hero h1{font-size:clamp(44px,4.9vw,58px)}.system-map-stage{height:500px}}
@media(max-width:900px){.home-system-page .home-hero .hero-content{grid-template-columns:1fr;padding-block:42px 38px;gap:22px}.home-system-page .hero-copy{max-width:730px}.home-system-page .home-hero h1{font-size:clamp(43px,7.3vw,65px)}.system-map{max-width:780px;width:100%;justify-self:center}.system-map-stage{height:560px}}
@media(max-width:500px){.home-system-page .home-hero .hero-content{padding-top:32px;gap:22px}.home-system-page .home-hero h1{font-size:clamp(36px,9.7vw,47px);line-height:1.16;margin:20px 0}.home-system-page .hero-copy>p{font-size:16px}.system-map-stage{height:560px}.system-map-detail-slot{height:180px}.system-map-dialog{width:calc(100vw - 12px);height:calc(100svh - 12px);padding:12px}.system-map-dialog .system-map-detail-slot{height:195px}}
@media(max-height:600px){.system-map-dialog .system-map-stage{min-height:160px}.system-map-dialog .system-map-detail-slot{height:clamp(80px,26svh,145px)}}
@media(prefers-reduced-motion:reduce){.system-map *{transition:none!important}.system-particle{display:none}}
@media(min-width:901px) and (max-height:820px){.home-system-page .home-hero{min-height:calc(100svh - 78px)}.home-system-page .home-hero .hero-content{padding-block:20px 58px}.system-map-stage{height:clamp(350px,53svh,450px)}.system-map-detail-slot{height:148px}}
@media(min-width:901px) and (max-height:600px){.home-system-page .home-hero .hero-content{padding-block:12px 30px}.system-map-stage{height:320px}.system-map-detail-slot{height:138px}.home-system-page .hero-bottom{display:none}}

.system-map.is-tiny :is([data-node=data],[data-node=you],[data-node=shared]) .system-node-label{font-size:10px}
.system-map-count{white-space:nowrap}
@media(max-width:360px){.system-map-controls{gap:8px}}


/* Keep the story selective; finish with the mark alone. */
.system-arm-label,.system-node-label{transition:opacity .28s ease}
.system-map-detail{transition:opacity .45s ease}
.system-map.is-emblem:not(.is-exploring) .system-map-detail{opacity:0;pointer-events:none}

.system-map-example{transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.system-map-example.is-secondary{background:#121515ed;color:#c9d2cc}
.system-map-example.is-secondary .system-example-transfer{display:none}
.system-map.is-changing-scene .system-map-example{transition:none;pointer-events:none}

.system-map-beats{display:flex;flex-wrap:wrap;gap:5px 15px;margin:0 0 7px}
.system-map-beats button{position:relative;min-height:24px;padding:2px 0 4px;border:0;background:none;font:inherit;font-size:11px;color:#8f9c93;cursor:pointer}
.system-map-beats button:hover,.system-map-beats button[aria-current]{color:#e5e9e6}
.system-map-beats button:focus-visible{outline:1px solid #ed655a;outline-offset:3px}
.system-map-beats button[aria-current]::after{content:'';position:absolute;bottom:0;left:0;width:100%;height:1px;background:#ed655a;transform:scaleX(var(--beat-progress,0));transform-origin:left}

.system-map-intro [data-map-expand]{margin-left:auto}
.system-map-chooser{position:relative;flex:none;min-width:0}
.system-map-intro .system-map-run{display:flex;align-items:center;gap:9px;padding:6px 10px;max-width:176px;border:1px solid #ffffff1c;border-radius:9px;background:#181b1b;color:#bdc7c0;font-size:11px;cursor:pointer}
.system-map-run>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.system-map-intro .system-map-run svg{width:12px;height:12px;flex:none;transition:transform .2s}
.system-map-run[aria-expanded=true] svg{transform:rotate(180deg)}
.system-map-intro .system-map-run:hover,.system-map-run[aria-expanded=true]{border-color:#ffffff39;color:#fff}
.system-map-run-menu{position:absolute;top:calc(100% + 8px);right:0;width:230px;max-height:min(340px,calc(100svh - 128px));padding:6px;background:#181c1b;border:1px solid #ffffff21;border-radius:13px;box-shadow:0 12px 30px #0005;overflow:auto;overscroll-behavior:contain}
.system-map-chooser.opens-up .system-map-run-menu{top:auto;bottom:calc(100% + 8px)}
.system-map-run-menu .system-map-run-option{display:flex;align-items:center;gap:10px;position:relative;width:100%;min-height:36px;padding:8px 22px 8px 10px;text-align:left;border:0;border-radius:7px;font-size:12px;color:#b5bfb8}
.system-map-run-option::before{content:attr(data-number);font-size:10px;font-variant-numeric:tabular-nums;color:#758179}
.system-map-run-option:hover,.system-map-run-option:focus-visible{background:#ffffff08;color:#fff;outline:0}
.system-map-run-option[aria-checked=true]{background:#ed655a0c;color:#f0f3f0}
.system-map-run-option[aria-checked=true]::after{content:'';position:absolute;right:11px;width:5px;height:5px;background:#ed655a;border-radius:50%}
.system-map-run:focus-visible,.system-map-run-option:focus-visible{outline:1px solid #ed655a;outline-offset:2px}
.system-map-example[data-side=left]{border-bottom-left-radius:4px}
.system-map-example[data-side=right]{border-bottom-right-radius:4px}
.system-map-example.is-entering{transition:none}
@media(max-width:500px){.system-map-intro{gap:8px}.system-map-intro .system-map-run{max-width:146px}.system-map-example.is-secondary .system-example-file,.system-map-example.is-secondary .system-example-transfer{display:none}}

/* Source examples are real HTML, so references and changes can be explored. */
.system-source-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 32px));max-width:none;max-height:calc(100svh - 32px);padding:0;border:1px solid #ffffff29;border-radius:14px;background:#151a18;color:#e7ece9;box-shadow:0 24px 80px #0007;overflow:auto;color-scheme:dark}
.system-source-dialog[open]{display:flex;flex-direction:column;height:min(540px,calc(100svh - 32px))}
.system-source-dialog::backdrop{background:#090d0cbd}
.system-source-dialog>header{flex:none;display:flex;align-items:center;gap:16px;padding:16px 20px;border-bottom:1px solid #ffffff15}
.system-source-dialog h2{margin:0;font-size:16px;font-weight:500;line-height:1.3;flex:1}
.system-source-dialog button{font:inherit;color:inherit;cursor:pointer}
.system-source-close{padding:6px 10px;background:none;border:1px solid #ffffff24;border-radius:6px;font-size:12px!important}
.system-source-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr)}
.system-source-conversation{padding:20px;background:#111614;border-right:1px solid #ffffff14}
.system-source-label{margin:0 0 14px;font-size:10px;color:#9baaa0;letter-spacing:.025em}
.system-source-message{padding:12px;border:1px solid #ffffff18;border-radius:12px 12px 12px 3px;background:#1d2520;font-size:12px;line-height:1.6}
.system-source-message>small{color:#e99b8d;font-size:10px}
.system-source-message>p{margin:4px 0 10px}
.system-source-attached{display:grid;grid-template-columns:22px minmax(0,1fr);gap:2px 8px;border-top:1px solid #ffffff13;padding-top:10px}
.system-source-attached svg{width:20px;height:20px;grid-row:1 / 3;fill:none;stroke:#c9a698;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.system-source-attached strong{font-weight:400;font-size:11px}
.system-source-attached small{font-size:10px;color:#9eb0a3}
.system-source-hint,.system-source-reply{font-size:12px;line-height:1.6;color:#a9b7ae;margin:14px 0 0}
.system-source-reply{padding:12px;border:1px solid #eb7f6b45;border-radius:12px 12px 3px 12px;background:#283328;color:#dce9de}
.system-source-document{padding:20px;min-width:0}
.system-source-document h3{margin:0 0 12px;font-size:20px;font-weight:400;line-height:1.3}
.system-source-document>p:not(.system-source-label){font-size:13px;line-height:1.7;color:#bac7be}
.system-source-fields{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);font-size:12px;line-height:1.5;margin:18px 0}
.system-source-fields dt,.system-source-fields dd{padding:9px 0;border-bottom:1px solid #ffffff13;margin:0}
.system-source-fields dt{color:#91a498;padding-right:12px}
.system-source-fields dd{color:#e1e9e3}
.system-source-reference{display:flex;gap:7px;align-items:center;width:100%;padding:10px 0;border:0;background:none;font-size:12px!important;color:#e7a497!important;text-align:left;text-decoration:underline;text-underline-offset:3px}
.system-source-reference svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.system-source-apply{padding:9px 12px;border:1px solid #ed827b66;border-radius:7px;background:#392722;font-size:12px!important;margin-top:12px}
.system-source-apply:disabled{color:#b1c2b5;border-color:#9ebd9e55;background:#233127;cursor:default}
.system-source-dialog button:hover:not(:disabled){filter:brightness(1.2)}
.system-source-dialog button:focus-visible{outline:1px solid #ed827b;outline-offset:3px}
.system-source-evidence{border-left:2px solid #d87c69;padding:10px 14px;background:#202820}
.system-source-foot{flex:none;margin:0;padding:10px 20px;border-top:1px solid #ffffff15;font-size:10px;color:#81978a}
@media(max-width:540px){.system-source-dialog[open]{height:min(700px,calc(100svh - 20px))}.system-source-dialog{width:calc(100vw - 20px);max-height:calc(100svh - 20px);border-radius:10px}.system-source-body{grid-template-columns:1fr}.system-source-conversation{border-right:0;border-bottom:1px solid #ffffff14;padding:16px}.system-source-document{padding:16px}.system-source-dialog>header{padding:12px 16px}.system-source-document h3{font-size:18px}.system-source-hint{display:none}}
