@import url(reset.css); /* RESET CSS */

:root{
    --ff-header: 'IBM Plex Serif';
    --ff-body: 'Epilogue';
    --clr-primary: #002A52;
    --clr-teal: #4A688A;
    --clr-blue-grey: #8294A8;
    --clr-grey: #B9C3CF;
    --clr-header: #111111;
    --clr-body: #1B1B1B;
    --clr-highlight: #005EB8;

    --width: 1280px;
    --spacing-inline: 50px;
    --max-width: calc(var(--width) + (var(--spacing-inline) * 2));

    --padding-inline: 50px;
}

@media only screen and (max-width: 750px){
    :root{
        --padding-inline: 25px;
    }
}

html{
    scrollbar-gutter: stable;
}

body{font-family: var(--ff-body);}

h1, h2, h3, h4, h5{font-family: var(--ff-header); font-size: var(--fs); line-height: calc(var(--fs) + 8px); color: var(--clr-header);}

p, a{
    --fs: 18px;
    font-size: var(--fs);
    line-height: calc(var(--fs) +  8px);

    @media only screen and (max-width: 1280px){
        --fs: 16px;
    }
}

input{
    font-size: var(--fs);
}

p{
    color: var(--clr-body);
}

a{text-decoration: none;}

main{
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding-block: 100px;

    @media only screen and (max-width: 700px){
        padding-block: 50px;
    }
}

#dashboard_pg main{
    padding-top: 0;
}

/* doubt I'll ever want this to be different, so standardize for now */
dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
}

/* ------ QUICK LINKS ------ */
div#admin_menu {
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    position: fixed;
    width: 300px;
    z-index: 9999;
    right: 0;
}

.admin_tab {
    float: left;
    cursor: pointer;
    border-radius: 0 0 0 10px;
    position: absolute;
    top: 0;
}

div#admin_menu ul {
    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.94);
    border-color: -moz-use-text-color -moz-use-text-color #cacad9 #cacad9;
    border-radius: 0 0 0 10px;
    border-style: none none solid solid;
    border-width: medium medium 1px 1px;
    margin-left: 70px;
    list-style-type: none;
    padding-left: 0;
}

div#admin_menu ul li {
    background-repeat: no-repeat !important;
    background-position: 10px center !important;
    border-top: #cacad9 thin solid;
    background-size: 30px 27px;
}

div#admin_menu ul li:first-child {
    border: none;
}

a.ad_nav {
    color: #003366;
}

div#admin_menu ul li a {
    display: block;
    font-size: 14px;
    margin-left: 60px;
    padding: 10px 0;
}

/* ------ COMPONENTS ------ */

.header--main{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding-inline: var(--padding-inline);

    & .logo__btn{
        position: relative;
        z-index: 9;
    }

    & .full{
        display: block;

        @media only screen and (max-width: 700px){
            display: none;
        }
    }

    & .mobile{
        display: none;

        @media only screen and (max-width: 700px){
            display: block;
        }
    }

    & .wrapper{
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 100px;
        padding-block: 35px;

        @media only screen and (max-width: 700px){
            gap: 50px;
        }
    }
}

.footer--main{
    background-color: var(--clr-primary);
    padding-block: 50px 25px;
    padding-inline: var(--padding-inline);

    & p, a, h5{
        color: #fff;
    }

    & .wrapper{
        display: flex;
        gap: 100px;
    }
}

.footer__details{
    display: flex;
    gap: 50px;
    justify-content: space-between;

    @media only screen and (max-width: 1100px){
        flex-direction: column;
        align-items: center;
    }

    & img{
        align-self: flex-start;
        max-width: 300px;

        @media only screen and (max-width: 1100px){
            align-self: center;
        }
    }
}

.footer__info{
    display: flex;
    gap: 100px;

    & > div{
        display: flex;
        flex-direction: column;
        gap: 15px;
        
        & h5{
            --fs: 16px;
            margin-bottom: 10px;
            font-family: var(--ff-body);
            font-weight: 500;
        }

        & a{
            --fs: 16px;
            line-height: normal;

            &:hover{
                opacity: .8;
            }
        }
    }
}

