DETROIT — Ford Motor Co.'s pivot from transmissions to face masks at a Michigan plant began with an executive's late-night text to a colleague. It quickly morphed into a complex, intercontinental scramble to secure and ship machinery and materials — which was nearly thwarted by a flock of unfortunate birds.