.work {
    position: relative;
    padding: 150px 0;
    background: var(--bg);
    color: var(--text);
    overflow: hidden
}

.work-container {
    width: min(1400px, 90%);
    margin: auto
}

.work-heading {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 70px
}

.work-heading h2 {
    margin: 0;
    font-size: clamp(3rem, 6vw, 6.3rem);
    line-height: .9;
    letter-spacing: -.075em;
    font-weight: 650
}

.work-heading h2 em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 1px var(--text)
}

.work-heading p {
    max-width: 430px;
    margin: 25px 0 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.7
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 55px 20px
}

.project-card {
    min-width: 0
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface)
}

.project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.16, 1, .3, 1)
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    transition: opacity .4s ease
}

.project-overlay span {
    padding: 13px 19px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 100px;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    transform: translateY(15px);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1)
}

.project-card:hover .project-image img {
    transform: scale(1.05)
}

.project-card:hover .project-overlay {
    opacity: 1
}

.project-card:hover .project-overlay span {
    transform: translateY(0)
}

.project-info {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 4px 0
}

.project-category {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase
}

.project-info h3 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -.035em
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text);
    font-size: .7rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .3s ease, color .3s ease, transform .3s ease
}

.project-link span {
    transition: transform .3s ease
}

.project-link:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-2px)
}

.project-link:hover span {
    transform: translate(2px, -2px)
}

.work-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 80px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .72rem
}

.work-bottom a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600
}

.work-bottom a span {
    margin-left: 10px
}

@media(max-width:800px) {
    .work {
        padding: 100px 0
    }

    .work-heading {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 45px
    }

    .project-image {
        aspect-ratio: 16/10
    }

    .work-bottom {
        margin-top: 60px
    }
}

@media(max-width:500px) {
    .work-heading h2 {
        font-size: clamp(3rem, 14vw, 4.5rem)
    }

    .project-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px
    }

    .project-link {
        width: 100%;
        justify-content: center
    }
}