html {
    font-size: 18px;
}

html,
body {
    width: 100%;
    -webkit-font-smoothing: antialiased;
    position: relative;
    background-color: var(--black);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    font-family: 'WorkSans', sans-serif;
    color: var(--white);
    line-height: 1.6;
    font-weight: 300;
    font-style: normal;
    background-color: var(--black);
}


/* reveal onscroll */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* header */
header {
    position: fixed;
    width: 100%;
    height: var(--main-height);
    background: var(--black);
    z-index: 10;
    --trans: .15s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

header .logo {
    display: flex;
    text-transform: uppercase;
    z-index: 2;
    color: var(--color);
    --color: var(--white);
    transition: var(--trans);
}

header .logo strong {
    font-weight: 600;
}

header .logo .icon {
    display: flex;
    --dim: .55em;
    height: var(--dim);
    width: var(--dim);
    position: absolute;
    right: calc(-1.5 * var(--dim));
    bottom: calc(1.5 * var(--dim));
    fill: var(--color);
    transition: var(--trans);
}

.open-nav header .logo {
    --color: var(--black);
}

/* nav */
nav {
    display: flex;
}

nav a {
    display: inline-block;
    color: var(--grey-light);
    transition: .3s;
}

nav a:hover {
    color: var(--white);
}

nav a:not(:first-child) {
    display: inline-block;
    margin-left: 2rem;
}

.nav-background {
    display: none;
}

/* nav mobile */

.burger {
    display: none;
    width: 20px;
    height: 25px;
    z-index: 10;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.burger span {
    margin-top: -1.5px;
    display: block;
    width: 20px;
    height: 3px;
    background-color: var(--white);
    position: relative;
    transition: var(--trans);
}

.burger span::before,
.burger span::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: var(--white);
    transition: var(--trans);
}

.burger span::before {
    top: -6px;
}

.burger span::after {
    top: 6px;
}

.open-nav .burger span {
    background-color: transparent;
}

.open-nav .burger span::before {
    transform: rotate(45deg);
    top: 0;
    background-color: var(--black);
}

.open-nav .burger span::after {
    transform: rotate(-45deg);
    top: 0;
    background-color: var(--black);
}

.burger:hover {
    cursor: pointer;
}

/* main */

main {
    padding-top: var(--main-height);
    z-index: 1;
    background-color: var(--black);
}

/* hero */

.hero {
    height: calc(100vh - var(--main-height));
    display: flex;
    align-items: center;
}

h1 {
    font-family: 'Trap', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    margin-top: 1.5rem;
    width: 65vw;
    margin-bottom: var(--main-height);
}

.hero .icon {
    position: absolute;
    height: 120%;
    width: 120%;
    right: -60%;
    top: 13%;
}


/* about */

.about-content {
    display: flex;
    padding-top: var(--padding);
}

.about-img {
    width: 45%;
    aspect-ratio: 5/6;
}

.about-text {
    margin-left: calc(var(--padding) * 2);
    width: 55%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: baseline;
}

.about-content h2 {
    font-weight: 400;
    font-size: 4.11rem;
}

.clients {
    margin: var(--main-gap) 0;
}

/* swiper */

.swiper {
    overflow-x: hidden;
    padding: 5px 0;
}

.swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    overflow: hidden;
}

.swiper-slide {
    flex: 1 0 auto;
    display: flex;
    height: 125px;
    justify-content: center;
}

.swiper-slide img {
    height: 100%;
    width: auto;
    object-fit: contain;
}


/* services */

.services {
    border-bottom: 1px solid var(--grey-dark);
}

.services-top {
    border-top: 1px solid var(--grey-dark);
    border-bottom: 1px solid var(--grey-dark);
}

.services-top-list {
    display: flex;
}

.service-item {
    padding: var(--main-gap) 0;
}

.service-item .paragraphe {
    color: var(--grey-light);
}

.services-top .service-item {
    width: 33.33%;
}

.services-top .service-item:first-child {
    padding-left: var(--padding);
}

.services-top .service-item:last-child {
    padding-right: var(--padding);
}

.services-top .service-item:not(:first-child) {
    padding-left: calc(var(--padding) / 1.5);
}

.services-top .service-item:not(:last-child) {
    padding-right: calc(var(--padding) / 1.5);
    border-right: 1px solid var(--grey-dark);
}

.service-item .icon {
    height: 2.22rem;
    width: 2.22rem;
}

.service-title {
    font-size: 2.22rem;
    margin: 1.1em 0 1em;
    font-family: 'Trap', sans-serif;
    font-weight: 400;
    line-height: 1;
}

.services-bottom .service-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: calc(var(--main-height) / 1.5);
    padding-bottom: calc(var(--main-height) / 1);
}

.services-bottom .service-item .paragraphe * + p {
    margin-top: .4em;
}

