I see the 'magic' in the Potter world as a type of technology. There's nothing mystical about it, and is based on hardware(wands), and cleary delineated processes (incantations and/or chemistry).
As Tony H reminded us, 'a sufficiently advanced technology is indistinguishable from magic'.

































