/*
 * Alex Hero Engine v1.4.0
 * Independent desktop/mobile art direction + placement controls.
 */

.am-ref-hero,
.am-ref-hero * {
    box-sizing: border-box;
}

.am-ref-hero {
    --am-ticker-bg: #181817;
    --am-ticker-text: #f3f1ec;
    --am-hero-text: #f3f1ec;
    --am-press-bg: #111110;
    --am-press-text: #f3f1ec;
    --am-accent: #f3f1ec;

    --am-image-position-desktop: center 49%;
    --am-image-position-mobile: 38% 50%;
    --am-overlay-desktop: .82;
    --am-overlay-mobile: .74;

    --am-hero-vh-desktop: 73;
    --am-hero-vh-mobile: 92;

    --am-content-left-desktop: 61px;
    --am-content-top-desktop: 92px;
    --am-content-width-desktop: 570px;
    --am-copy-width-desktop: 480px;

    --am-content-left-mobile: 18px;
    --am-content-top-mobile: 58px;
    --am-content-width-mobile: 350px;
    --am-copy-width-mobile: 335px;

    --am-pointer-x: 75%;
    --am-pointer-y: 30%;
    --am-parallax-x: 0px;
    --am-parallax-y: 0px;

    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: #111110;
    color: var(--am-hero-text);
    isolation: isolate;
}

.am-ref-hero a { color: inherit; }

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */
.am-ref-hero__ticker {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 41px;
    overflow: hidden;
    background: var(--am-ticker-bg);
    color: var(--am-ticker-text);
    border-bottom: 1px solid rgba(243,241,236,.15);
    white-space: nowrap;
}

.am-ref-hero__ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    height: 100%;
    animation: amHeroTicker 34s linear infinite;
    will-change: transform;
}

.am-ref-hero__ticker-item,
.am-ref-hero__ticker-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 100%;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.am-ref-hero__ticker-item { padding: 0 38px 0 22px; }

.am-ref-hero__ticker-star {
    width: 18px;
    padding: 0;
    opacity: .72;
    font-size: 11px;
    animation: amHeroStar 3.8s ease-in-out infinite;
}

.am-ref-hero__ticker:hover .am-ref-hero__ticker-track {
    animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   Responsive image stage
   -------------------------------------------------------------------------- */
.am-ref-hero__visual {
    position: relative;
    z-index: 1;
    width: 100%;
    height: calc(var(--am-hero-vh-desktop) * 1vh);
    min-height: 640px;
    max-height: 1080px;
    overflow: hidden;
    background: #2a2927;
    border-bottom: 1px solid rgba(243,241,236,.78);
}

.am-ref-hero__media {
    position: absolute;
    inset: -14px;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translate3d(var(--am-parallax-x), var(--am-parallax-y), 0) scale(1.035);
    transform-origin: center;
    will-change: transform;
    transition: transform .2s ease-out;
}

.am-ref-hero__media--desktop {
    display: block;
    background-position: var(--am-image-position-desktop);
}

.am-ref-hero__media--mobile {
    display: none;
    background-position: var(--am-image-position-mobile);
}

/* Subtle pointer light — desktop only. */
.am-ref-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
        420px circle at var(--am-pointer-x) var(--am-pointer-y),
        rgba(255,255,255,.075),
        rgba(255,255,255,.025) 36%,
        transparent 72%
    );
    mix-blend-mode: soft-light;
    opacity: .72;
}

.am-ref-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(8,8,7,var(--am-overlay-desktop)) 0%,
            rgba(8,8,7,calc(var(--am-overlay-desktop) * .96)) 20%,
            rgba(8,8,7,calc(var(--am-overlay-desktop) * .76)) 34%,
            rgba(8,8,7,calc(var(--am-overlay-desktop) * .40)) 48%,
            rgba(8,8,7,calc(var(--am-overlay-desktop) * .12)) 62%,
            rgba(8,8,7,0) 78%
        ),
        linear-gradient(
            0deg,
            rgba(8,8,7,.42) 0%,
            rgba(8,8,7,.10) 31%,
            rgba(8,8,7,.04) 100%
        );
}


