@font-face {
    font-family: FontemaggiDisplay;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/bebas-neue-latin.woff2') format('woff2');
}

/* Locomotive owns smooth navigation; ScrollTrigger's measurement writes stay instant. */
html.home4-scroll-intent,
html.home4-motion-active { scroll-behavior: auto !important; }

/* Native sticky keeps the video and type in one scene, including touch browsers. */
body.reference-home4 .home4-scroll-scene {
    position: relative;
    height: 100vh;
    height: 100svh;
    background: #27464e;
}
html.home4-scroll-intent body.reference-home4 .home4-scroll-scene,
body.reference-home4 .home4-scroll-scene.is-video-loading,
body.reference-home4 .home4-scroll-scene.is-video-ready,
body.reference-home4 .home4-scroll-scene.has-scroll-story {
    height: 340vh;
    height: 340svh;
}
body.reference-home4 .home4-hero.home4-video-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    isolation: isolate;
}
body.reference-home4 .home4-video-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}
body.reference-home4 #home4-scroll-video { opacity: 0; }
body.reference-home4 .home4-video-poster { opacity: 1; }
body.reference-home4 .is-video-ready #home4-scroll-video { opacity: 1; }
body.reference-home4 .is-video-ready .home4-video-poster { opacity: 0; }
body.reference-home4 .home4-video-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #09212e66 0%, #09212e1a 60%, transparent), linear-gradient(180deg, #071f3333, transparent 35%, #061c2c59);
    pointer-events: none;
}
body.reference-home4 .home4-video-content {
    position: relative;
    max-width: 1280px;
    width: calc(100% - 160px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 100px 0 90px;
    pointer-events: none;
}
body.reference-home4 .home4-story {
    width: min(100%, 880px);
    color: #fff;
    text-shadow: 0 2px 12px #061c2c80, 0 6px 36px #061c2c40;
}
body.reference-home4 .home4-story-chapters { display: grid; }
body.reference-home4 .home4-story-chapter { grid-area: 1 / 1; align-self: start; }
body.reference-home4 .home4-story-chapter:not(:first-child) { opacity: 0; visibility: hidden; }
body.reference-home4 .home4-story-kicker {
    display: block;
    margin-bottom: 24px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .19em;
    line-height: 1.5;
    color: #fff;
}
body.reference-home4 .home4-story-title {
    color: #fff;
    font-family: FontemaggiDisplay, Impact, 'Arial Narrow', sans-serif;
    font-size: clamp(76px, 8.8vw, 138px);
    line-height: .96;
    letter-spacing: .008em;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 0 26px;
}
body.reference-home4 .home4-story-line { display: block; }
body.reference-home4 .home4-story-description {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: .01em;
    margin: 0;
}
body.reference-home4 .home4-video-actions {
    display: flex;
    gap: 30px;
    max-width: 340px;
    margin-top: 28px;
    pointer-events: auto;
}
body.reference-home4 .home4-video-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 18px;
    min-height: 48px;
    padding: 6px 0 12px;
    border: 0;
    border-bottom: 1px solid #ffffffa6;
    border-radius: 0;
    color: #fff;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-shadow: inherit;
    white-space: nowrap;
}
body.reference-home4 .home4-video-action span {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid #ffffff80;
    border-radius: 50%;
    font-size: 16px;
    transition: transform .2s, background .2s;
}
body.reference-home4 .home4-video-action:hover { color: #fff; border-color: #fff; background: transparent; }
body.reference-home4 .home4-video-action:hover span { transform: translate(2px, -2px); background: #ffffff26; }
body.reference-home4 .home4-video-action:focus-visible { outline-color: #fff; outline-offset: 6px; }
body.reference-home4 .home4-video-stage .home4-scroll-cue {
    left: max(80px, calc((100% - 1280px) / 2));
    bottom: max(34px, env(safe-area-inset-bottom));
    transform: none;
    flex-direction: row;
    gap: 15px;
    min-height: 44px;
    font-size: 9px;
    letter-spacing: .14em;
    text-shadow: 0 2px 10px #061c2c;
}
body.reference-home4 .home4-video-meter {
    position: absolute;
    right: max(80px, calc((100% - 1280px) / 2));
    bottom: 49px;
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: none;
    color: #fff;
    text-shadow: 0 2px 10px #061c2c;
}
body.reference-home4 .home4-video-progress-label { font-size: 10px; font-variant-numeric: tabular-nums; min-width: 30px; }
body.reference-home4 .home4-video-track { display: block; width: 150px; height: 1px; background: #ffffff66; }
body.reference-home4 .home4-video-progress { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
body.reference-home4 .home4-scroll-scene:not(.has-scroll-story):not(.is-video-ready):not(.is-video-loading) .home4-video-meter { visibility: hidden; }
body.reference-home4 .home4-heading-line { display: block; }

@media (max-width: 991px) {
    body.reference-home4 .home4-video-content { width: calc(100% - 80px); }
    body.reference-home4 .home4-story-title { font-size: clamp(70px, 10.2vw, 100px); }
    body.reference-home4 .home4-video-meter { right: 40px; }
    body.reference-home4 .home4-video-stage .home4-scroll-cue { left: 40px; }
}
@media (max-width: 767px) {
    html.home4-scroll-intent body.reference-home4 .home4-scroll-scene,
    body.reference-home4 .home4-scroll-scene.is-video-loading,
    body.reference-home4 .home4-scroll-scene.is-video-ready,
    body.reference-home4 .home4-scroll-scene.has-scroll-story { height: 300vh; height: 300svh; }
    body.reference-home4 .home4-video-media { object-position: 58% center; }
    body.reference-home4 .home4-video-shade { background: linear-gradient(180deg, #072b4226, #07253826 26%, #071f3659 65%, #071f366b); }
    body.reference-home4 .home4-video-content {
        width: calc(100% - 48px);
        align-items: center;
        padding: 106px 0 94px;
    }
    body.reference-home4 .home4-story-kicker { font-size: 8px; letter-spacing: .15em; margin-bottom: 20px; }
    body.reference-home4 .home4-story-title { font-size: clamp(48px, 14.2vw, 90px); line-height: 1.01; margin-bottom: 22px; }
    body.reference-home4 .home4-story-description { font-size: 13px; line-height: 1.65; }
    body.reference-home4 .home4-video-actions { gap: 24px; max-width: 320px; margin-top: 22px; }
    body.reference-home4 .home4-video-action { font-size: 12px; gap: 10px; }
    body.reference-home4 .home4-video-stage .home4-scroll-cue { left: 24px; bottom: max(23px, env(safe-area-inset-bottom)); font-size: 8px; letter-spacing: .1em; gap: 10px; }
    body.reference-home4 .home4-video-meter { position: static; display: block; }
    body.reference-home4 .home4-video-progress-label { position: absolute; right: 24px; bottom: max(39px, calc(env(safe-area-inset-bottom) + 16px)); }
    body.reference-home4 .home4-video-track { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; }
}
@media (max-width: 359px) {
    body.reference-home4 .home4-video-content { width: calc(100% - 40px); }
    body.reference-home4 .home4-story-title { font-size: 46px; }
    body.reference-home4 .home4-story-kicker { font-size: 7px; letter-spacing: .1em; }
    body.reference-home4 .home4-story-description { font-size: 12px; }
    body.reference-home4 .home4-video-stage .home4-scroll-cue { left: 20px; font-size: 7px; }
    body.reference-home4 .home4-video-progress-label { right: 20px; }
}
@media (max-height: 600px) and (min-width: 480px) {
    body.reference-home4 .home4-video-content { padding-top: 80px; padding-bottom: 60px; width: calc(100% - 80px); }
    body.reference-home4 .home4-story-title { font-size: clamp(32px, 10vh, 60px); margin-bottom: 10px; }
    body.reference-home4 .home4-story-kicker { margin-bottom: 10px; font-size: 8px; }
    body.reference-home4 .home4-story-description { font-size: 11px; line-height: 1.5; }
    body.reference-home4 .home4-video-actions { margin-top: 10px; gap: 22px; }
    body.reference-home4 .home4-video-action { min-height: 44px; font-size: 11px; padding-bottom: 6px; }
    body.reference-home4 .home4-video-stage .home4-scroll-cue { left: 40px; bottom: 5px; font-size: 8px; }
    body.reference-home4 .home4-video-meter { bottom: 20px; }
    body.reference-home4 .home4-video-progress-label { bottom: 20px; }
}
body.reference-home4 .home4-scroll-scene.is-static-story { height: 100vh; height: 100svh; }
@media (prefers-reduced-motion: reduce) {
    body.reference-home4 .home4-scroll-scene.is-video-loading,
    body.reference-home4 .home4-scroll-scene.is-video-ready,
    body.reference-home4 .home4-scroll-scene.has-scroll-story { height: 100vh; height: 100svh; }
    body.reference-home4 #home4-scroll-video { opacity: 0; }
    body.reference-home4 .is-video-ready .home4-video-poster { opacity: 1; }
    body.reference-home4 .home4-video-meter { display: none; }
    body.reference-home4 .home4-video-action span { transition: none; }
}
