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

Space Vanta Theme 1.0

Module:
Hero

File:
public/hero/hero.css

Version:
1.4 Spatial Editorial Content Typography

Purpose:
Hero base visual system

Responsibilities:
- Hero frame
- Media
- Content positioning
- Typography
- CTA
- Responsive layout
- Title composition foundation
- Multilingual title wrapping

Motion:
Handled by hero-motion.css

Carousel:
Handled by hero-carousel.css

Navigation:
Handled by navigation/arrow.css

Cover:
Handled by hero-cover.css

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

/*
---------------------------------
01. Hero Frame
---------------------------------
*/

.sv-hero {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background:
        var(--sv-bg);

}


/*
---------------------------------
02. Viewport
---------------------------------
*/

.sv-hero__viewport {

    position: relative;

    width: 100%;

    height: 100%;

    overflow: hidden;

}


/*
---------------------------------
03. Media
---------------------------------
*/

.sv-hero__media {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    overflow: hidden;

    z-index: 0;

}


.sv-hero__image {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: 55% center;

}

/*
---------------------------------
04. Desktop / Mobile Image
---------------------------------
*/

.sv-hero__image--desktop {

    display: block;

}


.sv-hero__image--mobile {

    display: none;

}


/*
---------------------------------
05. Content
---------------------------------
*/

.sv-hero__content {

    position: absolute;

    z-index: 6;

    pointer-events: none;

}


.sv-hero__content--desktop {

    display: block;

}


.sv-hero__content--mobile {

    display: none;

}


/*
---------------------------------
06. Desktop Content Position
---------------------------------
*/

@media (min-width: 768px) {

    .sv-hero__content {

        left:
            clamp(48px,
                7vw,
                120px);

        top: 50%;

        width:
            min(calc(100% - 96px),
                460px);

        max-width: 460px;

        transform:
            translateY(-50%);

    }

}


/*
---------------------------------
07. Content Inner
---------------------------------
*/

.sv-hero__content-inner {

    width: 100%;

}


/*
---------------------------------
08. Eyebrow
---------------------------------
*/

.sv-hero__eyebrow {

    margin: 0;

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

    font-size: 11px;

    line-height: 1.3;

    font-weight:
        var(--sv-weight-medium);

    letter-spacing:
        .16em;

    text-transform: uppercase;

    color:
        var(--sv-text);

    opacity: .82;

}


/*
---------------------------------
09. Title
---------------------------------

Title width is controlled by visual
space rather than character count.

This is important for multilingual
Hero content.

Chinese:
- naturally supports character wrapping

English:
- preserves whole words
- avoids narrow "one word per line"
  compositions

Explicit Title Line 1 / Line 2 remain
the primary editorial composition method.

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

.sv-hero__title {

    margin: 17px 0 0;

    max-width:
        min(100%, 520px);

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

    font-size:
        clamp(48px,
            5.4vw,
            78px);

    line-height: .94;

    font-weight:
        var(--sv-weight-medium);

    letter-spacing:
        -.035em;

    color:
        var(--sv-text);

    overflow-wrap:
        normal;

    word-break:
        normal;

    white-space:
        normal;

}

/*
---------------------------------
10. Title Layout
---------------------------------

These layout classes now control
visual line width rather than
character count.

This prevents English words from
being forced into narrow "ch"
based containers.

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

.sv-hero__title--3-3 {

    max-width:
        420px;

}


.sv-hero__title--4-4 {

    max-width:
        520px;

}


.sv-hero__title--3-5 {

    max-width:
        560px;

}


.sv-hero__title--custom {

    max-width:
        none;

}


/*
---------------------------------
11. Explicit Title Lines
---------------------------------

Each backend title line is treated
as an editorial visual unit.

max-width prevents overflow on
smaller screens while width:max-content
allows English phrases to retain their
natural word grouping.

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

.sv-hero__title-line {

    display: block;

    width:
        max-content;

    max-width:
        100%;

    margin: 0;

    padding: 0;

}


/*
---------------------------------
12. Text
---------------------------------
*/

