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

.about-page {
    width: 100%;

    overflow: hidden;

    background: #ffffff;
}


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

.about-hero {
    position: relative;

    width: 100%;
    height: min(76vh, 760px);
    min-height: 570px;

    overflow: hidden;

    background: #111116;
    /* gap between hero and next section */
    margin-bottom: 18px;
}


/* Hero image */

.about-hero__image {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* Overlay */

.about-hero__overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(8, 4, 25, 0.72) 0%,
            rgba(8, 4, 25, 0.48) 42%,
            rgba(8, 4, 25, 0.20) 72%,
            rgba(8, 4, 25, 0.10) 100%
        );
}


/* Hero content */

.about-hero__content {
    position: relative;

    z-index: 2;

    display: flex;

    height: 100%;

    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}


.about-kicker {
    margin: 0 0 28px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 14px;
    font-weight: 500;

    letter-spacing: 0.04em;
}


.about-hero h1 {
    max-width: 1050px;

    margin: 0;

    color: #ffffff;

    font-family: var(--font-heading);

    font-size: clamp(62px, 7vw, 108px);
    font-weight: 600;

    letter-spacing: -0.06em;
    line-height: 0.92;
}


.about-hero__lead {
    max-width: 680px;

    margin: 28px 0 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 17px;

    line-height: 1.6;
}


/* =========================================================
   WHO WE ARE
========================================================= */

.about-story {
    width: 100%;

    padding: 70px 0 80px;

    background: var(--color-indigo);

    color: #ffffff;
     /* gap before next white section */
    margin-bottom: 18px;
}


.about-story .about-kicker {
    margin-bottom: 30px;

    color: rgba(255, 255, 255, 0.72);
}


.about-story-grid {
    display: grid;

    grid-template-columns:
        minmax(320px, 0.9fr)
        minmax(420px, 1.1fr);

    gap: clamp(70px, 10vw, 160px);

    align-items: start;
}


/* Left */

.about-story-title h2 {
    margin: 0;

    color: #ffffff;

    font-family: var(--font-heading);

    font-size: clamp(50px, 5.5vw, 82px);
    font-weight: 600;

    letter-spacing: -0.055em;
    line-height: 0.98;
}


/* Right */

.about-story-content {
    max-width: 720px;
}


.about-story-content h3,
.about-story-content > p {
    margin: 0 0 20px;

    color: #ffffff;

    font-family: var(--font-heading);

    font-size: clamp(18px, 1.35vw, 22px);

    font-weight: 400;

    letter-spacing: -0.015em;

    line-height: 1.5;
}


.about-story-content h3 {
    font-weight: 500;
}


.about-story-content strong {
    color: #ffffff;

    font-weight: 600;
}

/* =========================================================
   ABOUT STORY SUBSIDIARIES
========================================================= */

.about-story-subsidiaries {
    width: 100%;

    margin-top: 30px;
}


.about-story-subsidiaries__label {
    margin: 0 0 16px !important;

    color: #ffffff !important;

    font-family: var(--font-body) !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    letter-spacing: 0.08em !important;

    text-transform: uppercase;
}


/* Marquee */

.about-story-subsidiaries__marquee {
    position: relative;

    width: 100%;

    overflow: hidden;
}


.about-story-subsidiaries__track {
    display: flex;

    width: max-content;

    align-items: center;

    animation: aboutStorySubsidiariesMove 10s linear infinite;
}


.about-story-subsidiaries__marquee:hover
.about-story-subsidiaries__track {
    animation-play-state: paused;
}


/* Logos */

.about-story-subsidiary-logo {
    display: flex;

    width: 170px;
    height: 68px;

    margin-right: 28px;

    flex: 0 0 auto;

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


.about-story-subsidiary-logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 150px;
    max-height: 80px;

    object-fit: contain;

    filter: brightness(0) invert(1);
}


@keyframes aboutStorySubsidiariesMove {

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

    to {
        transform: translateX(0);
    }

}


