/* This study changes detail composition only. The live section layout is read-only. */
.case-view[data-story-study] .case-intro{gap:clamp(40px,7vw,140px);align-items:start}
.case-view[data-story-study] .case-title-pin{align-self:start}
.case-view[data-story-study] .case-intro-copy{padding-top:clamp(80px,12vh,140px);padding-bottom:0}
.case-view[data-story-study] .case-sequence{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(80px,12vw,180px) 24px;padding-top:40svh;padding-bottom:clamp(100px,15vh,200px)}
.case-view[data-story-study] .case-sequence .work-media{grid-column:var(--story-start)/span var(--story-span);grid-row:var(--story-row);padding-top:var(--story-offset,0px);margin:0;align-self:start}
.case-view[data-story-study] .case-sequence .work-statement{grid-column:1/-1;grid-row:var(--story-row)}
.case-view[data-story-study] .case-media-window{background:transparent;will-change:auto}
.case-view[data-story-study] [data-story-entrance=unfold]{clip-path:inset(0 0 0% 0)}
.case-view[data-story-study] [data-story-entrance=unfold]:is([data-story-reveal=pending],[data-story-reveal=waiting]){clip-path:inset(0 0 100% 0)}
.case-view[data-story-study] [data-story-entrance=fade]{opacity:1}
.case-view[data-story-study] [data-story-entrance=fade]:is([data-story-reveal=pending],[data-story-reveal=waiting]){opacity:0}
.case-view[data-story-study] [data-story-entrance=unfold][data-story-reveal=running]{will-change:clip-path}
.case-view[data-story-study] [data-story-entrance=fade][data-story-reveal=running]{will-change:opacity}
.case-view[data-story-study] .case-line>span{will-change:auto}
.case-view .case-back-label{display:none}
/* Skiper 41 / TuneShape: the viewport mask is clipped to text, never media. */
/* Desktop: extend the original mask so visible softening reaches the return icon's bottom. */
.case-view{--story-top-blur-amount:3px;--story-top-blur-height:96px;--story-top-blur-solid:0px;--story-top-fade-end:var(--story-top-blur-height);--story-top-blur-full:18px;--story-gutter:clamp(20px,2vw,40px);padding-inline:var(--story-gutter);padding-bottom:var(--story-gutter)}
.case-view .case-topbar{left:var(--story-gutter);right:auto;top:8px;min-height:0;padding:0;background:transparent}
.case-view .case-reading-name{display:none}
.case-view .case-topbar::before{content:none}
.case-view :is(.work-heading h1,.case-role,.work-kicker,.case-intro-copy p,.case-intro-copy h2,.work-fact dt,.work-fact dd,.work-resources>a,.work-resources>button,.work-media figcaption,.work-statement,.case-next p,.case-next h2,.case-next-action):not(:has(img,video,canvas,iframe)){clip-path:inset(-16px)}
.case-view :is(.work-heading h1,.case-role,.work-kicker,.case-intro-copy p,.case-intro-copy h2,.work-fact dt,.work-fact dd,.work-resources>a,.work-resources>button,.work-media figcaption,.work-statement,.case-next p,.case-next h2,.case-next-action):not(:has(img,video,canvas,iframe))::after{content:"";position:fixed;inset:0 0 auto;z-index:1;height:var(--story-top-blur-height);opacity:var(--story-top-blur-progress,0);pointer-events:none;background:linear-gradient(to bottom,var(--ground) 0 var(--story-top-blur-solid),transparent var(--story-top-fade-end));backdrop-filter:blur(var(--story-top-blur-amount));-webkit-backdrop-filter:blur(var(--story-top-blur-amount));mask-image:linear-gradient(to bottom,var(--vi-site-background) 0 var(--story-top-blur-full),color-mix(in srgb,var(--vi-site-background) 90%,transparent) calc(var(--story-top-blur-full) + (var(--story-top-blur-height) - var(--story-top-blur-full))*.15),color-mix(in srgb,var(--vi-site-background) 55%,transparent) calc(var(--story-top-blur-full) + (var(--story-top-blur-height) - var(--story-top-blur-full))*.35),color-mix(in srgb,var(--vi-site-background) 18%,transparent) calc(var(--story-top-blur-full) + (var(--story-top-blur-height) - var(--story-top-blur-full))*.65),transparent 100%);-webkit-mask-image:linear-gradient(to bottom,var(--vi-site-background) 0 var(--story-top-blur-full),color-mix(in srgb,var(--vi-site-background) 90%,transparent) calc(var(--story-top-blur-full) + (var(--story-top-blur-height) - var(--story-top-blur-full))*.15),color-mix(in srgb,var(--vi-site-background) 55%,transparent) calc(var(--story-top-blur-full) + (var(--story-top-blur-height) - var(--story-top-blur-full))*.35),color-mix(in srgb,var(--vi-site-background) 18%,transparent) calc(var(--story-top-blur-full) + (var(--story-top-blur-height) - var(--story-top-blur-full))*.65),transparent 100%)}
.case-view .case-back{width:44px;min-width:44px;padding:0;justify-content:flex-start;background:transparent}
/* The 24px VI chevron's stroke begins at x=7.3; align its ink to the content grid. */
.case-view .case-back .vi-icon{display:inline-block;flex:0 0 auto;width:24px;height:24px;background:currentColor;mask:url('/vi/icons/chevron-left.svg') -7.3px center/contain no-repeat;-webkit-mask:url('/vi/icons/chevron-left.svg') -7.3px center/contain no-repeat}
.case-view .case-next>a{grid-template-columns:minmax(0,1fr) clamp(180px,22vw,280px);align-items:start;min-height:0}
.case-view .case-next-thumb{align-self:start;justify-self:end;max-width:280px}
.case-view .case-next>a[data-case-next]{position:relative;grid-template-columns:minmax(0,1fr) clamp(180px,22vw,280px);grid-template-rows:auto auto auto;row-gap:0}
.case-view .case-next>a[data-case-next]>div:first-child{display:contents}
.case-view .case-next>a[data-case-next] p{grid-column:1;grid-row:1}
.case-view .case-next>a[data-case-next] h2{grid-column:1;grid-row:2;position:relative;left:var(--story-next-title-left,0px)}
.case-view .case-next>a[data-case-next] .case-next-action{grid-column:1;grid-row:3;justify-self:start;position:relative;top:var(--story-next-action-top,0px);left:var(--story-next-action-left,0px)}
.case-view .case-next>a[data-case-next] .case-next-thumb{position:static;grid-column:2;grid-row:1/4;width:100%;height:auto;max-width:100%;aspect-ratio:4/3}
@media(max-width:960px){
 .case-view{--story-top-blur-height:120px;--story-top-blur-solid:44px;--story-top-fade-end:120px;--story-top-blur-full:44px}
 /* The viewport is already safe-area inset by Safari; add no extra top gap. */
 .case-view .case-topbar{right:var(--story-gutter);top:0}
 /* Safari can expose scrolled content above fixed y=0 as its toolbar changes.
    Keep that upper strip opaque, independent of each paragraph's blur clip. */
 .case-view .case-topbar::before{content:"";position:absolute;z-index:-1;inset:auto calc(-1 * var(--story-gutter)) 0;height:calc(100vh + 100%);height:calc(100lvh + 100%);background:var(--ground)}
 /* Match the chevron's painted height inside its 24px box; keep the 44px hit target. */
.case-view .case-reading-name{display:block;min-width:0;max-width:calc(100% - 68px);height:24px;font:520 var(--story-reading-name-size,16px)/24px var(--font);transform:translateY(var(--story-reading-name-shift,1px));text-align:right;color:var(--ink)}
 .case-view[data-story-study] .case-sequence{display:flex;flex-direction:column;gap:72px;padding-top:96px}
 .case-view[data-story-study] .case-sequence .work-media{width:100%;padding-top:0}
 .case-view[data-story-study] .case-intro-copy{padding-top:64px}
 .case-view .case-next>a{grid-template-columns:minmax(0,1fr) clamp(104px,24vw,176px);gap:24px}
 .case-view .case-next>a[data-case-next]{grid-template-columns:minmax(0,1fr) clamp(104px,24vw,176px)}
 .case-view .case-next-cover-note{max-width:calc(100% - 8px);right:4px;bottom:4px;padding:2px 4px}
}
@media(max-width:600px){.case-view .case-next>a[data-case-next] .case-next-action{margin-top:12px}}
@media(prefers-reduced-motion:reduce){
 .case-view[data-story-study] [data-story-entrance]{clip-path:none!important;opacity:1!important;transform:none!important}
 .case-view[data-story-study] .case-line>span{opacity:1!important}
}

/* Free copy movement must not use the old line-by-line reveal windows. */
.case-view .case-intro-copy .case-line,
.case-view .case-sequence figcaption .case-line{overflow:visible}
/* Only unread copy needs extra travel room; completed reading retains its approved clip. */
.case-view :is(.case-intro-copy p,.case-intro-copy h2,.work-fact dt,.work-fact dd,.work-media figcaption):has(.case-line>span[data-story-text-progress]:not([data-story-text-progress="1"])){clip-path:inset(-16px -16px -48px)}
/* A moving copy group cannot become the containing block for the fixed reading blur. */
.case-view[data-transition-phase="entering"] .work-heading :is(h1,.case-role,.work-kicker)::after{content:none}
.case-view[data-return-stage="reverse-copy-out"] :is(.work-heading h1,.case-role,.work-kicker,.case-intro-copy p,.case-intro-copy h2,.work-fact dt,.work-fact dd,.work-resources>a,.work-resources>button)::after{content:none}
