Real-time gravitational replicas: formalism and a variational principle | Synapse