/* Casa Mozambique case study - page-specific styles (all selectors scoped to .cscm) */
.cscm {
    --cs-bg: #050b16;
    --cs-bg2: #08111f;
    --cs-card: #0a1628;
    --cs-card2: #0d1d36;
    --cs-blue: #0b77c3;
    --cs-cyan: #36c5f0;
    --cs-line: rgba(11, 119, 195, .35);
    --cs-txt: #c9d6e6;
    position: relative;
    background: var(--cs-bg);
    color: var(--cs-txt);
    font-size: 1.0625rem;
    line-height: 1.7;
    overflow-x: hidden
}

.cscm *,
.cscm *::before,
.cscm *::after {
    box-sizing: border-box
}

.cscm img {
    max-width: 100%;
    height: auto;
    display: block
}

.cscm h1,
.cscm h2,
.cscm h3 {
    color: #fff;
    margin: 0;
    line-height: 1.2
}

.cscm p {
    margin: 0
}

.cscm a:focus-visible {
    outline: 2px solid var(--cs-cyan);
    outline-offset: 3px
}

.cscm .cscm-wrap {
    max-width: 1228px;
    padding-left: 24px;
    padding-right: 24px
}

.cscm .cscm-section {
    position: relative;
    padding: 0;
    margin-top: 30px
}

.cscm h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.01em
}

.cscm .cscm-lead {
    max-width: 760px;
    margin-top: 16px;
    font-size: inherit;
    font-weight: inherit
}

.cscm .cscm-head {
    margin-bottom: 30px
}

/* Bootstrap gutter helpers (equal gaps in both directions) */
.cscm .cscm-gut-20 {
    margin: 0 -10px -20px
}

.cscm .cscm-gut-20>* {
    padding: 0 10px;
    margin-bottom: 20px
}

.cscm .cscm-gut-16 {
    margin: 0 -8px -16px
}

.cscm .cscm-gut-16>* {
    padding: 0 8px;
    margin-bottom: 16px
}

.cscm .cscm-gut-56 {
    margin: 0 -28px -32px
}

.cscm .cscm-gut-56>* {
    padding: 0 28px;
    margin-bottom: 32px
}

/* buttons */
.cscm .cscm-btn {
    display: inline-block;
    background: var(--cs-blue);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    line-height: normal;
    padding: 15px 28px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--cs-blue);
    transition: transform .25s, box-shadow .25s, background .25s
}

.cscm .cscm-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -6px rgba(11, 119, 195, .8);
    background: #0d86dc
}

.cscm .cscm-btn-ghost {
    background: transparent;
    border-color: var(--cs-line)
}

.cscm .cscm-btn-ghost:hover {
    background: rgba(11, 119, 195, .18);
    box-shadow: none
}

/* cards */
.cscm .cscm-card {
    width: 100%;
    background: linear-gradient(160deg, var(--cs-card2), var(--cs-card));
    border: 1px solid var(--cs-line);
    border-radius: 14px;
    padding: 28px;
    transition: transform .3s, border-color .3s, box-shadow .3s
}

.cscm .cscm-card:hover {
    transform: translateY(-4px);
    border-color: var(--cs-cyan);
    box-shadow: 0 18px 40px -18px rgba(11, 119, 195, .7)
}

.cscm .cscm-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px
}

/* hero */
.cscm .cscm-hero {
    margin-top: 0;
    padding: 30px 0 0;
    background: radial-gradient(900px 500px at 85% 10%, rgba(11, 119, 195, .35), transparent 60%), radial-gradient(600px 400px at 0 100%, rgba(54, 197, 240, .1), transparent 60%)
}

.cscm .cscm-eyebrow {
    display: block;
    color: var(--cs-cyan);
    font-weight: 600;
    font-size: .9rem;
    line-height: normal;
    margin-bottom: 18px
}

.cscm .cscm-hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 22px
}

.cscm .cscm-hero-sub {
    margin-bottom: 32px;
    max-width: 560px
}

