feat(promo-video): one blurb per mini-app, ~3min runtime (full-v10)

User feedback on full-v9.mp4 (91.9s): "too fast, too much text on screen."
Directive: "go over every mini app and have a short blurb about what it
does for you... You have 3 minutes."

- Replace all 13 ledger notes with short, second-person, benefit-framed
  blurbs (what each app does FOR a resident, not its internal mechanism).
- Give each of the 13 mini-apps its own individually-timed segment inside
  its act (previously several apps shared one continuously-playing window,
  which is why it still felt rushed after the last "one entry at a time" fix).
  Window duration = max(reading time at ~2 wps, real footage dwell, 8.5s floor).
- Hold mechanism: each app's own real dwell (empirically verified via
  frame-diffing + manually reading extracted frames from act*.mp4 - not
  derived from capture-manifest.json beats, which mark in-app events rather
  than the UI's own on-screen window, and don't account for the brief
  "back to home" / cross-app-revisit beat the real recording takes between
  almost every app pair) is captured as ONE real still frame
  (assets/app-<id>-hold.png) that becomes that app's entire on-screen
  window via a plain GSAP opacity set - no live <video> for any of the 13
  apps. Two live-video designs (shared-act-file clamp, then per-app trimmed
  clips) were tried first and both intermittently rendered a BLACK frame at
  an app's window start (reproduced on both a 0.85s and a 3.7s dwell clip),
  so live playback was dropped in favor of the always-reliable static
  snapshot; intro/epilogue keep real video playback (single dedicated
  files, never observed to glitch).
- Total runtime 182.1s (within the ~175-185s / "3 minutes" target), verified
  via ffprobe and a 39-frame (start/mid/end x 13 apps) manual QA pass
  confirming the correct blurb, the correct app on screen, and a clean
  hold with no bleed-through from a neighboring app.

Render: renders/full-v10.mp4 (182.1s), via the hyperframes CLI.
This commit is contained in:
OmO Orchestrator committed 2026-11-20 22:09:39 -05:00
1 parent 70ff5199bb
commit 7550a7f1bd
18 files changed
+249 -64

No files matched your search

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 376 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 637 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 KiB

