/* V8: shared, composited depth interaction; complete Selected Work frames */
:root{--depth-ease:cubic-bezier(.22,.72,.24,1);--depth-line:#8ecde76b;--depth-active:#58c4e6}
.depth-card{--v8-rx:0deg;--v8-ry:0deg;--v8-lift:0px;--v8-reveal:0px;--v8-alpha:1;opacity:var(--v8-alpha);translate:0 var(--v8-reveal);transform:perspective(1100px) translate3d(0,var(--v8-lift),0) rotateX(var(--v8-rx)) rotateY(var(--v8-ry))!important;transition:transform .46s var(--depth-ease),translate .78s var(--depth-ease),opacity .6s var(--depth-ease),border-color .35s,box-shadow .35s!important;transform-origin:center;min-width:0}
.depth-card.depth-engaged{transition:transform .22s var(--depth-ease),translate .78s var(--depth-ease),opacity .6s var(--depth-ease),border-color .25s,box-shadow .35s!important;z-index:5}
.depth-card.depth-wait{--v8-reveal:14px;--v8-alpha:.28}
.depth-card.depth-engaged,.depth-card:focus-visible{border-color:var(--depth-active)!important}
.depth-card:focus-visible{outline:1px solid var(--depth-active);outline-offset:3px}
.project-card.depth-engaged .project-image,.cap-row.depth-engaged .cap-motion{border-color:var(--depth-active)!important;box-shadow:0 6px 22px #189cd826}
.project-card .project-image,.process-visual,.case-thumb,.motion-shot,.motion-wide,.film-strip figure,.compare-stage,.case-hero-screen{border-radius:5px}
.project-card .project-image{border:1px solid var(--depth-line);transition:border-color .35s,box-shadow .35s}
.case-tab.depth-engaged,.motion-shot.depth-engaged,.motion-wide.depth-engaged,.film-strip figure.depth-engaged,.case-hero-screen.depth-engaged,.compare-stage.depth-engaged,.case-process-primary.depth-engaged,.case-process-secondary.depth-engaged,.process-step.depth-engaged{box-shadow:0 10px 28px #0005,0 0 0 1px #48b5d64d!important}
.film-strip figure,.compare-stage,.case-hero-screen{border:1px solid var(--depth-line)}
/* Tilt the card, not the pixels within it: no zoom-induced image clipping. */
.depth-card .project-image img,.depth-card .project-image video,.depth-card .case-thumb img,.depth-card .case-thumb video,.depth-card .process-visual video,.depth-card .cap-motion video,.film-strip figure.depth-card img{transform:none!important;scale:1!important}
.project-card .project-image,.project-card.is-wide .project-image{width:100%;height:auto!important;aspect-ratio:var(--v8-frame-ratio,var(--image-ratio,16/9))!important;max-height:none;background:#061016}
.project-card.is-portrait .project-image{aspect-ratio:9/16!important;width:100%;max-width:420px;max-height:78svh!important;margin-inline:auto}
.project-card .project-image>img,.project-card .project-image>video{width:100%;height:100%;object-fit:contain!important;object-position:center!important}
.work-section .container,.work-section .work-heading,.work-section .filters-wrap,.work-section .project-grid,.work-section .project-card,.work-section .project-info,.work-section .project-info>div{min-width:0;max-width:100%}
.work-heading h2{white-space:normal!important;overflow-wrap:normal;max-width:100%}
.work-heading h2 em{white-space:nowrap}
.project-info h3,.project-info p{overflow-wrap:anywhere}
.project-grid{align-items:start;row-gap:clamp(24px,3vw,45px)}
.project-image .project-category{max-width:calc(100% - 24px);white-space:normal;overflow-wrap:anywhere}
.process-section .process-grid{align-items:stretch;overflow:visible;gap:clamp(12px,2vw,22px)}
.process-section .process-step{min-width:0;height:100%;border:1px solid var(--depth-line)!important;box-shadow:0 8px 26px #0003}
.process-section .process-step.depth-engaged{border-color:var(--depth-active)!important}
.process-section .process-visual video{object-fit:contain!important;background:#061016}
.process-description{flex:1;min-width:0}
.process-description strong,.process-description p{overflow-wrap:anywhere}
.process-heading h2,#contact-title{max-width:100%;overflow-wrap:normal}
.process-heading.reveal,.contact-section .reveal{transition:opacity .68s var(--depth-ease),transform .84s var(--depth-ease)!important}
.process-grid.reveal{opacity:1!important;transform:none!important}
.process-section .process-step:nth-child(2n){transition-delay:0s}
.manifesto-gallery .manifesto-shot{--v8-rx:0deg;--v8-ry:0deg;--v8-lift:0px;transition:transform .45s var(--depth-ease),border-color .35s,box-shadow .35s!important}
.manifesto-gallery .shot-a{transform:translate3d(calc(var(--gx,0px)*1.4),calc(var(--gy,0px)*1.4 + var(--v8-lift)),45px) rotateZ(-3deg) rotateX(var(--v8-rx)) rotateY(var(--v8-ry))!important}
.manifesto-gallery .shot-b{transform:translate3d(calc(var(--gx,0px)*.7),calc(var(--gy,0px)*.7 + var(--v8-lift)),18px) rotateZ(2.2deg) rotateX(var(--v8-rx)) rotateY(var(--v8-ry))!important}
.manifesto-gallery .shot-c{transform:translate3d(calc(var(--gx,0px)*1.8),calc(var(--gy,0px)*1.8 + var(--v8-lift)),66px) rotateZ(-2deg) rotateX(var(--v8-rx)) rotateY(var(--v8-ry))!important}
.manifesto-gallery .manifesto-shot.depth-engaged{border-color:var(--depth-active)!important;box-shadow:0 12px 32px #0007,0 0 0 1px #48b5d6!important}
@media (hover:none),(pointer:coarse),(max-width:1180px){
 .depth-card{transition:transform .42s var(--depth-ease),translate .65s var(--depth-ease),opacity .52s var(--depth-ease),border-color .3s!important}
 .depth-card.depth-wait{--v8-reveal:9px;--v8-alpha:.5}
 .manifesto-gallery .shot-a{transform:translate3d(0,var(--v8-lift),28px) rotateZ(-3deg) rotateX(var(--v8-rx)) rotateY(var(--v8-ry))!important}
 .manifesto-gallery .shot-b{transform:translate3d(0,var(--v8-lift),12px) rotateZ(2.2deg) rotateX(var(--v8-rx)) rotateY(var(--v8-ry))!important}
 .manifesto-gallery .shot-c{transform:translate3d(0,var(--v8-lift),40px) rotateZ(-2deg) rotateX(var(--v8-rx)) rotateY(var(--v8-ry))!important}
 .process-section .process-step{border-color:var(--depth-line)!important}
 .work-heading h2{line-height:1.02}
 .project-card.is-portrait .project-image{max-width:380px}
}
@media(max-width:760px){
 .work-heading h2{font-size:clamp(43px,11.8vw,88px)}
 .project-grid{grid-template-columns:minmax(0,1fr)!important}
 .project-grid>*{grid-column:1/-1!important}
 .project-card.is-portrait .project-image{max-width:100%;width:min(100%,calc(68svh * 9 / 16));max-height:none!important}
 .process-section .process-grid{grid-template-columns:minmax(0,1fr)!important;gap:18px}
 .process-heading h2{font-size:clamp(42px,10.5vw,76px);line-height:1.02}
 .process-section .process-description{padding:20px}
 .contact-section .contact-details{min-width:0;max-width:100%}
 .contact-direct,.contact-link{max-width:100%;min-width:0;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){
 .depth-card{transform:none!important;translate:none!important;opacity:1!important;transition:none!important}
 .manifesto-gallery .shot-a{transform:rotateZ(-3deg)!important}.manifesto-gallery .shot-b{transform:rotateZ(2.2deg)!important}.manifesto-gallery .shot-c{transform:rotateZ(-2deg)!important}
}
