The idea
An absolutely positioned element is placed relative to its nearest *positioned* ancestor — not necessarily the stage. The grey parent is currently unpositioned, so the child positions against the stage. Make the parent position: relative and the child snaps to the parent's box instead.
This level needs position on both the parent and the child — the child's containing block is the nearest positioned ancestor.