Emergence of Lorentzian signature and scalar gravity