/* Image-led case studies with a concise, stationary project summary. */
html.project-experience-pending #main-content { visibility:hidden; }
body.project-experience-active { background:#f5f4f0 !important; color:#101719; }
body.project-experience-active :is(.page-shell,.page-main,#main-content) { background:#f5f4f0 !important; }
body.project-experience-active #main-content { display:block; width:100%; max-width:none; padding:0; margin:0; }
body.project-experience-active #main-content > [data-case-original][hidden], body.project-experience-active > footer { display:none !important; }
body.project-experience-active .nav .nav__row { background:transparent !important; box-shadow:none !important; }
body.project-experience-active.project-wide-page .nav:not(.is-open):not(.is-scrolled):not(.is-mega-open) .brand img:not(.brand__icon),
body.project-experience-active .nav.header-on-light:not(.is-open) .brand img:not(.brand__icon) { filter:invert(1) !important; }
/* The legacy scrolled case rule can briefly override the sampled tone before
   its separate is-on-light update. Keep the actual surface tone authoritative. */
body.case-reference.project-experience-active.has-compact-menu .nav.header-on-light:not(.is-open):not(.is-mega-open) .brand img:not(.brand__icon) { filter:invert(1) !important; }
body.case-reference.project-experience-active.has-compact-menu .nav.header-on-dark:not(.is-open):not(.is-mega-open) .brand img:not(.brand__icon) { filter:none !important; }
.case-experience { --case-gutter:clamp(24px,2.25vw,44px); --case-panel-width:calc((100vw - 2 * var(--case-gutter) - 8 * 8px) * 5 / 12); position:relative; min-height:100vh; color:#101719; }
.case-experience__panel { box-sizing:border-box; position:fixed; z-index:2; left:var(--case-gutter); top:clamp(118px,17.5vh,165px); bottom:clamp(38px,8vh,80px); width:var(--case-panel-width); display:flex; flex-direction:column; gap:0; }
.case-experience__title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
body.project-experience-active #main-content .case-experience__title { max-width:100%; margin:0; color:#101719; font:500 clamp(32px,3vw,52px)/1.05 Matter,system-ui,sans-serif; letter-spacing:-.045em; }
.case-experience__live { position:relative; flex:none; display:grid; place-items:center; width:24px; height:24px; color:#101719; text-decoration:none; transition:color .2s ease; }
.case-experience__live:is(:hover,:focus-visible) { color:var(--orange-dark,#b83004); }
.case-experience__live svg { width:100%; height:100%; }
@media (any-pointer:coarse) {
 .case-experience__live::after { content:''; position:absolute; inset:-10px; }
}
.case-experience__meta { margin-top:clamp(30px,7vh,66px); }
.case-experience__meta-label { display:block; margin-bottom:10px; color:#7b8587; font:500 13px/1.25 Matter,system-ui,sans-serif; }
.case-experience__tags { display:flex; flex-wrap:wrap; gap:7px; padding:0; margin:0; list-style:none; }
.case-experience__tags li { padding:6px 10px; border:1px solid #d8dcd8; color:#263236; font:500 12px/1.2 Matter,system-ui,sans-serif; }
.case-experience__tabs { display:flex; flex-wrap:wrap; margin-top:clamp(30px,7vh,65px); border-bottom:1px solid #dadeda; }
.case-experience__tab { position:relative; padding:11px 15px; border:0; background:transparent; color:#636b6d; font:400 13px/1.25 Matter,system-ui,sans-serif; cursor:pointer; transition:color .2s ease; }
.case-experience__tab + .case-experience__tab { border-left:1px solid #dadeda; }
.case-experience__tab:first-child { padding-left:0; }
.case-experience__tab:last-child { border-right:0; }
.case-experience__tab[aria-selected="true"], .case-experience__tab:hover { color:#101719; }
.case-experience__tab[aria-selected="true"]::after { position:absolute; content:''; right:0; bottom:-1px; left:0; height:1px; background:#101719; }
.case-experience__tab-panel { margin-top:20px; max-width:54ch; color:#263236; font:400 clamp(13px,1vw,15px)/1.5 Matter,system-ui,sans-serif; }
.case-experience__nav { position:relative; display:flex; align-items:center; gap:24px; margin-top:auto; padding-top:24px; font:500 14px/1.3 Matter,system-ui,sans-serif; }
.case-experience__nav a, .case-experience__mobile-nav a { color:#101719; text-decoration:none; }
.case-experience__nav a:hover, .case-experience__mobile-nav a:hover { color:#dd3d06; }
/* The progress rule follows the gallery in both directions. */
.case-experience__nav a.case-experience__next, .case-experience__mobile-nav a.case-experience__next { position:relative; display:block; box-sizing:border-box; min-width:0; padding-bottom:6px; color:#101719; transition:color .2s ease; }
.case-experience__nav a.case-experience__next { flex:1; }
.case-experience__next::before, .case-experience__next::after { content:''; position:absolute; inset:auto 0 0; height:1px; background:#e6e4e0; pointer-events:none; }
.case-experience__next::after { height:2px; background:#101719; transform:scaleX(var(--case-next-progress,0)); transform-origin:left; }
.case-experience__nav a.case-experience__next:is(:hover,:focus-visible), .case-experience__mobile-nav a.case-experience__next:is(:hover,:focus-visible) { color:var(--orange-dark,#b83004); }
@media (any-pointer:coarse) {
 .case-experience :is(.case-experience__mobile-nav,.case-experience__nav) a { align-content:center; min-height:44px; }
}
.case-experience__all { padding-right:24px; border-right:1px solid #d8dcd8; white-space:nowrap; }
.case-experience__gallery { box-sizing:border-box; width:var(--case-panel-width); margin-left:calc(50vw + 4px); padding:clamp(118px,17.5vh,165px) 0 90px; }
.case-experience__image { display:flex; justify-content:center; align-items:center; width:100%; aspect-ratio:1.21; overflow:hidden; margin:0 0 8px; background:#ebeae7; }
.case-experience__image img { display:block; width:100%; height:100%; object-fit:contain; }
.case-experience__image--hero img { object-fit:cover; }
.case-experience__gallery .case-experience__image--approved { position:relative; aspect-ratio:var(--case-media-ratio); }
.case-experience__image--approved :is(img, video) { display:block; width:100%; height:100%; object-fit:contain; }
.case-experience__image--approved video { position:absolute; inset:0; visibility:hidden; }
.case-experience__image--approved.is-video-playing video { visibility:visible; }
.case-experience__gallery--portrait .case-experience__image { aspect-ratio:14 / 15; }
.case-experience__gallery--portrait .case-experience__image img { object-fit:cover; }
.case-experience__gallery--portrait .case-experience__image--fallback img { object-fit:contain; }
/* Landscape art direction is opt-in per image; other case galleries remain portrait. */
.case-experience__gallery--portrait .case-experience__image--landscape { position:relative; aspect-ratio:582 / 480; }
.case-experience__image--landscape:not(.case-experience__image--fallback) .case-experience__picture { display:block; position:absolute; left:0; top:0; width:100%; height:129.72%; transform:translateY(-11.45%); }
.case-experience__image--landscape:not(.case-experience__image--fallback) .case-experience__picture img { width:100%; height:100%; object-fit:fill; }
.case-experience__image--landscape.case-experience__image--fallback .case-experience__picture { display:block; position:static; width:100%; height:100%; transform:none !important; }
.case-experience__image--landscape.case-experience__image--fallback .case-experience__picture img { width:100%; height:100%; object-fit:contain; }
@media (prefers-reduced-motion: reduce) {
 .case-experience__image--landscape:not(.case-experience__image--fallback) .case-experience__picture { transform:translateY(-11.45%) !important; }
}
@media (prefers-reduced-motion: reduce) and (min-width:1024px) {
 .case-experience__image--landscape:not(.case-experience__image--fallback) .case-experience__picture { transform:translateY(-9.85%) !important; }
}


.case-experience__mobile-nav { position:relative; display:none; }
.case-experience__hint { position:absolute; left:0; bottom:-20px; color:#58666b; font:400 11px/1.3 Matter,system-ui,sans-serif; }
.case-experience__rail { position:fixed; z-index:2; top:50%; right:var(--case-gutter); display:flex; flex-direction:column; align-items:flex-end; transform:translateY(var(--case-rail-offset)); }
.case-experience__rail-button { position:relative; display:grid; align-items:center; justify-items:end; width:110px; height:16px; padding:0; border:0; background:transparent; cursor:pointer; transition:height .38s cubic-bezier(.22,1,.36,1); }
.case-experience__rail-button::after { content:''; width:12px; height:1px; background:#101719; opacity:.55; transition:width .2s ease,opacity .15s ease; }
.case-experience__rail-button.is-active::after { width:28px; opacity:1; }
.case-experience__rail-button.is-active + button::after, .case-experience__rail-button:has(+ .is-active)::after { width:18px; }
.case-experience__rail-preview { position:absolute; top:50%; right:0; display:block; width:110px; height:80px; max-width:none; object-fit:cover; transform:translateY(-50%); clip-path:inset(49% 0 49% 90% round 2px); opacity:0; pointer-events:none; transition:clip-path .38s cubic-bezier(.22,1,.36,1),opacity .18s ease; }
.case-experience__rail-button.has-preview:is(:hover,:focus-visible) { height:96px; }
.case-experience__rail-button.has-preview:is(:hover,:focus-visible)::after { opacity:0; }
.case-experience__rail-button.has-preview:is(:hover,:focus-visible) .case-experience__rail-preview { clip-path:inset(0 round 6px); opacity:1; }
.case-experience :is(a,button,summary):focus-visible { outline:2px solid #dd3d06; outline-offset:4px; }
/* Keep the navigation steady while the old case study yields to the next. */
@keyframes ler-project-out { 0% { opacity:1; } 55%,100% { opacity:0; } }
@keyframes ler-project-in { 0%,30% { opacity:0; filter:blur(2px); } 100% { opacity:1; filter:blur(0); } }
html.ler-project-transition:not(.ler-mac-page-transition) .nav { view-transition-name:ler-project-header; }
html.ler-project-transition:not(.ler-mac-page-transition)::view-transition-old(root) { animation:ler-project-out 420ms ease-in-out both; mix-blend-mode:normal; }
html.ler-project-transition:not(.ler-mac-page-transition)::view-transition-new(root) { animation:ler-project-in 420ms ease-out both; mix-blend-mode:normal; }
html.ler-project-transition:not(.ler-mac-page-transition)::view-transition-old(ler-project-header) { animation:none; opacity:0; }
html.ler-project-transition:not(.ler-mac-page-transition)::view-transition-new(ler-project-header) { animation:none; }
@media (max-width:1023px), (max-height:650px) {
 .case-experience { display:flex; flex-direction:column; --case-gutter:clamp(20px,4vw,32px); }
 .case-experience__panel { position:relative; inset:auto; width:auto; min-height:0; margin:0 var(--case-gutter); padding:125px 0 50px; }
 .case-experience__gallery { width:auto; margin:0 var(--case-gutter); padding:0 0 48px; }
 .case-experience__title-row { gap:10px; }
 .case-experience__meta { margin-top:34px; }
 .case-experience__tabs { margin-top:34px; }
 .case-experience__nav { margin-top:40px; }
 .case-experience__rail { display:none; }
 .case-experience__mobile-nav { display:flex; flex-wrap:wrap; justify-content:space-between; gap:18px; padding:30px 0; font:500 14px/1.35 Matter,system-ui,sans-serif; }
}
@media (max-width:500px) {
 .case-experience__panel { padding-top:110px; padding-bottom:36px; }
 .case-experience__title-row { flex-wrap:wrap; }
 body.project-experience-active #main-content .case-experience__title { font-size:clamp(30px,8.5vw,40px); }
 .case-experience__tabs { margin-top:28px; }
 .case-experience__tab { padding:10px 8px; font-size:11px; }
 .case-experience__tab-panel { margin-top:16px; font-size:14px; }
 .case-experience__nav { gap:12px; font-size:12px; }
 .case-experience__all { padding-right:12px; }
 .case-experience__gallery:not(.case-experience__gallery--portrait) .case-experience__image:not(.case-experience__image--approved) { aspect-ratio:1.05; }
}
@media (prefers-reduced-motion:reduce) { .case-experience__rail-button, .case-experience__rail-button::after, .case-experience__rail-preview, .case-experience__tab, .case-experience .case-experience__live, .case-experience .case-experience__next { transition:none; } }

/* Case-study typography follows the reference interface, retaining LER copy. */
@font-face{font-family:'LER Case Pixel';src:url('/assets/fonts/geist-pixel/GeistPixel-Square.woff2') format('woff2');font-display:swap;font-weight:400}
body.project-experience-active #main-content .case-experience :is(h1,h2,h3,p,a,button,li,span,div){font-family:'LER Case Pixel',monospace!important}
body.project-experience-active #main-content .case-experience :is(.case-experience__tab,.case-experience__nav a,.case-experience__mobile-nav a){font-family:var(--ler-action-font,'LER Case Pixel',monospace)!important;font-weight:400}
body.project-experience-active #main-content .case-experience__title{font-size:clamp(30px,calc(3.6vw - 2px),67px)!important;font-weight:400!important;line-height:.9!important;letter-spacing:-.03em!important;overflow-wrap:anywhere}
body.project-experience-active .case-experience__live{font-size:14px;line-height:1.35}
body.project-experience-active .case-experience__meta-label{font-size:14px;line-height:1.375}
body.project-experience-active .case-experience__tags li{font-size:14px;line-height:1.375}
body.project-experience-active .case-experience__tabs{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain}
body.project-experience-active .case-experience__tab{flex:none;font-size:14px;line-height:1.375;padding:12px 16px;white-space:nowrap}
body.project-experience-active .case-experience__tab-panel{font-size:14px;line-height:1.375}
body.project-experience-active .case-experience__nav,body.project-experience-active .case-experience__mobile-nav{font-size:16px;line-height:1.25}
@media(max-width:1023px){body.project-experience-active #main-content .case-experience__title{font-size:clamp(30px,calc(8.5vw - 3px),62px)!important}}
@media(max-width:500px){body.project-experience-active .case-experience__tabs{margin-top:28px}body.project-experience-active .case-experience__tab{font-size:14px;padding:12px 16px}}
/* The title takes programmatic focus after an in-page project change so screen readers announce it. It is not in the tab order, so it needs no ring (iOS Safari otherwise draws a blue box). */
body.project-experience-active h1[tabindex="-1"]:focus{outline:none}
