/* /work/<slug>/ film pages: the teaser in a 2.39:1 frame on a near-black band, then the
   title, credits and disclosure on the sand ground. Loaded after site.css on those pages only. */

/* ---- the frame ----------------------------------------------------------- */
/* The band starts under the nav (padding on <main>, not a margin: a margin would collapse
   into <body> and carry the absolutely placed nav down with it). Its black sits above and
   below the picture so the letterbox reads as intended, and the frame never grows taller
   than the screen allows. */
.film-main{padding-top:var(--nav-h);}
.page section.film{background:#0F0B08;padding:clamp(0px,3.4vw,56px) 0;} /* beats site.css `.page section` */
.film-frame{
  position:relative;margin:0 auto;aspect-ratio:1920/804;background:#0F0B08;
  width:min(100%,calc((100svh - var(--nav-h) - 2 * clamp(0px,3.4vw,56px)) * 2.388));
}
.film-frame video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#0F0B08;}

/* Poster first, with one centred control. Without JS the <video> keeps its own controls. */
.film-play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  display:inline-flex;align-items:center;gap:18px;height:58px;padding:0 30px 0 26px;
  border:1px solid rgba(239,230,214,.85);border-radius:0;background:rgba(15,11,8,.42);
  -webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);
  font-family:var(--f-sans);font-size:11px;font-weight:400;letter-spacing:0.32em;text-transform:uppercase;
  color:var(--dark-text);cursor:pointer;transition:background .35s ease,color .35s ease,border-color .35s ease;
}
.film-play svg{width:12px;height:14px;flex:none;fill:currentColor;}
.film-play .mono{color:inherit;opacity:.72;letter-spacing:0.3em;}
.film-play:hover,.film-play:focus-visible{background:var(--dark-text);color:var(--ink);border-color:var(--dark-text);}
.film-play:focus-visible{outline:1px solid var(--dark-text);outline-offset:4px;}
.film-play[hidden],.film-frame.is-playing .film-play{display:none;}

/* ---- under the frame ------------------------------------------------------ */
.film-head{padding:72px var(--gutter) 88px;text-align:center;}
.film-title{
  font-family:var(--f-titling);font-weight:400;text-transform:uppercase;color:var(--ink);
  font-size:clamp(22px,3.6vw,46px);line-height:1.2;letter-spacing:0.5em;padding-left:0.5em; /* optically centre the tracked word */
}
.film-head .crumbs{margin-bottom:44px;}
.film-meta{display:block;margin-top:26px;}
.film-head .answer{text-align:center;}

.disclosure{max-width:var(--prose);margin:40px auto 0;text-align:center;font-size:15px;color:var(--body);}
.disclosure a{color:var(--accent-text);border-bottom:1px solid var(--rule-strong);padding-bottom:1px;transition:color .3s,border-color .3s;}
.disclosure a:hover{color:var(--ink);border-color:var(--ink);}
.film-links{display:flex;justify-content:center;gap:40px;flex-wrap:wrap;margin-top:48px;}

@media (max-width:900px){
  .page section.film{padding:0;}
  .film-head{padding:56px var(--gutter) 64px;}
  .film-play{height:40px;gap:10px;padding:0 16px 0 14px;font-size:10px;top:42%;}
  .film-play .mono{display:none;}
}
