/*
================================================

Space Vanta Theme 1.0

Module:
On-Demand

File:
public/on-demand/page/space/hero.css

Version:
ON-DEMAND-HERO-002

Visual Role:
Space Entrance / Discovery Field

================================================
*/


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

.sv-on-demand__hero {
    position: relative;

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

    overflow: hidden;

    isolation: isolate;

    color: #182028;
}


.sv-on-demand__hero-inner {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(420px, 0.78fr) minmax(560px, 1.22fr);

    align-items: center;

    gap: clamp(32px, 4vw, 72px);

    width: min(1500px, calc(100% - 96px));
    min-height: 100svh;

    margin: 0 auto;

    box-sizing: border-box;
}


/*
================================================
CONTENT
================================================
*/

.sv-on-demand__hero-content {
    position: relative;

    z-index: 10;

    width: min(100%, 570px);

    padding:
        clamp(90px, 10vh, 130px) 0;

    box-sizing: border-box;
}


/*
================================================
EYEBROW
================================================
*/

.sv-on-demand__hero-eyebrow {
    margin: 0 0 24px;

    font-size: 10px;
    line-height: 1.2;
    font-weight: 500;

    letter-spacing: 0.22em;
    text-transform: uppercase;

    color: rgba(43, 53, 61, 0.58);
}


/*
================================================
TITLE
================================================
*/

.sv-on-demand__hero-title {
    display: flex;

    flex-direction: column;

    width: min(100%, 590px);

    margin: 0;

    font-size:
        clamp(56px, 6.2vw, 94px);

    line-height: 0.91;

    font-weight: 500;

    letter-spacing: -0.055em;

    text-wrap: balance;
}


.sv-on-demand__hero-title-line {
    display: block;

    white-space: nowrap;
}


.sv-on-demand__hero-title-line--primary {
    margin-top: 4px;
}


/*
================================================
DESCRIPTION
================================================
*/

.sv-on-demand__hero-description {
    width: min(100%, 455px);

    margin-top: 34px;

    font-size:
        clamp(14px, 1.05vw, 17px);

    line-height: 1.62;

    letter-spacing: -0.012em;

    color: rgba(40, 49, 57, 0.66);
}


/*
================================================
EXPLORE
================================================
*/

.sv-on-demand__hero-explore {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    margin-top: 40px;
    padding: 0;

    color: rgba(27, 37, 45, 0.84);

    text-decoration: none;

    font-size: 10px;
    line-height: 1.2;
    font-weight: 500;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}


.sv-on-demand__hero-explore-label {
    position: relative;

    display: inline-block;
}


.sv-on-demand__hero-explore-label::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -8px;

    height: 1px;

    background: currentColor;

    opacity: 0.68;

    transform:
        scaleX(0.38);

    transform-origin: left center;

    transition:
        transform 360ms ease,
        opacity 360ms ease;
}


/*
================================================
EXPLORE ICON
================================================
*/

.sv-on-demand__hero-explore-icon {
    position: relative;

    display: inline-flex;

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

    width: 34px;
    height: 34px;

    border: 1px solid rgba(52, 69, 80, 0.48);

    border-radius: 50%;

    opacity: 0.72;

    transition:
        transform 360ms ease,
        border-color 360ms ease,
        opacity 360ms ease,
        background-color 360ms ease;
}


.sv-on-demand__hero-explore-icon::before,
.sv-on-demand__hero-explore-icon::after {
    content: "";

    position: absolute;
}


.sv-on-demand__hero-explore-icon::before {
    width: 9px;
    height: 1px;

    background: currentColor;
}


.sv-on-demand__hero-explore-icon::after {
    width: 5px;
    height: 5px;

    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;

    transform:
        translateX(2px) rotate(45deg);
}


/*
================================================
DESKTOP CTA RESPONSE
================================================
*/

@media (hover: hover) and (pointer: fine) {

    .sv-on-demand__hero-explore:hover .sv-on-demand__hero-explore-label::after {
        transform:
            scaleX(1);

        opacity: 1;
    }


    .sv-on-demand__hero-explore:hover .sv-on-demand__hero-explore-icon {
        transform:
            translateX(5px);

        border-color:
            rgba(52, 82, 99, 0.70);

        opacity: 1;

        background:
            rgba(218, 226, 231, 0.16);
    }

}


/*
================================================
SPATIAL DISCOVERY FIELD
================================================
*/

.sv-on-demand__hero-space {
    position: relative;

    width: 100%;

    min-height: min(720px, 78vh);

    aspect-ratio: 1 / 0.88;

    perspective: 1400px;

    transform-style: preserve-3d;
}


/*
================================================
SPACE GRID
================================================
*/

.sv-on-demand__hero-space-grid {
    position: absolute;

    inset:
        7% 2% 8% 2%;

    opacity: 0.15;

    background-image:
        linear-gradient(to right,
            transparent 49.7%,
            currentColor 50%,
            transparent 50.3%),
        linear-gradient(to bottom,
            transparent 49.7%,
            currentColor 50%,
            transparent 50.3%);

    background-size:
        25% 25%;

    transform:
        perspective(1000px) rotateX(58deg) rotateZ(-12deg) translateY(7%);

    mask-image:
        linear-gradient(to bottom,
            transparent,
            black 15%,
            black 80%,
            transparent);

    -webkit-mask-image:
        linear-gradient(to bottom,
            transparent,
            black 15%,
            black 80%,
            transparent);
}


