What happens immediately after the core hydrogen fuel is spent?

Answer

The inert helium core begins to contract and heat up dramatically

When hydrogen fuel is spent, gravity gains the advantage, causing the inert helium core to contract. This compression converts gravitational potential energy into thermal energy, heating the core intensely.

What happens immediately after the core hydrogen fuel is spent?
physicsscienceinstabilitystellarstar