/*
 * The Clients page (/clients/). Everything here is scoped with `cl-` and sits on top of
 * site.css: the tokens, `.stats`, `.sky`, `.window`, `.proof-card`, `.review` and `.cta-band`
 * come from there. Client logos are ink on transparent, so they read on white and on the
 * sheet grey alike.
 */

/* ---------- Hero ---------- */

.cl-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 104px var(--gutter) 0;
  text-align: center;
}

.cl-hero h1 {
  font-size: clamp(44px, 5.6vw, 80px);
  font-weight: 440;
  line-height: 1.02;
  letter-spacing: -0.032em;
}

.cl-num {
  background: linear-gradient(100deg, var(--brand) 10%, var(--brand-hi) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cl-hero .lede {
  max-width: 560px;
  margin: 26px auto 0;
}

.stats.cl-stats {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-top: 88px;
}

/* ---------- Section heads ---------- */

.cl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.cl-head .lede {
  max-width: 400px;
  margin: 0 0 4px;
  color: var(--body);
  font-size: 17px;
}

.cl-head .more {
  flex: none;
  margin-bottom: 6px;
}

/* ---------- Featured wall ---------- */

.cl-featured {
  margin-top: 140px;
}

.cl-wall-stage {
  padding: clamp(14px, 3.2vw, 48px);
}

.cl-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-wall li {
  display: grid;
  place-items: center;
  height: 136px;
  padding: 0 24px;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.78);
  box-shadow:
    0 1px 2px rgb(17 17 17 / 0.04),
    0 18px 40px -28px rgb(0 40 90 / 0.35);
}

.cl-wall img {
  opacity: 0.9;
  transform: scale(1.18);
}

/* ---------- By industry ---------- */

.cl-industries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cl-ind {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
  border-radius: var(--radius);
  background: var(--sheet);
}

.cl-ind.is-wide {
  grid-column: span 2;
}

.cl-ind-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.cl-ind h3 {
  font-size: 20px;
  letter-spacing: -0.012em;
}

.cl-ind-head span {
  flex: none;
  color: var(--muted);
  font-size: 14px;
}

.cl-logos {
  display: grid;
  flex: 1;
  grid-auto-rows: minmax(84px, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-ind.is-wide .cl-logos {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cl-logos li {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
}

.cl-ind.is-pairs .cl-logos {
  grid-template-columns: 1fr 1fr;
}

.cl-logos li.cl-span {
  grid-column: span 2;
}

.cl-logos img {
  opacity: 0.86;
}

.cl-case-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.cl-case-link span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--brand);
  font-size: 13px;
  white-space: nowrap;
}

.cl-case-link svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.8;
}

.cl-case-link:hover span {
  background: var(--brand);
  color: #fff;
}

.cl-more {
  justify-content: space-between;
  min-height: 300px;
  background:
    radial-gradient(90% 80% at 100% 0%, rgb(61 138 224 / 0.9), transparent 60%),
    radial-gradient(80% 90% at 0% 100%, rgb(6 42 82 / 0.9), transparent 65%), var(--brand);
  color: #fff;
}

.cl-more b {
  margin-top: 18px;
  font-size: clamp(52px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.cl-more > span:not(.proof-kicker) {
  max-width: 260px;
  margin-top: 10px;
  color: rgb(255 255 255 / 0.85);
  font-size: 16px;
  line-height: 1.45;
}

.cl-more em {
  margin-top: 28px;
  font-size: 15px;
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- HRM8 case study ---------- */

.cl-case-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 72px;
  align-items: end;
}

.cl-case-logo {
  width: 145px;
  height: auto;
  margin: 6px 0 26px;
}

.cl-case-head .lede {
  max-width: 580px;
}

.cl-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid var(--line);
}

.cl-facts > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cl-facts dt {
  color: var(--muted);
  font-size: 13px;
}

.cl-facts dd {
  margin: 4px 0 0;
  font-size: 16px;
}

.cl-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
}

.cl-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--wash);
  animation: cl-pulse 2.4s ease-in-out infinite;
}

@keyframes cl-pulse {
  50% {
    box-shadow: 0 0 0 7px rgb(234 242 253 / 0.4);
  }
}

.cl-visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.cl-visit svg {
  width: 14px;
  height: 14px;
}

.cl-visit:hover {
  color: var(--brand);
}

.cl-stage {
  margin: 48px 0 0;
}

.cl-stage .film-note {
  margin-top: 18px;
}

.cl-sub {
  margin: 72px 0 24px;
  font-size: 26px;
  letter-spacing: -0.015em;
}

.cl-built {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cl-built article {
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cl-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--wash);
  color: var(--brand);
}

.cl-icon svg {
  width: 22px;
  height: 22px;
}

.cl-built h4,
.cl-integrations h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 480;
  letter-spacing: -0.01em;
}

.cl-built p {
  margin-top: 8px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.5;
}

.cl-case-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.cl-behind {
  background:
    radial-gradient(90% 60% at 80% 0%, rgb(61 138 224 / 0.55), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgb(0 92 177 / 0.5), transparent 65%), #070b12;
  color: #fff;
}

.cl-behind dl {
  display: grid;
  gap: 22px;
  margin: 26px 0 0;
}

