/* NEO Lite Pro hero scene — motion layer (this page only).
   Same artwork and palette. The scene cycles itself: 1.5 s per layer, 6 s per Compute → NVMe → Network → Security
   loop. Every effect below is timed to finish (or loop cleanly) inside one 1.5 s step. */

/* parts: assemble on load, then the highlighted layer lifts while the others rest */
.nlp-scene .neo-scene-part{animation:nlp-assemble .7s cubic-bezier(.34,1.35,.64,1) both;animation-delay:var(--assembly-delay,0s);transition:opacity .28s,filter .28s,translate .32s cubic-bezier(.16,1,.3,1)}
.nlp-scene .neo-scene-part:not(.is-selected){filter:saturate(.55)}
.nlp-scene .neo-scene-part.is-selected{translate:0 -8px}
.nlp-scene .neo-scene-part.is-selected>.neo-part-base>.box-top{transition:stroke .25s}
@keyframes nlp-assemble{0%{opacity:0;transform:translateY(-38px)}55%{opacity:1}100%{opacity:1;transform:none}}

/* board routes: the highlighted layer's line carries traffic, the rest stay quiet */
.nlp-scene .neo-scene-route,.nlp-scene .neo-scene-flow{transition:opacity .28s,stroke-width .28s}
.nlp-scene[data-layer] .neo-scene-flow{opacity:.22}
.nlp-scene[data-layer] .neo-scene-route{opacity:.22}
.nlp-scene .iso-node{transform-box:fill-box;transform-origin:center;transition:transform .32s cubic-bezier(.34,1.56,.64,1),opacity .28s;opacity:.55}
.nlp-scene[data-layer=compute] [data-route=compute],.nlp-scene[data-layer=storage] [data-route=storage],.nlp-scene[data-layer=network] [data-route=network],.nlp-scene[data-layer=security] [data-route=security]{opacity:1}
.nlp-scene[data-layer=compute] .neo-scene-flow[data-route=compute],.nlp-scene[data-layer=storage] .neo-scene-flow[data-route=storage],.nlp-scene[data-layer=network] .neo-scene-flow[data-route=network],.nlp-scene[data-layer=security] .neo-scene-flow[data-route=security]{stroke-width:2.4;animation-duration:1.5s}
.nlp-scene[data-layer=compute] .neo-scene-route[data-route=compute],.nlp-scene[data-layer=storage] .neo-scene-route[data-route=storage],.nlp-scene[data-layer=network] .neo-scene-route[data-route=network],.nlp-scene[data-layer=security] .neo-scene-route[data-route=security]{opacity:.7}
.nlp-scene[data-layer=compute] .iso-node[data-route=compute],.nlp-scene[data-layer=storage] .iso-node[data-route=storage],.nlp-scene[data-layer=network] .iso-node[data-route=network],.nlp-scene[data-layer=security] .iso-node[data-route=security]{transform:scale(1.7)}

/* compute: the EPYC chip breathes, rack LEDs show activity */
.nlp-scene [data-neo-part=compute].is-selected .chip-top{animation:nlp-glow .75s ease-in-out infinite}
.nlp-scene [data-neo-part=compute].is-selected .rack-led{animation:led-blink .5s steps(2) infinite;animation-delay:calc(var(--i,0) * -.12s)}
/* NVMe: drive tops flash in sequence, like I/O across the array */
.nlp-scene [data-neo-part=storage].is-selected .nlp-drive .box-top{animation:nlp-io .75s ease-in-out infinite;animation-delay:calc(var(--i,0) * .07s)}
/* network: port LEDs blink in a running pattern */
.nlp-scene [data-neo-part=network].is-selected .nlp-port .chip-top{animation:nlp-port .6s ease-in-out infinite;animation-delay:calc(var(--i,0) * .08s)}
/* security: the check is redrawn each time the layer comes up, the shield glows once */
.nlp-scene .neo-shield-check{stroke-dasharray:var(--len,40)}
.nlp-scene.nlp-replay [data-neo-part=security].is-selected .neo-shield-check{animation:nlp-check .42s .12s cubic-bezier(.65,0,.35,1) both}
.nlp-scene.nlp-replay [data-neo-part=security].is-selected .neo-shield-face{animation:nlp-glow .9s ease-in-out 1 both}

@keyframes nlp-glow{0%,100%{filter:none}50%{filter:brightness(1.22)}}
@keyframes nlp-io{0%,60%,100%{filter:none}14%,30%{filter:brightness(1.9) saturate(1.15)}}
@keyframes nlp-port{0%,100%{filter:none}40%{filter:brightness(1.55)}}
@keyframes nlp-check{from{stroke-dashoffset:var(--len,40)}to{stroke-dashoffset:0}}

/* callout naming the highlighted layer */
.nlp-callout{position:absolute;z-index:2;display:grid;gap:1px;padding:6px 10px 6px 9px;background:var(--surface);border:1px solid var(--line);box-shadow:0 10px 24px -18px #10121166;font:600 10px/1.5 var(--font);letter-spacing:.06em;color:var(--ink);white-space:nowrap;pointer-events:none;translate:-50% -100%;opacity:0;transform:translateY(6px);transition:opacity .18s,transform .3s cubic-bezier(.16,1,.3,1),left .6s cubic-bezier(.16,1,.3,1),top .6s cubic-bezier(.16,1,.3,1)}
.nlp-callout::after{content:"";position:absolute;left:50%;top:100%;width:1px;height:12px;background:var(--primary)}
.nlp-callout>.activity-dot{position:absolute;left:-3px;top:-3px;width:6px;height:6px}
.nlp-callout small{font-size:9px;font-weight:400;letter-spacing:.06em;color:var(--muted)}
.nlp-callout.is-on{opacity:1;transform:none}
[data-theme=dark] .nlp-callout{box-shadow:0 10px 24px -14px #000}

/* nothing runs off screen */
.nlp-scene.is-offscreen *{animation-play-state:paused!important}

@media (max-width:700px){.nlp-callout{font-size:9px;padding:5px 8px}.nlp-callout small{display:none}}
@media (prefers-reduced-motion:reduce){
  .nlp-scene .neo-scene-part{animation:none;transition:none}
  .nlp-scene *{animation:none!important}
  .nlp-callout{transition:none}
}
