
/* Equal image frames remove the empty space left by mixed source proportions. */
.case-gallery{align-items:stretch;grid-auto-flow:row;gap:22px}
.case-gallery figure{align-self:stretch;min-width:0;overflow:hidden;aspect-ratio:4/3;margin:0}
.case-gallery figure img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.case-gallery figure:nth-child(3n){aspect-ratio:auto}
.case-gallery figure:nth-child(3n) img{height:auto;object-fit:initial}
.case-gallery figure:last-child:nth-child(3n + 1){grid-column:1/-1;aspect-ratio:auto}
.case-gallery figure:last-child:nth-child(3n + 1) img{height:auto}
.case-next-carousel{padding:45px 0 80px;border-top:1px solid var(--line)}
.project-cursor{position:fixed;left:0;top:0;z-index:1000;pointer-events:none;background:#dbf24c;color:#000;border:1px solid #dbf24c;padding:16px 21px;font-size:13px;line-height:1;white-space:nowrap;opacity:0;transition:opacity 150ms ease;will-change:transform;user-select:none}
.project-cursor[data-visible=true]{opacity:1}
@media(hover:hover) and (pointer:fine){body.cursor-enhanced .project-hover{opacity:0!important}body.cursor-enhanced .project-card a:focus-visible .project-hover,body.cursor-enhanced .feature-slide:focus-visible .project-hover{opacity:1!important}}
@media(max-width:600px){.case-gallery{gap:14px}.case-gallery figure,.case-gallery figure:nth-child(3n){aspect-ratio:auto}.case-gallery figure img{height:auto;object-fit:initial}.case-next-carousel{padding:35px 0 50px}.case-next-carousel .section-head{flex-direction:column;gap:12px}.case-next-carousel .section-head h2{font-size:34px}}
@media(prefers-reduced-motion:reduce){.project-cursor{display:none}}

/* Case opening fills the viewport; editorial copy keeps its natural height. */
body#top:has(main.case-page){padding-top:0}
.case-page>.case-hero{height:100svh;min-height:100svh;padding:0;margin:0;overflow:hidden}
.case-page>.case-hero img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.case-page>.case-story{min-height:0;height:auto;padding-block:clamp(48px,6vw,96px);align-items:start}
.case-page>.case-story p:last-child{margin-bottom:0}
