/* Small, optional motion. Content stays visible when JavaScript is unavailable. */
html[data-nx-motion="on"] :is(.button,.nx-about-button,.mobile-cta a,.project-filters button){transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease!important}
html[data-nx-motion="on"] .project-card{transition:border-color .25s ease,box-shadow .25s ease!important}
html[data-nx-motion="on"] .project-image img{transition:transform .38s cubic-bezier(.2,.7,.2,1)!important}
@media(hover:hover) and (pointer:fine){
 html[data-nx-motion="on"] .project-card:hover{transform:none!important;border-color:#ff8a2b;box-shadow:0 0 0 1px #ff8a2b35,0 10px 26px #0003}
 html[data-nx-motion="on"] .project-card:hover .project-image img{transform:scale(1.025)!important;filter:none}
 html[data-nx-motion="on"] :is(.button,.nx-about-button,.mobile-cta a):hover{transform:translateY(-1px)!important;box-shadow:0 5px 16px #0003}
 html[data-nx-motion="on"] .button.primary:hover{background-color:#ff9c47}
 html[data-nx-motion="on"] .button.outline:hover{background-color:#ff8a2b15;border-color:#ff9c47}
}
html[data-nx-motion="on"] :is(.button,.nx-about-button,.mobile-cta a,.project-filters button):active{transform:scale(.98)!important;box-shadow:none}
html[data-nx-motion="on"] .project-image:focus-visible img{transform:scale(1.025)!important}
.project-card:focus-within{border-color:#ff9c47}
.service-toggle:after{transition:transform .3s ease,opacity .3s ease}
.service-disclosure[data-nx-open="true"]>summary .service-toggle:after{transform:rotate(0);opacity:0}
.service-disclosure[data-nx-open="false"]>summary .service-toggle:after{transform:rotate(90deg);opacity:1}
/* Both levels use the same plus-to-minus language. */
.service-group>summary .service-group-toggle{font-size:0;width:18px;height:18px;position:relative;flex:0 0 18px;transform:none!important}
.service-group-toggle:before,.service-group-toggle:after{content:"";position:absolute;top:8px;left:2px;width:14px;height:2px;background:#ff8a2b}
.service-group-toggle:after{transform:rotate(90deg);transition:transform .3s ease,opacity .3s ease}
.service-group[open]>summary .service-group-toggle:after,.service-group[data-nx-open="true"]>summary .service-group-toggle:after{transform:rotate(0);opacity:0}
.service-group[data-nx-open="false"]>summary .service-group-toggle:after{transform:rotate(90deg);opacity:1}
html[data-nx-motion="off"] :is(.button,.nx-about-button,.mobile-cta a,.project-filters button,.project-card,.project-image img){transition:none!important;transform:none!important;translate:none!important}
html[data-nx-motion="off"] :is(.service-toggle,.service-group-toggle):after{transition:none!important}
.nx-motion-control{color:#c5c9cd;background:transparent;border:1px solid #ffffff30;border-radius:6px;padding:7px 11px;font-size:12px;line-height:1.4;white-space:nowrap;cursor:pointer}
.nx-motion-control:hover,.nx-motion-control:focus-visible{color:#fff;border-color:#ff9c47}
.nx-motion-control:focus-visible{outline:2px solid #ff9c47;outline-offset:3px}
/* A consistent preview window keeps all rows compact. Full photos open on click. */
.selected-work-grid{align-items:stretch}
.selected-work-grid .project-card{display:flex;flex-direction:column}
.selected-work-grid .project-image{aspect-ratio:3/2;flex:0 0 auto}
.selected-work-grid .project-image img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
.selected-work-grid .project-copy{flex:1}
.selected-work-grid .project-image[data-project="customer-6502"] img{object-position:50% 56%}
.selected-work-grid .project-image[data-project="work-4"]>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#171a1d;transform:none!important}
.nx-photo-label{position:absolute;bottom:14px;padding:5px 10px;border-radius:4px;background:#151515d9;color:#fff;font-size:14px;font-weight:600;line-height:1.25;pointer-events:none}
.nx-photo-label--before{left:14px}
.nx-photo-label--after{right:14px}
@media print{.nx-motion-control{display:none}}
