/* =========================================================
   GLOBAL RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: #111;
    background: #f6f5f1;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav {
    height: 84px;
    padding: 0 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #fff;

    position: sticky;
    top: 0;
    z-index: 20;

    border-bottom: 1px solid #ddd;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 210px;
    height: 70px;

    flex-shrink: 0;
}

.logo img {
    width: 200px;
    height: auto;
    max-height: 70px;

    object-fit: contain;
    object-position: left center;

    display: block;
}


/* =========================================================
   NAV LINKS
========================================================= */

.nav nav {
    display: flex;
    gap: 32px;
    font-size: 14px;
}

.nav nav a {
    transition: opacity .25s ease;
}

.nav nav a:hover {
    opacity: .55;
}


/* =========================================================
   NAV CTA
========================================================= */

.nav-cta {
    border: 1px solid #111;
    border-radius: 100px;

    padding: 12px 18px;

    font-size: 13px;

    transition:
        background .25s ease,
        color .25s ease;
}

.nav-cta:hover {
    background: #111;
    color: #fff;
}

.nav-cta span,
.button span,
.text-link span {
    margin-left: 10px;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.menu {
    display: none;

    background: none;
    border: 0;

    font-size: 25px;

    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 680px;

    padding: 80px 5vw;

    display: grid;

    grid-template-columns:
        1.05fr
        .95fr;

    align-items: center;

    gap: 40px;

    overflow: hidden;
}


/* =========================================================
   EYEBROW
========================================================= */

.eyebrow {
    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #666;

    margin-bottom: 18px;
}


/* =========================================================
   HERO HEADING
========================================================= */

.hero h1 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(
        60px,
        8vw,
        118px
    );

    line-height: .9;

    letter-spacing: -6px;

    max-width: 900px;
}

.hero h1 em,
.section h2 em,
.statement h2 em,
.cta h2 em {
    font-family: Georgia, serif;
    font-weight: 400;
}


/* =========================================================
   HERO TEXT
========================================================= */

.hero-text {
    font-size: 18px;

    max-width: 580px;

    margin: 32px 0;

    color: #555;
}


/* =========================================================
   HERO ACTIONS
========================================================= */

.hero-actions {
    display: flex;

    align-items: center;

    gap: 28px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-block;

    border-radius: 100px;

    padding: 15px 22px;

    font-size: 13px;

    font-weight: 600;
}

.button.dark {
    background: #111;
    color: #fff;

    transition:
        transform .25s ease,
        opacity .25s ease;
}

.button.dark:hover {
    transform: translateY(-2px);
    opacity: .85;
}

.button.light {
    background: #fff;
    color: #111;
}

.text-link {
    font-weight: 600;

    font-size: 13px;

    transition: opacity .25s ease;
}

.text-link:hover {
    opacity: .55;
}


/* =========================================================
   HERO ROTATING LOGO
========================================================= */

.hero-logo {
    width: 100%;
    height: 320px;
    min-height: 320px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    position: relative;
}


/*
   THIS IS THE IMPORTANT PART.

   No CSS animation.
   No transform.
   No position changes.
   JavaScript changes only src and opacity.
*/

#rotating-brand-logo {
    display: block;

    width: min(100%, 500px);

    height: 280px;

    max-width: 100%;
    max-height: 280px;

    object-fit: contain;

    object-position: center center;

    flex-shrink: 0;

    opacity: 1;

    visibility: visible;

    transition: opacity 0.25s ease;
}


/* =========================================================
   BRAND STRIP
========================================================= */

.brand-strip {
    padding: 35px 5vw 70px;

    overflow: hidden;
}

.brand-strip > p {
    text-align: center;

    font-size: 10px;

    letter-spacing: 2px;

    color: #888;

    margin-bottom: 28px;
}


/* =========================================================
   MARQUEE
========================================================= */

.brand-marquee {
    width: 100%;

    overflow: hidden;

    position: relative;

    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;

    padding: 25px 0;
}


.brand-marquee-track {
    display: flex;

    flex-direction: row;

    flex-wrap: nowrap;

    align-items: center;

    width: max-content;

    min-width: max-content;

    white-space: nowrap;

    animation:
        brandScroll 45s linear infinite;

    will-change: transform;
}


.brand-marquee-item {
    width: 180px;

    min-width: 180px;

    height: 75px;

    flex: 0 0 180px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 10px 25px;
}


