Multi-timescale analysis of phase transitions in precessing black-hole binaries