/* Original photographic artworks, animated as rigid texture layers. */
.project-scene{aspect-ratio:3/2;height:auto!important;min-height:0!important;background:#24272b}
.project-scene .scene-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:none!important}
.project-scene .photo-motion{position:absolute;inset:0;width:100%;height:100%;display:none;overflow:hidden}
.project-scene.motion-ready .photo-motion{display:block}
.project-scene:after{background:linear-gradient(180deg,#191b1e55,transparent 23%,transparent 83%,#191b1e77)}
.project-scene .scene-index{font-size:9px;letter-spacing:.7px}.project-scene .visual-caption{font-size:8px}
.photo-motion *{animation-play-state:paused!important}
.in-view.motion-ready .photo-motion *{animation-play-state:running!important}
.photo-signal{fill:none;stroke:var(--mint);stroke-width:4;stroke-linecap:round;stroke-dasharray:1 99;animation:photo-signal 2.8s linear infinite;animation-delay:var(--delay)}
.signal-halo{stroke-width:18;filter:url(#signal-bloom);opacity:.7}
@keyframes photo-signal{from{stroke-dashoffset:1}to{stroke-dashoffset:-99}}
.processor-bottom{animation:processor-bottom 9s ease-in-out infinite}
.processor-middle{animation:processor-middle 9s ease-in-out infinite}
.processor-top{animation:processor-top 9s ease-in-out infinite}
@keyframes processor-bottom{0%,10%,100%{transform:translateY(0)}40%,75%{transform:translateY(9px)}}
@keyframes processor-middle{0%,17%,100%{transform:translateY(0)}47%,75%{transform:translateY(30px)}}
@keyframes processor-top{0%,24%,100%{transform:translateY(0)}54%,75%{transform:translateY(62px)}}
.processor-online{animation:processor-online 9s ease-in-out infinite;opacity:0}
@keyframes processor-online{0%,50%,88%,100%{opacity:0;transform:translateY(62px)}59%,73%{opacity:.9;transform:translateY(62px)}}
html[data-motion=off] .project-scene .photo-motion{display:none}
@media(prefers-reduced-motion:reduce){.project-scene .photo-motion{display:none!important}}
@media(min-width:601px) and (max-width:850px){.project:last-child .project-scene{align-self:center}.projects .section-heading{display:block}.projects .section-heading>p{margin-top:22px;max-width:520px}}
/* Detailed assembly and a clock-driven machining scene. */
.steel-member,.steel-finish{opacity:0;will-change:transform,opacity}
.cnc-motion{position:absolute;inset:0;width:100%;height:100%;display:none}
.cnc-ready .cnc-motion{display:block}
.scene-player{min-width:0}.scene-controls{display:grid;grid-template-columns:1fr;gap:10px 6px;padding:13px 0 12px;border-bottom:1px solid var(--line);margin-bottom:15px;color:var(--muted)}
.scene-controls[hidden]{display:none}.scene-stage-label{display:flex;gap:8px;align-items:center;font-size:10px;line-height:1.4;min-width:0}.stage-number{font-variant-numeric:tabular-nums;color:var(--mint)}.scene-actions{display:flex;align-items:center;gap:9px}.scene-actions button{background:none;border:0;padding:5px 0;color:var(--muted);font:inherit;font-size:10px;cursor:pointer}.scene-actions button:hover{color:var(--mint)}.scene-actions button:focus-visible{outline:2px solid var(--mint);outline-offset:3px}.scene-controls:has(.scene-pause:focus-visible){outline-offset:4px}
.motion-dialog{width:min(1120px,94vw);max-width:94vw;padding:48px 22px 18px;max-height:94dvh;overflow:auto}.motion-dialog::backdrop{background:#121316df;backdrop-filter:blur(8px)}.motion-close{position:absolute;right:15px;top:6px;background:none;border:0;color:var(--white);font-size:30px;cursor:pointer}.motion-dialog .scene-player{width:min(100%,calc((94dvh - 160px)*1.5));margin:auto}.motion-dialog .scene-stage-label,.motion-dialog .scene-actions button{font-size:13px}.motion-dialog .scene-controls{margin:0}.motion-dialog .scene-index{font-size:11px}.motion-dialog .visual-caption{font-size:10px}.motion-dialog .project-scene{border-radius:8px;overflow:hidden;position:relative}.motion-dialog .scene-actions{gap:18px}
html[data-motion=off] .cnc-motion{display:none!important}
@media(prefers-reduced-motion:reduce){.cnc-motion{display:none!important}.scene-controls{display:none!important}}
@media(max-width:600px){.scene-stage-label{font-size:10px}.scene-actions{gap:10px}.motion-dialog{padding:42px 10px 10px}.motion-dialog .scene-stage-label,.motion-dialog .scene-actions button{font-size:10px}}

@media(max-width:600px){.scene-actions button{min-width:28px;min-height:36px;font-size:11px}.scene-controls{gap:4px 6px}.scene-stage-label{font-size:11px}}
/* Comfortable touch targets without changing the photographic composition. */
.scene-actions button{min-height:44px;padding:6px 4px}
.motion-close{min-width:44px;min-height:44px}
@media(max-width:420px){.scene-controls{grid-template-columns:1fr}.scene-actions{justify-content:flex-end}.scene-stage-label{min-height:24px}}
.lab-controlled .photo-motion *{animation:none!important}
/* Avoid promoting every clipped full-size artwork to a permanent GPU layer. */
.steel-member,.steel-finish{will-change:auto}
.scene-actions button{min-width:44px}