.brand-marquee-item img {
    width: 100%;

    max-width: 150px;

    height: 65px;

    object-fit: contain;

    display: block;

    transition:
        transform .3s ease;
}

.brand-marquee-item:hover img {
    transform: scale(1.08);
}


/* =========================================================
   MARQUEE ANIMATION
========================================================= */

@keyframes brandScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


.brand-marquee:hover .brand-marquee-track {
    animation-play-state: paused;
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {
    padding: 100px 5vw;
}

.section-head {
    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 30px;
}

.section h2 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(
        45px,
        6vw,
        82px
    );

    line-height: .98;

    letter-spacing: -4px;
}

.section-intro {
    max-width: 570px;

    color: #666;

    margin: 28px 0 50px;
}


/* =========================================================
   FEATURED BRANDS
========================================================= */

.featured-brand-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;

    margin-top: 55px;
}

.featured-brand {
    height: 190px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: #fff;

    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;

    transition:
        background .3s ease;
}

.featured-brand:hover {
    background: #f0efeb;
}

.featured-brand img {
    width: 85%;

    height: 110px;

    object-fit: contain;

    display: block;

    transition:
        transform .3s ease;
}

.featured-brand:hover img {
    transform: scale(1.06);
}


/* =========================================================
   SERVICES
========================================================= */

.services {
    background: #111;
    color: #fff;
}

.services .eyebrow {
    color: #999;
}

.service-list {
    margin-top: 65px;

    border-top: 1px solid #333;
}

.service-list article {
    display: grid;

    grid-template-columns:
        70px
        1.3fr
        1.4fr
        120px;

    align-items: center;

    gap: 25px;

    padding: 30px 0;

    border-bottom: 1px solid #333;
}

.service-list span {
    color: #777;
}

.service-list h3 {
    font-family: "Space Grotesk", sans-serif;

    font-size: 25px;
}

.service-list p {
    color: #999;

    font-size: 14px;
}

.service-list a {
    font-size: 12px;

    text-align: right;
}


/* =========================================================
   ABOUT
========================================================= */

.statement {
    padding: 120px 5vw;

    background: #deddd8;

    display: grid;

    grid-template-columns:
        1fr
        1.1fr;

    gap: 80px;

    align-items: center;
}

.statement-art {
    height: 430px;

    background: #111;

    border-radius: 28px;

    position: relative;

    overflow: hidden;
}

.circle {
    width: 300px;

    height: 300px;

    border: 1px solid #fff;

    border-radius: 50%;

    position: absolute;

    left: 50%;

    top: 50%;

    transform:
        translate(
            -50%,
            -50%
        );
}

.circle::before,
.circle::after {
    content: "";

    position: absolute;

    inset: 30px;

    border: 1px solid #777;

    border-radius: 50%;
}

.circle::after {
    inset: 75px;

    border-color: #fff;
}

.line {
    height: 600px;

    width: 1px;

    background: #fff;

    position: absolute;

    left: 50%;

    top: -80px;

    transform: rotate(45deg);
}

.statement h2 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(
        45px,
        5vw,
        70px
    );

    line-height: 1;

    letter-spacing: -3px;
}

.statement p:not(.eyebrow) {
    max-width: 560px;

    color: #555;

    margin: 28px 0;
}


/* =========================================================
   TESTIMONIALS
========================================================= */

.testimonial-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 60px;
}

.quote-card {
    background: #e7e5df;

    border-radius: 20px;

    padding: 35px;

    min-height: 250px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}

.quote-card span {
    font-size: 10px;

    letter-spacing: 2px;

    color: #888;
}

.quote-card p {
    font-family: Georgia, serif;

    font-size: 24px;
}

.quote-card small {
    color: #777;
}


/* =========================================================
   FEATURED
========================================================= */

.featured {
    padding-top: 0;
}

.featured-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;

    margin-top: 25px;
}

.featured-grid div {
    padding: 28px 8px;

    text-align: center;

    color: #777;

    font-family: "Space Grotesk", sans-serif;

    font-weight: 600;

    font-size: 12px;

    border-right: 1px solid #ddd;
}

.featured-grid div:last-child {
    border-right: 0;
}


/* =========================================================
   CTA
========================================================= */

.cta {
    background: #111;

    color: #fff;

    text-align: center;

    padding: 130px 5vw;
}

.cta .eyebrow {
    color: #999;
}

