I don't have all the answers but what worked for me (retrospectively) was:
Move to a large company that can and will be ok with absorbing mat leaves late twenties - started on 50K
Get established for a couple of years, promoted to 65K.
Have kids in thirties, put up with being treated like shit at said large company (US investment bank) and put on mummy track for 10 years with no further pay rises or promotions. Grit teeth as useless and/or lazy men promoted above you. take all the shit unglamorous roles and projects that the men don't want (because not sexy at the time, so no vendors lunches, golf days etc) but that you can see could have strategic value in the future (in my case this was cloud computing projects). make sure the father is pulling his weight so that one does childcare drops offs and one does pickups so both can do the presenteeism that was so prevalent then - one early starts, one staying late. Be mega organised with children's uniform, homework etc - I was often called anal and OCD but, you have to be. Grit teeth for 10 years with little career progression but quietly doing certifications, qualifications etc in the background and doing reasonable hours to spend lots of time with the young children.
At the decade mark as enter forties, fuck off and be self employed for 5 years, doubling income overnight (IT contractor) but still pretty 9-5 with junior school aged kids, able to take (unpaid) time to attend nativity plays, sports days etc.
Mid forties with plenty of consulting experience at other organisations under belt, join a tech company with a much more modern out look that values diversity and actively wants technical women in the workforce (positive discrimination, maybe, but, hell, I deserve it after that decade at the investment bank, trust me). Starting salary 100K to attract the experienced IT people they want. Kids now at or approaching secondary age, don't need my time as much in the evenings, senior IT roles are normally all or part WFH anyway. Pedal to the metal to maximise earnings as head into fifties.
I do see it getting easier for younger women I have to say - companies are way less sexistvthat they used to be - tech companies anyway.