/* Keep the film at the top edge while navigation fades in over it. */
body.direction-a .p02 .masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  transition: opacity 220ms ease, transform 220ms ease;
}
body.direction-a .p02 .masthead:not([data-visible]):not(:has(:focus-visible)) {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
body.direction-a .p02 .masthead:not([data-past-film]) {
  background: linear-gradient(to bottom, rgb(0 22 43 / 84%), rgb(0 22 43 / 62%));
  color: white;
}
body.direction-a .p02 .masthead:not([data-past-film]) .header-link,
body.direction-a .p02 .masthead:not([data-past-film]) .menu-trigger {
  color: white;
}
body.direction-a .p02 .masthead:not([data-past-film]) .menu-trigger b { background: white; }
body.direction-a .p02 .masthead:not([data-past-film]) .move-brand-logo { filter: brightness(0) invert(1); }
body.direction-a .p02 #top { height: 100dvh; min-height: 100dvh; max-height: none; }
@media (prefers-reduced-motion: reduce) {
  body.direction-a .p02 .masthead { transition: none; }
}
