Magnetic interactions at the nanoscale in trilayer titanates LaTiO
3/SrTiO
3/YTiO
3By engineering LaTiO$_3$/SrTiO$_3$/YTiO$_3$ trilayers that break inversion symmetry, the authors obtain spatially separated magnetic interactions: a two-dimensional electron liquid at the LaTiO$_3$/SrTiO$_3$ interface and high-density localized magnetic moments at the SrTiO$_3$/YTiO$_3$ interface. Orbital polarization of both electron populations is confirmed by resonant soft X-ray linear dichroism. This design offers a route to tunable two-dimensional $d$-electron Kondo lattices and spin Hall applications.