In this order: clean the technical foundation (indexation, redirects, canonicals, archives), fix Core Web Vitals, structure pages around real search demand, then build content and links. Most sites we audit are doing step four while steps one and two are broken.