/* hvck labs landing v14: the film tile and its overlay (js/film.js; v14/DIRECTION.md item 8). Shared by both sites.
   The tile: the silent loop fills the slot inside its hairline; the film's length sits top left where a tile's chip
   sits (mono, machine data); "Watch the film" and an orange play key bottom left, as every tile's section key;
   a 24px pause toggle top right. Square corners, the page's tokens, so it reads on ink (B2C) and on paper (teams).
   The overlay: a full-bleed ink field on both sites (the film reads as cinema), the native video centred, Close top
   right. Nothing animates at rest; the loop plays only while visible (js). */
.hv-film { position: absolute; inset: 0; overflow: hidden; }
.hv-film-v { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); object-fit: cover; display: block;
  background: #0E0E0E; pointer-events: none; }
/* the whole tile is the button that opens the film */
.hv-film-open { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0;
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hv-film-open:focus-visible { outline: 2px solid var(--o); outline-offset: 4px; }
/* the film's length, where a tile's chip sits */
.hv-film-tc { position: absolute; left: 12px; top: 10px; display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 5px;
  background: var(--paper); color: var(--ink); line-height: 1; white-space: nowrap; }
.hv-film-tk { font-family: var(--mono); font-size: var(--t-mono); color: var(--faint); }
.hv-film-tn { font-family: var(--sans); font-size: var(--t-mono); font-weight: 560; }
/* the label: the section key's look, with a play key in place of the arrow */
.hv-film-l { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: stretch; height: 30px; max-width: calc(100% - 24px); }   /* 30px: the other tiles' keys */
.hv-film-t { display: inline-flex; align-items: center; min-width: 0; padding: 7px 10px 8px; background: var(--paper); color: var(--ink);
  font-size: clamp(14px, 1.1vw, 16px); font-weight: 580; font-stretch: 106%; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .22s var(--ease), color .22s var(--ease); }
.hv-film-g { flex: none; display: grid; place-items: center; width: 30px; background: var(--o); color: var(--c-ink); }
.hv-film-g svg { width: 12px; height: 12px; fill: currentColor; transition: transform .25s var(--ease); }
.hv-film-open:hover .hv-film-t, .hv-film-open:focus-visible .hv-film-t, .pc.hot .hv-film-t { background: var(--ink); color: var(--paper); }
.hv-film-open:hover .hv-film-g svg, .hv-film-open:focus-visible .hv-film-g svg { transform: translateX(1px); }
/* the loop's pause toggle (WCAG 2.2.2), top right; a 40px touch target around the 24px square */
.hv-film-pp { position: absolute; right: 12px; top: 8px;   /* centred on the chip's line, 12px in like the chip */
  z-index: 3; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0;
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--tile-line); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.hv-film-pp::before { content: ''; position: absolute; inset: -8px; }
.hv-film-pp svg { width: 10px; height: 10px; fill: currentColor; }
.hv-film-pp:hover { background: var(--o); color: var(--c-ink); box-shadow: none; }
.hv-film-pp:focus-visible { outline: 2px solid var(--o); outline-offset: 2px; }
/* reduced motion: the poster only, so there is nothing to pause */
.hv-film.is-still .hv-film-pp { display: none; }
/* small tiles: the label keeps one line; a very small tile drops the word "Film" from the length */
@container (max-width: 190px) { .hv-film-tn { display: none; } .hv-film-t { font-size: 14px; padding: 6px 8px 7px; } .hv-film-g { width: 26px; } }

/* ---------------------------------------------------------------------------------------------- the overlay */
html.hv-film-open { overflow: hidden; }
.hv-fo { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: #050505; color: #F4F2EE; overscroll-behavior: contain; }
.hv-fo[hidden] { display: none; }
.hv-fo-bar { flex: none; display: flex; align-items: center; justify-content: flex-end; height: var(--nav, 72px); padding: 0 var(--gut, 20px); }
.hv-fo-x { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 0; background: transparent; color: inherit;
  font-family: var(--sans); font-size: var(--t-label, 14px); font-weight: 500; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(244 242 238 / 22%); }
.hv-fo-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hv-fo-x:hover { box-shadow: inset 0 0 0 1px #FF3D00; }
.hv-fo-x:hover svg { stroke: #FF3D00; }
.hv-fo-x:focus-visible { outline: 2px solid #FF3D00; outline-offset: 3px; }
.hv-fo-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 var(--gut, 20px) 32px; }
.hv-fo-v { display: block; width: min(1080px, 100vw - 2 * var(--gut, 20px), 100svh - var(--nav, 72px) - 40px); aspect-ratio: 1; height: auto; background: #050505; }   /* the film's own black, so its edge disappears */
.hv-fo-v:focus-visible { outline: 2px solid #FF3D00; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hv-film-t, .hv-film-g svg, .hv-film-pp { transition: none !important; } }
/* narrow tiles (1024 desktops): the label wraps onto two lines beside its key instead of running under it */
@container (max-width: 170px) { .hv-film-l { height: auto; } .hv-film-t { white-space: normal; max-width: 9ch; line-height: 1.15; } }

/* ---------------------------------------------------------------------------------------------- fix round (CRITIC-v14 P2-2)
   A 40% ink scrim under the chips (top and bottom bands), so the clip's own small text never competes with them.
   Narrow tiles (the B2C slot at 1280 and 1024, under 196px): no length chip over the picture, and the label is the
   short "Film" beside the play key, one line. The preview fills its area (cover) whichever ratio it is rendered in. */
.hv-film::after { content: ''; position: absolute; inset: 1px; z-index: 1; pointer-events: none;
  background: linear-gradient(rgb(14 14 14 / 40%), rgb(14 14 14 / 0%) 26%, rgb(14 14 14 / 0%) 60%, rgb(14 14 14 / 40%)); }
.hv-film-ts { display: none; }
@container (max-width: 195px) {
  .hv-film-tc { display: none; }
  .hv-film-l { height: 30px; }
  .hv-film-t { white-space: nowrap; max-width: none; line-height: 1.1; }
  .hv-film-tl { display: none; }
  .hv-film-ts { display: inline; }
}
/* a clip far off its area's ratio is shown whole (js/film.js fit()) */
.hv-film-v.hv-fit-c, #domain > .pc-ef .hv-film-v.hv-fit-c { object-fit: contain; }
/* the rack (composition C): the picture is only the right half of the unit and the label sits beside it, not on it */
[data-hero="c"] #domain > .pc-film .hv-film::after { display: none; }
/* fix round (film notes from the re-render): the length chip no longer sits over the picture, where it covered the
   clip's own labels (dc01, "Debrief"); the length is in the label row, after the words, in mono */
.hv-film-tc { display: none !important; }
.hv-film-tm { margin-left: 8px; font-family: var(--mono); font-size: var(--t-mono); font-weight: 400; color: var(--faint); letter-spacing: 0; }
.hv-film-open:hover .hv-film-tm, .hv-film-open:focus-visible .hv-film-tm, .pc.hot .hv-film-tm { color: inherit; opacity: .7; }
/* the length only where the label has room (the enterprise tile); the small B2C tile keeps the words and the key */
@container (max-width: 259px) { .hv-film-tm { display: none; } }