.footer__small{
    display: flex;
    gap: 50px;
    justify-content: space-between;

    @media only screen and (max-width: 700px){
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    & p, a{
        --fs: 12px;
        font-weight: 300;
    }
}

/* ------ UTILITY ------ */
.flex--column{
    flex-direction: column!important;
}

.align--flexstart{
    align-items: flex-start!important;
}

/* ------ WRAPPERS ------ */

.wrapper--page{
    max-width: 1280px;
    width: 100%;
    position: relative;
    margin-inline: auto;
    padding-left: 0!important; /* reset if needed */
}

.wrapper--gap--medium{
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.wrapper--column{
    flex-direction: column;
}

/* ------ NAVIGATIONS ------ */

.nav--main{
    @media only screen and (max-width: 1100px){
        width: calc(100% + (var(--padding-inline) * 2));
        position: absolute;
        background-color: var(--clr-primary);
        transform: translateY(-100%);
        left: calc(var(--padding-inline) * -1);
        transition: .5s transform;
        transition-delay: .25s;

        &.active{
            transform: translateY(145px);
        }
    }

    & .wrapper__nav{
        display: flex;
        gap: 25px;

        @media only screen and (max-width: 1100px){
            flex-direction: column;
            align-items: center;
            padding-block: 150px 50px;
        }
    }

    & a{
        color: #fff;
        font-weight: 300;
        position: relative;

        &:after{
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 0;
            height: 1px;
            background-color: currentColor;
            transition: .25s width;
        }

        &:hover:after{
            width: 100%;
        }
    }
}

.mobile__btn{
    display: none;
    position: relative;
    z-index: 999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    flex-shrink: 0;

    @media only screen and (max-width: 1100px){
        display: block;
    }

    & .burger{
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 5px;
        justify-content: center;

        & .line{
            width: 35px;
            height: 2px;
            background-color: #fff;
            transition: .25s width;
            transition-delay: .25s;
        }

        & .patty{
            align-self: flex-end;
        }

        & close.line{
            top: 0;
            left: 0;
            position: absolute;
            transform: rotate(45deg);
            transition: .25s width;
            transition-delay: 0s;
            transform-origin: left center;
            width: 0;

            &:nth-of-type(2){
                transform-origin: right center;
                transform: rotate(-45deg);
                right: 0;
                left: auto;
            }

            &:nth-of-type(3){
                transform-origin: left center;
                transform: rotate(-45deg);
                bottom: 0;
                top: auto;
            }

            &:nth-of-type(4){
                transform-origin: right center;
                transform: rotate(45deg);
                right: 0;
                left: auto;
                bottom: 0;
                top: auto;
            }
        }
    }

    &.active{
        & .line{
            width: 0;
            transition-delay: 0s;
        }

        & close.line{
            width: 22px;
            transition-delay: .25s;
        }
    }
}

/* ------ BANNERS ------ */

#home_pg .banner{
    min-height: 100vh;
    padding-block: 0 250px;

    @media only screen and (max-width: 700px){
        padding-block: 0 100px;
    }

    & .cta{
        & h1{
            --fs: 64px;

            @media only screen and (max-width: 700px){
                --fs: 48px;
            }
        }
    }
}

.banner{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    position: relative;
    padding-bottom: 150px;
    padding-top: 250px;
    padding-inline: var(--padding-inline);

    & .banner__image{
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        mix-blend-mode: multiply;
        transform: translateY(calc((var(--position) * 0.5) * 1px));
        object-fit: cover;
    }

    & .cta{
        position: relative;
        z-index: 3;
        max-width: 1280px;
        width: 100%;

        & h1{
            --fs: 48px;
            font-weight: 400;
            color: #fff;
        }
    }
}

/* ------ SECTIONS ------ */

/* shouldn't cause issues */
section{
    position: relative;
    overflow: hidden;
}

.section--generic{
    padding-inline: var(--padding-inline);

    &.section--left{
        padding-inline: var(--padding-inline) 0;

        @media only screen and (max-width: 1100px){
            padding-inline: var(--padding-inline);
        }
    }

    &.section--right{
        padding-inline: 0 var(--padding-inline);

        @media only screen and (max-width: 1100px){
            padding-inline: var(--padding-inline);
        }
    }

    & .wrapper{
        display: flex;
        align-items: center;
        gap: 100px;
        padding-left: calc(((100vw - 1280px) / 2) - var(--padding-inline));

        @media only screen and (max-width: 1100px){
            flex-direction: column;
            gap: 50px;
            align-items: flex-start;
        }
    }

    & .wrapper--column{
        flex-direction: column;
        align-items: flex-start;
    }

    & .wrapper--reverse{
        flex-direction: row-reverse;
        padding-left: 0;
        padding-right: calc(((100vw - 1280px) / 2) - 50px);

        @media only screen and (max-width: 1100px){
            flex-direction: column;
        }
    }

    & .wrapper--reverse--home{
        flex-direction: row-reverse;

        @media only screen and (max-width: 1100px){
            flex-direction: column;
        }
    }

    & .wrapper--home--approach{
        padding-left: 0;
        align-items: stretch;
        
        & .content--wrapper{
            padding-block: 100px;

            @media only screen and (max-width: 1100px){
                padding-block: 25px;
            }
        }
    
        & .content__image{
            height: 100%;
        }
    }

    & .wrapper--home--offerings{
        gap: 50px;
        overflow: hidden;
    }
}

.section--header, .group--header{
    position: relative;

    & h5{
        --fs: 12px;
        text-transform: uppercase;
        color: var(--clr-header);
        position: relative;
        font-family: var(--ff-body);
        font-weight: 500;
        line-height: var(--fs);

        &:before{
            content: '';
            position: absolute;
            top: -10px;
            left: 0;
            width: 20px;
            height: 2px;
            background-color: var(--clr-highlight);
        }
    }
}

.dark{
    .section--header{
        & h5{
            &:before{
                background-color: currentColor;
            }
        }
    }
}

.section--bg{
    --image-url: url('#');
    padding-block: 100px;
    padding-inline: var(--padding-inline);
    background-size: cover;
    background-image: var(--image-url);
    position: relative;
    overflow: hidden;

    & .img__parallax{
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: translateY(0);
        will-change: transform;
        transition: .05s transform ease-out;
    }
}

.section--history{
    @media only screen and (max-width: 700px){
        padding-block: 100px 150px;
    }
}

.content--wrapper{
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 650px;
    width: 100%;
    padding-block: 10px;

    @media only screen and (max-width: 1100px){
        max-width: 100%;
    }

    &.full{
        max-width: 1280px;
    }

    &.larger{
        max-width: 750px;
        padding-block: 25px;

        @media only screen and (max-width: 1100px){
            max-width: 100%;
        }
    }

    &.dark{
        & .section--header{
            & h5{
                color: #fff;
            }
        }

        & h3, p {
            color: #fff;
        }
    }

    &.content--large{
        max-width: 900px;

        @media only screen and (max-width: 1100px){
            max-width: 100%;
        }
    }
}

.performance--wrapper{
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    padding-block: 10px;
}

.content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    position: relative;

    & h3{
        --fs: 32px;
        font-weight: 400;

        @media only screen and (max-width: 700px){
            --fs: 26px;
        }
    }
}

