* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f5f2f7;
    color: #28313b;
    font-family: Arial, sans-serif;
}

.case-navbar {
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6vw;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 1000;

    background: rgba(245, 242, 247, 0.90);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(40, 49, 59, 0.08);
}

.case-logo {
    color: #28313b;
    text-decoration: none;

    font-size: 18px;
    font-weight: bold;

    letter-spacing: 2px;
}

.case-back {
    color: #66717a;
    text-decoration: none;

    font-size: 13px;
    font-weight: bold;
}

.case-back:hover {
    color: #8e7ba5;
}

.language {
    display: flex;
    align-items: center;
    gap: 7px;
}

.language button {
    border: none;
    background: none;

    cursor: pointer;

    color: #8d949a;

    font-size: 12px;
}

.language .active {
    color: #28313b;
    font-weight: bold;
}


/* HERO */

.case-hero {
    padding: 160px 8vw 80px;

    max-width: 1250px;
    margin: 0 auto;
}

.case-number {
    display: block;

    margin-bottom: 20px;

    color: #66717a;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 2px;
}

.case-hero h1 {
    max-width: 900px;

    margin: 0 0 25px;

    font-size: clamp(48px, 7vw, 88px);

    line-height: 0.95;

    letter-spacing: -4px;
}

.case-intro {
    max-width: 720px;

    margin: 0 0 30px;

    color: #66717a;

    font-size: 18px;
    line-height: 1.7;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-tags span {
    padding: 8px 13px;

    border-radius: 20px;

    background: #eef5f3;

    color: #28313b;

    font-size: 11px;
    font-weight: bold;
}


/* HERO IMAGE */

.case-image {
    max-width: 1250px;

    margin: 0 auto 90px;

    padding: 0 8vw;
}

.case-image img {
    width: 100%;

    display: block;

    border-radius: 22px;

    box-shadow:
        0 25px 60px rgba(40, 49, 59, 0.10);
}


/* CONTENT */

.case-main {
    max-width: 1000px;

    margin: 0 auto;

    padding: 0 8vw 100px;
}

.case-section {
    padding: 75px 0;

    border-top: 1px solid rgba(40, 49, 59, 0.10);
}

.case-section:first-child {
    border-top: none;
}

.case-label {
    margin: 0 0 15px;

    color: #8e7ba5;

    font-size: 10px;
    font-weight: bold;

    letter-spacing: 2px;
}

.case-section h2 {
    margin: 0 0 25px;

    font-size: clamp(30px, 4vw, 48px);

    line-height: 1;

    letter-spacing: -2px;
}

.case-section h3 {
    margin: 35px 0 12px;

    font-size: 20px;
}

.case-section p {
    max-width: 800px;

    color: #66717a;

    font-size: 15px;

    line-height: 1.8;
}

.case-section ul {
    max-width: 800px;

    padding-left: 20px;
}

.case-section li {
    margin-bottom: 10px;

    color: #66717a;

    font-size: 15px;

    line-height: 1.7;
}


/* METRICS */

.case-metrics {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-top: 35px;
}

.metric {
    padding: 25px;

    background: white;

    border-radius: 18px;

    border: 1px solid rgba(40, 49, 59, 0.06);
}

.metric strong {
    display: block;

    margin-bottom: 8px;

    font-size: 28px;

    letter-spacing: -1px;
}

.metric span {
    color: #66717a;

    font-size: 11px;
}


/* IMAGE INSIDE CASE STUDY */

.case-figure {
    margin: 40px 0;
}

.case-figure img {
    width: 100%;

    display: block;

    border-radius: 18px;

    background: white;

    box-shadow:
        0 15px 40px rgba(40, 49, 59, 0.08);
}

.case-caption {
    margin-top: 10px;

    color: #8d949a;

    font-size: 11px;
}


/* TECHNICAL BOX */

.tech-box {
    padding: 28px;

    background: #eef5f3;

    border-radius: 18px;

    margin-top: 30px;
}

.tech-box p {
    margin: 0;

    color: #28313b;

    font-size: 13px;

    line-height: 1.8;
}


/* CODE / FORMULAS */

.code-box {
    margin: 30px 0;

    padding: 22px;

    overflow-x: auto;

    border-radius: 14px;

    background: #28313b;

    color: #eef5f3;

    font-family: monospace;

    font-size: 13px;

    line-height: 1.7;
}


/* TWO COLUMNS */

.case-columns {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    margin-top: 35px;
}

.case-column {
    padding: 25px;

    background: white;

    border-radius: 18px;

    border: 1px solid rgba(40, 49, 59, 0.06);
}

.case-column h3 {
    margin-top: 0;
}


/* LINKS */

.case-links {
    display: flex;

    flex-wrap: wrap;

    gap: 20px;

    margin-top: 35px;
}

.case-links a {
    display: inline-block;

    padding: 13px 20px;

    border-radius: 25px;

    background: #28313b;

    color: white;

    text-decoration: none;

    font-size: 12px;

    font-weight: bold;
}

.case-links a.secondary {
    background: transparent;

    color: #28313b;

    border: 1px solid rgba(40, 49, 59, 0.20);
}

.case-links a:hover {
    opacity: 0.85;
}


/* FOOTER */

.case-footer {
    padding: 50px 8vw;

    background: #28313b;

    color: white;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;
}

.case-footer a {
    color: #b9d8d2;

    text-decoration: none;

    font-size: 13px;

    font-weight: bold;
}


/* MOBILE */

@media (max-width: 700px) {

    .case-navbar {
        height: 70px;

        padding: 0 6vw;
    }

    .case-back {
        display: none;
    }

    .case-hero {
        padding: 125px 7vw 60px;
    }

    .case-hero h1 {
        font-size: clamp(45px, 13vw, 70px);

        letter-spacing: -3px;
    }

    .case-intro {
        font-size: 15px;
    }

    .case-image {
        margin-bottom: 50px;

        padding: 0 7vw;
    }

    .case-main {
        padding: 0 7vw 60px;
    }

    .case-section {
        padding: 55px 0;
    }

    .case-metrics {
        grid-template-columns: 1fr;
    }

    .case-columns {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .case-footer {
        flex-direction: column;

        align-items: flex-start;
    }
}