Restrictions into opportunities: how boundaries in the life course can shape educational pathways