/* The photo stays inside the ring; it never morphs into the next cover. */
.case-next { box-sizing:border-box; display:flex; align-items:flex-end; justify-content:center; width:100%; height:clamp(220px,30svh,320px); margin:0 auto; padding:0 20px 64px; color:#111; }
.case-next__link { position:relative; z-index:18; display:flex; align-items:center; width:max-content; color:inherit; text-decoration:none; touch-action:manipulation; }
.case-next__link:focus-visible { outline:2px solid #1d56bc; outline-offset:10px; border-radius:4px; }
.case-next__circle { position:relative; display:grid; place-items:center; width:80px; height:80px; border-radius:50%; background:#f7f7f7; }
.case-next__photo { position:absolute; inset:6px; overflow:hidden; border-radius:50%; opacity:0; }
.case-next__photo img { display:block; width:100%; height:100%; object-fit:cover; }
[data-photo-ready] .case-next__photo { opacity:clamp(0,calc(var(--next-progress,0)*1.5),1); }
.case-next__arrow { position:relative; width:24px; height:24px; transform:translateY(calc(var(--next-progress,0)*3px)); }
[data-photo-ready] .case-next__arrow { opacity:clamp(0,calc(1 - var(--next-progress,0)*2.5),1); }
.case-next__ring { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
.case-next__ring circle { fill:none; stroke-width:1; }
.case-next__track { stroke:#ddd; }
.case-next__fill { stroke:#111; stroke-width:1.5!important; stroke-linecap:round; stroke-dasharray:100; stroke-dashoffset:calc(100 - var(--next-progress,0)*100); opacity:clamp(0,calc(var(--next-progress,0)*20),1); }
@media(hover:hover){.case-next__link:hover .case-next__circle{background:#eee}}
@media(max-width:699px){.case-next{height:clamp(200px,28svh,280px);padding-bottom:max(48px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.case-next__arrow{transform:none}}
.case-cover-target { position:relative; }
.case-cover-wave { position:absolute; inset:-18% -22%; width:144%; height:136%; pointer-events:none; z-index:1; }
.case-cover-wave-active { overflow:visible!important; }
.case-cover-wave-active>.project-hero-zoom-frame { overflow:visible; }
.case-cover-wave-active img[data-project-prefetch] { visibility:hidden; }
