/* Root */
:root {
    --c-main: #333;
    --c-background: #fff;
    --c-accent: var(--c-main);
    --c-link: #5463FF;
    --c-screen: #f1f1f1;
}

/* App */
#app {
    display: block;
    position: relative;
    font-family: Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: left;
    color: var(--c-main);
}

body {
    font-size: 18px;
}

/* Util */
* {
    margin: 0;
    padding: 0;
}
*:focus {
    outline: none;
}
a:any-link {
    color: var(--c-link);
    font-weight: inherit;
    text-decoration: none;
    font-size: inherit;
}
a:hover, a:focus {
    text-decoration: underline;
}
h1 > a:any-link {
    color: inherit !important;
    text-decoration: none !important;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}
div, footer, header, main, nav, section {
    position: relative;
    box-sizing: border-box;
    line-height: 1.3;
}
.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hidden, .none {
    display: none;
}
.vertical-align {
    position: relative;
    top: 50vh;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
h1, h2, h3, h4, h5, h6, p {
    color: var(--c-main);
    margin: 1rem 0;
    line-height: 1.3;
}
.br {
    border-radius: 4px;
}

/* Logo */
.logo {
    position: absolute;
    top: 0px;
    left: 40px;
    height: 40px;
    z-index: 9999;
}

/* Nav */
.nav {
    width: 100%;
    background: #191919;
    z-index: 999;
    position: sticky;
    display: block;
    top: 0;
    left: 0;
    padding: 5px 0;
}
.nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav a:any-link {
    display: block;
    cursor: pointer;
    margin: 10px 0;
    padding: 5px 10px;
    color: #F5F7F8;
    text-decoration: none;
    border-radius: 4px;
}
.nav a:hover, .nav a:focus {
    background: rgb(51, 51, 51);
}

/* Wrapper */
.wrapper {
    position: relative;
    box-sizing: border-box;
    margin: 0px;
    padding: 0;
}

/* Hero */
.hero {
    background-color: #000;
    height: 100vh;
    width: 100%;
    /* background-image: url("/public/img/i5.jpg"); */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right 0px top 0px;
    text-transform: uppercase;
    overflow: hidden;
    box-sizing: border-box;
}
.hero-title {
    color: #F5F7F8;
    position: absolute;
    bottom: 2.5%;
    font-weight: 800;
    line-height: 5rem;
    width: 100%;
    max-width: 600px;
    text-shadow: 1px 1px 2px #000;
}
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) { 
    .hero-title {
        left: 50%;
        transform: translateX(-50%);
        bottom: 5%;
    } 
}
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-title {
        left: 10%;
        transform: none;
        bottom: 10%;
    }
 }
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-title {
        left: 15%;
        transform: none;
        bottom: 20%;
    } 
}
.hero .title {
    color: inherit;
    font-size: 6rem;
    font-weight: 800;
    line-height: .8;
    letter-spacing: -5px;
}
.hero .subtitle {
    margin-top: 50px;
    color: inherit;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -1px;
}
@media (max-width: 768px) {
    .hero .title { 
        font-size: 3rem;
    }
    .hero .subtitle {
        font-size: 1.5rem;
        margin-top: 20px;
    }
}
#hero-video {
    object-fit: cover;
    height: 100%;
    width: 177.77777778vh; /* 100 * 16 / 9 */
    min-width: 100%;
    min-height: 56.25vw; /* 100 * 9 / 16 */
}

/* About */
.about {
    text-align: justify;
}

