/* ==========================================================================
   BAD INFLUENCE PREMIUM
   SERVICES PAGE

   Consolidated release stylesheet.

   CONTENT ORDER
   01. Services Core / Hero / Sections
   02. Services Matrix

   Source modules remain in their original browser load order.
   ========================================================================== */


/* ==========================================================================
   01. SOURCE MODULE: premium-services.css
   ========================================================================== */
/* BAD INFLUENCE PREMIUM SERVICES V3 START */


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

.services-page {
    background:
        var(--porcelain);

    color:
        var(--brown-black);
}


.services-main {
    width:
        100%;

    overflow:
        hidden;
}


/* ==========================================================================
   SECTION 01 / FULL-BLEED HERO
   ========================================================================== */

.services-hero {
    position:
        relative;

    isolation:
        isolate;

    min-height:
        calc(100svh - 5rem);

    overflow:
        hidden;

    color:
        var(--porcelain);

    background-color:
        #080909;

    background-image:
        linear-gradient(
            90deg,
            rgba(4, 6, 7, 0.72) 0%,
            rgba(4, 6, 7, 0.66) 28%,
            rgba(4, 6, 7, 0.42) 48%,
            rgba(4, 6, 7, 0.08) 72%,
            rgba(4, 6, 7, 0.04) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.08) 67%,
            rgba(0, 0, 0, 0.62) 100%
        ),
        url("../images/services-hero-background.webp");

    background-repeat:
        no-repeat;

    background-size:
        cover;

    background-position:
        center center;
}


.services-hero__inner {
    position:
        relative;

    z-index:
        2;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        space-between;

    width:
        min(
            calc(100% - clamp(4rem, 10vw, 12rem)),
            1760px
        );

    min-height:
        calc(100svh - 5rem);

    box-sizing:
        border-box;

    margin-inline:
        auto;

    padding-block:
        clamp(3rem, 6vh, 5rem);
}


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

.services-hero__meta {
    display:
        flex;

    justify-content:
        space-between;

    gap:
        2rem;

    width:
        min(100%, 36rem);

    padding-bottom:
        0.75rem;

    border-bottom:
        1px solid
        rgba(242, 240, 233, 0.3);

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

    font-size:
        0.64rem;

    font-weight:
        700;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;
}


.services-hero__meta span:first-child {
    color:
        #4f73ff;
}


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

.services-hero__copy {
    width:
        min(58%, 58rem);

    padding-block:
        clamp(4rem, 9vh, 8rem);
}


.services-hero__eyebrow {
    margin:
        0
        0
        clamp(1.5rem, 3vh, 2.5rem);

    color:
        #4f73ff;

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

    font-size:
        0.68rem;

    font-weight:
        700;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;
}


.services-hero h1 {
    max-width:
        8ch;

    margin:
        0;

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

    font-size:
        clamp(5.8rem, 9.8vw, 11.5rem);

    font-weight:
        700;

    line-height:
        0.74;

    letter-spacing:
        -0.08em;

    text-transform:
        uppercase;

    text-shadow:
        0 3px 28px
        rgba(0, 0, 0, 0.34);
}


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


.services-hero h1 em {
    display:
        block;

    margin-left:
        clamp(2rem, 6vw, 7rem);

    color:
        #4f73ff;

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

    font-size:
        0.7em;

    font-weight:
        400;

    font-style:
        italic;

    line-height:
        0.9;

    letter-spacing:
        -0.05em;

    text-transform:
        none;

    white-space:
        nowrap;
}


.services-hero__lead {
    max-width:
        30rem;

    margin:
        clamp(2rem, 4vh, 3rem)
        0
        0;

    color:
        rgba(242, 240, 233, 0.92);

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

    font-size:
        clamp(1.35rem, 1.8vw, 2rem);

    font-style:
        italic;

    line-height:
        1.08;

    letter-spacing:
        -0.025em;
}


.services-hero__support {
    max-width:
        31rem;

    margin:
        clamp(1.6rem, 3vh, 2.3rem)
        0
        0;

    color:
        rgba(242, 240, 233, 0.66);

    font-size:
        clamp(0.95rem, 1vw, 1.08rem);

    line-height:
        1.45;
}


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

.services-hero__actions {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        0.7rem;

    margin-top:
        clamp(2rem, 4vh, 3rem);
}


