Intelligence and terminal decline