.content--performance{
    gap: 50px;
}

.content--structure{
    gap: 25px;
}

.content--weekly{
    & p{
        --fs: 11px;
    }
}

/* helper wrappers for animations and responsive */
.image__wrapper:not(.vertical, .r, .h){
    width: 100%;
    max-width: 300px;
    height: 385px;
    position: relative;

    & .content__image{
        width: 100%;
        height: 100%;
        object-fit: cover;
        min-width: 0;
    }
}

.image__wrapper.vertical{
    width: 100%;
    flex: 1;
    position: relative;
}
/* helper wrappers for animations and responsive */

.content__image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 650px;

    @media only screen and (max-width: 700px){
        min-width: 100%;
    }
}

.vertical{
    & .content__image{
        min-width: 0;
    }
}

.content--full{
    max-width: 1280px;
}

.content--contact{
    width: 50%;

    @media only screen and (max-width: 700px){
        width: 100%;
    }

    & a{
        color: var(--clr-body);
        position: relative;
        align-self: flex-start;
        background-image: linear-gradient(currentColor, currentColor);
        background-position: 0% 100%;
        background-size: 0% 1px;
        background-repeat: no-repeat;
        transition: .25s background-size;
        text-decoration: none;
        display: inline;

        &:hover{
            background-size: 100% 1px;
        }
    }
}

.content--color{
    & h3{
        color: var(--clr-primary);
        font-weight: 300;
    }
}

.content--process{
    text-align: center;
    align-items: center;
    margin: 0 auto;

    & .section--header, .group--header {
        & h5 {
            &:before {
                left: 50%;
                transform: translateX(-50%);
            }
        }
    }

    & .content{
        align-items: center;
    }
}

/* ------ BUTTONS ------ */
.btn--generic{
    text-transform: uppercase;
    color: var(--clr-body);
    --fs: 14px;
    font-weight: 500;

    &:hover{
        opacity: .75;
    }
}

/* ------ HOME SPECIFIC ------ */
.funds{
    display: flex;
    gap: 25px;
    width: 100%;

    @media only screen and (max-width: 1100px){
        flex-wrap: wrap;
    }

    & .fund{
        width: 100%;
        aspect-ratio: .91;
        padding-block: 50px 25px;
        padding-inline: 25px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: 10px;
        position: relative;
        overflow: hidden;
        cursor: pointer;

        @media only screen and (max-width: 1100px){
            aspect-ratio: 1.25;
        }

        &:hover{
            & > img{
                opacity: .5;
                transform: scale(1.03);
            }
        }

        & .fund--btn{
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 999;
        }

        & .overlay{
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            background-color: var(--clr-primary);
            z-index: 0;
        }

        & > img{
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            inset: 0;
            z-index: 1;
            /*mix-blend-mode: luminosity;*/
            opacity: .2;
            transition: .25s opacity, .25s transform;
            border-radius: 10px;
        }

        & h3{
            --fs: 32px;
            font-family: var(--ff-body);
            font-weight: 500;
        }

        & h3, a{
            color: #fff;
            position: relative;
            z-index: 2;
        }
    }
}

