.rm-client-marquee,
.rm-client-marquee * {
  box-sizing: border-box;
}

.rm-client-marquee {
  --rm-marquee-speed: 80s;
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 16px 0 20px;
  overflow: hidden;
  background: #ffffff;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
}

.rm-client-marquee__intro {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 28px;
  text-align: center;
}

.rm-client-marquee__eyebrow {
  margin: 0 0 7px;
  color: #1f74c9;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.rm-client-marquee__title {
  margin: 0;
  color: #133b63;
  font-size: clamp(15px, 1.25vw, 16px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.rm-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.rm-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: rm-marquee-scroll var(--rm-marquee-speed) linear infinite;
  will-change: transform;
}

.rm-client-marquee:hover .rm-marquee__track,
.rm-client-marquee:focus-within .rm-marquee__track {
  animation-play-state: paused;
}

.rm-marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
}

.rm-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 114px;
  padding: 2px;
  overflow: hidden;
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.rm-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 108px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transform: translateZ(0);
  transition: transform 180ms ease;
  user-select: none;
}

.rm-logo:hover img {
  transform: scale(1.015);
}

@keyframes rm-marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 991px) {
  .rm-client-marquee {
    padding: 15px 0 18px;
  }
  .rm-client-marquee__eyebrow { font-size: 13px; }
  .rm-client-marquee__title { font-size: 16px; }
  .rm-marquee__group { gap: 24px; padding-right: 24px; }
  .rm-logo { width: 205px; height: 98px; }
  .rm-logo img { max-height: 92px; }
}

@media (max-width: 767px) {
  .rm-client-marquee {
    padding: 13px 0 16px;
  }
  .rm-client-marquee__intro {
    width: min(100% - 28px, 1200px);
    margin-bottom: 20px;
  }
  .rm-client-marquee__eyebrow { font-size: 12px; }
  .rm-client-marquee__title { font-size: 15px; }
  .rm-marquee {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 2%, #000 98%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 2%, #000 98%, transparent 100%);
  }
  .rm-marquee__group { gap: 18px; padding-right: 18px; }
  .rm-logo { width: 170px; height: 82px; }
  .rm-logo img { max-height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .rm-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: thin;
  }
  .rm-marquee__track { animation: none; }
  .rm-marquee__group--duplicate { display: none; }
}