/*
================================================
SPATIAL PLANES
================================================
*/

.sv-on-demand__hero-space-plane {
    position: absolute;

    border: 1px solid currentColor;

    opacity: 0.15;

    transform-style: preserve-3d;
}


.sv-on-demand__hero-space-plane--back {
    top: 9%;
    right: 5%;

    width: 68%;
    height: 68%;

    transform:
        rotateY(-24deg) rotateX(8deg) rotateZ(7deg);
}


.sv-on-demand__hero-space-plane--middle {
    right: 15%;
    bottom: 10%;

    width: 62%;
    height: 51%;

    opacity: 0.09;

    transform:
        rotateY(18deg) rotateX(-8deg) rotateZ(-8deg);
}


/*
================================================
MAIN OBJECT
================================================
*/

.sv-on-demand__hero-space-object {
    position: absolute;

    top: 50%;
    left: 51%;

    width: clamp(215px, 18vw, 270px);
    height: clamp(215px, 18vw, 270px);

    transform:
        translate(-50%, -50%) rotate(-9deg);

    transform-style: preserve-3d;
}


.sv-on-demand__hero-object-shell {
    position: absolute;

    inset: 0;

    border: 1px solid currentColor;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.10),
            transparent 34%,
            rgba(255, 255, 255, 0.035) 66%,
            transparent);

    box-shadow:
        24px 28px 60px rgba(0, 0, 0, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.045);

    transform:
        rotateX(14deg) rotateY(-22deg) skewY(-4deg);
}


.sv-on-demand__hero-object-surface {
    position: absolute;

    inset: 13%;

    border: 1px solid currentColor;

    opacity: 0.23;

    transform:
        translateZ(18px) rotateZ(9deg);
}


.sv-on-demand__hero-object-inner {
    position: absolute;

    top: 28%;
    left: 28%;

    width: 44%;
    height: 44%;

    border: 1px solid currentColor;

    opacity: 0.20;

    transform:
        translateZ(34px) rotateZ(-17deg);
}


.sv-on-demand__hero-object-signal {
    position: absolute;

    top: 47%;
    left: 47%;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        rgba(93, 132, 153, 0.72);

    box-shadow:
        0 0 0 5px rgba(100, 140, 180, 0.055),
        0 0 22px rgba(100, 140, 180, 0.24);

    transform:
        translateZ(48px);
}


.sv-on-demand__hero-object-line {
    position: absolute;

    height: 1px;

    background: currentColor;

    opacity: 0.18;

    transform-origin: left center;
}


.sv-on-demand__hero-object-line--one {
    width: 120px;

    top: 15%;
    left: 70%;

    transform:
        rotate(32deg) translateZ(8px);
}


.sv-on-demand__hero-object-line--two {
    width: 96px;

    left: -24%;
    bottom: 19%;

    transform:
        rotate(-18deg) translateZ(4px);
}


/*
================================================
NODES
================================================
*/

.sv-on-demand__hero-space-node {
    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        rgba(82, 111, 128, 0.62);

    opacity: 0.58;
}


.sv-on-demand__hero-space-node--one {
    top: 17%;
    right: 17%;
}


.sv-on-demand__hero-space-node--two {
    right: 8%;
    bottom: 22%;
}


.sv-on-demand__hero-space-node--three {
    left: 11%;
    bottom: 29%;
}


/*
================================================
SPATIAL LABELS
================================================
*/

.sv-on-demand__hero-space-label {
    position: absolute;

    font-size: 8px;
    line-height: 1;
    font-weight: 500;

    letter-spacing: 0.17em;

    color: rgba(55, 68, 77, 0.48);

    white-space: nowrap;
}


.sv-on-demand__hero-space-label--one {
    top: 12%;
    left: 11%;
}


.sv-on-demand__hero-space-label--two {
    top: 27%;
    right: 6%;
}


.sv-on-demand__hero-space-label--three {
    right: 16%;
    bottom: 15%;
}


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

Mobile is not a reduced Desktop composition.

Structure:

Eyebrow
Title
Description
CTA
        ↓
Spatial Field
        ↓
Object / Coordinates

================================================
*/

