@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');


@font-face {
    font-family: 'HelveticaNeue';
    src: url('../font/HelveticaNeue.woff2') format('woff2'),
        url('../font/HelveticaNeue.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'HelveticaNeue-bold';
    src: url('../font/HelveticaNeue-Bold.woff2') format('woff2'),
        url('../font/HelveticaNeue-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* width */
::-webkit-scrollbar {
    width: 6px;
    border-radius: 3px;
}

/* Track */
::-webkit-scrollbar-track {
    background: rgba(33, 33, 37, .5);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(22, 22, 22, 1);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgba(33, 33, 33, 1);
}

.hidden {
    display: none;
}


body {
    /*font: 16px/1.5 'HelveticaNeue';*/
    font: 1.354166666666667vw/1.5 'Roboto', sans-serif;
    width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 1184px) {
    body {
        /*font: 16px/1.5 'HelveticaNeue';*/
        font: 16px/1.5 'Roboto', sans-serif;
        width: 100vw;
        overflow-x: hidden;
    }   
}

.wrapper {
    width: 90%;
    margin: 0 5%;
}


#intro {
    background: #ffffff;
    z-index: 100;
    height: 100vh; height: 100dvh;
    width: 100vw;
    position: fixed;
    overflow: hidden;
    top: 0;
}

#intro .content {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    background: #ffffff;
    justify-content: center;
    align-items: center;
}

#intro .content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 50%;
    opacity: 0;
    transform-origin: center center;
}

.top-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: #ffffff;
    height: fit-content;
}
.portfolio {
    
}
.portfolio .top-wrapper {
    background: none;
}

.top {
    padding: 0.9375vw;
    padding-bottom: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    position: relative;
}

.top-logo {
    width: 5.729166666666667vw;
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

.top-logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 100%;
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

.minified .top-logo {
    width: 70px;
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

.minified .top-logo img {
    margin-bottom: 50%;
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

.top-menu {
    display: flex;
    column-gap: 0.9375vw;
}

.menu_btn {
    font-family: 'HelveticaNeue';
    font-family: 'Roboto', sans-serif;
    font-size: 21px;
    padding: 0 1vw;
    line-height: .9;
}

.menu_btn.active {
    font-family: 'HelveticaNeue-bold';
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.menu_btn a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 820px) {

    #intro .content img {
        height: auto;
        width: 100vw;
    }

    .top {
        padding: 0.9375vw;
        padding-bottom: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative;
    }
    
    .top-logo {
        width: 10vw;
    }
    
    
    .minified .top-logo {
        width: 60px;
    }
    
    .minified .top-logo img {
        margin-bottom: 50%;
        -webkit-transition: all .3s ease-out;
        -moz-transition: all .3s ease-out;
        -o-transition: all .3s ease-out;
        transition: all .3s ease-out;
    }
}

@media (max-width: 440px) {

    #intro .content img {
        height: auto;
        width: 100vw;
    }

    .top {
        padding: 10px;
        padding-bottom: 0;
    }
    .top-logo {
        width: 15vw;
    }   
    
    .minified .top-logo {
        width: 10vw;
    }
    
    .minified .top-logo img {
        margin-bottom: 50%;
        -webkit-transition: all .3s ease-out;
        -moz-transition: all .3s ease-out;
        -o-transition: all .3s ease-out;
        transition: all .3s ease-out;
    }
    .menu_btn {
        font-size: 17px;
    }

    .menu_btn.active {
        margin-top: 0;
    }
}

.grid-container {
    margin-top: 12.39583333333333vw;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 0.9375vw;
    row-gap: 0.9375vw;
    padding: 0.9375vw;
    min-height: calc(100vh - 12.39583333333333vw - .9375vw - .9375vw);
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

.modal .grid-container,
.portfolio.modal  {
    opacity: 0;
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -o-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

.grid-item {
    width: calc(33.3333% - 0.625vw);
}

@media (max-width: 820px) {
    .grid-container {
        margin-top: 20vw;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 10px;
        row-gap: 10px;
        padding: 10px;
        min-height: calc(100vh - 20vw - 20px);
        -webkit-transition: all .3s ease-out;
        -moz-transition: all .3s ease-out;
        -o-transition: all .3s ease-out;
        transition: all .3s ease-out;
    }
    .grid-item {
        width: calc(50% - 5px);
    }
}

@media (max-width: 440px) {
    .grid-container {
        margin-top: calc(30vw + 10px);
    }
    .grid-item {
        width: 100%;
    }
}
#project {/*
    flex-basis: 50%;
    max-height: 100vh; max-height: 100dvh;
    overflow-y: scroll; overflow-x: hidden;
    -ms-scroll-snap-type: y mandatory;
    scroll-snap-type: y mandatory;*/
}
#project.proximity {/*
    -ms-scroll-snap-type: y proximity;
    scroll-snap-type: y proximity;*/
}

#project {
    /*height: 100vh; height: 100dvh;*/
}

