.stack-scroll {
    position: relative;
    padding-bottom: 0;
}
.stack-card {
    position: sticky;
    top: 6.2rem;
    min-height: calc(100vh - 7.2rem);
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 42px -30px rgba(15, 23, 42, 0.8);
    z-index: calc(10 + var(--stack-index, 0));
    transform-origin: center top;
}
.stack-card:last-child {
    margin-bottom: 0;
}
.stack-card-body {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.stack-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.16), transparent 48%);
}
.dark .stack-card {
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 24px 44px -30px rgba(2, 6, 23, 0.9);
}
@media (max-width: 767px) {
    .stack-scroll {
        padding-bottom: 0;
    }
    .stack-card {
        position: relative;
        top: auto;
        min-height: auto;
        margin-bottom: 1rem;
        margin-top: 0;
        z-index: auto;
    }
}
