/* The 30-second film's window on the home page (js/video.js). A native
   <dialog>: the browser gives it Esc, the focus trap and the top layer. */
.film-window { width: min(92vw, 160vh, 1200px); max-width: none; padding: 0; border: 0; border-radius: 16px;
  background: #0b1b33; overflow: visible; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); }
.film-window::backdrop { background: rgba(11, 27, 51, .72); backdrop-filter: blur(4px); }
.film-window video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; background: #f3f7fb; }
.film-close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.film-close:hover { background: rgba(255, 255, 255, .28); }
@media (prefers-reduced-motion: no-preference) {
  .film-window[open] { animation: film-in .22s ease-out; }
  @keyframes film-in { from { opacity: 0; transform: scale(.97); } }
}
.film-window.film-tall { width: min(88vw, 48vh); }
.film-window.film-tall video { aspect-ratio: 9 / 16; }
