Curvature mass inside hadrons: Linking gravity to QCD