@rudderrudderrat
Simply use the air mass as your frame of reference. It may be moving horizontally over the earth's surface, but the conservation of KE + PE still holds.
IAS is just a measure of dynamic air pressure, it must be converted to TAS.
Unfortunately it isn't. See my example about the landing glider, a few posts back. The airframe can't be the reference point for conservation of energy.