.project {
    padding: 0;
}
.endd {
    height: 1px;
    margin-top: 1px;
}

.project img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.project img:hover {
    opacity: .8;
}


.project-page {
    position: relative;
    height: 100vh; height: 100dvh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;/*
    scroll-snap-align: center;
    scroll-snap-stop: normal*/ 
}

@media (max-width: 430px) {
    .project-page {
        position: relative;
        height: 50vh;
        width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;/*
        scroll-snap-align: center;
        scroll-snap-stop: normal*/ 
    }
}

.splide {
    scroll-snap-align: start;
}
.splide__arrow {
    background: none !important;
}
.splide-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .2);
    z-index: 1000;
}
.project-page-content {
    display: flex;
    justify-content: center;
    padding: 5vmax;
    text-align: center;
    height: 100%;
    width: 100%;
    box-sizing: border-box;    
}
.page-content {
    align-self: center;
    max-width: 80%;
}
.ppc{
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}
.ppc {
     padding: 5vmax;
}
.ppc_row{
    display: flex;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    column-gap: .4em;
    justify-content: center;
}
@media (max-width: 830px) {

}
@media (max-width: 440px) {
    .page-content {
        align-self: center;
        max-width: 100%;
    }
    .ppc{
        display: flex;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 0 3.2vmax;
        box-sizing: border-box;
    }
    .ppc_row{
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        row-gap: .4em;
        justify-content: center;
    }
}
.ppc img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.p-17 {
    font-size: 17px;
    font-size: 0.8854166666666667vw;
}

.p-15 {
    font-size: 15px;
    font-size: 0.78125vw;
    padding: 0 19%;
}
img.fit,
video.fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}
.main img.fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}


.scrollToTopBtn {
    position: fixed;
    bottom: 0.9375vw;
    right: calc(0.9375vw - 6px);
    width: 24px;
    height: 24px;
    display: none;
    background: url(../img/arrow.svg);
    background-size: contain;
    font-size: 0;
    transform-origin: center center;
    transform: rotate(-90deg);
    border: none;
    cursor: pointer;
}
html {
    scroll-behavior: "smooth";
}

@media (max-width: 820px) {
    .project-page-content {
        padding: 10vh 10vw;
        text-align: center;
    }
    .p-17 {
        font-size: 15px;
    }

    .p-15 {
        font-size: 13px;
        padding: 0 10%;
    }
    img.fit,
    video.fit {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: 50% 50%;
    }
    .main img.fit {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: 50% 50%;
    }
    
    .scrollToTopBtn {
        right: 16px;
        bottom: 12px;
    }
}
@media (max-width: 440px) {
    .project-page-content {
        /*background: #ffffff;*/
        padding: 3.2vmax;
        text-align: center;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }
    .p-title {
        font-size: 26px;
        margin: .5em 0;
    }
}

@media (max-aspect-ratio: 3/4) {
    /* movil */
    .main img.fit {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
    }    
}

p.credit {
    position: absolute;
    left: 0.9375vw;
    bottom: 0.9375vw;
    margin: 0;
    font-size: 15px;
    font-size: 0.78125vw;
    display: block;
    z-index: 100;
    color: #ffffff;
}
@media (max-width: 830px) {
    p.credit {
        position: absolute;
        left: 0.9375vw;
        bottom: 0.9375vw;
        margin: 0;
        font-size: 15px;
        display: block;
        z-index: 100;
        color: #888888;
    }
}
@media (max-width: 440px) {
    p.credit {
        display: none;
    }
}


#about {
    background: #ffffff;
    font-size: 26px;
    font-size: 1.354166666666667vw;
    line-height: 1.23;
}


.about-content {
    background: #ffffff;
    width: calc(60% - .46875vw);
}

.about-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: .6em;
    row-gap: 0.9375vw;
    padding: 0.9375vw 0;
}