.services-hero__button {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        2rem;

    min-width:
        14rem;

    padding:
        0.95rem
        1rem;

    border:
        1px solid
        rgba(242, 240, 233, 0.55);

    background:
        rgba(7, 8, 9, 0.25);

    color:
        var(--porcelain);

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

    font-size:
        0.64rem;

    font-weight:
        700;

    letter-spacing:
        0.05em;

    text-decoration:
        none;

    text-transform:
        uppercase;

    backdrop-filter:
        blur(7px);

    transition:
        transform 200ms ease,
        background-color 200ms ease,
        color 200ms ease;
}


.services-hero__button--primary {
    border-color:
        #2f5eff;

    background:
        #2f5eff;

    color:
        #ffffff;
}


.services-hero__button:hover,
.services-hero__button:focus-visible {
    transform:
        translateY(-2px);
}


.services-hero__button:not(.services-hero__button--primary):hover,
.services-hero__button:not(.services-hero__button--primary):focus-visible {
    background:
        var(--porcelain);

    color:
        var(--brown-black);
}


/* ==========================================================================
   HERO BOTTOM NOTE
   ========================================================================== */

.services-hero__scroll {
    display:
        flex;

    align-items:
        center;

    gap:
        0.7rem;

    margin:
        0;

    color:
        rgba(242, 240, 233, 0.48);

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

    font-size:
        0.58rem;

    font-weight:
        700;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;
}


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

.services-hero__ghost {
    position:
        absolute;

    z-index:
        1;

    left:
        -0.03em;

    bottom:
        -0.1em;

    pointer-events:
        none;

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

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

    font-size:
        clamp(9rem, 17vw, 20rem);

    font-weight:
        700;

    line-height:
        0.8;

    letter-spacing:
        -0.08em;

    white-space:
        nowrap;
}


/* ==========================================================================
   SECTION 02 / THE USEFUL PART
   ========================================================================== */

.services-list {
    display:
        grid;

    grid-template-columns:
        minmax(22rem, 0.72fr)
        minmax(0, 1.28fr);

    min-height:
        56rem;

    background:
        var(--brown-black);

    color:
        var(--porcelain);
}


/* ==========================================================================
   SECTION 02 INTRO
   ========================================================================== */

.services-list__intro {
    position:
        relative;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        space-between;

    padding:
        clamp(4rem, 7vw, 8rem)
        clamp(2rem, 5vw, 6rem);

    border-right:
        1px solid
        rgba(242, 240, 233, 0.14);

    background:
        var(--porcelain);

    color:
        var(--brown-black);
}


.services-list__meta {
    display:
        flex;

    justify-content:
        space-between;

    gap:
        2rem;

    padding-bottom:
        0.7rem;

    border-bottom:
        1px solid
        rgba(20, 18, 16, 0.24);

    color:
        rgba(20, 18, 16, 0.56);

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

    font-size:
        0.61rem;

    font-weight:
        700;

    letter-spacing:
        0.08em;
}


.services-list__meta span:first-child {
    color:
        var(--cobalt);
}


.services-list h2 {
    max-width:
        7ch;

    margin:
        clamp(5rem, 9vh, 8rem)
        0
        0;

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

    font-size:
        clamp(4.6rem, 7vw, 8rem);

    font-weight:
        700;

    line-height:
        0.76;

    letter-spacing:
        -0.075em;

    text-transform:
        uppercase;
}


.services-list h2 em {
    display:
        block;

    margin-left:
        clamp(2rem, 5vw, 5rem);

    color:
        var(--cobalt);

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

    font-size:
        0.72em;

    font-weight:
        400;

    font-style:
        italic;

    letter-spacing:
        -0.04em;

    text-transform:
        none;
}


.services-list__lead {
    max-width:
        27rem;

    margin:
        clamp(2rem, 4vh, 3rem)
        0
        auto;

    font-size:
        clamp(1rem, 1.2vw, 1.25rem);

    line-height:
        1.45;
}


.services-list__aside {
    display:
        flex;

    flex-direction:
        column;

    gap:
        0.45rem;

    margin:
        clamp(4rem, 8vh, 7rem)
        0
        0;

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

    font-size:
        0.61rem;

    font-weight:
        700;

    letter-spacing:
        0.07em;
}


.services-list__aside em {
    color:
        var(--cobalt);

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

    font-size:
        clamp(1rem, 1.4vw, 1.35rem);

    font-weight:
        400;

    font-style:
        italic;

    letter-spacing:
        -0.02em;
}


