/* =========================================================================
   Clients page (clients.html)
   Built on the shared service-page system (#as, .as-sec, .as-wrap, .kick,
   .as-h2, .as-lead) so it reads like awards.html and the other inner pages.
   Page-only pieces use the .cl- prefix.
   ========================================================================= */

/* ---------- shared header row: heading left, text or search right ---------- */
#as .cl-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 48px;
    margin-bottom: clamp(28px, 3.4vw, 44px);
}

#as .cl-head .as-lead {
    max-width: 46ch;
    margin: 0;
}

#as .cl-tg {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--as-blue);
}

/* =========================== 1. intro =========================== */
#cl-intro .cl-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
}

#cl-intro .cl-hero-t .as-h2 {
    margin: 14px 0 0;
    max-width: 15ch;
}

#cl-intro .cl-go {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 14px 24px;
    border-radius: 99px;
    background: var(--as-blue);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}

#cl-intro .cl-go svg {
    width: 18px;
    height: 18px;
    transition: transform .35s var(--ease);
}

#cl-intro .cl-go:hover {
    background: #1f3b69;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -18px rgba(43, 80, 136, .9);
}

#cl-intro .cl-go:hover svg {
    transform: translateY(3px);
}

#cl-intro .cl-go:focus-visible {
    outline: 2px solid var(--as-blue);
    outline-offset: 3px;
}

/* navy stage with an elliptical orbit of logo cards (driven by clients.js) */
#cl-intro .cl-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: clamp(380px, 38vw, 540px);
    border-radius: clamp(24px, 3vw, 40px);
    background:
        radial-gradient(60% 55% at 50% 50%, rgba(120, 160, 230, .35), transparent 70%),
        #2b5088;
}

#cl-intro .cl-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(229, 237, 251, .22) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(80% 90% at 100% 0%, #000, transparent 72%);
    mask-image: radial-gradient(80% 90% at 100% 0%, #000, transparent 72%);
}

#as .cl-ring {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    border: 1px solid rgba(229, 237, 251, .22);
    pointer-events: none;
}

#cl-intro .cl-ring.r1 {
    left: 50%;
    top: 50%;
    width: 84%;
    height: 56%;
    transform: translate(-50%, -50%);
    border-style: dashed;
}

#cl-intro .cl-ring.r2 {
    left: -90px;
    bottom: -120px;
    width: 340px;
    height: 340px;
    box-shadow: 0 0 0 44px rgba(229, 237, 251, .04), 0 0 0 88px rgba(229, 237, 251, .03);
}

#cl-intro .cl-core {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 50;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    pointer-events: none;
}

#cl-intro .cl-core b {
    display: block;
    font-size: clamp(48px, 5.4vw, 80px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.04em;
}

#cl-intro .cl-core span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}

#cl-intro .cl-orbit {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

#cl-intro .cl-oc {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(92px, 9.5vw, 136px);
    aspect-ratio: 3 / 2;
    translate: -50% -50%;
    display: grid;
    place-items: center;
    padding: 8px 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .7);
    will-change: transform;
}

#cl-intro .cl-oc img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* without JS the cards cannot be placed on the ring, so hide them */
html:not(.js) #cl-intro .cl-orbit {
    display: none;
}

/* numbers (same look as the awards intro) */
#cl-intro .cl-num {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: clamp(32px, 4.5vw, 64px) 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--as-line);
}

#cl-intro .cl-num li {
    padding: clamp(20px, 2.6vw, 34px) clamp(8px, 2vw, 28px) 0 0;
}

#cl-intro .cl-num li+li {
    padding-left: clamp(8px, 2vw, 28px);
    border-left: 1px solid var(--as-line);
}

#cl-intro .cl-num b {
    display: block;
    font-size: clamp(38px, 4.6vw, 68px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--as-blue);
    font-variant-numeric: tabular-nums;
}

#cl-intro .cl-num span {
    display: block;
    margin-top: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(0, 0, 0, .72);
}

/* =========================== 2. spotlight =========================== */
#cl-spot .cl-spg {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

#cl-spot .cl-sp figure {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--as-line);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}

#cl-spot .cl-sp figure:hover {
    transform: translateY(-6px);
    border-color: rgba(43, 80, 136, .34);
    box-shadow: 0 36px 60px -38px rgba(43, 80, 136, .75);
}

/* matted slot, same treatment as the award certificates */
#cl-spot .cl-sp-m {
    margin: 10px 10px 0;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f6f8fc, #eaeff7);
}

#cl-spot .cl-sp-m img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    padding: 10% 12%;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 28px -20px rgba(14, 30, 58, .55);
    transition: transform .5s var(--ease);
}

