/* ==============================================
   Case Studies Page — Redesign
   Depends on: caseStudiesNewOne.css (hero animation),
               global.css (container base styles)
   ============================================== */

/* ─── HERO ──────────────────────────────────── */

.cs-hero__body {
    position: relative;
    z-index: 6;
    width: min(calc(100% - 48px), 1060px);
    margin: 0 auto;
    padding: 60px 0 90px;
    text-align: center;
}

.cs-hero__eyebrow {
    display: inline-block;
    font-family: 'PoppinsBold';
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #69c1bd;
    margin-bottom: 22px;
    border: 1px solid rgba(105, 193, 189, 0.4);
    border-radius: 20px;
    padding: 5px 16px;
}

.cs-hero__title {
    font-family: 'PoppinsBold';
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.1;
    color: #fff;
    margin: 0 0 22px;
    letter-spacing: -0.02em;
}

.cs-red {
    color: #e53740;
}

.cs-teal {
    color: #69c1bd;
}

.cs-hero__desc {
    font-family: 'PoppinsRegular';
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: rgba(255, 255, 255, 0.62);
    max-width: 520px;
    margin: 0 auto 52px;
    line-height: 1.75;
}

.cs-hero__kpis {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(10, 15, 24, 0.76);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    margin: 0 auto 44px;
}

.cs-kpi {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 76px;
    padding: 20px 28px;
    text-align: left;
    border-right: 3px solid rgba(255, 255, 255, 0.1);
}

.cs-kpi:last-child {
    border-right: none;
}

.cs-kpi::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    width: 52px;
    height: 4px;
    background: #69c1bd;
}

.cs-kpi:nth-child(even)::before {
    background: #e53740;
}

.cs-kpi strong {
    font-family: 'PoppinsBold';
    font-size: 1.3rem;
    color: #fff;
    line-height: 1;
}

.cs-kpi span {
    font-family: 'PoppinsRegular';
    margin-top: 13px;
    font-size: 0.94rem;
    line-height: 1.25;
    color: #b9c3d3;
}

.cs-hero__scroll-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'PoppinsBold';
    font-size: 12px;
    color: #69c1bd;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.22s, gap 0.22s;
    outline: none;
}

.cs-hero__scroll-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.22s;
}

.cs-hero__scroll-cta:hover {
    color: #e53740;
    gap: 14px;
}

.cs-hero__scroll-cta:hover svg {
    transform: translateX(3px);
}

/* ─── LAYOUT WRAPPER ─────────────────────────── */

.cs-page-wrap {
    width: min(calc(100% - 48px), 1120px);
    margin: 0 auto;
    padding: 56px 0 80px;
}

/* Override the extra padding from caseStudiesNewOne.css on the first containerW */
.case-studies-page-header-bg + .containerW,
.case-studies-page-header-bg + .containerW.is-visible {
    padding-top: 0;
    background-color: #050505;
    margin-top: 0;
    margin-bottom: 0;
}

body,
main {
    background-color: #050505;
}

/* ─── TOOLBAR (filters + search) ─────────────── */

.cs-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.cs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cs-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 30px;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    font-family: 'PoppinsRegular';
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
    outline: none;
}

.cs-pill:hover {
    border-color: rgba(229, 55, 64, 0.72);
    color: #fff;
    background: rgba(229, 55, 64, 0.12);
}

.cs-pill--active {
    background: #e53740;
    border-color: #e53740;
    color: #fff;
}

.cs-pill--active:hover {
    background: #c62828;
    border-color: #c62828;
    color: #fff;
}

.cs-pill__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.3);
    font-family: 'PoppinsBold';
    font-size: 10px;
    padding: 0 4px;
}

.cs-pill:not(.cs-pill--active) .cs-pill__count {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.76);
}

.cs-search {
    position: relative;
    flex-shrink: 0;
}

.cs-search svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.cs-search input {
    width: 248px;
    padding: 10px 14px 10px 38px;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    font-family: 'PoppinsRegular';
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.22s, box-shadow 0.22s;
    outline: none;
    box-sizing: border-box;
}

.cs-search input:focus {
    border-color: #e53740;
    box-shadow: 0 0 0 3px rgba(229, 55, 64, 0.16);
}

.cs-search input::placeholder {
    color: rgba(255, 255, 255, 0.44);
}

/* ─── GRID ───────────────────────────────────── */

.cs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

/* ─── CARD ───────────────────────────────────── */

.cs-card {
    border-radius: 12px;
    background: #0c0c0d;
    border: 2px solid rgb(255 255 255 / 24%);
    overflow: hidden;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.32s ease,
                border-color 0.28s ease;
    position: relative;
}

.cs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1;
    transition: height 0.22s ease;
}

.cs-card--red::before  { background: #e53740; }
.cs-card--teal::before { background: #69c1bd; }

.cs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.cs-card--red:hover  { border-color: rgba(229, 55, 64, 0.4); }
.cs-card--teal:hover { border-color: rgba(105, 193, 189, 0.5); }

/* Keep every card compact and consistent in the grid. */
.cs-card--featured {
    grid-column: auto;
}

.cs-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Card body layout */
.cs-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
}

/* ── Visual (logo) area ── */

.cs-card__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    flex-shrink: 0;
    overflow: hidden;
}

