.asc-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 100vh;
    --asc-nav-offset: var(--lab-nav-offset-bottom, var(--lab-navbar-height, 0px));
    --asc-content-top-gap: clamp(2rem, 5vw, 4rem);
    --asc-content-safe-top: var(--asc-content-top-gap);
    overflow: hidden;
    isolation: isolate;
}

.asc-sticky-container {
    position: relative;
    height: 100%;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    --asc-divider-width: 50%;
}

.asc-backgrounds,
.asc-contents,
.asc-section-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.asc-backgrounds {
    z-index: 0;
}

.asc-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.asc-background.is-active {
    opacity: 1;
}

.asc-section-divider {
    left: auto;
    right: 0;
    width: var(--asc-divider-width);
    background-color: rgba(8, 23, 40, 0.65);
    z-index: 1;
}

.asc-contents {
    z-index: 2;
}

.asc-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: var(--asc-content-safe-top);
    padding-right: clamp(2rem, 5vw, 4rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
    padding-left: clamp(2rem, 5vw, 4rem);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    pointer-events: none;
}

.asc-content.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.asc-content.is-leaving {
    opacity: 0;
    transform: translateY(-30px);
}

.asc-contents .asc-content .asc-content-inner {
    width: var(--asc-divider-width);
    max-width: 40%;
    padding-right: calc(clamp(2rem, 4vw, 3rem));
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.asc-contents .asc-content .asc-content-inner h2 {
    margin-top: 0;
}

.asc-controls {
    position: absolute;
    bottom: clamp(1.5rem, 4vw, 3rem);
    right: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 3;
}

.asc-nav-button {
    --asc-button-size: clamp(2.75rem, 4vw, 3.5rem);
    width: var(--asc-button-size);
    height: var(--asc-button-size);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(8, 23, 40, 0.7);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    padding: 0;
}

.asc-nav-button::before {
    content: '';
    display: block;
    width: 0.65rem;
    height: 0.65rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform-origin: center;
}

.asc-nav-button--up::before {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
}

.asc-nav-button--down::before {
    transform: rotate(45deg);
    margin-bottom: 0.15rem;
}

.asc-nav-button:hover,
.asc-nav-button:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
    outline: none;
}

.asc-nav-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.asc-nav-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (max-width: 992px) {
    .asc-sticky-container {
        --asc-divider-width: min(55%, 540px);
    }
}

@media (max-width: 768px) {
    .asc-sticky-container {
        --asc-divider-width: 100%;
        min-height: 100vh;
        padding: 0;
    }

    .asc-section-divider {
        width: 100%;
    }

    .asc-content {
        justify-content: center;
        align-items: center;
        padding-top: max(clamp(2.5rem, 7vw, 3rem), calc(var(--asc-nav-offset) + 1.5rem));
        padding-right: clamp(1.5rem, 6vw, 2.25rem);
        padding-bottom: clamp(5.5rem, 16vw, 6.5rem);
        padding-left: clamp(1.5rem, 6vw, 2.25rem);
        background: linear-gradient(180deg, rgba(8, 23, 40, 0.15) 0%, rgba(8, 23, 40, 0.85) 100%);
        overflow: hidden;
    }

    .asc-contents .asc-content .asc-content-inner {
        position: relative;
        width: 100%;
        max-width: 100%;
        gap: 0.75rem;
        padding: clamp(1.25rem, 4vw, 1.75rem);
        border-radius: 1.25rem;
        background: rgba(8, 23, 40, 0.8);
        backdrop-filter: blur(12px);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
        max-height: max(260px, calc(100vh - clamp(8rem, 22vw, 9rem) - var(--asc-nav-offset)));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .asc-contents .asc-content .asc-content-inner::-webkit-scrollbar {
        width: 6px;
    }

    .asc-contents .asc-content .asc-content-inner::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.35);
        border-radius: 999px;
    }

    .asc-contents .asc-content .asc-content-inner::before,
    .asc-contents .asc-content .asc-content-inner::after {
        content: "";
        position: sticky;
        left: 0;
        right: 0;
        height: clamp(1.25rem, 4vw, 1.75rem);
        pointer-events: none;
        transition: opacity 0.25s ease;
        opacity: 0;
        z-index: 2;
    }

    .asc-contents .asc-content .asc-content-inner::before {
        top: 0;
        background: linear-gradient(180deg, rgba(8, 23, 40, 0.95) 0%, rgba(8, 23, 40, 0) 100%);
    }

    .asc-contents .asc-content .asc-content-inner::after {
        bottom: 0;
        background: linear-gradient(180deg, rgba(8, 23, 40, 0) 0%, rgba(8, 23, 40, 0.95) 100%);
    }

    .asc-contents .asc-content .asc-content-inner.asc-content-inner--scrollable::before,
    .asc-contents .asc-content .asc-content-inner.asc-content-inner--scrollable::after {
        opacity: 1;
    }

    .asc-contents .asc-content .asc-content-inner.asc-content-inner--at-top::before {
        opacity: 0;
    }

    .asc-contents .asc-content .asc-content-inner.asc-content-inner--at-bottom::after {
        opacity: 0;
    }

    .asc-controls {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 1.25rem;
        bottom: auto;
        top: calc(var(--asc-nav-offset) + clamp(6rem, 18vw, 7rem));
    }
}

@media (max-width: 480px) {
    .asc-content {
        padding-top: max(clamp(2rem, 9vw, 2.5rem), calc(var(--asc-nav-offset) + 1.25rem));
        padding-right: clamp(1rem, 7vw, 1.5rem);
        padding-bottom: clamp(5rem, 18vw, 6rem);
        padding-left: clamp(1rem, 7vw, 1.5rem);
    }

    .asc-contents .asc-content .asc-content-inner {
        border-radius: 1rem;
        padding: clamp(1rem, 5vw, 1.5rem);
    }

    .asc-controls {
        gap: 1rem;
    }
}
