Gravity-defying machine looks like magic — but there’s a scientific answer