/* Datum 2026: Our Clients. Builds on home.css (chips, bands) and about.css (figures). */

/* Hero: heading beside a living wall of logos. */
.cl-hero { position: relative; overflow: hidden; background: radial-gradient(70% 90% at 100% 0%, rgba(238, 75, 157, .22) 0%, transparent 60%), radial-gradient(80% 100% at 0% 100%, rgba(0, 98, 123, .4) 0%, transparent 60%), var(--base); }
.cl-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: calc(var(--header-h) + clamp(56px, 8vw, 110px)); padding-bottom: clamp(56px, 8vw, 110px); }
@media (max-width: 960px) { .cl-hero__in { grid-template-columns: minmax(0, 1fr); } }
.cl-hero__title { font-size: clamp(48px, 7vw, 104px); line-height: .95; margin: 0; text-wrap: balance; }
.cl-hero__lead { max-width: 40ch; margin: 24px 0 0; }
.cl-hero .btn-row { margin-top: 32px; gap: 14px; }
.cl-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .cl-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cl-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } .cl-wall__tile:nth-child(n+19) { display: none; } }
@media (max-width: 1199px) { .cl-wall__tile:nth-child(n+13) { display: none; } }
.cl-wall__tile { aspect-ratio: 1; display: grid; place-items: center; padding: 14%; border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cl-wall__tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.cl-wall__tile img.is-out { opacity: 0; transform: scale(.85); }
.cl-wall__tile:nth-child(3n+1) { background: rgba(87, 36, 103, .28); }
.cl-wall__tile:nth-child(4n+2) { background: rgba(0, 98, 123, .22); }
@media (prefers-reduced-motion: no-preference) {
	.cl-wall__tile { animation: cl-in .7s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
}
@keyframes cl-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

.cl-figures .a-figures__n { color: var(--pink); }

/* All logos, filterable. */
.cl-chips { margin-bottom: 22px; }
.cl-status { min-height: 1.4em; color: var(--soft); font-size: 14px; margin: 0 0 14px; }
.cl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .cl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cl-tile { transition: opacity .3s, transform .3s; }
.cl-tile.is-out { opacity: 0; transform: scale(.94); }
.cl-tile.is-gone { display: none; }
.cl-tile__in { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 16% 14% 22%; border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--white); text-decoration: none; overflow: hidden; transition: border-color .3s, background-color .3s; }
.cl-tile__in img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .4s var(--ease); }
.cl-tile__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px 10px; font: 600 12px/1.25 var(--sans); text-align: center; color: var(--soft); background: linear-gradient(0deg, rgba(2, 0, 62, .9), rgba(2, 0, 62, 0)); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.cl-tile__name em { display: block; font-style: normal; color: var(--pink); margin-top: 3px; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; }
.cl-tile__name em .icon { width: 12px; height: 12px; vertical-align: -2px; }
.cl-tile__in:hover, .cl-tile__in:focus-visible { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.cl-tile.has-link .cl-tile__in:hover { border-color: var(--pink); }
.cl-tile__in:hover img, .cl-tile__in:focus-visible img { transform: scale(1.05) translateY(-6px); }
.cl-tile__in:hover .cl-tile__name, .cl-tile__in:focus-visible .cl-tile__name { opacity: 1; transform: none; }
@media (hover: none) { .cl-tile__name { opacity: 1; transform: none; } .cl-tile__in img { transform: translateY(-6px); } }

/* Testimonials: cards in columns. */
.cl-quotes { background: linear-gradient(160deg, var(--base) 30%, #0a1660 100%); }
.cl-qgrid { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 18px; }
.cl-q { break-inside: avoid; margin: 0 0 18px; }
.cl-q.is-hidden { display: none; }
.cl-q figure { margin: 0; padding: 26px 26px 24px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-top: 3px solid var(--pink); }
.cl-q:nth-child(3n+2) figure { border-top-color: var(--blue); }
.cl-q:nth-child(3n) figure { border-top-color: var(--yellow); }
.cl-q__logo { display: block; height: 38px; width: auto; max-width: 170px; object-fit: contain; object-position: left center; margin-bottom: 18px; }
.cl-q blockquote { margin: 0; }
.cl-q blockquote p { font: 400 18px/1.55 var(--serif); margin: 0; }
.cl-q figcaption { margin-top: 16px; font-size: 14px; color: var(--soft); }
.cl-q figcaption b { color: var(--white); }
.cl-more { margin-top: 12px; text-align: center; }

/* The full list. */
.cl-cols { columns: 4 220px; column-gap: 40px; }
.cl-col { break-inside: avoid; margin-bottom: 32px; }
.cl-col h3 { font: 700 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cl-col h3 span { color: var(--soft); font-weight: 500; }
.cl-col ul { list-style: none; margin: 0; padding: 0; }
.cl-col li { padding: 4px 0; font-size: 15.5px; color: var(--soft); }
.cl-col a { color: var(--white); text-decoration-color: var(--pink); text-underline-offset: 3px; }

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

/* Fixes (Scott, 6 November 2026): every wall tile the same colour; tall logos sized to the tile, never cropped. */
.cl-wall__tile, .cl-wall__tile:nth-child(3n+1), .cl-wall__tile:nth-child(4n+2) { background: rgba(255, 255, 255, .05); }
.cl-wall__tile, .cl-tile__in { container-type: size; }
.cl-wall__tile img { max-width: 100cqw; max-height: 100cqh; }
.cl-tile__in img { max-width: 100cqw; max-height: 100cqh; }
@supports not (container-type: size) {
	.cl-wall__tile img { max-height: 72px; }
	.cl-tile__in img { max-height: 90px; }
}
.cl-list a { color: inherit; text-decoration: none; }

/* Industry cards (Scott, 14 November 2026; inc/local-pages.php datum_sector_cards()). */
.sc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .sc-grid { grid-template-columns: minmax(0, 1fr); } }
.sc-card a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); color: var(--white); text-decoration: none; transition: border-color .3s, transform .3s var(--ease), background-color .3s; }
.sc-card a:hover, .sc-card a:focus-visible { border-color: var(--pink); background: rgba(238, 75, 157, .07); transform: translateY(-3px); }
.sc-card a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sc-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(255, 255, 255, .06); }
.sc-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sc-card a:hover .sc-card__img img { transform: scale(1.04); }
.sc-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 18px 20px; }
.sc-card__title { font: 900 21px/1.15 var(--display); }
.sc-card__text { font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.sc-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.sc-card__more .icon { width: 16px; height: 16px; color: var(--pink); }
@media (prefers-reduced-motion: reduce) { .sc-card a, .sc-card__img img { transition: none; } .sc-card a:hover { transform: none; } .sc-card a:hover .sc-card__img img { transform: none; } }

/* Link to the Reviews page under the testimonials (Scott, 22 November 2026). */
.cl-rv { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 32px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); }
.cl-rv__score { display: flex; align-items: center; gap: 16px; margin: 0; color: var(--white); font: 600 14px/1.4 var(--sans); }
.cl-rv__score b { font: 400 48px/1 var(--display); }
.cl-rv__score > span { display: flex; flex-direction: column; gap: 2px; }
.cl-rv__stars { color: var(--yellow); font-size: 18px; letter-spacing: 3px; }
