/* The original booth scan, layered behind the homepage copy and controls. */
.bm-home-hero-scan {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #0005 38%, #000 72%);
}
.bm-home-hero-scan::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 48%, #ffffff76 50%, transparent 52%),
    radial-gradient(circle at 50% 50%, #0056ff38, transparent 190px);
  mix-blend-mode: screen;
  transform: translateX(-110%);
}
.bm-home-hero-scan::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid #ffffff20;
  background-image:
    linear-gradient(#ffffff12 1px, transparent 1px),
    linear-gradient(90deg, #ffffff12 1px, transparent 1px);
  background-size: 34px 34px;
}
.bm-home-hero[data-scan-ready] .bm-home-hero-scan::before {
  animation: boothScan 4.5s ease-in-out infinite;
  animation-play-state: paused;
}
.bm-home-hero[data-scan-running="true"] .bm-home-hero-scan::before {
  animation-play-state: running;
}
.bm-home-hero-motion {
  position: absolute;
  right: max(40px, calc((100vw - 1180px) / 2));
  bottom: 49px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid #ffffff40;
  border-radius: 20px;
  color: #e0e8f6;
  background: #0c173066;
  font-size: 12px;
  cursor: pointer;
}
.bm-home-hero-motion[hidden] { display: none; }
.bm-home-hero-motion:hover { background: #172a48b3; }
.bm-home-hero-motion:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@keyframes boothScan {
  0%, 18% { transform: translateX(-110%); }
  55%, 100% { transform: translateX(110%); }
}
@media (max-width: 850px) {
  .bm-home-hero-motion { right: 24px; }
}
@media (max-width: 600px) {
  .bm-home-hero-scan { mask-image: linear-gradient(90deg, #0001, #0008); }
  .bm-home-hero-motion { right: 20px; bottom: 41px; font-size: 11px; }
}
@media (max-width: 360px) {
  .bm-home-hero-motion { right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bm-home-hero .bm-home-hero-scan::before { animation: none; }
  .bm-home-hero-motion { display: none; }
}
