Nodes are susceptible (blue) or infected (red). Susceptibles rewire links away from infected neighbors (homophily). The balance between infection spread and rewiring drives fragmentation vs. epidemic phases.