/* ============================================================
   INTRO — film burn over the whole screen when the home page opens
   (assets/intro/intro.mp4: red light leak with a sprocket hole, burning
   out to white). It ends almost white, then fades into the white page.
   Shown only when html.has-intro is set (inline script in index.html:
   once per visit, home page only, not with reduced motion).
   ============================================================ */

.intro { display: none; }

.has-intro .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 10000;                           /* above the nav, logo and cursor */
  background: #a3120d;                      /* the clip's red, until the first frame paints */
  transition: opacity 0.45s var(--ease-out, ease);
}
.has-intro .intro.is-done { opacity: 0; pointer-events: none; }

.intro__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;                        /* fills any screen shape */
  object-position: 0% 50%;                  /* tall screens: keep the left side (red glow + sprocket hole) */
}

/* While the intro covers the page, the page itself doesn't scroll */
.has-intro.intro-playing,
.has-intro.intro-playing body { overflow: hidden; }
