/* Robots’ Last Exam — homepage, the film (home-film.js). Like the other parts, a whole screen of footage with its
   title on the base line: a dark sheet laid over the end of the intro, one screen tall below its rounded edge
   (the tasks part lays its own edge over the last 34px). */
.film-teaser {
  position: relative; z-index: 1; height: calc(100vh + 34px); min-height: 594px; margin-top: -34px; overflow: hidden;
  border-radius: 34px 34px 0 0; background: #000000; color: var(--cream);
  box-shadow: 0 -26px 70px rgba(0, 0, 0, .38);
}
.film-teaser-frame { position: absolute; left: 0; right: 0; top: 0; height: 100vh; min-height: 560px; }
.film-teaser-frame > img, .film-teaser-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-teaser-frame > img:not([src]) { visibility: hidden; }
.film-teaser-frame > video:not(.film-teaser-film) { opacity: 0; transition: opacity .6s ease; }
.film-teaser-frame > video.is-playing { opacity: 1; }
.film-teaser-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .4s ease;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, .5) 0, rgba(8, 8, 7, 0) 160px),
    linear-gradient(90deg, rgba(8, 8, 7, .6) 0, rgba(8, 8, 7, .28) 36%, rgba(8, 8, 7, 0) 68%),
    linear-gradient(0deg, rgba(8, 8, 7, .72) 0, rgba(8, 8, 7, .24) 34%, rgba(8, 8, 7, 0) 58%); }

/* The title on the base line, the button under it — the places every part keeps its words. */
.film-teaser-copy { position: absolute; z-index: 2; left: calc(var(--rail) + var(--pad)); right: calc(var(--right) + var(--pad)); bottom: calc(100% - var(--base) - 96px); transition: opacity .35s ease; }
.film-teaser-copy .eyebrow { margin-bottom: 20px; }
.film-teaser-copy .display { margin: 0; }
.film-teaser-play { margin-top: 40px; cursor: pointer; border: 0; }

/* Playing: the whole film, uncropped, over black, with its controls; the words step aside. */
.film-teaser-film { z-index: 3; object-fit: contain !important; background: #000000; }
.film-teaser-close { position: absolute; z-index: 4; top: calc(var(--top) + 20px); right: calc(var(--right) + var(--pad)); cursor: pointer; border: 0; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.film-teaser.is-playing .film-teaser-close { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.film-teaser.is-playing .film-teaser-copy, .film-teaser.is-playing .film-teaser-shade { opacity: 0; pointer-events: none; }