.cscm .cscm-shot {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--cs-line);
    box-shadow: 0 30px 80px -30px rgba(11, 119, 195, .8), 0 0 0 6px rgba(11, 119, 195, .07)
}

.cscm .cscm-shot img {
    width: 100%;
    aspect-ratio: 450/350;
    object-fit: cover
}

.cscm .cscm-hero .cscm-shot {
    animation: cscm-rise .9s cubic-bezier(.2, .7, .2, 1) both
}

@keyframes cscm-rise {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.97)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.cscm .cscm-facts {
    margin: 56px 0 0;
    border: 1px solid var(--cs-line);
    border-radius: 14px;
    background: rgba(10, 22, 40, .75);
    overflow: hidden
}

.cscm .cscm-fact {
    padding: 22px 26px;
    border-bottom: 1px solid var(--cs-line)
}

.cscm .cscm-fact:last-child {
    border-bottom: 0
}

.cscm .cscm-fact dt {
    color: var(--cs-cyan);
    font-weight: 600;
    font-size: .85rem;
    line-height: normal;
    margin-bottom: 6px
}

.cscm .cscm-fact dd {
    margin: 0;
    color: #fff;
    font-weight: 500;
    line-height: 1.5
}

/* client / background */
.cscm .cscm-logo-box {
    background: linear-gradient(150deg, #0e2a4d, var(--cs-card));
    border: 1px solid var(--cs-line);
    border-radius: 18px;
    padding: 48px 32px;
    display: grid;
    place-items: center;
    min-height: 240px
}

.cscm .cscm-logo-box img {
    width: min(260px, 100%)
}

.cscm .cscm-lead-flush {
    margin-top: 18px
}

/* numbers */
.cscm .cscm-num {
    display: block;
    font-weight: 700;
    font-size: 1.9rem;
    line-height: normal;
    background: linear-gradient(90deg, var(--cs-blue), var(--cs-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 14px
}

/* stats */
.cscm .cscm-stat {
    padding: 22px 18px
}

.cscm .cscm-stat-big {
    font-weight: 700;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    background: linear-gradient(90deg, #fff, var(--cs-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1
}

.cscm .cscm-stat-lab {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    line-height: normal;
    margin: 8px 0 6px
}

.cscm .cscm-stat-d {
    font-size: .98rem
}

/* solution: 3 columns, 20px gaps */
.cscm .cscm-sol-row {
    margin-bottom: 0
}

.cscm .cscm-sol-row:last-child {
    margin-bottom: -20px
}

.cscm .cscm-pic {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3/2;
    min-height: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--cs-line);
    background: var(--cs-card)
}

.cscm .cscm-pic img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .6s
}

.cscm .cscm-sol-row:hover .cscm-pic img {
    transform: scale(1.04)
}

.cscm .cscm-sol-card {
    display: flex;
    flex-direction: column;
    justify-content: center
}

.cscm .cscm-sol-card:hover {
    transform: none
}

.cscm .cscm-sol-no {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--cs-blue);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: normal;
    margin-bottom: 16px;
    box-shadow: 0 0 22px rgba(54, 197, 240, .45)
}

.cscm .cscm-sol-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px
}

/* technology */
.cscm .cscm-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap
}

.cscm .cscm-icons span {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eaf2fb;
    display: grid;
    place-items: center
}

.cscm .cscm-icons img {
    width: 26px;
    height: 26px;
    object-fit: contain
}

.cscm .cscm-icons b {
    font-weight: 700;
    font-size: .72rem;
    line-height: normal;
    color: #0b3b66
}

/* process */
.cscm .cscm-steps {
    position: relative
}

.cscm .cscm-steps::before {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    top: 22px;
    height: 2px;
    background: linear-gradient(90deg, var(--cs-blue), var(--cs-cyan), var(--cs-blue));
    opacity: .5;
    display: none
}

