Learning Beyond Euclid: Curvature-Adaptive Generalization for Neural Networks on Manifolds | Synapse