/* =========================================================
   MUON — HOME / INDEX
   RESPONSIVE — FITS ALL VIEWPORTS
========================================================= */

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

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}


/* =========================================================
   CUSTOM FONTS
========================================================= */

@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/ProximaNova/Proxima Nova Reg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/ProximaNova/Proxima Nova Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Merriweather';
    src: url('fonts/Merriweather/Merriweather-VariableFont_opsz,wdth,wght.ttf') format('truetype');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Merriweather';
    src: url('fonts/Merriweather/Merriweather-Italic-VariableFont_opsz,wdth,wght.ttf') format('truetype');
    font-weight: 300 900;
    font-style: italic;
    font-display: swap;
}




/* =========================================================
   ROOT
========================================================= */

:root {
    --bg-color: #ffffff;
    --text-dark: #121212;
    --text-muted: #666666;
    --font-serif: 'Merriweather', Georgia, serif;
    --font-sans: 'Proxima Nova', Arial, sans-serif;
    /*
        Figma desktop:
        1440px viewport
        80px left/right margins
        content = 1280px
    */
    --container-width: 1280px;
    --page-padding: 80px;
    --radius-lg: 8px;
    --radius-sm: 8px;
}


/* =========================================================
   BODY
========================================================= */

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


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

img {
    display: block;
    max-width: 100%;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min( calc(100% - (var(--page-padding) * 2)), var(--container-width) );
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
}


/* =========================================================
   HEADER
========================================================= */

.header-light {
    width: 100%;
    padding: 42px 0;
    background: #ffffff;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}


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

.brand {
    width: 229px;
    height: 82px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: 229px;
    height: 82px;
    max-width: none;
    object-fit: cover;
    object-position: left center;
}


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

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 48px;
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-dark);
}

    .nav-links a {
        white-space: nowrap;
        transition: color 0.2s ease, opacity 0.2s ease;
    }

        .nav-links a:hover {
            color: var(--text-muted);
        }


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

.hero {
    position: relative;
    /*
        Figma hero starts around y=212.
        Keep the content flexible rather than using
        a fixed 1264px width.
    */
    min-height: 364px;
    padding: 48px 0 70px;
    overflow: visible;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: min(804px, 100%);
    max-width: 804px;
}


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

    .hero-content h1 {
        max-width: 804px;
        font-family: var(--font-serif);
        font-size: clamp(48px, 5vw, 72px);
        font-weight: 300;
        line-height: 1.265;
        letter-spacing: -0.02em;
    }

    .hero-content p {
        width: 100%;
        max-width: 804px;
        margin-top: 24px;
        color: rgba(0, 0, 0, 0.75);
        font-family: var(--font-sans);
        font-size: 22px;
        font-weight: 400;
        line-height: 1.5;
    }


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

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 30px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}


.button-primary {
    background-color: #000000;
    color: #ffffff;
}

    .button-primary:hover {
        background-color: #333333;
        transform: translateY(-1px);
    }

.button-secondary {
    background-color: #e6e6e6;
    color: #000000;
}

    .button-secondary:hover {
        background-color: #d8d8d8;
        transform: translateY(-1px);
    }


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

.hero-symbol {
    position: absolute;
    top: 50%;
    right: clamp(-320px, -18vw, -140px);
    width: 750px;
    height: 750px;
    transform: translateY(-50%);
    display: block;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}


    .hero-symbol img {
        display: block;
        width: 750px;
        height: 750px;
        max-width: none;
        max-height: none;
        object-fit: contain;
    }


/* =========================================================
   MAIN HERO IMAGE
========================================================= */

.hero-image-section {
    position: relative;
    z-index: 2;
    margin-top: 0;
}

    .hero-image-section > img {
        display: block;
        width: 100%;
        height: 640px;
        object-fit: cover;
        object-position: center;
        border-radius: var(--radius-lg);
    }


/* =========================================================
   GENERAL SECTION
========================================================= */

