.associates {
  background: #f7f5ef;
}

.associates .heading {
  grid-template-columns: 1fr .7fr;
}

.associate-visual {
  position: relative;
  height: clamp(250px, 30vw, 390px);
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(10, 34, 48, .1);
}

.associate-visual > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.associate-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 26, 37, .78) 0%, rgba(6, 26, 37, .16) 48%, transparent 72%);
}

.associate-visual > div {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 4vw, 56px);
  bottom: clamp(24px, 4vw, 46px);
  max-width: 420px;
  color: #fff;
}

.associate-visual span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.associate-visual p {
  margin: 11px 0 0;
  font: clamp(20px, 2.4vw, 32px)/1.18 "Libre Caslon Display";
}

.associate-grid {
  display: flex;
  gap: 18px;
  overflow: hidden;
  padding: 2px 6px 10px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.associate-grid::-webkit-scrollbar {
  display: none;
}

.associate-grid.is-marquee {
  width: max-content;
  animation: associate-marquee 48s linear infinite;
}

.associate-grid.is-marquee:hover {
  animation-play-state: paused;
}

.associate-card {
  position: relative;
  flex: 0 0 330px;
  min-height: 380px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #e4e0d7;
  background: #fff;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.associate-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px #0a223011;
}

.associate-card > span {
  font-size: 11px;
  color: #9ca7ab;
  letter-spacing: 1.5px;
}

.associate-logo {
  width: 180px;
  height: 180px;
  margin: 22px auto 18px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 28px;
  border: 1px solid #ece6d8;
  box-shadow: 0 10px 24px rgba(10, 34, 48, .06);
}

.associate-logo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.associate-logo--wide {
  width: 240px;
  height: 140px;
  border-radius: 24px;
}

.associate-logo--wide img {
  width: 94%;
  height: 94%;
}

.associate-logo--bbac {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  padding: 0;
}

.associate-logo--bbac img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.associate-badge {
  border-radius: 50%;
  background: linear-gradient(145deg, #20384a, #0b2433);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.associate-badge span {
  font: 700 34px "DM Sans";
  letter-spacing: 1px;
  color: #fff;
}

.associate-card h3 {
  margin: 0 0 10px;
  font: 32px "Libre Caslon Display";
  color: var(--navy);
}

.associate-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 260px;
}

.associate-card b {
  margin-top: auto;
  padding-top: 22px;
  color: var(--gold2);
  font-size: 11px;
}

.associate-card--marquee b {
  display: none;
}

@keyframes associate-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@media (max-width: 950px) {
  .associates .heading {
    grid-template-columns: 1fr;
  }

  .associate-card {
    flex-basis: 300px;
    min-height: 340px;
  }
}

@media (max-width: 600px) {
  .associate-visual {
    height: 300px;
  }

  .associate-visual > img {
    object-position: 62% center;
  }

  .associate-visual:after {
    background: linear-gradient(0deg, rgba(6, 26, 37, .84), rgba(6, 26, 37, .05) 75%);
  }

  .associate-visual > div {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .associate-grid {
    gap: 14px;
  }

  .associate-card {
    flex-basis: 250px;
    padding: 26px;
  }

  .associate-logo {
    width: 150px;
    height: 150px;
  }
}
