:root {
    --card-opacity: .10;
    --card-blur: 18px;
    --card-radius: 22px;

    --background-brightness: .55;
    --background-blur: 0px;
    --overlay-opacity: .35;
}


* {
    box-sizing: border-box;
}


html,
body {
    min-height: 100%;
}


body {
    margin: 0;

    min-height: 100vh;

    overflow-x: hidden;

    color: #f5f6f8;

    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 20% 20%,
            #202534,
            #090b10 70%
        );
}


/*
 * Background
 */

.background {
    position: fixed;
    inset: -2%;

    z-index: -3;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 30% 20%,
            #343c54,
            #090b10 70%
        );

    filter:
        brightness(
            var(--background-brightness)
        )
        blur(
            var(--background-blur)
        );

    transform: scale(1.03);

    opacity: 1;

    transition:
        opacity .55s ease;
}


.background img,
.background video {
    width: 100%;
    height: 100%;

    display: block;

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


.veil {
    position: fixed;
    inset: 0;

    z-index: -2;

    pointer-events: none;

    background:
        linear-gradient(
            100deg,
            rgba(4,6,10,.62) 0%,
            rgba(4,6,10,.20) 55%,
            rgba(4,6,10,.30) 100%
        );

    opacity:
        var(--overlay-opacity);
}


body::after {
    content: "";

    position: fixed;
    inset: 0;

    z-index: -1;

    pointer-events: none;

    opacity: .10;

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

    background-size:
        58px 58px;
}





/*
 * Main
 */

.home {
    width:
        min(
            1120px,
            calc(100% - 48px)
        );

    min-height: 100vh;

    margin: 0 auto;

    padding:
        clamp(88px, 14vh, 150px)
        0
        42px;

    display: flex;
    flex-direction: column;
}


.identity {
    width:
        min(
            var(--text-width, 980px),
            100%
        );

    max-width: none;

    transform:
        translate3d(
            var(--text-offset-x, 0px),
            var(--text-offset-y, 0px),
            0
        );

    transition:
        transform .18s ease,
        width .18s ease;
}


.greeting {
    min-height: 21px;

    margin-bottom: 28px;

    color:
        rgba(255,255,255,.66);

    font-size: 13px;

    font-weight: 600;

    letter-spacing: .13em;

    text-transform: uppercase;
}


h1 {
    margin: 0;

    font-size:
        clamp(
 
           52px,
            7.5vw,
            92px
        );

    line-height: .98;

    font-weight: 700;

    letter-spacing: -.055em;

    text-shadow:
        0 10px 50px
        rgba(0,0,0,.2);
}


@media (min-width: 641px) {
    h1 {
        white-space: nowrap;
    }
}


.subtitle {
    max-width: 620px;

    margin:
        36px 0 0;

    color:
        rgba(255,255,255,.72);

    font-size:
        clamp(
            16px,
            2vw,
            19px
        );

    line-height: 1.75;

    white-space: pre-line;
}


/*
 * Services
 */

.services {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px, 1fr)
        );

    gap: 14px;

    width: min(760px, 100%);

    margin-top: auto;

    padding-top: 80px;
}


.service-card {
    position: relative;

    min-height: 146px;

    padding: 24px;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius:
        var(--card-radius);

    background:
        rgba(
            255,
            255,
            255,
            var(--card-opacity)
        );

    backdrop-filter:
        blur(var(--card-blur));

    color: inherit;

    text-decoration: none;

    box-shadow:
        0 24px 70px
        rgba(0,0,0,.14);

    transition:
        transform .22s ease,
        border-color .22s ease,
        background .22s ease;
}


.service-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(255,255,255,.27);

    background:
        rgba(
            255,
            255,
            255,
            calc(
                var(--card-opacity)
                + .04
            )
        );
}


.service-title {
    margin-bottom: 10px;

    font-size: 19px;

    font-weight: 650;

    letter-spacing: -.02em;
}


.service-description {
    max-width: 270px;

    color:
        rgba(255,255,255,.62);

    font-size: 13px;

    line-height: 1.55;
}


.service-action {
    position: absolute;

    right: 22px;
    bottom: 20px;

    color:
        rgba(255,255,255,.82);

    font-size: 13px;

    font-weight: 650;
}


.service-action span {
    display: inline-block;

    margin-left: 4px;

    transition:
        transform .2s ease;
}


.service-card:hover
.service-action span {
    transform:
        translateX(3px);
}


/*
 * Footer
 */

.footer {
    margin-top: 28px;

    color:
        rgba(255,255,255,.38);

    font-size: 12px;
}


/*
 * Studio button
 */

.studio-link {
    position: fixed;

    right: 24px;
    bottom: 24px;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 999px;

    background:
        rgba(10,12,18,.30);

    backdrop-filter:
        blur(12px);

    color:
        rgba(255,255,255,.42);

    text-decoration: none;

    font-size: 15px;

    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}


.studio-link:hover {
    color: white;

    background:
        rgba(10,12,18,.60);

    transform:
        rotate(18deg);
}


/*
 * Mobile
 */
@media (max-width: 640px) {

    html:not(.studio-preview) .identity {
        width: 100%;

        transform: none;
    }

    .home {
        width:
            min(
                calc(100% - 32px),
                1120px
            );

        padding-top: 90px;
    }

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

        padding-top: 65px;
    }

    .service-card {
        min-height: 126px;
    }
}


@media (
    prefers-reduced-motion: reduce
) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