.section--stats{
    padding-block: 200px;
    padding-inline: var(--padding-inline);
    background-color: rgba(3, 1, 16, .8);
    background-image: url('../images/stats_bg.webp');
    background-blend-mode: darken;
    background-position: center;
    background-size: cover;
    position: relative;

    @media only screen and (max-width: 700px){
        padding-block: 100px;
    }

    & .stats{
        display: flex;
        gap: 100px;
        justify-content: space-between;
        align-items: center;

        @media only screen and (max-width: 1100px){
            flex-wrap: wrap;
            gap: 50px;
        }

        & .stat{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            width: 20%;

            @media only screen and (max-width: 1100px){
                width: calc(50% - 25px)!important;
            }

            @media only screen and (max-width: 700px){
                width: 100%!important;
            }

            &:nth-of-type(2), &:nth-of-type(4){
                width: 30%;
            }

            & .stat__value{
                --fs: 72px;
                font-family: var(--ff-header);
                font-weight: 500;
                color: #fff;
                @media only screen and (max-width: 700px){
                    --fs: 48px;
                }
            }

            & .stat__detail{
                --fs: 18px;
                text-transform: uppercase;
                font-weight: 400;
                color: #fff;

                @media only screen and (max-width: 700px){
                    --fs: 14px;
                }
            }
        }
    }
}

.disclaimer_footnote{
    --fs: 13px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 15px;
    color: #fff;
    max-width: 1280px;
    width: calc(100% - (var(--padding-inline) * 2));

    @media only screen and (max-width: 1380px){
        left: calc(50% + var(--padding-inline));
        transform: translateX(calc(-50% - var(--padding-inline)));
    }
}

/* ------ ABOUT SPECIFIC ------ */
.history__wrapper{
    overflow-x: hidden;
    width: 100%;
    scrollbar-color: #fff transparent;
    scrollbar-width: thin;
    padding-bottom: 10px;
    margin-bottom: 50px; /* breathing for disclaimer instead of JS */
}

@keyframes scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(calc(-360px * 6))}
}

.tiles{
    display: flex;
    width: calc(360px * 12);
    transform: translateX(0);
    will-change: transform;

    &.visible{
        animation: scroll 30s linear infinite;
        animation-delay: 1s;
    }

    & .tile{
        flex-shrink: 0;
        width: 350px;
        height: 300px;
        margin-inline: 5px;
        background-color: rgba(17, 101, 145, .95);
        padding: 25px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        & h3, h5{
            color: #fff;
            font-weight: 500;
        }

        & h3{
            --fs: 124px;
        }

        & h5{
            --fs: 24px;
        }
    }
}

.team__wrapper{
    display: flex;
    flex-direction: column;
    gap: 100px;
    width: 100%;
}

.team__group{
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.members{
    --gap: 25px;
    --count: 4;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: var(--gap);

    @media only screen and (max-width: 1000px){
        --count: 2;
    }

    @media only screen and (max-width: 550px){
        --count: 1;
    }

    & .member{
        width: calc((100% / var(--count)) - 19px);
        display: flex;
        flex-direction: column;
        gap: 15px;
        cursor: pointer;

        & .image__wrapper{
            overflow: hidden;
            width: 100%;
            height: auto;
            aspect-ratio: 300 / 385;
            position: relative;
        }

        &:hover{
            .member__headshot{
                filter: grayscale(0);
                transform: scale(1.02);
            }
        }
    }
}

.member__name{
    --fs: 20px;
    font-family: var(--ff-body);
    font-weight: 500;
}

.member__position{
    --fs: 12px;
    color: #88898A;
    font-weight: 500;
    font-family: var(--ff-body);
}

.member__headshot{
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: .25s filter cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: absolute;
    inset: 0;
}

.member__popup{
    border: 3px solid var(--clr-primary);
    z-index: 9999;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 50px;
    max-width: 1280px;
    width: calc(100% - (var(--padding-inline) * 2));

    @media only screen and (max-width: 700px){
        padding: 25px;
        width: calc(100% - 10px);
    }

    &:focus-visible{
        outline: 3px solid var(--clr-highlight);
        border: none;
    }

    & .member{
        display: flex;
        flex-direction: row;
        gap: 50px;

        @media only screen and (max-width: 1100px){
            flex-direction: column;
        }
    }

    & .member__headshot{
        filter: grayscale(0);
    }

    & .member__name{
        --fs: 32px;
        font-family: var(--ff-header);
    }

    & .member__position{
        --fs: 16px;
        color: #88898A;
    }

    & .member__info{
        display: flex;
        flex-direction: column;
    }

    & .member__details{
        display: flex;
        flex-direction: column;
        gap: 25px;
        flex-shrink: 1;
        width: 100%;
    }

    & p{
        margin-bottom: 18px;

        &:last-of-type{
            margin-bottom: 0;
        }
    }

    & .btn--close{
        position: absolute;
        top: 10px;
        right: 10px;
        border: none;
        outline: none;
        color: var(--clr-body);
        font-weight: 600;

        &:hover{
            opacity: .75;
        }
    }
}

/* ------ APPROACH SPECIFIC ------ */
.philosophy__topics{
    margin-top: 25px;
    --gap: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);

    @media only screen and (max-width: 1380px){
        flex-direction: column;
        --gap: 15px;
    }

    & .topic{
        width: calc(50% - (var(--gap) / 2));
        display: flex;
        align-items: center;
        gap: 25px;
        
        @media only screen and (max-width: 1380px){
            width: 100%;
        }

        & h5{
            --fs: 20px;
            font-weight: 500;
        }

        & p{
            --fs: 14px;
            line-height: calc(var(--fs) + 4px);
        }

        & .icon__wrapper{
            padding: 15px;
            width: 66px;
            height: 66px;
            background-color: rgba(27, 27, 27, .05);
            border-radius: 10px;
            flex-grow: 0;
            flex-shrink: 0;
        }
    }
}

