/* V23: the transport is part of the frame, below the complete video aperture. */
.film-preview>.media-scrubber.scene-media-scrubber{
 position:relative;inset:auto;display:block;width:100%;height:38px;margin:0;
 z-index:2;background:linear-gradient(110deg,#172325,#0a1215);
 border-top:1px solid rgba(185,204,191,.2);backdrop-filter:none;-webkit-backdrop-filter:none;
}
.film-preview>.scene-media-scrubber:focus-within,.cinema-screen-scrubber:focus-within{
 outline:2px solid #f4cfa2;outline-offset:-2px;
}
.film-preview>.scene-media-scrubber .media-seek:focus-visible,
.cinema-screen-scrubber .media-seek:focus-visible{outline:none}

/* Two landscape rows each gain a transport. Fit the lower frame to the
   remaining laptop height while preserving every pixel of its source image. */
@media(min-width:700px) and (max-height:800px){
 .work-gallery{
  --work-wall-top:max(76px,11vh);
  --work-upper-image:calc((63vw - min(18vw,26vh) - 30px) / 4.7761194);
  top:var(--work-wall-top);row-gap:10px;
 }
 .work-gallery>.work-film-2{
  width:100%;max-width:min(100%,max(200px,calc((100svh - var(--cinema-timeline-clearance) - 22px - var(--work-wall-top) - var(--work-upper-image) - 182px) * 2.4)));
 }
}

@media(max-width:699px){
 /* Bottom alignment lets the tall film rise into its own space while all
    controls finish above the career rail. Landscape apertures keep their width. */
 .work-gallery{
  top:calc(100svh - var(--cinema-timeline-clearance) - 500px);
  bottom:calc(var(--cinema-timeline-clearance) + 18px);height:auto;
  align-items:flex-end;padding-top:0;padding-bottom:0;
 }
 .work-gallery>.work-film{align-self:flex-end}
 .work-gallery>.work-film-3{scroll-snap-align:end}
 .jawan-screens{top:min(37%,calc(100svh - var(--cinema-timeline-clearance) - 490px))}
 .operator-preview{top:min(34%,calc(100svh - var(--cinema-timeline-clearance) - 490px))}
}

/* Short phones keep the full 200px portrait viewport. The title and story use
   the adjacent column instead of taking height away from the image. */
@media(max-width:699px) and (max-height:800px){
 .work-heading{top:76px;left:6%;width:27vw}
 .work-heading>.scene-kicker{display:none}
 .work-heading h2{font-size:24px;line-height:1.08}
 .work-heading h2 br{display:none}
 .work-heading h2 em{margin-left:0}
 .work-heading .scene-narrative{position:relative;top:auto;left:auto;width:100%;margin-top:16px;font-size:16px;line-height:1.5!important}
 .work-gallery{top:78px;bottom:calc(var(--cinema-timeline-clearance) + 10px);padding-bottom:0;align-items:flex-end}

 .jawan-copy,.invention-copy{top:76px;left:6%;width:27vw}
 .jawan-wordmark{width:100%;max-width:96px;height:22px;margin-bottom:12px;object-fit:contain;object-position:left}
 .jawan-copy>.scene-kicker{display:none}
 .jawan-copy h2,.invention-copy h2{font-size:clamp(22px,6.4vw,27px);line-height:1.08}
 .jawan-copy h2 br,.invention-copy h2 br{display:none}
 .jawan-copy .scene-narrative,.invention-copy .scene-narrative{position:relative;top:auto;left:auto;width:100%;margin-top:17px;font-size:16px;line-height:1.5!important}
 .jawan-copy .scene-signature,.invention-copy .scene-signature{position:relative;top:auto;left:auto;width:100%;margin-top:18px}
 .jawan-copy .scene-signature img,.invention-copy .scene-signature img{width:88px;max-width:100%}
 .invention-copy>.scene-kicker{font-size:12px;line-height:1.3;margin-bottom:10px}
 .invention-copy .scene-action{position:relative;top:auto;left:auto;width:100%;margin-top:14px;min-height:44px;font-size:13px;line-height:1.45}
 .jawan-screens{left:38%;width:62%;top:clamp(80px,calc((100svh - var(--cinema-timeline-clearance) - 440px) / 2),110px);padding-top:0;padding-bottom:0}
 .operator-preview{right:4%;top:clamp(80px,calc((100svh - var(--cinema-timeline-clearance) - 440px) / 2),110px);width:200px;min-width:200px}
 .jawan-screens .preview-label,.operator-preview .preview-label{display:none}
 .jawan-screens .preview-toolbar,.operator-preview .preview-toolbar{padding:0 5px;min-height:48px}
}

@media(max-width:699px) and (max-height:720px){
 /* Reserve the added transport height without letting the distance caption
    descend into the original jump image. */
 .leap-copy{top:72px}
 .leap-copy .scene-narrative{top:calc(36svh + 30px)}
 .distance-number{font-size:22.5vw}
 .distance-unit{margin-top:4px}
 .distance-feet{margin-top:4px}
 /* The archive grows upward above its anchored footer. Keep the paragraph
    wholly beside that frame rather than behind its upper corner. */
 .press-copy .scene-narrative{width:27vw}
 .interview-copy h2{font-size:10vw}
 .interview-source{top:238px;bottom:auto;min-height:28px}
 .interview-preview{
  top:270px;left:6%;
  width:min(88%,calc((100svh - var(--cinema-timeline-clearance) - 368px) * 1.77777778));
 }
}
