/* Image-led case grid, scoped to the homepage work section. */
.work-gallery{background:linear-gradient(140deg,var(--navy),#352254);padding:clamp(50px,7vw,110px) 0 clamp(55px,8vw,120px);scroll-margin-top:105px}
.work-gallery>.wrap{max-width:2200px;padding-inline:clamp(18px,2vw,40px)}
.work-gallery-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:40px;padding-inline:clamp(0px,2vw,30px)}
.work-gallery h2{font-size:clamp(44px,6vw,88px);line-height:1.02;letter-spacing:-.055em;margin:0}.work-gallery-heading>p{font-size:18px;line-height:1.6;max-width:28ch;margin:0 0 5px;color:#ffffffb3}
.work-gallery-toolbar{display:flex;align-items:center;gap:10px;margin:0 0 16px;position:relative;z-index:5;flex-wrap:wrap}
.work-gallery [hidden]{display:none!important}.work-search{display:flex;align-items:center;gap:10px;min-height:46px;width:260px;border:1px solid #ffffff40;border-radius:6px;padding:0 12px;background:#ffffff08}.work-search input{font:inherit;font-size:16px;color:white;border:0;background:none;min-width:0;width:100%;outline:none;min-height:44px}.work-search input::placeholder{color:#ffffffa3}.work-search:focus-within{outline:2px solid var(--white);outline-offset:3px}.work-gallery-toolbar svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0}
.work-filter summary{display:flex;align-items:center;gap:9px;font-size:16px;line-height:1.3;font-weight:400;list-style:none;cursor:pointer;padding:12px 14px;background:var(--red);border-radius:6px;color:white;min-height:46px}.work-filter summary::-webkit-details-marker{display:none}.work-filter-menu{position:absolute;top:calc(100% + 8px);min-width:220px;display:grid;gap:4px;padding:8px;background:#251e48;border:1px solid #ffffff40;border-radius:9px;box-shadow:0 20px 50px #100d2c66}.work-filter button{display:block;text-align:left;font:inherit;font-size:16px;line-height:1.4;padding:11px 12px;color:white;background:transparent;border:0;border-radius:4px;cursor:pointer}.work-filter button:hover,.work-filter button[aria-pressed=true]{background:#ffffff15}.work-filter button[aria-pressed=true]{box-shadow:inset 3px 0 var(--red)}.work-gallery-count{font-size:14px;color:#ffffffaa;margin:0 0 0 auto}
.work-gallery .work-gallery-grid{display:flex;flex-direction:column;gap:14px;align-items:stretch}.work-gallery-row{display:flex;gap:14px;min-width:0;height:clamp(280px,29vw,510px)}
.work-card{--weight:1;flex:var(--weight) 1 0;min-width:0;display:block;position:relative;overflow:hidden;isolation:isolate;background:#120f33;border-radius:8px;color:white;text-decoration:none;transform:translateZ(0);transition:flex-grow .65s cubic-bezier(.2,.7,.2,1)}
.work-gallery-row:nth-child(3n+1) .work-card:nth-child(2){--weight:1.7}.work-gallery-row:nth-child(3n+1) .work-card:nth-child(3){--weight:1.15}.work-gallery-row:nth-child(3n+2) .work-card:nth-child(1){--weight:1.25}.work-gallery-row:nth-child(3n+2) .work-card:nth-child(2){--weight:.85}.work-gallery-row:nth-child(3n+2) .work-card:nth-child(3){--weight:1.65}.work-gallery-row:nth-child(3n) .work-card:nth-child(2){--weight:1.5}
.work-card-media,.work-card-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.work-card-media img{display:block;transition:transform .8s cubic-bezier(.2,.7,.2,1)}.work-card-media .still-placeholder{height:100%}.work-card iframe{position:absolute;left:50%;top:50%;width:max(180%,900px);height:180%;transform:translate(-50%,-50%);pointer-events:none;border:0;opacity:0;transition:opacity .5s}.work-card.preview-ready iframe{opacity:1}
.work-card::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,transparent 20%,#0d092055 48%,#0d0920ed);opacity:.05;transition:opacity .35s}
.work-card-caption{position:absolute;bottom:0;left:0;right:0;z-index:2;padding:clamp(18px,2vw,34px);opacity:0;transform:translateY(12px);transition:opacity .35s,transform .5s;pointer-events:none}.work-card-meta{display:flex;justify-content:space-between;gap:16px;font-size:14px;color:#ffffffc9;margin-bottom:12px}.work-card h3{font-size:clamp(23px,2.15vw,36px);font-weight:800;line-height:1.07;letter-spacing:-.035em;margin:0 0 11px;text-wrap:balance;overflow-wrap:anywhere}.work-card-caption>p{font-size:16px;line-height:1.5;max-width:48ch;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0}.work-card-open{display:inline-block;font-size:14px;font-weight:400;margin-top:16px;padding-bottom:3px;border-bottom:1px solid #ffffff80}
.work-card:is(:hover,:focus-visible)::after{opacity:1}.work-card:is(:hover,:focus-visible) .work-card-caption{opacity:1;transform:none}.work-card:is(:hover,:focus-visible) img{transform:scale(1.045)}.work-card:focus-visible{outline:3px solid var(--red);outline-offset:4px}.work-gallery :is(button,summary):focus-visible{outline:2px solid white;outline-offset:4px}
.work-gallery-empty{font-size:18px;line-height:1.6;text-align:center;padding:64px 24px;border:1px solid #ffffff30;border-radius:8px}.work-preview-note{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-top:22px;flex-wrap:wrap}.work-preview-note p{font-size:14px;color:#ffffffb3;margin:0}.work-preview-note button{font:inherit;font-size:14px;color:white;background:none;border:0;border-bottom:1px solid #ffffff70;padding:7px 0;cursor:pointer}.work-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(hover:hover) and (pointer:fine){.work-gallery-row:has(.work-card:is(:hover,:focus-visible)) .work-card{flex-grow:1}.work-gallery-row:has(.work-card:is(:hover,:focus-visible)) .work-card:is(:hover,:focus-visible){flex-grow:1.75}}
@media(max-width:1000px){.work-gallery-row{height:350px}.work-card h3{font-size:25px}.work-card-caption>p{-webkit-line-clamp:2;font-size:16px}.work-card-meta{font-size:14px}}
@media(max-width:760px){.work-gallery-heading{align-items:start;flex-direction:column;gap:14px;margin-bottom:28px;padding:0}.work-gallery-heading>p{font-size:16px;max-width:none}.work-gallery .work-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.work-gallery-row{display:contents}.work-card{aspect-ratio:4/5;flex:none}.work-card-caption{padding:18px;opacity:1;transform:none}.work-card::after{opacity:1}.work-card h3{font-size:25px}.work-card-caption>p{display:none}.work-card-meta{font-size:14px}.work-card-open{margin-top:10px}.work-search{width:auto;flex:1;min-width:150px}.work-gallery-count{width:100%;margin:4px 0}.work-filter-menu{right:0}.work-card iframe{display:none}}
@media(max-width:480px){.work-gallery .work-gallery-grid{grid-template-columns:1fr}.work-card{aspect-ratio:4/3}.work-card h3{font-size:30px}.work-card-caption>p{display:-webkit-box;-webkit-line-clamp:2}.work-card-caption{padding:22px}}
@media(prefers-reduced-motion:reduce){.work-card,.work-card *,.work-card::after{transition:none!important;transform:none!important}.work-card iframe{display:none}.work-card::after{opacity:1}.work-card-caption{opacity:1}.work-gallery-row:has(.work-card:is(:hover,:focus-visible)) .work-card{flex-grow:var(--weight)}}
@supports(width:1cqw){.work-card-media{container-type:size}.work-card iframe{width:max(100cqw,177.778cqh);height:max(100cqh,56.25cqw)}.work-card[data-video-shape=portrait] iframe{width:max(100cqw,56.25cqh);height:max(100cqh,177.778cqw)}}
.work-filter summary{box-sizing:border-box;height:46px}.work-poster{display:block;position:absolute;inset:0;width:100%;height:100%;transition:transform .8s cubic-bezier(.2,.7,.2,1)}.work-card:is(:hover,:focus-visible) .work-poster{transform:scale(1.045)}
/* A single search result shows the complete widescreen frame. */
.work-gallery-grid[data-single=true] .work-gallery-row{height:auto;aspect-ratio:16/9}.work-gallery-grid[data-single=true] .work-card{aspect-ratio:16/9}.work-gallery-grid[data-single=true] .work-card-media img{object-fit:contain}.work-gallery-grid[data-single=true] .work-card:is(:hover,:focus-visible) :is(img,.work-poster){transform:none}
@media(max-width:760px){.work-gallery .work-gallery-grid[data-single=true]{grid-template-columns:1fr}.work-gallery-grid[data-single=true] .work-gallery-row{display:contents}}
.work-gallery-grid[data-single=true] .work-card iframe{width:100%;height:100%}
