/* =========================
   PORTFOLIO PAGE
========================= */

.portfolio-page {
    width: 100%;
    min-height: 100vh;

    padding: 110px 8% 60px;
}

.portfolio-intro {
    max-width: 1100px;
    margin-bottom: 2.5rem;
}

.eyebrow {
    margin: 0 0 1.25rem;

    font-size: 0.7rem;
    letter-spacing: 0.18em;

    color: #93a88d;
}

.portfolio-intro-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 4rem;
}

.portfolio-intro h1 {
    margin: 0;

    font-family: Georgia, serif;

    font-size: clamp(2.7rem, 5vw, 5rem);

    font-weight: 400;
    line-height: 0.9;

    letter-spacing: -0.04em;
}

.portfolio-intro-text {
    margin: 0 0 0.3rem;

    max-width: 360px;

    color: #aaa9a3;

    font-size: 0.95rem;
    line-height: 1.5;
}


/* =========================
   PORTFOLIO LIST
========================= */

.portfolio-list {
    display: flex;
    flex-direction: column;

    gap: 22px;
}

.portfolio-feature {
    position: relative;

    width: 100%;
    height: 230px;

    display: flex;
    align-items: stretch;

    color: #f2f1eb;
    text-decoration: none;

    overflow: hidden;
}

.feature-image {
    width: 58%;

    position: relative;

    overflow: hidden;

    background: #111;

    flex-shrink: 0;
}

.feature-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    filter:
        grayscale(20%)
        saturate(70%)
        brightness(0.8);

    transition:
        filter 0.4s ease,
        transform 0.5s ease;
}

.feature-image::after {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 35%;
    height: 100%;

    background:
        linear-gradient(
            to right,
            transparent,
            #171918
        );

    pointer-events: none;
}

.feature-text {
    flex: 1;

    display: flex;
    flex-direction: column;

    justify-content: center;

    padding: 1.5rem 1rem 1.5rem 0;

    position: relative;
    z-index: 2;
}

.feature-number {
    display: block;

    margin-bottom: 0.6rem;

    font-size: 0.65rem;
    letter-spacing: 0.18em;

    color: #93a88d;
}

.feature-text h2 {
    margin: 0 0 0.6rem;

    font-family: Georgia, serif;

    font-size: clamp(1.9rem, 3.2vw, 3.6rem);

    font-weight: 400;

    line-height: 0.95;

    transition: color 0.25s ease;
}

.feature-text p {
    margin: 0;

    max-width: 320px;

    color: #aaa9a3;

    font-size: 0.85rem;
    line-height: 1.5;
}

.portfolio-feature.reverse {
    flex-direction: row-reverse;
}

.portfolio-feature.reverse .feature-text {
    padding: 1.5rem 0 1.5rem 1rem;

    text-align: right;

    align-items: flex-end;
}

.portfolio-feature.reverse .feature-image::after {
    left: 0;
    right: auto;

    background:
        linear-gradient(
            to left,
            transparent,
            #171918
        );
}

.portfolio-feature:hover img {
    filter:
        grayscale(0%)
        saturate(100%)
        brightness(1);

    transform: scale(1.02);
}

.portfolio-feature:hover .feature-text h2 {
    color: #93a88d;
}