/* =========================
   CLFMA CASE STUDY PAGE
========================= */

html {
    scrollbar-gutter: stable;
}

.case-page {
    background: #ffffff;
    color: #050505;
    overflow-x: hidden;
}

.case-page * {
    box-sizing: border-box;
}

.case-wrap {
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
    position: relative;
}

/* =========================
   HERO
========================= */

.case-hero {
    position: relative;
    padding: 145px 0 80px;
    background: #ffffff;
    overflow: hidden;
}

.case-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: 90px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 226, 122, .18), transparent 62%);
    filter: blur(28px);
    pointer-events: none;
}

.case-back {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-bottom: 70px;
    color: rgba(0, 0, 0, .45);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.case-back:hover {
    color: #14e27a;
}

.case-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    /*align-items: end;*/
}

.case-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #14e27a;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 2.6px;
    text-transform: uppercase;
}

.case-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: #14e27a;
}

.case-hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(48px, 5.2vw, 60px);
    line-height: .94;
    letter-spacing: -2px;
    font-weight: 500;
}

.case-hero-right p {
    margin: 0;
    max-width: 520px;
    font-size: 18px;
    line-height: 1.58;
    color: rgba(0, 0, 0, .66);
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.case-tags span {
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .12);
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
}

.case-hero-media {
    position: relative;
    z-index: 2;
    margin-top: 70px;
    width: 100%;
    height: 560px;
    border-radius: 24px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .12);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.case-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   INCOMING TRANSITION
========================= */

html.case-entering .case-hero-media,
html.case-entering .case-back,
html.case-entering .case-eyebrow,
html.case-entering .case-hero h1,
html.case-entering .case-hero-right {
    opacity: 0 !important;
    visibility: hidden !important;
}

.incoming-case-cover {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #111;
    border-radius: 24px;
    overflow: hidden;
    will-change: top, left, width, height, opacity, border-radius;
    transform: translateZ(0);
    backface-visibility: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .16);
}

/* =========================
   EDITORIAL SECTIONS
========================= */

.case-editorial {
    padding: 110px 0;
    background: #ffffff;
    overflow: hidden;
}

.case-light-green {
    background:
        radial-gradient(circle at 88% 10%, rgba(20, 226, 122, .14), transparent 34%),
        #ffffff;
}

.case-editorial-grid {
    display: grid;
    grid-template-columns: minmax(260px, .42fr) minmax(0, .58fr);
    gap: 70px;
    align-items: start;
}

.case-editorial-side {
    position: sticky;
    top: 130px;
}

.case-editorial-side h2 {
    margin: 0;
    max-width: 390px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: .94;
    letter-spacing: -2px;
    font-weight: 500;
    color: #050505;
}

.case-editorial-side h2::before {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-bottom: 22px;
    background: #14e27a;
    border-radius: 999px;
}

.case-editorial-content {
    max-width: 100%;
    min-width: 0;
}

.case-copy-group {
    margin-bottom: 54px;
}

.case-copy-group:last-child {
    margin-bottom: 0;
}

.case-copy-group h3 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -.5px;
    font-weight: 400;
    color: #050505;
}

.case-copy-group p,
.case-editorial-content p {
    margin: 0 0 22px;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.68;
    letter-spacing: -.15px;
    color: rgba(0, 0, 0, .72);
}

.case-big-copy {
    max-width: 940px !important;
    margin-bottom: 30px !important;
    font-size: clamp(28px, 2.8vw, 30px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1px !important;
    font-weight: 450 !important;
    color: #050505 !important;
}

/* BULLETS */

.case-premium-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 15px;
}

.case-premium-list li {
    position: relative;
    padding-left: 30px;
    max-width: 780px;
    font-size: 17px;
    line-height: 1.58;
    letter-spacing: -.1px;
    color: rgba(0, 0, 0, .74);
}

.case-premium-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    top: -1px;
    color: #14e27a;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

/* =========================
   KEY RESULTS
========================= */

.case-results-premium {
    padding: 120px 0;
    background: #f5f5f2;
}

