The Primordial Origin and Dynamical Sculpting of Close-In Planetary System Architectures