/* ========================================
   Graphika — Hero
   ======================================== */

.hero {
    position: relative;

    width: 100%;
    min-height: 100svh;

    margin: 0;

    --hero-content-width: min(
        100%,
        var(--content-max-width)
    );

    padding-inline: max(
        var(--page-padding),
        calc((100% - var(--content-max-width)) / 2)
    );

    display: grid;
    grid-template-columns: repeat(9, 1fr);
    column-gap: var(--grid-gutter);

    overflow: clip;
}

.hero > * {
    min-width: 0;
}


/* ----------------------------------------
   Face Composition
   ---------------------------------------- */

.hero-bg-face {
    position: absolute;

    height: min(1050px, 120svh);
    width: auto;

    left: calc(-.5 * var(--page-padding));
    bottom: -180px;

    opacity: 0.20;

    z-index: 1;
}

.hero-bg-face img {
    display: block;

    width: auto;
    height: 100%;
    max-width: none;
}


.hero-visual {
    position: absolute;

    height: min(720px, calc(100svh - 180px));
    width: auto;

    left: 50%;
    bottom: 92px;

    transform: translateX(-50%);

    z-index: 2;
}

.hero-visual img {
    display: block;

    width: auto;
    height: 100%;
    max-width: none;
}


/* ----------------------------------------
   Headline
   ---------------------------------------- */

.hero-headline {
    position: relative;

    grid-column: 1 / 6;
    align-self: center;

    z-index: 3;
}

.hero-headline h1 {
    margin: 0;

    font-size: clamp(56px, 5.7vw, 82px);
    line-height: 0.9;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.hero-headline h1 span {
    display: block;
}


/* ----------------------------------------
   Supporting Description
   ---------------------------------------- */

.hero-description {
    position: absolute;

    right: max(
        var(--page-padding),
        calc((100% - var(--content-max-width)) / 2)
    );

    bottom: 205px;

    width: 270px;

    z-index: 4;
}

.hero-description p {
    max-width: 270px;

    margin: 0;

    font-size: 15px;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: -0.01em;

    color: var(--color-muted);
}

.hero-about-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: 16px;

    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.01em;

    color: var(--color-text);

    transition: gap 180ms var(--ease-standard);
}

.hero-about-link:hover {
    gap: 10px;
}