#cl-spot .cl-sp figure:hover .cl-sp-m img {
    transform: scale(1.04);
}

#cl-spot figcaption {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px 18px;
}

#cl-spot .cl-tg {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(43, 80, 136, .09);
}

#cl-spot .cl-tx {
    font-size: 16px;
    font-weight: 600;
    color: var(--as-ink);
}

/* =========================== 3. directory =========================== */
#cl-wall .cl-q {
    position: relative;
    display: flex;
    align-items: center;
    width: min(340px, 100%);
}

#cl-wall .cl-q svg {
    position: absolute;
    left: 18px;
    width: 18px;
    height: 18px;
    color: var(--as-blue);
    pointer-events: none;
}

#cl-wall .cl-q input {
    width: 100%;
    height: 50px;
    padding: 0 20px 0 48px;
    border-radius: 99px;
    border: 1px solid var(--as-line);
    background: #fff;
    font: 500 15px var(--fd);
    color: var(--as-ink);
    transition: border-color .3s, box-shadow .3s;
}

#cl-wall .cl-q input:focus {
    outline: none;
    border-color: var(--as-blue);
    box-shadow: 0 0 0 4px rgba(43, 80, 136, .12);
}

/* one-line chip rail with arrow buttons and faded edges */
#cl-wall .cl-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 -12px;
    padding: 12px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: box-shadow .3s;
}

#cl-wall .cl-bar.stuck {
    box-shadow: 0 16px 24px -22px rgba(14, 30, 58, .6);
}

#cl-wall .cl-chips {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

#cl-wall .cl-chips::-webkit-scrollbar {
    display: none;
}

#cl-wall .cl-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 99px;
    border: 1px solid var(--as-line);
    background: #fff;
    color: var(--as-ink);
    font: 600 14.5px/1 var(--fd);
    white-space: nowrap;
    cursor: pointer;
    transition: background .3s, color .3s, border-color .3s;
}

#cl-wall .cl-chip i {
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 22px;
    padding: 0 7px;
    border-radius: 99px;
    background: var(--as-cloud);
    color: var(--as-blue);
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    transition: background .3s, color .3s;
}

#cl-wall .cl-chip:hover {
    border-color: var(--as-blue);
}

#cl-wall .cl-chip.on {
    background: var(--as-blue);
    border-color: var(--as-blue);
    color: #fff;
}

#cl-wall .cl-chip.on i {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

#cl-wall .cl-chip:focus-visible,
#cl-wall .cl-arr:focus-visible {
    outline: 2px solid var(--as-blue);
    outline-offset: 2px;
}

#cl-wall .cl-arr {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--as-line);
    background: #fff;
    color: var(--as-blue);
    cursor: pointer;
    transition: background .3s, color .3s, opacity .3s;
}

#cl-wall .cl-arr svg {
    width: 18px;
    height: 18px;
}

#cl-wall .cl-arr:hover {
    background: var(--as-blue);
    color: #fff;
}

#cl-wall .cl-arr[disabled] {
    opacity: .35;
    pointer-events: none;
}

#cl-wall .cl-status {
    margin: 14px 0 0;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(0, 0, 0, .6);
}

/* industry groups */
#cl-wall .cl-g {
    padding: clamp(28px, 3.4vw, 44px) 0 0;
}

#cl-wall .cl-g[hidden],
#cl-wall .cl-t[hidden] {
    display: none;
}

#cl-wall .cl-g-h {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--as-line);
}

#cl-wall .cl-g-n {
    flex: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--as-blue);
}

#cl-wall .cl-g-h h3 {
    flex: 1;
    margin: 0;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.02em;
}

#cl-wall .cl-g-c {
    flex: none;
    padding: 5px 12px;
    border-radius: 99px;
    background: rgba(43, 80, 136, .09);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--as-blue);
}

#cl-wall .cl-gr {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 18px);
    margin: 0;
    padding: 0;
    list-style: none;
}

#cl-wall .cl-t {
    aspect-ratio: 3 / 2;
    display: grid;
    place-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--as-line);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}

#cl-wall .cl-t img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .45s var(--ease);
}

#cl-wall .cl-t:hover {
    transform: translateY(-5px);
    border-color: rgba(43, 80, 136, .34);
    box-shadow: 0 28px 44px -30px rgba(43, 80, 136, .75);
}

#cl-wall .cl-t:hover img {
    transform: scale(1.05);
}

#cl-wall .cl-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: clamp(10px, 1.4vw, 18px);
    padding: 13px 20px;
    border-radius: 16px;
    border: 1px dashed rgba(43, 80, 136, .35);
    background: rgba(43, 80, 136, .04);
    color: var(--as-blue);
    font: 600 14px/1 var(--fd);
    cursor: pointer;
    transition: background .3s, color .3s, border-color .3s;
}

