* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    background-color: #111;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "liga" 1;
}

.mainheader, .footer{
    background: #1D1D1D;
    padding: 29px 0px;
    width: 100%;
}

.headerwrapper, .pagecontent, .footerwrapper {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    display: block;
    overflow: hidden;
    padding: 0px 20px;
}

.footer{
    padding: 20px 0px;
    margin-top: 80px;
}

.footerwrapper{
    width: 460px;
}

.footerwrapper .mainnav {
    float: none;
    overflow: hidden;
}

.menutray .mainnav{
    width: 100%;
    float: none;
    display: block;
    border-top: 1px solid #DDD;
}

.menutray a.close{
    display: block;
    width: 100%;
    height: 62px;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.menutray a.close img{
    width: 62px;
    height: auto;
    padding: 20px;
    float: right;
}

.menutray .mainnav a {
    filter: invert(1);
    opacity: 1;
    display: block;
    float: none;
    width: 100%;
    padding: 24px;
    border-bottom: 1px solid #222;
}

 .pagecontent {
    padding-top: 80px;
    overflow: visible;
 }

.logolink{
    display: block;
    float: left;
}

.mainnav{
    float: right;
}

.mainnav a{
    display: block;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #FFF;
    float: left;
    line-height: 1.4em;
    text-decoration: none;
    opacity: 0.5;
}

.mainnav a::before {
    content: " ";
    width: 20px;
    height: 20px;
    display: block;
    float: left;
    background: url('../img/dribbble.png');
    background-size: 100%;
    margin-right: 4px;
}

.mainnav a:hover {
    opacity: 1;
}

.mainnav a.dribbble::before {
    background: url('../img/dribbble.png');
    background-size: 100%;
}

.mainnav a.linkedin::before {
    background: url('../img/linkedin.png');
    background-size: 100%;
}

.mainnav a.resume::before {
    background: url('../img/resume.png');
    background-size: 100%;
}

.mainnav a.email::before {
    background: url('../img/email.png');
    background-size: 100%;
}

.mainnav a {
    margin-right: 40px;
}

.mainnav a:last-child {
    margin-right: 0px;
}

a.hamburger {
    display: none;
}

a.hamburger img {
    width: 22px;
    height: 22px;
}

.engagements, .worksection {
    margin-top: 80px;
    overflow: hidden;
}

.worksection{
    overflow: visible;
}

.engmntcell {
    width: 44%;
    margin-right: 80px;
    float: left;
}

.engmntcell p.small {
    opacity: 0.6;
    font-size: 14px;
    line-height: 20px;
}

.engmntcell:last-child{
    margin-right: 0px;
}

a.projectcover{
    display: block;
    overflow: visible;
    transform: scale(1, 1);
    -webkit-transform: scale(1, 1);
    transition: 0.4s cubic-bezier(0, 0.54, 0.27, 0.99) transform;
    -webkit-transition: 0.4s cubic-bezier(0, 0.54, 0.27, 0.99) transform;
    margin-bottom: 80px;
    text-decoration: none;
}

a.projectcover:hover, a.projectcover:active{
    transform: scale(1.01, 1.01);
    -webkit-transform: scale(1.01, 1.01);
}

a.comingsoon{
    cursor: not-allowed;
    opacity: 1;
    transition: 0.15s ease-out opacity;
    -webkit-transition: 0.15s ease-out opacity;
}

a.comingsoon:hover, a.comingsoon:active {
    transform: scale(1, 1);
    -webkit-transform: scale(1, 1);
    opacity: 0.8;
}

a.projectcover img{
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.desktop{
    display: block;
}

.mobile{
    display: none;
}

.overlay{
    width: 100%;
    height: 100%;
    position: fixed;
    display: none;
    top: 0px;
    left: 0px;
    background: #000;
    opacity: 0.8;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.menutray{
    width: 80%;
    height: 100%;
    position: fixed;
    top: 0px;
    right: 0%;
    background: #F1F1F1;
    transition: 0.2s cubic-bezier(0, 0.54, 0.27, 0.99) right;
    -webkit-transition: 0.2s cubic-bezier(0, 0.54, 0.27, 0.99) right;
}

.menutray.open{
    right: 0%;
}

.menutray.close{
    right: -80%;
}

/* Typography */

h1, h2, h3, p, a {
    font-family: 'Roboto', sans-serif;
    line-height: 1.2em;
    letter-spacing: 0em;
    color: #FFF;
    margin: 0;
}

h1{
    font-size: 54px;
    color: #FFF;
    letter-spacing: -0.2px;
    font-weight: bold;
    line-height: 1.4em;
}

h2{
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 32px;
}

h2:after{
    content: " ";
    display: block;
    width: 30px;
    height: 2px;
    background-color: #FFF;
    margin-top: 6px;
}

a[target="_blank"]:after{
    content: " ";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url('../img/newtablink.png');
    background-size: 100%;
    margin: 0px 0px -1px 5px;
    opacity: 0.4;
}

a[target="_blank"]:hover:after{
    opacity: 1;
}

.mainnav a[target="_blank"]:after{
    display: none;
}

h3, a.h3 {
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.2px;
    line-height: 26px;
    text-decoration: none;
}

a.h3:hover{
    text-decoration: underline;
}

p{
    font-weight: normal;
    font-size: 12px;
    letter-spacing: 0.2px;
    line-height: 18px;
    color: #FFF;
    opacity: 1;
    margin-bottom: 12px;
}

p.small{
    opacity: 0.5;
}

@media(max-width: 760px) {
    .pagecontent{
        padding-top: 60px;
    }

    h1{
        font-size: 40px;
    }

    .engagements, .worksection {
        margin-top: 60px;
    }

    h2{
        margin-bottom: 24px;
    }

    .mainheader, .footer{
        padding: 20px 0px;
    }

    .mainnav{
        display: none;
    }

    .footer .mainnav{
        display: block;
    }

    a.logolink img {
        width: 220px;
        padding: 4px 0px;
    }

    a.hamburger {
        display: block;
        float: right;
    }
    .engmntcell{
        display: block;
        float: none;
        width: 100%;
        margin-right: 0px;
        margin-bottom: 24px;
    }

    .engmntcell:last-child{
        margin-bottom: 0px;
    }

    .desktop{
        display: none;
    }

    .mobile{
        display: block;
    }

    a.projectcover {
        margin-bottom: 40px;
    }

    a.projectcover img {
        border-radius: 4px;
        margin-bottom: 10px;
        min-height: 260px;
    }

    a.projectcover h3 {
        margin-bottom: 5px;
    }
}

@media(max-width: 560px) {
    
}
@media(max-width: 460px) {
    h1{
        font-size: 32px;
    }
    .footerwrapper{
        width: 340px;
    }
    .footer .mainnav a::before{
        display: none;
    }
    .footer .mainnav a {
        margin-right: 32px;
    }
    .footer .mainnav a:last-child {
        margin-right: 0px;
    }
}