.sv-hero__text {

    max-width: 360px;

    margin: 24px 0 0;

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

    font-size: 15px;

    line-height: 1.6;

    font-weight:
        var(--sv-weight-regular);

    letter-spacing: .005em;

    color:
        var(--sv-text);

}

/*
---------------------------------
13. CTA
---------------------------------
*/

.sv-hero__button {

    pointer-events: auto;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 44px;

    margin-top: 28px;

    padding:
        0 17px;

    box-sizing: border-box;

    border:
        1px solid rgba(24, 26, 28, .34);

    border-radius: 2px;

    background:
        rgba(248, 247, 243, .88);

    color:
        var(--sv-text);

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

    font-size: 12px;

    line-height: 1;

    font-weight:
        var(--sv-weight-medium);

    letter-spacing: .03em;

    text-decoration: none;

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);

    box-shadow:
        0 3px 10px rgba(0, 0, 0, .045);

    transition:
        background-color .28s ease,
        border-color .28s ease,
        color .28s ease,
        transform .28s cubic-bezier(.22, .61, .36, 1),
        box-shadow .28s ease;

}


/*
---------------------------------
14. CTA Hover
---------------------------------
*/

.sv-hero__button:hover {

    background:
        rgba(255, 255, 255, .96);

    border-color:
        rgba(24, 26, 28, .52);

    color:
        var(--sv-text);

    transform:
        translateY(-1px);

    box-shadow:
        0 5px 14px rgba(0, 0, 0, .07);

}


/*
---------------------------------
15. CTA Active
---------------------------------
*/

.sv-hero__button:active {

    transform:
        translateY(0);

    background:
        rgba(239, 239, 235, .94);

}

/*
---------------------------------
16. CTA Focus
---------------------------------
*/

.sv-hero__button:focus-visible {

    outline:
        1px solid var(--sv-focus);

    outline-offset: 3px;

}


/*
---------------------------------
17. Important
---------------------------------

No generated arrow.

The button displays exactly the
text supplied by the backend.

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

.sv-hero__button::after {

    content: none;

}


/*
---------------------------------
18. Mobile
---------------------------------
*/

@media (max-width: 767px) {

    .sv-hero {

        aspect-ratio: 4 / 5;

    }


    .sv-hero__image--desktop {

        display: none;

    }


    .sv-hero__image--mobile {

        display: block;

        object-position: center center;

    }


    .sv-hero__content--desktop {

        display: none;

    }


    .sv-hero__content--mobile {

        display: block;

    }


    .sv-hero__content {

        left: 20px;

        right: 20px;

        bottom: 28px;

        width: auto;

        max-width: none;

    }


    .sv-hero__eyebrow {

        font-size: 10px;

        letter-spacing: .14em;

    }

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

    .sv-hero__title {

        max-width:
            min(100%, 340px);

        margin-top: 14px;

        font-size:
            clamp(44px,
                13vw,
                72px);

        line-height: .94;

        letter-spacing:
            -.035em;

    }


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

    .sv-hero__title--3-3 {

        max-width:
            300px;

    }


    .sv-hero__title--4-4 {

        max-width:
            340px;

    }


    .sv-hero__title--3-5 {

        max-width:
            350px;

    }


    .sv-hero__title--custom {

        max-width:
            none;

    }


    /*
    -----------------------------
    Mobile Explicit Lines
    -----------------------------
    */

    .sv-hero__title-line {

        width:
            max-content;

        max-width:
            100%;

    }


    /*
    -----------------------------
    Mobile Text
    -----------------------------
    */

    .sv-hero__text {

        max-width: 320px;

        margin-top: 18px;

        font-size: 15px;

        line-height: 1.55;

    }


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

    .sv-hero__button {

        min-height: 44px;

        margin-top: 22px;

        padding:
            0 16px;

    }

}

/*
---------------------------------
19. Reduced Motion
---------------------------------
*/

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

    .sv-hero__button {

        transition: none;

    }

}