@import url("https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

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

body {
    font-family: "DM Sans", sans-serif;
    background-color: #f0f0f0;
    background-image: url("images/logo/bg_icon.png");
    background-position: right;
    background-repeat: no-repeat;
    background-size: cover;
}

h1 {
    /* font-size:  7rem; */
    font-size: 4rem;
    /* font-weight: 500; */
    font-weight: 500;
    line-height: 1;
    color: #fff;
}

a,
p {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "DM Mono";
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
    display: inline-block;
}

nav,
footer {
    position: fixed;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    mix-blend-mode: difference;
    z-index: 3;
}
.nav-links {
    height: 30px;
    align-items: center;
}
.logo {
    position: fixed;
    width: 100%;
    display: flex;
    align-items: center;
}
nav .nav-links {
    display: flex;
    gap: 0.75rem;
    z-index: 9;
}
footer {
    bottom: 0;
}
footer > p {
    color: #1f1f1f !important;
    mix-blend-mode: normal;
    font-size: 0.7rem;
}

.clients {
    position: relative;
    width: 100%;
    height: 100svh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 1rem;
    overflow: hidden;
}
.clients-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    /* width: 65%;
    height: 75%; */
    z-index: 0;
    pointer-events: none;
}
.client-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
    will-change: clip-path;
    overflow: hidden;
}
.client-img-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    /* background-position: left top; */
    object-fit: cover;
    object-position: top right;
    will-change: transform, opacity;
}
.client-img-wrapper img.projects {
    object-position: top center;
}
.client-img-wrapper img.launchs {
    object-position: top center;
}
.client-img-wrapper img.campaigns {
    object-position: top center;
}
.client-img-wrapper img.brand {
    object-position: top center;
}
.client-img-wrapper img.interviews {
    object-position: top center;
}
.client-img-wrapper img.mini-series {
    object-position: top right;
}
.client-img-wrapper img.documentaries {
    object-position: top left;
}
.client-img-wrapper img.digital-products {
    object-position: top left;
}
.client-img-wrapper img.lectures {
    object-position: top right;
}
.client-img-wrapper img.courses {
    object-position: top center;
}
.client-img-wrapper img.social-causes {
    object-position: top right;
}
.client-img-wrapper img.events {
    object-position: top left;
}

.clients-header p {
    position: relative;
    color: #acacac;
    z-index: 1;
}
.clients-list {
    position: relative;
    /* width: 80%; */
    width: 100%;
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* gap: 0.8rem; */
    gap: 0.7rem;
    mix-blend-mode: difference;
    z-index: 2;
}
.client-name {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.client-name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.15rem;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 300ms ease-out;
}
.client-name:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

li.client-name {
    ::after {
        content: ",";
    }
}
ul > li:last-child {
    ::after {
        content: ".";
    }
}
.client-name > p {
    font-size: 4rem;
    font-family: "DM Sans", sans-serif;
    text-transform: none;
}

@media (max-width: 1000px) {
    body {
        background-image: url("images/logo/bg_icon_gray.png");
    }
    h1 {
        font-size: 1rem;
        /* font-size: 1.8rem; */
        line-height: 1;
        margin: 0;
    }
    .clients {
        gap: 2rem;
    }
    .clients-header {
        margin-bottom: -20px;
        padding: 0;
    }
    .clients-preview {
        width: 100%;
        height: 100%;
    }
    .clients-list {
        width: 100%;
        margin-bottom: 2rem;
    }
    li.client-name {
        /* font-size: 1.8rem; */
        margin: 0;
    }
    li.client-name > p {
        font-size: 2rem;
        margin: 0;
        line-height: 1.8rem;
    }
}

/* default styles here for older browsers.
    I tend to go for a 600px - 960px width max but using percentages
*/
@media only screen and (min-width: 960px) {
    /* styles for browsers larger than 960px; */
}
@media only screen and (min-width: 1440px) {
    /* styles for browsers larger than 1440px; */
}
@media only screen and (min-width: 2000px) {
    /* for sumo sized (mac) screens */
}
@media only screen and (max-device-width: 480px) {
    /* styles for mobile browsers smaller than 480px; (iPhone) */
    body {
        background-image: url("images/logo/bg_icon.png");
        /* background-position-x: -270px ; */
        background-attachment: fixed;
    }
    .client-img-wrapper img.projects {
        object-position: -130px 0;
    }
    .client-img-wrapper img.interviews {
        object-position: -130px 0;
    }
    .client-img-wrapper img.mini-series {
        object-position: -790px 0;
    }
    .client-img-wrapper img.documentaries {
        object-position: -160px 0;
    }
    .client-img-wrapper img.digital-products {
        object-position: -380px 0;
    }
    .client-img-wrapper img.courses {
        object-position: -600px 0;
    }
    .client-img-wrapper img.social-causes {
        object-position: -890px 0;
    }
    .client-img-wrapper img.events {
        object-position: -310px 0;
    }
    .client-img-wrapper img.websites {
        object-position: -730px 0;
    }
}
@media only screen and (max-device-width: 480px) and (orientation: landscape) {
    /* styles for mobile browsers smaller than 480px; (iPhone) */
    body {
        background-image: url("images/logo/bg_icon_yellow.png");
        /* background-position-x: 0px ;
        background-position-y: -160px; */
        background-attachment: fixed;
    }
}

@media only screen and (device-width: 768px) {
    /* default iPad screens */
}
/* different techniques for iPad screening */
@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation: portrait) {
    /* For portrait layouts only */
}

@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation: landscape) {
    /* For landscape layouts only */
}
