PageBackdrop draws flat, overlapping palette circles behind the public site and eases them to a new tone as each section reaches the middle of the window, so sections no longer paint their own bands (PageShell's background field is gone). The hero's brand backdrop is a flat teal with the dove, its two buttons one cell cut by a slash, and the countdown straddles the hero and the band below. No glows: the drifting blobs, rings, live-dot pulse and the stats band's blurred circle are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
104 lines
3.1 KiB
CSS
104 lines
3.1 KiB
CSS
/* ═══════════════════════════════════════════════════════════════
|
|
FRONT PAGE MOTION
|
|
|
|
Keyframes and the few rules Tailwind utilities can't express.
|
|
Everything that moves on its own stops under
|
|
prefers-reduced-motion; the page still reads the same without it.
|
|
═══════════════════════════════════════════════════════════════ */
|
|
|
|
/* ── Hero: headline words rise in ────────────────────────────── */
|
|
|
|
.hp-rise {
|
|
display: inline-block;
|
|
opacity: 0;
|
|
transform: translateY(0.6em);
|
|
animation: hp-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
|
|
}
|
|
|
|
@keyframes hp-rise {
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
|
|
/* ── Hero: photos ────────────────────────────────────────────── */
|
|
|
|
.hp-slide {
|
|
position: absolute;
|
|
inset: 0;
|
|
opacity: 0;
|
|
transition: opacity 1.4s ease;
|
|
}
|
|
.hp-slide--on { opacity: 1; }
|
|
|
|
.hp-slide img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
.hp-slide--on img { animation: hp-kenburns var(--hp-slide-ms, 7000ms) ease-out forwards; }
|
|
|
|
@keyframes hp-kenburns {
|
|
from { transform: scale(1.12) translate(1.5%, 1%); }
|
|
to { transform: scale(1) translate(0, 0); }
|
|
}
|
|
|
|
.hp-progress {
|
|
transform-origin: left center;
|
|
transform: scaleX(0);
|
|
}
|
|
.hp-progress--run { animation: hp-fill var(--hp-slide-ms, 7000ms) linear forwards; }
|
|
.hp-progress--done { transform: scaleX(1); }
|
|
.hp-progress--paused { animation-play-state: paused; }
|
|
|
|
@keyframes hp-fill {
|
|
to { transform: scaleX(1); }
|
|
}
|
|
|
|
/* ── Timeline rail ───────────────────────────────────────────── */
|
|
|
|
.hp-rail {
|
|
scroll-snap-type: x mandatory;
|
|
scrollbar-width: none;
|
|
cursor: grab;
|
|
}
|
|
.hp-rail::-webkit-scrollbar { display: none; }
|
|
.hp-rail--dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
|
|
.hp-rail > * { scroll-snap-align: start; }
|
|
|
|
/* ── Pathfinder: actions arrive one after another ────────────── */
|
|
|
|
.hp-pop {
|
|
opacity: 0;
|
|
transform: translateY(14px) scale(0.98);
|
|
animation: hp-pop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
|
|
}
|
|
|
|
@keyframes hp-pop {
|
|
to { opacity: 1; transform: none; }
|
|
}
|
|
|
|
/* ── Stats: numbers settle in ────────────────────────────────── */
|
|
|
|
.hp-stat {
|
|
opacity: 0;
|
|
transform: translateY(18px);
|
|
transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
|
|
}
|
|
.hp-stat--in { opacity: 1; transform: none; }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.hp-slide--on img {
|
|
animation: none;
|
|
}
|
|
.hp-rise,
|
|
.hp-pop {
|
|
animation: none;
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
.hp-stat {
|
|
transition: none;
|
|
}
|
|
.hp-slide {
|
|
transition: none;
|
|
}
|
|
}
|