.topic__content{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.topic__icon{
    filter: grayscale(1);
}

.process__wrapper{
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 50px;
}

.process__header{
    & h3{
        --fs: 20px;
        color: #fff;
        font-weight: 500;
        text-align: center;
    }
}

.process__container{
    position: relative;
}

.process__items{
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: space-between;
    z-index: 2;
    position: relative;

    & .item{
        background-color: rgba(255, 255, 255, 0);
        padding: 20px;
        border-radius: 16px;
        max-width: 475px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        opacity: 0;
        transition: opacity .25s, background-color .5s;

        @media only screen and (max-width: 1100px){
            max-width: 100%;
        }

        &.visible{
            opacity: 1;
            background-color: rgba(255, 255, 255, .075);

            @media only screen and (max-width: 1280px){
                background-color: rgba(0, 94, 184, .5);
            }

            & h5, p{
                top: 0;
                opacity: 1;
            }
        }

        &.active{
            background-color: rgba(255, 255, 255, .25);
        }

        & h5, p{
            color: #fff;
            opacity: 0;
            top: 15px;
            transition: .25s top, .25s opacity;
            transition-delay: .15s;
            position: relative;
        }

        & h5{
            --fs: 18px;
        }

        & p{
            --fs: 14px;
        }
    }
}

.compass{
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);

    @media only screen and (max-width: 700px){
        display: none;
    }

    &.visible{
        & .compass__icon{
            opacity: 1;
            transform: rotate(180deg);
            @media only screen and (max-width: 1280px){
                opacity: .75;
            }
        }

        & .compass__outer{
            opacity: .75;
            transform: rotate(0deg);
            @media only screen and (max-width: 1280px){
                opacity: .5;
            }
        }
    }

    & .compass__icon{
        position: absolute;
        transform: rotate(360deg);
        transition: .5s transform, .25s opacity;
        opacity: 0;
    }

    & .compass__outer{
        opacity: 0;
        transform: rotate(-90deg);
        transition: .35s transform, .25s opacity;
    }
}

.risk__wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;

    @media only screen and (max-width: 1100px){
        display: none;
    }

    &.mobile{
        display: none;
        flex-direction: column;
        gap: 50px;

        @media only screen and (max-width: 1100px){
            display: flex;
        }

        & .risk__top, .risk__bottom{
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 25px;

            & > :nth-child(1){
                text-align: right;

                &:after{
                    content: '';
                    width: 2px;
                    height: calc((var(--height) + (var(--image-height) / 2)) * 1px);
                    top: 0;
                    left: auto;
                    right: 0;
                    position: absolute;
                    background-color: var(--color);
                }
            }

            & > :nth-child(2){
                align-self: flex-start;
                &:after{
                    content: '';
                    width: 2px;
                    height: calc((var(--height) + (var(--image-height) / 2)) * 1px);
                    top: 0;
                    left: 0;
                    position: absolute;
                    background-color: var(--color);
                }
            }
        }

        & .risk__bottom{
            & > :nth-child(1), > :nth-child(2){
                &:after{
                    top: auto;
                    bottom: 100%;
                    height: calc((var(--height) - (var(--image-height) / 2)) * 1px);
                }
            }
        }
    
        & .risk__graphic{
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding-top: 20px;
        }

        & .risk__content{
            position: relative;
            top: 0;
            left: 0;
            padding-left: 25px;
            max-width: 350px;
            width: 100%;

            &:nth-of-type(1), &:nth-of-type(3){
                &:before{
                    content: '';
                    position: absolute;
                    top: 0;
                    right: -4px;
                    width: 10px;
                    height: 10px;
                    background-color: var(--color);
                }
            }

            &:nth-of-type(2), &:nth-of-type(4){
                &:before{
                    content: '';
                    position: absolute;
                    top: 0;
                    left: -4px;
                    width: 10px;
                    height: 10px;
                    background-color: var(--color);
                }
            }
        
            & h3{
                --fs: 20px;
                font-weight: 500;
                margin-bottom: 5px;
            }
        
            & p{
                --fs: 14px;
                line-height: 18px;
            }
        }

        & .image__wrapper.r{
            position: relative;
            margin-top: -15px;
            margin-inline: auto;

            @media only screen and (max-width: 700px){
                margin-top: -8px;
            }

            &:after{
                content: '';
                position: absolute;
                top: 50%;
                left: 20%;
                transform: translateY(-50%);
                width: calc(var(--wrapper-width) * 1px);
                height: 2px;
                background-color: var(--color);
                z-index: 999;
            }

            &:nth-of-type(1){
                width: 100%;
            }

            &:nth-of-type(2){
                width: 75%;

                &:after{
                    right: 20%;
                    left: auto;
                }
            }

            &:nth-of-type(3){
                width: 50%;
            }

            &:nth-of-type(4){
                width: 25%;

                &:after{
                    right: 20%;
                    left: auto;
                }
            }
        }

        & .risk__image{
            position: relative;
            margin: 0 auto;
        }
    }
}

