/* FREIRE // OS v0.6 — mobile-safe motion + portrait framing */
.neural-stage{contain:layout paint;}
.neural-stage .neural-backbone{position:absolute;inset:0;display:block;width:100%;height:100%;z-index:2;pointer-events:none;overflow:visible}
.neural-stage .neural-packet{display:block;opacity:.96;filter:drop-shadow(0 0 5px #70f9cd)}
.neural-stage .neural-packet circle{transform-origin:center}
.neural-stage .neural-edge-energy{animation:energyTravel var(--speed,4s) linear infinite;will-change:stroke-dashoffset}
.neural-node.is-active .neural-node-core{box-shadow:0 0 0 7px #7cf4d229,0 0 28px #75f0c38c,inset 0 0 16px #c2fff777}
/* Keep animated terminal watermark behind agent cards, never over portraits or descriptions. */
.experience-v2 .about-system{position:relative;z-index:7}
/* Deliberate side-by-side portrait framing, with subject centered inside the source, no zoom on hover. */
.team-card{align-items:stretch}
.team-card-image{position:relative;display:block!important;overflow:hidden!important;padding:0!important;min-width:0;min-height:0;background:#c7d2ee!important}
.team-card-image img,.team-card:hover .team-card-image img,.team-card[aria-pressed=true] .team-card-image img{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;max-width:none!important;
 aspect-ratio:auto!important;object-fit:cover!important;object-position:28% 28%!important;transform:none!important;filter:none!important
}
.team-card-image::before{display:none}
.team-card-index{z-index:2}
@media(max-width:880px){.team-card{grid-template-columns:minmax(155px,36%) minmax(0,1fr)} }
@media(max-width:600px){
 .team-card{grid-template-columns:40% minmax(0,1fr);min-height:355px}
 .team-card-image{height:100%;min-height:100%}
 .team-card-image img{object-position:28% 26%!important}
 .team-card-content{padding:16px 12px}
 .neural-stage canvas{opacity:.85}
 .neural-edge-energy{stroke-width:3.5;filter:none}
 .neural-packet circle{r:5px}
}
@media(max-width:380px){.team-card{grid-template-columns:39% minmax(0,1fr)}}
/* Reduced-motion respects the device by default; an explicit press overrides it for just the site. */
@media(prefers-reduced-motion:reduce){
 .experience-v2:not(.motion-override) .neural-packet{display:none!important}
 .experience-v2:not(.motion-override) .neural-edge-energy{animation:none!important;opacity:.28}
 .experience-v2.motion-override .neural-edge-energy{animation-name:energyTravel!important;animation-duration:var(--speed,4s)!important;animation-iteration-count:infinite!important;animation-timing-function:linear!important;opacity:.84}
 .experience-v2.motion-override .neural-packet{display:block!important}
 .experience-v2.motion-override .neural-node.is-active .neural-node-core{transition:none!important}
}
