$$(A,B;C,D) = \frac{AC/CB}{AD/DB} \;\text{ is invariant under projection; a harmonic range has } (A,B;C,D) = -1.$$
Projecting points from one line to another (through a point or onto another line) preserves the cross-ratio of any four collinear points, so cross-ratio is the fundamental invariant for incidence problems.