/* Layout adapters only. Original materials, shaders, geometry and timing live
   in /scenes; the hero retains its original visual composition. */
html[data-paused=true] *,html[data-paused=true] *::before,html[data-paused=true] *::after{animation-play-state:paused!important}
html,body{max-width:100%;margin:0}html{scrollbar-width:none}body::-webkit-scrollbar{display:none}
[data-scene=clients] .header,[data-scene=clients] .stage-note{display:none}
[data-scene=clients] .shell{width:100%;height:100vh;min-height:0;padding:0;display:flex;flex-direction:column;gap:0}
[data-scene=clients] .main{flex:1;min-height:0;margin:0;padding:0;width:100%;display:grid;place-items:center}
[data-scene=clients] .carousel-wrap{width:100%;padding:0;transform:scale(var(--scene-scale,1))}
[data-scene=clients] .stage{height:calc(100vh - 100px);min-height:0;max-height:none;width:100%;margin:0}
[data-scene=clients] .footer{padding:0 18px 20px;margin:0;width:100%;flex:none}
[data-scene=clients] .dock{max-width:780px;margin:auto}
[data-scene=clients] .atmosphere{position:fixed}
[data-scene=projects] body{display:block;min-height:0;background:#0b0f13}
[data-scene=projects] .page{padding:0;width:100%;max-width:none;min-height:0}
[data-scene=projects] .project-showcase{width:100%;max-width:none}
[data-scene=projects] .showcase-header,[data-scene=projects] .showcase-footer{display:none}
[data-scene=projects] .showcase-stage{height:100vh;border:0;border-radius:0}
.project-details{position:absolute;right:20px;top:20px;z-index:8;border:1px solid #ffffff20;background:#121916b0;border-radius:28px;padding:10px 15px;color:#c8d9d0;font:11px system-ui;cursor:pointer}
[data-scene=business] .track,[data-scene=business] .track.ready:not(.still){height:100vh}
[data-scene=business] .stage{position:relative;height:100vh}
[data-scene=business][data-editor=false] .scene-modes{display:none}
[data-scene=business] .controls{display:none}
[data-scene=ai] body{min-height:0;height:100vh;display:block;overflow:hidden}
[data-scene=ai] main{width:100%;max-width:none;padding:0;min-height:0;height:100vh;display:flex;justify-content:center;flex-direction:column}
[data-scene=ai] main>header,[data-scene=ai] .hint{display:none}
[data-scene=ai] .showcase{width:100%;margin:0;padding:0 10px 16px}
[data-scene=ai] .carousel{height:calc(100vh - 138px);min-height:200px;max-height:none}
[data-scene=ai] .caption{margin-top:0}
[data-scene=hero][data-editor=false] #scene{touch-action:pan-y pinch-zoom}
[data-scene=hero][data-editor=false] .view-switch{z-index:20}
@media(max-width:700px){[data-scene=clients] .footer{padding:0 10px 18px}[data-scene=clients] .stage{height:calc(100vh - 86px)}[data-scene=clients] .dock{width:100%;min-width:0}.project-details{font-size:10px;right:12px;top:12px;padding:9px 12px}[data-scene=ai] .showcase{padding-inline:0}[data-scene=ai] .carousel{height:calc(100vh - 125px)}[data-scene=ai] .caption h2{font-size:19px}}
[data-scene=clients] .main{grid-template-columns:minmax(0,1fr);justify-content:stretch;align-content:center}
[data-scene=clients] .carousel-wrap{display:block;width:100%;min-width:0;transform:none}
[data-scene=clients] .cards{transform:scale(var(--scene-scale,1));transform-origin:50% 50%}

/* Intrinsic scene heights remove standalone-page whitespace without scaling art. */
[data-scene=clients] html,[data-scene=clients] body{min-width:0;min-height:0}
html[data-scene=clients]{min-width:0}
[data-scene=clients] .shell{height:auto;min-height:0}
[data-scene=clients] .main{flex:none;display:block}
[data-scene=clients] .stage{height:var(--stage-height)}
[data-scene=clients] .footer{padding:6px 12px 16px}
[data-scene=clients] .dock-overline{display:none}
[data-scene=clients] .dock{max-width:660px}
[data-scene=projects] .showcase-stage{height:var(--integrated-stage-height,500px)}
[data-scene=projects] .interaction-hint{display:none!important}
[data-scene=business] .controls{display:none!important}
[data-scene=ai] body,[data-scene=ai] main{height:auto;min-height:0}
[data-scene=ai] main{display:block}
[data-scene=ai] .showcase{margin:0;padding:12px 0 18px}
[data-scene=ai] .carousel{min-height:0}
[data-scene=ai] .caption{margin-top:clamp(18px,2.4vw,30px)}
@media(max-width:699px){[data-scene=ai] .caption{margin-top:22px}}

/* Compact mobile AI presentation; desktop and card aspect ratio stay intact. */
@media(max-width:699px){[data-scene=ai] .showcase{padding-top:6px;padding-bottom:14px}[data-scene=ai] .caption{margin-top:6px;min-height:40px}[data-scene=ai] .controls{margin-top:8px}}
