/* A mixed-format portfolio in the shared Top Story newsroom family. */
.work-page .work-hero { padding-bottom:40px; }
.work-hero-grid { display:grid; grid-template-columns:1.15fr 1fr; gap:76px; align-items:center; }
.work-page .work-hero h1 { max-width:14ch; margin:0; font-size:var(--page-title); line-height:1.02; }
.work-hero-copy .lead { margin-bottom:16px; max-width:36ch; }
.work-hero-copy>p:not(.lead) { color:var(--muted); font-size:17px; max-width:45ch; margin-bottom:0; }
.work-hero-copy .hero-actions { gap:18px 28px; margin-top:25px; }
.work-reel-link { white-space:nowrap; }
.work-reel-link>span { font-size:13px; }
.work-gallery { padding-block:40px var(--section-space); }
.work-gallery-heading { display:flex; justify-content:space-between; align-items:end; gap:30px; margin-bottom:25px; }
.work-gallery-heading h2 { font-size:var(--compact-title); margin:0; }
.work-gallery-heading>p { margin:0; color:var(--muted); font-size:14px; line-height:1.5; }
.work-anchor { display:block; scroll-margin-top:24px; }
.work-filter-bar { display:flex; justify-content:space-between; align-items:center; gap:18px 24px; border-block:1px solid var(--rule); margin-bottom:34px; }
.work-filters { display:flex; flex-wrap:wrap; align-items:center; gap:0 24px; }
.work-filters button { display:inline-flex; align-items:center; gap:8px; appearance:none; min-height:56px; padding:12px 0; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--muted); font-size:13px; line-height:1.4; font-weight:600; cursor:pointer; }
.work-filters button>span { font-size:10px; font-weight:400; font-variant-numeric:tabular-nums; }
.work-filters button:hover,.work-filters button[aria-pressed="true"] { color:var(--red); }
.work-filters button[aria-pressed="true"] { border-bottom-color:var(--red); }
.work-filters button:focus-visible { outline:3px solid var(--red); outline-offset:3px; }
.work-project-count { flex-shrink:0; color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; margin:0; }
.work-project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:58px 40px; }
.work-project { min-width:0; scroll-margin-top:24px; }
.work-filters[hidden],.work-project[hidden] { display:none!important; }
.work-project-link { display:block; text-decoration:none; }
.work-project-image { position:relative; overflow:hidden; aspect-ratio:16/10; background:var(--sage); border:1px solid var(--rule); }
.work-project-image>img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
/* Crop the player chrome baked into this preview; keep the crop during hover and reduced motion. */
.work-project-image>img[src$="/tss-drone-frame.png"] { scale:1.35; object-position:50% 52%; }
.work-project--website .work-project-image>img { object-position:center top; }
.work-project--pdf .work-project-image { background:#e5e4dc; }
.work-project--pdf .work-project-image>img { object-fit:contain; padding:18px; }
.work-project[data-work-orientation="portrait"] .work-project-image { background:var(--ink); }
.work-project[data-work-orientation="portrait"] .work-project-image>img { object-fit:contain; }
.work-project--pdf[data-work-orientation="portrait"] .work-project-image { background:var(--sage); }
.work-project-action { position:absolute; right:15px; bottom:15px; display:flex; align-items:center; gap:19px; min-height:42px; padding:9px 14px; background:var(--paper); color:var(--ink); font-size:12px; font-weight:600; line-height:1.4; }
.work-project-action>span:last-child { font-size:16px; font-weight:400; }
.work-project-action>span:last-child:only-child { font-size:20px; }
.work-project-link:hover .work-project-action { color:#fff; background:var(--red); }
.work-runtime { position:absolute; left:15px; bottom:15px; display:flex; align-items:center; min-height:30px; padding:4px 9px; background:rgba(29,30,27,.9); color:#fff; font-size:11px; line-height:1.4; font-variant-numeric:tabular-nums; }
.work-project-meta { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:6px 20px; margin:20px 0 9px; color:var(--muted); font-size:11px; line-height:1.5; }
.work-project-meta>span:first-child { font-weight:600; text-transform:uppercase; letter-spacing:.065em; }
.work-project-meta>span:last-child { white-space:nowrap; }
.work-project h3 { font-size:clamp(28px,2.5vw,34px); line-height:1.12; letter-spacing:-.035em; margin:0; }
.work-project-link:hover h3 { color:var(--red); }
.work-project-link:focus-visible { outline-offset:7px; }
.work-project-description { font-size:16px; line-height:1.6; color:var(--muted); margin:13px 0 16px; max-width:56ch; }
.work-project-tags { display:flex; flex-wrap:wrap; gap:7px 18px; margin:0; padding:13px 0 0; border-top:1px solid var(--rule); list-style:none; color:var(--muted); font-size:11px; line-height:1.5; }
.work-studio-band { background:var(--sage); }
.work-studio-grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:start; }
.work-studio-grid h2 { margin-bottom:0; }
.work-studio-grid>div>p:not(.lead):not(.eyebrow) { font-size:17px; }
.work-viewer-open { overflow:hidden; }
.work-viewer { width:min(1100px,calc(100vw - 60px)); max-width:none; max-height:calc(100dvh - 48px); padding:0; border:0; background:var(--paper); color:var(--ink); overflow:auto; }
.work-viewer:not([open]) { display:none; }
.work-viewer::backdrop { background:rgba(19,21,17,.83); }
.work-viewer-panel { padding:25px; }
.work-viewer-header { display:flex; align-items:start; justify-content:space-between; gap:22px; padding-bottom:22px; }
.work-viewer-header .eyebrow { color:var(--muted); margin:0 0 7px; font-size:10px; }
.work-viewer-header h2 { font-size:clamp(26px,3vw,40px); line-height:1.1; margin:0; }
.work-viewer-close { flex-shrink:0; display:inline-flex; align-items:center; justify-content:space-between; gap:18px; min-height:44px; padding:9px 12px; border:1px solid var(--rule); background:transparent; color:var(--ink); font-size:13px; line-height:1.4; cursor:pointer; }
.work-viewer-close>span { font-size:24px; line-height:1; }
.work-viewer-close:hover { color:var(--red); border-color:var(--red); }
.work-viewer-media { background:var(--ink); }
.work-viewer-media>video { height:auto; background:var(--ink); }
.work-viewer-media>iframe,.work-viewer-media>video { display:block; width:100%; aspect-ratio:var(--work-media-ratio,16/9); border:0; }
.work-viewer[data-media-type="video"][data-media-orientation="landscape"] .work-viewer-media,
.work-viewer[data-media-type="vimeo"][data-media-orientation="landscape"] .work-viewer-media,
.work-viewer[data-media-type="youtube"][data-media-orientation="landscape"] .work-viewer-media { width:min(100%,calc(max(180px,100dvh - 260px) * var(--work-media-ratio,1.7777778))); margin-inline:auto; }
.work-viewer-media>img { display:block; width:100%; height:auto; max-height:65dvh; object-fit:contain; }
.work-viewer[data-media-type="vimeo"][data-media-orientation="portrait"] { width:min(640px,calc(100vw - 60px)); }
.work-viewer[data-media-type="vimeo"][data-media-orientation="portrait"] .work-viewer-media { width:min(100%,calc(max(160px,min(68dvh,calc(100dvh - 240px))) * var(--work-media-ratio))); margin-inline:auto; }
.work-viewer-footer { display:flex; justify-content:space-between; align-items:start; gap:22px 36px; padding-top:20px; }
.work-viewer-footer>p { max-width:65ch; margin:0; color:var(--muted); font-size:14px; line-height:1.6; }
.work-viewer-footer>.text-link { flex-shrink:0; font-size:13px; }
.work-viewer-footer>[hidden] { display:none!important; }
@media(max-width:1100px) {
 .work-hero-grid { gap:45px; }
 .work-filters { gap:0 20px; }
 .work-filter-bar { align-items:start; flex-direction:column; gap:0; padding-bottom:13px; }
 .work-project-count { margin-top:9px; }
 .work-project-grid { column-gap:32px; }
 .work-studio-grid { gap:48px; }
}
@media(max-width:800px) {
 .work-page .work-hero { padding-bottom:32px; }
 .work-hero-grid { grid-template-columns:1fr; gap:25px; }
 .work-page .work-hero h1 { max-width:17ch; }
 .work-hero-copy .lead { max-width:45ch; }
 .work-hero-copy>p:not(.lead) { max-width:52ch; }
 .work-gallery { padding-top:32px; }
 .work-gallery-heading { flex-direction:column; align-items:start; gap:13px; }
 .work-gallery-heading>p br { display:none; }
 .work-project-grid { grid-template-columns:1fr; gap:43px; }
 .work-filters { gap:0 22px; }
 .work-filters button { min-height:48px; font-size:13px; }
 .work-filter-bar { margin-bottom:27px; }
 .work-project-meta { margin-top:18px; }
 .work-project h3 { font-size:30px; }
 .work-studio-grid { grid-template-columns:1fr; gap:25px; }
 .work-viewer { width:calc(100vw - 28px); max-height:calc(100dvh - 28px); }
 .work-viewer[data-media-type="vimeo"][data-media-orientation="portrait"] { width:min(640px,calc(100vw - 28px)); }
 .work-viewer-panel { padding:18px; }
 .work-viewer-header { padding-bottom:17px; gap:15px; }
 .work-viewer-header h2 { font-size:29px; }
 .work-viewer-footer { flex-direction:column; gap:12px; padding-top:16px; }
}
@media(max-width:540px) {
 .work-project h3 { font-size:28px; }
 .work-project-description { font-size:15px; }
 .work-project-image { aspect-ratio:4/3; }
 .work-project-action { right:10px; bottom:10px; min-height:38px; padding:8px 10px; gap:12px; font-size:11px; }
 .work-runtime { left:10px; bottom:10px; min-height:27px; font-size:10px; }
 .work-project--pdf .work-project-image>img { padding:13px; }
 .work-project-meta { gap:5px 14px; font-size:10px; }
 .work-project-tags { font-size:10px; gap:6px 15px; }
 .work-filters { gap:0 18px; }
 .work-filters button { font-size:12px; }
 .work-viewer-panel { padding:14px; }
 .work-viewer-header { gap:12px; }
 .work-viewer-header h2 { font-size:25px; }
 .work-viewer-close { font-size:12px; gap:8px; padding:8px; }
 .work-viewer-footer>p { font-size:13px; }
}
@media print {
 .work-filter-bar,.work-viewer { display:none!important; }
 .work-project { break-inside:avoid; }
 .work-project-action { display:none; }
}
