.home-references {
  padding: 72px 0 64px;
  background: #fff;
  border-top: 1px solid #e8ebe3;
  border-bottom: 1px solid #e8ebe3;
}

.home-references h2 {
  max-width: 700px;
  margin: 0 0 40px;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.22;
  letter-spacing: -.025em;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.reference-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 144px;
  padding: 4px;
}

.reference-grid .reference-logo {
  display: block;
  width: 128px;
  height: 70px;
  max-width: 100%;
  object-fit: contain;
}

/* Compact symbols retain similar visual weight to the wider wordmarks. */
.reference-grid .reference-logo--emblem {
  width: 70px;
  height: 70px;
}

.reference-grid .reference-logo--square {
  width: 80px;
  height: 80px;
}

.reference-grid .reference-logo--wide {
  width: 184px;
  height: 100px;
}

@media (max-width: 1100px) {
  .reference-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .home-references { padding: 48px 0 40px; }
  .home-references h2 { margin-bottom: 24px; }
  .reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .reference-grid li { min-height: 124px; }
}
