From 81ee9a353306ca217cc3b1186fa1936941a394da Mon Sep 17 00:00:00 2001 From: Tanish Manku Date: Thu, 10 Sep 2026 13:25:54 -0700 Subject: [PATCH] ruler: solid-ink dimming, one frosted world, bbox-sized pools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Heading dimming stops being translucency: dimmed words (queue, pile, riding) now render a solid ink-toward-paper color-mix at the same visual level, so they mask the footage passing beneath instead of letting it bleed through 35%-alpha gray. The rail frost's inner edge goes back to a feather, but on a smoothstep-like multi-stop curve so no seam reads while letters fly in and out (the hard cutoff + hairline read as visually split). The contrast pools become part of the same frosted world: backdrop blur at the rail's level with a matching non-linear corner mask, and their size derives from the stacks' worst-case bounding boxes (full pile + current heading up top, full queue below, longest label wide) plus a Pool pad knob — no more viewport-height guessing. The reduced-motion queue pool gets the same frost. Tuned @ Mpx defaults to the reference screen's real 1.65 CSS-megapixels. Claude-Session: https://claude.ai/code/session_01YBoaBEt3gynzTwogBFtn4B --- .../landing/hero-galaxy-tunables.ts | 2 +- .../src/components/ruler/heading-flow.tsx | 69 ++++++++++++++++--- .../src/components/ruler/ruler-tunables.ts | 14 ++-- .../src/components/ruler/scroll-ruler.tsx | 18 ++--- 4 files changed, 71 insertions(+), 32 deletions(-) diff --git a/frontend/apps/artcraft-website-next/src/components/landing/hero-galaxy-tunables.ts b/frontend/apps/artcraft-website-next/src/components/landing/hero-galaxy-tunables.ts index 9c59a77877..a20010de6f 100644 --- a/frontend/apps/artcraft-website-next/src/components/landing/hero-galaxy-tunables.ts +++ b/frontend/apps/artcraft-website-next/src/components/landing/hero-galaxy-tunables.ts @@ -55,7 +55,7 @@ export const galaxyLayoutTuner = defineTunables( min: 0.5, max: 12, step: 0.1, - default: 5, + default: 1.65, info: "Viewport area (CSS megapixels) the card count was tuned at. Smaller viewports get proportionally fewer cards — never more than the count knob.", }, cardHFrac: { diff --git a/frontend/apps/artcraft-website-next/src/components/ruler/heading-flow.tsx b/frontend/apps/artcraft-website-next/src/components/ruler/heading-flow.tsx index e6e75919ec..9cfff6bc45 100644 --- a/frontend/apps/artcraft-website-next/src/components/ruler/heading-flow.tsx +++ b/frontend/apps/artcraft-website-next/src/components/ruler/heading-flow.tsx @@ -398,7 +398,14 @@ export default function HeadingFlow({ } else { el.style.transform = `translate3d(${x}px, ${y}px, 0) translate(-50%, -50%) rotate(${rot}deg) scale(${scale})`; } - el.style.opacity = String(alpha); + // Dimming is a solid ink-toward-paper mix, not translucency: + // dimmed headings must still mask the footage passing beneath + // them, and translucent gray over video reads as no contrast. + el.style.opacity = "1"; + el.style.color = + alpha >= 0.995 + ? "var(--ink-strong)" + : `color-mix(in srgb, var(--ink-strong) ${(clamp01(alpha) * 100).toFixed(1)}%, var(--bg))`; if (alpha > maxAlpha) maxAlpha = alpha; // Per-axis extents (swapped when the glyph is rotated toward // vertical) so hit boxes stay tight: a shared radius made @@ -514,13 +521,19 @@ export default function HeadingFlow({ className="fixed z-40" style={{ bottom: layout.queuePad, ...sideStyle }} > - {/* Same contrast pool as the full instrument's queue. */} + {/* Same frosted contrast pool as the full instrument's queue. */}