.brand-directory-heading {
  padding-block: clamp(40px, 6vw, 78px) 0;
}

.brand-directory-heading .page-intro {
  max-width: 62ch;
  margin-top: 16px;
}

.brand-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px clamp(20px, 2.3vw, 30px);
  margin-block: clamp(30px, 3.8vw, 48px) clamp(52px, 7vw, 84px);
  padding: 0;
  list-style: none;
}

.brand-directory > li { display: flex; min-width: 0; }

.brand-entry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  scroll-margin-top: 110px;
}

.brand-entry-logo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2.12;
  border: 1px solid rgb(20 32 57 / 7%);
  border-radius: var(--radius);
}

.brand-logo-openvrm { background: #edf2f7; }
.brand-logo-sendreminder { background: #faedcf; }
.brand-logo-handtied { background: #f1ecf4; }
.brand-logo-domainsabre { background: #0b1014; }
.brand-logo-dropsnare { background: #faedcf; }
.brand-logo-bcpweb { background: #f6f8fc; }
.brand-logo-cheapvpn { background: #eaf0ff; }
.brand-logo-foodtools { background: #eaf4fb; }

.brand-entry-logo img {
  display: block;
  width: 73%;
  height: 46%;
  object-fit: contain;
}

.brand-logo-bcpweb img { width: 58%; }

.brand-entry h2 {
  margin-top: 23px;
  font-size: clamp(25px, 2.25vw, 31px);
  letter-spacing: -.045em;
}

.brand-entry p {
  flex: 1;
  margin-block: 9px 19px;
  font-size: 15px;
  line-height: 1.65;
}

.brand-entry .button {
  min-height: 44px;
  padding: 9px 15px;
}

@media (max-width: 820px) {
  .brand-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .brand-directory { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .brand-entry h2 { margin-top: 17px; }
}
