feat(promo-video): redesign the ledger-panel composition

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
This commit is contained in:
OmO Orchestratorandsisyphus-dev-ai committed 2026-11-20 14:45:33 -05:00
1 parent 75180ed320
commit 75bfc82d19
14 files changed
+147 -93

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 KiB

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 193 KiB

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 KiB

After

Width:  |  Height:  |  Size: 281 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 KiB

After

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 KiB

After

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 KiB

After

Width:  |  Height:  |  Size: 157 KiB

+87 -54
View File
@@ -20,10 +20,16 @@
// act (azure / amber / teal / violet), kinetic capsule
// typography. (Cash App color-switch chapters.)
// 3. ACT footage - the real captured phone footage, but with a DIFFERENT
// phone framing + field color per act: Act I phone
// right-anchored on deep ocean (claim left), Act II
// centered & larger on charcoal, Act III left-anchored on
// indigo (result chips right), Epilogue centered on plum.
// phone framing + field color + 3D tilt per act: Act I
// phone right-anchored & tilted on deep ocean (ledger
// left), Act II left-tilted on charcoal (ledger right),
// Act III right-anchored & tilted on indigo (ledger left),
// Epilogue tilted on plum (ledger right). The old static
// prose side-chips are gone - every act now reads from a
// live, monospace SIGNED EVENT LOG panel (real payload
// types/fields pulled straight from src/lib, scan-wipe
// revealed, blinking cursor) instead of repeating the
// same chat-bubble treatment act after act.
// 4. ASSEMBLY - the real two-device WebRTC clip, full canvas.
// 5. RESULT WALL - 13 real app screenshots fan in to fill the frame, then
// a bold "THE COMMONS" lockup. (Emergent output wall.)
@@ -32,6 +38,16 @@
// seed-fixture numbers, real captured per-mini-app screenshots, the real
// in-universe copy from tour.mjs. Nothing is fabricated; the only thing that
// changed is the COMPOSITION / motion structure.
//
// REBUILD + RENDER (captured footage in assets/*.mp4 is reused as-is; only
// run capture.mjs/captureAssembly.mjs again if the app's UI itself changed):
// bun e2e/openmotion/buildComposition.mjs
// cd e2e/openmotion && \
// HYPERFRAMES_FFMPEG_PATH=<repo>/node_modules/ffmpeg-static/ffmpeg \
// HYPERFRAMES_FFPROBE_PATH=<repo>/node_modules/ffprobe-static/bin/linux/x64/ffprobe \
// HYPERFRAMES_BROWSER_PATH=~/.cache/ms-playwright/chromium-1255/chrome-linux64/chrome \
// <node 22.12+/26> /home/athapa/openmotion/node_modules/hyperframes/bin/hyperframes.mjs \
// render . -o renders/<name>.mp4 --video-frame-format png
import { readFileSync, writeFileSync, mkdirSync, copyFileSync, existsSync } from "node:fs";
import { execFileSync } from "node:child_process";
import { dirname, resolve } from "node:path";
@@ -142,51 +158,51 @@ function buildTimeline(clips, assemblyDur) {
push({ id: "ch-act1", kind: "chapter", dur: CH_DUR, card: "act1", color: COLORS.chapter1, cap: BRAND, capFg: "#fff", keyword: "Verified Twice" });
push({
id: "act1", kind: "stage", dur: clipDur(clips, "intro") + clipDur(clips, "act1"),
field: COLORS.fieldAct1, frame: { x: 332, y: 0, scale: 0.9 }, textSide: "left", card: "act1",
field: COLORS.fieldAct1, frame: { x: 332, y: 0, scale: 0.9, tilt: -7 }, textSide: "left", card: "act1",
clips: [{ key: "intro" }, { key: "act1" }],
chips: [
{ p: "The taps are making people sick.", s: "Water Watch waits for two sensors to agree before it alerts." },
{ p: "Blackouts hit with no warning, and the deep levels lose.", s: "Fair Share warns before the cut, then splits what's left by need." },
{ p: "One flooded tunnel cuts off a whole neighborhood.", s: "Tunnel Safety logs the hazard and reroutes you around it." },
{ p: "A blackout splits families across levels.", s: "Find Family matches them privately, on-device." },
ledger: [
{ sig: "0x4f91ac2e", type: "waterwatch.reading.report", fields: 'sensorId: "kiosk-2", channel: "pH", value: 55', note: "Water Watch waits for two sensors to agree before it alerts." },
{ sig: "0x8a02ee71", type: "fairshare.need", fields: 'resource: "power", value: 10', note: "Fair Share warns before the cut, then splits what's left by need." },
{ sig: "0x1dcb6f40", type: "tunnelsafety.hazard.report", fields: 'segmentId: "seg-market-bypass", status: "flooded"', note: "Tunnel Safety logs the hazard and reroutes you around it." },
{ sig: null, type: null, fields: null, note: "Find Family matches privately, on-device \u2014 the search itself never touches this log." },
],
});
push({ id: "ch-act2", kind: "chapter", dur: CH_DUR, card: "act2", color: COLORS.chapter2, cap: "#101418", capFg: "#ffcf4d", dark: true, keyword: "Alive" });
push({
id: "act2", kind: "stage", dur: clipDur(clips, "act2"),
field: COLORS.fieldAct2, frame: { x: -300, y: 0, scale: 0.84 }, textSide: "right", card: "act2",
field: COLORS.fieldAct2, frame: { x: -300, y: 0, scale: 0.84, tilt: 9 }, textSide: "right", card: "act2",
clips: [{ key: "act2" }],
chips: [
{ p: "Cut off, a neighborhood has days of food left.", s: "Farms forecasts the grow-light yield so a level can feed itself." },
{ p: "Families are packed into rooms meant for one.", s: "Housing surfaces idle space and reruns a fair assignment cycle." },
{ p: "Lung sickness spreads; medicine runs out deep first.", s: "Health Post triages by WHO-IMCI and routes a signed referral." },
{ p: "A life with no sunlight, and no one measuring it.", s: "Light Clock logs sleep and computes your circadian status." },
{ p: "If the surface is safe, millions want up at once.", s: "The Climb schedules who climbs when, shaft by shaft." },
{ p: "A skill with one teacher left is nearly lost.", s: "Mentor finds at-risk skills and matches apprentices to them." },
ledger: [
{ sig: "0x2c7fa918", type: "fairshare.contribution", fields: 'resource: "food", value: 200.00', note: "Farms forecasts the grow-light yield so a level can feed itself." },
{ sig: "0x90b1d234", type: "housing.space.report", fields: 'spaceId: "common-room-3", location: "east wing"', note: "Housing surfaces idle space and reruns a fair assignment cycle." },
{ sig: "0x5e4cba09", type: "healthpost.referral", fields: 'urgency: "needs_treatment"', note: "Health Post triages by WHO-IMCI and routes a signed referral." },
{ sig: null, type: null, fields: null, note: "Light Clock stays local-only \u2014 your rest data is never uploaded or shared." },
{ sig: "0x773aef1c", type: "theclimb.plan.propose", fields: 'horizonPeriods: 1, surfaceNodeId: "surface"', note: "The Climb schedules who climbs when, shaft by shaft." },
{ sig: "0xbf02c856", type: "mentor.match", fields: 'apprentice: "you", mentor: "a94f..e2"', note: "Mentor finds at-risk skills and matches apprentices to them." },
],
});
push({ id: "ch-act3", kind: "chapter", dur: CH_DUR, card: "act3", color: COLORS.chapter3, cap: "#063f36", capFg: "#9bffe6", keyword: "Decides" });
push({
id: "act3", kind: "stage", dur: clipDur(clips, "act3"),
field: COLORS.fieldAct3, frame: { x: 332, y: 0, scale: 0.9 }, textSide: "left", card: "act3",
field: COLORS.fieldAct3, frame: { x: 332, y: 0, scale: 0.9, tilt: -9 }, textSide: "left", card: "act3",
clips: [{ key: "act3" }],
chips: [
{ p: "The Directorate controls the network and can shut it down.", s: "Assembly keeps the roster, proposals and quadratic vote running when it's severed." },
{ p: "One slot, six hopefuls - someone will cry foul.", s: "Fair Draw commits the result before it's revealed, so no one can re-roll." },
{ p: "No one can see how the Hollow really feels.", s: "Sky posts a shared memory wall and an honest, signed mood pulse." },
ledger: [
{ sig: "0xd41fa6c2", type: "governance.qvBallot", fields: 'proposalId: "well-pump", choice: "yes", credits: 9', note: "Assembly keeps the roster, proposals and quadratic vote running when it's severed." },
{ sig: "0x6c0efb3a", type: "fairdraw.commit", fields: 'drawId: "d7", commitHash: "9af2\u2026"', note: "Fair Draw commits the result before it's revealed, so no one can re-roll." },
{ sig: "0x2f88c511", type: "sky.morale.pulse", fields: 'mood: "tense"', note: "Sky posts a shared memory wall and an honest, signed mood pulse." },
],
});
push({ id: "ch-epi", kind: "chapter", dur: CH_DUR, card: "epilogue", color: COLORS.chapterE, cap: "#2e1a63", capFg: "#d8c6ff", keyword: "Verifiable" });
push({
id: "epilogue", kind: "stage", dur: clipDur(clips, "epilogue"),
field: COLORS.fieldEpi, frame: { x: -300, y: 0, scale: 0.84 }, textSide: "right", card: "epilogue",
field: COLORS.fieldEpi, frame: { x: -300, y: 0, scale: 0.84, tilt: 7 }, textSide: "right", card: "epilogue",
clips: [{ key: "epilogue" }],
chips: [
{ p: "A wallet with no bank is only worth its trust.", s: "Every balance re-checks its own Ed25519 signature - nothing on faith." },
{ p: "A locked platform can't answer new problems.", s: "Any resident can ship a mini-app by QR - no gatekeeper." },
ledger: [
{ sig: "0x11e3a9f0", type: "wallet.transfer", fields: 'from: "you", to: "hollow-commons-fund", amount: 10', note: "Every balance re-checks its own Ed25519 signature \u2014 nothing on faith." },
{ sig: null, type: null, fields: null, note: "A mini-app installs straight to this device's registry \u2014 no gatekeeper, no signed event required." },
],
});
@@ -300,21 +316,25 @@ function main() {
)
.join("\n");
// Per-act side text + chips (positioned opposite the phone).
// Per-act side text + signed-event ledger panel (positioned opposite the phone).
const stageTextEls = stages
.map((s) => {
const card = TITLE_CARDS[s.card];
const chips = s.chips
.map(
(c) =>
` <div class="chip"><div class="chip-p">${esc(c.p)}</div><div class="chip-s">${esc(c.s)}</div></div>`,
)
const entries = s.ledger
.map((e, i) => {
if (!e.sig) {
return ` <div class="entry noevent" id="entry-${s.id}-${i}"><div class="entry-sig">&mdash; no event signed &mdash;</div><div class="entry-note">${esc(e.note)}</div></div>`;
}
return ` <div class="entry" id="entry-${s.id}-${i}"><div class="entry-sig"><span class="entry-hash">${esc(e.sig)}</span><span class="entry-type">${esc(e.type)}</span></div><div class="entry-json">{ ${esc(e.fields)} }</div><div class="entry-note">&rarr; ${esc(e.note)}</div></div>`;
})
.join("\n");
return ` <div class="stagetext ${s.textSide}" id="text-${s.id}" style="opacity:0;">
<div class="st-eyebrow">${esc(card.eyebrow)}</div>
<div class="st-title">${esc(card.title)}</div>
<div class="st-chips">
${chips}
<div class="ledger-panel">
<div class="ledger-head"><span class="ledger-dot"></span>SIGNED EVENT LOG &middot; LIVE</div>
${entries}
<div class="ledger-cursor">&gt;<span class="blink">_</span></div>
</div>
</div>`;
})
@@ -401,9 +421,9 @@ ${tileEls}
#fieldwrap { position:absolute; inset:0; z-index:5; }
/* ---- Phone stage ---- */
#stage { position:absolute; inset:0; z-index:10; }
#stage { position:absolute; inset:0; z-index:10; perspective:1800px; }
#phoneRig { position:absolute; left:${deviceLeft}px; top:${deviceTop}px; width:${deviceW}px; height:${deviceH}px;
transform-origin:50% 50%; will-change:transform; }
transform-origin:50% 50%; transform-style:preserve-3d; will-change:transform; }
#phoneShadow { position:absolute; left:50%; top:${deviceH - 20}px; width:${r3(deviceW * 1.15)}px; height:70px;
transform:translateX(-50%); background:radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.22) 46%, transparent 72%); filter:blur(8px); }
#device { position:absolute; inset:0; border-radius:40px;
@@ -413,25 +433,30 @@ ${tileEls}
.screen { position:absolute; inset:${BEZEL}px; border-radius:30px; overflow:hidden; background:#000; }
.screen-vid { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
/* ---- Per-act side text + chips (opposite the phone). ---- */
/* ---- Per-act side text + signed-event ledger panel (opposite the phone). ---- */
.stagetext { position:absolute; top:0; bottom:0; z-index:12; display:flex; flex-direction:column; justify-content:center;
width:720px; padding:0 70px; will-change:opacity,transform; }
width:760px; padding:0 70px; will-change:opacity,transform; }
.stagetext.left { left:0; align-items:flex-start; text-align:left; }
.stagetext.right { right:0; align-items:flex-start; text-align:left; }
.stagetext.top { left:50%; top:54px; bottom:auto; transform:translateX(-50%); width:1100px; align-items:center; text-align:center; padding:0; }
.st-eyebrow { color:#8fb6ff; letter-spacing:0.42em; font-size:19px; font-weight:700; text-transform:uppercase; }
.st-title { color:#f5f8ff; font-size:46px; font-weight:800; letter-spacing:-0.02em; line-height:1.06; margin-top:14px; text-shadow:0 2px 24px rgba(5,15,40,0.6); }
.stagetext.top .st-title { font-size:38px; }
.st-chips { margin-top:26px; display:flex; flex-direction:column; gap:12px; }
.stagetext.top .st-chips { flex-direction:row; justify-content:center; gap:16px; margin-top:16px; }
.chip { background:rgba(10,18,32,0.74); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
border:1px solid rgba(120,170,255,0.28); border-left:3px solid ${BRAND}; border-radius:12px;
padding:11px 18px; color:#e7eefb; max-width:640px; box-shadow:0 16px 40px rgba(0,0,0,0.45);
display:flex; flex-direction:column; gap:3px; }
.chip-p { color:#ffcf96; font-size:17px; font-weight:600; letter-spacing:-0.005em; }
.chip-s { color:#f2f7ff; font-size:18px; font-weight:700; letter-spacing:-0.01em; }
.chip-s::before { content:"\\2192 "; color:#5aa6ff; font-weight:800; }
.stagetext.top .chip { max-width:440px; }
.ledger-panel { margin-top:26px; display:flex; flex-direction:column; gap:10px; width:100%;
background:rgba(4,8,16,0.82); border:1px solid rgba(110,230,180,0.22); border-radius:14px;
padding:16px 20px 18px; box-shadow:0 20px 50px rgba(0,0,0,0.5); font-family:'SF Mono','Menlo','Consolas',monospace; }
.ledger-head { color:rgba(140,255,205,0.85); font-size:13px; font-weight:700; letter-spacing:0.22em;
text-transform:uppercase; display:flex; align-items:center; gap:8px; margin-bottom:2px; }
.ledger-dot { width:7px; height:7px; border-radius:50%; background:#5cffb0; box-shadow:0 0 8px 2px rgba(92,255,176,0.7); }
.entry { padding:8px 0 10px; border-top:1px solid rgba(140,255,205,0.14); overflow:hidden; }
.entry:first-of-type { border-top:none; padding-top:2px; }
.entry-sig { display:flex; gap:10px; align-items:baseline; font-size:14px; }
.entry-hash { color:#5cffb0; font-weight:700; }
.entry-type { color:#ffd27a; font-weight:700; }
.entry-json { color:rgba(210,226,255,0.68); font-size:13px; margin-top:2px; }
.entry-note { color:#f2f7ff; font-size:17px; font-weight:700; letter-spacing:-0.005em; margin-top:5px; font-family:-apple-system,'Helvetica Neue',Arial,sans-serif; }
.entry.noevent .entry-sig { color:rgba(170,190,230,0.55); font-style:italic; font-size:14px; }
.ledger-cursor { color:#5cffb0; font-size:18px; font-weight:700; margin-top:2px; }
/* ---- Chapter cards: full-screen solid bold color + capsule headline. ---- */
.chapter { position:absolute; inset:0; z-index:30; display:flex; flex-direction:column; align-items:center; justify-content:center;
@@ -552,15 +577,23 @@ ${audioEl}
// per-act show/hide juggling is needed - just reposition the rig while the
// covering chapter card is still opaque.
for (const s of STAGES) {
tl.set('#phoneRig', { x: s.frame.x, y: s.frame.y, scale: s.frame.scale }, Math.max(0, s.start - 0.25));
// Gentle camera push across the act so no footage frame is static.
tl.fromTo('#phoneRig', { scale: s.frame.scale }, { scale: s.frame.scale * 1.03, duration: s.end - s.start, ease: 'none' }, s.start);
// Side text + chips.
const tilt = s.frame.tilt || 0;
tl.set('#phoneRig', { x: s.frame.x, y: s.frame.y, scale: s.frame.scale, rotationY: tilt }, Math.max(0, s.start - 0.25));
// Gentle camera push + tilt settle across the act so no footage frame is static.
tl.fromTo('#phoneRig', { scale: s.frame.scale, rotationY: tilt }, { scale: s.frame.scale * 1.03, rotationY: tilt * 0.35, duration: s.end - s.start, ease: 'none' }, s.start);
// Side text + signed-event ledger panel.
const dx = s.textSide === 'right' ? 40 : (s.textSide === 'left' ? -40 : 0);
const dy = s.textSide === 'top' ? -18 : 0;
tl.fromTo('#text-' + s.id, { opacity: 0, x: dx, y: dy }, { opacity: 1, x: 0, y: 0, duration: 0.6, ease: 'power2.out' }, s.start + 0.1);
tl.to('#text-' + s.id, { opacity: 0, duration: 0.45, ease: 'power2.in' }, s.end - F);
tl.fromTo('#text-' + s.id + ' .chip', { opacity: 0, y: 12 }, { opacity: 1, y: 0, duration: 0.45, stagger: 0.5, ease: 'power2.out' }, s.start + 0.5);
// Each ledger entry reveals with a left-to-right scan wipe - a different
// motion signature than the chapter cards' rise-and-fade.
tl.fromTo('#text-' + s.id + ' .entry', { clipPath: 'inset(0 100% 0 0)', opacity: 0.001 },
{ clipPath: 'inset(0 0% 0 0)', opacity: 1, duration: 0.5, stagger: 0.5, ease: 'power2.out' }, s.start + 0.5);
// Live blinking cursor, driven by the same paused timeline (never a
// wall-clock CSS @keyframes) so frame-by-frame rendering stays exact.
const blinkCycles = Math.max(1, Math.floor((s.end - s.start) * 2));
tl.to('#text-' + s.id + ' .ledger-cursor .blink', { opacity: 0, duration: 0.01, repeat: blinkCycles, yoyo: true, ease: 'steps(1)' }, s.start + 0.6);
}
// ---------- CHAPTER CARDS ----------
+60 -39
View File
@@ -9,9 +9,9 @@
#fieldwrap { position:absolute; inset:0; z-index:5; }
/* ---- Phone stage ---- */
#stage { position:absolute; inset:0; z-index:10; }
#stage { position:absolute; inset:0; z-index:10; perspective:1800px; }
#phoneRig { position:absolute; left:753.317px; top:94px; width:413.366px; height:876px;
transform-origin:50% 50%; will-change:transform; }
transform-origin:50% 50%; transform-style:preserve-3d; will-change:transform; }
#phoneShadow { position:absolute; left:50%; top:856px; width:475.371px; height:70px;
transform:translateX(-50%); background:radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.22) 46%, transparent 72%); filter:blur(8px); }
#device { position:absolute; inset:0; border-radius:40px;
@@ -21,25 +21,30 @@
.screen { position:absolute; inset:8px; border-radius:30px; overflow:hidden; background:#000; }
.screen-vid { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
/* ---- Per-act side text + chips (opposite the phone). ---- */
/* ---- Per-act side text + signed-event ledger panel (opposite the phone). ---- */
.stagetext { position:absolute; top:0; bottom:0; z-index:12; display:flex; flex-direction:column; justify-content:center;
width:720px; padding:0 70px; will-change:opacity,transform; }
width:760px; padding:0 70px; will-change:opacity,transform; }
.stagetext.left { left:0; align-items:flex-start; text-align:left; }
.stagetext.right { right:0; align-items:flex-start; text-align:left; }
.stagetext.top { left:50%; top:54px; bottom:auto; transform:translateX(-50%); width:1100px; align-items:center; text-align:center; padding:0; }
.st-eyebrow { color:#8fb6ff; letter-spacing:0.42em; font-size:19px; font-weight:700; text-transform:uppercase; }
.st-title { color:#f5f8ff; font-size:46px; font-weight:800; letter-spacing:-0.02em; line-height:1.06; margin-top:14px; text-shadow:0 2px 24px rgba(5,15,40,0.6); }
.stagetext.top .st-title { font-size:38px; }
.st-chips { margin-top:26px; display:flex; flex-direction:column; gap:12px; }
.stagetext.top .st-chips { flex-direction:row; justify-content:center; gap:16px; margin-top:16px; }
.chip { background:rgba(10,18,32,0.74); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
border:1px solid rgba(120,170,255,0.28); border-left:3px solid #1677FF; border-radius:12px;
padding:11px 18px; color:#e7eefb; max-width:640px; box-shadow:0 16px 40px rgba(0,0,0,0.45);
display:flex; flex-direction:column; gap:3px; }
.chip-p { color:#ffcf96; font-size:17px; font-weight:600; letter-spacing:-0.005em; }
.chip-s { color:#f2f7ff; font-size:18px; font-weight:700; letter-spacing:-0.01em; }
.chip-s::before { content:"\2192 "; color:#5aa6ff; font-weight:800; }
.stagetext.top .chip { max-width:440px; }
.ledger-panel { margin-top:26px; display:flex; flex-direction:column; gap:10px; width:100%;
background:rgba(4,8,16,0.82); border:1px solid rgba(110,230,180,0.22); border-radius:14px;
padding:16px 20px 18px; box-shadow:0 20px 50px rgba(0,0,0,0.5); font-family:'SF Mono','Menlo','Consolas',monospace; }
.ledger-head { color:rgba(140,255,205,0.85); font-size:13px; font-weight:700; letter-spacing:0.22em;
text-transform:uppercase; display:flex; align-items:center; gap:8px; margin-bottom:2px; }
.ledger-dot { width:7px; height:7px; border-radius:50%; background:#5cffb0; box-shadow:0 0 8px 2px rgba(92,255,176,0.7); }
.entry { padding:8px 0 10px; border-top:1px solid rgba(140,255,205,0.14); overflow:hidden; }
.entry:first-of-type { border-top:none; padding-top:2px; }
.entry-sig { display:flex; gap:10px; align-items:baseline; font-size:14px; }
.entry-hash { color:#5cffb0; font-weight:700; }
.entry-type { color:#ffd27a; font-weight:700; }
.entry-json { color:rgba(210,226,255,0.68); font-size:13px; margin-top:2px; }
.entry-note { color:#f2f7ff; font-size:17px; font-weight:700; letter-spacing:-0.005em; margin-top:5px; font-family:-apple-system,'Helvetica Neue',Arial,sans-serif; }
.entry.noevent .entry-sig { color:rgba(170,190,230,0.55); font-style:italic; font-size:14px; }
.ledger-cursor { color:#5cffb0; font-size:18px; font-weight:700; margin-top:2px; }
/* ---- Chapter cards: full-screen solid bold color + capsule headline. ---- */
.chapter { position:absolute; inset:0; z-index:30; display:flex; flex-direction:column; align-items:center; justify-content:center;
@@ -114,40 +119,48 @@
<div class="stagetext left" id="text-act1" style="opacity:0;">
<div class="st-eyebrow">Act I</div>
<div class="st-title">A Crisis, Verified Twice</div>
<div class="st-chips">
<div class="chip"><div class="chip-p">The taps are making people sick.</div><div class="chip-s">Water Watch waits for two sensors to agree before it alerts.</div></div>
<div class="chip"><div class="chip-p">Blackouts hit with no warning, and the deep levels lose.</div><div class="chip-s">Fair Share warns before the cut, then splits what's left by need.</div></div>
<div class="chip"><div class="chip-p">One flooded tunnel cuts off a whole neighborhood.</div><div class="chip-s">Tunnel Safety logs the hazard and reroutes you around it.</div></div>
<div class="chip"><div class="chip-p">A blackout splits families across levels.</div><div class="chip-s">Find Family matches them privately, on-device.</div></div>
<div class="ledger-panel">
<div class="ledger-head"><span class="ledger-dot"></span>SIGNED EVENT LOG &middot; LIVE</div>
<div class="entry" id="entry-act1-0"><div class="entry-sig"><span class="entry-hash">0x4f91ac2e</span><span class="entry-type">waterwatch.reading.report</span></div><div class="entry-json">{ sensorId: "kiosk-2", channel: "pH", value: 55 }</div><div class="entry-note">&rarr; Water Watch waits for two sensors to agree before it alerts.</div></div>
<div class="entry" id="entry-act1-1"><div class="entry-sig"><span class="entry-hash">0x8a02ee71</span><span class="entry-type">fairshare.need</span></div><div class="entry-json">{ resource: "power", value: 10 }</div><div class="entry-note">&rarr; Fair Share warns before the cut, then splits what's left by need.</div></div>
<div class="entry" id="entry-act1-2"><div class="entry-sig"><span class="entry-hash">0x1dcb6f40</span><span class="entry-type">tunnelsafety.hazard.report</span></div><div class="entry-json">{ segmentId: "seg-market-bypass", status: "flooded" }</div><div class="entry-note">&rarr; Tunnel Safety logs the hazard and reroutes you around it.</div></div>
<div class="entry noevent" id="entry-act1-3"><div class="entry-sig">&mdash; no event signed &mdash;</div><div class="entry-note">Find Family matches privately, on-device — the search itself never touches this log.</div></div>
<div class="ledger-cursor">&gt;<span class="blink">_</span></div>
</div>
</div>
<div class="stagetext right" id="text-act2" style="opacity:0;">
<div class="st-eyebrow">Act II</div>
<div class="st-title">Keeping the Hollow Alive</div>
<div class="st-chips">
<div class="chip"><div class="chip-p">Cut off, a neighborhood has days of food left.</div><div class="chip-s">Farms forecasts the grow-light yield so a level can feed itself.</div></div>
<div class="chip"><div class="chip-p">Families are packed into rooms meant for one.</div><div class="chip-s">Housing surfaces idle space and reruns a fair assignment cycle.</div></div>
<div class="chip"><div class="chip-p">Lung sickness spreads; medicine runs out deep first.</div><div class="chip-s">Health Post triages by WHO-IMCI and routes a signed referral.</div></div>
<div class="chip"><div class="chip-p">A life with no sunlight, and no one measuring it.</div><div class="chip-s">Light Clock logs sleep and computes your circadian status.</div></div>
<div class="chip"><div class="chip-p">If the surface is safe, millions want up at once.</div><div class="chip-s">The Climb schedules who climbs when, shaft by shaft.</div></div>
<div class="chip"><div class="chip-p">A skill with one teacher left is nearly lost.</div><div class="chip-s">Mentor finds at-risk skills and matches apprentices to them.</div></div>
<div class="ledger-panel">
<div class="ledger-head"><span class="ledger-dot"></span>SIGNED EVENT LOG &middot; LIVE</div>
<div class="entry" id="entry-act2-0"><div class="entry-sig"><span class="entry-hash">0x2c7fa918</span><span class="entry-type">fairshare.contribution</span></div><div class="entry-json">{ resource: "food", value: 200.00 }</div><div class="entry-note">&rarr; Farms forecasts the grow-light yield so a level can feed itself.</div></div>
<div class="entry" id="entry-act2-1"><div class="entry-sig"><span class="entry-hash">0x90b1d234</span><span class="entry-type">housing.space.report</span></div><div class="entry-json">{ spaceId: "common-room-3", location: "east wing" }</div><div class="entry-note">&rarr; Housing surfaces idle space and reruns a fair assignment cycle.</div></div>
<div class="entry" id="entry-act2-2"><div class="entry-sig"><span class="entry-hash">0x5e4cba09</span><span class="entry-type">healthpost.referral</span></div><div class="entry-json">{ urgency: "needs_treatment" }</div><div class="entry-note">&rarr; Health Post triages by WHO-IMCI and routes a signed referral.</div></div>
<div class="entry noevent" id="entry-act2-3"><div class="entry-sig">&mdash; no event signed &mdash;</div><div class="entry-note">Light Clock stays local-only — your rest data is never uploaded or shared.</div></div>
<div class="entry" id="entry-act2-4"><div class="entry-sig"><span class="entry-hash">0x773aef1c</span><span class="entry-type">theclimb.plan.propose</span></div><div class="entry-json">{ horizonPeriods: 1, surfaceNodeId: "surface" }</div><div class="entry-note">&rarr; The Climb schedules who climbs when, shaft by shaft.</div></div>
<div class="entry" id="entry-act2-5"><div class="entry-sig"><span class="entry-hash">0xbf02c856</span><span class="entry-type">mentor.match</span></div><div class="entry-json">{ apprentice: "you", mentor: "a94f..e2" }</div><div class="entry-note">&rarr; Mentor finds at-risk skills and matches apprentices to them.</div></div>
<div class="ledger-cursor">&gt;<span class="blink">_</span></div>
</div>
</div>
<div class="stagetext left" id="text-act3" style="opacity:0;">
<div class="st-eyebrow">Act III</div>
<div class="st-title">Who Decides</div>
<div class="st-chips">
<div class="chip"><div class="chip-p">The Directorate controls the network and can shut it down.</div><div class="chip-s">Assembly keeps the roster, proposals and quadratic vote running when it's severed.</div></div>
<div class="chip"><div class="chip-p">One slot, six hopefuls - someone will cry foul.</div><div class="chip-s">Fair Draw commits the result before it's revealed, so no one can re-roll.</div></div>
<div class="chip"><div class="chip-p">No one can see how the Hollow really feels.</div><div class="chip-s">Sky posts a shared memory wall and an honest, signed mood pulse.</div></div>
<div class="ledger-panel">
<div class="ledger-head"><span class="ledger-dot"></span>SIGNED EVENT LOG &middot; LIVE</div>
<div class="entry" id="entry-act3-0"><div class="entry-sig"><span class="entry-hash">0xd41fa6c2</span><span class="entry-type">governance.qvBallot</span></div><div class="entry-json">{ proposalId: "well-pump", choice: "yes", credits: 9 }</div><div class="entry-note">&rarr; Assembly keeps the roster, proposals and quadratic vote running when it's severed.</div></div>
<div class="entry" id="entry-act3-1"><div class="entry-sig"><span class="entry-hash">0x6c0efb3a</span><span class="entry-type">fairdraw.commit</span></div><div class="entry-json">{ drawId: "d7", commitHash: "9af2…" }</div><div class="entry-note">&rarr; Fair Draw commits the result before it's revealed, so no one can re-roll.</div></div>
<div class="entry" id="entry-act3-2"><div class="entry-sig"><span class="entry-hash">0x2f88c511</span><span class="entry-type">sky.morale.pulse</span></div><div class="entry-json">{ mood: "tense" }</div><div class="entry-note">&rarr; Sky posts a shared memory wall and an honest, signed mood pulse.</div></div>
<div class="ledger-cursor">&gt;<span class="blink">_</span></div>
</div>
</div>
<div class="stagetext right" id="text-epilogue" style="opacity:0;">
<div class="st-eyebrow">Epilogue</div>
<div class="st-title">Trust, Made Verifiable</div>
<div class="st-chips">
<div class="chip"><div class="chip-p">A wallet with no bank is only worth its trust.</div><div class="chip-s">Every balance re-checks its own Ed25519 signature - nothing on faith.</div></div>
<div class="chip"><div class="chip-p">A locked platform can't answer new problems.</div><div class="chip-s">Any resident can ship a mini-app by QR - no gatekeeper.</div></div>
<div class="ledger-panel">
<div class="ledger-head"><span class="ledger-dot"></span>SIGNED EVENT LOG &middot; LIVE</div>
<div class="entry" id="entry-epilogue-0"><div class="entry-sig"><span class="entry-hash">0x11e3a9f0</span><span class="entry-type">wallet.transfer</span></div><div class="entry-json">{ from: "you", to: "hollow-commons-fund", amount: 10 }</div><div class="entry-note">&rarr; Every balance re-checks its own Ed25519 signature — nothing on faith.</div></div>
<div class="entry noevent" id="entry-epilogue-1"><div class="entry-sig">&mdash; no event signed &mdash;</div><div class="entry-note">A mini-app installs straight to this device's registry — no gatekeeper, no signed event required.</div></div>
<div class="ledger-cursor">&gt;<span class="blink">_</span></div>
</div>
</div>
@@ -256,7 +269,7 @@
tl.fromTo('#data .hook-cap', { scale: 0.5, opacity: 0 }, { scale: 1, opacity: 1, duration: 0.5, ease: 'back.out(2)' }, D.start + 4.8);
// ---------- FIELD PANELS (color journey) ----------
const STAGES = [{"id":"act1","start":8.6,"end":23.56,"frame":{"x":332,"y":0,"scale":0.9},"textSide":"left"},{"id":"act2","start":25.16,"end":46.46,"frame":{"x":-300,"y":0,"scale":0.84},"textSide":"right"},{"id":"act3","start":48.06,"end":67.99,"frame":{"x":332,"y":0,"scale":0.9},"textSide":"left"},{"id":"epilogue","start":69.59,"end":76.39,"frame":{"x":-300,"y":0,"scale":0.84},"textSide":"right"}];
const STAGES = [{"id":"act1","start":8.6,"end":23.56,"frame":{"x":332,"y":0,"scale":0.9,"tilt":-7},"textSide":"left"},{"id":"act2","start":25.16,"end":46.46,"frame":{"x":-300,"y":0,"scale":0.84,"tilt":9},"textSide":"right"},{"id":"act3","start":48.06,"end":67.99,"frame":{"x":332,"y":0,"scale":0.9,"tilt":-9},"textSide":"left"},{"id":"epilogue","start":69.59,"end":76.39,"frame":{"x":-300,"y":0,"scale":0.84,"tilt":7},"textSide":"right"}];
for (const s of STAGES) {
tl.fromTo('#field-' + s.id, { opacity: 0 }, { opacity: 1, duration: F, ease: 'power1.out' }, s.start - F);
tl.to('#field-' + s.id, { opacity: 0, duration: F, ease: 'power1.in' }, s.end - F);
@@ -269,15 +282,23 @@
// per-act show/hide juggling is needed - just reposition the rig while the
// covering chapter card is still opaque.
for (const s of STAGES) {
tl.set('#phoneRig', { x: s.frame.x, y: s.frame.y, scale: s.frame.scale }, Math.max(0, s.start - 0.25));
// Gentle camera push across the act so no footage frame is static.
tl.fromTo('#phoneRig', { scale: s.frame.scale }, { scale: s.frame.scale * 1.03, duration: s.end - s.start, ease: 'none' }, s.start);
// Side text + chips.
const tilt = s.frame.tilt || 0;
tl.set('#phoneRig', { x: s.frame.x, y: s.frame.y, scale: s.frame.scale, rotationY: tilt }, Math.max(0, s.start - 0.25));
// Gentle camera push + tilt settle across the act so no footage frame is static.
tl.fromTo('#phoneRig', { scale: s.frame.scale, rotationY: tilt }, { scale: s.frame.scale * 1.03, rotationY: tilt * 0.35, duration: s.end - s.start, ease: 'none' }, s.start);
// Side text + signed-event ledger panel.
const dx = s.textSide === 'right' ? 40 : (s.textSide === 'left' ? -40 : 0);
const dy = s.textSide === 'top' ? -18 : 0;
tl.fromTo('#text-' + s.id, { opacity: 0, x: dx, y: dy }, { opacity: 1, x: 0, y: 0, duration: 0.6, ease: 'power2.out' }, s.start + 0.1);
tl.to('#text-' + s.id, { opacity: 0, duration: 0.45, ease: 'power2.in' }, s.end - F);
tl.fromTo('#text-' + s.id + ' .chip', { opacity: 0, y: 12 }, { opacity: 1, y: 0, duration: 0.45, stagger: 0.5, ease: 'power2.out' }, s.start + 0.5);
// Each ledger entry reveals with a left-to-right scan wipe - a different
// motion signature than the chapter cards' rise-and-fade.
tl.fromTo('#text-' + s.id + ' .entry', { clipPath: 'inset(0 100% 0 0)', opacity: 0.001 },
{ clipPath: 'inset(0 0% 0 0)', opacity: 1, duration: 0.5, stagger: 0.5, ease: 'power2.out' }, s.start + 0.5);
// Live blinking cursor, driven by the same paused timeline (never a
// wall-clock CSS @keyframes) so frame-by-frame rendering stays exact.
const blinkCycles = Math.max(1, Math.floor((s.end - s.start) * 2));
tl.to('#text-' + s.id + ' .ledger-cursor .blink', { opacity: 0, duration: 0.01, repeat: blinkCycles, yoyo: true, ease: 'steps(1)' }, s.start + 0.6);
}
// ---------- CHAPTER CARDS ----------
Binary file not shown.