/* Clients & partners. Loaded after main.css, projects.css, services.css, about.css
   (split heads) and home.css (carousel, arrows). Every class here is prefixed cl-. */

/* ---------- Spotlight: the client with the most projects ---------- */
.cl-spot { padding-block: var(--section-y); background: var(--black); color: #fff; overflow: hidden; }
.cl-spot__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 3vw, 40px); }
.cl-spot__logo { display: flex; align-items: center; justify-content: center; width: clamp(120px, 14vw, 180px); aspect-ratio: 3 / 2; padding: 18px; border-radius: var(--px-radius); background: #fff; }
.cl-spot__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.cl-spot .sv-label { margin-bottom: 10px; }
.cl-spot .sv-intro__name { margin-top: 0; color: #fff; }
.cl-spot__places { margin: 12px 0 0; font-size: .9375rem; font-weight: 600; color: rgba(255,255,255,.75); }
.cl-spot__count { margin: 0; display: flex; flex-direction: column; align-items: flex-end; font-size: clamp(3.5rem, 2rem + 5vw, 6.5rem); font-weight: 800; line-height: .9; letter-spacing: -.03em; }
.cl-spot__count small { margin-top: 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.cl-spot__nav { display: flex; justify-content: flex-end; gap: 10px; margin: clamp(28px, 4vw, 44px) auto 18px; }
.cl-spot .hm-arrow { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.cl-spot .hm-arrow:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--black); }

/* ---------- Client groups and partners ---------- */
.cl-groups { padding-block: var(--section-y); background: #fff; }
.cl-groups--partners { background: var(--px-soft); border-top: 1px solid var(--rule); }
.cl-groups .ab-head { margin-bottom: clamp(32px, 4vw, 56px); }
.cl-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); padding-block: clamp(28px, 3vw, 40px); border-top: 1px solid var(--rule); }
.cl-group__head h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.25; color: var(--black); }
.cl-group__head p { margin: 6px 0 0; font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); font-weight: 800; line-height: 1; color: var(--oxblood); }

.cl-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.cl-groups--partners .cl-tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cl-tile {
  position: relative; display: flex; flex-direction: column; padding: 14px 14px 16px;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--px-radius);
  transition: border-color .3s, box-shadow .4s var(--px-ease), transform .4s var(--px-ease);
}
.cl-tile__logo { display: flex; align-items: center; justify-content: center; height: 88px; padding: 8px 10px; }
.cl-tile__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.cl-tile__logo img.is-boxed { padding: 6px; background: var(--charcoal); border-radius: 2px; }
.cl-tile__name { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: .8125rem; font-weight: 700; line-height: 1.35; color: var(--charcoal); }
.cl-tile__work { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: .75rem; }
.cl-tile__work a { position: relative; display: inline-block; padding-left: 14px; color: var(--oxblood); font-weight: 600; text-decoration: none; line-height: 1.35; }
.cl-tile__work a::before { content: "→"; position: absolute; left: 0; }
.cl-tile__work a:hover { text-decoration: underline; }
.cl-tile__more { padding-left: 14px; color: var(--steel); font-weight: 600; }
.cl-tile.has-work { border-color: color-mix(in srgb, var(--oxblood) 35%, transparent); }
.cl-tile.has-work .cl-tile__logo img { filter: none; opacity: 1; }
@media (hover: hover) {
  .cl-tile:hover { border-color: transparent; box-shadow: 0 24px 40px -28px rgba(0,0,0,.45); transform: translateY(-3px); }
  .cl-tile:hover .cl-tile__logo img { filter: none; opacity: 1; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .cl-group { grid-template-columns: 1fr; gap: 16px; }
  .cl-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .cl-group__head p { margin: 0; font-size: 1.75rem; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .cl-spot__head { grid-template-columns: auto 1fr; }
  .cl-spot__count { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 12px; font-size: 3.5rem; }
  .cl-spot__count small { margin: 0; }
  .cl-spot__nav { display: none; }
  .cl-tiles, .cl-groups--partners .cl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cl-tile__logo { height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .cl-tile, .cl-tile__logo img { transition: none; }
}
