From 2e66812f5b856bd52b6d7642af92e65318004a8e Mon Sep 17 00:00:00 2001 From: Helena Date: Fri, 13 Nov 2026 21:27:13 +0800 Subject: [PATCH 1/2] site: fix clipped Agent node, faded diagram boxes, empty Numbers card - Eclipse: clamp the Agent node against the visible width at its own depth (z 1.6), so it no longer crosses the canvas edge. - How it works diagram: boxes fade in by opacity only (no SVG transform), from a higher floor, and the build finishes once the diagram is in view. - Demo card 06: show no defense vs Eclipse missed attacks, false blocks and false holds from docs/results/results.json, filling the empty card. --- site/src/App.jsx | 3 ++- site/src/components/DemoAnims.jsx | 28 ++++++++++++++++++++++++++++ site/src/components/Eclipse.jsx | 7 +++++-- site/src/motion.js | 7 ++++--- site/src/styles.css | 9 +++++++++ 5 files changed, 48 insertions(+), 6 deletions(-) diff --git a/site/src/App.jsx b/site/src/App.jsx index 3b06192..7b6289e 100644 --- a/site/src/App.jsx +++ b/site/src/App.jsx @@ -25,7 +25,7 @@ import { import { ArchitectureDiagram } from "./components/ArchitectureDiagram"; import { Console } from "./components/Console"; import { DotField } from "./components/DotField"; -import { HookFeed, HoldLog } from "./components/DemoAnims"; +import { DemoNumbers, HookFeed, HoldLog } from "./components/DemoAnims"; import { Frame } from "./components/Frame"; import { Logo } from "./components/Logo"; import { MorseField } from "./components/MorseField"; @@ -468,6 +468,7 @@ export default function App() { {i === 0 && } {i === 4 && } + {i === 5 && }

{title}

{text}

); diff --git a/site/src/components/DemoAnims.jsx b/site/src/components/DemoAnims.jsx index c08169d..363769d 100644 --- a/site/src/components/DemoAnims.jsx +++ b/site/src/components/DemoAnims.jsx @@ -1,6 +1,9 @@ import { useEffect, useRef, useState } from "react"; import { ArrowRight, Check, Hourglass, LoaderCircle } from "lucide-react"; import { prefersReducedMotion } from "../motion.js"; +import results from "../../../docs/results/results.json"; +import { formatResultNumber, headline } from "../results.js"; +import { PROJECT_NAME } from "../config.js"; // Runs `tick` every `ms` while the element is on screen; never under reduced motion. function useTicker(ref, ms, tick) { @@ -65,3 +68,28 @@ export function HoldLog() { ); } + +// Demo card 06: the committed evaluation numbers, no defense against Jev fusion + conformal threshold. +// Same source and rows as the Results section headline, so the two never disagree. +const NUMBERS = (() => { + const top = headline(results); + if (!top) return []; + const row = (label, key) => [label, top.base[key], top.best[key]]; + return [row("Missed attacks", "missed_attacks_pct"), row("False blocks", "false_blocks_pct"), row("False holds", "false_holds_pct")]; +})(); + +export function DemoNumbers() { + if (!NUMBERS.length) return null; + return ( +
+ + {NUMBERS.map(([label, base, best]) => ( +
+ {label} + {formatResultNumber(base)}% + {formatResultNumber(best)}% +
+ ))} +
+ ); +} diff --git a/site/src/components/Eclipse.jsx b/site/src/components/Eclipse.jsx index f1b30de..945af8c 100644 --- a/site/src/components/Eclipse.jsx +++ b/site/src/components/Eclipse.jsx @@ -132,7 +132,10 @@ function Node({ position, Icon, label, filled }) { function Scene({ progress, pointer, reduce }) { // On wide canvases the eclipse sits left of centre so the overlay text has room on the right. - const { viewport } = useThree(); + const { viewport, camera } = useThree(); + // The Agent node sits nearer the camera (z 1.6), where the visible width is smaller than at z 0; + // clamp it against that width so its ring and label never cross the canvas edge. + const agentHalfW = viewport.getCurrentViewport(camera, [0, 0, 1.6]).width / 2; const offsetX = viewport.aspect > 1.3 ? -viewport.width * 0.22 : 0; const group = useRef(); const sun = useRef(); @@ -178,7 +181,7 @@ function Scene({ progress, pointer, reduce }) { - + ); diff --git a/site/src/motion.js b/site/src/motion.js index bf7e52f..c84c302 100644 --- a/site/src/motion.js +++ b/site/src/motion.js @@ -103,7 +103,7 @@ export async function startMotion(refs) { const adSvg = document.querySelector(".ad-svg"); if (adSvg) { const tl = gsap.timeline({ - scrollTrigger: { trigger: adSvg, start: "top 80%", end: "bottom 55%", scrub: 0.6 }, + scrollTrigger: { trigger: adSvg, start: "top 85%", end: "bottom 95%", scrub: 0.6 }, defaults: { ease: "none" }, }); for (let k = 0; k <= 8; k++) { @@ -112,10 +112,11 @@ export async function startMotion(refs) { const boxes = [...items].filter((el) => !el.classList.contains("ad-arrow")); if (paths.length) { // Fade the whole arrow (line, head and label) in as its line draws, so no head shows early. - tl.fromTo(adSvg.querySelectorAll(`.ad-arrow[data-at="${k}"]`), { opacity: 0.12 }, { opacity: 1, duration: 0.3 }, k); + tl.fromTo(adSvg.querySelectorAll(`.ad-arrow[data-at="${k}"]`), { opacity: 0.3 }, { opacity: 1, duration: 0.3 }, k); tl.fromTo(paths, { strokeDashoffset: 1 }, { strokeDashoffset: 0, duration: 0.6 }, k); } - if (boxes.length) tl.fromTo(boxes, { opacity: 0.18, y: 10 }, { opacity: 1, y: 0, duration: 0.6 }, k + 0.3); + // Opacity only: a transform on SVG groups can misplace them, and a low floor read as missing boxes. + if (boxes.length) tl.fromTo(boxes, { opacity: 0.4 }, { opacity: 1, duration: 0.6 }, k + 0.3); const flows = adSvg.querySelectorAll(`[data-flow-at="${k}"]`); if (flows.length) tl.fromTo(flows, { opacity: 0 }, { opacity: 1, duration: 0.3 }, k + 0.4); } diff --git a/site/src/styles.css b/site/src/styles.css index f4fd7b4..197f3c9 100644 --- a/site/src/styles.css +++ b/site/src/styles.css @@ -1222,6 +1222,15 @@ footer { margin-top: clamp(40px, 5vw, 64px); border-top: 1px dashed var(--dash); @keyframes hl-in { from { opacity: 0; transform: translateX(-4px); } } @keyframes hl-spin { to { transform: rotate(360deg); } } @keyframes hl-blink { 50% { opacity: 0; } } +/* Demo card 06: no defense vs Eclipse, from results.json */ +.dnums { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: #121019; } +.dn-row { display: grid; grid-template-columns: minmax(0, 1fr) 7.5em 7.5em; align-items: baseline; gap: 12px; padding: 12px 16px; font-size: 14px; color: var(--muted); } +.dn-row + .dn-row { border-top: 1px solid var(--line); } +.dn-row > :not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; } +.dn-head { padding-block: 10px 8px; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); } +.dn-base { font: 15px var(--mono); color: var(--dim); } +.dn-row b { font: 400 24px/1.1 var(--mono); color: var(--accent); } +@media (max-width: 560px) { .dn-row { grid-template-columns: minmax(0, 1fr) 5.5em 5.5em; padding-inline: 12px; } .dn-row b { font-size: 20px; } } @media (prefers-reduced-motion: reduce) { .hf-row.fresh, .hl-line, .hl-spin, .hl-caret { animation: none; } } /* Demo cards: soft lilac light rising from the bottom-right, with a dotted texture that only shows From d0bd934453d82b731c2d6afa9b56984a4fdac92f Mon Sep 17 00:00:00 2001 From: Helena Date: Fri, 13 Nov 2026 21:39:18 +0800 Subject: [PATCH 2/2] site: eclipse turns toward the mouse across the whole stage Pointer listener moves from the canvas to the stage, so the step cards no longer block it; mouse only, so touch still scrolls. The globe tilts up to about 20 degrees and drifts a little after the cursor, and settles back when it leaves. Off under reduced motion. --- site/src/components/Eclipse.jsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/site/src/components/Eclipse.jsx b/site/src/components/Eclipse.jsx index 945af8c..fc8128a 100644 --- a/site/src/components/Eclipse.jsx +++ b/site/src/components/Eclipse.jsx @@ -160,8 +160,12 @@ function Scene({ progress, pointer, reduce }) { } const g = group.current; if (g) { - g.rotation.y += (pointer.current.x * 0.25 - g.rotation.y) * 0.05; - g.rotation.x += (0.1 + pointer.current.y * 0.15 - g.rotation.x) * 0.05; + // Follows the cursor: the whole eclipse turns toward it and drifts a little after it. + const px = reduce ? 0 : pointer.current.x, py = reduce ? 0 : pointer.current.y; + g.rotation.y += (px * 0.7 - g.rotation.y) * 0.06; + g.rotation.x += (0.1 + py * 0.45 - g.rotation.x) * 0.06; + g.position.x += (offsetX + px * 0.35 - g.position.x) * 0.06; + g.position.y += (-py * 0.25 - g.position.y) * 0.06; } }); @@ -197,14 +201,18 @@ export default function Eclipse({ progress }) { const el = wrap.current; const io = new IntersectionObserver(([e]) => setOnScreen(e.isIntersecting)); io.observe(el); + // Listen on the whole stage, so the cursor over the step cards still turns the eclipse. + // Mouse only: on touch, a drag is a scroll. + const stage = el.parentElement || el; const move = (e) => { + if (e.pointerType !== "mouse") return; const r = el.getBoundingClientRect(); pointer.current = { x: (e.clientX - r.left) / r.width - 0.5, y: (e.clientY - r.top) / r.height - 0.5 }; }; const leave = () => { pointer.current = { x: 0, y: 0 }; }; - el.addEventListener("pointermove", move); - el.addEventListener("pointerleave", leave); - return () => { io.disconnect(); el.removeEventListener("pointermove", move); el.removeEventListener("pointerleave", leave); }; + stage.addEventListener("pointermove", move); + stage.addEventListener("pointerleave", leave); + return () => { io.disconnect(); stage.removeEventListener("pointermove", move); stage.removeEventListener("pointerleave", leave); }; }, []); return (