+194 -36
View File
@@ -144,7 +144,134 @@ function clipDur(clips, name) {
return v;
}
function buildTimeline(clips, assemblyDur) {
// ---------------------------------------------------------------------
// Per-mini-app segments (REDESIGN-4: "3 minutes, one blurb each"). Each of
// the 13 mini-apps gets its OWN dedicated on-screen window inside its act's
// shared field/frame/ledger-panel, long enough to read a short benefit-first
// blurb (~2 words/sec). `mediaStart` is the real, already-captured footage
// offset (seconds) INTO that act's own asset file (assets/act1.mp4 etc.,
// verified against capture-manifest.json's beats minus the act's srcStartS) -
// never a fabricated timestamp. When an app's real dwell in the footage
// (time until the next app's mediaStart, or the asset's end) is shorter than
// its reading time, the extra window time is a HOLD: the same <video> keeps
// its data-duration open past the real footage it has, so the browser just
// clamps playback on the last real frame (standard HTML5 video seek-clamp
// behavior) while the blurb stays legible - no new footage is invented.
// ---------------------------------------------------------------------
const WORDS_PER_SEC = 2.1; // upper end of the ~1.5-2 wps comfortable reading pace
const READ_BUFFER_S = 0.4; // settle time for the scan-wipe reveal
const MIN_APP_WINDOW_S = 8.5; // floor so no app ever feels rushed even if its blurb is short
// `mediaStart`/`dwell` are EMPIRICALLY VERIFIED by frame-diffing + visually reading
// extracted frames from the real act*.mp4 assets (not derived from capture-manifest.json's
// `beats` offsets, which mark specific in-app EVENTS - like a referral firing or a reveal
// completing - rather than the on-screen window the app's own UI genuinely occupies, and
// which do not account for the brief "back to home" / cross-app-revisit beats the real tour
// recording takes between most apps). `dwell` is this app's own real screen-time ONLY, with
// zero bleed into any neighboring app's or the home grid's real footage, verified by reading
// a frame at both the top and tail of the window and at least one candidate transition point.
const APP_BLURBS = [
// NOTE on margins: the real tour recording takes a brief "back to home" (and
// sometimes a cross-app revisit) beat between almost every app pair, and that
// flash can land anywhere in a ~0.3-0.5s window around a casually-estimated
// boundary. Every mediaStart/dwell below is pulled back to the LAST FRAME
// TIMESTAMP ACTUALLY READ AND CONFIRMED CLEAN (not a midpoint/average of two
// bracketing checks) - dwell is therefore a safe lower bound on this app's
// real screen time, never an upper one; the hold mechanism makes up any
// difference, so under-estimating costs nothing but visual accuracy gains.
{ id: "waterwatch", act: "act1", mediaStart: 1.97, dwell: 5.63, sig: "0x4f91ac2e", type: "waterwatch.reading.report", fields: 'sensorId: "kiosk-2", channel: "pH", value: 55', note: "Catches a bad water reading before anyone drinks it \u2014 once a second sensor confirms it, everyone's ration adjusts automatically. No guessing, no rumors." },
{ id: "fairshare", act: "act1", mediaStart: 7.95, dwell: 0.85, sig: "0x8a02ee71", type: "fairshare.need", fields: 'resource: "power", value: 10', note: "Splits power, water, food, and cooling fairly by need, in real time \u2014 so a shortage gets rationed honestly instead of grabbed by whoever's fastest." },
{ id: "tunnelsafety", act: "act1", mediaStart: 9.25, dwell: 0.80, sig: "0x1dcb6f40", type: "tunnelsafety.hazard.report", fields: 'segmentId: "seg-market-bypass", status: "flooded"', note: "Report a flooded or blocked corridor once, and everyone's route around it updates automatically \u2014 with your real location attached if you allow it." },
{ id: "findfamily", act: "act1", mediaStart: 10.4, dwell: 1.40, sig: null, type: null, fields: null, note: "Search for a missing family member without anyone, even the app itself, ever seeing who you searched for \u2014 unless there's a real match." },
{ id: "farms", act: "act2", mediaStart: 2.4, dwell: 0.4, sig: "0x2c7fa918", type: "fairshare.contribution", fields: 'resource: "food", value: 200.00', note: "Plans what to grow and when, using real temperature data and your actual share of the power budget \u2014 not a guess." },
{ id: "housing", act: "act2", mediaStart: 4.8, dwell: 3.7, sig: "0x90b1d234", type: "housing.space.report", fields: 'spaceId: "common-room-3", location: "east wing"', note: "Assigns you a room fairly, accounting for accessibility needs and medical proximity \u2014 and remembers if you were shorted last time." },
{ id: "mentor", act: "act2", mediaStart: 9.4, dwell: 1.4, sig: "0xbf02c856", type: "mentor.match", fields: 'apprentice: "you", mentor: "a94f..e2"', note: "Flags the trade skills at risk of disappearing and matches you with someone who can teach you before that knowledge is gone." },
{ id: "healthpost", act: "act2", mediaStart: 11.2, dwell: 3.1, sig: "0x5e4cba09", type: "healthpost.referral", fields: 'urgency: "needs_treatment"', note: "Walks you through a real medical triage checklist and sends a signed referral straight to a clinician when you need one." },
{ id: "lightclock", act: "act2", mediaStart: 14.8, dwell: 0.8, sig: null, type: null, fields: null, note: "Helps you track your sleep rhythm without sunlight \u2014 from your own motion or a manual log, never shared, never used to ration anything." },
{ id: "theclimb", act: "act2", mediaStart: 16.8, dwell: 3.5, sig: "0x773aef1c", type: "theclimb.plan.propose", fields: 'horizonPeriods: 1, surfaceNodeId: "surface"', note: "Schedules who climbs to the surface and when, so the return doesn't turn into a crowd crush \u2014 ties break by a fair, public lottery." },
{ id: "qvballot", act: "act3", mediaStart: 0.5, dwell: 7.8, sig: "0xd41fa6c2", type: "governance.qvBallot", fields: 'proposalId: "well-pump", choice: "yes", credits: 9', note: "Keeps your community's votes and proposals running even if the network goes down \u2014 and heals back together once it's back up." },
{ id: "fairdraw", act: "act3", mediaStart: 8.9, dwell: 2.5, sig: "0x6c0efb3a", type: "fairdraw.commit", fields: 'drawId: "d7", commitHash: "9af2\u2026"', note: "Runs a lottery no one can rig \u2014 the result is locked in before it's ever revealed." },
{ id: "sky", act: "act3", mediaStart: 13.2, dwell: 5.6, sig: "0x2f88c511", type: "sky.morale.pulse", fields: 'mood: "tense"', note: "A shared mood board and an ambient day/night rhythm for everyone sheltering together \u2014 so the Hollow still feels alive." },
];
// Per-app window duration = max(comfortable reading time, real footage
// dwell, floor). `dwell` is each app's own EMPIRICALLY VERIFIED real-footage
// length (see APP_BLURBS comment above) - NOT inferred from the gap to the
// next app's mediaStart, because the real tour recording takes a "back to
// home" beat (and sometimes a brief cross-app revisit, e.g. Fair Share
// reappears mid-Act-II when Farms' forecast feeds its food tile) between most
// app pairs; trusting that gap as this app's dwell previously froze the hold
// on a contaminated frame from whatever came next.
function computeAppWindows() {
const windows = new Map();
for (const app of APP_BLURBS) {
const words = app.note.split(/\s+/).filter(Boolean).length;
const readTime = words / WORDS_PER_SEC + READ_BUFFER_S;
windows.set(app.id, { dur: r3(Math.max(readTime, app.dwell, MIN_APP_WINDOW_S)), dwell: r3(app.dwell) });
}
return windows;
}
// Lay out one act's apps back-to-back (hard cuts between apps, same
// convention the intro->act1 boundary already used) and return both the
// ledger (one entry per app, `at` = that app's window start relative to the
// stage) and the clip specs layoutClips() will turn into <video> windows.
function layoutAppStage(clips, windows, actKey, introKey) {
const apps = APP_BLURBS.filter((a) => a.act === actKey).sort((a, b) => a.mediaStart - b.mediaStart);
const clipSpecs = [];
let cursor = 0;
if (introKey) {
const introDur = clipDur(clips, introKey);
clipSpecs.push({ key: introKey, assetKey: introKey, mediaStart: 0, duration: introDur });
cursor = introDur;
}
const ledger = [];
const holdSpecs = [];
for (const app of apps) {
const { dur } = windows.get(app.id);
// DECISION: every app is a full-window STATIC SNAPSHOT (no <video> element
// for app segments at all - `intro`/`epilogue` still use real playback;
// those are single dedicated files, not many stacked clips sharing a
// handful of source files, and were never observed to glitch). Two
// independent live-video designs were tried and both intermittently
// rendered a BLACK frame at an app's own window start in this renderer -
// first traced to short (<2s) dwell clips, then reproduced again on a
// 3.7s dwell clip (housing), meaning the race isn't reliably bounded by
// clip length. A static <img> has no decode/seek dependency and therefore
// no such race; it is still a real captured frame from this app's own
// dwell (see extractAppClips below), never fabricated. The real captured
// MOTION during each app's dwell is sacrificed for a single still, which
// is accepted here because every app was already going to spend most of
// its window on a hold/freeze anyway (dwell << window duration for
// nearly all 13 apps).
holdSpecs.push({ id: app.id, start: r3(cursor), dwell: 0, windowDur: dur });
ledger.push({ sig: app.sig, type: app.type, fields: app.fields, note: app.note, at: r3(cursor) });
cursor = r3(cursor + dur);
}
return { dur: cursor, ledger, clipSpecs, holdSpecs };
}
// Snapshot each app's own real dwell (the footage between its real capture
// beat and the next app's, or the act's real end) to assets/app-<id>-hold.png.
// This is post-processing of footage already captured by tour.mjs/capture.mjs -
// no new recording. Every app is static-only (see layoutAppStage) so no .mp4
// is ever produced here, only the one still frame that becomes that app's
// entire on-screen window via a plain GSAP opacity set.
function extractAppClips() {
for (const app of APP_BLURBS) {
const srcPath = resolve(ASSETS_DIR, `${app.act}.mp4`);
const holdOut = resolve(ASSETS_DIR, `app-${app.id}-hold.png`);
execFileSync(
FFMPEG_BIN,
["-y", "-ss", String(Math.max(0, app.mediaStart + app.dwell - 0.05)), "-i", srcPath, "-frames:v", "1", holdOut],
{ stdio: ["ignore", "pipe", "pipe"] },
);
}
}
function buildTimeline(clips, assemblyDur, windows) {
const seg = [];
let t = 0;
const push = (s) => {
@@ -157,46 +284,41 @@ function buildTimeline(clips, assemblyDur) {
push({ id: "data", kind: "data", dur: DATA_DUR });
// Act I: intro clip (cold-start/home/admin) + act1 clip, phone right-anchored.
const allHolds = [];
const collectHolds = (stage, layout) => {
for (const h of layout.holdSpecs) allHolds.push({ ...h, start: r3(stage.start + h.start) });
};
// Act I: intro clip (cold-start/home/admin) + 4 individually-timed app windows.
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"),
const act1Layout = layoutAppStage(clips, windows, "act1", "intro");
const act1Stage = push({
id: "act1", kind: "stage", dur: act1Layout.dur,
field: COLORS.fieldAct1, frame: { x: 332, y: 0, scale: 0.9, tilt: -7 }, textSide: "left", card: "act1",
clips: [{ key: "intro" }, { key: "act1" }],
ledger: [
{ sig: "0x4f91ac2e", type: "waterwatch.reading.report", fields: 'sensorId: "kiosk-2", channel: "pH", value: 55', note: "CUSUM/EWMA change-point detection flags drift; an alert needs two graph-adjacent sensors in the real pipe network to corroborate before it fires.", at: 4.6 },
{ sig: "0x8a02ee71", type: "fairshare.need", fields: 'resource: "power", value: 10', note: "A real Fisher-market CEEI solver splits power, water, food, and cooling by need, with a live allocation-history trend for every resource.", at: 10.6 },
{ sig: "0x1dcb6f40", type: "tunnelsafety.hazard.report", fields: 'segmentId: "seg-market-bypass", status: "flooded"', note: "Real A* routing reroutes around any segment a hazard report closes, with a best-effort GPS fix via navigator.geolocation (honest fallback if denied).", at: 11.0 },
{ sig: null, type: null, fields: null, note: "A real DH-PSI protocol searches the resident directory \u2014 the query name never leaves this device \u2014 and residents can register themselves in, not just four hardcoded demo names.", at: 13.8 },
],
clips: act1Layout.clipSpecs,
ledger: act1Layout.ledger,
});
collectHolds(act1Stage, act1Layout);
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"),
const act2Layout = layoutAppStage(clips, windows, "act2", null);
const act2Stage = push({
id: "act2", kind: "stage", dur: act2Layout.dur,
field: COLORS.fieldAct2, frame: { x: -300, y: 0, scale: 0.84, tilt: 9 }, textSide: "right", card: "act2",
clips: [{ key: "act2" }],
ledger: [
{ sig: "0x2c7fa918", type: "fairshare.contribution", fields: 'resource: "food", value: 200.00', note: "A real GDD growing-degree-day model plus an LP optimizer plans what and when to plant; the grow-light power budget is read live from Fair Share's real allocation.", at: 2.4 },
{ sig: "0x90b1d234", type: "housing.space.report", fields: 'spaceId: "common-room-3", location: "east wing"', note: "A real MILP solver assigns space with step-free access and medical proximity as hard constraints; a fairness-debt ledger replays across cycles.", at: 5.0 },
{ sig: "0xbf02c856", type: "mentor.match", fields: 'apprentice: "you", mentor: "a94f..e2"', note: "Dependents-count skill-criticality ranking surfaces what's at risk of disappearing, then real ts-fsrs spaced repetition adapts the review plan to real outcomes.", at: 9.6 },
{ sig: "0x5e4cba09", type: "healthpost.referral", fields: 'urgency: "needs_treatment"', note: "WHO-IMCI protocol triage \u2014 age-banded danger signs, dehydration, pneumonia \u2014 feeds a real signed referral straight to the clinician queue.", at: 11.0 },
{ sig: null, type: null, fields: null, note: "A real circadian phase-response model (Hannay19) runs on a manual log or motion-sensor actigraphy \u2014 never a fabricated light sensor, and never wired to ration anything.", at: 15.0 },
{ sig: "0x773aef1c", type: "theclimb.plan.propose", fields: 'horizonPeriods: 1, surfaceNodeId: "surface"', note: "A time-expanded min-cost-flow scheduler plus a discrete-event congestion sim plans who climbs when; contested slots call Fair Draw's real commit-reveal lottery, shaft by shaft.", at: 17.0 },
],
clips: act2Layout.clipSpecs,
ledger: act2Layout.ledger,
});
collectHolds(act2Stage, act2Layout);
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"),
const act3Layout = layoutAppStage(clips, windows, "act3", null);
const act3Stage = push({
id: "act3", kind: "stage", dur: act3Layout.dur,
field: COLORS.fieldAct3, frame: { x: 332, y: 0, scale: 0.9, tilt: -9 }, textSide: "left", card: "act3",
clips: [{ key: "act3" }],
ledger: [
{ sig: "0xd41fa6c2", type: "governance.qvBallot", fields: 'proposalId: "well-pump", choice: "yes", credits: 9', note: "Real Yjs CRDT liquid democracy with transitive delegation survives a real WebRTC partition and heal, with a QR sneakernet fallback via real camera capture/scan.", at: 0.3 },
{ sig: "0x6c0efb3a", type: "fairdraw.commit", fields: 'drawId: "d7", commitHash: "9af2\u2026"', note: "A real SHA-256 commit-before-reveal lottery locks the result in before it's drawn \u2014 the published commit can never be swapped for a different reveal afterward.", at: 8.0 },
{ sig: "0x2f88c511", type: "sky.morale.pulse", fields: 'mood: "tense"', note: "A real deterministic ambient clock and a real WebRTC presence count \u2014 the memory wall and mood pulse genuinely sync cross-device, never fabricated.", at: 13.0 },
],
clips: act3Layout.clipSpecs,
ledger: act3Layout.ledger,
});
collectHolds(act3Stage, act3Layout);
push({ id: "ch-epi", kind: "chapter", dur: CH_DUR, card: "epilogue", color: COLORS.chapterE, cap: "#2e1a63", capFg: "#d8c6ff", keyword: "Verifiable" });
push({
@@ -219,7 +341,7 @@ function buildTimeline(clips, assemblyDur) {
// Absolute end: wall end + a short dark tail so the film closes on black
// (clean stop, no white flash) arriving from a completely new scene.
const total = r3(wall.end + 0.2);
return { seg, total };
return { seg, total, holds: allHolds };
}
// Assign each stage segment's clip windows (absolute film time) from the
@@ -230,9 +352,15 @@ function layoutClips(seg, clips) {
if (s.kind !== "stage") continue;
let c = s.start;
for (const clip of s.clips) {
const dur = clipDur(clips, clip.key);
out.push({ seg: s.id, key: clip.key, start: r3(c), duration: r3(dur) });
c = r3(c + dur);
// App-stage specs (layoutAppStage) already carry an explicit duration +
// mediaStart (pointing into a shared per-act asset file); legacy
// single-clip stages (epilogue) just reference a whole manifest clip
// by name, playing it from its own start (mediaStart 0).
const duration = clip.duration != null ? clip.duration : clipDur(clips, clip.key);
const assetKey = clip.assetKey || clip.key;
const mediaStart = clip.mediaStart || 0;
out.push({ seg: s.id, key: clip.key, assetKey, mediaStart: r3(mediaStart), start: r3(c), duration: r3(duration) });
c = r3(c + duration);
}
}
return out;
@@ -275,7 +403,9 @@ function main() {
const assemblyDur = JSON.parse(readFileSync(ASSEMBLY_MANIFEST, "utf8")).clip?.durationS;
if (!assemblyDur) throw new Error("assembly clip missing/zero duration");
const { seg, total } = buildTimeline(clips, assemblyDur);
const windows = computeAppWindows();
extractAppClips();
const { seg, total, holds } = buildTimeline(clips, assemblyDur, windows);
const clipWins = layoutClips(seg, clips);
generateAmbientTrack(resolve(ASSETS_DIR, "ambient.mp3"), total);
@@ -315,10 +445,19 @@ function main() {
const screenVideoEls = clipWins
.map(
(w) =>
` <video class="screen-vid" id="vid-${w.key}" src="assets/${w.key}.mp4" data-start="${w.start.toFixed(3)}" data-media-start="0" data-duration="${w.duration.toFixed(3)}" muted playsinline></video>`,
` <video class="screen-vid" id="vid-${w.key}" src="assets/${w.assetKey}.mp4" data-start="${w.start.toFixed(3)}" data-media-start="${w.mediaStart.toFixed(3)}" data-duration="${w.duration.toFixed(3)}" style="opacity:0;" muted playsinline></video>`,
)
.join("\n");
// Hold snapshots: a real captured still frame of each app's own last real
// moment, shown (via explicit GSAP opacity, not autoplay) once that app's
// <video> has exhausted its real dwell, for the remainder of its window -
// see layoutAppStage()/extractAppClips() for why a plain video-duration
// extension isn't trustworthy enough on its own at this element count.
const holdImgEls = holds
.map((h) => ` <img class="screen-vid hold-img" id="hold-${h.id}" src="assets/app-${h.id}-hold.png" style="opacity:0;" alt="">`)
.join("\n");
// Per-act side text + signed-event ledger panel (positioned opposite the phone).
const stageTextEls = stages
.map((s) => {
@@ -425,6 +564,7 @@ ${tileEls}
);
const chapterCfg = JSON.stringify(chapters.map((s) => ({ id: s.id, start: s.start, end: s.end })));
const clipCfg = JSON.stringify(clipWins.map((w) => ({ key: w.key, start: w.start, duration: w.duration })));
const holdCfg = JSON.stringify(holds.map((h) => ({ id: h.id, start: h.start, dwell: h.dwell, windowDur: h.windowDur })));
const promoHtml = `<template>
<style>
@@ -541,6 +681,7 @@ ${fieldEls}
<div id="device">
<div class="screen">
${screenVideoEls}
${holdImgEls}
</div>
</div>
</div>
@@ -596,6 +737,23 @@ ${audioEl}
// ---------- PHONE STAGE (per-act framing) ----------
const CLIPS = ${clipCfg};
const HOLDS = ${holdCfg};
// Explicit opacity control for every screen-vid/hold-img layer: belt-and-
// suspenders over hyperframes' own automatic data-start/data-duration
// windowing, which was observed to let a stale/adjacent element's frame
// bleed through once this composition grew past a dozen stacked video
// elements sharing a handful of source files. Each clip is visible ONLY
// for its own authored window; each hold image takes over the INSTANT its
// video's real dwell ends (same real moment, so the swap is invisible)
// and holds until that app's full window closes.
for (const c of CLIPS) {
tl.set('#vid-' + c.key, { opacity: 1 }, c.start);
tl.set('#vid-' + c.key, { opacity: 0 }, c.start + c.duration);
}
for (const h of HOLDS) {
tl.set('#hold-' + h.id, { opacity: 1 }, h.start + h.dwell);
tl.set('#hold-' + h.id, { opacity: 0 }, h.start + h.windowDur);
}
// The phone stage stays mounted the whole time; opaque overlays (chapters
// z30, sections z34, assembly z20) cover it except during the acts, so no
// per-act show/hide juggling is needed - just reposition the rig while the
+53 -26
View File
@@ -102,7 +102,7 @@
.assembly { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
</style>
<div id="root" data-composition-id="promo" data-width="1920" data-height="1080" data-duration="91.86">
<div id="root" data-composition-id="promo" data-width="1920" data-height="1080" data-duration="182.078">
<div id="fieldwrap">
<div class="field" id="field-act1" style="background:radial-gradient(1200px 820px at 70% 30%,#123a6b 0%,#081c3a 60%,#05101f 100%);opacity:0;"></div>
<div class="field" id="field-act2" style="background:radial-gradient(1200px 820px at 50% 24%,#1a2330 0%,#0d1117 62%,#06080c 100%);opacity:0;"></div>
@@ -116,11 +116,21 @@
<div id="phoneShadow"></div>
<div id="device">
<div class="screen">
<video class="screen-vid" id="vid-intro" src="assets/intro.mp4" data-start="9.100" data-media-start="0" data-duration="2.630" muted playsinline></video>
<video class="screen-vid" id="vid-act1" src="assets/act1.mp4" data-start="11.730" data-media-start="0" data-duration="12.330" muted playsinline></video>
<video class="screen-vid" id="vid-act2" src="assets/act2.mp4" data-start="26.160" data-media-start="0" data-duration="21.300" muted playsinline></video>
<video class="screen-vid" id="vid-act3" src="assets/act3.mp4" data-start="49.560" data-media-start="0" data-duration="19.930" muted playsinline></video>
<video class="screen-vid" id="vid-epilogue" src="assets/epilogue.mp4" data-start="71.590" data-media-start="0" data-duration="6.800" muted playsinline></video>
<video class="screen-vid" id="vid-intro" src="assets/intro.mp4" data-start="9.100" data-media-start="0.000" data-duration="2.630" style="opacity:0;" muted playsinline></video>
<video class="screen-vid" id="vid-epilogue" src="assets/epilogue.mp4" data-start="161.808" data-media-start="0.000" data-duration="6.800" style="opacity:0;" muted playsinline></video>
<img class="screen-vid hold-img" id="hold-waterwatch" src="assets/app-waterwatch-hold.png" style="opacity:0;" alt="">
<img class="screen-vid hold-img" id="hold-fairshare" src="assets/app-fairshare-hold.png" style="opacity:0;" alt="">
<img class="screen-vid hold-img" id="hold-tunnelsafety" src="assets/app-tunnelsafety-hold.png" style="opacity:0;" alt="">
<img class="screen-vid hold-img" id="hold-findfamily" src="assets/app-findfamily-hold.png" style="opacity:0;" alt="">
<img class="screen-vid hold-img" id="hold-farms" src="assets/app-farms-hold.png" style="opacity:0;" alt="">
<img class="screen-vid hold-img" id="hold-housing" src="assets/app-housing-hold.png" style="opacity:0;" alt="">
<img class="screen-vid hold-img" id="hold-mentor" src="assets/app-mentor-hold.png" style="opacity:0;" alt="">
<img class="screen-vid hold-img" id="hold-healthpost" src="assets/app-healthpost-hold.png" style="opacity:0;" alt="">
<img class="screen-vid hold-img" id="hold-lightclock" src="assets/app-lightclock-hold.png" style="opacity:0;" alt="">
<img class="screen-vid hold-img" id="hold-theclimb" src="assets/app-theclimb-hold.png" style="opacity:0;" alt="">
<img class="screen-vid hold-img" id="hold-qvballot" src="assets/app-qvballot-hold.png" style="opacity:0;" alt="">
<img class="screen-vid hold-img" id="hold-fairdraw" src="assets/app-fairdraw-hold.png" style="opacity:0;" alt="">
<img class="screen-vid hold-img" id="hold-sky" src="assets/app-sky-hold.png" style="opacity:0;" alt="">
</div>
</div>
</div>
@@ -131,10 +141,10 @@
<div class="ledger-panel">
<div class="ledger-head"><span class="ledger-dot"></span>SIGNED EVENT LOG &middot; LIVE</div>
<div class="ledger-entries">
<div class="entry" id="entry-act1-0" style="opacity: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; CUSUM/EWMA change-point detection flags drift; an alert needs two graph-adjacent sensors in the real pipe network to corroborate before it fires.</div></div>
<div class="entry" id="entry-act1-1" style="opacity:0;"><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; A real Fisher-market CEEI solver splits power, water, food, and cooling by need, with a live allocation-history trend for every resource.</div></div>
<div class="entry" id="entry-act1-2" style="opacity:0;"><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; Real A* routing reroutes around any segment a hazard report closes, with a best-effort GPS fix via navigator.geolocation (honest fallback if denied).</div></div>
<div class="entry noevent" id="entry-act1-3" style="opacity:0;"><div class="entry-sig">&mdash; no event signed &mdash;</div><div class="entry-note">A real DH-PSI protocol searches the resident directory — the query name never leaves this device — and residents can register themselves in, not just four hardcoded demo names.</div></div>
<div class="entry" id="entry-act1-0" style="opacity: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; Catches a bad water reading before anyone drinks it — once a second sensor confirms it, everyone's ration adjusts automatically. No guessing, no rumors.</div></div>
<div class="entry" id="entry-act1-1" style="opacity:0;"><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; Splits power, water, food, and cooling fairly by need, in real time — so a shortage gets rationed honestly instead of grabbed by whoever's fastest.</div></div>
<div class="entry" id="entry-act1-2" style="opacity:0;"><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; Report a flooded or blocked corridor once, and everyone's route around it updates automatically — with your real location attached if you allow it.</div></div>
<div class="entry noevent" id="entry-act1-3" style="opacity:0;"><div class="entry-sig">&mdash; no event signed &mdash;</div><div class="entry-note">Search for a missing family member without anyone, even the app itself, ever seeing who you searched for — unless there's a real match.</div></div>
</div>
<div class="ledger-cursor">&gt;<span class="blink">_</span></div>
</div>
@@ -145,12 +155,12 @@
<div class="ledger-panel">
<div class="ledger-head"><span class="ledger-dot"></span>SIGNED EVENT LOG &middot; LIVE</div>
<div class="ledger-entries">
<div class="entry" id="entry-act2-0" style="opacity: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; A real GDD growing-degree-day model plus an LP optimizer plans what and when to plant; the grow-light power budget is read live from Fair Share's real allocation.</div></div>
<div class="entry" id="entry-act2-1" style="opacity:0;"><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; A real MILP solver assigns space with step-free access and medical proximity as hard constraints; a fairness-debt ledger replays across cycles.</div></div>
<div class="entry" id="entry-act2-2" style="opacity:0;"><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; Dependents-count skill-criticality ranking surfaces what's at risk of disappearing, then real ts-fsrs spaced repetition adapts the review plan to real outcomes.</div></div>
<div class="entry" id="entry-act2-3" style="opacity:0;"><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; WHO-IMCI protocol triage — age-banded danger signs, dehydration, pneumonia — feeds a real signed referral straight to the clinician queue.</div></div>
<div class="entry noevent" id="entry-act2-4" style="opacity:0;"><div class="entry-sig">&mdash; no event signed &mdash;</div><div class="entry-note">A real circadian phase-response model (Hannay19) runs on a manual log or motion-sensor actigraphy — never a fabricated light sensor, and never wired to ration anything.</div></div>
<div class="entry" id="entry-act2-5" style="opacity:0;"><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; A time-expanded min-cost-flow scheduler plus a discrete-event congestion sim plans who climbs when; contested slots call Fair Draw's real commit-reveal lottery, shaft by shaft.</div></div>
<div class="entry" id="entry-act2-0" style="opacity: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; Plans what to grow and when, using real temperature data and your actual share of the power budget — not a guess.</div></div>
<div class="entry" id="entry-act2-1" style="opacity:0;"><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; Assigns you a room fairly, accounting for accessibility needs and medical proximity — and remembers if you were shorted last time.</div></div>
<div class="entry" id="entry-act2-2" style="opacity:0;"><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; Flags the trade skills at risk of disappearing and matches you with someone who can teach you before that knowledge is gone.</div></div>
<div class="entry" id="entry-act2-3" style="opacity:0;"><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; Walks you through a real medical triage checklist and sends a signed referral straight to a clinician when you need one.</div></div>
<div class="entry noevent" id="entry-act2-4" style="opacity:0;"><div class="entry-sig">&mdash; no event signed &mdash;</div><div class="entry-note">Helps you track your sleep rhythm without sunlight — from your own motion or a manual log, never shared, never used to ration anything.</div></div>
<div class="entry" id="entry-act2-5" style="opacity:0;"><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; Schedules who climbs to the surface and when, so the return doesn't turn into a crowd crush — ties break by a fair, public lottery.</div></div>
</div>
<div class="ledger-cursor">&gt;<span class="blink">_</span></div>
</div>
@@ -161,9 +171,9 @@
<div class="ledger-panel">
<div class="ledger-head"><span class="ledger-dot"></span>SIGNED EVENT LOG &middot; LIVE</div>
<div class="ledger-entries">
<div class="entry" id="entry-act3-0" style="opacity: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; Real Yjs CRDT liquid democracy with transitive delegation survives a real WebRTC partition and heal, with a QR sneakernet fallback via real camera capture/scan.</div></div>
<div class="entry" id="entry-act3-1" style="opacity:0;"><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; A real SHA-256 commit-before-reveal lottery locks the result in before it's drawn — the published commit can never be swapped for a different reveal afterward.</div></div>
<div class="entry" id="entry-act3-2" style="opacity:0;"><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; A real deterministic ambient clock and a real WebRTC presence count — the memory wall and mood pulse genuinely sync cross-device, never fabricated.</div></div>
<div class="entry" id="entry-act3-0" style="opacity: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; Keeps your community's votes and proposals running even if the network goes down — and heals back together once it's back up.</div></div>
<div class="entry" id="entry-act3-1" style="opacity:0;"><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; Runs a lottery no one can rig — the result is locked in before it's ever revealed.</div></div>
<div class="entry" id="entry-act3-2" style="opacity:0;"><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; A shared mood board and an ambient day/night rhythm for everyone sheltering together — so the Hollow still feels alive.</div></div>
</div>
<div class="ledger-cursor">&gt;<span class="blink">_</span></div>
</div>
@@ -182,7 +192,7 @@
</div>
<div class="assembly-frame" id="assembly-frame" style="opacity:0;">
<video class="assembly" id="vid-assembly" src="assets/assembly.mp4" data-start="77.890" data-media-start="0" data-duration="7.270" muted playsinline></video>
<video class="assembly" id="vid-assembly" src="assets/assembly.mp4" data-start="168.108" data-media-start="0" data-duration="7.270" muted playsinline></video>
</div>
<div class="stagetext top" id="text-assembly" style="opacity:0;">
<div class="st-eyebrow">Live Capture &middot; Two Devices</div>
@@ -256,7 +266,7 @@
<div class="lock-sub">One signed wallet, one shared record - every civic problem in the Hollow gets a real answer.</div>
</div>
</div>
<audio id="ambient" src="assets/ambient.mp3" data-start="0" data-media-start="0" data-duration="91.86" data-volume="0.3"></audio>
<audio id="ambient" src="assets/ambient.mp3" data-start="0" data-media-start="0" data-duration="182.078" data-volume="0.3"></audio>
</div>
<script>
@@ -292,14 +302,31 @@
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":9.1,"end":24.06,"frame":{"x":332,"y":0,"scale":0.9,"tilt":-7},"textSide":"left","entryAts":[4.6,10.6,11,13.8]},{"id":"act2","start":26.16,"end":47.46,"frame":{"x":-300,"y":0,"scale":0.84,"tilt":9},"textSide":"right","entryAts":[2.4,5,9.6,11,15,17]},{"id":"act3","start":49.56,"end":69.49,"frame":{"x":332,"y":0,"scale":0.9,"tilt":-9},"textSide":"left","entryAts":[0.3,8,13]},{"id":"epilogue","start":71.59,"end":78.39,"frame":{"x":-300,"y":0,"scale":0.84,"tilt":7},"textSide":"right","entryAts":[0.3,2.2]}];
const STAGES = [{"id":"act1","start":9.1,"end":59.522,"frame":{"x":332,"y":0,"scale":0.9,"tilt":-7},"textSide":"left","entryAts":[2.63,14.459,26.764,38.593]},{"id":"act2","start":61.622,"end":128.308,"frame":{"x":-300,"y":0,"scale":0.84,"tilt":9},"textSide":"right","entryAts":[0,10.876,21.276,32.152,42.552,54.381]},{"id":"act3","start":130.408,"end":159.708,"frame":{"x":332,"y":0,"scale":0.9,"tilt":-9},"textSide":"left","entryAts":[0,10.876,19.376]},{"id":"epilogue","start":161.808,"end":168.608,"frame":{"x":-300,"y":0,"scale":0.84,"tilt":7},"textSide":"right","entryAts":[0.3,2.2]}];
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);
}
// ---------- PHONE STAGE (per-act framing) ----------
const CLIPS = [{"key":"intro","start":9.1,"duration":2.63},{"key":"act1","start":11.73,"duration":12.33},{"key":"act2","start":26.16,"duration":21.3},{"key":"act3","start":49.56,"duration":19.93},{"key":"epilogue","start":71.59,"duration":6.8}];
const CLIPS = [{"key":"intro","start":9.1,"duration":2.63},{"key":"epilogue","start":161.808,"duration":6.8}];
const HOLDS = [{"id":"waterwatch","start":11.73,"dwell":0,"windowDur":11.829},{"id":"fairshare","start":23.559,"dwell":0,"windowDur":12.305},{"id":"tunnelsafety","start":35.864,"dwell":0,"windowDur":11.829},{"id":"findfamily","start":47.693,"dwell":0,"windowDur":11.829},{"id":"farms","start":61.622,"dwell":0,"windowDur":10.876},{"id":"housing","start":72.498,"dwell":0,"windowDur":10.4},{"id":"mentor","start":82.898,"dwell":0,"windowDur":10.876},{"id":"healthpost","start":93.774,"dwell":0,"windowDur":10.4},{"id":"lightclock","start":104.174,"dwell":0,"windowDur":11.829},{"id":"theclimb","start":116.003,"dwell":0,"windowDur":12.305},{"id":"qvballot","start":130.408,"dwell":0,"windowDur":10.876},{"id":"fairdraw","start":141.284,"dwell":0,"windowDur":8.5},{"id":"sky","start":149.784,"dwell":0,"windowDur":9.924}];
// Explicit opacity control for every screen-vid/hold-img layer: belt-and-
// suspenders over hyperframes' own automatic data-start/data-duration
// windowing, which was observed to let a stale/adjacent element's frame
// bleed through once this composition grew past a dozen stacked video
// elements sharing a handful of source files. Each clip is visible ONLY
// for its own authored window; each hold image takes over the INSTANT its
// video's real dwell ends (same real moment, so the swap is invisible)
// and holds until that app's full window closes.
for (const c of CLIPS) {
tl.set('#vid-' + c.key, { opacity: 1 }, c.start);
tl.set('#vid-' + c.key, { opacity: 0 }, c.start + c.duration);
}
for (const h of HOLDS) {
tl.set('#hold-' + h.id, { opacity: 1 }, h.start + h.dwell);
tl.set('#hold-' + h.id, { opacity: 0 }, h.start + h.windowDur);
}
// The phone stage stays mounted the whole time; opaque overlays (chapters
// z30, sections z34, assembly z20) cover it except during the acts, so no
// per-act show/hide juggling is needed - just reposition the rig while the
@@ -336,7 +363,7 @@
}
// ---------- CHAPTER CARDS ----------
const CHAPTERS = [{"id":"ch-act1","start":6.5,"end":9.6},{"id":"ch-act2","start":23.56,"end":26.66},{"id":"ch-act3","start":46.96,"end":50.06},{"id":"ch-epi","start":68.99,"end":72.09}];
const CHAPTERS = [{"id":"ch-act1","start":6.5,"end":9.6},{"id":"ch-act2","start":59.022,"end":62.122},{"id":"ch-act3","start":127.808,"end":130.908},{"id":"ch-epi","start":159.208,"end":162.308}];
for (const c of CHAPTERS) {
tl.fromTo('#' + c.id, { opacity: 0 }, { opacity: 1, duration: F, ease: 'power2.out' }, c.start);
tl.to('#' + c.id, { opacity: 0, duration: F, ease: 'power2.in' }, c.end - F);
@@ -348,7 +375,7 @@
}
// ---------- ASSEMBLY (framed field + caption) ----------
const A = { start: 77.89, end: 85.16 };
const A = { start: 168.108, end: 175.378 };
// The phone rig is not full-bleed-covered by the assembly frame (unlike
// the chapter/section overlays), so hide it explicitly - otherwise the
// Epilogue's last phone position peeks through the field margins.
@@ -361,7 +388,7 @@
tl.to('#text-assembly', { opacity: 0, duration: 0.45, ease: 'power2.in' }, A.end - F);
// ---------- RESULT WALL + LOCKUP ----------
const W = { start: 84.66, end: 91.66 };
const W = { start: 174.878, end: 181.878 };
tl.fromTo('#wall', { opacity: 0 }, { opacity: 1, duration: F, ease: 'power2.out' }, W.start - F);
tl.to('#wall', { opacity: 0, duration: F, ease: 'power2.in' }, W.end - F + 0.2);
// Slow continuous push on the whole wall/lockup so the closing hold is
+2 -2
View File
@@ -7,11 +7,11 @@
<style>body{margin:0;background:#000}#main{position:relative;width:1920px;height:1080px;overflow:hidden}</style>
</head>
<body>
<div id="main" data-composition-id="main" data-start="0" data-duration="91.86" data-width="1920" data-height="1080" data-fps="30">
<div id="main" data-composition-id="main" data-start="0" data-duration="182.078" data-width="1920" data-height="1080" data-fps="30">
<div id="promo" class="clip"
data-composition-id="promo"
data-composition-src="compositions/promo.html"
data-start="0" data-duration="91.86" data-track-index="0"
data-start="0" data-duration="182.078" data-track-index="0"
data-width="1920" data-height="1080"></div>
</div>
<script>
Binary file not shown.