#cl-wall .cl-more:hover {
    background: var(--as-blue);
    border-color: var(--as-blue);
    border-style: solid;
    color: #fff;
}

#cl-wall .cl-more:focus-visible {
    outline: 2px solid var(--as-blue);
    outline-offset: 2px;
}

#cl-wall .cl-more[hidden] {
    display: none;
}

#cl-wall .cl-none {
    padding: 60px 0;
    text-align: center;
    font-weight: 500;
    color: rgba(0, 0, 0, .6);
}

/* =========================== 4. CTA =========================== */
#cl-cta .cl-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding: clamp(32px, 5vw, 64px);
    border-radius: clamp(24px, 3vw, 40px);
    background: #2b5088;
    color: #fff;
}

#cl-cta .cl-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(229, 237, 251, .22) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(70% 120% at 100% 0%, #000, transparent 72%);
    mask-image: radial-gradient(70% 120% at 100% 0%, #000, transparent 72%);
}

#cl-cta .cl-ring.r3 {
    right: -120px;
    bottom: -200px;
    width: 380px;
    height: 380px;
    box-shadow: 0 0 0 44px rgba(229, 237, 251, .04), 0 0 0 88px rgba(229, 237, 251, .03);
}

#cl-cta .as-h2 {
    margin: 0;
    color: #fff;
    max-width: 18ch;
}

#cl-cta p {
    margin: 14px 0 0;
    font-size: 16px;
    font-weight: 500;
    color: rgb(255 255 255);
}

#cl-cta .cl-cta-b {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 99px;
    background: #fff;
    color: var(--as-blue);
    font-weight: 700;
    font-size: 15px;
    transition: transform .3s var(--ease), box-shadow .3s;
}

#cl-cta .cl-cta-b svg {
    width: 18px;
    height: 18px;
    transition: transform .35s var(--ease);
}

#cl-cta .cl-cta-b:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .5);
}

#cl-cta .cl-cta-b:hover svg {
    transform: translateX(4px);
}

/* =========================== responsive =========================== */
@media (max-width: 1200px) {
    #cl-wall .cl-gr {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    #cl-spot .cl-spg {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 980px) {
    #cl-intro .cl-hero {
        grid-template-columns: 1fr;
    }

    #cl-intro .cl-hero-t .as-h2 {
        max-width: 20ch;
    }

    #cl-intro .cl-stage {
        height: 420px;
    }
}

@media (max-width: 760px) {
    #as .cl-head {
        align-items: flex-start;
    }

    #cl-spot .cl-spg {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #cl-spot figcaption {
        padding: 12px 14px 14px;
    }

    #cl-spot .cl-tx {
        font-size: 14.5px;
    }

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

    #cl-wall .cl-arr {
        display: none;
    }

    #cl-wall .cl-q {
        width: 100%;
    }

    #cl-wall .cl-bar {
        margin: 0 calc(-5vw);
        padding: 10px 5vw;
    }

    #cl-wall .cl-chip {
        padding: 9px 14px;
        font-size: 13.5px;
    }

    #cl-intro .cl-num {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #cl-intro .cl-num li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    #cl-intro .cl-num li:nth-child(n+3) {
        border-top: 1px solid var(--as-line);
        margin-top: 20px;
    }

    #cl-cta .cl-cta-b {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #cl-intro .cl-stage {
        height: 340px;
    }

    #cl-wall .cl-gr {
        gap: 8px;
    }

    #cl-wall .cl-t {
        padding: 8px;
        border-radius: 12px;
    }

    #cl-wall .cl-g-h {
        gap: 10px;
        align-items: center;
    }

    #cl-wall .cl-g-h h3 {
        font-size: 18px;
    }

    #cl-wall .cl-g-c {
        padding: 4px 9px;
        font-size: 11.5px;
    }
}

@media (prefers-reduced-motion: reduce) {

    #cl-intro .cl-go,
    #cl-intro .cl-go svg,
    #cl-spot .cl-sp figure,
    #cl-spot .cl-sp-m img,
    #cl-wall .cl-t,
    #cl-wall .cl-t img,
    #cl-wall .cl-chip,
    #cl-cta .cl-cta-b {
        transition: none;
    }

    #cl-intro .cl-go:hover,
    #cl-spot .cl-sp figure:hover,
    #cl-wall .cl-t:hover,
    #cl-cta .cl-cta-b:hover {
        transform: none;
    }
}

/* client logos that link out to the client's site */
#cl-wall .cl-t a {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

#cl-wall .cl-t a:focus-visible {
    outline: 2px solid var(--as-blue);
    outline-offset: 4px;
}
