/* Bay Blaze smoothness pass (Andreas 2026-10-11 3:56 PM: "make the website super super smooth"). Loaded last on the home page and
   the portal. Looping effects re-cut to animate only transform/opacity (compositor, no per-frame repaint); blur-behind-glass
   off on phones (solid backgrounds instead); offscreen sections skip rendering; perf.js pauses any loop that is off screen. */
/* sheens / scanners: was animating `left` (layout + paint every frame) -> transform */
@keyframes hvSheen{0%{transform:translateX(0) skewX(-18deg)}30%,100%{transform:translateX(475%) skewX(-18deg)}}
@keyframes pcG{from{transform:translateX(0) skewX(-16deg)}to{transform:translateX(543%) skewX(-16deg)}}
@keyframes v3shine{0%,55%{transform:translateX(0) skewX(-20deg)}100%{transform:translateX(475%) skewX(-20deg)}}
.app .top::before{left:0!important;right:auto!important;width:90px!important;background:#f04a00!important;filter:none!important;box-shadow:0 0 8px #f04a00!important;animation:bbScan 5s linear infinite!important}
@keyframes bbScan{from{transform:translateX(-90px)}to{transform:translateX(100vw)}}
/* hero letters: no animated blur */
@keyframes hvSlam{0%{opacity:0;transform:scale(2.4) translateY(-8%)}70%{opacity:1;transform:scale(.96)}100%{opacity:1;transform:none}}
/* moving grid floors: the grid now slides by transform instead of repainting its background every frame */
.hero.v2 .hv-grid{height:calc(30% + 30px);bottom:calc(-2% - 30px);animation:bbGrid 2.4s linear infinite}
@keyframes bbGrid{from{transform:perspective(300px) rotateX(64deg) translateY(-30px)}to{transform:perspective(300px) rotateX(64deg) translateY(0)}}
/* rendering work skipped for sections far off screen (sizes remembered once seen) */
#services,#about,#join,#schedule,#wins,#onroad{content-visibility:auto;contain-intrinsic-size:auto 900px}
@media (max-width:819px),(pointer:coarse){
  /* backdrop blur re-blurs everything behind it on every scroll frame: solid glass instead */
  *,*::before,*::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .nav{background:rgba(10,10,10,.97)!important}
  .top,.app .top{background:rgba(8,8,8,.97)!important}
  .tabbar{background:rgba(10,10,10,.98)!important}
  .lock-card{background:linear-gradient(160deg,rgba(20,26,20,.96),rgba(8,10,8,.97))!important}
  .me-dd,.bb-more{background:rgba(12,14,12,.98)!important}
  body.bb-in:not(.locked) .bb-nav{background:rgba(10,12,10,.97)!important}
  .tco{background:rgba(0,0,0,.94)!important}
  .pd-hero{background:linear-gradient(150deg,rgba(40,15,12,.8) 0%,rgba(14,14,14,.78) 60%)!important}
  /* a blurred photo that also drifts gets re-blurred by the GPU every frame: keep the blur, drop the 18 s drift on phones */
  .pd-bgx img{animation:none!important;will-change:auto!important}
  .seam .s1{filter:none!important}
  /* Oct 11 6:5x PM "so laggy": the seam glow animated stroke-width (repaint every frame over the hero videos) and the logo glow was a blurred layer */
  .seam .s1{animation:none!important}
  .seam .s2{filter:none!important}
  .flame{filter:none!important}
}
@media (prefers-reduced-motion:reduce){.app .top::before,.hero.v2 .hv-grid{animation:none!important}}
