levkin.ca/shared/stack-layout.css
ilia f65e8c7018 Restore sticky card stack: stepped top + z-index, fix scroll runway.
Reverts broken is-stuck body hiding and same-top layout from recent fixes.
Each layer sticks lower (L0–L6); higher z covers previous card on scroll.
Scroll pull was ~2.75rem (page only 1060px) — now 70vh per layer (~4k scroll).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-21 09:36:36 -04:00

20 lines
300 B
CSS

.scroll-section {
height: var(--stack-slot);
position: relative;
}
.scroll-section + .scroll-section {
margin-top: calc(-1 * var(--stack-pull));
}
.scroll-section--final {
height: var(--stack-slot-last);
min-height: 280px;
}
.stack-stop,
.stop {
height: 2rem;
margin-bottom: 3rem;
}