/* Performance layer: cheaper effects on phones/tablets, no off-screen animation work. */
.bf-offscreen *, .bf-offscreen *::before, .bf-offscreen *::after { animation-play-state: paused !important; }

html body main > section, html body main > div.perf-content-visibility {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
html body main > section:first-child { content-visibility: visible; }

@media (max-width: 1024px), (hover: none) {
  html body *, html body *::before, html body *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  html body [class*="glow"], html body [class*="Glow"], html body .bfh-orb, html body .bfx-pglow i {
    filter: none !important;
    animation: none !important;
  }
  html body main { overflow-x: clip; }
  html body img, html body video { max-width: 100%; height: auto; }
}

@media (max-width: 640px) {
  html body main .bfx *, html body main .bfh * { box-shadow: none; }
  html body main .bfx-fx-pane *, html body main .bfx-win * { animation-duration: 0s !important; animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
