/* =========================================================
   PRAAVYAX CINEMATIC HERO
   ========================================================= */

.hero {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 680px;
    overflow: hidden;
    background: #07111f;
    color: #ffffff;
}

/* ---------------------------------------------------------
   VIDEO
   --------------------------------------------------------- */

.hero-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

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

    z-index: 0;
}

/* ---------------------------------------------------------
   GENERAL OVERLAY
   --------------------------------------------------------- */

.hero-overlay {
    position: absolute;
    inset: 0;

    background: rgba(4, 10, 18, 0.18);

    z-index: 1;
    pointer-events: none;
}

/* ---------------------------------------------------------
   BOTTOM CINEMATIC GRADIENT
   --------------------------------------------------------- */

.hero-bottom-gradient {
    position: absolute;
    inset: 0;

    /* Bottom stop is the site's --bg (#080f1c), fully opaque, so the hero
       hands off to #home's revealed background canvas with no seam. */
    background:
        linear-gradient(
            to top,
            #080f1c 0%,
            rgba(8, 15, 28, 0.88) 12%,
            rgba(8, 15, 28, 0.55) 28%,
            rgba(8, 15, 28, 0.22) 46%,
            rgba(8, 15, 28, 0.04) 66%,
            transparent 100%
        );

    z-index: 2;
    pointer-events: none;
}

/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */

.hero-nav {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;

    padding: 42px clamp(32px, 7vw, 110px);

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

    z-index: 5;
}

.hero-logo {
    color: #ffffff;
    text-decoration: none;

    font-family: "DM Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;

    letter-spacing: 0.12em;
}

.hero-menu {
    display: flex;
    align-items: center;
    gap: clamp(28px, 3vw, 55px);
}

.hero-menu a {
    position: relative;

    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;

    font-family: "DM Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 500;

    letter-spacing: 0.08em;

    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}

.hero-menu a:hover {
    color: #ffffff;
}

/* ---------------------------------------------------------
   HERO CONTENT
   --------------------------------------------------------- */

.hero-content {
    position: absolute;
    left: clamp(32px, 7vw, 110px);
    bottom: clamp(65px, 10vh, 120px);

    z-index: 4;

    width: min(900px, 80vw);
}

/* ---------------------------------------------------------
   HEADING
   --------------------------------------------------------- */

.hero-heading {
    display: flex;
    flex-direction: column;

    font-family: "DM Sans", sans-serif;

    font-size: clamp(3.5rem, 6.5vw, 7rem);
    font-weight: 400;

    line-height: 0.94;
    letter-spacing: -0.055em;

    color: #ffffff;
}

.heading-fixed {
    display: block;
}

.heading-changing {
    position: relative;

    display: grid;

    min-height: 1em;

    overflow: hidden;
}

.heading-line {
    grid-area: 1 / 1;

    display: block;

    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.45s ease,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);

    white-space: nowrap;
}

.heading-line.active {
    opacity: 1;

    transform: translateY(0);
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .hero {
        min-height: 600px;
    }

    .hero-nav {
        padding: 28px 24px;
    }

    .hero-menu {
        display: none;
    }

    .hero-content {
        left: 24px;
        bottom: 60px;

        width: calc(100% - 48px);
    }

    .hero-heading {
        font-size: clamp(3rem, 13vw, 5rem);
        line-height: 0.96;
    }

    .heading-line {
        white-space: normal;
    }
}