/* One stationary product frame from the end of the story into the portfolio. */
/* The document keeps its full scroll distance. Only the visual stage is fixed,
   with JS limiting its top to the story's actual entry and exit boundaries. */
.card-stage[data-viewport-pin="true"]{position:fixed;left:0;right:0;top:var(--stage-pin-top,0px);width:auto;margin:0}
.work-orbit-slot{position:absolute;left:50%;top:calc(var(--object-height)/2);width:calc(var(--object-height)*1.052568);max-width:var(--object-width);aspect-ratio:104.52/99.3;transform:translate(-50%,-50%);pointer-events:none;z-index:0}
.work-orbit-slot>.work-orbit{position:static;display:block;width:100%;max-width:none;transform:none;opacity:1}
.card-stage>.work-orbit{position:absolute;left:50%;max-width:none;transform:translate(-50%,-50%) scale(var(--portal-orbit-scale,1));transform-origin:50% 50%;z-index:1;opacity:1;will-change:transform}
/* The aperture closes the background, never the product. Keep the same depth
   order as the gallery so card edges do not pop out at the transfer. */
.card-stage>.card-world{z-index:0}
.card-stage>.o-portal{z-index:1}
.card-stage>.card-render{z-index:2}
.oxal-work .work-content{padding:0 var(--section-gutter) 72px;min-height:100svh}
.oxal-work .work-content[data-viewport-pin="true"]{position:fixed;left:0;right:0;top:var(--work-pin-top,0px);width:auto;margin:0;will-change:auto}
.oxal-work .oxal-section-top{position:absolute;top:88px;left:var(--section-gutter);right:var(--section-gutter)}
.oxal-work-intro{position:absolute;top:122px;left:0;right:0;margin:0;text-align:center;pointer-events:none}
.oxal-work .oxal-work-intro h2{font-size:clamp(62px,6.2vw,92px)}
.oxal-work .oxal-work-intro>p{margin-top:10px;font-size:11px}
.oxal-showcase{--object-height:clamp(310px,50svh,600px);padding-top:calc(50svh - var(--object-height)/2)}
.showcase-controls{margin-top:22px}
.work-concept{margin-top:28px}
.showcase-slide.is-leaving .project-media{animation:oxal-object-out .32s cubic-bezier(.4,0,.6,1) both}
.showcase-slide.is-entering .project-media{animation:oxal-object-arrive .65s cubic-bezier(.2,.7,.2,1) both}
@keyframes oxal-object-out{to{opacity:0;transform:translateX(calc(var(--slide-direction)*-12px))}}
@keyframes oxal-object-arrive{from{opacity:0;transform:translateX(calc(var(--slide-direction)*12px))}to{opacity:1;transform:none}}
@media(max-height:800px) and (min-width:761px){
 .oxal-work .oxal-section-top{display:none}.oxal-work-intro{top:91px}.oxal-work .oxal-work-intro h2{font-size:52px}.oxal-work .oxal-work-intro>p{display:none}
}
@media(max-width:760px){
 .oxal-work .work-content{padding:0 var(--section-gutter) 55px}
 .oxal-work .oxal-section-top{display:none}.oxal-work-intro{top:82px}.oxal-work .oxal-work-intro h2{font-size:64px}.oxal-work .oxal-work-intro>p{display:none}
 .oxal-showcase{--object-height:clamp(260px,40svh,360px);--name-height:92px;padding-top:calc(50svh - var(--object-height)/2 - var(--name-height))}
 .work-orbit-slot{top:calc(var(--name-height) + var(--object-height)/2);max-width:100%}
 .project-name{padding-bottom:12px}.oxal-work .project-name h3{font-size:34px}.oxal-work .project-name h3 br{display:none}.project-index{margin-top:7px}.oxal-work .project-name .showcase-category{margin-bottom:7px}
}
@media(max-width:760px) and (max-height:740px){.oxal-work-intro{top:76px}.oxal-work .oxal-work-intro h2{font-size:44px}.oxal-showcase{--name-height:82px}.oxal-work .project-name h3{font-size:29px}}
/* Compact in-app browser windows keep the same scroll scene. The project name
   takes the heading's space, leaving the O centred without overlapping copy. */
@media(max-width:760px) and (max-height:619px){
 .oxal-work-intro{width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .oxal-showcase{--object-height:clamp(200px,40svh,260px);--name-height:70px}
 .project-index{margin-top:5px}.oxal-work .project-name h3{font-size:27px}
}
@media(pointer:coarse) and (min-width:761px) and (max-height:619px){
 .card-stage{height:100svh;min-height:0}.card-story{min-height:0}
}
@media(prefers-reduced-motion:reduce){.showcase-slide.is-leaving .project-media,.showcase-slide.is-entering .project-media{animation:none}.card-stage>.work-orbit{will-change:auto}}