/* --------------------------------------------------------------------------
   Content art direction
   Desktop and mobile positioning are independent from image positioning.
   -------------------------------------------------------------------------- */
.am-ref-hero__content {
    position: absolute;
    z-index: 4;
    left: var(--am-content-left-desktop);
    top: var(--am-content-top-desktop);
    width: min(
        var(--am-content-width-desktop),
        calc(100% - var(--am-content-left-desktop) - 28px)
    );
    max-width: var(--am-content-width-desktop);
    color: var(--am-hero-text);
}

.am-ref-hero__eyebrow-wrap {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 27px;
    opacity: 0;
    transform: translateY(7px);
}

.am-ref-hero__eyebrow-line {
    display: block;
    width: 24px;
    height: 1px;
    flex: 0 0 24px;
    background: var(--am-accent);
    opacity: .62;
    transform: scaleX(0);
    transform-origin: left center;
}

.am-ref-hero__eyebrow {
    margin: 0 !important;
    color: inherit !important;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.am-ref-hero__title {
    display: block;
    width: 100%;
    margin: 0 !important;
    color: inherit !important;
    font-family: inherit;
    font-size: clamp(78px, 5.25vw, 100px);
    font-weight: 900;
    font-style: normal;
    line-height: .82;
    letter-spacing: -.065em;
    text-transform: uppercase;
    text-wrap: nowrap;
}

.am-ref-hero__title-line {
    display: block;
    overflow: hidden;
    padding: .04em .08em .02em 0;
    margin: -.04em -.08em -.02em 0;
}

.am-ref-hero__title-text {
    display: block;
    transform: translateY(112%);
    opacity: .08;
    will-change: transform, opacity;
}

.am-ref-hero__body-copy {
    width: min(100%, var(--am-copy-width-desktop));
    max-width: var(--am-copy-width-desktop);
    margin-top: 31px;
    opacity: 0;
    transform: translateY(12px);
}

.am-ref-hero__description,
.am-ref-hero__supporting {
    margin: 0 !important;
    color: inherit !important;
    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.48;
    letter-spacing: -.025em;
}

.am-ref-hero__supporting { margin-top: 13px !important; }

/* CTA */
.am-ref-hero__cta {
    --am-cta-x: 0px;
    --am-cta-y: 0px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: 306px;
    min-height: 63px;
    margin-top: 29px;
    padding: 0 26px !important;
    background: rgba(8,8,7,.16) !important;
    color: var(--am-hero-text) !important;
    border: 1px solid rgba(243,241,236,.95) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase !important;
    opacity: 0;
    transform: translate3d(var(--am-cta-x), calc(12px + var(--am-cta-y)), 0);
    transition: color .32s ease, border-color .32s ease, transform .16s ease-out, opacity .55s ease;
}

.am-ref-hero__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--am-hero-text);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .34s cubic-bezier(.22,.61,.36,1);
}

.am-ref-hero__cta-label,
.am-ref-hero__cta-arrow { position: relative; z-index: 1; }

.am-ref-hero__cta-arrow {
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    transition: transform .25s ease;
}

.am-ref-hero__cta:hover,
.am-ref-hero__cta:focus-visible {
    color: #111110 !important;
    border-color: var(--am-hero-text) !important;
}

.am-ref-hero__cta:hover::before,
.am-ref-hero__cta:focus-visible::before { transform: scaleX(1); }

.am-ref-hero__cta:hover .am-ref-hero__cta-arrow,
.am-ref-hero__cta:focus-visible .am-ref-hero__cta-arrow {
    transform: translateX(5px);
}

.am-ref-hero__cta:focus-visible {
    outline: 2px solid var(--am-hero-text);
    outline-offset: 4px;
}

