/* The viewport scales the document; its contents always resolve desktop breakpoints. */
.case-canvas-viewport{width:100%;min-width:0}
.case-canvas-content{container-type:inline-size;container-name:portfolio-case;--case-scale:1;transform-origin:top left}
.case-canvas-content .cd-nav{top:var(--canvas-nav-top,104px)}
.case-canvas-content .page-width{width:88%;max-width:1440px;margin-inline:auto}
.case-canvas-content .case-hero-shell .case-title{font-size:clamp(36px,4.8cqw,68px);font-weight:500;line-height:1.45;letter-spacing:0;max-width:1160px}
.case-canvas-content .case-breadcrumb{margin-bottom:48px;font-size:12px}
.case-canvas-content .case-hero-shell .case-subtitle{font-size:17px;line-height:1.95;margin-top:28px;max-width:720px}
.case-canvas-content .case-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:30px 0 35px;margin-top:42px}
.case-canvas-content .case-meta>div:last-child{grid-column:auto}
.case-canvas-content .case-meta dt{font-size:11px;margin-bottom:9px}
.case-canvas-content .case-meta dd{font-size:13px;line-height:1.6}
.case-canvas-content .next-project h2{font-size:clamp(28px,3.45cqw,51px);line-height:1.5}
.case-canvas-content .next-project p{font-size:12px;margin-bottom:20px}
.case-orientation-hint{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:16px;right:16px;z-index:70;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 12px 12px 16px;background:#f7f8f2;color:#30392e;border:1px solid #dbe0d3;border-radius:10px;box-shadow:0 4px 18px #00000015}
.case-orientation-hint[hidden]{display:none}
.case-orientation-hint strong{display:block;font-size:14px;line-height:1.6;font-weight:600}
.case-orientation-hint span{display:block;font-size:12px;line-height:1.7;color:#66705f;margin-top:2px}
.case-orientation-hint button{width:44px;height:44px;flex:0 0 44px;font-size:25px;font-weight:400;line-height:1;padding:0;color:#58634e}
@media(orientation:landscape){.case-orientation-hint{display:none}}
/* Software rotation works inside mobile browsers without orientation-lock support. */
.case-orientation-hint{flex-wrap:wrap}
.case-orientation-hint>div{flex:1 1 180px}
.case-orientation-hint .case-rotate-start{width:auto;flex:0 0 auto;height:36px;padding:0 13px;font-size:13px;line-height:36px;background:#343d30;color:#f5f7ef;border-radius:6px}
.case-orientation-hint .case-hint-close{width:28px;height:36px;flex:0 0 28px}
body.case-rotated{overflow:hidden;overscroll-behavior:none}
.case-rotated>.header,.case-rotated>.footer{visibility:hidden!important;pointer-events:none}
.case-rotation-overlay{position:fixed;left:0;top:0;transform-origin:0 0;transform:rotate(90deg) translateY(-100%);z-index:200;background:#fff;color:#191919;isolation:isolate}
.case-rotation-scroll{width:100%;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-behavior:auto}
.case-rotation-overlay .case-canvas-content{min-height:100%}
.case-rotation-overlay .cd-nav{top:var(--canvas-nav-top)!important}
.case-rotation-overlay .reveal,.case-rotation-overlay .cd-persona{opacity:1!important;visibility:visible!important}
.case-rotate-exit{position:absolute;right:max(14px,env(safe-area-inset-bottom));bottom:12px;z-index:10;display:flex;gap:7px;align-items:center;padding:10px 14px;background:#343d30;color:#f5f7ef;border:1px solid #69755d;border-radius:7px;font:500 13px Manrope,'PingFang SC',sans-serif;box-shadow:0 2px 8px #0002}
.case-rotate-exit svg{width:19px;height:19px}
.studio-button .thin-arrow{width:26px;height:26px;flex-shrink:0;display:block}
.case-rotation-overlay .case-hero-shell{display:none}
.case-rotation-overlay .cd-sheet{scroll-margin-top:16px}
.case-rotation-overlay.is-natural-landscape{transform:none}

/* Rotated reading uses its own scroll container, so window-scroll reveals must
   never leave content parked at their initial translucent animation state. */
.case-rotation-overlay :is(.cd-title,.cd-persona,.cd-journey-card,.cd-goal-grid,.nc-art,.nc-columns,.nc-goals,.nc-process,.nc-ai-detail,.nc-screen-columns,.nc-daily-overview,.nc-poster-grid,.nc-banner-grid,.case-figure,.next-project h2,.next-arrow){opacity:1!important;visibility:visible!important;filter:none!important}
