/* Customer work: the original logo identifies the client; visible text explains the job. */
.customer-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.customer-project-grid--showcase {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.customer-project-grid--research {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-project-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  scroll-margin-top: 120px;
}

.customer-project-logo {
  display: flex;
  min-width: 0;
  height: 96px;
  align-items: center;
  margin-bottom: 22px;
}

.customer-project-logo img {
  width: min(100%, 210px);
  height: auto;
  max-height: 96px;
  object-fit: contain;
}

.customer-project-card h3 {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: 1.2rem;
  line-height: 1.3;
  text-wrap: initial;
}

.customer-project-card h3 a {
  color: inherit;
  text-decoration-color: var(--line);
  overflow-wrap: normal;
}

.customer-project-card h3 a:hover {
  color: var(--action);
  text-decoration-color: currentColor;
}

.customer-project-copy {
  color: var(--steel);
  font-size: 1rem;
  line-height: 1.6;
}

.customer-project-copy p {
  margin: 0;
}

.customer-project-copy ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.customer-project-copy li + li {
  margin-top: 14px;
}

.customer-project-copy strong {
  color: var(--deep);
}

.customer-project-grid--showcase .customer-project-card {
  padding: 22px;
}

.customer-project-grid--showcase .customer-project-logo {
  height: 74px;
  margin-bottom: 18px;
}

.customer-project-grid--showcase .customer-project-logo img {
  width: min(100%, 174px);
  max-height: 74px;
}

.customer-project-grid--showcase h3 {
  font-size: 1.05rem;
}

.customer-project-grid--showcase .customer-project-copy {
  font-size: 0.95rem;
}

.customer-showcase-link {
  margin: 30px 0 0;
}

.customer-page-hero .lead {
  max-width: 72ch;
}

.customer-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.customer-category-nav a {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--deep);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}

.customer-category-nav a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.customer-project-section {
  scroll-margin-top: 90px;
}

.customer-project-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  font-weight: 650;
}

.customer-project-card a:focus-visible,
.customer-showcase-link a:focus-visible,
.customer-category-nav a:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 5px;
  border-radius: 3px;
}

@media (max-width: 960px) {
  .customer-project-grid,
  .customer-project-grid--showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .customer-project-grid,
  .customer-project-grid--showcase,
  .customer-project-grid--research {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-project-card {
    padding: 24px;
  }

  .customer-category-nav {
    gap: 10px;
  }
}
