The American ideal of meritocracy — the belief that hard work and talent should determine success — has shaped generations.