/* ==========================================================================
   SERVICE ROWS
   ========================================================================== */

.services-list__items {
    display:
        flex;

    flex-direction:
        column;
}


.service-row {
    position:
        relative;

    display:
        grid;

    grid-template-columns:
        3rem
        minmax(0, 1fr);

    flex:
        1;

    gap:
        1.25rem;

    align-items:
        center;

    padding:
        clamp(1.7rem, 3vw, 3rem)
        clamp(2rem, 5vw, 5rem);

    border-bottom:
        1px solid
        rgba(242, 240, 233, 0.14);

    isolation:
        isolate;
}


.service-row:last-child {
    border-bottom:
        0;
}


.service-row::before {
    content:
        "";

    position:
        absolute;

    inset:
        0;

    z-index:
        -1;

    transform:
        scaleX(0);

    transform-origin:
        left center;

    background:
        var(--cobalt);

    transition:
        transform 260ms
        cubic-bezier(.2,.7,.2,1);
}


.service-row:hover::before {
    transform:
        scaleX(1);
}


.service-row small {
    align-self:
        start;

    padding-top:
        0.25rem;

    color:
        #4f73ff;

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

    font-size:
        0.58rem;

    font-weight:
        700;

    transition:
        color 220ms ease;
}


.service-row:hover small {
    color:
        #ffffff;
}


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


.service-row strong {
    display:
        block;

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

    font-size:
        clamp(1.8rem, 2.5vw, 3rem);

    font-weight:
        700;

    line-height:
        0.95;

    letter-spacing:
        -0.045em;

    text-transform:
        uppercase;
}


.service-row p {
    max-width:
        39rem;

    margin:
        0.55rem
        0
        0;

    color:
        rgba(242, 240, 233, 0.64);

    font-size:
        clamp(0.78rem, 0.85vw, 0.92rem);

    line-height:
        1.4;

    transition:
        color 220ms ease;
}


.service-row em {
    display:
        block;

    max-width:
        42rem;

    margin-top:
        0.38rem;

    color:
        rgba(242, 240, 233, 0.39);

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

    font-size:
        clamp(0.75rem, 0.8vw, 0.88rem);

    font-style:
        italic;

    line-height:
        1.35;

    transition:
        color 220ms ease;
}


.service-row:hover p {
    color:
        rgba(255, 255, 255, 0.84);
}


.service-row:hover em {
    color:
        rgba(255, 255, 255, 0.72);
}


/* ==========================================================================
   ULTRAWIDE
   ========================================================================== */

@media (min-width: 1800px) {

    .services-hero {
        min-height:
            780px;

        height:
            min(
                calc(100svh - 5rem),
                960px
            );

        max-height:
            960px;
    }


    .services-hero__inner {
        min-height:
            100%;

        height:
            100%;
    }


    .services-list {
        grid-template-columns:
            minmax(34rem, 0.75fr)
            minmax(0, 1.25fr);
    }


    .services-list__intro {
        padding-left:
            max(
                6rem,
                calc((100vw - 1760px) / 2)
            );
    }


    .service-row {
        padding-right:
            max(
                5rem,
                calc((100vw - 1760px) / 2)
            );
    }

}


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

@media (min-width: 701px) and (max-width: 1100px) {

    .services-hero {
        min-height:
            760px;

        background-position:
            58% center;

        background-image:
            linear-gradient(
                90deg,
                rgba(4, 6, 7, 0.88) 0%,
                rgba(4, 6, 7, 0.78) 38%,
                rgba(4, 6, 7, 0.38) 66%,
                rgba(4, 6, 7, 0.08) 100%
            ),
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.05) 0%,
                rgba(0, 0, 0, 0.58) 100%
            ),
            url("../images/services-hero-background.webp");
    }


    .services-hero__inner {
        width:
            calc(100% - 4rem);

        min-height:
            760px;
    }


    .services-hero__copy {
        width:
            min(72%, 48rem);
    }


    .services-hero h1 {
        font-size:
            clamp(
                5rem,
                10.5vw,
                7.6rem
            );
    }


    .services-list {
        grid-template-columns:
            1fr;
    }


    .services-list__intro {
        min-height:
            38rem;

        border-right:
            0;

        border-bottom:
            1px solid
            rgba(20, 18, 16, 0.18);
    }


    .services-list h2 {
        margin-top:
            5rem;
    }


    .service-row strong {
        font-size:
            clamp(
                2rem,
                4vw,
                3rem
            );
    }

}


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

