#hero-animation-track {
    --hero-progress: 0;
    height: 520vh !important;
    background: #050505 !important;
}

body.hero-frames-preparing {
    overflow: hidden !important;
}

[data-hero-viewport] {
    isolation: isolate;
    background: #050505;
}

[data-hero-viewport]::before,
[data-hero-viewport]::after {
    content: '';
    position: absolute;
    z-index: 12;
    right: 0;
    left: 0;
    height: clamp(70px, 12vh, 130px);
    pointer-events: none;
}

[data-hero-viewport]::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(3,3,3,.82), rgba(3,3,3,.2), transparent);
}

[data-hero-viewport]::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(3,3,3,.95), rgba(3,3,3,.38), transparent);
}

#hero-frames-container {
    overflow: hidden;
    background: #050505;
}

#hero-frames-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 48%, rgba(212,175,55,.045), transparent 36%),
        linear-gradient(100deg, rgba(0,0,0,.18), transparent 30%, transparent 72%, rgba(0,0,0,.2));
    mix-blend-mode: screen;
}

#hero-frames-container > img,
#hero-poster img,
.hero-scroll-video {
    filter: saturate(.92) contrast(1.06) brightness(.92);
    transform: scale(calc(1 + (var(--hero-progress) * .025)));
    transform-origin: center;
    will-change: opacity, transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.hero-scroll-video {
    display: none;
    z-index: 2;
    background: #050505;
    transition: opacity 160ms ease;
    pointer-events: none;
}

.hero-frame-buffer {
    background: #050505;
    /* Buffers swap atomically after decode; fading them can briefly expose
       the dark container between two scroll frames on some desktop GPUs. */
    transition: none;
    contain: paint;
    pointer-events: none;
}

.hero-frame-loader {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: #e2c56a;
    background: rgba(5, 5, 5, .88);
    backdrop-filter: blur(8px);
    transition: opacity 360ms ease, visibility 360ms ease;
}

.hero-frame-loader.is-ready {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-frame-loader__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.hero-frame-loader p,
.hero-frame-loader small {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .28em;
}

.hero-frame-loader small {
    color: rgba(255,255,255,.58);
    font-size: 8px;
}

.hero-frame-loader__track {
    width: min(190px, 52vw);
    height: 2px;
    overflow: hidden;
    background: rgba(255,255,255,.15);
}

.hero-frame-loader__track span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #ad791c, #f3cd61);
    transition: width 120ms linear;
}

.hero-tonal-overlay {
    background: linear-gradient(to bottom, rgba(4,4,4,.34), rgba(4,4,4,.04) 38%, rgba(4,4,4,.26) 68%, #050505 100%) !important;
}

.hero-vignette {
    background: radial-gradient(ellipse at center, transparent 24%, rgba(0,0,0,.18) 52%, rgba(0,0,0,.66) 100%) !important;
}

#hero-text {
    max-width: none !important;
    padding-inline: clamp(20px, 6vw, 96px) !important;
}

.hero-slide {
    padding-inline: 20px;
    will-change: opacity, transform, filter;
    transition: opacity 80ms linear, transform 80ms linear, filter 80ms linear !important;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.hero-slide > p:first-child {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(16px, 3vh, 28px) !important;
    color: #e2c56a !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-shadow: 0 2px 18px rgba(0,0,0,.85);
}

.hero-slide > p:first-child::before,
.hero-slide > p:first-child::after {
    content: '';
    width: clamp(20px, 4vw, 52px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.68));
}

.hero-slide > p:first-child::after {
    transform: rotate(180deg);
}

.hero-slide h1 {
    max-width: 1100px;
    color: rgba(255,252,244,.82) !important;
    font-size: clamp(3.2rem, 6.4vw, 6.5rem) !important;
    font-weight: 500;
    line-height: .92 !important;
    letter-spacing: -.055em !important;
    text-wrap: balance;
    text-shadow: 0 10px 44px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.08);
}

#hero-slide-2 h1 {
    font-size: clamp(4rem, 8vw, 8rem) !important;
}

#hero-scroll {
    bottom: clamp(28px, 5vh, 52px) !important;
}

#hero-play-btn {
    min-height: 46px;
    padding-inline: 24px !important;
    border-color: rgba(212,175,55,.5) !important;
    background: rgba(7,7,7,.74) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,.36), inset 0 0 0 1px rgba(255,255,255,.025) !important;
}

#hero-play-btn:hover {
    color: #0a0a0a !important;
    background: #d4af37 !important;
}

#hero-progress-fill {
    box-shadow: 0 0 14px rgba(212,175,55,.55);
}

.hero-mobile-progress {
    position: absolute;
    z-index: 31;
    top: 50%;
    right: 14px;
    display: none;
    flex-direction: column;
    gap: 9px;
    transform: translateY(-50%);
}

.hero-mobile-progress span {
    width: 3px;
    height: 18px;
    border-radius: 99px;
    background: rgba(255,255,255,.2);
    transition: height 260ms ease, background-color 260ms ease, box-shadow 260ms ease;
}

.hero-mobile-progress span.is-active {
    height: 30px;
    background: #d4af37;
    box-shadow: 0 0 12px rgba(212,175,55,.5);
}

@media (max-width: 767px) {
    #hero-animation-track {
        height: 430vh !important;
    }

    [data-hero-viewport]::before {
        height: 100px;
        background: linear-gradient(to bottom, rgba(3,3,3,.72), transparent);
    }

    [data-hero-viewport]::after {
        height: 190px;
    }

    #hero-frames-container > img,
    #hero-poster img,
    .hero-scroll-video {
        filter: saturate(.94) contrast(1.05) brightness(.9);
    }

    .hero-scroll-video--desktop {
        display: none;
    }

    .hero-scroll-video--mobile {
        display: none;
    }

    .hero-frame-buffer {
        display: block;
    }

    #hero-text {
        padding: 72px 22px 150px !important;
    }

    .hero-slide {
        padding: 74px 24px 150px;
        transition-duration: 60ms !important;
    }

    .hero-slide > p:first-child {
        font-size: 8px !important;
        letter-spacing: .38em !important;
    }

    .hero-slide h1 {
        max-width: 350px;
        font-size: clamp(2.25rem, 10.7vw, 3.35rem) !important;
        line-height: .94 !important;
        letter-spacing: -.05em !important;
    }

    #hero-slide-2 h1 {
        font-size: clamp(3rem, 13vw, 4.1rem) !important;
    }

    #hero-scroll {
        bottom: calc(82px + env(safe-area-inset-bottom)) !important;
        gap: 10px !important;
    }

    #hero-play-btn {
        min-height: 44px;
        padding: 10px 18px !important;
        font-size: 9px !important;
        letter-spacing: .19em !important;
    }

    .hero-mobile-progress {
        display: flex;
    }
}

@media (max-height: 690px) and (max-width: 767px) {
    #hero-text,
    .hero-slide {
        padding-bottom: 130px !important;
    }

    #hero-scroll {
        bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    }

}

@media (prefers-reduced-motion: reduce) {
    #hero-frames-container > img,
    #hero-poster img,
    .hero-scroll-video {
        transform: none !important;
    }
}
