/* Thin section rules + a soft beam that travels along each edge. */
.logo-marquee {
  position: relative;
  border-block: 1px solid #e6e4f2;
  --logo-marquee-gap: 28px;
  --logo-marquee-height: 30px;
}

.logo-marquee__track {
  gap: calc(var(--logo-marquee-gap) * 0.65);
}

.logo-marquee__logo {
  max-height: calc(var(--logo-marquee-height) * 0.75);
}

@media (min-width: 640px) {
  .logo-marquee__track {
    gap: calc(var(--logo-marquee-gap) * 0.85);
  }

  .logo-marquee__logo {
    max-height: calc(var(--logo-marquee-height) * 0.9);
  }
}

@media (min-width: 768px) {
  .logo-marquee__track {
    gap: var(--logo-marquee-gap);
  }

  .logo-marquee__logo {
    max-height: var(--logo-marquee-height);
  }
}

.logo-marquee__beam {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  height: 1px;
  overflow: hidden;
}

.logo-marquee__beam--top {
  top: 0;
}

.logo-marquee__beam--bottom {
  bottom: 0;
}

.logo-marquee__beam-glow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(28%, 220px);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(108, 92, 231, 0.15) 20%,
    rgba(108, 92, 231, 0.95) 50%,
    rgba(108, 92, 231, 0.15) 80%,
    transparent 100%
  );
  animation: logo-marquee-beam 4.5s linear infinite;
}

.logo-marquee__beam--bottom .logo-marquee__beam-glow {
  animation-direction: reverse;
  animation-duration: 5.5s;
}

@keyframes logo-marquee-beam {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(calc(100vw + 100%));
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__beam-glow {
    animation: none;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.55;
  }
}