@media (max-width: 700px) {

    .services-hero {
        min-height:
            100svh;

        background-position:
            64% center;

        background-image:
            linear-gradient(
                90deg,
                rgba(4, 6, 7, 0.94) 0%,
                rgba(4, 6, 7, 0.88) 52%,
                rgba(4, 6, 7, 0.5) 82%,
                rgba(4, 6, 7, 0.28) 100%
            ),
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.04) 0%,
                rgba(0, 0, 0, 0.2) 52%,
                rgba(0, 0, 0, 0.78) 100%
            ),
            url("../images/services-hero-background.webp");
    }


    .services-hero__inner {
        width:
            100%;

        min-height:
            100svh;

        padding:
            6.5rem
            1rem
            2.5rem;
    }


    .services-hero__meta {
        width:
            100%;

        font-size:
            0.57rem;
    }


    .services-hero__copy {
        width:
            100%;

        padding-block:
            4rem;
    }


    .services-hero__eyebrow {
        font-size:
            0.6rem;
    }


    .services-hero h1 {
        max-width:
            100%;

        font-size:
            clamp(
                3.8rem,
                15vw,
                5.2rem
            );
    }


    .services-hero h1 em {
        margin-left:
            7%;

        white-space:
            normal;
    }


    .services-hero__lead {
        max-width:
            23rem;

        font-size:
            clamp(
                1.25rem,
                6vw,
                1.7rem
            );
    }


    .services-hero__support {
        max-width:
            22rem;
    }


    .services-hero__actions {
        display:
            grid;

        grid-template-columns:
            1fr;

        width:
            100%;
    }


    .services-hero__button {
        width:
            100%;

        min-width:
            0;

        box-sizing:
            border-box;
    }


    .services-hero__ghost {
        display:
            none;
    }


    .services-list {
        display:
            flex;

        flex-direction:
            column;

        min-height:
            0;
    }


    .services-list__intro {
        min-height:
            38rem;

        box-sizing:
            border-box;

        padding:
            4rem
            1rem;

        border-right:
            0;
    }


    .services-list h2 {
        margin-top:
            4rem;

        font-size:
            clamp(
                3.8rem,
                15vw,
                5rem
            );
    }


    .services-list__lead {
        margin-top:
            2rem;
    }


    .service-row {
        grid-template-columns:
            1.8rem
            minmax(0, 1fr);

        gap:
            0.8rem;

        padding:
            2rem
            1rem;
    }


    .service-row strong {
        font-size:
            clamp(
                1.6rem,
                8vw,
                2.2rem
            );
    }


    .service-row p {
        font-size:
            0.82rem;
    }


    .service-row em {
        font-size:
            0.77rem;
    }

}


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

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

    .services-hero__button,
    .service-row::before,
    .service-row small,
    .service-row p,
    .service-row em {
        transition:
            none;
    }

}


/* BAD INFLUENCE PREMIUM SERVICES V3 END */


/* ==========================================================================
   02. SOURCE MODULE: premium-services-matrix.css
   ========================================================================== */
/* BAD INFLUENCE PREMIUM SERVICES MATRIX V1 START */


/* ==========================================================================
   SECTION SHELL
   ========================================================================== */

.services-matrix {
    position:
        relative;

    overflow:
        hidden;

    background:
        #0e0e0e;

    color:
        var(--porcelain);
}


.services-matrix::before {
    content:
        "";

    position:
        absolute;

    inset:
        0;

    pointer-events:
        none;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size:
        72px
        72px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.8),
            transparent 86%
        );
}


.services-matrix__shell {
    position:
        relative;

    z-index:
        1;

    width:
        min(
            calc(100% - clamp(4rem, 10vw, 12rem)),
            1760px
        );

    margin-inline:
        auto;

    padding-block:
        clamp(7rem, 11vw, 12rem);
}


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

.services-matrix__header {
    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(22rem, 0.55fr);

    gap:
        clamp(4rem, 10vw, 11rem);

    align-items:
        end;

    padding-bottom:
        clamp(4rem, 7vw, 7rem);
}


