/* Official artwork keeps its own colors and aspect ratio. Each logo is sized
   optically inside a reserved slot to avoid layout shifts and uneven rows. */
.brand-recognition {
  scroll-margin-top: 90px;
  margin-top: 36px;
  padding-top: 36px;
  padding-bottom: 44px;
  border-top: 1px solid #e8edf0;
}

.brand-recognition h2 {
  margin: 0 0 28px;
  color: #222c34;
  font-family: 'Inter', sans-serif;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.5px;
  text-align: center;
}

.brand-grid {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-grid--ecosystem {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.brand-grid--recognition {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid #edf0f2;
}

.brand-item {
  min-width: 0;
}

.brand-link {
  display: flex;
  height: 100%;
  padding: 8px 4px;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

a.brand-link:hover .brand-caption {
  color: #00769b;
}

a.brand-link:focus-visible {
  outline: 2px solid #00769b;
  outline-offset: 4px;
}

.brand-art {
  display: flex;
  width: 100%;
  height: 80px;
  align-items: center;
  justify-content: center;
}

.brand-art img {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.brand-art--elevenlabs img { max-width: 160px; }
.brand-art--bga img { max-width: 150px; }
.brand-art--superteam img { width: 70px; height: 70px; }
.brand-art--familia img { max-width: 190px; }
.brand-art--google img { max-width: 200px; }
.brand-art--dreamnet img { max-width: 175px; }
.brand-art--village img { max-width: 116px; }

.brand-caption {
  color: #35434d;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.brand-caption > span {
  display: block;
  margin-top: 2px;
  color: #626d76;
  font-size: 11px;
  font-weight: 400;
}

@media (max-width: 900px) {
  .brand-grid--ecosystem {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .brand-grid--ecosystem > .brand-item { grid-column: span 2; }
  .brand-grid--ecosystem > .brand-item:nth-child(4) { grid-column: 2 / span 2; }
  .brand-grid--recognition { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .brand-recognition { margin-top: 24px; padding-top: 28px; padding-bottom: 32px; }
  .brand-recognition h2 { letter-spacing: -0.3px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .brand-grid--ecosystem > .brand-item { grid-column: auto; }
  .brand-grid--ecosystem > .brand-item:nth-child(4) { grid-column: auto; }
  .brand-grid--ecosystem > .brand-item:last-child { grid-column: 1 / -1; width: calc((100% - 16px) / 2); justify-self: center; }
  .brand-art { height: 72px; }
  .brand-art img { max-height: 72px; }
  .brand-art--superteam img { width: 64px; height: 64px; }
  .brand-caption { font-size: 11px; }
}
