/* ==========================================================================
   /case-studies (case-studies.php). Extends rs-page.css (hero, breadcrumb).
   Light, flat, square edges; blue as an accent only; no lift or zoom.
   ========================================================================== */
.cs-page {
    --cs-ink: #0a1230;
    --cs-text: #4a5568;
    --cs-muted: #5b6577;
    --cs-line: #dfe4ee;
    --cs-blue: #0b2dbe;
    --cs-mist: #f4f6fb;
}

.cs-section {
    padding: 80px 0;
    background: #fff;
    font-family: "Helvetica Neue", "Inter", Helvetica, Arial, sans-serif;
}

.cs-section--all {
    background: var(--cs-mist);
}

/* ---------- section head: title left, link or filter right, hairline under ---------- */
.cs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 32px;
    margin-bottom: 36px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--cs-line);
}

.cs-eyebrow {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cs-blue);
}

.cs-page .cs-title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -.01em;
    color: var(--cs-ink);
}

.cs-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--cs-ink);
    text-decoration: none;
}

.cs-link svg,
.cs-more svg {
    width: 16px;
    height: 16px;
}

.cs-link:hover {
    color: var(--cs-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* service · location line */
.cs-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cs-blue);
}

.cs-label span {
    padding-left: 10px;
    border-left: 1px solid #cfd6e4;
    font-weight: 500;
    color: var(--cs-muted);
}

.cs-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cs-blue);
}

/* ---------- featured: lead study left, numbered list right ---------- */
.cs-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.cs-lead {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.cs-lead__media {
    display: block;
    aspect-ratio: 16 / 10;
    margin-bottom: 8px;
    overflow: hidden;
    background: #eef2f8;
}

.cs-lead__media img,
.cs-row__media img,
.cs-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-lead__title {
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 500;
    line-height: 1.25;
    color: var(--cs-ink);
}

.cs-lead__text {
    max-width: 600px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--cs-text);
}

a.cs-lead:hover .cs-lead__title,
a.cs-row:hover .cs-row__title,
a.cs-card:hover .cs-card__title {
    color: var(--cs-blue);
}

.cs-side {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--cs-line);
}

.cs-side li {
    border-bottom: 1px solid var(--cs-line);
}

.cs-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 150px;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    color: inherit;
    text-decoration: none;
}

.cs-row__num {
    align-self: start;
    padding-top: 2px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #8a93a6;
}

.cs-row__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cs-row__title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--cs-ink);
}

.cs-row__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #eef2f8;
}

/* ---------- all case studies ---------- */
.cs-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cs-filter__btn {
    padding: 9px 14px;
    border: 1px solid #cfd6e4;
    border-radius: 0;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--cs-ink);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.cs-filter__btn:hover {
    border-color: var(--cs-blue);
    color: var(--cs-blue);
}

.cs-filter__btn.is-on {
    border-color: var(--cs-blue);
    background: var(--cs-blue);
    color: #fff;
}

.cs-filter__btn:focus-visible {
    outline: 2px solid var(--cs-blue);
    outline-offset: 2px;
}

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

.cs-cell[hidden] {
    display: none;
}

.cs-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--cs-line);
    color: inherit;
    text-decoration: none;
    transition: border-color .25s ease;
}

a.cs-card:hover {
    border-color: var(--cs-blue);
}

.cs-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef2f8;
}

.cs-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 22px;
}

.cs-card__title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--cs-ink);
}

.cs-card__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--cs-text);
}

.cs-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e8ecf3;
}

.cs-card__sector {
    padding: 4px 8px;
    border: 1px solid #cfd6e4;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cs-text);
}

.cs-card__foot .cs-more {
    margin-left: auto;
}

a.cs-card:hover .cs-more,
a.cs-lead:hover .cs-more {
    text-decoration: underline;
    text-underline-offset: 3px;
}

:is(.cs-lead, .cs-row, .cs-card):focus-visible {
    outline: 2px solid var(--cs-blue);
    outline-offset: 3px;
}

/* ---------- track record intro: heading left, the document's words right ---------- */
.cs-intro {
    padding-bottom: 0;
}

.cs-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--cs-line);
}

.cs-intro__text p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--cs-text);
}

.cs-intro__text p:last-child {
    margin-bottom: 0;
}

/* assessed value, as reported */
.cs-value {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--cs-line);
    font-size: 20px;
    font-weight: 500;
    color: var(--cs-ink);
}

.cs-value small {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cs-muted);
}

.cs-row__value {
    font-size: 14px;
    font-weight: 600;
    color: var(--cs-blue);
}

.cs-card__value {
    margin-left: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--cs-ink);
    white-space: nowrap;
}

.cs-more-row {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.cs-loadmore {
    padding: 14px 26px;
    border: 1px solid var(--cs-blue);
    border-radius: 0;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cs-blue);
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
}

.cs-loadmore:hover {
    background: var(--cs-blue);
    color: #fff;
}

.cs-loadmore:focus-visible {
    outline: 2px solid var(--cs-blue);
    outline-offset: 3px;
}

.cs-loadmore[hidden],
.cs-more-row:has(.cs-loadmore[hidden]) {
    display: none;
}

/* ---------- clients: the two logo boards from the track record ---------- */
.cs-clients__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: start;
}

.cs-clients__grid img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- nothing published yet ---------- */
.cs-empty {
    position: relative;
    max-width: 760px;
    padding: clamp(28px, 4vw, 56px);
    background: var(--cs-mist);
    border-top: 3px solid var(--cs-blue);
}

