# Scale of life ## What this builds A page that zooms, continuously, from a microscopic object to a planetary one, stopping at named scales. Each stop has a length in metres, a camera zoom, and a short label. The path is original. The feel is a thing people send to a friend, but the math is strict: a stated object is at a documented zoom and position. Read `spekkr.inputs.json` first. `title` is on the first stop. `path` chooses the stop list. `units` only changes labels. `labels` and `crossfade` change the chrome. ## Out of scope - A 3D scan library or a copyrighted photograph set in the checks; shipped art is original or permissively licensed. - Network, or a live zoom of a remote dataset. - A claim of scientific authority beyond the lengths in design.md. ## Requirements Each requirement has an id. Checks name the id they cover. ### R1. The path - Each stop has an id, a length in metres, a camera height (world units), and a label. - The `life` path has the twelve stops in `design.md`, from a bacterium at 2e-6 m to a planet at 1.274e7 m. - Zoom between two stops is exponential in length: camera height is k * length, with k in `design.md`. Accept when: every listed object is at the documented camera height within 0.5%, and a mid-interpolation between two stops is the geometric mean of their lengths. ### R2. Frames - Golden frames are taken at the settled camera for `cell`, `hand`, `tree`, and `planet` (stops 0, 4, 7, 11 of `life`). - The frame includes the label if `labels` is on. Accept when: the four frames match the goldens within the tolerance in `design.md`. ### R3. Files - One command runs the scale math and writes the frames. No network. Accept when: the command passes for both paths, with labels on and off. ### R4. Inputs - The build reads `spekkr.inputs.json`. Settings label the UI, options turn features on or off, and a swap must be one of its choices. - A value outside a stated range, or a swap that is not one of its choices, is refused before the app starts its checks, with a message that names the key. Accept when: the default inputs render, an illegal swap is refused by name, and changing a visible setting (for example the title) shows up in a later check. ## Verification Scale math tests place each stated object at a documented zoom and camera height. A mid-point between two stops is the geometric mean of their lengths. Golden frames are taken at four stops. No live dataset and no network. ## Definition of done - Every acceptance check above runs from one command, and all pass at the person's inputs. - A README says how to zoom, how to add a stop, and how to run the checks.