/* =========================================
   HERO
========================================= */






.portfolio-hero {
    position: relative;
    overflow: hidden;

    padding: 80px 0 80px;

    background: #f7f6f4;
}


/* Container */

.portfolio-container {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
}


/* Hero layout */

.portfolio-hero .portfolio-container {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);

    align-items: center;

    gap: 70px;
}


/* Content */

.portfolio-hero__content {
    position: relative;
    z-index: 2;

    max-width: 620px;
}


/* Label */

.portfolio-hero__label {
    margin-bottom: 20px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #76518b;
}


/* Title */

.portfolio-hero__title {
    display: flex;
    flex-direction: column;

    margin: 0 0 0 -5px;

    font-family: 'Onest', sans-serif;
    font-size: clamp(58px, 7vw, 96px);
    line-height: 0.92;
    letter-spacing: -0.055em;
    font-weight: 100;
}

.portfolio-hero__title span:first-child {
    font-weight: 200;
}

.portfolio-hero__title span:last-child {
    font-weight: 200;
}


/* Description */

.portfolio-hero__description {
    max-width: 560px;

    margin: 32px 0 0;

    font-size: 19px;
    line-height: 1.55;

    color: #62605e;
}


/* Stats */

.portfolio-hero__stats {
    display: flex;
    flex-wrap: wrap;

    gap: 42px;

    margin-top: 42px;
}

.portfolio-hero__stat {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.portfolio-hero__stat strong {
    display: block;

    font-size: 27px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: -0.02em;

    color: #1c1c1c;
}

.portfolio-hero__stat span {
    display: block;

    font-size: 13px;
    line-height: 1.3;

    color: #777471;
}


/* Buttons */

.portfolio-hero__actions {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 42px;
}

.portfolio-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 25px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.portfolio-button:hover {
    transform: translateY(-2px);
}


/* Primary */

.portfolio-button--primary {
    color: #ffffff;
    background: #76518b;

    box-shadow:
        0 8px 25px rgba(118, 81, 139, 0.18);
}

.portfolio-button--primary:hover {
    color: #ffffff;
    background: #68467c;
}


/* Secondary */

.portfolio-button--secondary {
    color: #262626;

    background: #ffffff;

    border: 1px solid #e4e1de;
}

.portfolio-button--secondary:hover {
    color: #262626;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);
}


/* Visual */

.portfolio-hero__visual {
    position: relative;

    min-height: 520px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-hero__image {
    display: block;

    width: 125%;
    max-width: none;
    height: auto;

    transform: translateX(30px);

    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.10));
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .portfolio-hero {
        padding: 80px 0 90px;
    }

    .portfolio-hero .portfolio-container {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .portfolio-hero__content {
        max-width: 720px;
    }

    .portfolio-hero__visual {
        min-height: 360px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .portfolio-hero {
        padding: 55px 0 70px;
    }

    .portfolio-container {
        width: calc(100% - 32px);
    }

    .portfolio-hero__label {
        margin-bottom: 15px;

        font-size: 11px;
    }

    .portfolio-hero__title {
        font-size: 48px;
    }

    .portfolio-hero__description {
        margin-top: 24px;

        font-size: 17px;
    }

    .portfolio-hero__stats {
        gap: 28px;

        margin-top: 32px;
    }

    .portfolio-hero__stat strong {
        font-size: 24px;
    }

    .portfolio-hero__actions {
        flex-direction: column;
        align-items: stretch;

        margin-top: 32px;
    }

    .portfolio-button {
        width: 100%;
    }

    .portfolio-hero__visual {
        min-height: 240px;
    }

}