:root {
    --blue: #3742FA;
    --dark-blue: #2336e2;
    --grey: #171717;
    --light_grey: #f8f8f8;
    --mid_grey: #e6e9ec;
}

* {
    font-family: 'Gotham Book';
    letter-spacing: 0.25px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.anchor {
    display: table;
    width: 100%;
    clear: both;
    height: 0;
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 10px;
    background-color: transparent;
    z-index: 999;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background: #3742FA;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #2336e2;
}

#loading {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: var(--blue);
    z-index: 999;
    overflow: hidden;
}

.loaded {
    top: 100% !important;
}

.loader {
    width: 100%;
    height: 2px;
    position: fixed;
    top: calc(50vh - 1px);
    left: 0;
    right: 0;
    z-index: 1112;
    background-color: white;
    overflow: hidden;
}

.loader div {
    height: 2px;
    width: 50%;
    background-color: var(--blue);
    animation: loader 1.5s linear infinite;
}

.loading .top-remove {
    top: -80%;
}

.loading .bottom-remove {
    bottom: -80%;
}

@keyframes loader {
    0% {
        width: 0;
        margin-left: 0;
    }
    50% {
        width: 50%;
        margin-left: 0;
    }
    100% {
        width: 100%;
        margin-left: 100%;
    }
  }


body {
/*    background-image: url(../images/layout/bg-texture.png); */
    background-repeat: repeat;
    background-color: var(--grey);
    color: var(--light_grey);
    padding-top: 80px;
    font-size: 16px;
    line-height: 22px;
}

section {
    opacity: 0;
    -webkit-transition: all 350ms ease-in-out;
    -moz-transition: all 350ms ease-in-out;
    -ms-transition: all 350ms ease-in-out;
    -o-transition: all 350ms ease-in-out;
    transition: all 350ms ease-in-out;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;

    color: var(--light_grey);
    background-color: var(--grey);

    z-index: 888;
}

header .logo {
    overflow: hidden;
    width: 35px;
    height: 35px;
    background-image: url(../images/layout/logo.svg);
    background-position: left;
    background-size: 100%;
    cursor: pointer;
    display: block;


    -webkit-transition: width 500ms ease-in-out;
    -moz-transition: width 500ms ease-in-out;
    -ms-transition: width 500ms ease-in-out;
    -o-transition: width 500ms ease-in-out;
    transition: width 500ms ease-in-out;    
}

header nav {
    font-weight: bold;
    margin-top: -50px;
    text-transform: uppercase;
    float: right;
}

header nav a {
    display: table;
    float: left;
    margin-left: 25px;
}

section, footer {
    display: table;
    width: 100%;
}

section h3 {
    margin-top: 100px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
}

#home-hero {
    width: 100%;
    height: 100vh;
}

#home-hero p, #home-hero h2 {
    margin-right: 50px;
}

#home-hero .logo-frame {
    width: 300px;
    height: 300px;
    margin-right: auto;
    margin-left: auto;
    background-image: url(../images/layout/logo-full.svg);
}

@-webkit-keyframes floating-logo {
    from {
        transform: scale(1,1)
    }
    to {
        transform: scale(1.08,1.08)
    }
}
@keyframes floating-logo {
    from {
        transform: scale(1,1)
    }
    to {
        transform: scale(1.08,1.08)
    }
}


#home-hero .logo-full {
    position: absolute;
    width: 300px;
    height: 300px;
}

#home-hero .square-back {
    width: 300px;
    height: 300px;
    display: block;
    position: absolute;
    background-image: url(../images/layout/logo-full-2.svg);
    -webkit-animation: floating-logo 3s ease-in-out alternate infinite;
    animation: floating-logo 3s ease-in-out alternate infinite;    
}

#home-hero h2 {
    font-family: 'Gotham Bold';
    line-height: 32px;
    text-transform: uppercase;
    margin-top: 0;
}

#home-hero .table-align-middle {
    height: calc(100vh - 80px); 
    width: 100%;
    display: table;
    vertical-align: middle;
}

#home-hero .table-cell-align-middle {
    vertical-align: middle;
    display: table-cell;
}

#work-hero {
    background-color: var(--blue);
}

#work-hero .content {
    position: absolute;
    height: 101%; /* = 100% - 2*5% padding */
    width: 101%; /* = 100% - 2*5% padding */
}

#work-hero .square {
    float: left;
    position: relative;
    width: 33.33%;
    padding-bottom: 30%; /* = width for a 1:1 aspect ratio */
    background-color: var(--blue);
    background-size: 102%;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
}

#work-hero .square h2 {
    font-size: 16px;
}

#work-hero .square h3 {
    font-size: 18.5px;
}

#work-hero .square:hover .table-cell {
    opacity: 1;
}

#work-hero .square:hover {
    background-size: 110%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

#work-hero .table {
    display: table;
    width: 100%;
    height: 100%;
}

#work-hero .table-cell * {
    color: white;
}

#work-hero .table-cell {
    display: table-cell;
    vertical-align: middle;
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
}

.wrapper {
    width: 80%;
    margin-right: auto;
    margin-left: auto;
    display: table;
    vertical-align: middle;
}

.wrapper .column-50 {
    display: table-cell;
    vertical-align: middle;
}

.wrapper p.text {
    line-height: 28.5px;
    font-size: 18.5px;
}

.wrapper p strong {
    width: calc(100%);
    font-family: 'Gotham Bold';
    text-decoration: none;
    background-image: linear-gradient(var(--blue), var(--blue));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 100% 8px;
}


/* CV */

#cv-hero {
    background-color: var(--blue);
    color: white;
    padding-bottom: 100px;
}

#cv-hero * {
    color: white;
}

#cv-hero h4 {
    margin-bottom: 0;
}

