TASK 7 — Assembly segment decorative treatment (first-place-overhaul plan)
===========================================================================

Scope: e2e/openmotion/buildComposition.mjs — give the Assembly two-device
clip the same visual family as every other beat (gradient field, framed/
padded/bordered/shadowed video, GSAP-driven caption), without touching
assembly.mp4 itself or any other segment's styling.

CHANGES
-------
1. COLORS.fieldAssembly: new plum/indigo radial-gradient field entry,
   consistent with the preceding Epilogue field (fieldEpi) but distinct.
2. buildTimeline(): the "assembly" segment now carries `field:
   COLORS.fieldAssembly`, like every stage segment.
3. fieldEls: now rendered for `[...stages, asmSeg]` (previously only
   `stages`), so a `#field-assembly` div exists in #fieldwrap.
4. asmEl markup: the video is now wrapped in `.assembly-frame` (a padded,
   rounded, bordered, drop-shadowed card inset from the canvas edges —
   left/right:370px, top:250px, bottom:170px — not full-bleed), plus a
   `.stagetext.top` caption block (the existing, previously-unused "top"
   variant of the same st-eyebrow/st-title pattern used by every act) with
   eyebrow "Live Capture · Two Devices" and title "Two devices. One signed
   log. A real network partition, and a real heal."
5. GSAP "ASSEMBLY" timeline section: fades `#field-assembly` and
   `#assembly-frame` in/out around the segment window (same F=0.5s
   crossfade used everywhere else), and fades `#text-assembly` in/out —
   exactly the existing stagetext fade pattern, never a CSS @keyframes
   animation (this file's whole timeline is one paused GSAP timeline
   scrubbed frame-by-frame for deterministic rendering, per the
   ledger-panel blinking-cursor precedent in the same file).
   Also added `tl.to('#phoneRig', { opacity: 0 }, A.start - F)`: once the
   assembly frame stopped being full-bleed, the leftover phone-rig
   position from the Epilogue segment was visible peeking through the
   field margins (caught during visual QA below); hiding the phone rig at
   assembly start fixes this. Nothing after assembly needs the phone again
   (the Result Wall that follows is itself full-bleed), so no restore is
   needed.

Assembly segment window in this build: 75.89s–83.19s (from console output:
`assembly[75.9-83.2]`).

VERIFICATION
------------

0. `bun install` was required first — this worktree had no node_modules at
   all (git worktree, not the primary checkout) — exit 0, 531 packages.
   bun.lock was generated as a side effect of this and is left untracked/
   uncommitted (out of scope for this task; package-lock.json is unchanged).

1. Baseline (pre-change) build, via `git stash` to get the unmodified file:
   $ bun e2e/openmotion/buildComposition.mjs
   Composition built (redesign 3).
     total duration : 89.86s (2696 frames @ 30fps)
     segments       : ... epilogue[69.6-76.4] assembly[75.9-83.2] wall[82.7-89.7]
   exit 0

2. Baseline hyperframes lint (pre-change, stashed):
   $ cd e2e/openmotion && \
     HYPERFRAMES_FFMPEG_PATH=/home/athapa/patriothacks/node_modules/ffmpeg-static/ffmpeg \
     HYPERFRAMES_FFPROBE_PATH=/home/athapa/patriothacks/node_modules/ffprobe-static/bin/linux/x64/ffprobe \
     HYPERFRAMES_BROWSER_PATH=~/.cache/ms-playwright/chromium-1255/chrome-linux64/chrome \
     node /home/athapa/openmotion/node_modules/hyperframes/bin/hyperframes.mjs lint .
   → 0 error(s), 6 warning(s) — all `nested_media_start_basis_ambiguous`
     on vid-intro, vid-act1, vid-act2, vid-act3, vid-epilogue, vid-assembly
     (pre-existing, unrelated to data-start values, not to markup structure).
   exit 0

   (git stash pop restored the change after this baseline run.)