[data-order="1"]{
    --color: #506487;
    --order: 1;
    --adjustment: 0px;
}

[data-order="2"]{
    --color: #6E87A5;
    --order: 2;
    --adjustment: 0px;
}

[data-order="3"]{
    --color: #8796AA;
    --order: 3;
    --adjustment: 0px;
}

[data-order="4"]{
    --color: #A0AAB4;
    --order: 4;
    --adjustment: 4px;
}

.risk__section{
    --line-height: 2px;
    --circle: 15px;
    position: relative;
    width: 639px;

    &:last-child{
        margin-bottom: 0;
    }

    & h3, p{
        position: relative;
        top: 15px;
        opacity: 0;
        transition: .25s top, .25s opacity;
        transition-delay: .15s;
    }

    & h3{
        --fs: 20px;
        font-weight: 500;
        margin-bottom: 5px;
    }

    & p{
        --fs: 14px;
        line-height: 18px;
    }

    &:nth-child(2){
        & .risk__content{
            --color: #6E87A5;
            --size-modifier: 80px;
            bottom: 56px;
        }
    }

    &:nth-child(3){
        & .risk__content{
            --color: #8796AA;
            --size-modifier: 162px;
            bottom: 65px;
        }
    }

    &:nth-child(4){
        & .risk__content{
            --color: #A0AAB4;
            --size-modifier: 230px;
            bottom: 57.5px;
        }
    }

    & .image__wrapper{
        display: flex;
        justify-content: center;
        position: relative;
        opacity: 0;
        top: 15px;
        transition: .25s top, .25s opacity;
        
        &.visible{
            top: calc((-15px * var(--order)) + var(--adjustment));
            opacity: 1;
        }
    }
}

.risk__image{
    flex-grow: 0;
    flex-shrink: 0;
}

.risk__content{
    --size-modifier: 0px;
    width: 550px;
    position: absolute;
    bottom: 45px;
    right: calc(-470px + var(--size-modifier));
    padding-left: 100px;
    padding-right: 25px;
    padding-bottom: 25px;

    &:before{
        content: '';
        position: absolute;
        right: 0;
        bottom: calc(((var(--circle) / 2) - (var(--line-height) / 2)) * -1);
        aspect-ratio: 1;
        border-radius: 50%;
        background-color: var(--color);
        z-index: 2;
        width: 0;
        transition: .25s width;
        transition-delay: .3s;
    }

    &:after{
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: var(--line-height);
        background-color: var(--color);
        z-index: 1;
        transition: .5s width;
    }

    &.visible{
        &:before{
            width: var(--circle);
        }

        &:after{
            width: 100%;
        }

        & h3, p{
            top: 0;
            opacity: 1;
        }
    }
}

/* ------ CONTACT SPECIFIC ------ */
.contact__row{
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ------ LOGIN ------ */

dialog.login {
    border: none;
    padding: 0;
    background: transparent;
    position: relative;
}

.login__wrapper{
    --max-interior-width: 300px;
    width: 100%;
    max-width: 500px;
    z-index: 999;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--clr-primary);
    padding: 50px;
    border: 2px solid #fff;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;

    & .btn--close{
        position: absolute;
        top: 10px;
        right: 15px;

        &:hover{
            opacity: .75;
        }
    }

    & form{
        display: flex;
        flex-direction: column;
        gap: 35px;
        width: 100%;
        max-width: var(--max-interior-width);
    }

    & ul{
        list-style: none;
    }

    & p, a{
        color: #fff;
    }

    & .input__wrapper{
        position: relative;

        &:has(input:focus-visible){
            &:after{
                background-color: #8dc7ff;
            }
        }

        &:after{
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #fff;
            display: block;
        }
    }

    & input{
        --fs: 14px;
        background-color: transparent;
        padding-left: 10px;
        outline: none;
        border: none;
        color: #fff;
        width: 100%;
        
        &::placeholder{
            text-transform: uppercase;
            font-size: 14px;
            font-family: var(--ff-body);
            color: #fff;
            opacity: .85;
        }
    }

    & input[type="submit"]{
        width: auto;
        background-color: var(--clr-highlight);
        color: #fff;
        text-transform: uppercase;
        align-self: flex-start;
        padding: 10px 25px 7.5px;
        line-height: normal;
        cursor: pointer;
        border: 1px solid var(--clr-highlight);

        &:hover{
            background-color: transparent;
            border-color: currentColor;
        }
    }
}