/* =========================================================
   ABOUT PAGE OVERRIDES
========================================================= */

/*
   Keep the reused homepage sections visually connected
   to the About page without adding excessive spacing.
*/

.about-page .what-we-do-section {
    padding-top: 58px;
    padding-bottom: 70px;
}


.about-page .home-projects {
    margin-top: 0;
}

.home-about__title {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(12px, 1.5vw, 26px);
    width: 100%;
    white-space: nowrap;
}

.home-about__title > span {
    flex: 0 0 auto;
}

.home-about__title-logo {
    display: block;
    flex: 0 1 auto;
    width: auto !important;
    height: 0.62em;
    max-width: 48%;
    object-fit: contain;
}

.home-about__title-row {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: clamp(14px, 1.5vw, 28px);
    width: auto !important;
    max-width: 100%;
    white-space: nowrap !important;
}

.home-about__title-text {
    display: inline-block !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

.home-about__title-logo {
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: 0.58em !important;
    max-width: 45vw !important;
    margin: 0 !important;
    object-fit: contain;
}


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

@media (max-width: 991px) {

    .about-hero {
        height: 650px;
        min-height: 0;
    }

    .about-hero h1 {
        font-size: clamp(56px, 8vw, 82px);
    }

    .about-hero__lead {
        max-width: 620px;

        font-size: 15px;
    }


    /* Story */

    .about-story {
        padding: 60px 0 68px;
    }

    .about-story-grid {
        grid-template-columns:
            minmax(280px, 0.9fr)
            minmax(350px, 1.1fr);

        gap: 55px;
    }

    .about-story-title h2 {
        font-size: clamp(48px, 6vw, 64px);
    }

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

}


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

@media (max-width: 767px) {

    .about-hero {
        height: 570px;
    }

    .about-hero__image {
        object-position: 58% center;
    }

    .about-hero__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(8, 4, 25, 0.82) 0%,
                rgba(8, 4, 25, 0.62) 60%,
                rgba(8, 4, 25, 0.28) 100%
            );
    }

    .about-kicker {
        margin-bottom: 20px;

        font-size: 9px;
    }

    .about-hero h1 {
        font-size: clamp(44px, 12vw, 60px);

        line-height: 0.96;
    }

    .about-hero__lead {
        max-width: 500px;

        margin-top: 22px;

        font-size: 14px;

        line-height: 1.55;
    }


    /* Story */

    .about-story {
        padding: 48px 0 55px;
    }

    .about-story .about-kicker {
        margin-bottom: 24px;
    }

    .about-story-grid {
        grid-template-columns: 1fr;

        gap: 34px;
    }

    .about-story-title h2 {
        font-size: clamp(42px, 11vw, 56px);
    }

    .about-story-content h3,
    .about-story-content > p {
        font-size: 17px;

        line-height: 1.5;
    }

    .about-story-subsidiaries {
        margin-top: 26px;
    }

    .about-story-subsidiaries__label {
        font-size: 13px !important;
    }

    .about-story-subsidiary-logo {
        width: 135px;
        height: 54px;

        margin-right: 22px;
    }

    .about-story-subsidiary-logo img {
        max-width: 120px;
        max-height: 46px;
    }


    /* Reused section */

    .about-page .what-we-do-section {
        padding-top: 45px;
        padding-bottom: 55px;
    }

    .about-story-content {
        max-width: 300px;
    }

   .home-about__title {
        gap: 10px;
        font-size: clamp(52px, 16vw, 90px);
    }

    .home-about__title-logo {
        width: auto !important;
        height: 0.55em;
        max-width: 48%;
    }

    .home-about__title-row {
        gap: 8px;
    }

    .home-about__title-logo {
        height: 0.52em !important;
        max-width: 45vw !important;
    }

}


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

@media (max-width: 480px) {

    .about-hero {
        height: 520px;
    }

    .about-hero h1 {
        font-size: 43px;
    }

    .about-story-title h2 {
        font-size: 42px;
    }

}