.am-ref-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 16px;
    margin-top: 17px;
    opacity: 0;
    transform: translateY(8px);
    color: rgba(243,241,236,.66);
    font-family: inherit;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.am-ref-hero__meta-divider {
    width: 13px;
    height: 1px;
    background: var(--am-accent);
    opacity: .35;
}

.am-ref-hero__scroll {
    position: absolute;
    right: 28px;
    bottom: 26px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(243,241,236,.58);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.am-ref-hero__scroll-label {
    font-family: inherit;
    font-size: 8px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.am-ref-hero__scroll-line {
    position: relative;
    display: block;
    width: 1px;
    height: 55px;
    overflow: hidden;
    background: rgba(243,241,236,.22);
}

.am-ref-hero__scroll-line span {
    position: absolute;
    top: -50%;
    left: 0;
    width: 1px;
    height: 50%;
    background: var(--am-accent);
    animation: amHeroScroll 2.1s cubic-bezier(.45,0,.55,1) infinite;
}

/* Press strip */
.am-ref-hero__press {
    position: relative;
    z-index: 6;
    width: 100%;
    height: 79px;
    background: var(--am-press-bg);
    color: var(--am-press-text);
    border-bottom: 1px solid rgba(243,241,236,.8);
}

.am-ref-hero__press-inner {
    display: flex;
    align-items: center;
    width: min(100%, 1384px);
    height: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

.am-ref-hero__press-label {
    flex: 0 0 auto;
    margin-right: 52px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.am-ref-hero__press-brands {
    display: flex;
    align-items: center;
    height: 100%;
}

.am-ref-hero__press-brand {
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-family: inherit;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.035em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity .2s ease, letter-spacing .25s ease;
}

.am-ref-hero__press-brand:hover {
    opacity: .8;
    letter-spacing: -.015em;
}

.am-ref-hero__press-divider {
    display: block;
    width: 1px;
    height: 24px;
    margin: 0 47px;
    background: rgba(243,241,236,.20);
}

/* Intro sequence */
.am-ref-hero.am-is-booting .am-ref-hero__media {
    transform: translate3d(0,0,0) scale(1.065);
}

.am-ref-hero.am-is-ready .am-ref-hero__media {
    transition: transform 1.35s cubic-bezier(.22,.61,.36,1);
}

.am-ref-hero.am-is-ready .am-ref-hero__eyebrow-wrap {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease .10s, transform .5s ease .10s;
}

.am-ref-hero.am-is-ready .am-ref-hero__eyebrow-line {
    transform: scaleX(1);
    transition: transform .7s cubic-bezier(.22,.61,.36,1) .12s;
}

.am-ref-hero.am-is-ready .am-ref-hero__title-line:nth-child(1) .am-ref-hero__title-text { transition-delay: .12s; }
.am-ref-hero.am-is-ready .am-ref-hero__title-line:nth-child(2) .am-ref-hero__title-text { transition-delay: .19s; }
.am-ref-hero.am-is-ready .am-ref-hero__title-line:nth-child(3) .am-ref-hero__title-text { transition-delay: .26s; }

.am-ref-hero.am-is-ready .am-ref-hero__title-text {
    transform: translateY(0);
    opacity: 1;
    transition: transform .78s cubic-bezier(.16,1,.3,1), opacity .5s ease;
}

.am-ref-hero.am-is-ready .am-ref-hero__body-copy {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .55s ease .39s, transform .7s cubic-bezier(.16,1,.3,1) .39s;
}

.am-ref-hero.am-is-ready .am-ref-hero__cta {
    opacity: 1;
    transform: translate3d(var(--am-cta-x), var(--am-cta-y), 0);
    transition: color .32s ease, border-color .32s ease, transform .16s ease-out, opacity .55s ease .48s;
}

.am-ref-hero.am-is-ready .am-ref-hero__meta {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .55s ease .56s, transform .6s ease .56s;
}

.am-ref-hero.am-is-ready .am-ref-hero__scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .6s ease .78s, transform .6s ease .78s;
}

.am-ref-hero [data-am-reveal] { opacity: 1; transform: none; }
.am-ref-hero.am-is-booting [data-am-reveal] { opacity: 0; transform: translateY(8px); }
.am-ref-hero.am-is-ready [data-am-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .55s ease .62s, transform .55s ease .62s;
}

@keyframes amHeroTicker {
    from { transform: translate3d(0,0,0); }
    to   { transform: translate3d(-25%,0,0); }
}
@keyframes amHeroStar {
    0%,100% { transform:rotate(0deg) scale(.9); opacity:.5; }
    50% { transform:rotate(45deg) scale(1.05); opacity:.95; }
}
@keyframes amHeroScroll {
    0% { transform:translateY(0); opacity:0; }
    18% { opacity:1; }
    75% { opacity:1; }
    100% { transform:translateY(300%); opacity:0; }
}

/* Tablet */
@media (max-width:1100px) and (min-width:768px) {
    .am-ref-hero__visual {
        min-height: 650px;
    }

    .am-ref-hero__content {
        width:min(var(--am-content-width-desktop),calc(100% - var(--am-content-left-desktop) - 28px));
    }

    .am-ref-hero__title {
        font-size:clamp(72px,8vw,92px);
    }

    .am-ref-hero__description,
    .am-ref-hero__supporting {
        font-size:18px;
    }

    .am-ref-hero__scroll { display:none; }
}

/* Mobile */
@media (max-width:767px) {
    .am-ref-hero__ticker { height:37px; }

    .am-ref-hero__ticker-item,
    .am-ref-hero__ticker-star {
        font-size:10px;
        letter-spacing:.13em;
    }

    .am-ref-hero__ticker-item {
        padding-left:16px;
        padding-right:24px;
    }

    .am-ref-hero__visual {
        height:calc(var(--am-hero-vh-mobile) * 1svh);
        min-height:620px;
        max-height:none;
    }

    .am-ref-hero__media {
        inset:-8px;
        transform:scale(1.02)!important;
    }

    .am-ref-hero__media--desktop { display:none; }
    .am-ref-hero__media--mobile {
        display:block;
        background-position:var(--am-image-position-mobile);
    }

    .am-ref-hero__visual::after { display:none; }

    /* Mobile now uses its own overlay variable — no hard-coded opacity. */
    .am-ref-hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(8,8,7,var(--am-overlay-mobile)) 0%,
                rgba(8,8,7,calc(var(--am-overlay-mobile) * .88)) 42%,
                rgba(8,8,7,calc(var(--am-overlay-mobile) * .50)) 70%,
                rgba(8,8,7,calc(var(--am-overlay-mobile) * .18)) 100%
            ),
            linear-gradient(
                0deg,
                rgba(8,8,7,calc(var(--am-overlay-mobile) * .78)) 0%,
                rgba(8,8,7,calc(var(--am-overlay-mobile) * .30)) 45%,
                rgba(8,8,7,.05) 100%
            );
    }

    .am-ref-hero__content {
        left:var(--am-content-left-mobile);
        top:var(--am-content-top-mobile);
        width:min(
            var(--am-content-width-mobile),
            calc(100% - (var(--am-content-left-mobile) * 2))
        );
        max-width:var(--am-content-width-mobile);
    }

    .am-ref-hero__eyebrow-wrap {
        gap:10px;
        margin-bottom:24px;
    }

    .am-ref-hero__eyebrow-line {
        width:20px;
        flex-basis:20px;
    }

    .am-ref-hero__eyebrow {
        font-size:9px;
        letter-spacing:.11em;
    }

    .am-ref-hero__title {
        width:100%;
        font-size:clamp(55px,18.2vw,78px);
        line-height:.84;
        letter-spacing:-.062em;
    }

    .am-ref-hero__body-copy {
        width:min(100%,var(--am-copy-width-mobile));
        max-width:var(--am-copy-width-mobile);
        margin-top:31px;
    }

    .am-ref-hero__description,
    .am-ref-hero__supporting {
        font-size:16px;
        line-height:1.45;
    }

    .am-ref-hero__cta {
        width:min(100%,310px);
        min-height:58px;
        margin-top:28px;
        padding:0 20px!important;
        font-size:10px;
    }

    .am-ref-hero__meta {
        gap:9px;
        margin-top:15px;
        font-size:8px;
        letter-spacing:.11em;
        flex-wrap:wrap;
    }

    .am-ref-hero__meta-divider { width:9px; }

    .am-ref-hero__press {
        height:auto;
        min-height:78px;
    }

    .am-ref-hero__press-inner {
        flex-wrap:wrap;
        gap:0;
        width:100%;
        padding:18px 20px;
    }

    .am-ref-hero__press-label {
        width:100%;
        margin:0 0 15px;
        font-size:9px;
    }

    .am-ref-hero__press-brands {
        height:auto;
        min-width:0;
    }

    .am-ref-hero__press-brand {
        height:auto;
        font-size:18px;
    }

    .am-ref-hero__press-divider {
        height:19px;
        margin:0 24px;
    }

    .am-ref-hero__scroll { display:none; }
}

@media (max-width:410px) {
    .am-ref-hero__visual { min-height:600px; }

    .am-ref-hero__title {
        font-size:clamp(50px,17.6vw,68px);
    }

    .am-ref-hero__press-divider { margin:0 16px; }
    .am-ref-hero__press-brand { font-size:16px; }
}

@media (prefers-reduced-motion:reduce) {
    .am-ref-hero__ticker-track,
    .am-ref-hero__ticker-star,
    .am-ref-hero__scroll-line span {
        animation:none!important;
    }

    .am-ref-hero__media,
    .am-ref-hero__eyebrow-wrap,
    .am-ref-hero__eyebrow-line,
    .am-ref-hero__title-text,
    .am-ref-hero__body-copy,
    .am-ref-hero__cta,
    .am-ref-hero__meta,
    .am-ref-hero__scroll,
    .am-ref-hero [data-am-reveal] {
        transition:none!important;
        transform:none!important;
        opacity:1!important;
    }
}


/* ==========================================================
   v1.4.2 — tighter mobile hero typography
   Keep the existing composition/placement; scale the content
   system down so more of the mobile image remains visible.
   ========================================================== */
@media (max-width:767px) {
    .am-ref-hero .am-ref-hero__eyebrow-wrap {
        gap:9px;
        margin-bottom:20px;
    }

    .am-ref-hero .am-ref-hero__eyebrow-line {
        width:18px;
        flex-basis:18px;
    }

    .am-ref-hero .am-ref-hero__eyebrow {
        font-size:8px !important;
        letter-spacing:.10em !important;
    }

    .am-ref-hero .am-ref-hero__title {
        font-size:clamp(48px,14.2vw,60px) !important;
        line-height:.84 !important;
        letter-spacing:-.058em !important;
    }

    .am-ref-hero .am-ref-hero__body-copy {
        margin-top:24px;
    }

    .am-ref-hero .am-ref-hero__description,
    .am-ref-hero .am-ref-hero__supporting {
        font-size:14px !important;
        line-height:1.43 !important;
    }

    .am-ref-hero .am-ref-hero__supporting {
        margin-top:11px !important;
    }

    .am-ref-hero .am-ref-hero__cta {
        width:min(100%,280px);
        min-height:52px;
        margin-top:22px;
        padding:0 18px !important;
        font-size:9px !important;
        letter-spacing:.13em !important;
    }

    .am-ref-hero .am-ref-hero__cta-arrow {
        font-size:16px;
    }
}

@media (max-width:410px) {
    .am-ref-hero .am-ref-hero__title {
        font-size:clamp(46px,13.8vw,56px) !important;
    }

    .am-ref-hero .am-ref-hero__description,
    .am-ref-hero .am-ref-hero__supporting {
        font-size:13.5px !important;
    }
}