.login__title{
    --fs: 24px;
    font-family: var(--ff-header);
    color: #fff;
    text-transform: uppercase;
}

.login__links{
    max-width: var(--max-interior-width);
    width: 100%;

    & a{
        --fs: 14px;
        position: relative;

        &:after{
            content: '';
            position: absolute;
            width: 0;
            left: 0;
            bottom: -3px;
            height: 1px;
            background-color: currentColor;
            transition: .25s width;
        }

        &:hover:after{
            width: 100%;
        }
    }
}

.login__details{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.error__container{
    & p{
        --fs: 12px;
        color: #ff5959;
    }
}

/* ------ PERFORMANCE ------ */
#highChartContainer{
    width: 100%;
}

#performance_wrapper{
    width: 100%;
}

.fund__label{
    --fs: 32px;
    font-weight: 400;
}

.percent-sign{
    font-size: 10px;
    font-weight: 700;
    color: currentColor;
}

.fund__selection{
    width: 100%;
    background-color: var(--clr-primary);
    color: #fff;
    overflow: auto;

    & a{
        color: currentColor;
        font-size: 16px;
        padding-block: 25px;
        padding-inline: 25px;
        white-space: nowrap;

        &.active{
            background-color: #fff;
            color: var(--clr-body);
        }

        &:hover{
            background-color: rgba(255, 255, 255, .1);
            color: #fff;
        }
    }
}

.selection__wrapper{
    width: 100%;
    max-width: 1280px;
    overflow: auto;
    position: relative;
    margin: 0 auto;
    display: flex;
    border-bottom: 1px solid var(--clr-primary);
}

.pieSection{
    width: 100%;
}

.pieFunds{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;

    & .pieFund{
        & h4{
            font-family: 'Epilogue';
            font-size: 18px;
            font-weight: 500;
        }
    }
}

.pieFundData{
    display: flex;
    gap: 15px;
    padding-block: 15px;

    & ul{
        padding-left: 0;
    }

    & li{
        list-style-type: none;
        font-size: 16px;
    }
}

.table{
    width: 100%;
    overflow: auto;
}

.weeklyTable{
    & tr:first-child{
        & th:first-child{
            text-align: left;
        }

        & th{
            border-bottom: 1px solid var(--clr-body);
            padding: 10px;

            & h3{
                font-family: var(--ff-body);
                font-weight: 500;
                --fs: 14px;
            }
        }
    }

    & tr:nth-of-type(odd):not(:first-child){
        background-color: rgba(130, 148, 168, .15);
    }

    & td{
        padding: 10px;
        font-size: 14px;
        border-bottom: 1px solid rgba(0, 42, 82, .5);
    }
}

#fof_list{
    width: 100%;
    border-spacing: 0;

    & tbody:not(:first-child){
        & tr.wht, tr.blue{
            cursor: pointer;

            &:hover{
                background-color: rgba(0, 94, 184, .15)!important;
            }
        }
    }

    & tbody{
        & h6{
            position: relative;
        }
    }

    & tbody:nth-of-type(odd){
        & tr.wht, tr.blue{
            background-color: rgba(130, 148, 168, .15);
        }
    }

    & tbody:first-child{
        background-color: transparent;

        & td{
            font-weight: 400;
            white-space: nowrap;
        }
    }

    & tbody:has(> .accordion) h6:before, tbody.active:has(> .accordion) h6:before{
        font-family: 'Font Awesome 6 Pro';
        font-weight: 300;
        font-size: 11px;
        position: absolute;
        left: -20px;
        top: 50%;
        transform: translateY(calc(-50% - 2px));
    }

    & tbody:has(> .accordion) h6:before{
        content: '\e185';
    }

    & tbody.active:has(> .accordion) h6:before{
        content: '\f07c';
    }

    & td{
        padding: 10px 10px 10px 35px;
        font-size: 13px;
        line-height: 13px;
        border-bottom: 1px solid rgba(0, 42, 82, .5);

        & strong{
            font-weight: 500;
        }
    }

    & tbody.active{
        & .accordion{
            display: table-row;
        }
    }

    & .accordion{
        display: none;

        & .fof_docs{
            padding-left: 0;
        }

        & a{
            --fs: 12px;
            color: var(--clr-body);

            &:hover{
                color: var(--clr-highlight);
            }
        }
    }

    & .accBtn{
        font-size: 13px;
        font-weight: 400;
        white-space: nowrap;
    }
}

