How Closures Actually Work
Closures capture references from lexical scope, not copied snapshots in most cases.
Because references are retained, inner functions can read or update outer variables over time.
This behavior enables controlled state without exposing variables globally.