.about-col {
    width: calc(33.3333% - .4em);
}
@media (max-width: 1184px) {
    #about {
        background: #ffffff;
        font-size: 16px;
        /*line-height: 1.23;*/
    }
    .about-content {
        background: #ffffff;
        width: 692px;
        max-width: 80%;
    }
}
@media (max-width: 440px) {
    .about-content {
        background: #ffffff;
        width: 692px;
        max-width: 100%;
    }
}
#contact {
    background: #ffffff;
    font-size: 26px;
    font-size: 1.354166666666667vw;
    line-height: 1.23;
}

.contact-content {
    background: #ffffff;
    width: calc(60% - .46875vw);
}


@media (max-width: 1184px) {
    #contact {
        background: #ffffff;
        font-size: 16px;
        /*line-height: 1.23;*/
    }    
    .contact-content {
        background: #ffffff;
        width: 692px;
        max-width: 80%;
    }
}

section {
    position: relative;
    height: 100vh; 
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;/*
    scroll-snap-align: center;
    scroll-snap-stop: normal*/ 
    overflow: hidden;
    box-sizing: border-box;    
    background: #f8f8f8;    
    margin-bottom: .4em;
}
section:last-child {
    margin-bottom: 0;
}
section img {
    max-width: 100%;
}
.horizontal {
    height: 100vh; height: 100dvh;
    width: 100vw;
    max-height: 100vh; max-height: 100dvh;
    
    align-items: flex-start;
    justify-content: flex-start
}
a {color: inherit;}
.track {
    display: flex;
    height: 100vh; height: 100dvh;
    background: #ffffff;
}
@media (max-width: 440px) {
    section {
        /*height: 50vh;
        min-height: fit-content;        */
    }
    .horizontal {
       /* height: 50vh !important;
        width: 100vw;
        max-height: 50vh;*/
        background: #ffffff;
        align-items: center !important;
        justify-content: flex-start
    }    
    .track {
        display: flex;
        height: fit-content;
        background: #ffffff;
    }
    section.tall {
        min-height: 100vh; 
        min-height: 100dvh;
        min-height: fit-content;
    }
    .force-fit {
        height: fit-content !important;
    }
    .tall img.fit {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
    } 

}

.horizontal section {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    margin-bottom: 0;
    margin-right: 0.4em;
}


.horizontal section:last-child {
    margin-right: 0;
}

.project p {
    max-width: 300px;
    margin: 0 auto;
    color: #294D67;
}

#project01 h2 {
    color: #3DB3CE;
}

#project02 h2 {
    color: #75C695;
}

#project03 h2 {
    color: #F5876F;
}

#main {
    position: relative;
    background-color: #FFF;
}


.main {
    opacity: 0;
    -webkit-transition: all .6s ease-out;
    -moz-transition: all .6s ease-out;
    -o-transition: all .6s ease-out;
    transition: all .6s ease-out;
}
.main.loaded {
    opacity: 1;
    -webkit-transition: all .6s ease-out;
    -moz-transition: all .6s ease-out;
    -o-transition: all .6s ease-out;
    transition: all .6s ease-out;
}

.bcg-parallax {
    padding: 150px 0;
    color: #fff;
    background-color: #000;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bcg {
    background: url('../img/img_background.jpg') no-repeat;
    background-size: cover;
    position: absolute;
    width: 100%;
    height: 150%;
    top: 0;
    z-index: 1;
    opacity: 0.7;
}

.content-wrapper {
    width: 90%;
    margin: 0 auto;
    max-width: 1140px;
    position: relative;
    z-index: 2;
}

/* =Footer */
.footer-container {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    background-color: #06060d;
}

.footer-container .wrapper {
    width: 80%;
    max-width: none;
    margin: 0 10%;
}

.footer-container h3 {
    margin: 0;
    padding: 20px 0;
    font-weight: normal;
}

.footer-container a {
    color: rgba(255, 255, 255, 0.5);
}

.desktop_only {
    display: block;
}
section.desktop_only {
    display: flex;
}

.tablet_only, 
section.tablet_only {
    display: none;
}

.mobile_only,
section.mobile_only {
    display: none;
}
@media (max-width: 820px) {
    .desktop_only,
    section.desktop_only {
        display: none;
    }
    .tablet_only {
        display: block;
    }
    section.tablet_only {
        display: flex;
    }

    .mobile_only,
    section.mobile_only {
        display: none;
    }
}

@media (max-width: 440px) {
    .desktop_only,
    section.desktop_only {
        display: none;
    }

    .tablet_only,
    section.tablet_only {
        display: none;
    }

    .mobile_only {
        display: block;
    }
    section.mobile_only {
        display: flex
    }
}