.section {
    padding-top: 106px;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.what-we-do h2,
.why-content h2,
.about-preview h2 {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 400;
    line-height: 60px;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}


/* =========================================================
   WHAT WE DO
========================================================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.service-card {
    min-width: 0;
}

.service-image {
    width: 100%;
    height: 405px;
    overflow: hidden;
    border-radius: 8px;
}

    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.4s ease;
    }

.service-card:hover .service-image img {
    transform: scale(1.02);
}


/* =========================================================
   SERVICE TEXT
========================================================= */

.service-card h3 {
    margin-top: 24px;
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.005em;
}

.service-card p {
    width: 100%;
    max-width: 381px;
    margin-top: 4px;
    color: #828282;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}


/* =========================================================
   WHY MUON
========================================================= */

.why-muon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 70px;
    padding-top: 130px;
}

.why-content {
    min-width: 0;
}

    .why-content h2 {
        margin-bottom: 35px;
    }

.why-item {
    width: 100%;
    max-width: 515px;
    margin-bottom: 28px;
}

    .why-item h3 {
        margin-bottom: 5px;
        font-family: var(--font-serif);
        font-size: 28px;
        font-weight: 500;
        line-height: 1.5;
        letter-spacing: -0.005em;
    }

    .why-item p {
        color: #828282;
        font-family: var(--font-sans);
        font-size: 22px;
        font-weight: 400;
        line-height: 1.5;
    }


/* =========================================================
   WHY IMAGE
========================================================= */

.why-image {
    width: 100%;
    height: 704px;
    overflow: hidden;
    border-radius: 8px;
}

    .why-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.4s ease;
    }

    .why-image:hover img {
        transform: scale(1.02);
    }


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

.about-preview {
    padding-top: 130px;
    padding-bottom: 90px;
}


    .about-preview h2 {
        margin-bottom: 28px;
    }

    .about-preview h3 {
        margin-bottom: 5px;
        font-family: var(--font-serif);
        font-size: 28px;
        font-weight: 500;
        line-height: 1.5;
        letter-spacing: -0.005em;
    }

    .about-preview p {
        width: 100%;
        max-width: 1280px;
        margin-bottom: 18px;
        color: #828282;
        font-family: var(--font-sans);
        font-size: 22px;
        font-weight: 400;
        line-height: 1.5;
    }


    /* =========================================================
   ABOUT READ MORE
========================================================= */

    .about-preview .button {
        margin-top: 14px;
    }


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

.support-section {
    width: 100%;
    background-color: #f7f7f7;
    padding: 80px 0;
}

.support-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

    .support-container h2 {
        max-width: 625px;
        font-family: var(--font-serif);
        font-size: 48px;
        font-weight: 400;
        line-height: 60px;
        letter-spacing: -0.02em;
    }

.support-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}


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

