/*
 * Alfa Tonic Animated Home Banner v2
 * Collagen tea specific, black overlay, 4px buttons.
 */

.at-hero,
.at-hero *,
.at-hero *::before,
.at-hero *::after {
    box-sizing: border-box;
}

.at-hero {
    position: relative;
    width: 100%;
    min-height: clamp(680px, 82vh, 960px);
    overflow: hidden;
    isolation: isolate;
    background: #111;
    color: #fff;
}

.at-hero__media,
.at-hero__media picture,
.at-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.at-hero__media {
    z-index: 0;
    overflow: hidden;
}

.at-hero__media img {
    object-fit: cover;
    object-position: center;
    transform: scale(1.025);
    filter: saturate(1.02) contrast(1.03);
    animation: atHeroImageDrift 14s ease-in-out infinite alternate;
}

/* SLACK BLACK OVERLAY */
.at-hero__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.80) 0%,
            rgba(0,0,0,.68) 28%,
            rgba(0,0,0,.42) 55%,
            rgba(0,0,0,.16) 100%
        );
}

.at-hero__inner {
    position: relative;
    z-index: 4;
    width: min(100% - 48px, 1500px);
    min-height: inherit;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.at-hero__content {
    width: min(660px, 50vw);
    padding: 76px 0;
}

.at-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
}

.at-hero__eyebrow::before {
    content: "";
    width: 40px;
    height: 1px;
    background: currentColor;
}

.at-hero__title {
    margin: 0 0 24px;
    color: #fff;
    font-family: inherit;
    font-size: clamp(62px, 7vw, 112px);
    font-weight: 500;
    line-height: .9;
    letter-spacing: -.06em;
}

.at-hero__title span {
    display: block;
    opacity: 0;
    transform: translateY(72%);
}

.at-hero__title span:nth-child(2) {
    padding-bottom: .06em;
}

.at-hero__text {
    max-width: 570px;
    margin: 0 0 32px;
    color: rgba(255,255,255,.78);
    font-size: clamp(17px, 1.35vw, 21px);
    font-weight: 400;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(22px);
}

.at-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 17px 20px;
}

.at-hero__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 28px;
    overflow: hidden;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    opacity: 0;
    transform: translateY(22px);
    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.at-hero__cta--primary {
    border: 1px solid #fff;
    background: #fff;
    color: #000;
}

.at-hero__cta--primary:hover {
    border-color: #fff;
    background: #000;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.at-hero__cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -135%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.55),
        transparent
    );
    transform: skewX(-20deg);
}

.at-hero__cta:hover::before {
    animation: atHeroButtonShine .85s ease forwards;
}

.at-hero__cta-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    transition: transform .3s ease;
}

.at-hero__cta-icon svg {
    width: 100%;
    height: 100%;
}

.at-hero__cta:hover .at-hero__cta-icon {
    transform: translateX(5px);
}

.at-hero__microcopy {
    color: rgba(255,255,255,.58);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .04em;
    opacity: 0;
    transform: translateY(20px);
}

/* Animated black / glass line details */
.at-hero__line {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.12);
}

.at-hero__line--one {
    width: 330px;
    height: 330px;
    right: 7%;
    top: -100px;
    border-radius: 50%;
    animation: atHeroOrbOne 11s ease-in-out infinite alternate;
}

.at-hero__line--two {
    width: 180px;
    height: 180px;
    right: 1%;
    bottom: 6%;
    border-radius: 50%;
    animation: atHeroOrbTwo 13s ease-in-out infinite alternate;
}

/* Reveal sequence */
.at-hero.is-visible .at-hero__eyebrow {
    animation: atHeroFadeUp .7s .12s ease forwards;
}

.at-hero.is-visible .at-hero__title span:nth-child(1) {
    animation: atHeroTitleIn .9s .22s cubic-bezier(.22,1,.36,1) forwards;
}

.at-hero.is-visible .at-hero__title span:nth-child(2) {
    animation: atHeroTitleIn .9s .34s cubic-bezier(.22,1,.36,1) forwards;
}

