/* A quiet browser frame keeps the work itself in the foreground. */
.case-film{padding:clamp(1rem,4vw,4rem);background:var(--paper)}
.project-film{max-width:1280px;margin:0 auto}
.film-window{overflow:hidden;border:1px solid #d2d3d6;border-radius:10px;background:#fff}
.film-chrome{min-height:44px;padding:10px 16px;display:flex;align-items:center;gap:16px;color:#50535a;background:#e9eaed;font-size:.75rem}
.film-dots{display:flex;gap:5px;flex:none}
.film-dots i{width:7px;height:7px;border-radius:50%;background:#a5a7ad}
.film-name{flex:1;font-weight:600}
.film-length{white-space:nowrap;font-variant-numeric:tabular-nums}
.case-film .film-window video{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#101114}
.film-caption{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-block:24px 16px}
.film-caption h2{font-size:clamp(1.7rem,3vw,2.35rem);margin:0 0 8px;line-height:1.12}
.film-caption p{margin:0;color:#50535a;font-size:.875rem;max-width:58ch;line-height:1.6}
.film-toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:10px 20px;flex:none;border:1px solid var(--ink);border-radius:0;color:var(--ink);background:transparent;font:600 .875rem Manrope,sans-serif;cursor:pointer;transition:background .15s,color .15s}
.film-toggle:hover{color:#fff;background:var(--ink)}
.film-toggle:disabled{cursor:wait;opacity:.65}
.film-toggle svg{width:16px;height:16px;fill:currentColor}
.film-chapters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.film-chapters button{min-height:58px;text-align:left;background:transparent;color:#50535a;border:0;border-top:2px solid #c8cacf;padding:12px 0;font:500 .8125rem Manrope,sans-serif;line-height:1.4;cursor:pointer;transition:border-color .15s,color .15s}
.film-chapters button[aria-current="true"]{border-color:var(--red);color:var(--ink);font-weight:700}
.film-chapters button:hover{color:var(--red);border-color:var(--red)}
.film-chapters time{display:block;font-size:.6875rem;font-variant-numeric:tabular-nums;margin-bottom:4px;color:#50535a}
.film-error{margin:12px 0 0;color:#972019;font-size:.875rem;line-height:1.6}
.film-error:empty{display:none}
.film-toggle:focus-visible,.film-chapters button:focus-visible{outline:2px solid var(--red);outline-offset:5px}
.project-film [hidden]{display:none!important}
@media(max-width:600px){.film-caption{flex-direction:column;gap:16px;padding-top:20px}.film-toggle{width:100%}.film-chapters{gap:12px}.film-chrome{padding:10px 12px;gap:10px}.film-name{font-size:.6875rem}.film-length{font-size:.6875rem}.film-chapters button{font-size:.75rem;min-height:68px}.film-caption h2{font-size:1.8rem}}
@media(prefers-reduced-motion:reduce){.film-toggle,.film-chapters button{transition:none}}

/* Compact case-study rhythm: title first, then the project film. */
.case-hero{min-height:0;padding-top:calc(var(--header-height) + clamp(2rem,4vw,3rem));padding-bottom:clamp(2rem,4vw,3rem);justify-content:flex-start}
.case-hero h1{margin:1rem 0 1.25rem}
.case-hero p{margin:0}
.case-body{padding-block:clamp(3rem,5vw,5rem)}
.case-lead{padding-bottom:clamp(2rem,4vw,3rem)}
.case-grid{padding-top:clamp(2rem,4vw,3rem)}
.case-deliverables{margin-top:clamp(2rem,4vw,3rem);padding:clamp(1.5rem,3vw,3rem);gap:2rem}
.case-deliverables h2{margin-bottom:0}
.case-cta{padding-block:clamp(2.5rem,5vw,4rem)}
@media(max-width:760px){.case-lead{gap:1rem}.case-grid{gap:2rem}.case-cta a{margin-top:1.5rem}}

/* Client signatures stay decorative, behind the case-study introduction. */
.case-hero{position:relative;isolation:isolate;overflow:hidden}
.case-hero>.case-watermark{position:absolute;z-index:-1;right:var(--pad);bottom:2rem;width:clamp(20rem,44vw,38rem);height:auto;opacity:.1;filter:brightness(0) invert(1);pointer-events:none;user-select:none}
@media(max-width:760px){.case-hero>.case-watermark{width:80%;right:-1.5rem;bottom:2rem;opacity:.05}}
