/* Believe Fitness intro, "Ignition". assets/intro.js builds the overlay and adds html.bf-intro-on,
   so if that script never runs, nothing here applies and the page shows as normal. */
.bf-intro {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483000;
  overflow: hidden;
  pointer-events: none;
  animation: bf-intro-gone 0s 4s forwards;   /* backstop: hidden at 4 s even if the script stalls */
}
@keyframes bf-intro-gone { to { visibility: hidden; } }
/* The cover: intro.js runs in <head> and sets html.bf-intro-pre before the first paint, so the page
   is never seen ahead of the intro. It hands over to .bf-intro when the intro starts. */
html.bf-intro-pre::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147482999;
  background: #000;
  animation: bf-intro-gone 0s 6s forwards;   /* backstop: gone at 6 s even if the script stalls */
}
@keyframes bf-intro-show { to { opacity: 1; } }
.bf-intro__ping {
  position: absolute;
  width: 40px;
  height: 40px;
  overflow: visible;
}
.bf-intro__ping polygon {
  transform-box: view-box;
  transform-origin: 50% 50%;
  opacity: 0;
}
.bf-intro__bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  right: -30%;
  background: #000;
  transform: skewX(-10deg);    /* the logo's italic */
  pointer-events: auto;        /* holds taps while it covers the page; a tap skips the intro */
  will-change: transform;
}
.bf-intro__bg::before {        /* yellow blade on its leading edge */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: clamp(4px, .55vw, 8px);
  background: var(--bf-yellow, #fde800);
}
.bf-intro__fx,
.bf-intro__fy,
.bf-intro__art {
  position: absolute;
  transform-origin: 0 0;
}
.bf-intro__fx,
.bf-intro__fy { will-change: transform; }
.bf-intro__fy,
.bf-intro__fy .bf-intro__art {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.bf-intro__art {
  display: block;
  overflow: visible;
}
.bf-intro__art * {
  transform-box: view-box;
  transform-origin: 0 0;
}

/* While it plays, the flying logo stands in for the header logo */
.bf-intro-on .site-header .brand__logo,
.bf-intro-on .site-header .brand__wordmark { opacity: 0; animation: bf-intro-show 0s 4s forwards; }
/* The page's own step rise-in waits for the reveal instead of playing unseen under the black */
.bf-intro-on .next.is-in .next__step { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .bf-intro,
  html.bf-intro-pre::before { display: none; }
  .bf-intro-on .site-header .brand__logo,
  .bf-intro-on .site-header .brand__wordmark { opacity: 1; }
}
