Spacetime quantum and classical mechanics with dynamical foliation | Synapse