/* Real work, shown without a decorative reconstruction. */
.project-media{width:100%;height:100%;display:flex;flex-direction:column;position:relative;overflow:hidden;background:#eee9e1;color:#272b27}
.media-toolbar{height:34px;min-height:34px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 14px;background:#f7f4ec;color:#514f48;font-size:10px;border-bottom:1px solid #2222;position:relative;z-index:3}
.media-toolbar button{padding:4px 9px;border:1px solid #2224;border-radius:20px;font-size:10px;color:inherit;background:transparent;cursor:pointer;white-space:nowrap}
.media-toolbar button:focus-visible{outline:2px solid #d65320;outline-offset:2px}
.site-viewport,.video-viewport,.screenshot-viewport{position:relative;flex:1;min-height:0;overflow:hidden;display:grid;place-items:center}
.site-viewport{background:#ecd8a8}.site-viewport iframe{position:absolute;left:50%;top:50%;width:1440px;height:900px;max-width:none;border:0;transform-origin:center;pointer-events:none;opacity:0}
.site-viewport.is-loaded iframe{opacity:1}.site-viewport.is-loaded .site-fallback{opacity:0}
.project-media .site-fallback,.project-media .screenshot-viewport img{display:block;width:100%;height:100%;object-fit:contain!important;transform:none!important;transition:none!important}
.video-viewport{background:#e9e5dc}.video-viewport video{display:block;width:100%;height:100%;object-fit:contain}
.screenshot-viewport{background:#f9f9f7}
.city-video-slot{height:100%;padding:35px;display:flex;flex-direction:column;justify-content:space-between;background:#b9c9b9;color:#273b2c}
.city-video-slot>span{font-size:10px;letter-spacing:.06em}.city-video-slot>b{font-size:clamp(34px,3.8vw,62px);line-height:1.08;letter-spacing:-.05em;font-weight:500}.city-video-slot>small{font-size:12px;border-top:1px solid #273b2c50;padding-top:17px}
.reel-slots{height:100%;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:22px;background:#28242e;align-items:center}
.reel-slot{aspect-ratio:9/16;max-height:100%;min-height:0;border:1px solid #e5dafc50;background:#494052;color:#eee7f9;display:flex;flex-direction:column;justify-content:space-between;padding:15px;position:relative}
.reel-slot:nth-child(2){background:#5c4957}.reel-slot:nth-child(3){background:#3c4c4a}.reel-slot>span{font-size:9px;letter-spacing:.06em}.reel-slot>b{align-self:center;font-size:38px;font-weight:400;opacity:.65}.reel-slot>small{font-size:10px;line-height:1.4;opacity:.7}
.project-cover>.project-media{height:100%}.project-cover:has(.media-fermstory),.project-cover:has(.media-ads){height:auto;aspect-ratio:1.6}.project-cover:has(.media-crm3d){height:420px}
.project-card:has(.media-content){grid-column:1/-1}.project-card:has(.media-content) .project-cover{height:480px}.project-card:has(.media-content) .reel-slots{padding:25px max(25px,14%);gap:25px}.project-card:has(.media-content) .project-body{min-height:0}
.project-card:not(:has(.project-cover)) .project-body{min-height:260px}.project-card:not(:has(.project-cover)) .project-body h3{margin-top:30px}
.real-work{background:#eee9e1}.work-panel.real-work .project-media{height:100%}.work-panel.real-work{overflow:hidden}
@media(min-width:901px) and (prefers-reduced-motion:no-preference){.js .portfolio{height:520svh}.js .work-panel.real-work{height:100%}.js .work-entries{height:min(50svh,560px)}#works-title{font-size:clamp(42px,4.6vw,70px)}.work-panel .reel-slots{padding:20px max(20px,14%);gap:18px}}
@media(max-width:900px){.work-panel.real-work{aspect-ratio:1.3;height:auto}.work-panel.real-work:has(.media-fermstory),.work-panel.real-work:has(.media-ads){aspect-ratio:1.6}.work-panel.real-work:has(.media-crm3d){aspect-ratio:1.1}.work-panel.real-work:has(.media-content){aspect-ratio:1.2}.media-toolbar{font-size:9px;padding:0 10px}.reel-slots{gap:10px;padding:16px}.reel-slot{padding:10px}.reel-slot>span{font-size:8px}.reel-slot>small{font-size:9px}.city-video-slot{padding:25px}}
@media(max-width:600px){.project-cover:has(.media-crm3d){height:390px}.project-card:has(.media-content) .project-cover{height:auto;aspect-ratio:1.25}.project-card:has(.media-content) .reel-slots{padding:16px;gap:10px}.reel-slot>b{font-size:28px}.reel-slot>small{font-size:8px}.reel-slot>span{font-size:7px}.project-card:not(:has(.project-cover)) .project-body{min-height:0}.city-video-slot>b{font-size:37px}#works-title{font-size:38px}}
@media(prefers-reduced-motion:reduce){.site-viewport iframe{display:none}.project-media{transform:none!important}.work-panel.real-work{height:auto!important;aspect-ratio:1.35}.work-panel .reel-slots{padding:20px 14%}}
/* Keep intrinsic video dimensions from expanding the gallery's grid track. */
.video-viewport video,.project-media .screenshot-viewport img,.site-viewport>.site-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
/* Silent, automatic reels without filenames or a click overlay. */
.reel-example{min-width:0;height:100%;min-height:0;display:flex}
.reel-player{position:relative;flex:1;min-height:0;overflow:hidden;background:#19171c}
.reel-player video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
/* The frame follows each case's own aspect ratio. */
.work-panel.real-work{background:transparent;justify-self:start}
.work-panel.real-work .project-media{width:100%;max-width:100%}
.media-content .reel-slots{padding:0;gap:12px;background:transparent}
.media-content{background:transparent}
@media(min-width:901px) and (prefers-reduced-motion:no-preference){
 .js .work-panel.real-work{--case-height:min(50svh,560px);width:min(100%,calc((var(--case-height) - 34px) * 1.6));height:var(--case-height)}
 .js .work-panel.real-work:has(.media-crm3d){width:min(100%,calc((var(--case-height) - 34px) * .868421))}
 .js .work-panel.real-work:has(.media-content){width:min(100%,calc(var(--case-height) * 1.6875 + 24px))}
 .js .work-panel.real-work:has(.media-city){width:min(100%,calc(var(--case-height) * 1.4))}
 .work-panel.real-work .reel-slots{padding:0;gap:12px}
}
.project-card:has(.media-content) .reel-slots{padding:0;gap:12px;max-width:800px;margin-inline:auto}
.project-card:has(.media-content) .project-cover{background:transparent;height:460px}
.project-cover:has(.media-crm3d){width:min(100%,335px);margin-inline:auto}
@media(max-width:900px){
 .work-panel.real-work:has(.media-crm3d){width:min(100%,370px);height:440px;aspect-ratio:auto}
 .work-panel.real-work:has(.media-content){height:auto;aspect-ratio:27/16}
 .work-panel.real-work:has(.media-fermstory),.work-panel.real-work:has(.media-ads){height:auto;aspect-ratio:1.6}
}
@media(max-width:600px){
 .project-card:has(.media-content) .project-cover{height:auto;aspect-ratio:27/16}
 .project-card:has(.media-content) .reel-slots,.media-content .reel-slots{padding:0;gap:8px}
 .project-cover:has(.media-crm3d){width:min(100%,310px);height:390px}
 .work-panel.real-work:has(.media-crm3d){width:min(100%,310px);height:390px}
}

@media(min-width:901px) and (prefers-reduced-motion:no-preference){.js .work-panel.real-work:has(.media-ads){width:min(100%,calc((var(--case-height) - 34px) * 1.668405))}}

/* Each scroll step owns the whole case; previous frames never remain behind it. */
.js .work-item[hidden]{display:none!important}
@media(min-width:901px) and (prefers-reduced-motion:no-preference){
 .js .work-item:not(.active){display:none!important}
 .js .work-item.active{isolation:isolate}
 .js .work-panel.real-work{clip-path:none!important}
}