.services-matrix__meta {
    display:
        flex;

    justify-content:
        space-between;

    gap:
        2rem;

    width:
        min(100%, 34rem);

    padding-bottom:
        0.75rem;

    border-bottom:
        1px solid
        rgba(242, 240, 233, 0.22);

    color:
        rgba(242, 240, 233, 0.52);

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

    font-size:
        0.61rem;

    font-weight:
        700;

    letter-spacing:
        0.08em;
}


.services-matrix__meta span:first-child {
    color:
        #4f73ff;
}


.services-matrix h2 {
    max-width:
        8ch;

    margin:
        clamp(3rem, 6vw, 5rem)
        0
        0;

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

    font-size:
        clamp(5rem, 8vw, 9rem);

    font-weight:
        700;

    line-height:
        0.75;

    letter-spacing:
        -0.075em;

    text-transform:
        uppercase;
}


.services-matrix h2 span {
    display:
        block;
}


.services-matrix h2 em {
    display:
        block;

    margin-left:
        clamp(2rem, 6vw, 6rem);

    color:
        #4f73ff;

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

    font-size:
        0.72em;

    font-weight:
        400;

    font-style:
        italic;

    line-height:
        0.9;

    letter-spacing:
        -0.05em;

    text-transform:
        none;
}


.services-matrix__intro {
    padding-bottom:
        0.5rem;
}


.services-matrix__intro > p {
    max-width:
        29rem;

    margin:
        0;

    color:
        rgba(242, 240, 233, 0.68);

    font-size:
        clamp(1rem, 1.1vw, 1.2rem);

    line-height:
        1.5;
}


.services-matrix__system {
    display:
        flex;

    justify-content:
        space-between;

    gap:
        2rem;

    margin-top:
        clamp(2rem, 4vw, 3rem);

    padding:
        0.9rem
        0;

    border-top:
        1px solid
        rgba(242, 240, 233, 0.18);

    border-bottom:
        1px solid
        rgba(242, 240, 233, 0.18);

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

    font-size:
        0.58rem;

    letter-spacing:
        0.08em;
}


.services-matrix__system span {
    color:
        rgba(242, 240, 233, 0.42);
}


.services-matrix__system strong {
    color:
        #4f73ff;
}


/* ==========================================================================
   MATRIX
   ========================================================================== */

.services-matrix__grid {
    display:
        grid;

    grid-template-columns:
        repeat(12, minmax(0, 1fr));

    gap:
        clamp(0.8rem, 1.2vw, 1.2rem);

    grid-auto-flow:
        dense;
}


/* ==========================================================================
   MODULE
   ========================================================================== */

.service-module {
    --module-border:
        rgba(242, 240, 233, 0.15);

    position:
        relative;

    display:
        flex;

    flex-direction:
        column;

    min-height:
        clamp(25rem, 34vw, 34rem);

    overflow:
        hidden;

    border:
        1px solid
        var(--module-border);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.008) 52%,
            rgba(47, 94, 255, 0.035)
        ),
        #151515;

    clip-path:
        polygon(
            0 0,
            calc(100% - 1.35rem) 0,
            100% 1.35rem,
            100% 100%,
            1.35rem 100%,
            0 calc(100% - 1.35rem)
        );

    opacity:
        0;

    transform:
        translateY(34px)
        scale(0.985);

    transition:
        opacity 650ms
        cubic-bezier(.2,.7,.2,1),

        transform 650ms
        cubic-bezier(.2,.7,.2,1),

        border-color 260ms ease,

        background-color 260ms ease,

        box-shadow 260ms ease;

    transition-delay:
        calc(var(--module-index) * 90ms);
}


.services-matrix.is-visible
.service-module {
    opacity:
        1;

    transform:
        translateY(0)
        scale(1);
}


.service-module--wide {
    grid-column:
        span 7;
}


.service-module--compact {
    grid-column:
        span 5;
}


.service-module--human {
    grid-column:
        span 7;

    min-height:
        clamp(28rem, 38vw, 38rem);

    background:
        linear-gradient(
            145deg,
            rgba(47, 94, 255, 0.22),
            rgba(47, 94, 255, 0.05) 43%,
            rgba(255, 255, 255, 0.02)
        ),
        #111319;
}


/* stagger the geometry */

/*
 * 04 and 06 are intentionally the big anchors.
 *
 * 01, 02, 03 and 05 size themselves more closely to
 * their actual amount of content instead of stretching
 * into giant mostly-empty panels.
 */

