Disorder transitions and conformational diversity cooperatively modulate biological function in proteins