/* Shared case-study styles, matched to Esculab. */
@font-face{font-family:'Case Inter';src:url("/case-assets/esculab-assets-248/inter.ttf");font-weight:100 900;font-display:swap}
@font-face{font-family:'Case Syne';src:url("/case-assets/esculab-assets-248/syne-variable.ttf");font-weight:400 800;font-display:swap}
body{-webkit-font-smoothing:antialiased}
.case-text{font-family:'Case Inter',sans-serif!important;font-size:16px!important;line-height:24px!important;letter-spacing:0!important}
.case-text-inline{font-family:inherit!important;font-size:inherit!important;line-height:inherit!important}
.case-page-title,.case-page-title *{font-family:'Case Syne',sans-serif!important;font-size:32px!important;line-height:38.4px!important;font-weight:400!important;letter-spacing:-.56px!important;color:#0a0a0a!important}
.case-section-title,.case-section-title *{font-family:'Case Syne',sans-serif!important;font-size:24px!important;line-height:28.8px!important;font-weight:400!important;letter-spacing:0!important;color:#0a0a0a!important}
.case-challenge-title,.case-challenge-title *{font-family:'Case Syne',sans-serif!important;font-size:22px!important;line-height:30.8px!important;font-weight:500!important;letter-spacing:0!important;color:#0a0a0a!important}
.case-label,.case-label *{font-family:'Case Inter',sans-serif!important;font-size:18px!important;line-height:25.2px!important;font-weight:500!important;letter-spacing:0!important}
.case-subsection,.case-subsection *{font-family:'Case Syne',sans-serif!important;font-size:18px!important;line-height:27px!important;font-weight:500!important;letter-spacing:0!important}
.case-year{font-size:12px!important;line-height:16.8px!important;font-weight:400!important;color:#1f1f1f!important}
.case-meta dt{font-size:14px!important;line-height:21px!important;font-weight:400!important;color:#4a4f54!important}.case-meta dd{font-size:16px!important;line-height:24px!important;font-weight:400!important;color:#000!important}
.article-sidebar{position:fixed;left:max(32px,calc((100vw - 1280px)/2));top:136px;width:180px;z-index:20;font-family:Inter,sans-serif}.article-back{display:block;font-size:12px;line-height:23.2px;color:rgba(0,0,0,.55);margin-bottom:28px}.article-back:hover{color:#111}.article-toc{position:relative;display:flex;flex-direction:column;border-left:1px solid #e7e7e7}.article-toc>a{display:block;padding:3px 0 3px 12px;font-size:12px;line-height:23.2px;font-weight:400;color:rgba(0,0,0,.3);transition:color 200ms cubic-bezier(.16,1,.3,1);outline-offset:3px}.article-toc>a:hover{color:rgba(0,0,0,.65)}.article-toc>a[aria-current=true]{color:rgba(0,0,0,.8);font-weight:500}.article-indicator{position:absolute;left:-1px;top:0;width:2px;height:12px;background:#222;border-radius:2px;pointer-events:none;transition:transform 300ms cubic-bezier(.16,1,.3,1)}@media(max-width:1150px){.article-sidebar{position:relative;left:auto;top:auto;order:-1;width:min(700px,calc(100% - 40px));margin:0 auto 32px}.article-back{margin-bottom:12px}.article-toc{flex-direction:row;flex-wrap:wrap;gap:0 16px;border-left:0;border-bottom:1px solid #e7e7e7;padding-bottom:8px}.article-toc>a{padding:3px 0}.article-indicator{display:none}}@media(prefers-reduced-motion:reduce){.article-indicator{transition:none}html{scroll-behavior:auto}}
.article-sidebar{font-family:'Case Inter',sans-serif;max-height:calc(100svh - 160px);overflow:auto}.article-toc>a{line-height:23.2px;font-weight:400}
.text-highlight{color:inherit;background-color:transparent;background-image:linear-gradient(rgba(125,246,32,.3),rgba(125,246,32,.3));background-repeat:no-repeat;background-position:left center;background-size:100% 100%;box-decoration-break:clone;-webkit-box-decoration-break:clone;padding:0}
.highlight-motion-ready .text-highlight{background-size:0 100%;transition:background-size 850ms cubic-bezier(.22,1,.36,1)}.highlight-motion-ready .text-highlight.is-revealed{background-size:100% 100%}
@media(max-width:1150px){.article-sidebar{max-height:none;overflow:visible}}
@media(max-width:740px){.case-page-title,.case-page-title *{font-size:28px!important;line-height:33.6px!important}}
@media(prefers-reduced-motion:reduce){.highlight-motion-ready .text-highlight{background-size:100% 100%;transition:none}}

/* Once the contents menu is in normal flow, remove the desktop introduction offset. */
@media(max-width:1150px){section:has(.case-overview){padding-top:0!important}}

[data-framer-name="TLDR"] .text-highlight,[data-node-id="248:14860"] .text-highlight{background:none!important;box-shadow:none!important;text-decoration:none!important}

/* Video chrome is hidden; images use a viewport-sized viewer. */
video:not(.case-viewer-video)::-webkit-media-controls{display:none!important}.case-zoomable{cursor:zoom-in}.case-image-viewer{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:24px;border:0;background:rgba(255,255,255,.97);cursor:zoom-out;overflow:hidden}.case-image-viewer[open]{display:flex;align-items:center;justify-content:center}.case-image-viewer::backdrop{background:rgba(255,255,255,.97)}.case-image-viewer img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-out}.image-viewer-open{overflow:hidden}@media(max-width:600px){.case-image-viewer{padding:12px}}
/* Align the frame with the actual video instead of the old poster ratio. */
.framer-l21mkn[data-framer-name="Video"],.framer-1g7l6xe[data-framer-name="Video"]{display:block!important;height:auto!important;aspect-ratio:auto!important;overflow:hidden!important;border:3px solid #222!important;border-radius:12px!important;padding:0!important}.framer-l21mkn[data-framer-name="Video"]:after,.framer-1g7l6xe[data-framer-name="Video"]:after{display:none!important}.framer-l21mkn>[data-framer-background-image-wrapper],.framer-1g7l6xe>[data-framer-background-image-wrapper]{display:none!important}.framer-1vksxv1-container,.framer-1uxwjwb-container{position:relative!important;inset:auto!important;height:auto!important;aspect-ratio:auto!important;width:100%!important;transform:none!important}.framer-1vksxv1-container video,.framer-1uxwjwb-container video{display:block!important;width:100%!important;height:auto!important;border-radius:0!important;object-fit:contain!important}

/* Match the old portfolio zoom: dim backdrop, 1200px image cap, FLIP entrance. */
.case-image-viewer{padding:20px;background:transparent}.case-image-viewer::backdrop{background:rgba(0,0,0,.8);animation:case-backdrop-in 380ms ease both}.case-image-viewer.is-closing::backdrop{animation:case-backdrop-out 280ms ease both}.case-image-viewer img{position:static!important;max-width:min(1200px,100%);max-height:100%;width:auto!important;height:auto!important;border-radius:0;transform-origin:center;object-fit:contain}@keyframes case-backdrop-in{from{opacity:0}to{opacity:1}}@keyframes case-backdrop-out{from{opacity:1}to{opacity:0}}@media(max-width:600px){.case-image-viewer{padding:20px}}@media(prefers-reduced-motion:reduce){.case-image-viewer::backdrop{animation:none}}

/* Enlarged videos retain playback controls; inline demos remain clean. */
video.case-zoomable{cursor:zoom-in!important;pointer-events:auto!important}
.case-image-viewer [hidden]{display:none!important}
.case-image-viewer .case-viewer-video{display:block;position:static;width:auto;height:auto;max-width:min(1200px,100%);max-height:calc(100dvh - 80px);object-fit:contain;background:#000;border:0;border-radius:0;cursor:auto;transform-origin:center}
.case-viewer-close{position:absolute;top:12px;right:12px;z-index:2;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #ffffff40;border-radius:50%;background:#222c;color:#fff;font:400 30px/1 Arial,sans-serif;cursor:pointer}
.case-viewer-close:hover{background:#444}.case-viewer-close:focus-visible{outline:2px solid white;outline-offset:3px}