.cscm .cscm-step {
    position: relative;
    padding-top: 44px;
    padding-bottom: 28px;
    margin-top: 23px
}

.cscm .cscm-step-dot {
    position: absolute;
    top: -23px;
    left: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--cs-bg);
    border: 2px solid var(--cs-cyan);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    line-height: normal;
    z-index: 1;
    box-shadow: 0 0 20px rgba(54, 197, 240, .4)
}

/* outcome + CTA */
.cscm .cscm-outcome .cscm-shot {
    background: #fff
}

.cscm .cscm-outcome .cscm-shot img {
    object-fit: contain;
    aspect-ratio: 480/380
}

.cscm .cscm-cta-box {
    gap: 32px;
    padding: 32px 24px;
    border-radius: 18px;
    border: 1px solid var(--cs-line);
    background: radial-gradient(600px 260px at 0 0, rgba(54, 197, 240, .22), transparent 70%), linear-gradient(135deg, #0a3a66, var(--cs-blue) 60%, #0a4f8a)
}

.cscm .cscm-cta-box h2 {
    margin-bottom: 12px
}

.cscm .cscm-cta-box p {
    max-width: 720px;
    color: #e6f1fb
}

.cscm .cscm-btn-light {
    background: #fff;
    color: #06355e;
    border-color: #fff;
    white-space: nowrap
}

.cscm .cscm-btn-light:hover {
    color: #06355e;
    background: #eaf5ff;
    box-shadow: 0 12px 34px -8px rgba(0, 0, 0, .5)
}

.cscm .cscm-main-end {
    padding-bottom: 30px
}

/* responsive */
@media(min-width:576px) {
    .cscm .cscm-fact {
        border-right: 1px solid var(--cs-line)
    }

    .cscm .cscm-fact:nth-child(2n) {
        border-right: 0
    }

    .cscm .cscm-fact:nth-child(3),
    .cscm .cscm-fact:nth-child(4) {
        border-bottom: 0
    }
}

@media(min-width:768px) {
    .cscm .cscm-w40 {
        flex: 0 0 40%;
        max-width: 40%
    }

    .cscm .cscm-w60 {
        flex: 0 0 60%;
        max-width: 60%
    }

    .cscm .cscm-w525 {
        flex: 0 0 52.5%;
        max-width: 52.5%
    }

    .cscm .cscm-w475 {
        flex: 0 0 47.5%;
        max-width: 47.5%
    }

    .cscm .cscm-w3175 {
        flex: 0 0 31.75%;
        max-width: 31.75%
    }

    .cscm .cscm-w365 {
        flex: 0 0 36.5%;
        max-width: 36.5%
    }

    .cscm .cscm-cta-box {
        gap: 32px;
        padding: 44px 48px
    }
}

@media(min-width:992px) {

    .cscm .cscm-fact,
    .cscm .cscm-fact:nth-child(3),
    .cscm .cscm-fact:nth-child(4) {
        border-bottom: 0;
        border-right: 1px solid var(--cs-line)
    }

    .cscm .cscm-fact:last-child {
        border-right: 0
    }

    .cscm .cscm-steps::before {
        display: block
    }
}

@media(max-width:767.98px) {
    .cscm .cscm-section {
        margin-top: 30px
    }

    .cscm .cscm-sol-row {
        margin-bottom: 10px
    }

    .cscm .cscm-sol-row:last-child {
        margin-bottom: -20px
    }

    .cscm .cscm-sol-card {
        min-height: 0
    }
}

@media(max-width:560px) {
    .cscm .cscm-wrap {
        padding-left: 16px;
        padding-right: 16px
    }

    .cscm .cscm-btn {
        width: 100%;
        text-align: center
    }

    .cscm .cscm-card {
        padding: 22px
    }
}

@media(prefers-reduced-motion:reduce) {

    .cscm *,
    .cscm *::before,
    .cscm *::after {
        animation: none !important;
        transition: none !important
    }
}