/* Next case sits beneath the page rather than moving as a separate card. */
html body.case-footer-page #main.has-case-footer-reveal{isolation:isolate;background:#1d211e;overflow-x:clip}
.case-reading-layer{position:relative;z-index:2;background:#f8f8f3;padding-bottom:60px}
.case-reading-layer:after{content:'';position:absolute;left:-5%;bottom:calc(-1 * var(--footer-curve,100px));width:110%;height:calc(2 * var(--footer-curve,100px));border-radius:0 0 50% 50%;background:#f8f8f3;pointer-events:none}
html body.case-footer-page #main>.case-navigation{position:sticky;bottom:0;z-index:1;box-sizing:border-box;display:flex;align-items:center;min-height:60svh;width:100%;max-width:none;margin:0;border-radius:0;padding:140px max(6vw,calc((100vw - 1280px)/2)) 80px;background:#1d211e}
html body.case-footer-page #main>.case-navigation>a{width:100%}
@media(max-width:700px){html body.case-footer-page #main>.case-navigation{min-height:50svh;padding-top:110px;padding-bottom:60px}}
/* A compact next-case reveal. */
html body.case-footer-page #main>.case-navigation{min-height:36svh;padding-top:88px;padding-bottom:56px}
@media(max-width:700px){html body.case-footer-page #main>.case-navigation{min-height:32svh;padding-top:70px;padding-bottom:44px}}
/* One quiet text link; the accent lives in its contextual circular invitation. */
html body.case-footer-page #main>.case-navigation a,
html body.case-footer-page #main>.case-navigation a:is(:hover,:focus-visible){background:transparent!important;background-image:none!important;color:#f8f8f3!important;box-shadow:none!important;text-decoration:none!important;border:0!important}
html body.case-footer-page #main>.case-navigation a:before,
html body.case-footer-page #main>.case-navigation a:after{display:none!important}
html body.case-footer-page #main>.case-navigation a strong,
html body.case-footer-page #main>.case-navigation a:is(:hover,:focus-visible) strong{background:none!important;color:#f8f8f3!important;text-decoration:none!important;transition:opacity .25s}
html body.case-footer-page #main>.case-navigation a b{color:#f8f8f3!important;transform:none!important}
html body.case-footer-page #main>.case-navigation .next-case-hover{position:fixed;z-index:5;display:grid;place-items:center;width:96px;height:96px;flex:none;border-radius:50%;background:#adf443;color:#1d211e;opacity:0;pointer-events:none;transform:translate(-50%,-50%) scale(.6);transition:opacity .2s,transform .3s cubic-bezier(.2,.8,.2,1);font:500 14px/1 'DM Sans',sans-serif;letter-spacing:0}
html body.case-footer-page #main>.case-navigation .is-title-hovered .next-case-hover{opacity:1;transform:translate(-50%,-50%) scale(1)}
html body.case-footer-page #main>.case-navigation .is-title-hovered strong{opacity:.65}

html body.case-footer-page #main>.case-navigation a>strong{font:400 clamp(34px,5.5vw,80px)/1.1 'DM Sans',sans-serif!important;letter-spacing:-.02em!important;text-transform:none!important}
html body.case-footer-page #main>.case-navigation a>b{display:inline-flex;align-items:center;margin-left:12px}
html body.case-footer-page #main>.case-navigation a>b svg{width:clamp(26px,3.2vw,44px);height:clamp(26px,3.2vw,44px)}

/* Never expose the sticky lower layer at the top of a newly loaded case. */
html body.case-footer-page #main>.case-navigation{visibility:hidden;pointer-events:none}
html body.case-footer-page #main>.case-navigation.is-footer-visible{visibility:visible;pointer-events:auto}
/* Keep the arrow beside the title on the same visual centreline. */
html body.case-footer-page #main>.case-navigation>a{display:grid;grid-template-columns:minmax(0,max-content) auto;align-items:center;justify-content:start;gap:18px 20px}
html body.case-footer-page #main>.case-navigation a>span:not(.next-case-hover){grid-column:1/-1}
html body.case-footer-page #main>.case-navigation a>strong{grid-column:1;grid-row:2;min-width:0}
html body.case-footer-page #main>.case-navigation a>b{grid-column:2;grid-row:2;align-self:center;margin:0;line-height:1}
@media(max-width:700px){html body.case-footer-page #main>.case-navigation>a{grid-template-columns:minmax(0,1fr) auto;gap:16px}}
html body.case-footer-page #main>.case-navigation a>b{width:clamp(42px,5vw,68px);height:clamp(42px,5vw,68px);flex:none;align-items:center;justify-content:center}
html body.case-footer-page #main>.case-navigation a>b svg.site-arrow{display:block;width:100%;height:100%;stroke-width:2;stroke-linecap:square;stroke-linejoin:miter}
/* The next-case circle replaces both native and portfolio cursor artwork. */
@media (hover:hover) and (pointer:fine){
 html body.case-footer-page.portfolio-cursor #main>.case-navigation a.is-title-hovered,
 html body.case-footer-page.portfolio-cursor #main>.case-navigation a.is-title-hovered *{cursor:none!important}
}
