Transient domain interactions enhance the affinity of the mitotic regulator Pin1 toward phosphorylated peptide ligands.