/* Case studies: large media, deliberate empty space, a legible native document. */
.case-study{--case-gutter:clamp(20px,4.3vw,78px);--case-gap:clamp(35px,5vw,90px);}
.case-study .project-top,.case-study .project-hero h1,.case-study .film-caption{padding-left:var(--case-gutter);padding-right:var(--case-gutter);}
.case-study .project-hero h1{max-width:1200px;line-height:1.12;padding-top:24px;padding-bottom:45px;}
.case-study .film-caption{padding-top:22px;padding-bottom:34px;}
.case-study .process-nav{padding:22px var(--case-gutter);gap:32px;border-top:1px solid var(--line);scrollbar-width:thin;background:#e6eef4f5;backdrop-filter:blur(12px);z-index:8;}
.case-study .process-nav a{position:relative;display:flex;gap:8px;align-items:baseline;padding-bottom:4px;transition:color .2s;}
.case-study .process-nav a small{font-size:9px;opacity:.6;font-variant-numeric:tabular-nums;}
.case-study .process-nav a:after{content:'';position:absolute;bottom:-6px;left:0;width:100%;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .3s;}
.case-study .process-nav a[aria-current=location]:after,.case-study .process-nav a:hover:after{transform:scaleX(1);}
.case-reading-progress{position:fixed;left:0;top:0;height:2px;width:100%;transform:scaleX(var(--case-progress,0));transform-origin:left;background:#275b86;z-index:30;pointer-events:none;}
.case-study .statement{padding:100px var(--case-gutter) 120px;display:grid;grid-template-columns:32% minmax(0,1fr);gap:var(--case-gap);max-width:1600px;margin:auto;}
.case-eyebrow,.case-chapter{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-bottom:20px;font-variant-numeric:tabular-nums;}
.case-study .statement h2{position:static;font-size:clamp(26px,2.8vw,40px);line-height:1.25;margin:0;}
.case-section-intro .source-link{display:inline-block;margin:30px 0 0;font-size:12px;}
.case-study .statement-copy{max-width:43em;font-size:17px;line-height:2;}
.case-section{padding:65px var(--case-gutter) 110px;border-top:1px solid var(--line);scroll-margin-top:82px;max-width:1800px;margin:auto;}
.case-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin:0 0 60px;}
.case-section-heading>div{display:flex;align-items:baseline;gap:32px;}
.case-section-heading .case-chapter{margin:0;font-size:11px;white-space:nowrap;}
.case-section-heading h2{font:400 clamp(25px,3vw,43px)/1.25 Baskerville,'Songti SC',serif;margin:0;}
.case-section-heading>span{font-size:11px;color:var(--muted);line-height:1.7;}
.case-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:85px 32px;align-items:start;}
.case-plate{grid-column:1/-1;min-width:0;margin:0;padding:0;}
.case-plate figure{margin:0;}
.case-study .case-image-button{display:block;position:relative;width:100%;height:auto;min-height:0;padding:0;border:0;background:none;overflow:visible;cursor:zoom-in;}
.case-image-surface{display:block;width:100%;max-width:100%;aspect-ratio:var(--image-ratio);overflow:hidden;background:#d6e2eb;position:relative;}
.case-study .case-image-button img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center;background:none;}
.case-plate.is-portrait .case-image-surface{max-width:calc(78svh * var(--image-ratio));margin:auto;}
.case-image-open{position:absolute;bottom:16px;right:16px;display:block;font-size:11px;line-height:1;padding:11px 13px;border-radius:0;background:#e6eef4eb;color:#19364c;opacity:0;transform:translateY(5px);transition:opacity .25s,transform .25s;pointer-events:none;}
.case-image-button:hover .case-image-open,.case-image-button:focus-visible .case-image-open{opacity:1;transform:none;}
.case-study .case-plate figcaption{display:flex;gap:20px;align-items:baseline;justify-content:space-between;font-size:12px;line-height:1.6;margin:18px 0 0;color:var(--muted);}
.case-plate figcaption>span:first-child{font-variant-numeric:tabular-nums;font-size:10px;}
.case-plate .prompt{margin-top:20px;}
.case-plate .prompt-text{font-size:13px;}
.case-assets .case-plate:nth-child(4n+1){grid-column:1/8;}
.case-assets .case-plate:nth-child(4n+2){grid-column:9/13;margin-top:145px;}
.case-assets .case-plate:nth-child(4n+3){grid-column:2/6;}
.case-assets .case-plate:nth-child(4n+4){grid-column:7/13;margin-top:120px;}
.case-assets .case-plate.is-landscape{grid-column:1/-1;margin-top:0;}
.case-assets .case-plate:last-child:nth-child(4n+1){grid-column:5/13;}
.case-single .case-grid{display:block;}
.case-single .is-portrait .case-image-surface{margin-left:auto;margin-right:0;}
.case-single .is-portrait figcaption{max-width:65%;margin-left:auto;}
.case-sequence .case-plate:nth-child(odd){grid-column:1/9;}
.case-sequence .case-plate:nth-child(even){grid-column:5/13;margin-top:45px;}
.case-sequence .case-grid{row-gap:100px;}
.case-workflow .case-grid{display:block;}
.case-workflow .case-plate+.case-plate{margin-top:100px;}
.case-workflow .case-image-surface{width:100%;max-width:none;}
.case-study .prompt-section{grid-template-columns:32% minmax(0,1fr);gap:var(--case-gap);padding:75px var(--case-gutter) 100px;scroll-margin-top:82px;}
.case-study .prompt-section h2{font-size:32px;}
.case-study .statement{scroll-margin-top:82px;}
.case-study .project-footer{padding:70px var(--case-gutter) 100px;border-top:1px solid var(--line);}
.case-study .next-work span{font-size:clamp(26px,3.2vw,48px);}
.case-motion-canvas{position:fixed;inset:0;width:100%;height:100%;z-index:6;pointer-events:none;opacity:0;}
.scroll-media-active{opacity:0;}
@media(max-width:1000px) and (min-width:701px){.case-study{--case-gutter:30px;--case-gap:30px;}.case-study .statement{grid-template-columns:25% minmax(0,1fr);}.case-section-heading>div{gap:18px;}.case-section-heading>span{max-width:190px;}.case-assets .case-plate:nth-child(4n+2){grid-column:9/13;margin-top:90px;}.case-grid{column-gap:20px;}}
@media(max-width:700px){
 .case-study{--case-gutter:18px;--case-gap:24px;}.case-study .project-hero h1{font-size:36px;padding-top:12px;padding-bottom:30px;}.case-study .film-caption{padding-bottom:25px;gap:18px;font-size:11px;}
 .case-study .process-nav{padding:17px 18px;gap:25px;font-size:11px;}.case-study .process-nav a small{font-size:8px;}
 .case-study .statement{display:block;padding:50px 18px 65px;}.case-study .statement h2{font-size:28px;}.case-section-intro .source-link{margin-top:15px;}.case-study .statement-copy{font-size:16px;line-height:1.95;margin-top:32px;}
 .case-eyebrow{margin-bottom:12px;font-size:10px;}.case-section{padding:38px 18px 60px;scroll-margin-top:70px;}.case-section-heading{align-items:flex-start;margin-bottom:30px;gap:18px;}.case-section-heading>div{display:block;}.case-section-heading .case-chapter{font-size:9px;margin-bottom:10px;}.case-section-heading h2{font-size:27px;}.case-section-heading>span{font-size:10px;max-width:120px;text-align:right;padding-top:3px;}
 .case-grid{display:block;}.case-plate,.case-assets .case-plate:nth-child(n),.case-sequence .case-plate:nth-child(n){width:100%;margin:0 0 45px;padding:0;}.case-assets .case-plate:nth-child(even){width:85%;margin-left:auto;}.case-plate:last-child{margin-bottom:0!important;}.case-plate.is-portrait .case-image-surface{max-width:100%;}.case-single .is-portrait figcaption{max-width:none;}.case-workflow .case-plate+.case-plate{margin-top:45px;}
 .case-study .case-plate figcaption{font-size:11px;margin-top:12px;gap:15px;}.case-image-open{opacity:1;transform:none;font-size:10px;padding:9px;right:9px;bottom:9px;}
 .case-study .prompt-section{display:block;padding:40px 18px 65px;}.case-study .prompt-section h2{font-size:27px;margin-bottom:25px;}.case-study .project-footer{padding:45px 18px 65px;}.case-study .next-work span{font-size:24px;}.case-reading-progress{height:2px;}
}
@media(prefers-reduced-motion:reduce){.case-motion-canvas{display:none;}.scroll-media-active{opacity:1;}.case-image-open,.case-study .process-nav a:after{transition:none;}}
/* v46: bounded scroll scenes, compact horizontal strips, no canvas trails. */
.case-study .case-section{padding:0;max-width:none;margin:0;border-top:1px solid var(--line);scroll-margin-top:0;}
.case-scroll-scene{position:relative;--media-height:clamp(230px,43svh,410px);}
.case-stage{padding:36px var(--case-gutter) 30px;display:flex;flex-direction:column;justify-content:center;gap:26px;background:var(--bg);}
.case-scroll-enabled .case-scroll-scene{height:var(--scene-height);}
.case-scroll-enabled .case-stage{position:sticky;top:var(--scene-top);height:var(--stage-height);}
.case-study .case-section-heading{margin:0;align-items:center;}
.case-study .case-section-heading h2{font-size:clamp(25px,2.4vw,35px);}
.case-study .case-section-heading>span{max-width:240px;}
.case-window{width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;overscroll-behavior-x:contain;outline-offset:5px;padding:12px 0;}
.case-scroll-enabled .case-window{overflow:hidden;}
.case-study .case-grid{display:flex;align-items:flex-start;gap:32px;width:max-content;max-width:none;}
.case-study .case-plate,.case-study .case-assets .case-plate:nth-child(n),.case-study .case-sequence .case-plate:nth-child(n){flex:none;grid-column:auto;width:clamp(220px,calc(var(--media-height) * var(--plate-ratio)),650px);max-width:82vw;min-width:0;margin:0;padding:0;}
.case-study .case-image-surface,.case-study .case-plate.is-portrait .case-image-surface,.case-study .case-workflow .case-image-surface{height:var(--media-height);width:100%;max-width:none;margin:0;aspect-ratio:auto;background:transparent;}
.case-study .case-image-button img{object-fit:contain;}
.case-study .case-plate figcaption,.case-study .case-single .is-portrait figcaption{width:100%;max-width:none;margin:13px 0 0;font-size:11px;}
.case-study .case-workflow .case-plate+.case-plate{margin-top:0;}
.case-scroll-enabled .case-grid{will-change:transform;}
.case-scene-controls{display:flex;align-items:center;gap:24px;min-height:34px;}
.case-scene-hint{font-size:11px;color:var(--muted);white-space:nowrap;}
.case-scene-meter{height:1px;position:relative;flex:1;background:var(--line);}
.case-scene-meter i{display:block;height:1px;background:var(--ink);transform:scaleX(0);transform-origin:left;}
.case-scene-actions{display:flex;align-items:center;gap:18px;}
.case-scene-actions button{font-size:22px;padding:4px 8px;}
.case-scene-actions button:disabled{opacity:.25;cursor:default;}
.case-scene-actions span{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:45px;text-align:center;}
.case-study .case-single .case-grid,.case-study .case-scroll-scene[data-scene-type=reveal] .case-grid{width:100%;justify-content:flex-end;}
.case-study .case-single .case-plate,.case-study .case-scroll-scene[data-scene-type=reveal] .case-plate{width:clamp(240px,calc(var(--media-height) * var(--plate-ratio)),760px);max-width:100%;}
.case-prompt-bank{padding:0 var(--case-gutter) 55px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 45px;}
.case-image-prompts h3{font-size:12px;font-weight:400;margin:8px 0;color:var(--muted);}
.case-image-prompts .prompt{margin:0;}
.case-image-prompts .prompt-text{font-size:13px;}
.case-study .statement{padding-top:65px;padding-bottom:70px;}
@media(max-width:900px){.case-stage{padding:30px var(--case-gutter);gap:22px;}.case-scroll-scene{--media-height:clamp(240px,44svh,370px);}.case-prompt-bank{grid-template-columns:1fr;}}
@media(max-width:700px){
 .case-scroll-scene{--media-height:clamp(210px,36svh,290px);}.case-stage{padding:28px 18px 30px;gap:18px;}
 .case-study .case-section-heading h2{font-size:25px;}.case-study .case-section-heading>span{max-width:112px;font-size:9px;}.case-study .case-grid{gap:20px;}
 .case-study .case-plate,.case-study .case-assets .case-plate:nth-child(n),.case-study .case-sequence .case-plate:nth-child(n){width:clamp(190px,calc(var(--media-height) * var(--plate-ratio)),78vw);max-width:78vw;margin:0!important;}
 .case-study .case-single .case-plate{max-width:100%;}.case-scene-controls{gap:12px;flex-wrap:wrap;}.case-scene-hint{font-size:10px;}.case-scene-actions{gap:8px;}.case-scene-actions button{font-size:20px;}.case-scene-actions span{font-size:10px;}.case-scene-meter{min-width:20px;}.case-prompt-bank{padding:0 18px 35px;}
 .case-window{scroll-snap-type:x proximity;}.case-plate{scroll-snap-align:start;}
}

.case-window.is-strip-dragging,.case-window.is-strip-dragging *{cursor:grabbing!important;user-select:none;}
/* v47: entrances are visible, time-based sequences; the document keeps moving. */
.case-study .case-scroll-scene{height:auto;}
.case-study .case-stage{position:relative;top:auto;height:auto;padding-top:42px;padding-bottom:38px;}
.case-study .case-window{padding-top:22px;padding-bottom:8px;perspective:1000px;}
.case-study .case-image-surface{transform-origin:50% 100%;backface-visibility:hidden;}
.case-study .case-plate{perspective:1000px;}
.case-study .case-section-heading{will-change:transform,opacity;}
@media(max-width:700px){.case-study .case-stage{padding-top:32px;padding-bottom:32px;}}
@media(prefers-reduced-motion:reduce){.case-study .case-image-surface,.case-study .case-section-heading{transform:none!important;opacity:1!important;clip-path:none!important;}}