/*.case-section-label {*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    gap: 10px;*/
/*    color: #14e27a;*/
/*    font-size: 12px;*/
/*    line-height: 1;*/
/*    font-weight: 900;*/
/*    letter-spacing: 2.4px;*/
/*    text-transform: uppercase;*/
/*}*/

/*.case-section-label::before {*/
/*    content: "";*/
/*    width: 24px;*/
/*    height: 1px;*/
/*    background: #14e27a;*/
/*}*/


.case-results-head {
    max-width: 980px;
    margin-bottom: 60px;
}

.case-results-head h2 {
    margin: 24px 0 0;
    font-size: clamp(44px, 5vw, 60px);
    line-height: .92;
    letter-spacing: -2px;
    font-weight: 500;
}

.case-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, .12);
}

.case-result-card {
    min-height: 300px;
    padding: 38px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-result-card h3 {
    margin: 0;
    font-size: clamp(58px, 6vw, 60px);
    line-height: .84;
    letter-spacing: -2px;
    font-weight: 500;
    color: #14e27a;
}

.case-result-card p {
    margin: 0;
    max-width: 360px;
    font-size: 17px;
    line-height: 1.48;
    color: rgba(0, 0, 0, .68);
}

/* =========================
   PLATFORM STRATEGY
========================= */

.case-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 46px 0 34px;
}

.case-platform-card {
    min-height: 260px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .08);
}

.case-platform-card h3 {
    margin: 0 0 70px;
    font-size: 26px;
    line-height: 1;
    letter-spacing: -.5px;
}

.case-platform-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}

/* =========================
   SOCIAL SHOWCASE
========================= */

.case-social-showcase {
    padding: 110px 0 120px;
    background: #ffffff;
    color: #050505;
    overflow: hidden;
}

.case-social-head {
    margin-bottom: 54px;
}

.case-social-head h2 {
    margin: 24px 0 0;
    max-width: 900px;
    font-size: clamp(46px, 5.4vw, 60px);
    line-height: .9;
    letter-spacing: -2px;
    font-weight: 500;
    color: #050505;
}


.case-social-marquee {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    cursor: grab;

    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
}



.case-social-marquee::-webkit-scrollbar {
    display: none;
}

.case-social-marquee.is-dragging {
    cursor: grabbing;
}


.case-social-track {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: max-content;

    animation: none !important;
    transform: none !important;
    will-change: auto;
}


.case-social-marquee:hover .case-social-track,
.case-social-marquee.is-dragging .case-social-track {
    animation-play-state: paused;
}


.case-social-track img,
.case-social-track video {
    width: 360px;
    height: 460px;
    flex: 0 0 auto;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    margin: 0;
    user-select: none;
    pointer-events: none;
}



@keyframes clfmaSocialMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* =========================
   SIMPLE NEXT
========================= */

.case-next-simple {
    padding: 50px 0 110px;
    background: #ffffff;
}

.case-next-simple a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 34px;
    border-top: 1px solid rgba(0, 0, 0, .16);
    color: #050505;
    text-decoration: none;
}

