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>
This commit is contained in:
2026-05-21 09:36:36 -04:00
co-authored by Cursor
parent 7b54b47443
commit f65e8c7018
7 changed files with 79 additions and 110 deletions
+22 -12
View File
@@ -28,7 +28,6 @@ body {
.frame {
position: sticky;
top: var(--stack-reveal);
margin: 0 0.5rem;
border-left: 3px solid #3a3a44;
background: #141418;
@@ -36,10 +35,7 @@ body {
}
.frame-line {
position: absolute;
left: 0;
right: 0;
bottom: calc(100% + var(--stack-step) * var(--layer, 0));
position: sticky;
display: block;
font-size: 0.66rem;
color: #6b9b6b;
@@ -50,6 +46,7 @@ body {
width: 100%;
padding: 0.65rem 0 0.35rem 1rem;
background: #141418;
z-index: 60;
}
.frame-line:hover { color: #9fdf9f; text-decoration: underline; }
@@ -60,13 +57,26 @@ body {
background: #141418;
}
.f0 { z-index: 10; border-color: #c4a574; --layer: 0; }
.f1 { z-index: 11; --layer: 1; }
.f2 { z-index: 12; --layer: 2; }
.f3 { z-index: 13; --layer: 3; }
.f4 { z-index: 14; border-color: #6b8b9b; --layer: 4; }
.f5 { z-index: 15; --layer: 5; }
.f6 { z-index: 16; border-color: #7eb87a; --layer: 6; }
.f0 { top: calc(var(--stack-stick) + var(--stack-step) * 0); z-index: 10; border-color: #c4a574; }
.f0 .frame-line { top: calc(var(--stack-stick) + var(--stack-step) * 0); }
.f1 { top: calc(var(--stack-stick) + var(--stack-step) * 1); z-index: 11; }
.f1 .frame-line { top: calc(var(--stack-stick) + var(--stack-step) * 1); }
.f2 { top: calc(var(--stack-stick) + var(--stack-step) * 2); z-index: 12; }
.f2 .frame-line { top: calc(var(--stack-stick) + var(--stack-step) * 2); }
.f3 { top: calc(var(--stack-stick) + var(--stack-step) * 3); z-index: 13; }
.f3 .frame-line { top: calc(var(--stack-stick) + var(--stack-step) * 3); }
.f4 { top: calc(var(--stack-stick) + var(--stack-step) * 4); z-index: 14; border-color: #6b8b9b; }
.f4 .frame-line { top: calc(var(--stack-stick) + var(--stack-step) * 4); }
.f5 { top: calc(var(--stack-stick) + var(--stack-step) * 5); z-index: 15; }
.f5 .frame-line { top: calc(var(--stack-stick) + var(--stack-step) * 5); }
.f6 { top: calc(var(--stack-stick) + var(--stack-step) * 6); z-index: 16; border-color: #7eb87a; }
.f6 .frame-line { top: calc(var(--stack-stick) + var(--stack-step) * 6); }
.frame-body strong { color: #e8e6e3; font-weight: 500; display: block; margin-bottom: 0.2rem; }
.frame-body p { color: #6b6966; font-size: 0.74rem; }