@import url("reset.css");

/*
red: #EB4853
yellow: #FFFB4B
green: #36DA62 
blue: #3E7CE3
*/

body{
    background-color:white;
    color: #292929;
    font-family: "halyard-display", sans-serif;
}

img{
    max-width:100%;
    height: 100%;
}

a{
    text-decoration:none;
    font-weight: 500;
    color:inherit;
    transition: color .2s
}

a:hover{
    color: #3E7CE3;
    cursor: pointer;
}



h1{
    font-size: 3.5vw;
    font-weight: 700;
    line-height: 1.26;
}

h2{
    font-size: 2vw;
    font-weight: 300;
}

h3{
    font-size: 1.3vw;
    font-weight: 300;
}



@keyframes move-in{
    from {opacity: 0; padding-top: 14vw;}
    to {opacity: 1; padding-top: 12,4vw;}
}

@keyframes fade-in{
    from {opacity: 0;}
    to {opacity: 1;}
}
header{
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.4) 81.77%, rgba(255, 255, 255, 0) 100%);
    width: 100vw;
    height: 11vw;
    position: fixed;
    animation-name: fade-in;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-delay: .2s;
    z-index: 1;

}

header div{
    margin:5vw 5.2vw 10vh 5.2vw;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 89.6vw; 
}


.intro{
    margin: 0vw 15vw 28vh 15vw;
    padding-top: 12.4vw;
    animation-name: move-in;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-delay: .2s;
}

.intro h2{
    margin-top: 3.8vh;
    margin-bottom: 1.3vh;
    line-height: 5vh;
}

.intro h3{
    margin-top: .2vh;
    line-height: 1.3;
}


.work{
    margin-left: 15vw;
    margin-right: 15vw;
    animation-name: fade-in;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-delay: .2s;
}

.work article{
    display: flex;
    justify-content: space-between;
    margin-bottom: 19vh;
}


.work article img{
    width: 44.2vw;
    height: 100%;
    background-color: grey;
}

.work article:nth-of-type(2n) a{
    order: 2
}

.word article a{
    width: 100%;
}

.work article div{
    width: 19.2vw;
    line-height: 1.33;
}

.work article div h3{
    margin-bottom: 1.5vh;
    font-weight: 500;
}

.work article div h3 ~ h3{
    font-weight: 300;
}

.project img{
    width: 100%;
}

.text{
    margin: 0vh 30vw 0vh 30vw;
}

.text:first-of-type{
    margin-top: 5vh;
}

.text h2{
    margin-bottom: 3.2vh;
}

.text h3{
    font-weight: 500;
    margin-top: 0vh;
    line-height: 1.75;
}

.text h2 + h3{
    margin-top: .8vh
}

.text h3 + h3{
    font-weight: 300;
    margin-top: .8vh;
}

.medium{
    margin-left: 14.75vw;
    margin-right: 14.75vw;
    margin-top: 12.6vh;
    margin-bottom: 12.6vh;
    display: flex;
    justify-content: space-evenly;
}

.medium img{
    width: 54vw;
}

.medium h3{
    align-self: flex-end;
    width: 13.3vw;
    line-height: 1.25;
}

.medium-right{
    margin-top: 12.6vh;
    margin-bottom: 12.6vh;
    display: flex;
    justify-content: flex-end;
}

.medium-right img{
    width: 54vw;
}


.large{
    margin-top: 12.6vh;
    margin-bottom: 6.3vh;
}

.large + .large{
    margin-top: 6.3vh;
}

.large h3{
    width: 13.3vw;
    line-height: 1.25;
    margin-left: 70vw;
    margin-top: 2.5vh;
    margin-bottom: 12.6vh;
}

.center{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 12.6vh 14.75vw;
}

.twoup{
    display: flex;
    height: 60vw;
    justify-content: space-between;
    margin-top: 12.6vh;
    margin-bottom: 6.3vh;
}

.twoup img:first-of-type{
    width: 50vw;
    height: 49.3vw;
    align-self: flex-start;
} 

.twoup img:last-of-type{
    width: 30vw;
    height: 38.5vw;
    align-self: flex-end;
}

.side{
    width: 70vw;
    margin-bottom: 12.6vh;
    display: flex;
    justify-content: space-evenly;
}

.side + .side{
    margin-left: 15vw;
    width: 85vw;
}

.side + .side.right{
    width:70vw;
    margin-left: 30vw;
}

.side + .side.left{
    margin-left: 0vw;
}

.text + .side{
    margin-top: 12.6vh;
}

/*
.side:nth-of-type(3n){
    margin-left: 0vw;
}
*/


.side h3{
    align-self: flex-end;
    width: 13.3vw;
    line-height: 1.25;
}

.small-side{
    width:50vw;
}



