@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&display=swap');

/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6a6a6a;
  --tile: #f3f3f1;
  --placeholder: #eceae6;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 🔥 FIX LINK COLORS FOREVER */

a,
a:link,
a:visited,
a:hover,
a:active {
  color: inherit !important;
  text-decoration: none !important;
}

/* NAV */

.site-header {
  padding: 26px 36px 0;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 34px;
}

.site-nav a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* PAGE */

.clients-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 36px 100px;
}

/* INTRO */

.clients-intro {
  text-align: center;
  margin-bottom: 56px;
}

.intro-copy {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: var(--muted);
}

/* GRID */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

/* CARD */

.client-card {
  display: block;
}

/* TITLE */

.client-meta {
  text-align: center;
  margin-bottom: 20px;
}

.client-name {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  letter-spacing: 0.03em;
}

/* IMAGE */

.client-image-wrap {
  position: relative;
  background: var(--tile);
  aspect-ratio: 4 / 5;
  padding: 18px;
  overflow: hidden;
}

.client-image {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: cover;
  transition: opacity 0.35s ease;
}

.client-image-primary {
  opacity: 1;
}

.client-image-hover {
  opacity: 0;
}

.client-card.has-hover:hover .client-image-primary {
  opacity: 0;
}

.client-card.has-hover:hover .client-image-hover {
  opacity: 1;
}

/* PLACEHOLDER */

.client-image-wrap.placeholder {
  background: var(--placeholder);
}

/* MOBILE */

@media (max-width: 900px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
}