.work {
    padding: 64px 0;
    background-color: var(--theme-surface);
}

.work__header {
    max-width: 620px;
    margin-bottom: 32px;
}

.work__label {
    margin: 0 0 6px;
    color: var(--brand-primary);
    font-size: .9rem;
    font-weight: 600;
}

.site .work__title {
    margin: 0;
    /* font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.5rem); */
    font-weight: 600;
    line-height: 1.3;
    text-wrap: balance;
}

.work__intro {
    margin: 10px 0 0;
    color: var(--theme-muted);
    font-size: .95rem;
    line-height: 1.75;
}

.work__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.case__media {
    overflow: hidden;
    border-radius: 22px;
    background-color: var(--theme-page);
    aspect-ratio: 16 / 9;
}

.site .case__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.case__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.case__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: #181b2b;
}

.site .case__placeholder img {
    width: 34%;
    max-width: 200px;
    height: auto;
    transition: none;
}

.case__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: .95rem;
}

.case__body {
    padding: 22px 4px 0;
}

.case__sector {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--brand-primary);
    font-size: .85rem;
    font-weight: 600;
}

.site .case__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 600;
    transition: color .25s ease;
}

.case:hover .case__title {
    color: var(--brand-primary);
}

.case__summary {
    display: -webkit-box;
    max-width: 640px;
    margin: 0;
    overflow: hidden;
    color: var(--theme-muted);
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.work__empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 44px 48px;
    border-radius: 24px;
    background-color: var(--brand-primary);
    color: #FFFFFF;
}

.site .work__empty-title {
    margin: 0 0 10px;
    color: #FFFFFF;
    font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
    font-weight: 600;
}

.work__empty-text {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .8);
    line-height: 1.85;
}

.work__empty-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 24px;
    border-radius: 12px;
    background-color: #FFFFFF;
    color: var(--brand-primary-deep) !important;
    font-weight: 600;
    transition: background-color .2s ease, transform .15s ease;
}

.work__empty-link:hover {
    background-color: var(--brand-primary-tint);
}

.work__empty-link:active {
    transform: scale(.97);
}

.article--project .article__header .container {
    max-width: 1200px;
    margin-inline: auto;
    text-align: start;
}

.article--project .article__title,
.article--project .article__meta {
    max-width: 760px;
}

.project-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 56px;
    max-width: 1200px;
    margin-inline: auto;
    padding-top: 40px;
}

.project-layout--text {
    grid-template-columns: minmax(0, 760px);
}

.project-layout .article__body,
.project-layout .article__cta,
.project-layout .article__back {
    max-width: none;
    margin-inline: 0;
}

.project-layout .article__body {
    padding-top: 0;
}

.project-layout .article__body > :first-child {
    margin-top: 0;
}

.project-layout .prose {
    font-size: 1.02rem;
    line-height: 1.95;
}

.project-layout .article__cta {
    flex-direction: column;
    align-items: flex-start;
}

.project-layout__media {
    position: sticky;
    top: 112px;
}

.project-cover {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--theme-line);
    border-radius: 20px;
    background-color: var(--theme-page);
}

.site .project-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.project-cover__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background-color: #16121F;
    color: #FFFFFF;
}

.project-cover__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.project-cover__name {
    overflow: hidden;
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.project-cover__hint {
    color: rgba(255, 255, 255, .7);
    font-size: .8rem;
}

.site .project-cover__link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 11px;
    background-color: #FFFFFF;
    color: #14101C;
    font-size: .9rem;
    font-weight: 600;
    transition: background-color .15s ease, color .15s ease;
}

.site .project-cover__link:hover {
    background-color: var(--brand-accent);
    color: #14101C;
}


@media (max-width: 575.98px) {
    .project-cover__panel {
        padding: 12px 14px;
    }

    .project-cover__hint {
        display: none;
    }

    .project-cover__name {
        display: -webkit-box;
        font-size: .88rem;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .site .project-cover__link {
        padding: 8px 12px;
        font-size: .85rem;
    }
}

@media (max-width: 991.98px) {
    .project-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-top: 28px;
    }

    .project-layout__media {
        position: static;
        order: -1;
    }
}

@media (max-width: 991.98px) {
    .work {
        padding: 56px 0;
    }

    .work__header {
        grid-template-columns: 1fr;
        margin-bottom: 28px;
    }

    .work__empty {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 32px;
    }
}

@media (max-width: 767.98px) {
    .work__grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 575.98px) {
    .work__empty {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .work__empty-link {
        width: 100%;
        justify-content: center;
    }
}