/* BW Tech full-site loading overlay */
#bwtech-site-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #02060a;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
#bwtech-site-loader.bwtech-loader-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#bwtech-site-loader .bwtech-loader-backdrop {
  position: absolute;
  inset: -2%;
  background-image: url("/assets/bwtech-loader-background.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: bwtech-loader-drift 16s ease-in-out infinite alternate;
  will-change: transform;
}
#bwtech-site-loader .bwtech-loader-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,4,8,.28), rgba(0,4,8,.12) 45%, rgba(0,4,8,.4));
}
#bwtech-site-loader .bwtech-loader-scanline {
  position: absolute;
  inset: -100% 0 auto;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(0,218,255,.08), transparent);
  animation: bwtech-loader-scan 3.6s linear infinite;
  pointer-events: none;
}
#bwtech-site-loader .bwtech-loader-live-status {
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 14px;
  border: 1px solid rgba(0,210,255,.35);
  border-radius: 999px;
  background: rgba(1,10,18,.72);
  color: #dffaff;
  font: 500 11px/1.2 system-ui, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(0,174,255,.12);
}
#bwtech-site-loader .bwtech-loader-live-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 9px 1px 0;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 9px #00dfff;
  animation: bwtech-loader-blink 1s ease-in-out infinite;
}
@keyframes bwtech-loader-drift {
  from { transform: scale(1.01) translate3d(-.3%, 0, 0); }
  to { transform: scale(1.07) translate3d(.3%, -.3%, 0); }
}
@keyframes bwtech-loader-scan {
  from { transform: translateY(0); }
  to { transform: translateY(330vh); }
}
@keyframes bwtech-loader-blink {
  0%,100% { opacity: .45; }
  50% { opacity: 1; }
}
@media (max-width: 700px) {
  #bwtech-site-loader .bwtech-loader-backdrop {
    background-position: center;
    /* The original composition is wide; crop it around the central BW Tech mark on phones. */
    background-size: auto 100%;
    min-width: 100%;
  }
  #bwtech-site-loader .bwtech-loader-live-status {
    bottom: max(14px, env(safe-area-inset-bottom));
    font-size: 9px;
    letter-spacing: .13em;
  }
}
@media (prefers-reduced-motion: reduce) {
  #bwtech-site-loader .bwtech-loader-backdrop,
  #bwtech-site-loader .bwtech-loader-scanline,
  #bwtech-site-loader .bwtech-loader-live-status::before {
    animation: none !important;
  }
  #bwtech-site-loader { transition: none; }
}
