@layer pages {
    .start__image {
        position: relative;
        overflow: hidden;
        max-width: 100%;
        height: auto;
        aspect-ratio: 3.4364261168;
        margin: auto;
        opacity: 0;
        animation: sana-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;

        img.animation-media {
            position: absolute;
            left: 50%;
            top: 0;
            transform: translate(-50%, 0);
            width: 100%;
            height: 100%;
            border: none;
            object-fit: cover;
            object-position: center;
            pointer-events: none;
            animation: sana-reveal-hero-media 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        .animation-toggle {
            z-index: 5;
            position: absolute;
            right: 12px;
            bottom: 12px;
        }
    }

    section .start__content {
        max-width: var(--content-width);
        padding: var(--content-padding);
        margin: auto;
        margin-top: 60px;

        > * {
            opacity: 0;
            animation: sana-reveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }

        > *:nth-child(1) { animation-delay: 0.16s; }
        > *:nth-child(2) { animation-delay: 0.24s; }
        > *:nth-child(3) { animation-delay: 0.32s; }
        > *:nth-child(4) { animation-delay: 0.4s; }
        > *:nth-child(5) { animation-delay: 0.48s; }
        > *:nth-child(6) { animation-delay: 0.56s; }
        > *:nth-child(7) { animation-delay: 0.64s; }

        p:not(:last-of-type):not(.subtitle) {
            margin-bottom: var(--space-30);
        }
    }

    [data-view="start"] .btn--next {
        opacity: 0;
        animation: sana-reveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.78s forwards;
    }

    @media (max-width: 768px) {
        .start__image {
            aspect-ratio: 1.7182450185;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        :is(
        .start__image,
            section .start__content > *,
            [data-view="start"] .btn--next
        ) {
            opacity: 1;
            transform: none;
            animation: none;
        }

        .start__image img.animation-media {
            opacity: 1;
            transform: translate(-50%, 0);
            animation: none;
        }
    }
}