/* Claim */
.claim {
    background-color: #191919;
    width: 100%;
    height: 400px;
    background-image: url("/public/img/i8.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right 0px top -200px;
    background-attachment: fixed;
    color: #F5F7F8;
    display: flex;
    align-items: center;
}
.claim .quote {
    color: inherit;
    font-size: 2rem;
    text-align: center;
}

/* Philosophy */
.philosophy p {
    text-align: justify;
}

/* Carousel */
.carousel {
    overflow: hidden;
    display: flex;
    > * {
        flex: 0 0 100%;
    }
    &:hover .group {
        animation-play-state: paused;
    }
}
.group {
    display: flex;
    gap: 40px;
    /* Add padding to the right to create a gap between the last and first card. */
    padding-right: 40px;
    will-change: transform; /* We should be nice to the browser - let it know what we're going to animate. */
    animation: scrolling 40s linear infinite;
}
@keyframes scrolling {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .carousel {
        overflow-x: scroll;
    }
    .group {
        padding: 0 40px;
        animation: none;
    }
}

/* Clients */
.clients {
    background-color: #191919;
    padding: 80px 0;
    /* width: 100%; */
}
.client {
    border-radius: 4px;
    background-color: #272829;
    height: auto;
    width: 600px;
    min-width: 600px;
    padding: 40px;
    color: #F5F7F8;
}
.client .quote {
    margin-bottom: 20px;
}
.client .person {
    display: flex;
    align-items: center;
    column-gap: 20px;
}
.client .image img {
    width: 80px;
    height: 80px;
    border-radius: 100px;
}

@media (max-width: 768px) {
    .client {
        min-width: 90vw;
        max-width: none;
        width: 90vw;
    }
    .group-copy {
        display: none;
    }
}

/* Events */
.events {

}
.events .entry {
    display: flex;
    column-gap: 20px;
    align-items: center;
    justify-content: space-around;
    max-width: 800px;
    width: 100%;
}
.events .date {
    display: inline-block;
    text-align: center;
    background-color: #272829;
    color: #F5F7F8;
    padding: 20px;
    margin: 20px 0px;
    border-radius: 4px;
    width: 100px;
}
.events .day {
    font-size: 3rem;
    line-height: 2.8rem;
    font-weight: 600;
}
.events .month {
    font-size: 1rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .events .entry {
        display: block;
    }
    .events .date {
        width: auto;
        display: inline-flex;
        column-gap: 5px;
        align-items: center;
        justify-content: space-around;
    }
    .events .day, .events .month {
        font-size: 1rem;
        line-height: 1rem;
        font-weight: 600;
    }
}

/* Projects */
.projects .project {
    display: flex;
    width: 100%;
    height: auto;
    margin: 1rem 0;
    max-width: 1000px;
    min-width: 700px;
    box-sizing: border-box;
}

.projects .project-img {
    display: block;
    box-sizing: border-box;
    margin: 0 auto;
    width: 356px;
    min-width: 356px;
    max-width: 356px;
}

.projects .project-img img {
    width: 100%;
    height: auto;
}

.projects .project-text {
    margin-left: 1rem;
}

.projects .project-headline {
    font-weight: 600;
}

.projects span {
    font-size: 0.8rem;
}

.projects .btn {
    margin: 0.5rem 0;
    background-color: #111827;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2rem;
    padding: .45rem 0.8rem;
    text-align: center;
    text-decoration: none #6B7280 solid;
    text-decoration-thickness: auto;
    transition-duration: .2s;
    transition-property: background-color,border-color,color,fill,stroke;
    transition-timing-function: cubic-bezier(.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    width: auto;
}

.projects .btn:hover {
  background-color: #374151;
}

@media (min-width: 768px) {
  .button-40 {
    padding: .75rem 1.5rem;
  }
}

@media (max-width: 992px) {
    .projects .project {
        display: block;
        min-width: 0px;
    }
    .projects .project-img {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    .projects .project-text {
        margin-top: 1rem;
        margin-left: 0rem;
    }
}

/* Contact */
.contact {
    background-color: #191919;
    color: #fff;
}
.contact h2, .contact p {
    color: inherit;
}
.contact a:any-link {
    color: #068FFF;
}

/* Footer */
.footer {
    text-align: center;
    background-color: #272829;
    color: #F5F7F8;
}
.footer p {
    color: inherit;
    margin: 10px 0;
}
.footer a:any-link {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
    font-size: inherit;
    padding: 0 10px;
}
.footer a:hover, .footer a:focus {
    text-decoration: underline;
}

/* NoScript */
.noscript {
    position: absolute;
    font-size: 1rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: calc(100% - 80px);
    top: 40px;
    background: #D8A25E;
    color: #000;
    border-radius: 4px;
    padding: 10px 20px;
    z-index: 9999;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .125);
}

/* Appear */
.appear {
    transition: all 0.8s;
    opacity: 0;
    transform: translateY(40px);
}
.appear.inview {
    opacity: 1;
    transform: none;
    transition-delay: 0.3s;
}

/* Code */
.code {
    background: #06283D;
    color: #fff;
    font-family: Consolas, sans-serif;
    padding: 20px;
    border-radius: 4px;
}
.code p { margin: 0; }
.code-grey { color: #D8D9CF; }
.code-red { color: #F55353; }
.code-yellow { color: #F6F6C9; }
.code-blue { color: #5DA7DB; }