.twoup2{
    display: flex;
    height: 64.8vw;
    justify-content: space-between;
    margin-left: 15vw;
}

.twoup2 img:first-of-type{
    width: 35vw;
    height: 49.35vw;
}

.twoup2 img:last-of-type{
    width: 50vw;
    height: 35.43vw;
    align-self: flex-end;
}

.center h3{
    align-self: flex-end;
    width: 13.3vw;
    line-height: 1.25;
    margin-top: 1.4vw;
}

.small{
    margin: 12.6vh 30vw;
}

.center-multiple{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 12.6vh 14.75vw;
    height: 22.5vw;
}

.center-multiple img{
    width: 12.64vw;
}

footer{
    margin:15vw 5.2vw 10vh 5.2vw;
    width: 89.6vw; 
    display: flex;
    justify-content: space-between;
}

footer div h3{
    line-height: 1.25;
}


footer div:last-of-type{
    text-align: right;
}

footer div:last-of-type h3:first-of-type{
    font-weight: 500;
}

footer div:first-of-type h3:first-of-type{
    font-weight: 500;
}

footer div:nth-of-type(2n){
    text-align: center;
}

.about{
    display: flex;
    padding: 13.3vw 14.75vw;
    height: 52.32vw;
    justify-content: space-between;
}

.about img{
    width: 35vw;
    height: 23.7vw;
}

.about .text{
    align-self: flex-end;
    margin-left: 0vw;
    margin-right: 0vw;
}

.shadow{ 
    filter: drop-shadow(0px 7.13289px 11.591px rgba(0, 0, 0, 0.4));
}

.right{
   margin-left: 30vw; 
}

@media (max-width: 56em){
    
    body{}
   
    
    h1{
    font-size: 7.5vw;
    font-weight: 700;
    line-height: 1.26;
}

    h2{
    font-size: 5.5vw;
    font-weight: 300;
}

    h3{
    font-size: 4.3vw;
    font-weight: 300;
}
    
    .intro{
        margin-left: 13.5vw;
        margin-right: 15.6vw;
        margin-bottom: 8vw;
    }

    .intro h2{
        width: 50vw;
        line-height: 1.5;
}
    
    .work{
    margin: 14vw 3.1vw;
    
}
    .work article{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 10vh;
}


    .work article img{
        width: 100%;
        height: 100%;
        background-color: grey;
}
    .work article div{
        width: 100%;
        margin-top: 6vw;
        margin-left: 6.2vw;
}    
 
    .work article:nth-of-type(2n) a{
        order: 0;
}

    .text{
        margin: 0vh 10vw 0vh 10vw;
}
    
    .medium{
        margin-left: 10vw;
        margin-right: 10vw;
        margin-top: 10vw;
        margin-bottom: 10vw;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
}

    .medium img{
        width: 100%;
}

    .medium h3{
        align-self: flex-end;
        width: 100%;
        line-height: 1.4;
        margin-top: 4vw;
        order: 2;
}
  
    .large{
        margin-top: 10vw;    
    }
    
    .large + .large{
        margin-top: 4vw;
    }
    .large h3{
        margin-left: 10vw;
        margin-top: 4vw;
        width: 80vw;
        margin-bottom: 10vw;
        line-height: 1.4;
    }
    
    .center{
        margin: 10vw 2vw;
    }
    
    .center h3{
        width: 100%;
        line-height: 1.4;
        margin-top: 4vw;
    }
    
    .twoup, .twoup2 {
        height: auto;
        margin-left: 2vw;
        margin-right: 2vw;
        margin-top: 10vw;
        margin-bottom: 0vw;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .twoup img:first-of-type, .twoup img:last-of-type, .twoup2 img:first-of-type, .twoup2 img:last-of-type{
        width: 100%;
        height: 100%;
        margin-bottom: 10vw;
    }
    
    .side{
        margin-left: 2vw;
        margin-right: 2vw;
        margin-bottom: 10vw;
        width: 96vw;
    }
    
    .side:nth-of-type(3n){
        margin-left: 2vw;
    }
    
    .side + .side{
        margin-left: 2vw;
        width: 96vw;
    }
    
    .text + .side{
        margin-top: 10vw;
    }
    
    footer div h3{
        font-size: 3.85vw;
    }
    
    .small{
        margin: 10vw 2vw;
    }
    
    .center-multiple{
        margin: 10vw 2vw;
        height: inherit;
    }
    
    .center-multiple img{
        width: 18.5vw;
    }
    
    .about{
        padding: 15vw 2vw;
        height: auto;
        flex-wrap: wrap;
    }
    
    .about img, about div{
        width: 100%;
        height: 100%;
    }
    
    .about .text{
        margin-left: 8vw;
        margin-right: 8vw;
    }
    
    .about .text h3 + h3{
    }
}