Social forces shape math attitudes and performance