.site-footer {
    width: 100%;
    border-top: 1px solid #e6e6e6;
    padding: 42px 0;
    color: #454545;
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .footer-company strong {
        color: #000000;
        font-family: var(--font-sans);
        font-size: 24px;
        font-weight: 700;
        line-height: 1.5;
    }

    .footer-company a {
        color: #454545;
        text-decoration: underline;
        font-family: var(--font-sans);
        font-size: 20px;
        font-weight: 400;
        line-height: 1.5;
    }

        .footer-company a:hover {
            color: #000000;
        }

    .footer-company span {
        color: #454545;
        font-family: var(--font-sans);
        font-size: 20px;
        font-weight: 400;
        line-height: 1.5;
    }


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

.footer-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

    .footer-navigation a {
        color: #454545;
        font-family: var(--font-sans);
        font-size: 20px;
        font-weight: 400;
        line-height: 1.5;
        transition: color 0.2s ease;
    }

        .footer-navigation a:first-child {
            color: #000000;
            font-size: 24px;
        }

        .footer-navigation a:hover {
            color: #000000;
        }


/* =========================================================
   PAGE LOAD ANIMATION
========================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1,
.hero-content p,
.hero-buttons,
.hero-symbol img {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-content h1 {
    animation-delay: 0.1s;
}

.hero-content p {
    animation-delay: 0.25s;
}

.hero-buttons {
    animation-delay: 0.4s;
}

.hero-symbol img {
    animation-delay: 0.2s;
}


/* =========================================================
   LARGE DESKTOP
   1200px — 1440px+
========================================================= */

@media (min-width: 1201px) {

    .container {
        width: min( calc(100% - 160px), 1280px );
    }

    .hero-content {
        width: 804px;
    }

    .hero-symbol {
        right: -35px;
        width: 750px;
        height: 750px;
    }
}


/* =========================================================
   LAPTOP
   901px — 1200px
========================================================= */

@media (max-width: 1200px) {

    :root {
        --page-padding: 48px;
    }

    .container {
        width: calc(100% - 96px);
    }

    /* Header */

    .header-light {
        padding: 30px 0;
    }

    .brand {
        width: 190px;
        height: 68px;
    }

    .brand-logo {
        width: 190px;
        height: 68px;
    }

    .nav-links {
        gap: 30px;
        font-size: 20px;
    }

    /* Hero */

    .hero {
        min-height: 390px;
        padding-top: 50px;
    }

    .hero-content {
        width: 65%;
        max-width: 700px;
    }

        .hero-content h1 {
            font-size: clamp(52px, 6vw, 68px);
            line-height: 1.2;
        }

    .hero-symbol {
        right: -130px;
        width: 600px;
        height: 600px;
    }

    /* Hero image */

    .hero-image-section > img {
        height: 520px;
    }

    /* Services */

    .service-grid {
        gap: 24px;
    }

    .service-image {
        height: 330px;
    }

    /* Why */

    .why-muon {
        gap: 45px;
    }

    .why-image {
        height: 600px;
    }

    /* CTA */

    .support-container h2 {
        font-size: 42px;
        line-height: 1.25;
    }
}


/* =========================================================
   TABLET
   769px — 900px
========================================================= */

@media (max-width: 900px) {

    :root {
        --page-padding: 32px;
    }

    .container {
        width: calc(100% - 64px);
    }

    /* Header */

    .header-light {
        padding: 24px 0;
    }

    .brand {
        width: 170px;
        height: auto;
    }

    .brand-logo {
        width: 170px;
        height: auto;
    }

    .nav-links {
        gap: 22px;
        font-size: 18px;
    }

    /* Hero */

    .hero {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-content {
        width: 100%;
        max-width: 650px;
    }

        .hero-content h1 {
            font-size: clamp(46px, 7vw, 60px);
            line-height: 1.2;
        }

        .hero-content p {
            font-size: 20px;
        }

    /*
        Move symbol into the flow so it can never
        push the page wider than the viewport.
    */

    .hero-symbol {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: 350px;
        margin-top: 10px;
        transform: none;
        overflow: hidden;
    }

        .hero-symbol img {
            width: 430px;
            height: 430px;
            max-width: none;
            margin-left: auto;
            margin-right: -70px;
        }

    /* Hero image */

    .hero-image-section > img {
        height: 440px;
    }

    /* Sections */

    .section {
        padding-top: 75px;
    }

    .what-we-do h2,
    .why-content h2,
    .about-preview h2 {
        font-size: 42px;
        line-height: 1.25;
    }

    /* Services */

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .service-image {
        height: 340px;
    }

    /* Why */

    .why-muon {
        grid-template-columns: 1fr;
        gap: 45px;
        padding-top: 100px;
    }


    .why-item {
        max-width: 100%;
    }

    .why-image {
        height: 500px;
    }

    /* About */

    .about-preview {
        padding-top: 100px;
        padding-bottom: 75px;
    }

    /* CTA */

    .support-section {
        padding: 65px 0;
    }

    .support-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-buttons {
        flex-wrap: wrap;
    }

    /* Footer */

    .footer-container {
        gap: 40px;
    }
}


/* =========================================================
   MOBILE
   481px — 768px
========================================================= */

@media (max-width: 768px) {

    :root {
        --page-padding: 20px;
    }

    .container {
        width: calc(100% - 40px);
    }

    /* Header */

    .header-light {
        padding: 14px 0;
    }

    .navbar {
        align-items: center;
    }

    .brand {
        width: 150px;
        height: auto;
    }

    .brand-logo {
        width: 150px;
        height: auto;
    }

    .nav-links {
        gap: 16px;
        font-size: 17px;
    }

    /* Hero */

    .hero {
        padding-top: 35px;
        padding-bottom: 30px;
    }

    .hero-content {
        width: 100%;
    }

        .hero-content h1 {
            width: 100%;
            font-size: clamp(40px, 10vw, 56px);
            line-height: 1.18;
            overflow-wrap: break-word;
        }

        .hero-content p {
            width: 100%;
            margin-top: 20px;
            font-size: 19px;
            line-height: 1.5;
        }

    .hero-buttons {
        width: 100%;
        margin-top: 24px;
    }

    .button {
        min-height: 48px;
        padding: 12px 22px;
        font-size: 18px;
    }

    /* Symbol */

    .hero-symbol {
        width: 100%;
        height: 280px;
        margin-top: 20px;
        overflow: hidden;
    }

        .hero-symbol img {
            width: 360px;
            height: 360px;
            margin-left: auto;
            margin-right: -75px;
        }

    /* Hero image */

    .hero-image-section > img {
        height: 300px;
        border-radius: 8px;
    }

    /* Sections */

    .section {
        padding-top: 65px;
    }

    .what-we-do h2,
    .why-content h2,
    .about-preview h2 {
        font-size: 38px;
        line-height: 1.25;
        margin-bottom: 24px;
    }

    /* Services */

    .service-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-image {
        height: min(405px, 85vw);
    }

    .service-card h3 {
        margin-top: 20px;
        font-size: 26px;
    }

    .service-card p {
        max-width: 100%;
        font-size: 18px;
    }

    /* Why */

    .why-muon {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 90px;
    }


    .why-content h2 {
        margin-bottom: 30px;
    }

    .why-item {
        max-width: 100%;
        margin-bottom: 25px;
    }

        .why-item h3 {
            font-size: 26px;
        }

        .why-item p {
            font-size: 19px;
        }

    .why-image {
        width: 100%;
        height: min(500px, 100vw);
    }

    /* About */

    .about-preview {
        padding-top: 90px;
        padding-bottom: 65px;
    }


        .about-preview h3 {
            font-size: 26px;
        }

        .about-preview p {
            font-size: 19px;
        }

    /* CTA */

    .support-section {
        padding: 55px 0;
    }

    .support-container {
        align-items: flex-start;
        gap: 28px;
    }

        .support-container h2 {
            width: 100%;
            font-size: 38px;
            line-height: 1.25;
        }

    .support-buttons {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

        .support-buttons .button {
            flex: 1 1 auto;
        }

    /* Footer */

    .site-footer {
        padding: 35px 0;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-navigation {
        align-items: flex-start;
    }
}


/* =========================================================
   SMALL MOBILE
   320px — 480px
========================================================= */

@media (max-width: 480px) {

    :root {
        --page-padding: 16px;
    }

    .container {
        width: calc(100% - 32px);
    }

    /* Header */

    .header-light {
        padding: 10px 0;
    }

    .brand {
        width: 125px;
    }

    .brand-logo {
        width: 125px;
        height: auto;
    }

    .nav-links {
        gap: 11px;
        font-size: 15px;
    }

    /* Hero */

    .hero {
        padding-top: 30px;
        padding-bottom: 25px;
    }

    .hero-content h1 {
        font-size: clamp(36px, 11vw, 48px);
        line-height: 1.18;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

        .hero-buttons .button {
            width: 100%;
        }

    /* Symbol */

    .hero-symbol {
        height: 230px;
        margin-top: 15px;
    }

        .hero-symbol img {
            width: 300px;
            height: 300px;
            margin-right: -60px;
        }

    /* Hero image */

    .hero-image-section > img {
        height: 240px;
    }

    /* Sections */

    .section {
        padding-top: 55px;
    }

    .what-we-do h2,
    .why-content h2,
    .about-preview h2 {
        font-size: 34px;
        line-height: 1.25;
    }

    /* Service */

    .service-grid {
        gap: 35px;
    }

    .service-image {
        height: 260px;
    }

    .service-card h3 {
        font-size: 24px;
    }

    .service-card p {
        font-size: 17px;
    }

    /* Why */

    .why-muon {
        padding-top: 75px;
    }

    .why-item h3 {
        font-size: 24px;
    }

    .why-item p {
        font-size: 18px;
    }

    .why-image {
        height: 300px;
    }

    /* About */

    .about-preview {
        padding-top: 75px;
        padding-bottom: 55px;
    }

        .about-preview h3 {
            font-size: 24px;
        }

        .about-preview p {
            font-size: 18px;
        }

    /* CTA */

    .support-section {
        padding: 45px 0;
    }

    .support-container h2 {
        font-size: 32px;
    }

    .support-buttons {
        flex-direction: column;
        width: 100%;
    }

        .support-buttons .button {
            width: 100%;
        }

    /* Footer */

    .site-footer {
        font-size: 17px;
    }

    .footer-company strong {
        font-size: 22px;
    }

    .footer-company a,
    .footer-company span,
    .footer-navigation a {
        font-size: 18px;
    }

        .footer-navigation a:first-child {
            font-size: 22px;
        }
}


/* =========================================================
   VERY SMALL DEVICES
   320px and below
========================================================= */

@media (max-width: 360px) {

    .container {
        width: calc(100% - 24px);
    }

    .brand {
        width: 110px;
    }

    .brand-logo {
        width: 110px;
    }

    .nav-links {
        gap: 8px;
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .hero-symbol {
        height: 200px;
    }

        .hero-symbol img {
            width: 260px;
            height: 260px;
            margin-right: -55px;
        }

    .hero-image-section > img {
        height: 210px;
    }

    .what-we-do h2,
    .why-content h2,
    .about-preview h2 {
        font-size: 30px;
    }

    .support-container h2 {
        font-size: 29px;
    }
}


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

@media (max-height: 600px) and (orientation: landscape) {

    .header-light {
        padding: 10px 0;
    }

    .hero {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .hero-symbol {
        height: 220px;
    }

        .hero-symbol img {
            width: 280px;
            height: 280px;
        }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .hero-content h1,
    .hero-content p,
    .hero-buttons,
    .hero-symbol img {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .service-image img,
    .why-image img,
    .button {
        transition: none !important;
    }
}