.cl-behind dt {
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.cl-behind dd {
  margin: 6px 0 0;
  color: #b4c0cf;
  font-size: 15px;
}

.cl-integrations {
  padding: 28px 28px 20px;
  border-radius: 24px;
  background: var(--sheet);
}

.cl-integrations ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.cl-integrations li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #dfe2e6;
}

.cl-integrations li:last-child {
  border-bottom: 0;
}

.cl-integrations .stack {
  grid-row: span 2;
  margin: 0;
}

.cl-integrations .stack img {
  width: 30px;
  height: 30px;
}

.cl-integrations b {
  font-size: 15px;
  font-weight: 500;
}

.cl-integrations li > span:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.cl-running {
  background:
    radial-gradient(80% 90% at 90% 0%, rgb(255 180 120 / 0.55), transparent 60%),
    radial-gradient(90% 90% at 0% 100%, rgb(61 138 224 / 0.45), transparent 65%), #c9d7ea;
  color: #0e1a2b;
}

.cl-running .ticks {
  margin: 22px 0 28px;
}

.cl-running .ticks li {
  color: #1b2a3f;
  font-size: 15px;
}

.cl-chips-label {
  margin-top: auto;
  font-size: 14px;
  opacity: 0.75;
}

.cl-running .brand-chips {
  margin-top: 10px;
}

.cl-running .brand-chips li {
  border-color: rgb(255 255 255 / 0.6);
  background: rgb(255 255 255 / 0.72);
}

.cl-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.cl-shots figure {
  margin: 0;
  padding: clamp(14px, 2.6vw, 36px) clamp(14px, 2.6vw, 36px) 18px;
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 85% 0%, rgb(61 138 224 / 0.3), transparent 60%),
    linear-gradient(180deg, #d6e6fb 0%, #e9f1fd 55%, #f4f8fd 100%);
}

.cl-shots figcaption {
  margin-top: 14px;
  color: var(--body);
  font-size: 14px;
  text-align: center;
}

/* ---------- Reviews ---------- */

.cl-reviews {
  margin-top: 0;
}

.cl-quote-mark {
  font-size: 96px;
  line-height: 0.7;
  opacity: 0.5;
}

.cl-reviews .proof-quote blockquote {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ---------- Certifications ---------- */

.cl-certs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cl-certs article {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #fff 55%, #f4f8fd 100%);
}

.cl-seal {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--brand-hi), var(--brand) 70%);
  box-shadow:
    0 0 0 5px var(--wash),
    0 10px 24px -10px rgb(0 92 177 / 0.6);
  color: #fff;
}

.cl-seal svg {
  width: 24px;
  height: 24px;
}

.cl-certs b {
  font-size: 26px;
  font-weight: 460;
  letter-spacing: -0.02em;
}

.cl-certs article > span:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1100px) {
  .cl-case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cl-integrations {
    grid-row: span 2;
  }
}

@media (max-width: 960px) {
  .cl-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cl-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cl-industries {
    grid-template-columns: 1fr 1fr;
  }

  .cl-ind,
  .cl-ind.is-wide {
    grid-column: 1 / -1;
  }

  .cl-ind:not(.is-wide) .cl-logos {
    grid-template-columns: none;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
  }

  .cl-more {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .cl-case-head {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cl-built {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .cl-hero {
    padding-top: 64px;
  }

  .cl-hero h1 br,
  .cl-head h2 br {
    display: none;
  }

  .cl-hero .actions .btn {
    width: 100%;
  }

  .stats.cl-stats {
    width: auto;
    margin-top: 56px;
  }

  .cl-featured {
    margin-top: 110px;
  }

  .cl-wall {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cl-wall li {
    height: 92px;
    padding: 0 14px;
    border-radius: 14px;
  }

  .cl-wall img {
    transform: none;
  }

  .cl-ind {
    padding: 22px 18px 20px;
  }

  .cl-ind.is-wide .cl-logos,
  .cl-ind:not(.is-wide) .cl-logos {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
    grid-auto-rows: 76px;
    gap: 8px;
  }

  .cl-ind:not(.is-wide) .cl-logos li:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .cl-logos li {
    padding: 10px 12px;
  }

  .cl-case-link {
    gap: 12px;
  }

  .cl-built,
  .cl-case-grid,
  .cl-shots {
    grid-template-columns: 1fr;
  }

  .cl-built {
    gap: 10px;
  }

  .cl-built article {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px 20px 22px;
  }

  .cl-built .cl-icon {
    grid-row: span 2;
    margin: 0;
  }

  .cl-built h4 {
    font-size: 17px;
  }

  .cl-built p {
    margin-top: 4px;
  }

  .cl-certs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cl-certs article {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 20px;
    align-items: center;
    padding: 22px 20px;
  }

  .cl-seal {
    grid-row: span 2;
    margin: 0;
  }

  .cl-certs b {
    font-size: 22px;
  }

  .cl-certs article > span:last-child {
    margin-top: 2px;
  }

  .cl-integrations {
    grid-row: auto;
  }

  .cl-sub {
    margin-top: 56px;
  }

  .cl-cta h2 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-live i {
    animation: none;
  }
}
