Archetype component for managing complex stacking contexts with z-index