/* Homepage hero — Soft Rise (slide 1 / TRANSFORMING HEALTHCARE). Loaded directly so it works without a Vite rebuild. */

.home-hero-layout.has-hero-soft-rise .hero-media.fade-in-up--1 {
    opacity: 1;
    animation: none;
    transform: none;
}

.hero-media-soft-rise {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

.hero-media-soft-rise__reveal {
    position: absolute;
    inset: auto 0 0;
    height: 0;
    overflow: hidden;
}

.home-hero-layout.has-hero-soft-rise:not(.hero-soft-rise--animate) .hero-media-soft-rise__motion {
    transform: translate3d(0, 36px, 0);
}

.home-hero-layout.has-hero-soft-rise:not(.hero-soft-rise--animate) .hero-media-soft-rise .hero-media__img {
    transform: scale(1.14);
}

.home-hero-layout.has-hero-soft-rise.hero-soft-rise--animate .hero-media-soft-rise__reveal {
    -webkit-mask-image: linear-gradient(
        to top,
        #000 0,
        #000 calc(100% - 220px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to top,
        #000 0,
        #000 calc(100% - 220px),
        transparent 100%
    );
    animation: hero-soft-rise-reveal 2.9s cubic-bezier(0.42, 0, 0.58, 1) 0.1s forwards;
}

.hero-media-soft-rise__motion {
    position: absolute;
    inset: 0;
}

.home-hero-layout.has-hero-soft-rise.hero-soft-rise--animate .hero-media-soft-rise__motion {
    animation: hero-soft-rise-rise 2.9s cubic-bezier(0.42, 0, 0.58, 1) 0.1s forwards;
}

.hero-media-soft-rise .hero-media__img {
    object-position: center 34%;
    transform-origin: 58% 20%;
}

.home-hero-layout.has-hero-soft-rise.hero-soft-rise--animate .hero-media-soft-rise .hero-media__img {
    animation: hero-soft-rise-zoom 7s cubic-bezier(0.2, 0, 0, 1) 0.1s forwards;
}

.home-hero-layout.has-hero-soft-rise.hero-soft-rise--animate .hero-media-soft-rise__edge {
    opacity: 1;
    animation: hero-soft-rise-glow-out 0.7s ease 2.4s forwards;
}

.hero-media-soft-rise__edge {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 220px;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgb(236 79 149 / 0.22) 35%,
        rgb(236 79 149 / 0.22) 65%,
        transparent 100%
    );
}

@keyframes hero-soft-rise-reveal {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

@keyframes hero-soft-rise-rise {
    from {
        transform: translate3d(0, 36px, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes hero-soft-rise-zoom {
    from {
        transform: scale(1.14);
    }

    to {
        transform: scale(1);
    }
}

@keyframes hero-soft-rise-glow-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-layout.has-hero-soft-rise .hero-media-soft-rise__reveal,
    .home-hero-layout.has-hero-soft-rise .hero-media-soft-rise__motion,
    .home-hero-layout.has-hero-soft-rise .hero-media__img,
    .home-hero-layout.has-hero-soft-rise .hero-media-soft-rise__edge {
        animation: none !important;
    }

    .home-hero-layout.has-hero-soft-rise .hero-media-soft-rise__reveal {
        height: 100%;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .home-hero-layout.has-hero-soft-rise .hero-media-soft-rise__motion,
    .home-hero-layout.has-hero-soft-rise .hero-media__img {
        transform: none;
    }
}