.service-module:nth-child(1) {
    align-self:
        start;

    min-height:
        clamp(
            23rem,
            29vw,
            30rem
        );
}


.service-module:nth-child(2) {
    align-self:
        start;

    min-height:
        clamp(
            24rem,
            30vw,
            30rem
        );

    margin-top:
        clamp(
            3rem,
            5vw,
            5rem
        );
}


.service-module:nth-child(3) {
    align-self:
        start;

    min-height:
        clamp(
            21rem,
            26vw,
            26rem
        );

    margin-top:
        0;
}


/*
 * 04 remains one of the two large visual anchors.
 */

.service-module:nth-child(4) {
    margin-top:
        clamp(
            2rem,
            4vw,
            4rem
        );
}


.service-module:nth-child(5) {
    align-self:
        start;

    min-height:
        clamp(
            21rem,
            26vw,
            26rem
        );

    margin-top:
        clamp(
            1rem,
            2vw,
            2rem
        );
}


/*
 * 06 / Human Support intentionally keeps the large
 * feature-module treatment.
 */

/* ==========================================================================
   MODULE TECH HEADER
   ========================================================================== */

.service-module__top {
    display:
        flex;

    justify-content:
        space-between;

    gap:
        2rem;

    padding:
        1rem
        1.15rem;

    border-bottom:
        1px solid
        rgba(242, 240, 233, 0.12);

    color:
        rgba(242, 240, 233, 0.44);

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

    font-size:
        0.55rem;

    font-weight:
        700;

    letter-spacing:
        0.08em;
}


.service-module__top small {
    color:
        #4f73ff;
}


/* ==========================================================================
   GHOST NUMBER
   ========================================================================== */

.service-module__number {
    position:
        absolute;

    top:
        2.4rem;

    right:
        -0.05em;

    pointer-events:
        none;

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

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

    font-size:
        clamp(8rem, 15vw, 15rem);

    font-weight:
        700;

    line-height:
        0.8;

    letter-spacing:
        -0.09em;

    transition:
        color 260ms ease,
        transform 500ms
        cubic-bezier(.2,.7,.2,1);
}


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

.service-module__body {
    position:
        relative;

    z-index:
        2;

    display:
        flex;

    flex:
        1;

    flex-direction:
        column;

    justify-content:
        flex-end;

    padding:
        clamp(2rem, 4vw, 4rem);
}


.service-module h3 {
    max-width:
        8ch;

    margin:
        0;

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

    font-size:
        clamp(2.9rem, 4.8vw, 5.8rem);

    font-weight:
        700;

    line-height:
        0.78;

    letter-spacing:
        -0.065em;

    text-transform:
        uppercase;
}


.service-module p:not(.service-module__human-label) {
    max-width:
        29rem;

    margin:
        clamp(1.5rem, 3vw, 2.3rem)
        0
        0;

    color:
        rgba(242, 240, 233, 0.66);

    font-size:
        clamp(0.88rem, 0.95vw, 1.05rem);

    line-height:
        1.45;

    transition:
        color 260ms ease;
}


.service-module em {
    display:
        block;

    max-width:
        31rem;

    margin-top:
        0.65rem;

    color:
        rgba(242, 240, 233, 0.35);

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

    font-size:
        clamp(0.8rem, 0.9vw, 0.95rem);

    font-style:
        italic;

    line-height:
        1.35;

    transform:
        translateY(5px);

    transition:
        color 260ms ease,
        transform 260ms ease;
}


.service-module__human-label {
    margin:
        0
        0
        1.2rem;

    color:
        #4f73ff;

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

    font-size:
        0.61rem;

    font-weight:
        700;

    letter-spacing:
        0.08em;
}


/* ==========================================================================
   ACTION
   ========================================================================== */

.service-module__action {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        2rem;

    width:
        min(100%, 19rem);

    margin-top:
        clamp(2rem, 4vw, 3rem);

    padding:
        0.95rem
        1rem;

    border:
        1px solid
        rgba(255, 255, 255, 0.28);

    background:
        rgba(255, 255, 255, 0.04);

    color:
        var(--porcelain);

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

    font-size:
        0.6rem;

    font-weight:
        700;

    letter-spacing:
        0.06em;

    text-decoration:
        none;

    transition:
        background-color 220ms ease,
        color 220ms ease,
        border-color 220ms ease;
}