@media (max-width: 767px) {

    .sv-on-demand__hero {
        min-height: 100svh;

        overflow: hidden;
    }


    .sv-on-demand__hero-inner {
        display: flex;

        flex-direction: column;

        align-items: stretch;
        justify-content: flex-start;

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

        padding:
            0 22px;

        box-sizing: border-box;
    }


    /*
    -----------------------------------------------
    Mobile Content
    -----------------------------------------------
    */

    .sv-on-demand__hero-content {
        width: 100%;

        max-width: none;

        padding:
            15svh 8px 0;

        box-sizing: border-box;
    }


    .sv-on-demand__hero-eyebrow {
        margin-bottom: 18px;

        font-size: 9px;

        letter-spacing: 0.21em;
    }


    /*
    -----------------------------------------------
    Mobile Title
    -----------------------------------------------
    */

    .sv-on-demand__hero-title {
        width: 100%;

        max-width: 100%;

        font-size:
            clamp(48px, 14.5vw, 68px);

        line-height: 0.91;

        letter-spacing: -0.055em;
    }


    .sv-on-demand__hero-title-line {
        white-space: normal;
    }


    .sv-on-demand__hero-title-line--primary {
        margin-top: 3px;
    }


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

    .sv-on-demand__hero-description {
        width: min(100%, 330px);

        margin-top: 24px;

        font-size: 14px;

        line-height: 1.58;

        letter-spacing: -0.01em;
    }


    /*
    -----------------------------------------------
    Mobile CTA
    -----------------------------------------------
    */

    .sv-on-demand__hero-explore {
        gap: 12px;

        margin-top: 30px;

        font-size: 9px;

        letter-spacing: 0.17em;
    }


    .sv-on-demand__hero-explore-icon {
        width: 30px;
        height: 30px;

        opacity: 0.74;
    }


    /*
    -----------------------------------------------
    Mobile Spatial Field
    -----------------------------------------------

    The field moves below the copy instead of
    competing with it.

    -----------------------------------------------
    */

    .sv-on-demand__hero-space {
        position: relative;

        width: calc(100% + 44px);

        min-height: 0;

        height: 46svh;

        margin-left: -22px;

        margin-top: auto;

        aspect-ratio: auto;

        perspective: 1100px;
    }


    /*
    -----------------------------------------------
    Mobile Grid
    -----------------------------------------------
    */

    .sv-on-demand__hero-space-grid {
        inset:
            4% -4% 5% -4%;

        opacity: 0.12;

        background-size:
            25% 25%;

        transform:
            perspective(850px) rotateX(60deg) rotateZ(-12deg) translateY(8%);
    }


    /*
    -----------------------------------------------
    Mobile Planes
    -----------------------------------------------
    */

    .sv-on-demand__hero-space-plane--back {
        top: 8%;
        right: 1%;

        width: 76%;
        height: 74%;

        opacity: 0.13;

        transform:
            rotateY(-21deg) rotateX(7deg) rotateZ(7deg);
    }


    .sv-on-demand__hero-space-plane--middle {
        right: 8%;
        bottom: 8%;

        width: 72%;
        height: 51%;

        opacity: 0.08;

        transform:
            rotateY(15deg) rotateX(-7deg) rotateZ(-8deg);
    }


    /*
    -----------------------------------------------
    Mobile Object
    -----------------------------------------------
    */

    .sv-on-demand__hero-space-object {
        top: 50%;
        left: 51%;

        width:
            clamp(170px, 48vw, 210px);

        height:
            clamp(170px, 48vw, 210px);

        transform:
            translate(-50%, -50%) rotate(-9deg);
    }


    /*
    -----------------------------------------------
    Mobile Object Lines
    -----------------------------------------------
    */

    .sv-on-demand__hero-object-line--one {
        width: 88px;
    }


    .sv-on-demand__hero-object-line--two {
        width: 72px;
    }


    /*
    -----------------------------------------------
    Mobile Nodes
    -----------------------------------------------
    */

    .sv-on-demand__hero-space-node {
        width: 4px;
        height: 4px;
    }


    .sv-on-demand__hero-space-node--one {
        top: 13%;
        right: 12%;
    }


    .sv-on-demand__hero-space-node--two {
        right: 5%;
        bottom: 19%;
    }


    .sv-on-demand__hero-space-node--three {
        left: 8%;
        bottom: 24%;
    }


    /*
    -----------------------------------------------
    Mobile Labels
    -----------------------------------------------
    */

    .sv-on-demand__hero-space-label {
        font-size: 7px;

        letter-spacing: 0.14em;
    }


    .sv-on-demand__hero-space-label--one {
        top: 9%;
        left: 8%;
    }


    .sv-on-demand__hero-space-label--two {
        top: 23%;
        right: 4%;
    }


    .sv-on-demand__hero-space-label--three {
        right: 12%;
        bottom: 12%;
    }

}


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

@media (max-width: 390px) {

    .sv-on-demand__hero-inner {
        padding:
            0 18px;
    }


    .sv-on-demand__hero-content {
        padding:
            13svh 6px 0;
    }


    .sv-on-demand__hero-title {
        font-size:
            clamp(45px, 14.7vw, 60px);
    }


    .sv-on-demand__hero-description {
        max-width: 300px;

        margin-top: 22px;

        font-size: 13px;
    }


    .sv-on-demand__hero-explore {
        margin-top: 27px;
    }


    .sv-on-demand__hero-space {
        width: calc(100% + 36px);

        margin-left: -18px;

        height: 43svh;
    }


    .sv-on-demand__hero-space-object {
        width: 172px;
        height: 172px;
    }


    .sv-on-demand__hero-space-label {
        font-size: 6.5px;
    }

}


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

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

    .sv-on-demand__hero-explore-label::after,
    .sv-on-demand__hero-explore-icon {
        transition: none;
    }

}