Conformation-dependent environments in folding proteins