/* Integration logo marquee */
.systems {
  border-bottom: 1px solid var(--site-border);
  background: var(--site-bg);
  padding: 80px 0;
  overflow: hidden;
}
.systems .container { max-width: 1200px; }
.systems .label {
  font: 600 11px/1 var(--q-font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--site-muted);
  margin-bottom: 40px;
  text-align: center;
}

/* Marquee rows */
.marquee-row {
  display: flex;
  width: max-content;
  gap: 48px;
  align-items: center;
  padding: 16px 0;
}
.marquee-row img {
  height: 40px;
  width: auto;
  max-width: 100px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}
.marquee-row img:hover {
  opacity: 1;
}

/* Scroll animation */
.marquee-track {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track .marquee-row {
  animation: scroll-left 60s linear infinite;
}
.marquee-track.reverse .marquee-row {
  animation: scroll-right 65s linear infinite;
}

/* Pause on hover */
.systems:hover .marquee-row {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes scroll-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track .marquee-row {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
}

@media (max-width: 1080px) {
  .systems { padding: 64px 0; }
  .marquee-row { gap: 36px; }
  .marquee-row img { height: 32px; max-width: 80px; }
}

@media (max-width: 720px) {
  .systems { padding: 48px 0; }
  .marquee-row { gap: 28px; padding: 12px 0; }
  .marquee-row img { height: 26px; max-width: 64px; }
}