.service-module__action:hover,
.service-module__action:focus-visible {
    border-color:
        #ffffff;

    background:
        #ffffff;

    color:
        #101010;
}


/* ==========================================================================
   SCAN LINE
   ========================================================================== */

.service-module__scan {
    position:
        absolute;

    z-index:
        3;

    top:
        0;

    left:
        0;

    width:
        0;

    height:
        3px;

    pointer-events:
        none;

    background:
        #2f5eff;

    box-shadow:
        0 0 20px
        rgba(47, 94, 255, 0.7);

    transition:
        width 700ms
        cubic-bezier(.2,.7,.2,1);

    transition-delay:
        calc(
            260ms +
            (var(--module-index) * 90ms)
        );
}


.services-matrix.is-visible
.service-module__scan {
    width:
        100%;
}


/* ==========================================================================
   HOVER
   ========================================================================== */

@media (hover: hover) {

    .service-module:hover {
        --module-border:
            rgba(79, 115, 255, 0.7);

        transform:
            translateY(-7px);

        box-shadow:
            0 24px 70px
            rgba(0, 0, 0, 0.28);
    }


    .services-matrix.is-visible
    .service-module:hover {
        transform:
            translateY(-7px)
            scale(1);
    }


    .service-module:hover
    .service-module__number {
        color:
            rgba(79, 115, 255, 0.13);

        transform:
            translateX(-0.05em)
            scale(1.035);
    }


    .service-module:hover
    p:not(.service-module__human-label) {
        color:
            rgba(242, 240, 233, 0.86);
    }


    .service-module:hover em {
        color:
            rgba(242, 240, 233, 0.7);

        transform:
            translateY(0);
    }

}


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

.services-matrix__footer {
    display:
        flex;

    justify-content:
        space-between;

    gap:
        2rem;

    align-items:
        baseline;

    margin-top:
        clamp(5rem, 9vw, 8rem);

    padding-top:
        1.25rem;

    border-top:
        1px solid
        rgba(242, 240, 233, 0.16);

    color:
        rgba(242, 240, 233, 0.45);

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

    font-size:
        0.58rem;

    font-weight:
        700;

    letter-spacing:
        0.08em;
}


.services-matrix__footer em {
    color:
        #4f73ff;

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

    font-size:
        clamp(1rem, 1.3vw, 1.3rem);

    font-weight:
        400;

    font-style:
        italic;

    letter-spacing:
        -0.02em;
}


/* ==========================================================================
   HEADER / FOOTER REVEALS
   ========================================================================== */

[data-service-reveal] {
    opacity:
        0;

    transform:
        translateY(24px);

    transition:
        opacity 600ms
        cubic-bezier(.2,.7,.2,1),

        transform 600ms
        cubic-bezier(.2,.7,.2,1);
}


.services-matrix.is-visible
[data-service-reveal] {
    opacity:
        1;

    transform:
        translateY(0);
}


.services-matrix__footer {
    transition-delay:
        620ms;
}


/* ==========================================================================
   ULTRAWIDE
   ========================================================================== */

@media (min-width: 1800px) {

    .services-matrix__grid {
        gap:
            1.4rem;
    }


    .service-module {
        min-height:
            34rem;
    }


    .service-module:nth-child(1) {
        min-height:
            40rem;
    }


    .service-module--human {
        min-height:
            39rem;
    }

}


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

@media (min-width: 701px) and (max-width: 1100px) {

    .services-matrix__shell {
        width:
            calc(100% - 4rem);

        padding-block:
            7rem;
    }


    .services-matrix__header {
        grid-template-columns:
            1fr;

        gap:
            3rem;
    }


    .services-matrix__intro {
        max-width:
            34rem;
    }


    .services-matrix__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .service-module--wide,
    .service-module--compact,
    .service-module--human {
        grid-column:
            span 1;

        min-height:
            30rem;

        margin-top:
            0;
    }


    .service-module--human {
        grid-column:
            span 2;
    }


    .service-module h3 {
        font-size:
            clamp(
                2.8rem,
                6vw,
                4.5rem
            );
    }

}


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

