Perverse sheaves on rank stratifications