/* Compact, static brand directory on the homepage. */
#brands.home-brands {
  padding-top: 0;
  scroll-margin-top: 132px;
}

.home-brands__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.home-brands__eyebrow {
  margin: 0 0 10px;
  color: #686760;
  font-size: 12px;
  letter-spacing: .16em;
}

.home-brands__head h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .01em;
}

.home-brands__lead {
  margin: 0 0 4px;
  color: #686760;
  font-size: 14px;
  line-height: 1.8;
}

.home-brands .brands {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px 8px;
  padding: 22px 16px;
  border: 0;
  border-radius: 16px;
  overflow: visible;
}

.home-brands .brand-cell {
  flex-direction: column;
  min-width: 0;
  min-height: 104px;
  padding: 8px 4px;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  color: #4e4e48;
  text-decoration: none;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  letter-spacing: 0;
}

.home-brands__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
}

.home-brands .brand-cell img {
  display: block;
  width: 96px;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  transform: none;
}

.home-brands__name {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.home-brands .brand-cell:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  background: #f6f5f1;
}

@media (hover: hover) {
  .home-brands .brand-cell:hover {
    background: #f6f5f1;
    color: var(--ink);
  }
}

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

@media (max-width: 720px) {
  #brands.home-brands {
    scroll-margin-top: 96px;
  }

  .home-brands__head {
    display: flow-root;
    margin-bottom: 20px;
  }

  .home-brands__lead {
    margin: 26px 0 14px;
    font-size: 13px;
  }

  .home-brands .brands {
    gap: 12px 0;
    padding: 16px 8px;
  }

  .home-brands .brand-cell {
    min-height: 84px;
    padding: 6px 2px;
    gap: 6px;
  }

  .home-brands__logo {
    height: 52px;
  }

  .home-brands .brand-cell img {
    width: 76px;
  }

  .home-brands__name {
    font-size: 10px;
    letter-spacing: -.02em;
  }
}

@media (max-width: 360px) {
  .home-brands__name {
    max-width: 100%;
    min-height: 28px;
    white-space: normal;
    text-wrap: balance;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-brands .brand-cell,
  .home-brands .brand-cell img {
    transition: none;
  }
}
