@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:ital,wght@0,400..900;1,400..900&display=swap');
body{
    font-family: "Schibsted Grotesk", sans-serif;
}

.main-nav > ul > li > a{
    color: rgba(0 0 0 / 50%);
    transition: color 0.3s ease-out;
    position: relative;
}
.main-nav > ul > li > a:hover{
    color: black;
}
.main-nav > ul > li > a:before{
    content: "";
    position: absolute;
    top: -5px;
    right: 0;
    transition: all 0.3s ease-out;
    border-bottom: 1px solid black;
    height: 1px;
    width: 0;
}
.main-nav > ul > li:hover > a:before{
    width: 100%;
    left: 0;
}

.main-nav > ul{

    > li{
        position: relative;
        padding-block: 0.1rem;
    }

    > li > ul{
        display: flex;
        gap: 1rem;
        position: absolute;
        bottom: 0px;
        left: 0;
        transform:translateY(100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease-out;
        width: max-content;
        font-size:1.1rem;
    }

    > li:hover{

        > ul{
            opacity: 1;
            pointer-events: all;
        }

    }
    
}

.project-image p{
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding-inline:40px;
    height: 200px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
    color: white;
    width: 100%;
    font-size: 1.5rem;
    transition: all 0.3s ease-out;
    background: linear-gradient(180deg,transparent,black);
}
.project-image:hover p{
    padding-left: 50px;
}
.project-image:hover img{
    transform: scale(1.1);
}
.project-image p span{
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero a{
    position: relative;
}
.hero a p{
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding-inline:20px;
    height: 200px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 20px;
    color: white;
    width: 100%;
    font-size: 1.5rem;
    background: linear-gradient(180deg,transparent,black);
}
.hero .inner-grid a p{
    font-size: 1.2rem;
}
.hero a p span{
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero img{
    height: calc(100vh - 130px);
    object-fit: cover;
    width: 100%;
    transition: all 0.3s ease-out;
}

.hero a:hover img{
    filter: brightness(1);
}

.hero .inner-grid img{
    height: calc(calc(100vh - 150px)/3);
}
.main-cta{
    display: inline-block;
    transition: all 0.3s ease-out;
    position: relative;
}

.main-cta span{
    width: 13px;
    height: 13px;
    position: relative;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(100% + 10px);
    transition: all 0.3s ease-out;
}
.main-cta span:before{
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 1px;
    border-right: 1px solid black;
}
.main-cta span:after{
    content: "";
    width: 100%;
    position: absolute;
    transition: all 0.3s ease-out;
    height: 1px;
    border-bottom: 1px solid black;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}
.main-cta:hover span:before{
    border-color: transparent;
}

.main-cta:hover span{
    width: 40px;
}
.project{
    position: relative;
}
.project > a{
    position: relative;
    padding:20px;
    display: block;
}
.project > a:hover .p-hover-image{
    opacity: 1;
}
.project > a:before{
    content: "";
    left: -20px;
    top: 10px;
    right: -20px;
    height: 1px;
    border-bottom: 1px solid black;
    transform-origin: left;
    transform: scaleX(0);
    position: absolute;
    transition: all 0.3s ease-out;
}
.project:before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    width: 1px;
    border-right: 1px solid black;
    transition: all 0.3s ease-out;
}
.project:after{
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    height: 0;
    width: 1px;
    border-right: 1px solid black;
    transition: all 0.3s ease-out;
}
.project:hover:before,
.project:hover:after{
    height: 100%;
}
.project:hover > a:before{
    transform: scaleX(1);
} 

.home-scroller a{
    display: flex;
    transition: all 0.3s ease-out;
    gap: 10px;
    margin:0 40px;
    align-items: center;
}
.home-scroller a:hover{
    color: #666;
}
.footer a:not(.credits){
    display: block;
    transition: all 0.3s ease-out;
}
.footer a:not(.credits):hover{
    color: rgba(0 0 0 / 50%);
}
.line{
    position: absolute;
}
.line-top{
    top: 60px;
    left: 60px;
    right: 60px;
    height: 1px;
    border-bottom: 1px solid black;
    transform-origin: left;
    transform: scaleX(0);
}
.line-bottom{
    bottom: 60px;
    left: 60px;
    right: 60px;
    height: 1px;
    transform: scaleX(0);
    transform-origin: right;
    border-bottom: 1px solid black;
}
.line-left{
    top: 30px;
    bottom: 30px;
    left: 100px;
    border-right: 1px solid black;
    transform-origin: top;
    transform: scaleY(0);
}
.line-right{
    top: 30px;
    bottom: 30px;
    right: 100px;
    border-right: 1px solid black;
    transform-origin: bottom;
    transform: scaleY(0);
}

/* TEMPLATE 2 STYLES */

.hero-slider-outer img{
    width: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.nav-trigger span{
    display: block;
    position: relative;
    height: 1px;
    border-bottom: 1px solid white;
    transition: all 0.3s ease-out;
}
.dark-header .nav-trigger:hover{
    & span{
        border-color: white;
    }
    & span:before,& span:after{
        border-color: white;
    }
}

.dark-header .nav-trigger.open-nav:hover{
    span{
        border-color: transparent;
    }
}

.nav-trigger:hover{
    background: white;
    & span{
        border-color: black;
    }
    & span:before,& span:after{
        border-color: black;
    }
}
.nav-trigger span:before{
    content: "";
    display: block;
    width: 100%;
    position: absolute;
    left: 0;
    margin-top: -6px;
    transition: all 0.3s ease-out;
    height: 1px;
    border-bottom: 1px solid white;
}
.nav-trigger span:after{
    content: "";
    display: block;
    width: 100%;
    position: absolute;
    left: 0;
    margin-top: 6px;
    transition: all 0.3s ease-out;
    height: 1px;
    border-bottom: 1px solid white;
}

.nav-trigger.open-nav span{
    border-color: transparent;
}
.nav-trigger.open-nav span:before{
    margin:0;
    transform: rotate(45deg);
}
.nav-trigger.open-nav span:after{
    margin:0;
    transform: rotate(-45deg);
}
.logo-2 img{
    transition:height 0.3s ease-out
}

.logo-2{
    transition: all 0.3s ease-out;
}



.site-nav{
    transition: background-color 0.3s ease-out;
}

.site-nav-menu >ul >li {
    transform: translateX(40px);
    opacity: 0;
}

.site-nav-menu > ul > li > a{
    position: relative;
}
.site-nav-menu > ul > li > a:before{
    content: "";
    width: 100%;
    transform-origin: right;
    transform: scaleX(0);
    height: 1px;
    transition: all 0.3s ease-out;
    border-bottom: 2px solid white;
    position: absolute;
    left: 0;
    bottom: -5px;
}
.dark-header .site-nav-menu > ul > li > a:before{
    border-color: black;
}
.site-nav-menu > ul > li:hover > a:before{
    transform: scaleX(1);
}

.publication-overlay{
    backdrop-filter: blur(2px);
}

/* TEMPLATE 2 STYLES */

.extra-services a{
    position: relative;
    z-index: 1;
}
.extra-services a:before{
    content: "";
    background: black;
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 100%;
    z-index: -1;
    transition: all 0.3s ease-out;
}
.extra-services a:hover:before{
    width: 100%;
    left: 0;
}

.mobile-navigation nav{
    > ul {

        > li{
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        > li.active{
            .nav-drop-trigger{
                transform: rotate(180deg);
            }
        }

        ul{
            margin-block: 1rem;
            font-size: 1.2rem;
            display: none;
            width: 100%;
        }
    }
}

.mobile-in{
    opacity: 0;
    transition:all 0.3s ease-out;
}

.mobile-navigation{
    transition:all 0.3s 0.3s ease-out;
}

.mobile-menu-on .mobile-navigation{
    transition:all 0.3s ease-out;
}
.mobile-menu-on .mobile-in{
    opacity: 1;
    transition:all 0.3s 0.3s ease-out;
}