the prompt:
Build a single-page interactive 3D explainer called "How a car engine turns fuel into motion" with three.js (vanilla JS, no framework, no build step).
The engine: a cutaway inline-4, four-stroke petrol engine with crankshaft, connecting rods, pistons, two camshafts, valves with springs, spark plugs, timing belt, intake manifold with throttle, exhaust manifold, flywheel, and a dashed see-through casing. One crank angle drives everything with real slider-crank motion, firing order 1-3-4-2, cams at half crank speed, and valves opening on their lobes. Show the gas in each cylinder coloured by stroke (blue intake, ochre compression, red power, grey exhaust), a spark flash just before top dead centre, flow particles, and exhaust pipes that glow red as they heat up.
The look: a white engineering drawing sheet. Pale grid paper, an ink border with zone numbers and letters, and a title block. The 3D parts are light grey toon-shaded with dark ink outlines. Use Instrument Serif for headings, with an italic red "car engine", Geist for body text and Geist Mono for labels and numbers. Use open sections with a heavy top rule, not cards.
Layout: the engine in the centre with numbered drafting-balloon labels on both sides.
Left: the followed cylinder's current stroke (big number, name, nickname "suck / squeeze / bang / blow", a short explanation, clickable stroke list) and live readouts (crank angle, valves, spark, pressure).
Right: a tachometer, an accelerator slider that changes rpm with inertia, slow-motion buttons (1/200, 1/60, 1/12), a pressure-volume loop, and back / play / next buttons.
Bottom: a firing chart of the four cylinders across 720 degrees that you can drag to scrub, and click a row to follow that cylinder.
Top bar: toggles for Casing, Gas flow, Labels and Orbit. Drag to orbit the camera.
It must work on desktop and phone.
Bonus: a script that records a silent 60 fps 1080p walkthrough video of the page with a visible cursor clicking through the controls. Then add an engine sound generated in code from the recorded rpm, so the pitch follows the tachometer.