/* Scroll-triggered cinematic hero */

.hero-boot-hint {
    font-family: var(--body-font);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 1.5rem;
    opacity: 0.85;
}

.hero-scroll {
    position: relative;
    background: #191919;
}

.hero-scroll__frame {
    position: relative;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    isolation: isolate;
}

.hero-scroll__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    background: #191919;
}

.hero-scroll__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        108deg,
        rgba(12, 14, 18, 0.62) 0%,
        rgba(12, 14, 18, 0.28) 42%,
        rgba(12, 14, 18, 0.08) 68%,
        transparent 100%
    );
    transition: background 0.6s ease-out;
}

.hero-scroll.is-warm .hero-scroll__overlay {
    background: linear-gradient(
        108deg,
        rgba(28, 20, 12, 0.58) 0%,
        rgba(32, 22, 14, 0.24) 42%,
        rgba(40, 28, 16, 0.1) 68%,
        transparent 100%
    );
}

.hero-scroll__copy {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: clamp(5rem, 12vh, 8rem) clamp(1.5rem, 6vw, 5rem) clamp(3rem, 8vh, 5rem);
    pointer-events: none;
}

.hero-phase {
    position: absolute;
    left: clamp(1.5rem, 6vw, 5rem);
    right: clamp(1.5rem, 6vw, 5rem);
    bottom: clamp(3rem, 8vh, 5rem);
    max-width: 38rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.7s ease-out,
        transform 0.7s ease-out,
        visibility 0.7s;
}

.hero-phase.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-phase__eyebrow {
    font-family: var(--body-font);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.85rem;
}

.hero-phase__headline {
    font-family: var(--heading-font);
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-wrap: balance;
    margin-bottom: 0.75rem;
    opacity: 1;
    animation: none;
    display: block;
    padding: 0;
}

.hero-phase__headline::after {
    display: none;
}

.hero-phase__sub {
    font-family: var(--body-font);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    text-wrap: pretty;
    max-width: 34ch;
}

@media (prefers-reduced-motion: reduce) {
    .hero-phase {
        transition: none;
    }
}

@media (max-width: 768px) {
    .hero-scroll__copy {
        align-items: flex-end;
        padding-bottom: clamp(4rem, 10vh, 5.5rem);
    }

    .hero-phase__headline {
        font-size: clamp(1.85rem, 8vw, 2.75rem);
    }
}
