/* section: home portfolio */
.portfolio-overview {
    --portfolio-subsidiaries-image:
        url("../../images/portfolio-subsidiaries.jpg");

    --portfolio-joint-image:
        url("../../images/portfolio-joint-ventures.jpg");

    --portfolio-investments-image:
        url("../../images/portfolio-investments.jpg");

    padding:
        70px
        0
        50px;

    background:
        #222;
}
/*
|--------------------------------------------------------------------------
| Portfolio Overview
|--------------------------------------------------------------------------
*/

.portfolio-overview {
    padding:
        70px
        0
        50px;

    background:
        #222;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.portfolio-overview__head {
    display: grid;

    grid-template-columns:
        minmax(0, .95fr)
        minmax(0, 1.05fr);

    align-items: end;

    gap: 70px;

    margin-bottom: 30px;
}


.portfolio-overview__eyebrow {
    margin-bottom: 12px;

    color:
        var(--color-gold);

        font-size: var(--font-size-text-xsmall);
    font-weight: 700;

    text-transform: uppercase;
}


.portfolio-overview__title {
    margin: 0;

    color:
        var(--color-white);

    font-family:
        var(--font-title);

    /* font-size:
        clamp(
            42px,
            3vw,
            62px
        ); */
    font-size: var(--font-size-h2);

    font-weight: 400;

    line-height: 1.02;
}


.portfolio-overview__intro {
    max-width: 760px;

    padding-bottom: 4px;

    color:
        #cfcfcf;

    font-size: var(--font-size-main);
    font-weight: 300;

    line-height: 1.55;
}


/*
|--------------------------------------------------------------------------
| Interactive Stage
|--------------------------------------------------------------------------
*/

.portfolio-stage {
    position: relative;

    width: 100%;
    height: 560px;

    overflow: hidden;

    background:
        #111;
}


/*
|--------------------------------------------------------------------------
| Images
|--------------------------------------------------------------------------
*/

.portfolio-stage__media {
    position: absolute;
    inset: 0;

    z-index: 1;
}


.portfolio-stage__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 0;

    transform:
        scale(1.03);

    transition:
        opacity .65s ease,
        transform 1.2s ease;
}


.portfolio-stage__image.is-active {
    opacity: 1;

    transform:
        scale(1);
}


/*
|--------------------------------------------------------------------------
| Overlay
|--------------------------------------------------------------------------
*/

.portfolio-stage__overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.06) 0%,
            rgba(0,0,0,.10) 40%,
            rgba(0,0,0,.52) 100%
        );
}


/*
|--------------------------------------------------------------------------
| Portfolio Interactive Zones
|--------------------------------------------------------------------------
*/

.portfolio-item {
    position: absolute;

    top: 0;
    bottom: 0;

    z-index: 3;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;

    width: 33.3333%;

    padding:
        0
        38px
        28px;

    border: 0;

    background: transparent;

    color:
        var(--color-white);

    text-align: left;

    /* cursor: pointer; */

    overflow: hidden;
}


/*
|--------------------------------------------------------------------------
| Full-width hit areas
|--------------------------------------------------------------------------
*/

.portfolio-item--subsidiaries {
    left: 0;
}


.portfolio-item--joint {
    left: 33.3333%;
}


.portfolio-item--investments {
    left: 66.6666%;
}


/*
|--------------------------------------------------------------------------
| Active Black Gradient
|--------------------------------------------------------------------------
*/

.portfolio-item::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    opacity: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 32%,
            rgba(0, 0, 0, .08) 48%,
            rgba(0, 0, 0, .42) 72%,
            rgba(0, 0, 0, .82) 100%
        );

    transition:
        opacity .4s ease;
}


.portfolio-item.is-active::before {
    opacity: 1;
}


/*
|--------------------------------------------------------------------------
| Item Typography
|--------------------------------------------------------------------------
*/

.portfolio-item__title,
.portfolio-item__description {
    position: relative;

    z-index: 2;
}


.portfolio-item__title {
    display: block;

    color:
        var(--color-white);

    font-family:
        var(--font-title);

    font-size: var(--font-size-h3);
    font-weight: 400;

    line-height: 1.12;

    transition:
        transform .4s ease;
}


