/* ===== CLIENTS — logo strip ===== */
.clients { padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 100px); background: rgba(247, 246, 242, 0.94); position: relative; }
.clients__head { margin-bottom: 56px; max-width: 760px; }
.clients__title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.55;
  margin: 12px 0 0;
}
.clients__title em {
  font-family: var(--serif-jp);
  font-style: normal;
  letter-spacing: 0.01em;
  color: var(--accent);
  font-weight: 600;
}
.clients__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: transparent;
  border-top: 1px solid var(--paper-line);
  border-left: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
  isolation: isolate;
}
.clients__cell {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  background: var(--surface);
  /* 1px right + bottom border per cell — adjacent cells don't double up,
     and unfilled positions in the last row simply have no borders. */
  border-right: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  transition: background 0.4s ease, filter 0.4s ease;
}
.clients__cell img {
  max-width: 100%;
  min-width: 0;
  max-height: 56px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}
.clients__cell:hover img { transform: scale(1.04); }
.clients__cell--dark { background: var(--ink); }
.clients__cell--dark img { filter: brightness(1.1); }
.clients__cell--navy { background: #031E5B; }
.clients__cell--navy img { filter: brightness(1.05); }
.clients__cell--boost img { max-height: 83px; transform: scale(1.45); transform-origin: center; }
.clients__cell--boost:hover img { transform: scale(1.5); }
.clients__note {
  display: block;
  margin: 32px 0 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--on-paper-faint);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 2;
  clear: both;
}

@media (max-width: 1280px) {
  .clients__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .clients__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .clients__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients__cell { padding: 16px; }
  .clients__cell img { max-height: 44px; }
  .clients__cell--boost img { max-height: 72px; transform: scale(1.2); }
  .clients__cell--boost:hover img { transform: scale(1.25); }
  .clients__head { margin-bottom: 32px; }
  .clients__title { font-size: 19px; line-height: 1.55; }
  .clients__note { font-size: 13px; margin-top: 24px; }
}
