.brand-squares-underlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.brand-square {
  position: absolute;
  width: var(--square-size);
  height: var(--square-size);
  left: calc(var(--square-x) * 100%);
  top: calc(var(--square-y) * 100%);
  border-radius: 5px;
  background: var(--square-color);
  opacity: var(--brand-square-opacity, .10);
  transform: translate3d(0, 0, 0);
  animation: brand-square-drift var(--square-duration) ease-in-out infinite alternate;
  animation-delay: var(--square-delay);
  will-change: transform;
}

#app {
  position: relative;
  z-index: 1;
}

@keyframes brand-square-drift {
  from {
    transform: translate3d(
      calc(var(--square-dx) * -1),
      calc(var(--square-dy) * -1),
      0
    );
  }
  to {
    transform: translate3d(var(--square-dx), var(--square-dy), 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-square {
    animation: none;
  }
}
