# Card wallet ## What this builds A cascade-style card wallet, modelled as code: a stack of slots that present cards like a stair. Slot openings are sized for an ID-1 card (ISO/IEC 7810: 85.60 by 53.98 mm, thickness 0.76 mm) plus a stated clearance. Wall thickness is measured. Renders include cards instanced in the slots (simple solids, not branded artwork). No physical print or real cards are required. Read `spekkr.inputs.json` first. `slots` is the count. `clearance` is added to 0.76 mm. `wall` is the shell. `cash` and `clip` add features. `tool` is the modeller. ## Out of scope - A real card, a branded card network's marks, or a physical print. - A leather pattern, or a RFID claim, in this version. - A bought metal clip. ## Requirements Each requirement has an id. Checks name the id they cover. ### R1. Slots and cards - Each slot accepts a 85.60 by 53.98 by (0.76 + `clearance`) mm solid with a remaining gap of `clearance` within 0.05 mm on thickness, and at least 0.2 mm on the edges, as in `design.md`. - Instanced card solids in the slots do not overlap the wallet or each other. The number of cards equals `slots`. - Min wall is at least `wall`. The mesh is watertight. Accept when: slot measures, non-overlap of instanced cards, and walls all match. ### R2. Files and frames - Renders: empty, with cards instanced, a section through the slots, and an exploded stair. - One command builds, instances the cards, measures, and writes the renders. No print, no real card. Accept when: the command passes for both tools, and a slot tighter than the card fails the accept check. ### R3. Inputs - Numeric inputs are read from `spekkr.inputs.json` and must stay inside the ranges in the Inputs table in `design.md`. - A value outside a range is refused before modelling, with a message that names the key. - Options add or remove the features in that table. The `tool` swap selects CadQuery or OpenSCAD; both must meet the same numbers. Accept when: default and one out-of-range value are handled as above, and a second legal input set still matches the formulas in `design.md`. ### R4. Checks and report - One command builds the model at the defaults and at the person's inputs, measures it against `design.md`, and writes a short report. - A model broken on purpose, for example a wall thinner than `wall`, must fail the report. - The command exports the files this spec asks for (STL, and STEP when the tool can). No physical print is required. Accept when: the report says pass at the defaults and at the person's inputs, and fail on a deliberately broken model. ## Verification Slot count and openings are measured against ISO/IEC 7810 card size plus the stated clearance. Wall thickness is checked. Renders include card solids instanced in the slots. No physical print and no real cards are required. No card-network marks are used. ## Definition of done - Every acceptance check above runs from one command, and all pass at the person's inputs. - A README says how to export, how the card standard is applied, and that a print is optional.