.case-next-simple span {
    color: rgba(0, 0, 0, .46);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.case-next-simple strong {
    font-size: clamp(34px, 4vw, 60px);
    line-height: .95;
    letter-spacing: -2px;
    font-weight: 500;
}

.case-next-simple a:hover strong {
    color: #14e27a;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
    .case-wrap {
        width: calc(100% - 40px);
    }



    .case-hero {
        padding: 120px 0 58px;
    }

    .case-hero-grid,
    .case-editorial-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .case-hero h1 {
        font-size: 40px;
        line-height: 1;
        letter-spacing: -1.7px;
    }

    .case-hero-right p {
        font-size: 15.5px;
        line-height: 1.6;
    }

    .case-hero-media {
        margin-top: 42px;
        height: 360px;
        border-radius: 18px;
    }

    .case-editorial,
    .case-results-premium,
    .case-social-showcase {
        padding: 40px 0;
    }

    .case-editorial-side {
        position: relative;
        top: auto;
    }

    .case-editorial-side h2 {
        max-width: 100%;
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .case-copy-group {
        margin-bottom: 40px;
    }

    .case-copy-group h3 {
        font-size: 21px;
    }

    .case-copy-group p,
    .case-editorial-content p,
    .case-premium-list li {
        font-size: 15px;
        line-height: 1.6;
    }

    .case-big-copy {
        font-size: 25px !important;
        line-height: 1.18 !important;
        letter-spacing: -1px !important;
    }

    .case-results-grid,
    .case-platform-grid {
        grid-template-columns: 1fr;
    }

    .case-result-card {
        min-height: 220px;
    }

    .case-social-head h2,
    .case-results-head h2 {
        font-size: 40px;
        line-height: .95;
        letter-spacing: -1.7px;
    }

    .case-social-track img {
        width: 260px;
        height: 340px;
    }

    .case-next-simple a {
        flex-direction: column;
        align-items: flex-start;
    }
}




/* =========================
   CASE SECTION STICKY FINAL
========================= */

.case-editorial {
    position: relative;
    padding: 80px 0;
    background: #ffffff;
    overflow: visible !important;
}

.case-editorial-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 90px;
    align-items: start;
}

/* left title sticky */
.case-editorial-side {
    position: sticky;
    top: 145px;
    align-self: start;
    min-height: 260px;
}

/* left title design */
.case-editorial-side h2 {
    margin: 0;
    max-width: 360px;

    font-size: clamp(42px, 4.4vw, 60px);
    line-height: .92;
    letter-spacing: -2px;
    font-weight: 500;

    color: #050505;
}

.case-editorial-side h2::before {
    content: "";
    display: block;

    width: 34px;
    height: 2px;

    margin-bottom: 24px;

    background: #14e27a;
    border-radius: 999px;
}

/* right content */
.case-editorial-content {
    max-width: 820px;
    min-width: 0;
}

.case-copy-group {
    margin-bottom: 58px;
}

.case-copy-group:last-child {
    margin-bottom: 0;
}

.case-copy-group h3 {
    margin: 0 0 18px;

    font-size: 25px;
    line-height: 1.08;
    letter-spacing: -.5px;
    font-weight: 600;

    color: #050505;
}

.case-copy-group p,
.case-editorial-content p {
    margin: 0 0 24px;

    max-width: 780px;

    font-size: 18px;
    line-height: 1.68;
    letter-spacing: -.15px;

    color: rgba(0, 0, 0, .72);
}

/* bullet spacing fix */
.case-premium-list {
    margin: 0;
    padding: 0;
    list-style: none;

    display: grid;
    gap: 16px;
}

.case-premium-list li {
    position: relative;
    padding-left: 32px;

    max-width: 790px;

    font-size: 17px;
    line-height: 1.58;
    letter-spacing: -.1px;

    color: rgba(0, 0, 0, .74);
}

.case-premium-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    top: -1px;

    color: #14e27a;

    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

/* remove any accidental outline */
.case-editorial-side,
.case-editorial-side h2 {
    outline: none !important;
    border: none !important;
}

/* mobile no sticky */
@media (max-width: 900px) {
    .case-editorial {
        padding: 40px 0;
    }

    .case-editorial-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .case-editorial-side {
        position: relative;
        top: auto;
        min-height: auto;
    }

    .case-editorial-side h2 {
        max-width: 100%;
        font-size: 38px;
        line-height: .96;
        letter-spacing: -1.5px;
    }

    .case-copy-group p,
    .case-editorial-content p,
    .case-premium-list li {
        font-size: 15.5px;
        line-height: 1.6;
    }
}


/* =========================
   SOCIAL SCROLL SMOOTH FIX
========================= */

 .case-social-marquee {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    cursor: grab;
    overscroll-behavior: contain;
}

.case-social-marquee::-webkit-scrollbar {
    display: none;
}

.case-social-marquee.is-dragging {
    cursor: grabbing;
}

.case-social-track {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: max-content;

    animation: none !important;
    transform: none !important;
    will-change: auto;
}

.case-social-track img {
    width: 360px;
    height: 460px;
    flex: 0 0 auto;

    object-fit: cover;
    display: block;

    border-radius: 0 !important;
    margin: 0;

    user-select: none;
    pointer-events: none;
}

@media (max-width: 900px) {

    .case-social-track img,
    .case-social-track video {
        width: 260px;
        height: 340px;
    }
}