/* Home: "Brands That Trust Us": industry filter + slider (same tiles as before) + details card */
.cl-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 26px; }
.cl-chip { border: 1px solid rgba(255,255,255,.28); background: transparent; color: #e9e9e9; border-radius: 999px; padding: 8px 16px;
    font-size: 12px; letter-spacing: 1px; text-transform: uppercase; transition: background .2s, border-color .2s, color .2s; }
.cl-chip b { font-weight: 400; opacity: .55; margin-left: 4px; }
.cl-chip:hover, .cl-chip:focus-visible { border-color: #fff; color: #fff; outline: none; }
.cl-chip.is-on { background: #e74c3c; border-color: #e74c3c; color: #fff; }
.cl-chip.is-on b { opacity: .85; }
@media (max-width: 767px) {
    .cl-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -15px 22px; padding: 0 15px 6px; scrollbar-width: none; }
    .cl-filters::-webkit-scrollbar { display: none; }
    .cl-chip { flex: 0 0 auto; }
}

/* the tile is a button now (opens the details) */
#clients #client-slider .logo-light { position: relative; cursor: pointer; font: inherit; color: inherit; }
#clients #client-slider .logo-light:focus-visible { outline: 2px solid #e74c3c; outline-offset: 2px; }
#clients #client-slider .logo-light.is-active { border-color: #e74c3c; background: rgba(255,255,255,.08); }
#client-slider { transition: opacity .25s ease; }
#client-slider.is-swapping { opacity: 0; }

.cl-made { position: absolute; top: 8px; right: 8px; font-size: 9px; letter-spacing: .6px; text-transform: uppercase; color: #fff;
    background: #e74c3c; border-radius: 999px; padding: 3px 8px; line-height: 1.4; }
@media (max-width: 991px) {
    .cl-made { font-size: 0; padding: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
    .cl-made:before { content: "\2605"; font-size: 11px; color: #fff; }
}

/* details popup (opens when a logo is clicked) */
.cl-pop { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(10,10,10,.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: clFade .2s ease both; }
.cl-pop[hidden] { display: none; }
.cl-pop-box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: #1c1c1c;
    border: 1px solid rgba(255,255,255,.12); border-top: 3px solid #e74c3c; border-radius: 10px; color: #ddd; text-align: left;
    box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: clUp .25s ease both; }
.cl-pop-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08);
    color: #fff; font-size: 24px; line-height: 36px; padding: 0; transition: background .2s; }
.cl-pop-x:hover, .cl-pop-x:focus-visible { background: #e74c3c; outline: none; }
.cl-pop-logo { display: flex; align-items: center; justify-content: center; height: 150px; padding: 26px 60px 10px;
    background: radial-gradient(circle at 50% 60%, rgba(255,255,255,.07), transparent 70%); }
.cl-pop-logo img { max-width: 100%; max-height: 110px; object-fit: contain; }
.cl-pop-body { padding: 10px 28px 28px; }
.cl-pop-body h3 { color: #fff; font-size: 22px; margin: 0 0 6px; letter-spacing: .5px; text-transform: none; }
.cl-pop-body .cl-cat { color: #e74c3c; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 14px; }
.cl-pop-body .cl-cat span { color: #fff; background: #e74c3c; border-radius: 999px; padding: 2px 9px; margin-left: 8px; letter-spacing: .5px; font-size: 10px; }
.cl-pop-body p.cl-text { color: #d6d6d6; font-size: 15px; line-height: 1.65; margin: 0 0 16px; }
.cl-pop-body h4 { color: #9a9a9a; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 8px; }
.cl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cl-tags li { border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px; padding: 5px 13px; font-size: 13px; }
.cl-pop-cta { display: inline-block; margin-top: 20px; color: #fff; font-weight: 700; border-bottom: 2px solid #e74c3c; }
.cl-pop-cta:hover, .cl-pop-cta:focus { color: #e74c3c; text-decoration: none; }
body.cl-pop-open { overflow: hidden; }
@keyframes clFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes clUp { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cl-pop, .cl-pop-box, #client-slider { animation: none; transition: none; } }

/* ---------- Logo rows (Nov 2026): each row moves the opposite way to the one above ----------
   Dark rounded cards; logos shown as light grey line art (their tiles are drawn for light backgrounds,
   so they are inverted to light); full colours come back on hover and in the details popup. */
.cl-marquee { display: flex; flex-direction: column; gap: 16px; margin: 0 -15px; padding: 4px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    transition: opacity .25s ease; }
.cl-marquee.is-swapping { opacity: 0; }
.cl-row { overflow: hidden; }
.cl-track { display: flex; gap: 16px; width: max-content; }
.cl-row.is-moving .cl-track { animation: clSlide 40s linear infinite; will-change: transform; }
.cl-row.is-reverse.is-moving .cl-track { animation-direction: reverse; }
@keyframes clSlide { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
/* stop to read or click: hover, keyboard focus, or the popup open */
.cl-marquee:hover .cl-track, .cl-marquee:has(:focus-visible) .cl-track, .cl-marquee.is-paused .cl-track { animation-play-state: paused; }   /* 23 Nov 2026: keyboard focus only (a tapped logo kept it paused) */
/* few logos (one industry): a still, centred row */
.cl-marquee.is-few { -webkit-mask-image: none; mask-image: none; }
.cl-marquee.is-few .cl-track { width: auto; flex-wrap: wrap; justify-content: center; }

.cl-item { flex: 0 0 auto; }
#clients .cl-logo { position: relative; display: flex; align-items: center; justify-content: center; width: 236px; height: 112px; padding: 18px 22px;
    background: #17191e; border: 1px solid rgba(255, 255, 255, .06); border-radius: 22px; cursor: pointer; font: inherit; color: inherit;
    transition: background-color .3s ease, border-color .3s ease, transform .3s ease; }
#clients .cl-logo img { height: calc(var(--lh, 60px) * 1.3); width: auto; max-width: 84%; max-height: 80px; object-fit: contain;
    filter: grayscale(1) invert(1) brightness(.95); opacity: .82; transition: filter .3s ease, opacity .3s ease; }
#clients .cl-logo:hover, #clients .cl-logo:focus-visible { background: #f2f1ed; border-color: #f2f1ed; transform: translateY(-2px); outline: none; }
#clients .cl-logo:hover img, #clients .cl-logo:focus-visible img { filter: none; opacity: 1; }
#clients .cl-logo:focus-visible { box-shadow: 0 0 0 2px #e74c3c; }
/* "Logo by ALFARiD": a small red star on the card (the full words stay in its tooltip and in the popup) */
#clients .cl-logo .cl-made { top: 10px; right: 10px; width: 20px; height: 20px; padding: 0; font-size: 0; display: flex; align-items: center; justify-content: center; }
#clients .cl-logo .cl-made:before { content: "\2605"; font-size: 11px; color: #fff; }
@media (max-width: 767px) {
    .cl-marquee, .cl-track { gap: 10px; }
    @keyframes clSlide { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 5px)); } }
    #clients .cl-logo { width: 150px; height: 78px; padding: 12px 14px; border-radius: 16px; }
    #clients .cl-logo img { max-height: 50px; height: calc(var(--lh, 60px) * .78); }
}
@media (prefers-reduced-motion: reduce) {
    .cl-marquee { -webkit-mask-image: none; mask-image: none; }
    .cl-track { width: auto; flex-wrap: wrap; justify-content: center; }
}

/* 19 Nov 2026: the star is drawn as a shape, so it sits exactly in the middle of the red circle in every font */
#clients .cl-logo .cl-made:before { content: ""; width: 11px; height: 11px; font-size: 0;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E"); }
/* 19 Nov 2026 (2): the hidden "Logo by ALFARiD" text still took room through its letter-spacing and pushed the star off centre.
   The star is now pinned to the exact middle of the circle, the same way as the Why ALFARiD stars. */
#clients .cl-logo .cl-made { letter-spacing: 0 !important; overflow: hidden; color: transparent; }
#clients .cl-logo .cl-made:before { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
/* 23 Nov 2026 (owner): client popup: approved work (the client's Selected Work project), Designs and Videos */
.cl-work { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff !important; text-decoration: none !important; transition: background .25s, border-color .25s; }
.cl-work b { font-weight: 700; }
.cl-work span { color: rgba(255,255,255,.6); font-size: 12.5px; }
.cl-work i { margin-left: auto; font-style: normal; color: #e74c3c; }
.cl-work:hover, .cl-work:focus-visible { background: rgba(231,76,60,.14); border-color: rgba(231,76,60,.45); }
.cl-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.cl-design { display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #2a2a2a; }
.cl-design img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.cl-design:hover img { transform: scale(1.06); }
.cl-video { position: relative; display: block; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #2a2a2a; cursor: pointer; }
.cl-video img, .cl-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-video > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #e74c3c; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; padding-left: 2px; box-shadow: 0 0 0 6px rgba(231,76,60,.2); }
.cl-video.is-playing > span, .cl-video.is-playing > img { display: none; }
.cl-more { display: inline-block; margin: 4px 0 10px; color: #e74c3c !important; font-weight: 700; font-size: 13.5px; text-decoration: none !important; }
@media (max-width: 480px) { .cl-media { gap: 6px; } }
.cl-pop-body h4 { margin-top: 18px; }
/* 23 Nov 2026 (owner): client videos use the ALFARiD reel theme of the project galleries (Padel Zone):
   a 2px window onto a slowly turning red light, a dark-red shade at the bottom, the ALFARiD mark and the big red play button */
.cl-video { padding: 0; border-radius: 14px; isolation: isolate; background: #1c1c1c; box-shadow: 0 14px 30px -20px rgba(231,76,60,.65); }
.cl-video::before { content: ""; position: absolute; inset: -60%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 62%, #e74c3c 76%, #ff8a7a 82%, transparent 92%); animation: pm-spin 4.5s linear infinite; }
.cl-video:nth-child(2n)::before { animation-delay: -2.2s; }
.cl-video img, .cl-video video { inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); border-radius: 12px; background: #111; }
.cl-video .cl-shade { position: absolute; inset: 2px; border-radius: 12px; background: linear-gradient(180deg, rgba(28,28,28,.15) 0%, rgba(28,28,28,0) 35%, rgba(60,12,10,.55) 78%, rgba(28,10,10,.85) 100%); pointer-events: none; transition: opacity .35s; }
.cl-video .cl-mark { position: absolute; left: 12px; bottom: 10px; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .2em; color: #fff; opacity: .9; pointer-events: none; }
.cl-video .cl-mark::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #e74c3c; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(231,76,60,.25); }
.cl-video > span { width: 48px; height: 48px; padding: 0; font-size: 0; background: rgba(231,76,60,.92); box-shadow: 0 0 0 7px rgba(231,76,60,.22), 0 10px 24px -8px rgba(0,0,0,.6); transition: transform .25s; }
.cl-video > span::after { content: ""; margin-left: 4px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.cl-video:hover > span, .cl-video:focus-visible > span { transform: translate(-50%, -50%) scale(1.08); }
.cl-video.is-playing .cl-shade, .cl-video.is-playing .cl-mark { display: none; }
@keyframes pm-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .cl-video::before { animation: none; background: #e74c3c; } }
/* 23 Nov 2026 (owner): the logo strip ends at the same edges as every other section (it ran 15px past them) */
.cl-marquee { margin-left: 0; margin-right: 0; }
