/* Lower-page motion: fixed surfaces, purposeful state changes. Hero is untouched. */
.nexus-orbit-page :is(#workspace .nx-console,#stories .workflow-scene,#workforce .workforce-head,#workforce .workforce-agent,#case-study .knowledge-map,#roadmap .planning-card){background-image:none;box-shadow:0 8px 24px #00000012}
@media(min-width:761px){.nexus-orbit-page #workspace .nx-console{aspect-ratio:16 / 9;height:auto;min-height:0;max-height:none}}
.nq-arrive{animation:nq-arrive 550ms cubic-bezier(.2,.7,.3,1) both}
.nq-crossfade{animation:nq-fade 240ms ease both}
@keyframes nq-arrive{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
@keyframes nq-fade{from{opacity:.25}to{opacity:1}}
.nexus-orbit-page :is(#workspace .nx-task,#workspace .nx-system-grid button,#workforce .workforce-head,#services button.agent-card){transition:border-color 200ms,translate 200ms,box-shadow 200ms}
@media(hover:hover){.nexus-orbit-page :is(#workspace .nx-task,#workspace .nx-system-grid button,#workforce .workforce-head,#services button.agent-card):hover{translate:0 -2px;border-color:var(--accent);box-shadow:0 8px 20px #00000012}}
.nexus-orbit-page main>section:not(#home):not(.orbit-story) :is(.button,.cost-cta){transition:background 180ms,translate 100ms}
.nexus-orbit-page :is(#workspace,#stories,#workforce,#services,#roadmap,#case-study,#cost) :is(.button svg,.button [aria-hidden],.cost-cta [aria-hidden]){transition:translate 180ms}
.nexus-orbit-page :is(#workspace,#stories,#workforce,#services,#roadmap,#case-study,#cost) :is(.button,.cost-cta):hover :is(svg,[aria-hidden]){translate:3px 0}
.nexus-orbit-page :is(#workspace,#stories,#workforce,#services,#roadmap,#case-study,#cost) button:active{translate:0 1px}
.nexus-orbit-page #stories .story-tabs{position:relative;padding-bottom:8px}
.nq-tab-indicator{position:absolute;bottom:0;left:0;height:2px;background:var(--accent);width:var(--nq-tab-width,0px);transform:translateX(var(--nq-tab-left,0px));transition:transform 240ms ease,width 240ms ease;pointer-events:none}
/* Replace scanning, bouncing and staggered entrances with one short handoff. */
.nexus-orbit-page #stories .wf-document:after{display:none}
.nexus-orbit-page #stories :is(.wf-source,.wf-agent li,.wf-signal i){animation:none!important}
.nexus-orbit-page #stories .wf-draft-line{filter:none!important;transform:none!important;transition:opacity 240ms;transition-delay:0s}
.nexus-orbit-page #stories .wf-agent:before,.nexus-orbit-page #stories .wf-agent:after{animation:none;background:var(--line)}
.nexus-orbit-page #stories .workflow-scene.nq-handoff-in .wf-agent:before,.nexus-orbit-page #stories .workflow-scene.nq-handoff-out .wf-agent:after{background:linear-gradient(90deg,var(--line),var(--accent),var(--line));background-size:200% 100%;animation:nq-signal 700ms ease-out 1}
@keyframes nq-signal{from{background-position:200% 0}to{background-position:0 0}}
.nq-chart .priority-track>span{transform-origin:left;animation:nq-chart 1s ease both}
@keyframes nq-chart{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.nexus-orbit-page #workspace .nx-agent-row{border-radius:8px;transition:background 240ms,box-shadow 240ms}
.nexus-orbit-page #workspace .nx-agent-row[aria-pressed=true]{background:var(--tint);box-shadow:inset 2px 0 var(--accent)}
.nexus-orbit-page #workspace .nx-task.nq-connected{border-color:var(--accent)}
.nexus-orbit-page #workspace .nx-task.nq-connected .nx-card-bottom{background:var(--tint);border-radius:6px}
.nexus-orbit-page #workspace .nx-task.nq-connected .nx-small-tools{outline:1px solid var(--line);outline-offset:4px;border-radius:4px}
.nq-context-status{font-size:11px;line-height:1.6;color:var(--accent);margin:10px 0 0}
.nexus-orbit-page.motion-paused :is(.nq-arrive,.nq-crossfade,.nq-chart .priority-track>span),.nexus-orbit-page.motion-paused #stories .wf-agent:before,.nexus-orbit-page.motion-paused #stories .wf-agent:after{animation:none!important}
@media(prefers-reduced-motion:reduce){.nq-arrive,.nq-crossfade,.nq-chart .priority-track>span{animation:none!important}.nexus-orbit-page :is(#workspace,#stories,#workforce,#services,#roadmap,#case-study,#cost) *,.nexus-orbit-page #stories .wf-agent:before,.nexus-orbit-page #stories .wf-agent:after{animation:none!important;transition:none!important}}

/* Selection changes emphasis, never the mobile department row geometry. */
@media(max-width:760px){
 .nexus-orbit-page #workforce .workforce-column .workforce-agent{min-height:64px;padding:7px;gap:7px}
}

/* Let the tool stream continue beyond the page, without an enclosing card. */
.nexus-orbit-page #stack .stack-marquees{
 max-width:none;width:100%;margin:0;border:0;border-radius:0;
 background:transparent;box-shadow:none;
}
.nexus-orbit-page #stack .stack-lane{
 -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
 mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
}
/* Touch browsers can retain :hover after a tap; only explicit pause stops rows. */
@media(hover:none),(pointer:coarse){
 .nexus-orbit-page #stack:not(.stack-is-paused) .stack-track{animation-play-state:running}
}
