# Jack-in-the-box build plan

## Overall dimensions
A typical tabletop toy, approximately 230 mm wide, 220 mm deep, and 258 mm tall when closed, including feet and lid. The shell is 220 mm wide (X), 205 mm deep (Y), and 192 mm tall (Z), with its bottom 25 mm above the ground on 25 mm feet. The lid is 230 x 220 x 16 mm and overhangs the body slightly. The rear edge is at Y=+102.5 mm; the front is at Y=-102.5 mm. The crank axle is on the front face, about 75 mm above the bottom.

## Rigid bodies and contents
- `box`: one root body containing the bottom, four walls, corner trim, four feet, interior floor, fixed music-movement casing and its visible fittings, spring coil/post, interior latch plate and fixed front crank-bearing bracket. The music movement is fixed to the box and is visually separated by material and seams.
- `lid`: lid slab, underside stiffening rails, hinge knuckles, and top decoration as one rigid body.
- `crank`: axle, front escutcheon, crank arm and turned grip as one rigid body.

There is no clown/puppet: a figure is not part of the requested category. A compact spring assembly is visible inside when the lid is open.

## Joints
- `lid_hinge`: revolute, parent `box` -> child `lid`; pivot is the rear lid edge at (0, +0.1025, 0.217), axis +X, limits -110° to 0°. Rest pose is closed. Negative rotation raises the front edge.
- `crank_axle`: continuous, parent `box` -> child `crank`; pivot at (0, -0.104, 0.090), axis +Y (the axle points through the front panel). The crank turns continuously.

All body contents are mounted on the named body. The crank is journaled in the front bearing; hinge barrels sit on the rear hinge line. The latch plate is mounted inside the front wall at the lid's front edge. The spring coil/post is anchored to the interior floor and music-movement casing. A real spring/latch release is sequence-dependent and cannot be represented as a coupled joint in v4lib, so the lid and crank are independently articulated.

## Visual details and materials
Use a bright red enamel body with yellow corner strips and a repeated cream/yellow diamond motif on each face, framed by narrow brass-colored pinstripes. Add brass feet, a layered front crank escutcheon, screws, rear hinge barrels, an exposed front catch and a small JACK-IN-THE-BOX maker plaque. The lid has a warm yellow painted top, red perimeter band, brass corner caps, underside cross braces and a small central star. The interior has a pale cream floor, red inner walls, brass mechanism cover with vents and screws, a prominent brass spring coil around a painted central post, and a brass latch plate. The crank has a brass bearing/axle, bent brass arm and a turned oak grip with brass ferrules. A small clown-face medallion decorates each side panel. Use rounded/bevelled edges, restrained seams and attached fasteners for a polished, mass-produced toy appearance.