.at-hero.is-visible .at-hero__text {
    animation: atHeroFadeUp .75s .50s ease forwards;
}

.at-hero.is-visible .at-hero__cta {
    animation: atHeroFadeUp .75s .64s ease forwards;
}

.at-hero.is-visible .at-hero__microcopy {
    animation: atHeroFadeUp .75s .76s ease forwards;
}

@keyframes atHeroImageDrift {
    from {
        transform: scale(1.025) translate3d(0,0,0);
    }
    to {
        transform: scale(1.065) translate3d(-1.4%, -1%, 0);
    }
}

@keyframes atHeroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes atHeroTitleIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes atHeroButtonShine {
    from { left: -135%; }
    to { left: 160%; }
}

@keyframes atHeroOrbOne {
    from { transform: translate3d(0,0,0) scale(1); }
    to { transform: translate3d(-30px,25px,0) scale(1.08); }
}

@keyframes atHeroOrbTwo {
    from { transform: translate3d(0,0,0) scale(1); }
    to { transform: translate3d(22px,-18px,0) scale(.92); }
}

/* Tablet */
@media (max-width: 1024px) {
    .at-hero {
        min-height: 760px;
    }

    .at-hero__inner {
        width: min(100% - 36px, 1000px);
    }

    .at-hero__content {
        width: min(600px, 60vw);
    }

    .at-hero__title {
        font-size: clamp(56px, 8vw, 84px);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .at-hero {
        min-height: 760px;
        display: flex;
        align-items: flex-end;
    }

    .at-hero__media img {
        object-position: center top;
        transform: scale(1.015);
        animation-duration: 16s;
    }

    .at-hero__veil {
        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,.18) 0%,
                rgba(0,0,0,.25) 35%,
                rgba(0,0,0,.68) 65%,
                rgba(0,0,0,.90) 100%
            );
    }

    .at-hero__inner {
        width: 100%;
        min-height: inherit;
        padding: 0 18px;
        align-items: flex-end;
    }

    .at-hero__content {
        width: 100%;
        max-width: none;
        padding: 0 0 54px;
    }

    .at-hero__eyebrow {
        margin-bottom: 13px;
        font-size: 9px;
        letter-spacing: .19em;
    }

    .at-hero__eyebrow::before {
        width: 28px;
    }

    .at-hero__title {
        max-width: 440px;
        margin-bottom: 18px;
        font-size: clamp(47px, 15vw, 68px);
        line-height: .93;
        letter-spacing: -.05em;
    }

    .at-hero__text {
        max-width: 430px;
        margin-bottom: 24px;
        font-size: 15px;
        line-height: 1.62;
    }

    .at-hero__actions {
        display: block;
    }

    .at-hero__cta {
        min-height: 54px;
        padding: 0 23px;
        border-radius: 4px;
        font-size: 12px;
    }

    .at-hero__microcopy {
        display: block;
        margin-top: 13px;
        font-size: 10px;
    }

    .at-hero__line--one {
        width: 170px;
        height: 170px;
        top: 8%;
        right: -50px;
    }

    .at-hero__line--two {
        width: 110px;
        height: 110px;
        right: -25px;
        bottom: 30%;
    }
}

@media (max-width: 420px) {
    .at-hero {
        min-height: 700px;
    }

    .at-hero__inner {
        padding: 0 14px;
    }

    .at-hero__content {
        padding-bottom: 40px;
    }

    .at-hero__title {
        font-size: 49px;
    }

    .at-hero__text {
        font-size: 14px;
    }

    .at-hero__cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .at-hero *,
    .at-hero *::before,
    .at-hero *::after {
        animation: none !important;
        transition: none !important;
    }

    .at-hero__eyebrow,
    .at-hero__title span,
    .at-hero__text,
    .at-hero__cta,
    .at-hero__microcopy {
        opacity: 1 !important;
        transform: none !important;
    }
}
