diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro
index 2866d0d..110f87d 100644
--- a/src/layouts/Base.astro
+++ b/src/layouts/Base.astro
@@ -27,7 +27,11 @@ const {
-
+
+
+
+
+
Skip to content
diff --git a/src/scripts/site.js b/src/scripts/site.js
index af5c715..eaddeb7 100644
--- a/src/scripts/site.js
+++ b/src/scripts/site.js
@@ -15,20 +15,38 @@
els.forEach(function (e) { io.observe(e); });
}
- // the spine "draws" as you scroll through the path
+ // The spine "draws" as you scroll. A stage's node lights up the moment the
+ // fill reaches it, so the line and the milestones move together. Nodes stay
+ // lit once reached: they mark completed stages, not current scroll position.
var fill = document.getElementById("spineFill"),
sw = document.querySelector(".spine-wrap"),
+ stages = sw ? [].slice.call(sw.querySelectorAll(".stage")) : [],
tick = false;
+
function spine() {
tick = false;
- if (!fill || !sw) return;
- var r = sw.getBoundingClientRect();
- var p = (innerHeight * 0.5 - r.top) / r.height;
- fill.style.height = (Math.max(0, Math.min(1, p)) * 100) + "%";
+ if (!sw) return;
+ var r = sw.getBoundingClientRect(),
+ h = r.height,
+ spineTop = 10,
+ spineH = Math.max(1, h - 20),
+ p = (innerHeight * 0.5 - r.top - spineTop) / spineH;
+
+ p = Math.max(0, Math.min(1, p));
+ if (fill) fill.style.height = (p * 100) + "%";
+
+ var fillY = spineTop + p * spineH;
+ stages.forEach(function (stage) {
+ if (stage.classList.contains("lit")) return;
+ var nodeY = stage.getBoundingClientRect().top - r.top + 18; // node top (7) + radius (11)
+ if (fillY >= nodeY) stage.classList.add("lit");
+ });
}
- if (fill && sw) {
+
+ if (sw) {
if (reduce) {
- fill.style.height = "100%";
+ if (fill) fill.style.height = "100%";
+ stages.forEach(function (stage) { stage.classList.add("lit"); });
} else {
var onsc = function () { if (!tick) { tick = true; requestAnimationFrame(spine); } };
addEventListener("scroll", onsc, { passive: true });
diff --git a/src/styles/global.css b/src/styles/global.css
index 87195e0..f49532b 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -24,12 +24,32 @@
padding:10px 16px;border-radius:3px;font-weight:600;transition:top .15s;}
.skip:focus{top:12px;}
- /* lush jewel-tone ambient + faint feather-eye field */
- .ambient{position:fixed;inset:0;z-index:0;pointer-events:none;
- background:
- radial-gradient(60vw 60vw at 88% -10%, rgba(142,123,240,.14), transparent 60%),
- radial-gradient(50vw 50vw at 0% 30%, rgba(43,212,196,.10), transparent 60%),
- var(--bg);}
+ /* lush jewel-tone ambient + faint feather-eye field.
+ Three soft auras drift on their own clocks; only transform changes, so the
+ whole backdrop stays on the compositor instead of repainting gradients. */
+ .ambient{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:var(--bg);}
+ .aura{position:absolute;border-radius:50%;will-change:transform;transform:translate3d(0,0,0);}
+ .aura.a1{width:74vmax;height:74vmax;top:-34vmax;right:-18vmax;
+ background:radial-gradient(closest-side, rgba(142,123,240,.19), rgba(142,123,240,.06) 56%, transparent 74%);
+ animation:aura-a 46s ease-in-out infinite alternate;animation-delay:-14s;}
+ .aura.a2{width:60vmax;height:60vmax;top:14%;left:-26vmax;
+ background:radial-gradient(closest-side, rgba(43,212,196,.14), rgba(43,212,196,.045) 56%, transparent 74%);
+ animation:aura-b 58s ease-in-out infinite alternate;animation-delay:-31s;}
+ .aura.a3{width:46vmax;height:46vmax;bottom:-18vmax;left:36%;
+ background:radial-gradient(closest-side, rgba(59,160,240,.12), rgba(59,160,240,.04) 56%, transparent 74%);
+ animation:aura-c 72s ease-in-out infinite alternate;animation-delay:-7s;}
+ @keyframes aura-a{
+ from{transform:translate3d(0,0,0) scale(1);}
+ to{transform:translate3d(-8%,9%,0) scale(1.15);}
+ }
+ @keyframes aura-b{
+ from{transform:translate3d(0,0,0) scale(1.06);}
+ to{transform:translate3d(9%,-6%,0) scale(.92);}
+ }
+ @keyframes aura-c{
+ from{transform:translate3d(0,0,0) scale(.96);}
+ to{transform:translate3d(-7%,-11%,0) scale(1.12);}
+ }
.grain{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.35;mix-blend-mode:overlay;
background-image:radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);background-size:3px 3px;}
.page{position:relative;z-index:2;}
@@ -58,9 +78,17 @@
/* fade the peacock into the canvas at the bottom so it dissolves, not slices */
.hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:34%;z-index:2;pointer-events:none;
background:linear-gradient(to bottom, transparent, var(--bg) 92%);}
- .hero-peacock{position:absolute;right:clamp(-180px,-7vw,-60px);top:clamp(78px,11vh,150px);
+ /* `--bob` is the total vertical travel of the hero mark: 5px means it drifts
+ 2.5px up and 2.5px down from where it sits. Raise or lower it to taste. */
+ .hero-peacock{--bob:5px;--bob-speed:7s;
+ position:absolute;right:clamp(-180px,-7vw,-60px);top:clamp(78px,11vh,150px);
width:min(1020px,72vw);aspect-ratio:660/748;z-index:1;pointer-events:none;
- filter:drop-shadow(0 0 50px rgba(59,160,240,.22)) drop-shadow(0 30px 80px rgba(142,123,240,.16));}
+ filter:drop-shadow(0 0 50px rgba(59,160,240,.22)) drop-shadow(0 30px 80px rgba(142,123,240,.16));
+ will-change:transform;animation:peacock-bob var(--bob-speed) ease-in-out infinite alternate;}
+ @keyframes peacock-bob{
+ from{transform:translate3d(0,calc(var(--bob) * -.5),0);}
+ to{transform:translate3d(0,calc(var(--bob) * .5),0);}
+ }
.hero-peacock svg{width:100%;height:100%;overflow:visible;}
.hero-peacock svg path{fill:url(#irid)!important;}
@@ -121,7 +149,8 @@
.ft{border-top:1px solid var(--line);padding:clamp(56px,9vh,100px) var(--pad) 46px;}
.ft .roller{font-family:var(--serif);font-size:clamp(46px,11vw,128px);line-height:.9;letter-spacing:-.01em;}
- .ft .roller .b{font-style:italic;color:var(--ink2);}
+ .ft .roller .b{font-style:italic;background:var(--irid);-webkit-background-clip:text;background-clip:text;
+ color:transparent;-webkit-text-fill-color:transparent;}
.ft .frow{margin-top:30px;display:flex;flex-wrap:wrap;align-items:center;gap:18px;font-size:13px;color:var(--soft);}
.ft .frow .sp{flex:1;}
.ft .frow a{color:var(--ink2);border-bottom:1px solid var(--line2);padding-bottom:1px;}
@@ -138,8 +167,21 @@
.stages{display:flex;flex-direction:column;gap:clamp(56px,11vh,120px);}
.stage{position:relative;max-width:60ch;}
.node{position:absolute;top:7px;left:calc(var(--spine-x) - var(--pad) - 11px);width:22px;height:22px;border-radius:50%;z-index:2;
- background:var(--ink);box-shadow:0 0 0 5px rgba(43,212,196,.10);transition:box-shadow .4s,transform .4s;}
- .stage.in .node{box-shadow:0 0 0 7px rgba(43,212,196,.16), 0 0 24px rgba(43,212,196,.35);transform:scale(1.08);}
+ background:#0c141c;box-shadow:inset 0 0 0 1px rgba(255,255,255,.24), 0 0 0 5px rgba(43,212,196,.04);
+ transition:box-shadow .5s ease,transform .5s cubic-bezier(.2,.7,.2,1);}
+ /* the lit state fades in over the unlit ring, so it animates smoothly */
+ .node::before{content:"";position:absolute;inset:0;border-radius:50%;background:var(--irid);
+ opacity:0;transition:opacity .45s ease;}
+ .node::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:1px solid rgba(43,212,196,.7);
+ opacity:0;pointer-events:none;}
+ .stage.lit .node{box-shadow:0 0 0 6px rgba(43,212,196,.15), 0 0 24px rgba(43,212,196,.5), 0 0 38px rgba(59,160,240,.28);
+ transform:scale(1.08);}
+ .stage.lit .node::before{opacity:1;}
+ .stage.lit .node::after{animation:node-ping 1.05s cubic-bezier(.16,.7,.3,1) 1;}
+ @keyframes node-ping{
+ 0%{opacity:.9;transform:scale(.72);}
+ 70%,100%{opacity:0;transform:scale(1.9);}
+ }
.stage .k{font-family:var(--mono);font-size:11.5px;letter-spacing:.04em;color:var(--teal);}
.stage h3{font-family:var(--serif);font-size:clamp(30px,4.6vw,56px);line-height:1.0;letter-spacing:-.01em;margin:10px 0 12px;}
.stage p{font-size:clamp(15px,1.5vw,18px);line-height:1.65;color:var(--ink2);margin:0;}