Mass distortions and edge modes in graphene armchair nanoribbons