/* ------ STRUCTURE ------ */
.structure{
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid var(--clr-primary);

    & .row{
        --clr: var(--clr-body);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding-block: 10px;
        padding-inline: 25px;

        & > div{
            color: var(--clr);

            @media only screen and (max-width: 700px){
                font-size: 14px;
            }
        }
        
        &:nth-of-type(even){
            background-color: rgba(0, 42, 82, .05);
        }
    }
}

/* ------ Marketing ------ */
.marketingText{
    & h1, h5{
        font-weight: 400;
        font-family: var(--ff-body);
        color: var(--clr-body);
    }
    & h1{
        --fs: 20px;
    }

    & h5{
        --fs: 16px;
        font-style: italic;
    }

    & a{
        --fs: 16px;
        background-color: var(--clr-primary);
        color: #fff;
        padding: 5px 15px;
        margin-top: 10px;
        display: inline-block;
        border: 1px solid var(--clr-primary);

        &:hover{
            background-color: transparent;
            color: var(--clr-primary);
        }
    }
}

/* ------ ANIMATION CLASSES ------ */
.invis--top--pre{
    opacity: 0;
    top: 100px;
    transition: .5s opacity, .5s top;
    position: relative; /* maybe better on the element class itself? */
    will-change: opacity, top;

    &.section--header{
        & h5:before{
            width: 0;
            transition: .25s width;
            transition-delay: .15s;
        }
    }

    &.group--header{
        & h5:before{
            width: 0;
            transition: .25s width;
            transition-delay: .15s;
        }
    }
}

.invis--top--post{
    opacity: 1;
    top: 0px;
    transition: .5s opacity, .5s top;

    &.section--header{
        & h5:before{
            width: 20px;
        }
    }

    &.group--header{
        & h5:before{
            width: 20px;
        }
    }
}

.image--wipe{
    filter: grayscale(1) saturate(1);
    transform: translateX(100%);
    transition-property: filter, transform;
    transition-delay: .25s, 0s;
    transition-duration: .5s, .75s;
    transition-timing-function: ease-in, cubic-bezier(0.22, 1, 0.36, 1);
    will-change: filter, transform;

    @media only screen and (max-width: 1100px){
        transform: translateX(calc(100% + 50px));
    }

    &.reverse{
        transform: translateX(-100%);

        @media only screen and (max-width: 1100px){
            transform: translateX(calc(100% + 50px));
        }
    }
}

.image--wipe--post{
    filter: grayscale(0) saturate(.75);
    transform: translateX(0%)!important;
}

.image--wipe--vertical{
    position: absolute;
    left: 0;
    top: 0;
    filter: grayscale(1);
    height: 0!important;
    transition-property: filter, height;
    transition-delay: .25s, 0s;
    transition-duration: .5s, .75s;
    transition-timing-function: ease-in, cubic-bezier(0.22, 1, 0.36, 1);
    will-change: filter, height;
}

.image--wipe--vertical--post{
    filter: grayscale(0);
    height: 100%!important;
}

/* could've made the toggle class lower but oh well */
.banner--fade{
    & .cta{
        & h1{
            opacity: 0;
            top: 100px;
            transition: .5s opacity, .5s top;
            will-change: top, opacity;
            position: relative;
        }
    }

    &.banner--fade--post{
        & .cta{
            & h1{
                opacity: 1;
                top: 0;
            }
        }
    }
}

.funds--animation{
    position: relative;
    left: -100%;
    transition: .5s left cubic-bezier(0.33, 0.9, 0.5, 1);
    will-change: left;

    & .fund{
        position: relative;
        left: -100%;
        transition: .75s left cubic-bezier(0.33, 0.9, 0.5, 1);
        z-index: 3;
        will-change: left;

        &:first-child{
            z-index: 1;
        }

        &:nth-of-type(2){
            z-index: 2;
        }
    }

    &.funds--animation--post{
        left: 0;

        & .fund{
            left: 0;
        }
    }
}

/* should probably combine with funds--animation and make global animation for wrapper > child pairs */
.history--animation{
    position: relative;
    left: -100%;
    transition: .5s left cubic-bezier(0.33, 0.9, 0.5, 1);
    will-change: left;

    & .tile{
        position: relative;
        left: 50px;
        transition: .75s left cubic-bezier(0.33, 0.9, 0.5, 1);
        will-change: left;
    }

    &.history--animation--post{
        left: 0;

        & .tile{
            left: 0;
        }
    }
}

/* ----- RESPONSIVE ----- */
@media only screen and (max-width: 1280px){

}