/* Home-page client marks; the existing CMS remains the source of the logos. */
body.is-home #main > #references.references--two-rows {
  background: var(--editorial-surface, #f7f5f1) !important;
  color: #171717 !important;
}
body.is-home #main > #references.references--two-rows h2 { color: #6200a8 !important; }
#references.references--two-rows {
  --logo-width: clamp(140px, 13vw, 200px);
  --logo-height: clamp(96px, 8.93vw, 137px);
  --logo-gap: clamp(24px, 3vw, 48px);
  position: relative;
  display: grid;
  grid-template-columns: clamp(190px, 21vw, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 22px 0 22px var(--space);
  background: var(--editorial-surface, #f7f5f1);
  transition: background-color 1000ms cubic-bezier(.25, 1, .5, 1);
  color: #171717;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}
#references.references--two-rows .reference-intro { min-width: 0; }
#references.references--two-rows h2 {
  max-width: none;
  margin: 0;
  color: #6200a8;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -.025em;
}
#references.references--two-rows .reference-marquee {
  display: grid;
  min-width: 0;
  gap: 4px;
  overflow: visible;
  background: transparent;
  mix-blend-mode: multiply;
}
#references.references--two-rows .reference-row {
  width: 100%;
  overflow: hidden;
  outline-offset: -3px;
}
#references.references--two-rows .reference-track {
  display: flex;
  width: max-content;
  background: transparent;
  animation: reference-duet-drift var(--reference-duration, 160s) linear infinite;
  animation-play-state: paused;
}
#references.references--two-rows .reference-row:nth-child(2) .reference-track {
  animation-direction: reverse;
}
#references.references--two-rows .reference-track ul {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--logo-gap);
  margin: 0;
  padding: 0 calc(var(--logo-gap) / 2);
  list-style: none;
  background: transparent;
}
#references.references--two-rows .reference-track li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--logo-width);
  height: var(--logo-height);
  flex: 0 0 var(--logo-width);
  margin: 0;
  padding: 0;
  background: transparent;
}
#references.references--two-rows .reference-logo-stage {
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
}
#references.references--two-rows .reference-track img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  filter: none;
  mix-blend-mode: multiply;
  background: transparent;
  opacity: 1;
}
#references.references--two-rows[data-in-view="true"]:not([data-hidden="true"]) .reference-track {
  animation-play-state: running;
}
#references.references--two-rows .reference-row:focus-within .reference-track {
  animation-play-state: paused !important;
}
@media (hover: hover) {
  #references.references--two-rows .reference-row:hover .reference-track {
    animation-play-state: paused !important;
  }
}
@keyframes reference-duet-drift { to { transform: translateX(-50%); } }
@media (max-width: 680px) {
  #references.references--two-rows {
    --logo-width: 125px;
    --logo-height: 86px;
    --logo-gap: 22px;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0 16px 24px;
  }
  #references.references--two-rows h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.12;
  }
}
@media (prefers-reduced-motion: reduce) {
  #references.references--two-rows { transition: none; }
  #references.references--two-rows .reference-track { animation: none; transform: none; }
  #references.references--two-rows .reference-track ul[aria-hidden="true"] { display: none; }
  #references.references--two-rows .reference-row { overflow-x: auto; scrollbar-width: thin; }
}
@media (forced-colors: active) {
  body.is-home #main > #references.references--two-rows { background: Canvas !important; color: CanvasText !important; }
  body.is-home #main > #references.references--two-rows h2 { color: CanvasText !important; }
}

#references.references--two-rows.references--stacked-title {
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 20px;
}