3. Post-change build:
   $ bun e2e/openmotion/buildComposition.mjs
   Composition built (redesign 3).
     total duration : 89.86s (2696 frames @ 30fps)
     segments       : ... epilogue[69.6-76.4] assembly[75.9-83.2] wall[82.7-89.7]
   exit 0 — segment timings unchanged (assembly duration comes from
   assembly-manifest.json, untouched).

4. Post-change hyperframes lint (same env vars as above):
   → 0 error(s), 6 warning(s) — identical set of 6
   `nested_media_start_basis_ambiguous` warnings (same ids, same lines ±2
   for the inserted markup). Zero NEW errors or warnings introduced.
   exit 0

5. Snapshot inside the assembly segment (window 75.89–83.19s):
   $ cd e2e/openmotion && \
     HYPERFRAMES_FFMPEG_PATH=... HYPERFRAMES_FFPROBE_PATH=... HYPERFRAMES_BROWSER_PATH=... \
     node /home/athapa/openmotion/node_modules/hyperframes/bin/hyperframes.mjs snapshot . --at 79.0 -o /tmp/qa-assembly
   → 2 snapshots saved (79s + an added end-of-timeline frame at 89.61s),
     exit 0. Used frame-00-at-79s.png.

   First snapshot attempt revealed two visual defects, fixed and
   re-verified before accepting:
     a) The initial frame (170px margins on all sides) left almost no
        visible gradient margin — the field's bright gradient center was
        entirely hidden behind the near-full-bleed frame, so the "field"
        read as plain black. Fixed by shrinking the frame to
        left/right:370px, top:250px, bottom:170px (a 1180x660 card) and
        brightening/re-centering the radial-gradient stops.
     b) The Epilogue's last phone-rig position was visible peeking above/
        behind the (now smaller) assembly frame, since the frame no longer
        fully occludes #phoneRig (z-index 10 vs assembly-frame z-index 20).
        Fixed with the `tl.to('#phoneRig', { opacity: 0 }, ...)` GSAP call
        described above.
   Re-ran build + lint + snapshot after each fix (both clean, same 0
   errors / 6 warnings as baseline).

VISUAL CONFIRMATION (read directly, not just claimed)
------------------------------------------------------
Read /tmp/qa-assembly/frame-00-at-79s.png (copied to
.omo/evidence/first-place-overhaul/task-7-first-place-overhaul-assembly.png)
directly via the image-reading tool. Confirmed all three required elements
are present and correctly composed:
  - A visible plum/indigo radial-gradient field surrounds the frame on all
    sides (clearly distinguishable from the root's near-black background,
    matching the darkness level of the existing per-act fields sampled for
    comparison, e.g. Act III's field at the same canvas position).
  - The assembly.mp4 video (showing the two side-by-side governance
    device screens) sits inset inside a rounded-corner, bordered,
    drop-shadowed card with real padding on every side — not full-bleed
    edge-to-edge.
  - The caption is visible and legible at the top: eyebrow "LIVE CAPTURE ·
    TWO DEVICES" above the title "Two devices. One signed log. A real
    network partition, and a real heal." — matching the st-eyebrow/
    st-title typography used by every other beat, fully clear of the
    frame below it.
  - No leftover phone-rig artifact from the prior segment.

NOT TOUCHED
-----------
- assets/assembly.mp4 itself — untouched (out of scope per the task).
- Every other segment's markup/CSS/GSAP (data, chapters, acts I–III,
  epilogue, wall) — untouched; `git diff` for buildComposition.mjs shows
  only the COLORS/field/asmEl/CSS/GSAP-assembly-section edits described
  above.

DISCLOSED DEVIATIONS / RISK
----------------------------
- This worktree had no node_modules; `bun install` was run to make the
  render/lint/snapshot commands runnable. This produced a new, untracked
  bun.lock in the worktree root — left untracked/uncommitted since it is
  a side effect of local verification tooling, not part of this feature;
  package-lock.json (the tracked lockfile) is unmodified.
- The frame's exact pixel geometry (370/250/170px insets) and the
  gradient's exact color stops are a judgment call sized to make the field
  clearly visible around a landscape (not phone-aspect) video, verified
  visually rather than against a numeric spec.
