Learning Hamiltonian Dynamics at Scale: A Differential-Geometric Approach