As AI transforms work and society, echoes of John Paul II’s warnings about human marginalization grow more urgent.