* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: #16181c;
    font-family: "Segoe UI", Arial, sans-serif;
}


/* ==========================================================
   GLOBAL
========================================================== */

.content,
.header-inner,
.hero-content {
    width: min(1180px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 120px 0;
}

.section-light {
    background: #f7f7f5;
}

.section-dark {
    background: #111318;
    color: #ffffff;
}

.section-label {
    margin: 0;
    color: #7857a5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .26em;
}

.section-label-light {
    color: #bba7d8;
}

h2 {
    max-width: 850px;
    margin: 18px 0 0;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -.04em;
    font-weight: 600;
}


/* ==========================================================
   HEADER
========================================================== */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
}

.header-inner {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    width: 330px;
    max-width: 38vw;
    height: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 42px;
}

    .main-nav a {
        position: relative;
        color: rgba(255, 255, 255, .90);
        font-size: 16px;
        text-decoration: none;
        transition: color .2s ease;
    }

        .main-nav a:hover {
            color: #ffffff;
        }

        .main-nav a.active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -12px;
            height: 3px;
            background: #8f5bd4;
        }


/* ==========================================================
   HERO
========================================================== */

.hero {
    position: relative;
    height: 700px;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-image: url("/images/home/hero.jpg");
    background-size: cover;
    background-position: center 52%;
    background-repeat: no-repeat;
    background-color: #101319;
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(5, 7, 10, .82) 0%, rgba(5, 7, 10, .58) 27%, rgba(5, 7, 10, .16) 58%, rgba(5, 7, 10, .04) 100% ), linear-gradient( 0deg, rgba(5, 7, 10, .50) 0%, rgba(5, 7, 10, .03) 55% );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 150px;   /* was 48px */
    color: #ffffff;
}

.hero-process {
    margin: 0 0 14px;
    color: #c0a5e6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .27em;
}

.hero h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(42px, 4vw, 62px);
    line-height: .90;
    letter-spacing: -.045em;
    font-weight: 550;
}

.hero-description {
    max-width: 580px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 16px;
    line-height: 1.4;
}



/* ==========================================================
   WHAT WE DO
========================================================== */

.section-intro {
    max-width: 780px;
    margin: 30px 0 0;
    color: #5d6169;
    font-size: 19px;
    line-height: 1.8;
}

.capabilities {
    margin-top: 75px;
    border-top: 1px solid #d8dade;
}

.capability {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    padding: 48px 0;
    border-bottom: 1px solid #d8dade;
}

.capability-number {
    padding-top: 4px;
    color: #7857a5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
}

.capability-content {
    max-width: 850px;
}

.capability h3 {
    margin: 0;
    font-size: 31px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.capability p {
    max-width: 740px;
    margin: 18px 0 0;
    color: #5d6169;
    font-size: 17px;
    line-height: 1.75;
}

.focus {
    margin-top: 22px;
    color: #777c84;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
}


/* ==========================================================
   ABOUT / R&D
========================================================== */

.about-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 95px;
}

.about-copy {
    padding-top: 10px;
}

    .about-copy p {
        margin: 0 0 24px;
        color: #c7cad0;
        font-size: 18px;
        line-height: 1.8;
    }

.process-line {
    margin-top: 40px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: .22em;
}


/* ==========================================================
   DEVELOPMENT PLATFORMS
========================================================== */

.platform-content {
    max-width: 1180px;
}

.platform-copy {
    max-width: 820px;
    margin-top: 35px;
}

    .platform-copy p {
        color: #5d6169;
        font-size: 18px;
        line-height: 1.8;
    }


/* ==========================================================
   CONTACT
========================================================== */

.contact {
    padding: 110px 0;
    background: #17191e;
    color: #ffffff;
}

    .contact h2 {
        margin-top: 18px;
    }

.contact-copy {
    max-width: 650px;
    margin-top: 28px;
    color: #c5c8ce;
    font-size: 18px;
    line-height: 1.7;
}

.email-link {
    display: inline-block;
    margin-top: 26px;
    padding-bottom: 5px;
    border-bottom: 1px solid #9a75c5;
    color: #ffffff;
    font-size: 21px;
    font-weight: 600;
    text-decoration: none;
}

    .email-link:hover {
        border-color: #ffffff;
    }


/* ==========================================================
   FOOTER
========================================================== */

footer {
    padding: 42px 0;
    background: #090b0e;
    color: #a8acb3;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    width: 260px;
    height: auto;
}

.copyright {
    font-size: 13px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 960px) {
    .brand-logo {
        width: 280px;
    }
}

    .main-nav {
        gap: 24px;
    }

    .hero {
        height: 600px;
        min-height: 600px;
    }

        .hero h1 {
            font-size: clamp(48px, 7vw, 66px);
        }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .content,
    .header-inner,
    .hero-content {
        width: calc(100% - 32px);
    }

    .header-inner {
        height: 82px;
    }

    .brand-logo {
        width: 220px;
        max-width: 60vw;
    }

    .main-nav {
        gap: 18px;
    }

        .main-nav a {
            font-size: 14px;
        }

            .main-nav a:nth-child(2) {
                display: none;
            }

            .main-nav a.active::after {
                bottom: -10px;
            }


    /* Hero remains taller on mobile because the viewport
       is narrow and the image needs vertical space. */

    .hero {
        height: 620px;
        min-height: 620px;
        background-position: 62% center;
    }

    .hero-content {
        padding-bottom: 52px;
    }

    .hero-process {
        margin-bottom: 16px;
        font-size: 9px;
        letter-spacing: .18em;
    }

    .hero h1 {
        max-width: 520px;
        font-size: clamp(44px, 13vw, 56px);
        line-height: 1.01;
    }

    .hero-description {
        max-width: 480px;
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.55;
    }


    /* Main sections */

    .section {
        padding: 82px 0;
    }

    h2 {
        font-size: 42px;
    }

    .capability {
        grid-template-columns: 55px 1fr;
        padding: 35px 0;
    }

        .capability h3 {
            font-size: 24px;
        }

    .focus {
        line-height: 1.7;
    }


    /* Contact */

    .contact {
        padding: 80px 0;
    }


    /* Footer */

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer-logo {
        width: 220px;
    }
}
