/* Resets */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup,
var, b, i, hr, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, figure, figcaption, hgroup, menu, footer, header, nav, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
}
.clearfix:before, .clearfix:after {
    content: "";
    display: table;
}
.clearfix:after {
    clear: both;
}
.clearfix {
    zoom: 1;
}
.maxwidth {
    max-width: 74rem;
    margin: auto;
}
:focus {
    outline: none;
}
strong {
    font-weight: 500;
}
article, aside, canvas, figure, figure img, figcaption, hgroup, footer, header, nav, section, audio, video {
    display: block;
}
body, input, button,
textarea, select, option {
    font-family: 'Times New Roman', Times, serif;
    color: #fff;
    font-size: 1.2em;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -webkit-text-shadow: rgba(0, 0, 0, 0.01) 0 0 1px;
    text-shadow: rgba(0, 0, 0, 0.01) 0 0 1px;
}
body {
    background: #333;
    text-align: center;
}
body.fixed {
    overflow: hidden;
}
p {
    margin-bottom: 1em;
}
h1, h2, h3, h4 {
    font-family: "Nunito", Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    line-height: 1;
}
h1 {
    font-size: 1.6em;
}
h2 {
    font-size: 1.4em;
    margin-top: 1em;
}
h3 {
    font-size: 1em;
    margin-bottom: 1em;
}
h4 {
    font-size: .8em;
    margin-bottom: 1em;
}
a {
    color: #fff;
    cursor: pointer;

    -webkit-transition: .3s all ease-in-out;
    -moz-transition: .3s all ease-in-out;
    transition: .3s all ease-in-out;
}
a:hover {
    color: #C69E73;
}
.header-trigger {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    z-index: 999;
}
header {
    position: fixed;
    font-family: "Nunito", Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    padding: 20px;
    top: -100px;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 250px auto;
    background-color: #fffa;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(5px);
    font-size: .8em;
    align-items: center;

    -webkit-transition: .1s all ease-in-out;
    -moz-transition: .1s all ease-in-out;
    transition: .1s all ease-in-out;
}
header.active,
.header-trigger:hover header {
    top: 0;
    /* background-color: #fff; */
}
.menu-toggle,
.menu-control {
    display: none;
}
nav ul {
    list-style: none;
    text-align: right;
}
nav ul li {
    display: inline-block;
    margin: 0 .5em;
}
nav ul li a {
    color: #333;
    text-decoration: none;
}
section {
    /* min-height: 100vh; */
    box-sizing: border-box;
    padding: 20px 0;
    background: #333;
}
section.work,
section.clients,
section.services,
section.about,
section.team,
section.contacts {
    position: relative;
    z-index: 1;
}
section.clients {
    background-color: #fdfdfd;
}
.hero {
    padding: 0;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    top: 0;
}
.hero-slider .slide {
    background: #333;
}
.hero-slider .slide > img {
    width: 100%;
    height: 85vh;
    object-fit: cover;
    display: block;
    opacity: .5;
}
.intro {
    position: absolute;
    max-width: 640px;
    padding: 20px;
    margin: 15vh auto auto;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9;
}
.intro img {
    max-width: 300px;
    margin-bottom: 4em;
}
.intro h1 {
    margin-bottom: 1rem;
}
.work {
    position: relative;
    max-height: 100vh;
    overflow: hidden;
    background-color: #000;
}
section.clients {
    min-height: 0;
}
.clients-container {
    margin: 2em auto;
    padding: 0 3em;
    max-width: 630px;
}
.slides ul {
    list-style: none;
}
.slides li {
    display: inline-block;
}
.clients-slider .ul {
    overflow: hidden;
    max-height: 0;
    transition: max-height .7s ease-in-out;
}
.clients-slider .flex-viewport .ul {
    max-height: 300px;
}
.clients-slider img {
    max-width: 100%;
    height: 80px;
    width: 100px;
    object-fit: contain;
}
.work-container {
    overflow: hidden;
    width: 100%;
    margin-top: 20px;
    padding-bottom: 20px;
    position: relative;
}
.work-slider {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}
.work-slider li {
    list-style: none;
    opacity: .3;
    transform: scale(.95);
    transition: all .5s ease-in-out;
}
.work-slider li.flex-active-slide {
    opacity: 1;
    transform: scale(1.05);
}
.work-slider .flex-viewport {
    overflow: visible !important;
    margin: 0 80px;
    padding: 20px 0;
}
.work-slider .embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: auto;
    overflow: hidden;
    max-width: calc(100vw - 2em);
}
.work-slider .embed-container iframe, 
.work-slider .embed-container object,
.work-slider .embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.work-captions {
    text-align: left;
    font-size: 1rem;
    margin: auto;
    max-width: 920px;
    padding-top: 30px;
    padding-right: 30px;
    padding-left: 30px;
}
.work-captions ul {
    list-style: none;
}
.vid-content {
    display: block;
    padding: 5px 40px;
}
ul.flex-direction-nav .flex-nav-next,
ul.flex-direction-nav .flex-nav-prev {
    position: absolute;
    opacity: 1;
    top: 50%;
    margin-top: -20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    list-style: none;
    z-index: 5;
}
ul.flex-direction-nav .flex-nav-next {
    right: 20px;
}
ul.flex-direction-nav .flex-nav-prev {
    left: 20px;
}
ul.flex-direction-nav .flex-nav-next a,
ul.flex-direction-nav .flex-nav-prev a {
    display: block;
    text-align: left;
    text-indent: -1000px;
    overflow: hidden;
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
    position: absolute;
    top: 8px;
    left: 10px;
    opacity: .5;
    z-index: 9;
}
ul.flex-direction-nav .flex-nav-next a:hover,
ul.flex-direction-nav .flex-nav-prev a:hover {
    opacity: 1;
}
ul.flex-direction-nav .flex-nav-next a {
    border-right: 6px solid #fff;
    border-top: 6px solid #fff;
    border-bottom: none;
    border-left: none;
}
ul.flex-direction-nav .flex-nav-prev a {
    border-left: 6px solid #fff;
    border-bottom: 6px solid #fff;
    border-top: none;
    border-right: none;
}
.flex-control-nav {
    text-align: center;
}
.flex-control-nav li {
    display: inline-block;
    padding: 3px;
}
.flex-control-nav li a {
    display: block;
    text-align: left;
    text-indent: -1000px;
    overflow: hidden;
    height: 10px;
    width: 10px;
    background-color: #ccc;
    border-radius: 10px;
}
.flex-control-nav li a.flex-active {
    width: 20px;
}
.flex-control-nav li a.flex-active,
.flex-control-nav li a:hover {
    background-color: #333;
}
.services {
    /* background: #333; */
}
.services-tiles {
    margin: 20px 0;
    display: grid;
    gap: 2em;
    padding-inline: 2em;
    grid-template-columns: repeat(4, 1fr);
}
.services-tiles img {
    width: 60%;
    height: auto;
    object-fit: contain;
}
.services-tiles h3 {
    min-height: 2.5em;
    margin: 15px;
    line-height: 1.2;
}
.services-tiles p {
    margin: 15px;
    font-size: 1rem;
}
.about {
    background: url('../img/maasai.jpg') no-repeat fixed #fff center;
    background-size: cover;
    color: #333;
    padding: 40px 50% 40px 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-content: center;
    min-height: 90vh;
}
.about > div {
    margin: auto 0;
}
.about h2,
.contacts h2,
.team h2 {
    color: #C69E73;
    margin-bottom: 1em;
}
.contacts {
    background: #000;
}
.contacts .maxwidth {
    display: flex;
    gap: 40px;
    flex-direction: row-reverse;
}
.contacts .form,
.contacts .social {
    flex-basis: 100%;
}
.contacts h3 {
    font-family: "Nunito", Helvetica, Arial, sans-serif;
    color: #C69E73;
    font-size: 1.3em;
    margin-bottom: 1em;
}
.contacts .icons a {
    /* display: inline-block; */
    margin: 0 10px;
    opacity: .6;
    border: none;
}
.contacts .icons a img,
.contacts .icons a svg {
    width: 33px;
    height: 33px;
}
.contacts .icons a:hover {
    opacity: 1;
}
.contacts label {
    display: block;
}
.contacts .form {
    display: flex;
    align-items: center;
    padding: 20px;
}
.contacts .social {
    padding: 40px 10px;
}
.contacts .form input,
.contacts .form textarea {
    font-size: inherit;
    box-sizing: border-box;
    background: transparent;
    border: none;
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
    width: 100%;
}
.contacts .form input:hover,
.contacts .form textarea:hover,
.contacts .form input:focus,
.contacts .form textarea:focus {
    border-bottom: 1px solid #666;
}
.contacts .form form {
    width: 100%;
}
.contacts .form textarea {
    padding: 10px;
    min-height: 150px;
    background: rgba(255,255,255,.1);
}
.contacts .form textarea:hover,
.contacts .form textarea:focus {
    border-bottom: 1px solid #666;
    background: rgba(255,255,255,.15);
}
.contacts .form input[type=submit] {
    border: none;
    background: #C69E73;
    color: #000;
    cursor: pointer;
}
.contacts .form input[type=submit]:hover {
    background: #AD865B;
}
.team-intro {
    margin-bottom: 3em;
    max-width: 600px;
    margin-inline: auto;
}
.team-heads {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
    padding-bottom: 2em;
}
a.member {
    cursor: pointer;
    flex-basis: 12.5%;
    min-width: 150px;
}
a.member img {
    width: 100%;
    height: auto;
    display: block;
    filter: gray;
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
}
a.member:hover img {
    -webkit-filter: grayscale(0);
    filter: none;
}
.popup .close {
    color: #666;
    position: absolute;
    font-size: 2em;
    top: 0px;
    right: 10px;
    cursor: pointer;
}
.popup .close:hover {
    color: #333;
}
.popup {
    color: #333;
    position: fixed;
    background: #fff;
    top: 50vh;
    right: 50px;
    left: 50px;
    display: flex;
    align-items: start;
    overflow: scroll;
    z-index: 9999;
    margin: auto;
    max-width: 36em;
    text-align: left;
    gap: 1em;
    box-sizing: border-box;
    
    padding: 0 1em;
    opacity: 0;
    transform: scale(.5);
    max-height: 0;
    overflow: hidden;
    transition: all .3s ease-in-out;
}
.popup.show {
    top: 10vh;
    padding: 1em;
    opacity: 1;
    transform: scale(1);
    max-height: 80vh;
    overflow-y: auto;
}
.popup img {
    width: 250px;
}
.about-me {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 1em;
}
.overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: #333c;
    z-index: -1;
    opacity: 0;
    transition: all .3s ease-in-out;
}
.overlay.show {
    opacity: 1;
    z-index: 999;
}
@media only screen and (max-width: 78rem) {
    .flex-viewport {
        margin: 0 40px;
    }
    section {
        min-height: 300px;
    }
}
@media only screen and (max-width: 64rem) {
    body, input, button,
    textarea, select, option {
        font-size: 1em;
    }
    h2 {
        font-size: 2em;
    }
    header {
        grid-template-columns: 200px auto;
        grid-template-areas: "logo toggle"
            "menu menu";
            padding-bottom: 0;
    }
    header a {
        grid-area: logo;
        position: relative;
        z-index: 9;
    }
    header a img {
        width: 200px;
    }
    .menu-toggle {
        display: block;
        text-align: right;
        position: relative;
        z-index: 9;
        cursor: pointer;
        grid-area: toggle;
        color: #333;
    }
    .menu-control {
        display: block;
        opacity: 0;
        visibility: hidden;
    }
    header nav {
        grid-area: menu;
        position: fixed;
        top: 0;
        background: #fff;
        opacity: .95;
        right: 0;
        bottom: 0;
        left: 0;
        font-size: 2em;
        padding-top: 100px;
        z-index: 3;
        display: none;
    }
    header .menu-control:checked ~ nav {
        display: block;
    }
    nav ul {
        text-align: center;
    }
    nav ul li {
        display: block;
    }
    .intro {
        padding: 10px 50px;
    }
    .intro h1 {
        font-size: 2em;
    }
    .intro img {
        width: 100%;
    }
    .vid-content {
        padding-right: 0;
        padding-left: 0;
    }
    .services-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
    .about {
        background-position: 70% top;
    }
    .services-tiles img {
        height: 150px;
    }
    .contacts .maxwidth,
    .team .maxwidth {
        display: block;
        padding: 40px;
    }
    .team-heads img {
        width: 100%;
        height: auto;
    }
    .team-heads .open img {
        width: 150px;
        height: 150px;
        display: block;
        margin: 10px auto;
    }
    .popup {
        display: block;
        top: 100px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
    .about-me {
        margin-top: 1em;
        max-height: unset;
        padding-right: unset;
    }
}
@media only screen and (max-width: 48rem) {
    .work-slider .flex-viewport {
        margin: 0 40px;
    }
    ul.flex-direction-nav .flex-nav-prev {
        left: 10px;
    }
    ul.flex-direction-nav .flex-nav-next {
        right: 10px;
    }
    ul.flex-direction-nav .flex-nav-next a {
        border-right: 2px solid #fff;
        border-top: 2px solid #fff;
        border-bottom: none;
        border-left: none;
    }
    ul.flex-direction-nav .flex-nav-prev a {
        border-left: 2px solid #fff;
        border-bottom: 2px solid #fff;
        border-top: none;
        border-right: none;
    }
    .work-captions {
       font-size: .8rem;
    }
   .services-tiles {
       display: block;
   }
   .team-heads {
       align-items: center;
       flex-wrap: wrap;
   }
   .team-heads .member {
       width: 50%;
   }
}