.portfolio-item__description {
    display: block;

    width: 100%;
    max-width: 390px;

    margin-top: 12px;

    color:
        #f1f1f1;

    font-size: var(--font-size-text-main);
    font-weight: 300;

    line-height: 1.45;

    opacity: 0;

    transform:
        translateY(16px);

    max-height: 0;

    overflow: hidden;

    transition:
        opacity .35s ease,
        transform .4s ease,
        max-height .4s ease;
}


.portfolio-item.is-active
.portfolio-item__description {
    opacity: 1;

    transform:
        translateY(0);

    max-height: 110px;
}



/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.portfolio-overview__footer {
    display: grid;

    grid-template-columns:
        1fr auto;

    align-items: center;

    gap: 40px;

    padding-top: 32px;
}


.portfolio-overview__footer p {
    margin: 0;

    color:
        #d4d4d4;

    font-size: var(--font-size-text-main);
    font-weight: 300;

    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| CTA
|--------------------------------------------------------------------------
*/

.portfolio-overview__cta {
    position: relative;

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

    min-width: 255px;
    height: 52px;

    padding:
        0
        25px;

    border:
        1px solid
        rgba(255,255,255,.45);

    color:
        var(--color-white);

    font-size: var(--font-size-text-small);
    font-weight: 700;

    text-transform: uppercase;

    overflow: hidden;

    transition:
        border-color .3s ease,
        color .3s ease;
}


.portfolio-overview__cta span {
    position: relative;

    z-index: 3;
}


/*
|--------------------------------------------------------------------------
| CTA Highlight Effect
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| CTA
|--------------------------------------------------------------------------
*/

.portfolio-overview__cta {
    --mouse-x: 50%;
    --mouse-y: 50%;

    position: relative;

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

    min-width: 255px;
    height: 52px;

    padding: 0 25px;

    color: var(--color-white);

    font-size: var(--font-size-text-small);
    font-weight: 700;

    text-transform: uppercase;

    overflow: hidden;
    isolation: isolate;

    /*
     * Base border from Figma.
     */
    border: 1px solid rgba(255,255,255,.38);

    background: transparent;

    transition:
        border-color .2s ease;
}


.portfolio-overview__cta span {
    position: relative;

    z-index: 3;
}


/*
|--------------------------------------------------------------------------
| Dynamic Border Glow
|--------------------------------------------------------------------------
*/

.portfolio-overview__cta::before {
    content: "";

    position: absolute;

    inset: -1px;

    z-index: 1;

    pointer-events: none;

    background:
        radial-gradient(
            circle 85px
            at var(--mouse-x) var(--mouse-y),

            rgba(215, 189, 145, 1) 0%,
            rgba(215, 189, 145, .85) 18%,
            rgba(215, 189, 145, .38) 38%,
            rgba(215, 189, 145, .08) 58%,
            transparent 75%
        );

    opacity: 0;

    transition:
        opacity .18s ease;
}


/*
|--------------------------------------------------------------------------
| Inner Mask
|--------------------------------------------------------------------------
*/

.portfolio-overview__cta::after {
    content: "";

    position: absolute;
    inset: 1px;

    z-index: 2;

    pointer-events: none;

    background:
        radial-gradient(
            circle 120px
            at var(--mouse-x) var(--mouse-y),

            rgba(197, 173, 134, .16) 0%,
            rgba(197, 173, 134, .10) 28%,
            rgba(197, 173, 134, .04) 52%,
            transparent 72%
        ),
        #222;

    opacity: 0;

    transition:
        opacity .18s ease;
}

.portfolio-overview__cta:hover::after {
    opacity: 1;
}


.portfolio-overview__cta:hover {
    border-color:
        rgba(255,255,255,.28);
}


.portfolio-overview__cta:hover::before {
    opacity: 1;
}


/*
|--------------------------------------------------------------------------
| Focus
|--------------------------------------------------------------------------
*/

.portfolio-item:focus-visible,
.portfolio-overview__cta:focus-visible {
    outline:
        2px solid
        var(--color-gold);

    outline-offset: 4px;
}


/*
|--------------------------------------------------------------------------
| Responsive - Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 991px) {

    .portfolio-overview__head {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .portfolio-overview__intro {
        max-width: 100%;
    }


    /*
    |--------------------------------------------------------------------------
    | Stage becomes vertical accordion
    |--------------------------------------------------------------------------
    */

    .portfolio-stage {
        height: auto;

        display: flex;
        flex-direction: column;

        overflow: visible;

        background: #111;
    }


    /*
    |--------------------------------------------------------------------------
    | Media
    |--------------------------------------------------------------------------
    |
    | On mobile/tablet each portfolio item gets its own background image
    | via the active image layer underneath.
    |
    |--------------------------------------------------------------------------
    */

    .portfolio-stage__media {
        display: none;
    }


    .portfolio-stage__overlay {
        display: none;
    }


    /*
    |--------------------------------------------------------------------------
    | Items
    |--------------------------------------------------------------------------
    */

    .portfolio-item {
        position: relative;

        top: auto;
        bottom: auto;
        left: auto !important;
        right: auto;

        width: 100%;

        min-height: 150px;

        padding:
            28px
            25px;

        display: flex;
        flex-direction: column;
        justify-content: flex-end;

        overflow: hidden;

        isolation: isolate;

        transition:
            min-height .45s
            cubic-bezier(.22,.61,.36,1);
    }


    /*
    |--------------------------------------------------------------------------
    | Mobile Item Backgrounds
    |--------------------------------------------------------------------------
    */

    .portfolio-item::after {
        content: "";

        position: absolute;
        inset: 0;

        z-index: -2;

        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;

        transform: scale(1.03);

        transition:
            transform .7s ease;
    }


    .portfolio-item--subsidiaries::after {
        background-image:
            var(--portfolio-subsidiaries-image);
    }


    .portfolio-item--joint::after {
        background-image:
            var(--portfolio-joint-image);
    }


    .portfolio-item--investments::after {
        background-image:
            var(--portfolio-investments-image);
    }


    /*
    |--------------------------------------------------------------------------
    | Dark Overlay
    |--------------------------------------------------------------------------
    */

    .portfolio-item::before {
        inset: 0;

        z-index: -1;

        opacity: 1;

        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,.08) 0%,
                rgba(0,0,0,.30) 55%,
                rgba(0,0,0,.74) 100%
            );
    }


    /*
    |--------------------------------------------------------------------------
    | Active Item
    |--------------------------------------------------------------------------
    */

    .portfolio-item.is-active {
        min-height: 380px;
    }


    .portfolio-item.is-active::after {
        transform: scale(1);
    }


    .portfolio-item.is-active::before {
        opacity: 1;

        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,.03) 0%,
                rgba(0,0,0,.22) 42%,
                rgba(0,0,0,.82) 100%
            );
    }


    /*
    |--------------------------------------------------------------------------
    | Typography
    |--------------------------------------------------------------------------
    */

    .portfolio-item__title {
        font-size: 27px;
    }


    .portfolio-item__description {
        max-width: 600px;

        margin-top: 12px;

        font-size: 18px;

        opacity: 0;

        transform: translateY(12px);

        max-height: 0;

        transition:
            opacity .3s ease,
            transform .35s ease,
            max-height .35s ease;
    }


    .portfolio-item.is-active
    .portfolio-item__description {
        opacity: 1;

        transform: translateY(0);

        max-height: 140px;
    }


    /*
    |--------------------------------------------------------------------------
    | Footer
    |--------------------------------------------------------------------------
    */

    .portfolio-overview__footer {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .portfolio-overview__cta {
        width: fit-content;
    }

}


/*
|--------------------------------------------------------------------------
| Responsive - Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    .portfolio-overview {
        padding:
            50px
            0
            40px;
    }


    .portfolio-overview__title {
        font-size: 42px;
    }


    .portfolio-overview__intro {
        font-size: 17px;
    }


    .portfolio-item {
        min-height: 130px;

        padding:
            24px
            20px;
    }


    .portfolio-item.is-active {
        min-height: 340px;
    }


    .portfolio-item__title {
        font-size: 23px;
    }


    .portfolio-item__description {
        font-size: 20px;
    }


    .portfolio-overview__footer p {
        font-size: 20px;
    }


    .portfolio-overview__cta {
        width: 100%;

        min-width: 0;
    }

}