#cv-hero h4#accordion3 {
    margin-top: 100px;
}

#cv-hero .list-agency {
    padding-top: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--dark-blue);
    width: 85%;
}

#cv-hero .list-agency:hover {
    opacity: 0.8;
}

#cv-hero .list-agency:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

#cv-hero .list-agency span {
    font-size: 14px;
    display: block;
    margin: 0;
}

#cv-hero .list-agency p:first-of-type {
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 2px;
    letter-spacing: 1.5px;
}

#cv-hero .list-agency p:last-of-type {
    margin-top: 0;
}

#stay-in-touch-hero {
    text-align: center;
    font-size: 20px;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: var(--dark-blue);
}

#stay-in-touch-hero p {
    font-weight: bold;
}

#stay-in-touch-hero .logo-negative {
    width: 25px;
    height: 25px;
    background-image: url(../images/layout/logo-negative.svg);
    background-position: center;
    background-size: 100%;
    display: block;
    margin-right: auto;
    margin-left: auto;
    margin-top: 25px;
}

#stay-in-touch-hero .button-contact {
    border: 2px solid white;
    display: inline-block;
    width: 310px;  
    height: 38px; 
    font-size: 16px;
    text-align: left;
    overflow: hidden;
    margin-right: 12.5px;
    margin-left: 12.5px;
    margin-bottom: 12.5px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-weight: bold;
}

#stay-in-touch-hero .button-contact:hover {
    background-color: white;
    border-color: var(--grey);
    color: var(--grey);
}

#stay-in-touch-hero .button-contact:hover .button-contact-icon {
    background-color: var(--grey);
}

#stay-in-touch-hero .button-contact-icon {
    background-size: 16px;
    border-right: 2px solid white;
    width: 38px;
    height: 38px;
    display: table-cell;
}

#stay-in-touch-hero .button-contact:hover .button-contact-icon {
    border-color: black;
}

#stay-in-touch-hero .button-contact-info {
    height: 38px;
    line-height: 38px;
    text-align: middle;
    padding-left: 10px;
    display: table-cell;
}

.pushdown-arrow {
    cursor: pointer;
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    -webkit-animation: floating 1s ease-in-out alternate infinite;
    animation: floating 1s ease-in-out alternate infinite;
}

.arrow {
    width: 40px;
    height: 40px;
    background-image: url(../images/layout/btn-arrow.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: auto;
    margin-left: auto;
}

@-webkit-keyframes floating{from{bottom:40px}to{bottom:30px}}@keyframes floating{from{bottom:40px}to{bottom:30px}}

canvas {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.btn-menu {
    display: none;
}

@media only screen and (max-width: 640px) {


    #home-hero p, #home-hero h2 {
        margin-right: auto;
    }

    .btn-menu {
        display: block;
        width: 28px;
        height: 28px;
        position: fixed;
        right: 25px;
        top: 25px;
        z-index: 888;
    }

    .btn-menu-line1 {
        margin-bottom: 5px;
    }

    .btn-menu-line1, .btn-menu-line2 {
        height: 3px;
        background-color: var(--blue);
        width: 100%;
        display: block;
    }

    .header-opened .btn-menu-line1, .header-opened .btn-menu-line2 {
        background-color: var(--grey);
        position: absolute;
        top: 3px;
    }

    .header-opened .btn-menu-line1 {
        -moz-transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
        margin: 0;
    }

    .header-opened .btn-menu-line2 {
        -moz-transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        transform: rotate(-45deg);
        margin: 0;
    }

    .header-opened nav {
        right: 0;
        width: calc(100% - 75px);
    }

    .wrapper {
        width: calc(100% - 50px);
        margin-right: 25px;
        margin-left: 25px;
    }

    header {
        height: 60px;
    }
    
    header .logo {
        overflow: hidden;
        width: 28px;
        height: 28px;
        background-size: 100%;
        margin-top: 15px;
    }
    
    header nav {
        margin-top: 0;
        position: fixed;
        top: 0;
        right: -100%;
        background-color: var(--blue);
        width: 50%;
        height: 100%;
        padding-top: 25px;
        z-index: 887;
    }
    
    header nav a {
        display: table;
        width: 100%;
        float: none;
        margin-left: 25px;
        margin-bottom: 25px;
    }

    #stay-in-touch-hero .button-contact {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    #work-hero .square {
        width: 50%;
        padding-bottom: 50%; /* = width for a 1:1 aspect ratio */
        background-color: var(--blue);
    }

    #work-hero .content {
        height: 102%; /* = 100% - 2*5% padding */
        width: 102%; /* = 100% - 2*5% padding */
    }
    
    #work-hero .square h2 {
        font-size: 14px;
        line-height: 14px;
        margin-bottom: 5px;
    }
    
    #work-hero .square h1 {
        font-size: 18px;
        padding-bottom: 12.5px;
        padding-top: 0;
        margin-top: 0;
        margin-right: 12.5px;
        margin-left: 12.5px;
    }
    
    #work-hero .table-cell {
        vertical-align: bottom;
        background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 73%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 73%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 73%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 );
        opacity: 1;
    }

    #work-hero .table-cell button {
        display: none;
    }

    #cv-hero h4 {
        background-image: url(../images/layout/btn-arrow.svg);
        background-position: right 12.5px;
        background-size: 20px;
        border-bottom: 2px solid white;
        padding-bottom: 12.5px;
        pointer-events: all;
    }    

    #cv-hero h4#accordion3 {
        margin-top: 25px;
    }

    .accordion-down {
        background-image: url(../images/layout/btn-arrow-down.svg) !important;
    }    

    .accordion {
        display: none;
    }

    #stay-in-touch-hero .button-contact {
        font-size: 13.5px;
    }

}