Critical-speed pacing model: reserve D' and glycogen decide where a race is won or lost.
Critical speed model. Above critical speed CS the runner spends a finite anaerobic reserve D′ (metres): dD′/dt = -(v - CS). At constant speed exhaustion takes t = D′/(v - CS), and distance D = CS·t + D′. Below CS the reserve refills (simple, illustrative recovery).
Energy. Running cost about 1 kcal per kg per km (typical value); the carbohydrate share rises with intensity (illustrative curve). A ~400 g glycogen store (~1600 kcal) running out forces speed down to ~0.62 CS (the wall).
Track. The runner follows a 400 m lane-1 running line: two straights of (400 - 2πr)/2 metres joined by semicircles of radius r = 36.8 m. The ghost shows where a runner at exactly CS would be; while v stays above CS and D′ has not refilled, the gap to the ghost equals the reserve spent.
Honest limits: one runner, flat course, no heat, drafting or hydration; recovery rate, carbohydrate share, store size and the stride length used for the leg animation are illustrative, not fitted to an athlete. The Riegel row uses T2 = T1 (D2/D1)^1.06 as a rule of thumb.