@media (max-width: 700px) {

    .services-matrix__shell {
        width:
            100%;

        box-sizing:
            border-box;

        padding:
            5rem
            1rem;
    }


    .services-matrix__header {
        grid-template-columns:
            1fr;

        gap:
            2.5rem;

        padding-bottom:
            4rem;
    }


    .services-matrix__meta {
        width:
            100%;

        font-size:
            0.56rem;
    }


    .services-matrix h2 {
        margin-top:
            3rem;

        font-size:
            clamp(
                3.8rem,
                15vw,
                5rem
            );
    }


    .services-matrix__intro {
        max-width:
            24rem;
    }


    .services-matrix__grid {
        display:
            flex;

        flex-direction:
            column;

        gap:
            0.9rem;
    }


    .service-module,
    .service-module:nth-child(1),
    .service-module:nth-child(2),
    .service-module:nth-child(3),
    .service-module:nth-child(4),
    .service-module:nth-child(5),
    .service-module--human {
        width:
            100%;

        min-height:
            27rem;

        box-sizing:
            border-box;

        margin-top:
            0;
    }


    .service-module__body {
        padding:
            1.75rem;
    }


    .service-module h3 {
        font-size:
            clamp(
                2.7rem,
                13vw,
                4rem
            );
    }


    .service-module p:not(.service-module__human-label) {
        font-size:
            0.92rem;
    }


    .service-module em {
        color:
            rgba(242, 240, 233, 0.58);

        font-size:
            0.84rem;

        transform:
            none;
    }


    .services-matrix__footer {
        display:
            grid;

        grid-template-columns:
            1fr;

        gap:
            0.6rem;

        margin-top:
            4rem;
    }

}


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

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

    [data-service-reveal],
    .service-module,
    .service-module__scan,
    .service-module__number,
    .service-module em,
    .service-module p,
    .service-module__action {
        transition:
            none;
    }


    [data-service-reveal],
    .service-module {
        opacity:
            1;

        transform:
            none;
    }


    .service-module__scan {
        width:
            100%;
    }

}


/* BAD INFLUENCE PREMIUM SERVICES MATRIX V1 END */


/* BAD INFLUENCE COMPACT MODULE TYPOGRAPHY V2 */

/*
 * Node 02 keeps a conservative scale because
 * APPOINTMENTS is a long-ass word.
 */

.service-module:nth-child(2) h3 {
    max-width:
        100%;

    font-size:
        clamp(
            2.35rem,
            3.3vw,
            4rem
        );

    line-height:
        0.82;

    letter-spacing:
        -0.06em;
}


/*
 * Nodes 03 and 05 have short titles and were visually
 * drowning inside their modules. Give them editorial weight.
 */

.service-module:nth-child(3) h3,
.service-module:nth-child(5) h3 {
    max-width:
        100%;

    font-size:
        clamp(
            3.2rem,
            4.35vw,
            5rem
        );

    line-height:
        0.79;

    letter-spacing:
        -0.065em;
}


/* ----------------------------------------------------------
   DESKTOP / MID-WIDTH
   ---------------------------------------------------------- */

@media (min-width: 1101px) and (max-width: 1450px) {

    .service-module:nth-child(2) h3 {
        font-size:
            clamp(
                2.2rem,
                3vw,
                3.25rem
            );
    }


    .service-module:nth-child(3) h3,
    .service-module:nth-child(5) h3 {
        font-size:
            clamp(
                3rem,
                4vw,
                4.35rem
            );
    }

}


/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (min-width: 701px) and (max-width: 1100px) {

    .service-module:nth-child(1),
    .service-module:nth-child(2),
    .service-module:nth-child(3),
    .service-module:nth-child(5) {
        min-height:
            27rem;

        margin-top:
            0;
    }


    .service-module:nth-child(2) h3 {
        font-size:
            clamp(
                2.5rem,
                5.2vw,
                4rem
            );
    }


    .service-module:nth-child(3) h3,
    .service-module:nth-child(5) h3 {
        font-size:
            clamp(
                3rem,
                6vw,
                4.5rem
            );
    }

}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 700px) {

    .service-module:nth-child(1),
    .service-module:nth-child(2),
    .service-module:nth-child(3),
    .service-module:nth-child(5) {
        min-height:
            24rem;

        margin-top:
            0;
    }


    .service-module:nth-child(2) h3 {
        font-size:
            clamp(
                2.7rem,
                13vw,
                4rem
            );
    }


    .service-module:nth-child(3) h3,
    .service-module:nth-child(5) h3 {
        font-size:
            clamp(
                3rem,
                13.5vw,
                4.35rem
            );
    }

}

/* BAD INFLUENCE COMPACT MODULE TYPOGRAPHY V2 END */

