/* Believe Fitness loader for the After Hours concept site: the B intro, 5 seconds, with a promo slot.
   assets/loader.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. Source and notes: loader-src/. */
.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 6.5s forwards;   /* backstop: hidden at 6.5 s even if the script stalls */
}
@keyframes bf-intro-gone { to { visibility: hidden; } }
@keyframes bf-intro-show { to { opacity: 1; } }
/* The cover: loader.js runs in <head> and sets html.bf-intro-pre before the first paint, so the page
   is never seen ahead of the loader. It hands over to .bf-intro when the loader starts. */
html.bf-intro-pre::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147482999;
  background: #120f10;
  animation: bf-intro-gone 0s 8s forwards;   /* backstop: gone at 8 s even if the script stalls */
}
.bf-intro__bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  right: -30%;
  background: #120f10;
  transform: skewX(-10deg);    /* the logo's italic */
  pointer-events: auto;        /* holds taps while it covers the page; a tap skips the loader */
  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: #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;
}
.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;
}

/* The promo slot: square panel, dashed so it reads as a slot, pill tag (the site's shape rule) */
.bf-intro__promo {
  position: absolute;
  box-sizing: border-box;
  padding: 22px 24px 22px;
  border: 1.5px dashed rgba(253, 232, 0, .55);
  background: rgba(255, 255, 255, .035);
  color: rgba(255, 255, 255, .93);
  font-family: "Avenir", system-ui, sans-serif;
  text-align: left;
  opacity: 0;
}
.bf-intro__ptop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.bf-intro__plab {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Evogria", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 11.5px;
  line-height: 1.4;
  color: #fde800;
  white-space: nowrap;
}
.bf-intro__plab::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fde800;
  box-shadow: 0 0 10px rgba(253, 232, 0, .7);
}
.bf-intro__ptag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-family: "Evogria", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  line-height: 1;
  color: rgba(255, 255, 255, .58);
  white-space: nowrap;
}
.bf-intro__ph {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(24px, 8vw, 46px);
  line-height: .98;
  letter-spacing: -.012em;
}
.bf-intro__pl {
  display: block;
  overflow: hidden;
  padding-bottom: .04em;
  white-space: nowrap;
}
.bf-intro__pl > span {
  display: block;
  transform: translateY(105%);
}
.bf-intro__pl.y { color: #fde800; }
.bf-intro__pn {
  margin-top: 14px;
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .58);
  opacity: 0;
}
/* "Tap or click to skip" and the loading line, both at the bottom */
.bf-intro__skip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(30px + env(safe-area-inset-bottom));
  text-align: center;
  font-family: "Evogria", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10.5px;
  color: rgba(255, 255, 255, .4);
  opacity: 0;
}
.bf-intro__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #fde800;
  box-shadow: 0 0 12px rgba(253, 232, 0, .6);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* While it plays, the flying logo stands in for the header logo */
.bf-intro-on .top .logo .logo-lockup { opacity: 0; animation: bf-intro-show 0s 6.5s forwards; }
/* The page's own hero rise-in waits for the reveal instead of playing unseen under the dark */
.bf-intro-on h1 .ln > span,
.bf-intro-on [data-intro],
.bf-intro-on .hero > img,
.bf-intro-on .phero > img { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .bf-intro,
  html.bf-intro-pre::before { display: none; }
  .bf-intro-on .top .logo .logo-lockup { opacity: 1; }
}