.hero-about-link span:first-child {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ----------------------------------------
   Bottom Work Index
   ---------------------------------------- */

.hero-capabilities {
    position: absolute;

    left: 24px;
    bottom: 28px;

    width: min(900px, calc(100% - 420px));

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: var(--grid-gutter);

    z-index: 5;
}

.capability {
    display: flex;
    flex-direction: column;
    gap: 6px;

    min-width: 0;

    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.capability-number {
    font-size: 10px;
    line-height: 1;
    font-weight: 400;

    letter-spacing: 0.02em;

    color: var(--color-muted);
}

.capability-title {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;

    white-space: nowrap;
}


/* ----------------------------------------
   Graphika Identity
   ---------------------------------------- */

.hero-identity {
    position: absolute;

    right: max(
        var(--page-padding),
        calc((100% - var(--content-max-width)) / 2)
    );

    bottom: 18px;

    width: calc(
        ((var(--content-max-width) - (8 * var(--grid-gutter))) / 9) * 3
        + (2 * var(--grid-gutter))
    );

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

    z-index: 5;
}

.hero-identity img {
    display: block;

    width: 240px;
    max-width: 100%;
    height: auto;
}


/* ----------------------------------------
   Scroll Indicator
   ---------------------------------------- */

.hero-scroll {
    position: absolute;

    right: 24px;
    bottom: 28px;

    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 12px;
    line-height: 1;

    color: var(--color-text);

    z-index: 5;
}


/* =========================================================
   TABLET
   768px — 1024px
   iPad Mini is the base composition
   ========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    .hero {
        min-height: 100svh;

        padding-inline: 32px;

        display: block;

        overflow: hidden;
    }


    /* ----------------------------------------
       Background Face
       ---------------------------------------- */

    .hero-bg-face {
        height: min(820px, 110svh);

        left: -135px;
        bottom: -135px;

        opacity: 0.18;
    }


    /* ----------------------------------------
       Main Face
       ---------------------------------------- */

    .hero-visual {
        height: min(520px, 62svh);

        left: 58%;
        top: 185px;
        bottom: auto;

        transform: translateX(-50%);
    }

    .hero-visual img {
        max-width: none;
    }


    /* ----------------------------------------
       Headline
       ---------------------------------------- */

    .hero-headline {
        position: absolute;

        top: 220px;
        left: 32px;
        right: auto;

        width: 300px;

        display: block;

        z-index: 4;
    }

    .hero-headline h1 {
        font-size: clamp(48px, 6.8vw, 68px);
        line-height: 0.88;
        letter-spacing: -0.035em;
    }

    .hero-headline h1 span {
        display: block;
        white-space: nowrap;
    }


    /* ----------------------------------------
       Supporting Description
       ---------------------------------------- */

    .hero-description {
        position: absolute;

        left: 58%;
        right: auto;

        top: 515px;
        bottom: auto;

        width: 220px;

        z-index: 4;
    }

    .hero-description p {
        max-width: 220px;

        font-size: 12px;
        line-height: 1.4;
    }

    .hero-about-link {
        margin-top: 11px;

        font-size: 12px;
    }


    /* ----------------------------------------
       Bottom Work Index
       ---------------------------------------- */

    .hero-capabilities {
        position: absolute;

        left: 32px;
        right: 32px;
        bottom: 22px;

        width: auto;

        display: grid;

        grid-template-columns: repeat(5, 1fr);
        column-gap: 12px;

        z-index: 5;
    }

    .capability {
        gap: 5px;
    }

    .capability-number {
        font-size: 8px;
    }

    .capability-title {
        font-size: 10px;
        line-height: 1.15;

        white-space: nowrap;
    }


    /* ----------------------------------------
       Graphika Identity
       ---------------------------------------- */

    .hero-identity {
        right: 32px;
        bottom: 16px;

        width: 145px;
    }

    .hero-identity img {
        width: 145px;
        max-width: 100%;
    }


    /* ----------------------------------------
       Scroll
       ---------------------------------------- */

    .hero-scroll {
        right: 14px;
        bottom: 20px;

        font-size: 10px;
    }
}


/* =========================================================
   LARGE TABLET
   801px — 1024px
   Give larger iPads a little more breathing room
   ========================================================= */

@media (min-width: 801px) and (max-width: 1024px) {

    .hero {
        padding-inline: 48px;
    }


    /* Face */

    .hero-visual {
        height: min(560px, 64svh);

        left: 59%;
        top: 175px;
    }


    /* Headline */

    .hero-headline {
        left: 48px;
        top: 210px;

        width: 340px;
    }

    .hero-headline h1 {
        font-size: clamp(54px, 6vw, 70px);
    }


    /* Description */

    .hero-description {
        left: 59%;
        top: 535px;

        width: 245px;
    }

    .hero-description p {
        max-width: 245px;
        font-size: 13px;
    }


    /* Bottom */

    .hero-capabilities {
        left: 48px;
        right: 48px;

        column-gap: 16px;
    }

    .capability-number {
        font-size: 9px;
    }

    .capability-title {
        font-size: 11px;
    }


    /* Graphika */

    .hero-identity {
        right: 48px;
        bottom: 18px;

        width: 160px;
    }

    .hero-identity img {
        width: 160px;
    }
}


/* =========================================================
   MOBILE
   Up to 600px
   ========================================================= */

@media (max-width: 600px) {

    .hero {
        min-height: 900px;
        height: auto;

        padding: 0 24px;

        display: block;

        overflow: hidden;
    }


    /* ----------------------------------------
       Background Face
       ---------------------------------------- */

    .hero-bg-face {
        height: 610px;
        width: auto;

        left: -145px;
        bottom: 70px;

        opacity: 0.16;
    }


    /* ----------------------------------------
       Main Face
       ---------------------------------------- */

    .hero-visual {
        height: 360px;
        width: auto;

        left: 50%;
        top: 220px;
        bottom: auto;

        transform: translateX(-50%);

        z-index: 2;
    }

    .hero-visual img {
        max-width: none;
    }


    /* ----------------------------------------
       Headline
       ---------------------------------------- */

    .hero-headline {
        position: absolute;

        top: 125px;
        left: 24px;
        right: 24px;

        display: block;

        z-index: 4;
    }

    .hero-headline h1 {
        font-size: clamp(48px, 13vw, 68px);
        line-height: 0.88;
        letter-spacing: -0.035em;
    }


    /* ----------------------------------------
       Description
       ---------------------------------------- */

    .hero-description {
        position: absolute;

        top: 520px;
        left: 24px;
        right: 24px;
        bottom: auto;

        width: auto;

        z-index: 4;
    }

    .hero-description p {
        max-width: 310px;

        font-size: 14px;
        line-height: 1.45;
    }

    .hero-about-link {
        margin-top: 14px;

        font-size: 13px;
    }


    /* ----------------------------------------
       Capabilities
       ---------------------------------------- */

    .hero-capabilities {
        position: absolute;

        left: 24px;
        right: 24px;
        bottom: 92px;

        width: auto;

        display: grid;

        grid-template-columns: repeat(3, 1fr);
        column-gap: 18px;
        row-gap: 18px;

        z-index: 5;
    }

    .capability {
        gap: 5px;
    }

    .capability-number {
        font-size: 9px;
    }

    .capability-title {
        font-size: 12px;
        line-height: 1.15;

        white-space: nowrap;
    }


    /* ----------------------------------------
       Graphika Identity
       ---------------------------------------- */

    .hero-identity {
        position: absolute;

        right: 24px;
        bottom: 24px;

        width: 150px;

        justify-content: flex-end;
    }

    .hero-identity img {
        width: 150px;
        max-width: 100%;
    }


    /* ----------------------------------------
       Scroll Indicator
       ---------------------------------------- */

    .hero-scroll {
        display: none;
    }
}


/* =========================================================
   SMALL MOBILE
   Up to 430px
   ========================================================= */

@media (max-width: 430px) {

    .hero {
        min-height: 860px;

        padding-inline: 20px;
    }


    /* ----------------------------------------
       Background Face
       ---------------------------------------- */

    .hero-bg-face {
        height: 570px;

        left: -165px;
        bottom: 60px;
    }


    /* ----------------------------------------
       Main Face
       ---------------------------------------- */

    .hero-visual {
        height: 300px;

        left: 50%;
        top: 235px;
        bottom: auto;

        transform: translateX(-50%);
    }

    .hero-visual img {
        max-width: none;
    }


    /* ----------------------------------------
       Headline
       ---------------------------------------- */

    .hero-headline {
        position: absolute;

        top: 118px;
        left: 20px;
        right: 20px;

        display: block;

        z-index: 4;
    }

    .hero-headline h1 {
        display: grid;

        grid-template-columns: max-content max-content;
        column-gap: 7px;

        width: max-content;
        max-width: none;

        font-size: clamp(38px, 10.5vw, 42px);
        line-height: 0.88;
        letter-spacing: -0.035em;
    }

    .hero-headline h1 span {
        display: block;
        white-space: nowrap;
    }


    /* ----------------------------------------
       Description
       ---------------------------------------- */

    .hero-description {
        top: 495px;

        left: 20px;
        right: 20px;
    }

    .hero-description p {
        max-width: 290px;

        font-size: 13px;
        line-height: 1.45;
    }

    .hero-about-link {
        margin-top: 14px;
    }


    /* ----------------------------------------
       Capabilities
       ---------------------------------------- */

    .hero-capabilities {
        left: 20px;
        right: 20px;
        bottom: 92px;

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

        column-gap: 24px;
        row-gap: 16px;
    }

    .capability-title {
        font-size: 12px;
    }


    /* ----------------------------------------
       Graphika Identity
       ---------------------------------------- */

    .hero-identity {
        right: 20px;
        bottom: 22px;

        width: 125px;
    }

    .hero-identity img {
        width: 125px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   Up to 375px
   ========================================================= */

@media (max-width: 375px) {

    .hero {
        min-height: 850px;
    }


    /* ----------------------------------------
       Main Face
       ---------------------------------------- */

    .hero-visual {
        height: 305px;
        top: 230px;
    }


    /* ----------------------------------------
       Headline
       ---------------------------------------- */

    .hero-headline {
        top: 116px;
    }

    .hero-headline h1 {
        font-size: clamp(38px, 10.5vw, 40px);
    }


    /* ----------------------------------------
       Description
       ---------------------------------------- */

    .hero-description {
        top: 500px;
    }

    .hero-description p {
        max-width: 270px;
        font-size: 13px;
    }


    /* ----------------------------------------
       Capabilities
       ---------------------------------------- */

    .hero-capabilities {
        bottom: 92px;

        column-gap: 18px;
        row-gap: 15px;
    }

    .capability-number {
        font-size: 9px;
    }

    .capability-title {
        font-size: 11px;
    }


    /* ----------------------------------------
       Graphika Identity
       ---------------------------------------- */

    .hero-identity {
        width: 115px;

        right: 20px;
        bottom: 22px;
    }

    .hero-identity img {
        width: 115px;
    }
}