.icon-cross {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1.22rem !important;
    width: 1.22rem !important;
}

.icon-cross span:first-child {
    display: inline-block;
    height: 2px;
    width: 100%;
    background-color: var(--red);
}

.icon-cross span:last-child {
    display: inline-block;
    width: 2px;
    height: 100%;
    background-color: var(--red);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* work */

.work {
    padding-top: var(--main-gap);
}

.work h2 {
    font-size: 3.5rem;
    margin-bottom: calc(var(--main-gap) / 2);
    line-height: 1;
}

.projects-list {
    display: flex;
    flex-direction: column;
    --margin: var(--small-gap);
    margin: calc(-1 * (var(--margin) / 2));
}

.projects-item {
    margin: calc(var(--margin) / 2);
    border: 1px solid var(--grey-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: .44rem;
    transition: .3s ease-in-out;
    height: 280px;
    overflow: hidden;
}

.project-left {
    width: 60%;
    padding: var(--margin);
}

.projects-item .label {
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1rem;
    --color: rgba(61, 138, 151, 1);
}

.projects-item:nth-child(2) .label {
    --color: rgba(18, 112, 178, 1);
}

.projects-item:nth-child(4) .label {
    --color: rgba(253, 237, 128, 1);
}

.projects-item:nth-child(5) .label {
    --color: rgba(75, 212, 153, 1);
}

.project-title {
    font-family: 'Trap', sans-serif;
    font-size: 1.7rem;
    margin: 1.1em 0;
    line-height: 1.2;
    width: 75%;
}

.projects-item[data-link]:hover {
    border-color: rgba(var(--white-rgb), .4);
    background-color: rgba(var(--white-rgb), .04);
}

.project-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    max-height: 100%;
    width: auto;
}

.projects-item picture {
    height: 100%;
    max-height: 100%;
}

.projects-item picture img {
    object-fit: contain;
}


/* work */

.work-illu {
    height: 110vh;
    display: flex;
    justify-content: space-between;
    padding: var(--main-gap) 0;
}

.work-illu .icon {
    fill: none;
    stroke: var(--grey-dark);
    stroke-width: .1px;
    height: 80%;
    width: 80%;
    position: absolute;
    left: -50%;
    top: 50%;
    transform: translateY(-50%);
}

.work-illu img {
    aspect-ratio: 5/6;
    align-self: flex-end;
    margin-left: auto;
    width: 40%;
    max-width: calc(100vw - (var(--padding) * 2));
}

.work-statement {
    text-align: center;
    margin-bottom: var(--main-gap);
}

.work-statement h2 {
    font-size: 3.1rem;
    line-height: 1.1;
    margin-bottom: calc(var(--small-gap) / 1);
    max-width: 1235px;
}

/* feedback */

.feedbacks {
    display: flex;
    border-top: 1px var(--grey-dark) solid;
    border-bottom: 1px var(--grey-dark) solid;
}

.feedbacks-left {
    width: 55%;
    border-right: 1px var(--grey-dark) solid;
    display: flex;
    justify-content: center;
}

.feedbacks-right {
    width: 45%;
}

.feedbacks-left .feedback-item {
    padding: 3.11rem var(--padding) 3.11rem var(--padding);
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.feedbacks-right .feedback-item {
    padding: 2.6rem var(--padding) 2.6rem var(--small-gap);
}

.feedbacks-right .feedback-item:not(:last-child) {
    border-bottom: 1px var(--grey-dark) solid;
}

.feedback-icon {
    height: 2.66rem;
    width: 2.66rem;
    margin-bottom: 1em;
}

.feedback-item .paragraphe {
    font-size: .88rem;
}

.feedback-name {
    font-family: 'Trap', sans-serif;
    font-size: 1.3rem;
    margin: 1em 0 .25em;
    line-height: 1;
    font-weight: 500;
}

.feedback-role {
    font-size: .77rem;
}


.toggle {
    font-weight: 500;
    transition: margin-top .4s ease;
    margin-top: .8em;
    display: none;
}


/* contact */

.contact {
    padding-top: var(--main-gap);
}

.contact > .container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact h2 {
    font-size: 3.66rem;
    margin-bottom: -.5em;
    line-height: 1.4;
}

.contact p {
    font-size: 1.11rem;
    line-height: 1.4;
    max-width: 670px;
    margin: var(--small-gap) 0;
    color: var(--grey-light);
}

/* portfolio */

.portfolio {
    background-color: var(--blue-dark);
    padding: .75em 0 .85em;
    margin: var(--main-gap) 0 var(--footer-height);
}

.portfolio .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* footer */

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    z-index: 0;
    display: flex;
    align-items: flex-end;
}

.footer-background {
    width: 100%;
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 0;
}

.footer-background img {
    object-position: bottom;
}

.footer-infos {
    height: var(--main-height);
    width: 100%;
    display: flex;
    align-items: center;
    background-color: var(--black);
    z-index: 1;
    margin-top: auto;
    font-size: .88rem;
}

/* media queries */

@media screen and (max-width: 1300px) {
    .hero .icon {
        right: -80%;
    }

    .work-illu img {
        width: auto;
    }
}

@media screen and (max-width: 1200px) {
    .project-title {
        width: auto;
        font-size: 1.5rem;
    }

    .project-item {
        height: auto
    }

}

@media screen and (max-width: 1085px) {
    h1 {
        width: auto;
    }

    .swiper {
        width: 115vw;
    }

    .swiper-slide {
        justify-content: left;
    }

    .services-top-list {
        flex-direction: column;
    }

    .services-top .service-item,
    .services-top .service-item:not(:first-child),
    .services-top .service-item:not(:last-child) {
        width: 100%;
        padding: calc(var(--main-height) / 1.5) var(--padding);
        border-right: none;
    }

    .services-top .service-item:nth-child(2) {
        border-top: 1px solid var(--grey-dark);
        border-bottom: 1px solid var(--grey-dark);
    }

    .services-top .service-item:not(:first-child),
    .services-top .service-item:not(:last-child) {
        border-right: 0;
    }
    .services-bottom .service-item {
        align-items: flex-start;
        text-align: left;
        padding-bottom: calc(var(--main-height) / 1.5);
    }
}

@media screen and (max-width: 990px) {
    .hero .icon {
        display: none;
    }

    .projects-item {
        flex-direction: column;
        height: auto;
        text-align: center;
    }

    .project-left {
        width: 100%;
    }


    .project-right {
        width: 50%;
        min-width: 390px;
        justify-content: center;
    }

    .tag-list {
        justify-content: center;
    }

    .feedbacks {
        flex-direction: column;
    }

    .feedbacks-left,
    .feedbacks-right {
        width: 100%;
        border-right: 0;
    }

    .feedbacks-left .feedback-item {
        border-bottom: 1px solid var(--grey-dark);
    }

    .feedbacks-right .feedback-item {
        padding: 3.11rem var(--padding) 3.11rem var(--padding);
    }

    .toggle {
        display: inline-block;
    }

    .collapsed .toggle {
        margin-top: 0;
    }

    .paragraphe.collapsed p:after {
        content: '..';
        margin-left: -.3em;
    }

    .more-text {
        overflow: hidden;
        max-height: 0;
        transition: max-height .4s ease;
    }

}


@media screen and (max-width: 850px) {
    h1 {
        font-size: 3.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-img {
        width: 100%;
    }

    .about-text {
        width: 100%;
        margin-top: calc(var(--main-height) / 1.5);
        margin-left: 0;
    }
}

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

    html {
        font-size: 16px;
    }

    .burger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        width: 100%;
        padding: var(--padding) var(--padding) calc(var(--padding) * 3);
        pointer-events: none;
        opacity: 0;
    }

    .open-nav nav {
        pointer-events: auto;
        opacity: 1;
    }

    nav a {
        color: var(--black);
        font-size: 2.22rem;
        font-weight: 500;
        z-index: 1;
        margin-top: .5em;
        margin-left: 0 !important;
    }

    nav a:hover {
        color: var(--black);
    }

    .nav-background {
        position: absolute;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100vw;
        background-color: var(--yellow);
        z-index: 0;
        display: block;
    }

    .nav-background .icon {
        position: absolute;
        height: 100%;
        width: 100%;
        right: -60%;
        bottom: -25%;
    }

    .clients {
        margin: var(--small-gap) 0;
    }

    .work-illu {
        height: 75vh;
    }

    .work-statement h2 {
        margin-bottom: 0;
        font-size: 2.5rem;
    }

    .work-statement .label-main {
        display: none;
    }

    .contact h2 {
        font-size: 3.125rem;
    }
}

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

    .projects-item {
        text-align: left;
    }

    .project-left {
        padding: var(--padding);
    }

    .tag-list {
        justify-content: flex-start;
    }

    .footer-infos {
        text-align: center;
        line-height: 1.3;
    }
}

@media screen and (max-width: 500px) {
    .hero {
        height: calc(75vh - var(--main-height));
    }

    h1,
    .about-content h2 {
        font-size: 3rem;
        margin-bottom: var(--padding);
    }

    .work-statement h2 {
        font-size: 1.75rem;
    }

    .project-right {
        width: 100%;
    }

    .portfolio {
        padding: calc(var(--small-gap) / 1.5) 0;
    }

    .portfolio .container {
        flex-direction: column;
    }

    .portfolio .container span {
        margin-bottom: .75em;
    }

}

@media screen and (max-width: 400px) {
    h1,
    .about-content h2 {
        font-size: 2.5rem;
    }
}