@media screen {
 body.spatial-site {--gutter:4vw;--bar:72px;--page-top:calc(var(--bar) + 10px);--footer-space:46px}
 body.spatial-site>header,body.spatial-site.research-page>header {position:fixed;inset:0 0 auto;height:var(--bar);max-width:none;margin:0;padding:0 var(--gutter);border:0;flex-wrap:nowrap;background:#fafbfc}
 body.spatial-site>footer,body.spatial-site.research-page>footer {position:fixed;inset:auto 0 0;max-width:none;height:var(--footer-space);padding:0 var(--gutter);margin:0;border:0;background:#fafbfc}
 body.spatial-site main#main.space-page,body.spatial-site.research-page>main {box-sizing:border-box;width:calc(100% - 2 * var(--gutter));max-width:none;height:calc(100svh - var(--page-top) - var(--footer-space));padding:0;margin:0}
 body.spatial-site.research-page>main {position:fixed;inset:var(--page-top) var(--gutter) auto;overflow:auto;padding-bottom:32px}
 .research-page :is(.paper,.research-list){max-width:1184px}
 .spatial-site .project-back,.spatial-site .research-back,.spatial-site .breadcrumb {display:flex;align-items:center;height:30px;margin:0 0 8px;font:12px var(--mono);color:var(--muted);text-decoration:none}
 .spatial-site .project-back {position:relative;z-index:18;width:fit-content}
 .spatial-site .project-back:hover,.spatial-site .research-back:hover{text-decoration:underline}
 .spatial-site .has-project-opening .project-opening{top:38px}
 .spatial-site main.has-design .design-explorer{height:calc(100% - 62px)}
 .spatial-site main[data-demo=aig] #demo-root{height:calc(100% - 38px)}
 .spatial-site .has-design .studio-view{top:96px}
 .spatial-site .research-heading,.spatial-site .page-head{padding-top:0}
 @media(max-width:760px){
  body.spatial-site{--bar:60px;--footer-space:38px;--gutter:4vw}
  body.spatial-site>header nav,body.spatial-site.research-page>header nav{font:9px var(--mono);gap:10px;flex-wrap:nowrap}
  body.spatial-site main.space-page.has-circuit{overflow:auto}
 }
}
@media screen and (max-width:850px){
 /* Keep the model SVG measurable without extending the page's scroll area. */
 .simulation-instruments{position:relative;overflow:clip}
 .unified-workspace .simulation-instruments :is(.qr-canvas,.bc-canvas,.cp-canvas){left:-2000px}
 .design-stages,.design-controls,.project-heading-tools{flex-wrap:wrap}
 .unified-workspace .simulation-inspector{min-width:0;max-width:100%}
}
@media screen and (max-width:650px){
 .unified-workspace .design-scene:not(.focused){flex:none;height:clamp(220px,66vw,340px);min-height:0}
 .design-active .design-stages{row-gap:4px;column-gap:12px}
}
.spatial-site .cube-intro p{max-width:78ch;line-height:1.6}
.cube-intro .actions{margin:12px 0 18px}
.spatial-site .cube-intro .button.primary{padding:9px 14px;background:var(--accent);color:white}
.spatial-site .cube-design{padding:20px 0}
.cube-design .mechanics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:22px}
.cube-design article p{font-size:13px;line-height:1.65}
.spatial-site main[data-demo=cube] #demo-root{height:auto}
.cube-controller ol{display:flex;list-style:none;flex-wrap:wrap;gap:8px;padding:0}
.cube-controller li{font:12px var(--mono);padding:6px;color:var(--muted)}
.cube-controller li[aria-current]{background:var(--accent);color:white}
.cube-controller li:not(:last-child)::after{content:' →'}
.cube-controller p{font-size:13px}.cube-controller code{display:block;color:var(--accent)}
.cube-controller{margin:18px 0}
.cube-controller select{max-width:100%;font:inherit}
.fsm-body{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px;border-block:1px solid var(--line);padding-block:10px}
.fsm-scroll{max-height:340px;overflow:auto}
.fsm-scroll svg{width:100%;display:block;color:var(--accent)}
.fsm-scroll rect{fill:#f2f4f8;stroke:#9aa7ba}
.fsm-scroll text{font:12px var(--mono);fill:var(--fg)}
.fsm-scroll g[role=button]{cursor:pointer}
.fsm-scroll .selected rect{fill:#d8e3f4;stroke:var(--accent);stroke-width:2}
.fsm-wire{fill:none;stroke:#a8b1c1;stroke-width:1.3}
.fsm-wire.selected{stroke:var(--accent);stroke-width:2.4}
.fsm-detail h4{margin:4px 0 10px}
.fsm-detail button{display:block;text-align:left;font:12px/1.4 var(--mono);margin:4px 0;padding:5px;color:var(--accent)}
@media(max-width:620px){.fsm-body{grid-template-columns:1fr}.fsm-scroll{max-height:255px}}
.fsm-map{overflow-x:auto;max-width:740px}
.fsm-map svg{display:block;width:100%;min-width:490px}
.fsm-map rect{fill:#edf1f7;stroke:#8392a8}
.fsm-map text{font:13px var(--mono);fill:var(--fg)}
.fsm-map .selected rect{fill:#d2deef;stroke:var(--accent);stroke-width:2}
.fsm-map g{cursor:pointer}.cube-controller .fsm-live{font:12px var(--mono);color:var(--accent)}

.course-heading{max-width:900px}
.spatial-site .course-heading h1{font:400 clamp(27px,3.5vw,48px)/1.15 var(--mono);letter-spacing:-.045em;margin:10px 0 16px}
.course-heading p{max-width:76ch;font:16px/1.65 Arial,sans-serif}
.course-heading .actions{gap:20px}
.course-architecture{max-width:1050px}
.course-architecture svg{width:100%;display:block}
.course-wires path{fill:none;stroke:#717d8e;stroke-width:1.7}
.course-side{fill:#a5b4ca;stroke:#8696aa}
.course-block{cursor:pointer}
.course-block rect{fill:#edf1f7;stroke:#718299;stroke-width:1.6}
.course-block[aria-pressed=true] rect,.course-block:focus rect{stroke:#36588a;fill:#d2deef;stroke-width:2.4}
.course-block text{text-anchor:middle;font:13px var(--mono);fill:#26394f}
.course-block .course-unit{fill:#52657c;font:10px var(--mono)}
.course-notes{max-width:80ch;padding-bottom:22px}
.course-note{border-top:1px solid var(--line);padding:7px 0}
.course-note summary{cursor:pointer;color:var(--accent);font:13px/1.6 var(--mono)}
.course-note p{font:14px/1.65 Arial,sans-serif;margin:8px 0 4px}
@media(max-width:650px){.course-heading p{font-size:14px}.course-heading .actions{flex-wrap:wrap;gap:4px 14px}.course-architecture svg{min-height:130px}.course-note summary{padding:4px 0}}
.course-lab{margin-bottom:28px;max-width:80ch}
.course-lab-controls{display:flex;gap:8px;flex-wrap:wrap}
.course-lab-controls button{font:12px var(--mono);color:var(--accent);background:transparent;border:1px solid var(--line);padding:7px 10px}
.course-lab-controls button[aria-pressed=true]{background:var(--accent);color:white}
.course-values{font:12px/1.7 var(--mono)!important;white-space:pre-wrap;overflow-wrap:anywhere}
.course-camera{display:flex;align-items:center;justify-content:flex-end;gap:12px;font:10px var(--mono);color:var(--muted)}
.course-camera button{font:inherit;padding:5px 0;border:0;background:transparent;color:var(--accent)}
.course-viewport{position:relative;perspective:1400px;cursor:grab;overflow:hidden;touch-action:pan-y}
.course-viewport.dragging{cursor:grabbing}
.course-model{position:relative;transform-style:preserve-3d;transform:scale(var(--ag-zoom,1)) rotateX(var(--ag-pitch,17deg)) rotateY(var(--ag-yaw,-6deg))}
.course-model>.course-wall{position:absolute;inset:0;pointer-events:none}
.course-wall rect{fill:#a5b4ca;stroke:#a5b4ca}
.course-model>svg:last-child{transform:translateZ(12px)}
.course-architecture{max-width:none}
.course-camera{border-bottom:1px solid var(--line);padding:8px 0;flex-wrap:wrap}
.course-modes{display:flex;gap:18px;margin-right:auto}
.course-modes button{font-size:13px;color:var(--muted)}
.course-modes button[aria-pressed=true]{color:var(--accent);border-bottom:2px solid currentColor}
.course-model{transition:transform .32s ease}
.course-viewport.dragging .course-model{transition:none}
.course-viewport{background:radial-gradient(ellipse at 50% 75%,#abb8ca26,transparent 68%)}
.course-block .course-state{fill:var(--accent);font:11px var(--mono)}
.course-live .course-block.executing rect{stroke:var(--accent);stroke-width:2.8;fill:#d3dfef}
.course-live .course-model{transform:scale(var(--ag-zoom,1)) rotateX(calc(var(--ag-pitch,17deg) - 9deg)) rotateY(var(--ag-yaw,-6deg))}
.course-architecture .course-lab{max-width:none;border-top:1px solid var(--line);padding-top:12px}
.course-lab[hidden],.course-notes[hidden]{display:none}
@media(max-width:620px){.course-viewport{overflow-x:auto}.course-model{min-width:580px}.course-camera>span{display:none}}
@media(prefers-reduced-motion:reduce){.course-model{transition:none}}
.course-registers rect{fill:#edf1f7;stroke:#899bb3}.course-registers text{text-anchor:middle;fill:#364a64;font:10px var(--mono)}.course-registers .row-link{fill:none;stroke:#718299}.course-registers .current rect{stroke:var(--accent);fill:#d2deef;stroke-width:2}
.course-block .component-face{fill:#e4ebf4;stroke:#718299;stroke-width:1.5}
.course-block.circuit-mem .component-face{fill:#eeeaf1}
.course-block.circuit-reg .component-face{fill:#e8edf4}
.course-block.circuit-mux .component-face{fill:#eceaf2}
.course-block .component-sub{font:9px var(--mono);fill:#45556c}
.course-block .component-face~.course-state{font:9px var(--mono);fill:#36588a}
.course-block[aria-pressed=true] .component-face,.course-block:focus .component-face,.course-live .course-block.current .component-face,.course-live .executing:not([data-row]) .component-face{stroke:var(--accent);stroke-width:2.4;fill:#ccdaed}
.course-wires .control{stroke-dasharray:5 3;stroke-width:1.3}
.circuit-caption{font:10px var(--mono);letter-spacing:1px;fill:#445a76}
.course-heading{display:flex;align-items:center;gap:12px;max-width:none;flex-wrap:wrap}
.course-heading>.eyebrow{display:none}
.spatial-site .course-heading h1{font:400 clamp(19px,2vw,26px)/1.2 var(--mono);margin:8px 0}
.course-heading .actions{font-size:12px}
.project-opening-active .course-heading{opacity:0}
.course-architecture .course-model{max-width:1300px;margin:auto}
.course-notes{max-width:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.course-architecture:has(.component-face) .course-viewport{max-height:65vh}
.course-architecture:has(.component-face) .course-model svg{max-height:65vh}
@media(max-width:620px){.course-architecture:has(.component-face) .course-model{min-width:840px}.course-heading .actions{order:3}}
.course-sheets{display:flex;gap:18px;padding:7px 0;align-items:center;flex-wrap:wrap}
.course-sheets button{border:0;border-bottom:2px solid transparent;background:none;font:12px var(--mono);padding:6px 0;color:var(--muted);cursor:pointer}
.course-sheets button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}
.course-wall :is(path,circle,rect){fill:#a6b5cb;stroke:#a6b5cb}
.course-block:has(.component-face)>rect{fill:transparent;stroke:none}
.rtl-region{fill:#e9eef524;stroke:#b9c4d1;stroke-dasharray:5 4}
.rtl-title,.rtl-label,.rtl-cell-label,.rtl-value,.rtl-op-label{fill:#22354e;font:11px var(--mono)}
.rtl-title{font-size:13px;letter-spacing:.6px;font-weight:600}
.rtl-cell-label,.rtl-value,.rtl-op-label{text-anchor:middle}
.rtl-value{fill:#36588a;font-size:9px}
.rtl-face,.rtl-op{fill:#e3ecf4;stroke:#576f89;stroke-width:1.5}
.rtl-reg{fill:#e0ebe6;stroke:#758d82}.rtl-mem{fill:#eae4d8;stroke:#94866b}.rtl-mux{fill:#ebe8f2}
.rtl-op-label{font-size:17px}.circuit-mem .component-face{fill:#ebe5d8!important}.circuit-reg .component-face{fill:#e0ebe6!important}
.course-entry-pin circle{fill:#36588a;stroke:white;stroke-width:1.3}
.course-entry-pin path{fill:none;stroke:white;stroke-width:1.4}
.course-wall .rtl-region{display:none}

.conv-output{width:100px;height:100px;image-rendering:pixelated;float:right;border:1px solid #a9b8c9;margin:5px 0 12px 16px}
.course-lab:has(.conv-output){display:flow-root}
.course-lab[hidden]{display:none!important}
.course-architecture:has(.conv-output).course-live{display:flex;flex-direction:column}
.course-architecture:has(.conv-output).course-live .course-viewport{order:4}
.course-architecture:has(.conv-output).course-live .course-lab{display:grid;grid-template-columns:minmax(0,1fr) 68px;gap:3px 12px;margin:0;padding:4px 0}
.course-lab:has(.conv-output) h2{display:none}
.course-lab:has(.conv-output) .course-lab-controls{grid-column:1;grid-row:1}
.course-lab:has(.conv-output) .conv-output{width:66px;height:66px;margin:0;grid-column:2;grid-row:1/3}
.course-lab:has(.conv-output) .course-values{grid-column:1;margin:0}
.course-block>text:not(.course-state):not(.component-sub){font-size:11px}
.course-block .component-sub{font-size:9px}
.course-block .course-state{font-size:9px}
.lab-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:10px 0 18px}
.spatial-site .lab-header h1{font:400 clamp(23px,3vw,38px)/1.25 var(--mono);letter-spacing:-.04em;margin:7px 0}
.lab-header .button{white-space:nowrap}
.lab-tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);margin-bottom:25px}
.lab-tabs button{font:12px var(--mono);padding:12px 0;background:none;border:0;border-bottom:2px solid transparent;color:var(--muted);cursor:pointer}
.lab-tabs button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}
.lab-hero{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(0,1.5fr);align-items:center;gap:5vw}
.lab-summary p{font:18px/1.65 Arial,sans-serif;max-width:45ch}
.lab-summary>a{font:12px var(--mono)}
.lab-video{aspect-ratio:16/9;transform:perspective(1300px) rotateY(-3deg);box-shadow:10px 16px 28px #31486418;overflow:hidden;background:#e8edf3}
.lab-video button{border:0;padding:0;width:100%;height:100%;position:relative;cursor:pointer;background:transparent}
.lab-video img{width:100%;height:100%;object-fit:cover;display:block}
.lab-video span{position:absolute;bottom:16px;left:18px;background:#fafbfcf2;padding:12px 16px;color:var(--accent);font:12px var(--mono)}
.lab-video iframe{display:block;width:100%;height:100%;border:0}
.lab-setup{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:32px;padding:22px 0;border-top:1px solid var(--line)}
.lab-setup h3{font:14px var(--mono);color:var(--accent)}
.lab-setup p{font:14px/1.6 Arial,sans-serif;max-width:45ch}
.lab-explorer[hidden],.lab-hardware[hidden]{display:none!important}
@media(max-width:700px){.lab-header{align-items:start;flex-direction:column;gap:3px}.lab-hero{grid-template-columns:1fr;gap:18px}.lab-summary p{font-size:16px;max-width:none}.lab-video{transform:none}.lab-setup{grid-template-columns:1fr;gap:10px}.lab-tabs{margin-bottom:12px}}
.lab-demo-page .course-architecture:has(.component-face) .course-viewport,.lab-demo-page .course-architecture:has(.component-face) .course-model svg{max-height:48vh}
.lab-demo-page .course-lab h2{font:14px var(--mono);margin:8px 0}
.lab-demo-page .course-notes{padding-bottom:0}
@media(max-width:700px){.lab-demo-page .course-architecture:has(.component-face) .course-viewport,.lab-demo-page .course-architecture:has(.component-face) .course-model svg{max-height:none}}
/* Autocube shares EchoPlay's physical system view; detailed FSMs are an inspection layer. */
.cube-replay[hidden],.cube-system .course-notes[hidden]{display:none!important}
.cube-system .cube-replay{padding:8px 0;border-top:1px solid var(--line)}
.cube-system #demo-root{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:8px 24px;align-items:start}
.cube-system #demo-root>.controls{grid-column:1;margin:0}
.cube-system #demo-root>.viz{grid-column:2;grid-row:1/4;display:flex;flex-direction:column;gap:4px;min-height:0}
.cube-system #demo-root>.viz svg{width:180px;height:138px;margin:auto}
.cube-system .readout{font:11px/1.5 var(--mono);padding:0;white-space:pre-line;background:transparent}
.cube-system .demo-caption{font:12px/1.6 var(--mono);margin:0;max-width:65ch}
.cube-system .player-host{grid-column:1}
.cube-fsm-panel{border-top:1px solid var(--line);margin-top:18px;padding:16px 0}
.cube-fsm-panel>summary{font:12px var(--mono);color:var(--accent);cursor:pointer}
.cube-fsm-panel .fsm-map,.cube-fsm-panel .cube-controller>h3{display:none}
.cube-system .course-note>button{background:none;border:0;padding:8px 0;color:var(--accent);font:12px var(--mono);cursor:pointer}
@media(max-width:700px){.cube-system #demo-root{grid-template-columns:1fr}.cube-system #demo-root>.viz{grid-column:1;grid-row:auto;flex-direction:row;align-items:center}.cube-system #demo-root>.viz svg{width:140px;flex-shrink:0}.cube-system .playback{flex-wrap:wrap}}
.cube-system .course-notes{display:flex;flex-wrap:wrap;gap:12px 20px}
.cube-system .course-note{flex:1 1 180px;min-width:0}
.cube-system .course-note[open]{flex-basis:100%;order:2}
.cube-system .course-note[open] p{max-width:85ch}