.cta h2 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(
        65px,
        9vw,
        120px
    );

    line-height: .88;

    letter-spacing: -6px;
}

.cta p:not(.eyebrow) {
    color: #999;

    margin:
        25px auto
        35px;
}

.cta .button {
    margin-top: 5px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background: #111;

    color: #fff;

    padding:
        65px
        5vw
        25px;

    border-top: 1px solid #333;
}

.footer-top {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1.3fr
        .7fr;

    gap: 50px;
}

.footer-logo {
    display: inline-block;

    margin-bottom: 18px;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 24px;

    font-weight: 700;

    letter-spacing: -1px;
}

.footer-logo span {
    font-weight: 500;
}

.footer-top p,
.footer-top a {
    display: block;

    color: #999;

    font-size: 13px;

    margin-bottom: 8px;
}

.footer-top > div:first-child p {
    max-width: 310px;
}

.footer-top h4 {
    font-size: 10px;

    letter-spacing: 2px;

    color: #777;

    margin-bottom: 18px;
}

.footer-bottom {
    border-top: 1px solid #333;

    margin-top: 55px;

    padding-top: 20px;

    display: flex;

    justify-content: space-between;

    color: #666;

    font-size: 11px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .nav {
        padding: 0 4vw;
    }

    .logo {
        width: 180px;
    }

    .logo img {
        width: 175px;
    }

    .nav nav {
        gap: 20px;
    }

    .nav-cta {
        padding:
            10px
            15px;
    }

}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 900px) {

    .nav nav,
    .nav-cta {
        display: none;
    }

    .menu {
        display: block;
    }


    .logo {
        width: 165px;
        height: 65px;
    }

    .logo img {
        width: 160px;
        max-height: 60px;
    }


    .hero {
        grid-template-columns: 1fr;

        padding-top: 60px;
    }


    .hero-logo {
        width: 100%;

        height: 260px;
        min-height: 260px;
    }


    #rotating-brand-logo {
        width: 75%;

        height: 220px;

        max-height: 220px;
    }


    .featured-brand-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .featured-brand {
        height: 170px;
        padding: 25px;
    }

    .featured-brand img {
        height: 95px;
    }


    .service-list article {
        grid-template-columns:
            45px
            1fr;
    }

    .service-list p {
        grid-column: 2;
    }

    .service-list a {
        grid-column: 2;
        text-align: left;
    }


    .statement {
        grid-template-columns: 1fr;
    }


    .testimonial-grid {
        grid-template-columns: 1fr;
    }


    .featured-grid {
        grid-template-columns:
            1fr 1fr;
    }


    .footer-top {
        grid-template-columns:
            1fr 1fr;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

    .nav {
        height: 72px;

        padding:
            0
            5vw;
    }


    .logo {
        width: 145px;
        height: 60px;
    }

    .logo img {
        width: 140px;
        max-height: 55px;
    }


    .menu {
        font-size: 24px;
    }


    .hero {
        padding-top: 55px;
    }

    .hero h1 {
        letter-spacing: -3px;

        font-size: 58px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-actions {
        flex-wrap: wrap;

        gap: 20px;
    }


    .hero-logo {
        width: 100%;

        height: 200px;
        min-height: 200px;
    }


    #rotating-brand-logo {
        width: 90%;

        height: 170px;

        max-height: 170px;
    }


    .brand-strip {
        padding: 30px 0 60px;
    }

    .brand-marquee {
        padding: 20px 0;
    }

    .brand-marquee-item {
        width: 140px;

        min-width: 140px;

        height: 65px;

        flex: 0 0 140px;

        padding: 8px 18px;
    }

    .brand-marquee-item img {
        height: 52px;

        max-width: 120px;
    }


    .featured-brand-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .featured-brand {
        height: 145px;

        padding: 20px;
    }

    .featured-brand img {
        width: 90%;

        height: 80px;
    }


    .section {
        padding:
            75px
            5vw;
    }

    .section-head {
        display: block;
    }

    .section-head > .text-link {
        display: inline-block;

        margin-top: 25px;
    }


    .service-list article {
        display: block;
    }

    .service-list article > * {
        margin-bottom: 10px;
    }


    .featured-grid {
        grid-template-columns: 1fr;
    }


    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;

        margin-bottom: 8px;
    }


    .cta {
        padding:
            90px
            5vw;
    }

    .cta h2 {
        letter-spacing: -3px;

        font-size: 65px;
    }

}