.cs-empty .cs-title {
    margin-bottom: 16px;
}

.cs-empty__text {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--cs-text);
}

@media (max-width: 991px) {
    .cs-section {
        padding: 56px 0;
    }

    .cs-feature {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cs-intro__grid {
        grid-template-columns: 1fr;
        padding-bottom: 40px;
    }

    .cs-clients__grid {
        gap: 24px;
    }
}

@media (max-width: 575px) {
    .cs-row {
        grid-template-columns: 28px minmax(0, 1fr) 96px;
        gap: 12px;
        padding: 18px 0;
    }

    .cs-row__title {
        font-size: 16px;
    }

    .cs-grid {
        grid-template-columns: 1fr;
    }

    .cs-clients__grid {
        grid-template-columns: 1fr;
    }
}


/* ---------- featured case studies as a showcase (2026-11-05): one wide photo that changes on its
   own, the study's details on a frosted-glass panel, the four studies as tabs underneath ---------- */
.cs-show {
    --cs-show-hold: 6s;
}

.cs-show__stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    min-height: 460px;
    background: #0a1a5c;
}

.cs-show__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.1s ease;
}

.cs-show__img.is-on {
    opacity: 1;
}

.cs-show__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 36, 184, .55) 0%, rgba(6, 36, 184, .18) 45%, rgba(6, 36, 184, 0) 70%),
        linear-gradient(0deg, rgba(4, 16, 70, .35) 0%, rgba(4, 16, 70, 0) 40%);
    pointer-events: none;
}

.cs-show__glass {
    position: absolute;
    left: clamp(20px, 3vw, 48px);
    bottom: clamp(20px, 3vw, 48px);
    z-index: 1;
    width: min(500px, calc(100% - 40px));
    padding: clamp(24px, 2.4vw, 36px);
    border: 1px solid rgba(255, 255, 255, .38);
    background: linear-gradient(135deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .08) 100%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
    color: #fff;
}

.cs-show__info.is-on {
    animation: cs-show-in .7s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes cs-show-in {
    from { opacity: 0; transform: translate3d(0, 12px, 0); }
    to { opacity: 1; transform: none; }
}

.cs-show__label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
}

.cs-show__label span {
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, .5);
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
}

.cs-page .cs-show__title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(26px, 2.4vw, 38px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: #fff;
}

.cs-show__text {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .88);
}

.cs-show__value {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .3);
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: #fff;
}

.cs-show__value small {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}

.cs-show__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
}

.cs-show__more svg {
    width: 16px;
    height: 16px;
}

.cs-show__more:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cs-show__count {
    position: absolute;
    top: clamp(18px, 2.4vw, 32px);
    right: clamp(18px, 2.4vw, 32px);
    z-index: 1;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .8);
}

.cs-show__count b {
    font-weight: 600;
    color: #fff;
}

/* the tabs under the photo */
.cs-show__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--cs-line);
}

.cs-show__tab {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    align-content: start;
    padding: 26px 24px 24px;
    border: 0;
    border-right: 1px solid var(--cs-line);
    border-radius: 0;
    background: #fff;
    font-family: inherit;
    text-align: left;
    color: var(--cs-ink);
    cursor: pointer;
    transition: background-color .3s ease;
}

.cs-show__tab:last-child {
    border-right: 0;
}

.cs-show__tab:hover,
.cs-show__tab.is-on {
    background: var(--cs-mist);
}

.cs-show__tab:focus-visible {
    outline: 2px solid var(--cs-blue);
    outline-offset: -2px;
}

.cs-show__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cs-line);
}

.cs-show__bar i {
    position: absolute;
    inset: 0;
    background: var(--cs-blue);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.cs-show__tab.is-on .cs-show__bar i {
    transform: scaleX(1);
}

.cs-show.is-running .cs-show__tab.is-on .cs-show__bar i {
    transform: scaleX(0);
    animation: cs-show-bar var(--cs-show-hold) linear forwards;
}

@keyframes cs-show-bar {
    to { transform: scaleX(1); }
}

.cs-show__num {
    grid-row: 1 / span 3;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1.6;
    color: #8a93a6;
}

.cs-show__tab.is-on .cs-show__num {
    color: var(--cs-blue);
}

.cs-show__tabsvc {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1.6;
    text-transform: uppercase;
    color: var(--cs-blue);
}

.cs-show__tabtitle {
    margin-top: 6px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--cs-ink);
}

.cs-show__tabval {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--cs-text);
}

@media (max-width: 991px) {
    .cs-show__stage {
        aspect-ratio: auto;
        min-height: 0;
        height: 560px;
    }

    .cs-show__tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cs-show__tab:nth-child(2n) {
        border-right: 0;
    }

    .cs-show__tab:nth-child(-n+2) {
        border-bottom: 1px solid var(--cs-line);
    }
}

@media (max-width: 575px) {
    .cs-show__stage {
        height: 520px;
    }

    .cs-show__glass {
        left: 14px;
        right: 14px;
        bottom: 14px;
        width: auto;
        padding: 20px;
    }

    .cs-show__text {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .cs-show__tab {
        padding: 20px 14px 18px;
        column-gap: 10px;
    }

    .cs-show__tabtitle {
        font-size: 15px;
    }

    .cs-show__tabval {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-show__img {
        transition: none;
    }

    .cs-show__info.is-on {
        animation: none;
    }
}
