/* Leo Film — independent static portfolio implementation. */
:root{--bg:#0c0b0b;--fg:#e7e7e7;--muted:#858585;--rule:#303030;--pad:clamp(16px,1.375vw,32px);--gap:clamp(7px,.66vw,16px);--mono:"Noto Sans Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;--small:clamp(12px,.825vw,18px);--section-top:clamp(72px,5.82vw,140px);--section-bottom:clamp(26px,2.1vw,52px)}
*{box-sizing:border-box}html{color-scheme:dark;scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--fg);font:var(--small)/1.4 var(--mono);-webkit-font-smoothing:antialiased;font-weight:400}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;border:0;padding:0;background:none;cursor:pointer}a,button{-webkit-tap-highlight-color:transparent}a:hover,button:hover,.active{color:#fff}a:focus-visible,button:focus-visible{outline:1px solid #eee;outline-offset:4px}button[aria-pressed="true"]{text-decoration:underline;text-underline-offset:3px;color:#fff}img{display:block;width:100%;height:auto}h1,h2,p{margin:0;font-weight:400}::selection{background:#ddd;color:#111}.skip{position:absolute;left:12px;top:-100px;z-index:30;background:#ddd;color:#111;padding:8px}.skip:focus{top:12px}.header{display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:20px;padding:var(--pad) var(--pad) 0;text-transform:uppercase}.brand{white-space:nowrap;justify-self:start;display:inline-flex;gap:9px;align-items:center}.brand .role{color:var(--muted)}.header nav{display:flex;align-items:center;gap:18px;white-space:nowrap}.header .right{justify-self:end;gap:18px}.header nav a.active{text-decoration:underline;text-underline-offset:3px}.menu-toggle,.header .mobile-nav{display:none}.main{padding:0 var(--pad) 24px}.section-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:var(--section-top);margin-bottom:var(--section-bottom);text-transform:uppercase}.section-bar h1{font-size:inherit;line-height:1.2}.switcher{display:flex;align-items:center;gap:8px;white-space:nowrap}.switcher .slash{color:#777}.work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap);align-items:start}.work-card{display:block;position:relative;min-width:0;aspect-ratio:16/9;background:#141414;overflow:hidden;isolation:isolate}.work-card img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.7,.2,1),filter .35s}.work-card .caption{position:absolute;inset:auto 0 0;display:flex;align-items:end;justify-content:space-between;gap:8px;padding:14px;background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff;text-transform:uppercase;opacity:0;transform:translateY(7px);transition:opacity .24s,transform .24s}.caption .cat{color:#bbb;text-align:right}.work-grid:not(.list) .work-card::after{content:"";position:absolute;inset:3px;pointer-events:none;opacity:0;background:linear-gradient(#f3f3f3,#f3f3f3) left top/12px 1.5px,linear-gradient(#f3f3f3,#f3f3f3) left top/1.5px 12px,linear-gradient(#f3f3f3,#f3f3f3) right top/12px 1.5px,linear-gradient(#f3f3f3,#f3f3f3) right top/1.5px 12px,linear-gradient(#f3f3f3,#f3f3f3) left bottom/12px 1.5px,linear-gradient(#f3f3f3,#f3f3f3) left bottom/1.5px 12px,linear-gradient(#f3f3f3,#f3f3f3) right bottom/12px 1.5px,linear-gradient(#f3f3f3,#f3f3f3) right bottom/1.5px 12px;background-repeat:no-repeat;transition:opacity .15s}.work-grid:not(.list) .work-card:hover::after,.work-grid:not(.list) .work-card:focus-visible::after{opacity:1}.work-grid.list{display:block;border-top:1px solid var(--rule)}.work-grid.list .work-card{display:grid;grid-template-columns:minmax(112px,180px) 1fr;align-items:center;aspect-ratio:auto;background:transparent;border-bottom:1px solid var(--rule);gap:24px;padding:12px 0;overflow:visible}.work-grid.list .work-card img{aspect-ratio:16/9;width:100%;height:auto;transform:none;filter:none}.work-grid.list .work-card .caption{position:static;opacity:1;transform:none;background:transparent;color:var(--fg);padding:0;align-items:center;gap:12px}.work-grid.list .work-card:hover .caption{color:white}.work-card[hidden]{display:none!important}.project-head{display:flex;justify-content:space-between;gap:16px;align-items:end;margin:var(--section-top) 0 28px;text-transform:uppercase}.project-head h1{font-size:clamp(19px,2.5vw,36px);line-height:1.08;letter-spacing:-.045em;margin-bottom:6px}.muted{color:var(--muted)}.under{text-decoration:underline;text-underline-offset:3px}.project-media{width:100%;background:#111}.project-media img{width:100%;height:auto}.project-media iframe,.project-media video{display:block;width:100%;aspect-ratio:16/9;border:0;background:#000}.project-info{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:25px 0 58px}.project-info p{max-width:560px;line-height:1.55}.project-info .credit{display:grid;grid-template-columns:max-content 1fr;gap:8px 20px;align-self:start;text-transform:uppercase}.project-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap);margin:0 0 36px}.project-gallery:empty{display:none}.project-gallery img{width:100%;height:auto}.project-pager{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--rule);padding:18px 0 5px;text-transform:uppercase}.project-pager a:hover{text-decoration:underline;text-underline-offset:3px}.info-page{max-width:1000px;margin-top:var(--section-top)}.info-page h1{font-size:clamp(25px,4vw,56px);line-height:1;letter-spacing:-.05em;text-transform:uppercase;margin-bottom:50px}.info-page .details{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:42px;border-top:1px solid var(--rule);padding:25px 0;max-width:800px}.info-page .details p{font-size:14px;line-height:1.65;margin-bottom:14px}.info-page .details a{text-decoration:underline;text-underline-offset:3px}.info-page .label{text-transform:uppercase;color:var(--muted)}.page-enter{animation:enter .28s ease both}@keyframes enter{from{opacity:.25;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:1000px){.header nav{gap:12px}.header .right{gap:12px}.header{gap:12px}.brand{gap:6px}}
@media(max-width:760px){:root{--pad:clamp(12px,2.5vw,18px);--gap:clamp(5px,1.25vw,8px);--small:12px;--section-top:48px;--section-bottom:22px}.header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding-top:17px}.header .desktop-nav,.header .right{display:none}.brand{gap:6px;font-size:11px}.menu-toggle{display:block;font-size:12px;line-height:1.4}.header .mobile-nav{width:100%;padding:23px 0 9px;border-bottom:1px solid var(--rule);flex-direction:column;align-items:flex-start;gap:17px}.header .mobile-nav.open{display:flex}.section-bar{margin-top:48px;margin-bottom:22px}.work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.work-card .caption{display:none}.work-grid.list .work-card{grid-template-columns:minmax(76px,30%) 1fr;gap:12px;padding:9px 0}.work-grid.list .work-card .caption{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.caption .cat{text-align:left}.project-head{margin-top:48px;margin-bottom:17px;align-items:start}.project-head h1{font-size:24px}.project-info{grid-template-columns:1fr;gap:24px;padding:20px 0 35px}.project-gallery{grid-template-columns:1fr}.project-pager{font-size:10px;gap:8px}.project-pager a:last-child{text-align:right}.info-page{margin-top:55px}.info-page h1{margin-bottom:32px}.info-page .details{grid-template-columns:1fr;gap:14px}.info-page .details p{font-size:13px}}
@media(max-width:350px){.brand{font-size:10px;gap:4px}.header{gap:5px}:root{--pad:10px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* V4: project detail pages only. Native image aspect ratios, no empty media. */
body[data-page="project"] .project-head{margin:var(--section-top) 0 0;align-items:start;gap:20px}
body[data-page="project"] .project-head h1{font-size:clamp(20px,1.65vw,36px);line-height:1.13;letter-spacing:-.035em;margin-bottom:8px}
body[data-page="project"] .project-head .under{white-space:nowrap;font-size:inherit;text-decoration:none}
body[data-page="project"] .project-head .under:hover{text-decoration:underline}
body[data-page="project"] .project-media{width:min(100%,1360px);margin:clamp(28px,3vw,64px) auto 0;background:#000}
body[data-page="project"] .project-media[hidden]{display:none}
body[data-page="project"] .project-media iframe,body[data-page="project"] .project-media video{aspect-ratio:16/9;width:100%;height:auto;display:block;border:0}
body[data-page="project"] .project-info{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap);padding:clamp(30px,3.1vw,68px) 0 clamp(36px,4.2vw,90px);align-items:start}
body[data-page="project"] .project-info .credit{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:clamp(14px,1.5vw,32px);row-gap:9px;line-height:1.6}
body[data-page="project"] .project-info p{grid-column:2 / 4;max-width:580px;line-height:1.65;overflow-wrap:anywhere}
body[data-page="project"] .stills-section{margin:0 0 clamp(48px,6vw,120px)}
body[data-page="project"] .stills-section:has(.project-gallery:empty){display:none}
body[data-page="project"] .stills-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 clamp(14px,1.35vw,30px);text-transform:uppercase;font-size:inherit;line-height:1.2}
body[data-page="project"] .project-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap);align-items:start;margin:0}
body[data-page="project"] .project-gallery figure{margin:0;min-width:0}
body[data-page="project"] .project-gallery figure:only-child{grid-column:1 / -1;width:min(100%,1360px);justify-self:center}
body[data-page="project"] .project-gallery img{width:100%;height:auto;display:block}
body[data-page="project"] .project-gallery a{display:block;cursor:zoom-in}
body[data-page="project"] .project-pager{padding:20px 0 12px;align-items:center}
body[data-page="project"] .project-pager .pager-home{color:var(--muted);white-space:nowrap}
body[data-page="project"] .project-pager .pager-home:hover{color:var(--fg)}
.still-dialog{width:100%;height:100%;max-width:none;max-height:none;border:0;margin:0;padding:var(--pad);background:#0c0b0b;color:var(--fg);overflow:hidden}
.still-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:18px}
.still-dialog::backdrop{background:#0c0b0b}
.still-dialog .lightbox-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;text-transform:uppercase}
.still-dialog img{width:100%;height:100%;min-height:0;object-fit:contain}
.still-dialog .lightbox-controls{display:flex;justify-content:center;align-items:center;gap:28px}
.still-dialog button:disabled{opacity:.3;cursor:default}
@media(max-width:760px){body[data-page="project"] .project-head{margin-top:48px;gap:12px}body[data-page="project"] .project-head h1{font-size:24px}body[data-page="project"] .project-head .under{font-size:11px}body[data-page="project"] .project-info{grid-template-columns:1fr;gap:22px;padding:28px 0 38px}body[data-page="project"] .project-info p{grid-column:auto}body[data-page="project"] .project-gallery{grid-template-columns:1fr}body[data-page="project"] .project-pager .pager-home{display:none}body[data-page="project"] .project-media{margin-top:22px}.still-dialog[open]{gap:12px}}
@media(max-width:350px){body[data-page="project"] .project-head h1{font-size:20px}body[data-page="project"] .project-head .under{font-size:10px}}
