/* ------------- WORK CASE STUDY ------------- */

.case-study-hero {
    margin-bottom: 70px;
}

.case-study-intro {
    max-width: 760px;
    margin-bottom: 40px;
}

.case-study-intro h1 {
    max-width: 760px;
    margin-bottom: 32px;
    color: var(--text);
    font-size: clamp(34px, 3.7vw, 52px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0.01em;
}

.case-study-meta {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 80px;
    max-width: 850px;
}

.case-study-meta div {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 18px;
}

.case-study-meta div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(179, 140, 255, 0.55);
}

.case-study-meta span {
    color: var(--purple-light);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.case-study-meta p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.4;
}

.case-study-hero-image {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
}

.case-study-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study-copy-section {
    margin-bottom: 80px;
}

.case-study-copy h2 {
    margin-bottom: 18px;
    color: var(--text);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

.overview-group {
    margin-bottom: 28px;
}

.overview-group:last-child {
    margin-bottom: 0;
}

.overview-group h3 {
    margin-bottom: 6px;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

.case-study-image {
    width: 100%;
    margin-top: 28px;
    overflow: hidden;
    border-radius: var(--radius);
}

.case-study-image img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study-image-dark {
    background: #080b14;
}

.case-study-copy-after-image {
    margin-top: 26px;
}

.case-study-copy-between-images {
    margin-top: 26px;
    margin-bottom: 28px;
}

.case-study-next {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.case-study-next-label {
    width: 360px;
    text-align: left;
}

.ui-image-grid {
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    gap: 16px;
    width: 100%;
    margin-top: 28px;
}

.ui-image {
    overflow: hidden;
    border-radius: var(--radius);
}

.ui-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.research-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

/* ------------- WORK RESPONSIVENESS ------------- */

@media (max-width: 900px) {

    .case-study-intro {
        max-width: 100%;
    }

    .case-study-meta {
        max-width: 100%;
    }

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

    .ui-image-grid {
        grid-template-columns: 1fr;
    }

    .ui-image img {
        height: auto;
    }
}

@media (max-width: 600px) {

    .case-study-hero {
        margin-bottom: 55px;
    }

    .case-study-intro h1 {
        font-size: 40px;
    }

    .case-study-meta {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .case-study-copy h2 {
        font-size: 20px;
    }
}