.cs-card__visual,
.cs-card:not(.cs-card--featured) .cs-card__visual,
.cs-card--featured .cs-card__visual {
    height: 150px;
    /* width: 100%; */
    min-height: 0;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-card__img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.cs-card--featured .cs-card__img {
    max-height: 100px;
}

.cs-card:hover .cs-card__img {
    transform: scale(1.04);
}

.cs-card__img--dark-bg {
    filter: brightness(0) invert(1);
}

/* ── Info (text) area ── */

.cs-card__info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    flex: 1;
    min-width: 0;
}

.cs-card--featured .cs-card__info {
    padding: 24px;
    gap: 13px;
    justify-content: flex-start;
}

.cs-card__top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* ── Badges ── */

.cs-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'PoppinsBold';
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
}

.cs-badge--red  { background: rgba(229, 55, 64, 0.1);   color: #e53740; }
.cs-badge--teal { background: rgba(105, 193, 189, 0.15); color: #3b9490; }

.cs-badge--featured {
    background: transparent;
    color: #e53740;
    border: 1px solid rgba(229, 55, 64, 0.35);
}

/* ── Client name ── */

.cs-card__name {
    font-family: 'PoppinsBold';
    font-size: 1.32rem;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.cs-card--featured .cs-card__name {
    font-size: 1.32rem;
}

/* ── Subtitle ── */

.cs-card__subtitle {
    font-family: 'PoppinsRegular';
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
    line-height: 1.65;
}

.cs-card--featured .cs-card__subtitle {
    font-size: 0.9rem;
}

/* ── Service tags ── */

.cs-card__services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cs-tag {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-family: 'PoppinsRegular';
    font-size: 11px;
    color: rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.04);
}

/* ── Key result ── */

.cs-result {
    padding: 11px 14px;
    border-radius: 8px;
    width: fit-content;
    max-width: 100%;
}

.cs-result--red  { background: rgba(229, 55, 64, 0.06);   border-left: 3px solid #e53740; }
.cs-result--teal { background: rgba(105, 193, 189, 0.08); border-left: 3px solid #69c1bd; }

.cs-result__label {
    display: block;
    font-family: 'PoppinsBold';
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 3px;
}

.cs-result__value {
    font-family: 'PoppinsBold';
    font-size: 1.05rem;
    color: #fff;
    display: block;
    line-height: 1.3;
}

/* ── Card read-more link ── */

.cs-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'PoppinsSemiBold';
    font-size: 12px;
    color: rgba(255, 255, 255, 0.48);
    margin-top: auto;
    padding-top: 8px;
    transition: color 0.22s, gap 0.22s;
}

.cs-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.22s;
}

.cs-card--red:hover  .cs-link { color: #e53740; }
.cs-card--teal:hover .cs-link { color: #3b9490; }
.cs-card:hover .cs-link       { gap: 12px; }
.cs-card:hover .cs-link svg   { transform: translateX(3px); }

/* ── Empty state ── */

.cs-empty {
    display: none;
    text-align: center;
    padding: 56px 24px;
    font-family: 'PoppinsRegular';
    font-size: 1rem;
    color: #aaa;
    grid-column: 1 / -1;
}

/* ─── VALUES SECTION ─────────────────────────── */

.cs-values {
    background-color: #fff;
    margin-bottom: 0;
}

.cs-values .cs-page-wrap {
    padding: 72px 0 80px;
    text-align: center;
}

.cs-section-eyebrow {
    display: block;
    font-family: 'PoppinsBold';
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #69c1bd;
    margin-bottom: 14px;
    margin-top: 66px;
}

.cs-section-eyebrow--dark {
    color: #3b9490;
}

.cs-values__title {
    font-family: 'PoppinsBold';
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #111112;
    line-height: 1.25;
    margin: 0 0 52px;
}

.cs-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    text-align: left;
}

.cs-value {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(17, 17, 18, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.cs-value:hover {
    background: #fff;
    border-color: rgba(229, 55, 64, 0.28);
    box-shadow: 0 22px 60px rgba(17, 17, 18, 0.1);
    transform: translateY(-4px);
}

.cs-value__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.cs-value__icon svg {
    width: 22px;
    height: 22px;
}

.cs-value__icon--red  { background: rgba(229, 55, 64, 0.14);   color: #e53740; }
.cs-value__icon--teal { background: rgba(105, 193, 189, 0.14); color: #69c1bd; }

.cs-value__title {
    font-family: 'PoppinsBold';
    font-size: 1.1rem;
    color: #111112;
    margin: 0 0 10px;
}

.cs-value__text {
    font-family: 'PoppinsRegular';
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.75;
    margin: 0;
}

/* ─── CTA SECTION ────────────────────────────── */

.cs-cta {
    margin-bottom: 0;
    background-color: #fff;
}

.cs-cta .cs-page-wrap {
    display: flex;
    justify-content: center;
    background-color: #fff;
    padding: 44px 0 96px;
}

.cs-cta__card {
    text-align: center;
    background: #0c0c0d;
    border: 2px solid rgb(255 255 255 / 22%);
    border-radius: 12px;
    padding: 38px 56px;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
}

.cs-cta__title {
    font-family: 'PoppinsBold';
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    color: #fff;
    line-height: 1.22;
    margin: 0 0 36px;
}

.cs-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 25px;
    background: #e53740;
    color: #fff;
    border-radius: 12px;
    font-family: 'PoppinsBold';
    font-size: 14px;
    text-decoration: none;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 6px 24px rgba(229, 55, 64, 0.3);
    letter-spacing: 0.02em;
    outline: none;
}

.cs-cta__btn:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(229, 55, 64, 0.4);
}

.cs-cta__btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.22s;
}

.cs-cta__btn:hover svg {
    transform: translateX(4px);
}

/* ─── RESPONSIVE ─────────────────────────────── */

@media (max-width: 1024px) {
    .cs-hero__kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cs-kpi {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .cs-kpi:nth-child(3),
    .cs-kpi:nth-child(4) {
        border-bottom: 0;
    }

    .cs-card--featured .cs-card__visual {
        width: 100%;
    }
}

@media (max-width: 860px) {
    .cs-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .cs-card--featured {
        grid-column: span 1;
    }

    .cs-card--featured .cs-card__body {
        flex-direction: column;
    }

    .cs-card--featured .cs-card__visual {
        width: 100%;
        min-height: 0;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .cs-card--featured .cs-card__info {
        padding: 24px;
    }

    .cs-values__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cs-value {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cs-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .cs-search input {
        width: 100%;
    }

    .cs-search {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .cs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cs-hero__body {
        width: min(calc(100% - 32px), 1060px);
        /* padding: 88px 0 48px; */
    }

    .cs-hero__eyebrow {
        margin-bottom: 16px;
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .cs-hero__title {
        font-size: clamp(1.85rem, 10vw, 2.35rem);
        line-height: 1.12;
        margin-bottom: 18px;
    }

    .cs-hero__desc {
        margin: 0 auto 30px;
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .cs-hero__kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 30px;
        border: 0;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 8px 48px rgba(0, 0, 0, 0.2);
        backdrop-filter: none;
    }

    .cs-kpi {
        min-height: 36px;
        padding: 13px 8px;
        justify-content: center;
        align-items: center;
        text-align: center;
        border-right: 1px solid #ebebeb;
        border-bottom: 1px solid #ebebeb;
    }

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

    .cs-kpi:nth-child(3),
    .cs-kpi:nth-child(4) {
        border-bottom: none;
    }

    .cs-kpi::before {
        left: 0;
        right: 0;
        width: auto;
        height: 3px;
    }

    .cs-kpi strong {
        color: #15151a;
        font-family: 'PoppinsRegular';
        font-size: clamp(1.08rem, 5vw, 1.35rem);
        font-weight: 400;
    }

    .cs-kpi span {
        margin-top: 5px;
        color: #6c6c76;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.25;
    }

    .cs-page-wrap {
        width: min(calc(100% - 32px), 1120px);
        padding: 34px 0 56px;
    }

    .cs-toolbar {
        gap: 12px;
        margin-bottom: 20px;
    }

    .cs-filters {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .cs-filters::-webkit-scrollbar {
        display: none;
    }

    .cs-pill {
        flex: 0 0 auto;
        padding: 7px 14px;
        font-size: 12px;
    }

    .cs-card__visual,
    .cs-card:not(.cs-card--featured) .cs-card__visual,
    .cs-card--featured .cs-card__visual {
        height: 124px;
        padding: 22px;
        padding-left: 0px;
    }

    .cs-card__info {
        padding: 18px;
        gap: 11px;
    }

    .cs-card__name,
    .cs-card--featured .cs-card__name {
        font-size: 1.16rem;
    }

    .cs-card__subtitle {
        font-size: 0.84rem;
        line-height: 1.55;
    }

    .cs-result {
        padding: 9px 11px;
    }

    .cs-result__value {
        font-size: 0.92rem;
    }

    .cs-cta__card {
        padding: 32px 24px;
    }

    .cs-values .cs-page-wrap,
    .cs-cta .cs-page-wrap {
        padding: 36px 0 72px;
    }
}

@media (max-width: 420px) {
    .cs-card__name,
    .cs-card--featured .cs-card__name {
        font-size: 1.12rem;
    }
}

/* ==============================================
   Case Study Detail Page
   ============================================== */

.cs-detail {
    --cs-detail-dark: #050505;
    --cs-detail-ink: #111112;
    --cs-detail-muted: #64748b;
    --cs-detail-red: #e53740;
    --cs-detail-red-dark: #c62828;
    --cs-detail-teal: #69c1bd;
    --cs-detail-border: #e8eaed;
    --cs-detail-surface: #f4f5f7;
    background: #fff;
    color: var(--cs-detail-ink);
}

.cs-detail--teal {
    --cs-detail-accent: var(--cs-detail-teal);
    --cs-detail-accent-soft: rgba(105, 193, 189, 0.14);
}

.cs-detail--red,
.cs-detail:not(.cs-detail--teal) {
    --cs-detail-accent: var(--cs-detail-red);
    --cs-detail-accent-soft: rgba(229, 55, 64, 0.12);
}

.cs-detail * {
    box-sizing: border-box;
}

/* ── Hero ── */

.cs-detail-hero {
    position: relative;
    min-height: 88vh;
    padding: 0;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 18%, rgba(105, 193, 189, 0.34), transparent 30%),
        radial-gradient(circle at 84% 24%, rgba(229, 55, 64, 0.28), transparent 28%),
        radial-gradient(circle at 52% 78%, rgba(105, 193, 189, 0.12), transparent 34%),
        linear-gradient(135deg, #05070a 0%, #081018 46%, #0b0b0d 100%);
    background-size: 130% 130%, 130% 130%, 130% 130%, 100% 100%;
    animation: cs-detail-hero-color-flow 14s ease-in-out infinite alternate;
}

.cs-detail-hero.case-studies-page-header-bg {
    background:
        radial-gradient(circle at 14% 18%, rgba(105, 193, 189, 0.34), transparent 30%),
        radial-gradient(circle at 84% 24%, rgba(229, 55, 64, 0.28), transparent 28%),
        radial-gradient(circle at 52% 78%, rgba(105, 193, 189, 0.12), transparent 34%),
        linear-gradient(135deg, #05070a 0%, #081018 46%, #0b0b0d 100%);
    background-size: 130% 130%, 130% 130%, 130% 130%, 100% 100%;
}

.cs-detail-hero .case-studies-universe-bg,
.cs-detail-hero .case-studies-universe-stars,
.cs-detail-hero .case-studies-universe-nebula,
.cs-detail-hero .case-studies-universe-grain,
.cs-detail-hero .case-studies-universe-cursor-glow,
.cs-detail-hero .case-studies-universe-sphere,
.cs-detail-hero::before {
    display: none;
}

.cs-detail-hero::before {
    content: none;
}

@keyframes cs-detail-hero-color-flow {
    0% {
        background-position: 0% 0%, 100% 0%, 50% 100%, 0 0;
    }
    100% {
        background-position: 18% 16%, 82% 18%, 58% 78%, 0 0;
    }
}

.cs-detail-hero::after {
    display: none;
}

.cs-detail-hero__body {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
    width: min(calc(100% - 48px), 1220px);
    min-height: 88vh;
    margin: 0 auto;
    padding: 90px 0 88px;
}

.cs-detail-hero__content {
    display: flex;
    flex-direction: column;
}

.cs-detail-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.cs-detail-hero__meta .cs-hero__eyebrow {
    margin: 0;
}

.cs-detail-hero__logo {
    display: inline-flex;
    align-items: center;
}

.cs-detail-hero__logo img {
    display: block;
    height: 26px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.65;
}

.cs-detail-hero__title {
    margin: 0;
    color: #fff;
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.55rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.cs-detail-hero__subtitle {
    max-width: 600px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: clamp(0.9rem, 1.3vw, 1.02rem);
    line-height: 1.76;
}

.cs-detail-hero__services {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
}

.cs-detail-hero__services span {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
    font-family: "PoppinsSemiBold", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cs-detail-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 38px;
}

.cs-detail-hero__link {
    color: var(--cs-detail-teal);
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.cs-detail-hero__link:hover {
    color: #fff;
}

/* ── Hero right: brand logo + metrics ── */

.cs-detail-hero__proof {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: center;
}

.cs-detail-hero__brand {
    display: flex;
    min-height: 210px;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border: 1px solid rgba(17, 17, 18, 0.08);
    border-radius: 14px;
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.cs-detail-hero__brand img {
    display: block;
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cs-detail-hero__metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.cs-detail-metric {
    padding: 13px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--cs-detail-accent);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: background 0.2s;
}

.cs-detail-metric:hover {
    background: rgba(255, 255, 255, 0.11);
}

.cs-detail-metric strong,
.cs-detail-metric span {
    display: block;
}

.cs-detail-metric strong {
    color: #fff;
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.cs-detail-metric span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.56);
    font-family: "PoppinsRegular", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* ── Shared layout ── */

.cs-detail-wrap {
    width: min(calc(100% - 48px), 1220px);
    margin: 0 auto;
}

.cs-detail-section {
    padding: 96px 0;
    padding-top: 4px;
}

.cs-detail-section--intro {
    padding-top: 72px;
    padding-bottom: 80px;
}

.cs-detail-section--dark {
    background: var(--cs-detail-dark);
    color: #fff;
}

.cs-detail-cta {
    background: #fff;
    color: #fff;
}

/* ── Context / intro ── */

.cs-detail-intro {
    max-width: 860px;
}

.cs-detail-intro .cs-section-eyebrow {
    display: block;
    margin-bottom: 18px;
}

.cs-detail-intro h2 {
    margin: 0 0 22px;
    font-family: "PoppinsBold", Arial, sans-serif;
    font-weight: 900;
    font-size: clamp(1.7rem, 3.5vw, 2.8rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--cs-detail-ink);
}

.cs-detail-intro p {
    margin: 0;
    color: var(--cs-detail-muted);
    font-size: clamp(0.97rem, 1.4vw, 1.08rem);
    line-height: 1.9;
}

/* ── Objectives + Approach ── */

.cs-detail-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cs-detail-panel {
    position: relative;
    overflow: hidden;
    padding: 44px;
    border-radius: 16px;
    background: var(--cs-detail-surface);
    border: 1px solid var(--cs-detail-border);
}

.cs-detail-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--cs-detail-accent);
    border-radius: 4px 0 0 4px;
}

.cs-detail-panel--dark {
    background: #0c0c0d;
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.cs-detail-panel__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--cs-detail-accent-soft);
    color: var(--cs-detail-accent);
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.cs-detail-panel h2,
.cs-detail-heading h2,
.cs-detail-intro h2,
.cs-detail-cta__inner h2 {
    margin: 0;
    font-family: "PoppinsBold", Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.1;

}

.cs-detail-panel h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.cs-detail-panel--dark h2 {
    color: #fff;
}

.cs-detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.cs-detail-list li {
    position: relative;
    padding-left: 20px;
    color: var(--cs-detail-muted);
    font-size: 15px;
    line-height: 1.75;
}

.cs-detail-panel--dark .cs-detail-list li {
    color: rgba(255, 255, 255, 0.60);
}

.cs-detail-list li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cs-detail-accent);
    flex-shrink: 0;
}

/* ── Section headings ── */

.cs-detail-heading {
    margin-bottom: 44px;
}

.cs-detail-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    max-width: 640px;
    margin-top: 23px;
}

.cs-detail-section--dark .cs-detail-heading h2 {
    color: #fff;
}

/* ── Performance: accordion + results ── */

.cs-detail-performance-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.cs-detail-performance-col {
    min-width: 0;
}

.cs-detail-performance-col .cs-detail-heading {
    margin-bottom: 28px;
}

.cs-detail-performance-col .cs-detail-heading h2 {
    max-width: 900px;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

.cs-detail-performance-col--results {
    position: sticky;
    top: 104px;
}

/* ── Accordion ── */

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

.cs-detail-heading--results {
    margin-top: 0;
    padding-top: 0;
}

.cs-detail-action {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: border-color 0.2s;
}

.cs-detail-action:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.cs-detail-action__header {
    display: grid;
    grid-template-columns: 44px 1fr 22px;
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 20px 22px;
    border: 1px solid gray;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.cs-detail-action__header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cs-detail-action__header span {
    color: var(--cs-detail-accent);
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.cs-detail-action__header strong {
    font-family: "PoppinsSemiBold", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
}

.cs-detail-action__header[aria-expanded="true"] strong {
    color: #fff;
}

.cs-detail-action__header svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.25s ease, color 0.2s;
    flex-shrink: 0;
    justify-self: end;
}

.cs-detail-action__header[aria-expanded="true"] svg {
    transform: rotate(45deg);
    color: var(--cs-detail-accent);
}

.cs-detail-action__content {
    padding: 0 22px 22px 80px;
}

.cs-detail-action__content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    line-height: 1.82;
}

/* ── Results ── */

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

.cs-detail-result {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s, border-color 0.2s;
}

.cs-detail-result:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}

.cs-detail-result span {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--cs-detail-accent);
    box-shadow: 0 0 0 6px var(--cs-detail-accent-soft);
    flex-shrink: 0;
}

.cs-detail-result strong {
    color: rgba(255, 255, 255, 0.86);
    font-family: "PoppinsRegular", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

/* ── Related case studies ── */

.cs-detail-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.cs-detail-related__card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--cs-detail-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(17, 17, 18, 0.05);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.cs-detail-related__card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
}

.cs-card--red.cs-detail-related__card::before  { background: #e53740; }
.cs-card--teal.cs-detail-related__card::before { background: #69c1bd; }

.cs-detail-related__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(17, 17, 18, 0.11);
    border-color: rgba(229, 55, 64, 0.22);
}

.cs-detail-related__card a {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.cs-detail-related__card h3 {
    margin: 0;
    color: var(--cs-detail-ink);
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.3;
}

.cs-detail-related__card p {
    margin: 0;
    color: var(--cs-detail-muted);
    font-size: 14px;
    line-height: 1.65;
    flex: 1;
}

.cs-detail-related__card > a > strong {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--cs-detail-surface);
    color: var(--cs-detail-ink);
    font-size: 13px;
    line-height: 1.5;
}

.cs-detail-related__card .cs-link {
    color: var(--cs-detail-muted);
    margin-top: auto;
}

.cs-detail-related__card:hover .cs-link {
    color: var(--cs-detail-red);
}

/* ── CTA ── */

.cs-detail-cta__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(28px, 6vw, 80px);
    align-items: center;
    width: 100%;
    padding: 56px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 18%, rgba(105, 193, 189, 0.18), transparent 34%),
        radial-gradient(circle at 92% 74%, rgba(229, 55, 64, 0.2), transparent 34%),
        #080909;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.cs-detail-cta__inner::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    pointer-events: none;
}

.cs-detail-cta__copy,
.cs-detail-cta__panel {
    position: relative;
    z-index: 1;
}

.cs-detail-cta__inner .cs-section-eyebrow {
    margin-bottom: 18px;
}

.cs-detail-cta__inner h2 {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.cs-detail-cta__inner p {
    max-width: 520px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.8;
}

.cs-detail-cta__inner .cs-cta__btn {
    margin-top: 30px;
    align-self: flex-start;
    width: 100%;
    justify-content: center;
}

.cs-detail-cta__panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.cs-detail-cta__panel div {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 72px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
}

.cs-detail-cta__panel span {
    color: var(--cs-detail-teal);
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.cs-detail-cta__panel div:nth-child(2) span {
    color: var(--cs-detail-red);
}

.cs-detail-cta__panel strong {
    color: #fff;
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.3;
}

/* ── Responsive ── */

/* Tablet landscape: 961px – 1100px */
@media (max-width: 1100px) {
    .cs-detail-hero__body {
        grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
    }
}

/* Tablet: ≤960px — stack everything to single column */
@media (max-width: 960px) {
    .cs-detail-hero__body {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 60px 0 72px;
    }

    

    .cs-detail-cta__inner {
        grid-template-columns: 1fr;
        padding: 42px;
    }

    .cs-detail-hero__proof {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 12px;
        align-items: start;
    }

    .cs-detail-hero__brand {
        min-height: 160px;
        width: 100%;
    }

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

    .cs-detail-split,
    .cs-detail-performance-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cs-detail-performance-col--results {
        position: static;
        padding-top: 32px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .cs-detail-results__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Mobile large: ≤680px */
@media (max-width: 680px) {
    .cs-detail-wrap,
    .cs-detail-hero__body {
        width: min(calc(100% - 32px), 1220px);
    }

    .cs-detail-section {
        padding: 64px 0;
    }

    .cs-detail-section--intro {
        padding-top: 52px;
        padding-bottom: 56px;
    }

    .cs-detail-hero__body {
        padding: 58px 0 60px;
    }

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

    .cs-detail-hero__brand {
        min-height: 140px;
    }

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

    .cs-detail-heading {
        margin-bottom: 32px;
    }

    .cs-detail-panel {
        padding: 28px 24px;
    }

    .cs-detail-action__header {
        grid-template-columns: 36px 1fr 18px;
        padding: 16px 18px;
    }

    .cs-detail-action__content {
        padding: 0 18px 20px 68px;
    }

    .cs-detail-cta__inner {
        padding: 32px 24px;
    }

    .cs-detail-cta__inner .cs-cta__btn {
        align-self: stretch;
        justify-content: center;
    }

    .cs-detail-cta__panel {
        padding: 10px;
    }

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

/* Mobile small: ≤480px */
@media (max-width: 480px) {
    .cs-detail-hero__body {
        padding: 60px 0 48px;
    }

    .cs-detail-hero__title {
        font-size: clamp(1.55rem, 8vw, 2.15rem);
    }

    .cs-detail-section {
        padding: 52px 0;
    }

    .cs-detail-section--intro {
        padding-top: 40px;
        padding-bottom: 44px;
    }

    .cs-detail-panel__number {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .cs-detail-metric strong {
        font-size: 1.08rem;
    }

    .cs-detail-cta__inner {
        padding: 28px 20px;
    }

    .cs-detail-cta__panel div {
        grid-template-columns: 38px 1fr;
        min-height: 62px;
        padding: 13px;
    }
}

/* Override global .containerW.is-visible width constraint so sections
   remain full-width on the detail page. */
.cs-detail .cs-detail-section.containerW,
.cs-detail .cs-detail-section.containerW.is-visible {
    width: 100%;
    max-width: none;
    margin-top: 0;
    margin-bottom: 0;
}

.cs-detail .cs-detail-section.containerB {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

/* The list-page rule sets background-color: #050505 for the first containerW
   after the hero. Override it back to white for the detail page. */
.cs-detail .case-studies-page-header-bg + .containerW,
.cs-detail .case-studies-page-header-bg + .containerW.is-visible {
    background-color: #fff;
    padding-top: 0;
}

/* Fix the inherited ::after from caseStudiesNewOne.css which fades to #050505.
   Override to fade the hero into the white body below. */
.cs-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 62%, rgba(5, 7, 10, 0.22) 82%, #ffffff 100%);
    opacity: 1;
    mix-blend-mode: normal;
}

.cs-detail-hero__body {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
    width: min(calc(100% - 48px), 1220px);
    min-height: 88vh;
    margin: 0 auto;
    padding: 63px 0 88px;
}

.cs-detail-hero__content {
    display: flex;
    flex-direction: column;
}

.cs-detail-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.cs-detail-hero__meta .cs-hero__eyebrow {
    margin: 0;
}

.cs-detail-hero__logo {
    display: inline-flex;
    align-items: center;
}

.cs-detail-hero__logo img {
    display: block;
    height: 26px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.65;
}

.cs-detail-hero__title {
    margin: 0;
    color: #fff;
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.55rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.cs-detail-hero__subtitle {
    max-width: 600px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: clamp(0.9rem, 1.3vw, 1.02rem);
    line-height: 1.76;
}

.cs-detail-hero__services {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
}

.cs-detail-hero__services span {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
    font-family: "PoppinsSemiBold", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cs-detail-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 38px;
}

.cs-detail-hero__link {
    color: var(--cs-detail-teal);
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.cs-detail-hero__link:hover {
    color: #fff;
}

/* ── Hero right: brand logo + metrics ── */

.cs-detail-hero__proof {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: center;
}

.cs-detail-hero__brand {
    display: flex;
    min-height: 210px;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border: 1px solid rgba(17, 17, 18, 0.08);
    border-radius: 14px;
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.cs-detail-hero__brand img {
    display: block;
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cs-detail-hero__metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.cs-detail-metric {
    padding: 13px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--cs-detail-accent);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: background 0.2s;
}

.cs-detail-metric:hover {
    background: rgba(255, 255, 255, 0.11);
}

.cs-detail-metric strong,
.cs-detail-metric span {
    display: block;
}

.cs-detail-metric strong {
    color: #fff;
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: clamp(1rem, 1.55vw, 1.32rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.cs-detail-metric span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.56);
    font-family: "PoppinsRegular", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* ── Shared layout ── */

.cs-detail-wrap {
    width: min(calc(100% - 48px), 1220px);
    margin: 0 auto;
}

.cs-detail-section {
    padding: 96px 0;
    padding-top: 4px;
}

.cs-detail-section--intro {
    padding-top: 72px;
    padding-bottom: 80px;
}

.cs-detail-section--dark,
.cs-detail-cta {
    /* background: var(--cs-detail-dark); */
    color: #fff;
}

/* ── Context / intro ── */

.cs-detail-intro {
    max-width: 860px;
}

.cs-detail-intro .cs-section-eyebrow {
    display: block;
    margin-bottom: 18px;
}

.cs-detail-intro h2 {
    margin: 0 0 22px;
    font-family: "PoppinsBold", Arial, sans-serif;
    font-weight: 900;
    font-size: clamp(1.7rem, 3.5vw, 2.8rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--cs-detail-ink);
}

.cs-detail-intro p {
    margin: 0;
    color: var(--cs-detail-muted);
    font-size: clamp(0.97rem, 1.4vw, 1.08rem);
    line-height: 1.9;
}

/* ── Objectives + Approach ── */

.cs-detail-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cs-detail-panel {
    position: relative;
    overflow: hidden;
    padding: 44px;
    border-radius: 16px;
    background: var(--cs-detail-surface);
    border: 1px solid var(--cs-detail-border);
}

.cs-detail-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--cs-detail-accent);
    border-radius: 4px 0 0 4px;
}

.cs-detail-panel--dark {
    background: #0c0c0d;
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.cs-detail-panel__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--cs-detail-accent-soft);
    color: var(--cs-detail-accent);
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.cs-detail-panel h2,
.cs-detail-heading h2,
.cs-detail-intro h2,
.cs-detail-cta__inner h2 {
    margin: 0;
    font-family: "PoppinsBold", Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.1;

}

.cs-detail-panel h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.cs-detail-panel--dark h2 {
    color: #fff;
}

.cs-detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.cs-detail-list li {
    position: relative;
    padding-left: 20px;
    color: var(--cs-detail-muted);
    font-size: 15px;
    line-height: 1.75;
}

.cs-detail-panel--dark .cs-detail-list li {
    color: rgba(255, 255, 255, 0.60);
}

.cs-detail-list li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cs-detail-accent);
    flex-shrink: 0;
}

/* ── Section headings ── */

.cs-detail-heading {
    margin-bottom: 44px;
}

.cs-detail-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    max-width: 640px;
    margin-top: 23px;
}

.cs-detail-section--dark .cs-detail-heading h2 {
    color: #fff;
}

/* ── Performance: accordion + results ── */

.cs-detail-performance-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.cs-detail-performance-col {
    min-width: 0;
}

.cs-detail-performance-col .cs-detail-heading {
    margin-bottom: 28px;
}

.cs-detail-performance-col .cs-detail-heading h2 {
    max-width: 900px;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

.cs-detail-performance-col--results {
    position: sticky;
    top: 104px;
}

/* ── Accordion ── */

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

.cs-detail-heading--results {
    margin-top: 0;
    padding-top: 0;
}

.cs-detail-action {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: border-color 0.2s;
}

.cs-detail-action:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.cs-detail-action__header {
    display: grid;
    grid-template-columns: 44px 1fr 22px;
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 20px 22px;
    border: 1px solid gray;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.cs-detail-action__header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cs-detail-action__header span {
    color: var(--cs-detail-accent);
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.cs-detail-action__header strong {
    font-family: "PoppinsSemiBold", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.88);
}

.cs-detail-action__header[aria-expanded="true"] strong {
    color: #fff;
}

.cs-detail-action__header svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.25s ease, color 0.2s;
    flex-shrink: 0;
    justify-self: end;
}

.cs-detail-action__header[aria-expanded="true"] svg {
    transform: rotate(45deg);
    color: var(--cs-detail-accent);
}

.cs-detail-action__content {
    padding: 0 22px 22px 80px;
}

.cs-detail-action__content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    line-height: 1.82;
}

/* ── Results ── */

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

.cs-detail-result {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s, border-color 0.2s;
}

.cs-detail-result:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}

.cs-detail-result span {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--cs-detail-accent);
    box-shadow: 0 0 0 6px var(--cs-detail-accent-soft);
    flex-shrink: 0;
}

.cs-detail-result strong {
    color: rgba(255, 255, 255, 0.86);
    font-family: "PoppinsRegular", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

/* ── Related case studies ── */

.cs-detail-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.cs-detail-related__card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--cs-detail-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(17, 17, 18, 0.05);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.cs-detail-related__card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
}

.cs-card--red.cs-detail-related__card::before  { background: #e53740; }
.cs-card--teal.cs-detail-related__card::before { background: #69c1bd; }

.cs-detail-related__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(17, 17, 18, 0.11);
    border-color: rgba(229, 55, 64, 0.22);
}

.cs-detail-related__card a {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.cs-detail-related__card h3 {
    margin: 0;
    color: var(--cs-detail-ink);
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.3;
}

.cs-detail-related__card p {
    margin: 0;
    color: var(--cs-detail-muted);
    font-size: 14px;
    line-height: 1.65;
    flex: 1;
}

.cs-detail-related__card > a > strong {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--cs-detail-surface);
    color: var(--cs-detail-ink);
    font-size: 13px;
    line-height: 1.5;
}

.cs-detail-related__card .cs-link {
    color: var(--cs-detail-muted);
    margin-top: auto;
}

.cs-detail-related__card:hover .cs-link {
    color: var(--cs-detail-red);
}

/* ── CTA ── */

.cs-detail-cta__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(28px, 6vw, 80px);
    align-items: center;
    width: 100%;
    padding: 56px;
    margin-top: 42px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 18%, rgba(105, 193, 189, 0.18), transparent 34%),
        radial-gradient(circle at 92% 74%, rgba(229, 55, 64, 0.2), transparent 34%),
        #080909;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.cs-detail-cta__inner::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    pointer-events: none;
}

.cs-detail-cta__copy,
.cs-detail-cta__panel {
    position: relative;
    z-index: 1;
}

.cs-detail-cta__inner .cs-section-eyebrow {
    margin-bottom: 18px;
}

.cs-detail-cta__inner h2 {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.cs-detail-cta__inner p {
    max-width: 520px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.8;
}

.cs-detail-cta__inner .cs-cta__btn {
    margin-top: 30px;
    align-self: flex-start;
}

.cs-detail-cta__panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.cs-detail-cta__panel div {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 72px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
}

.cs-detail-cta__panel span {
    color: var(--cs-detail-teal);
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.cs-detail-cta__panel div:nth-child(2) span {
    color: var(--cs-detail-red);
}

.cs-detail-cta__panel strong {
    color: #fff;
    font-family: "PoppinsBold", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.3;
}

/* ── Responsive ── */

/* Tablet landscape: 961px – 1100px */
@media (max-width: 1100px) {
    .cs-detail-hero__body {
        grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
    }
}

/* Tablet: ≤960px — stack everything to single column */
@media (max-width: 960px) {
    .cs-detail-hero__body {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 140px 0 72px;
    }

    .cs-detail-cta__inner {
        grid-template-columns: 1fr;
        padding: 42px;
    }

    .cs-detail-hero__proof {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 12px;
        align-items: start;
    }

    .cs-detail-hero__brand {
        min-height: 160px;
        width: 100%;
    }

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

    .cs-detail-split,
    .cs-detail-performance-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cs-detail-performance-col--results {
        position: static;
        padding-top: 32px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .cs-detail-results__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Mobile large: ≤680px */
@media (max-width: 680px) {
    .cs-detail-wrap,
    .cs-detail-hero__body {
        width: min(calc(100% - 32px), 1220px);
    }

    .cs-detail-section {
        padding: 64px 0;
    }

    .cs-detail-section--intro {
        padding-top: 52px;
        padding-bottom: 56px;
    }

    .cs-detail-hero__body {
        padding: 120px 0 60px;
    }

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

    .cs-detail-hero__brand {
        min-height: 140px;
    }

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

    .cs-detail-heading {
        margin-bottom: 32px;
    }

    .cs-detail-panel {
        padding: 28px 24px;
    }

    .cs-detail-action__header {
        grid-template-columns: 36px 1fr 18px;
        padding: 16px 18px;
    }

    .cs-detail-action__content {
        padding: 0 18px 20px 68px;
    }

    .cs-detail-cta__inner {
        padding: 32px 24px;
    }

    .cs-detail-cta__inner .cs-cta__btn {
        align-self: stretch;
        justify-content: center;
    }

    .cs-detail-cta__panel {
        padding: 10px;
    }

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

/* Mobile small: ≤480px */
@media (max-width: 480px) {
    .cs-detail-hero__body {
        padding: 104px 0 48px;
    }

    .cs-detail-hero__title {
        font-size: clamp(1.55rem, 8vw, 2.15rem);
    }

    .cs-detail-section {
        padding: 52px 0;
    }

    .cs-detail-section--intro {
        padding-top: 40px;
        padding-bottom: 44px;
    }

    .cs-detail-panel__number {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .cs-detail-metric strong {
        font-size: 1.08rem;
    }

    .cs-detail-cta__inner {
        padding: 28px 20px;
    }

    .cs-detail-cta__panel div {
        grid-template-columns: 38px 1fr;
        min-height: 62px;
        padding: 13px;
    }
}

/* Override global .containerW.is-visible width constraint so sections
   remain full-width on the detail page. */
.cs-detail .cs-detail-section.containerW,
.cs-detail .cs-detail-section.containerW.is-visible {
    width: 100%;
    max-width: none;
    margin-top: 0;
    margin-bottom: 0;
}

.cs-detail .cs-detail-section.containerB {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

/* The list-page rule sets background-color: #050505 for the first containerW
   after the hero. Override it back to white for the detail page. */
.cs-detail .case-studies-page-header-bg + .containerW,
.cs-detail .case-studies-page-header-bg + .containerW.is-visible {
    background-color: #fff;
    padding-top: 0;
}
