html{scrollbar-gutter:stable}
.project-case-trigger{position:absolute;inset:0;z-index:4;border-radius:inherit}
.project:has(.project-case-trigger:focus-visible){outline:2px solid #d9c9fc;outline-offset:5px}
.project-case-trigger:focus-visible{outline:none}
.project-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top left;opacity:0;pointer-events:none;transition:opacity 240ms ease}
.preview-playing .project-preview{opacity:1}
.project-preview-toggle{position:absolute;z-index:5;left:20px;bottom:20px;display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:10px 15px;border:1px solid #ffffff60;border-radius:100px;background:#101010e8;color:#f5f5f3;font:600 12px/1.2 Onest,Gilroy,sans-serif;box-shadow:0 5px 16px #0006;transition:background 180ms ease,transform 160ms var(--ease-out)}
.project-preview-toggle svg{width:15px;height:15px;display:block}
.project-preview-toggle:active{transform:scale(.97)}
.preview-control-icon svg path{fill:currentColor;stroke-width:1.5}
.preview-playing .preview-control-icon svg path{fill:none;stroke-width:2.5}
.project-case-hint{display:flex;align-items:center;gap:12px;margin-top:28px;font:600 13px/1.2 Onest,Gilroy,sans-serif;color:#ddd}
.project-case-hint svg{width:16px;height:16px}
.case-dialog{box-sizing:border-box;width:min(1220px,calc(100% - 48px));height:calc(100svh - 48px);max-height:none;max-width:none;margin:auto;padding:0;border:1px solid #777;border-radius:28px;background:#101010;color:#f5f5f3;overflow:auto;overscroll-behavior:contain;box-shadow:0 30px 100px #000b;font-family:Gilroy,Arial,sans-serif}
.case-dialog::backdrop{background:#000c;backdrop-filter:blur(8px)}
.case-topbar{position:sticky;top:0;z-index:6;display:flex;align-items:center;gap:20px;padding:15px 28px;border-bottom:1px solid #ffffff16;background:#101010f5}
.case-brand{display:flex;align-items:center;gap:9px;font-size:20px;font-weight:700;letter-spacing:-.03em}
.case-brand img{object-fit:contain}.case-brand>span{margin-left:10px;font-size:13px;color:#aaa;font-weight:500;letter-spacing:0}
.case-counter{margin-left:auto;font:500 12px/1.2 Onest,Gilroy,sans-serif;color:#aaa;font-variant-numeric:tabular-nums}
.case-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:1px solid #777;border-radius:50%;background:linear-gradient(#242424,#090909);color:#fff;transition:transform 160ms var(--ease-out),background 180ms ease}
.case-close svg{width:20px;height:20px}.case-close:active{transform:scale(.95)}
.case-page{padding:48px 48px 38px}
.case-heading{display:grid;grid-template-columns:1.15fr 1fr;align-items:end;gap:48px;margin-bottom:35px}
.case-type{font-size:13px;color:#aaa;margin-bottom:16px}
.case-heading h2{font-size:clamp(42px,6vw,80px);line-height:1;letter-spacing:-.04em;overflow-wrap:anywhere}
.case-summary{font-size:20px;line-height:1.45;color:#b8b8b8;max-width:450px}
.case-meta{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px;padding:24px 0;margin:0 0 32px;border-top:1px solid #ffffff24;border-bottom:1px solid #ffffff24}
.case-meta dt{font-size:12px;color:#999;margin-bottom:8px}.case-meta dd{margin:0;font-size:16px;line-height:1.3}.case-domain{text-decoration:underline;text-underline-offset:5px;word-break:break-word}
.case-film{position:relative;aspect-ratio:960/638;overflow:hidden;background:#1a1a1a;border:1px solid #ffffff25;border-radius:18px}
.case-film video{display:block;width:100%;height:100%;object-fit:contain}
.case-film-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0 30px;font-size:13px;color:#aaa}
.case-duration{color:#888;margin-left:8px;font-variant-numeric:tabular-nums}
.case-play{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border:1px solid #666;border-radius:100px;padding:10px 15px;background:#1b1b1b;color:#eee;font:600 12px/1.2 Onest,Gilroy,sans-serif}
.case-play svg{width:15px;height:15px;display:block}.case-play svg path{fill:currentColor}.case-play[aria-pressed=true] svg path{fill:none;stroke-width:2.5}
.case-story{display:grid;grid-template-columns:1fr 1fr;gap:70px;padding:34px 0 46px;border-top:1px solid #ffffff20}
.case-story h3{font-size:27px;line-height:1.2;margin-bottom:15px;letter-spacing:-.03em}.case-story p{font-size:18px;line-height:1.6;color:#b8b8b8;max-width:50ch}
.case-features{display:flex;flex-wrap:wrap;gap:9px 17px;margin:20px 0 0;padding:0;list-style:none;color:#d4d4d4;font-size:13px;line-height:1.5}
.case-features li:before{content:'·';margin-right:8px;color:#999}
.case-gallery{display:grid;grid-template-columns:1fr .31fr;gap:30px;align-items:start}
.case-gallery figure{margin:0;min-width:0}.case-gallery img{display:block;width:100%;height:auto;object-fit:contain;border-radius:14px;border:1px solid #ffffff25;background:#191919}
.case-gallery figcaption{font-size:12px;color:#aaa;margin-top:13px}.case-phone{padding:6px;border:1px solid #555;border-radius:24px;background:#171717;box-shadow:0 12px 28px #0008}.case-phone img{border:0;border-radius:18px}
.case-footer{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-top:48px;padding-top:30px;border-top:1px solid #ffffff24}.case-footer p{font-size:22px;line-height:1.3;margin-bottom:16px}.case-footer .button{font-size:13px;gap:16px}
@media(hover:hover) and (pointer:fine){.project-preview-toggle:hover{background:#303030}.case-close:hover{background:#363636}.case-play:hover{background:#303030}}
@media(min-width:701px) and (max-height:650px){.projects.project-stack{display:flex;flex-direction:column;gap:24px}.project-stack .stack-slot{position:relative;top:auto;height:auto;margin-bottom:0}.project-stack .stack-depth{transform:none!important;filter:none!important}.project-stack .project{height:auto;min-height:420px}.project-stack .project-cover{height:420px}}
@media(max-width:1000px){.case-page{padding:30px}.case-heading{gap:28px}.case-summary{font-size:18px}.case-story{gap:30px}.case-gallery{gap:20px}}
@media(max-width:700px){
 .project-preview-toggle{left:14px;bottom:14px;font-size:11px;padding:10px 12px}.project-case-hint{margin-top:20px;font-size:12px}
 .case-dialog{width:100%;height:100svh;max-height:100svh;border:0;border-radius:0}
 .case-topbar{padding:calc(10px + env(safe-area-inset-top)) 18px 10px;gap:14px}.case-brand{font-size:19px}.case-brand>span{font-size:11px;margin-left:2px}.case-counter{font-size:11px}
 .case-page{padding:30px 18px calc(30px + env(safe-area-inset-bottom))}.case-heading{grid-template-columns:1fr;gap:20px;margin-bottom:26px}.case-heading h2{font-size:46px}.case-type{font-size:12px;margin-bottom:12px}.case-summary{font-size:18px}
 .case-meta{grid-template-columns:1fr 1fr;gap:20px 12px;padding:20px 0;margin-bottom:24px}.case-meta>div:last-child{grid-column:1/-1}.case-meta dd{font-size:15px}
 .case-film{border-radius:12px}.case-film-bar{align-items:start;flex-direction:column;gap:10px;padding:13px 0 24px}.case-film-bar>span{font-size:12px}.case-play{min-height:44px}
 .case-story{grid-template-columns:1fr;gap:28px;padding:28px 0 32px}.case-story h3{font-size:26px}.case-story p{font-size:17px}.case-gallery{grid-template-columns:1fr;gap:28px}.case-mobile{width:min(70%,280px);justify-self:center}
 .case-footer{flex-direction:column;align-items:start;margin-top:35px;padding-top:25px}.case-footer p{font-size:22px}.case-footer .button{font-size:12px;padding:13px 18px;gap:12px}
}
@media(prefers-reduced-motion:reduce){.project-preview,.case-dialog,.case-close,.project-preview-toggle{transition:none!important}}
