BUILD REQUEST - PL-155 Ferrofluid Symphony - please build this now I'm sending you this as my request: please build the one-file HTML app described below. Start now and do the whole build in your answer to this message. - This is a build job, not a document to summarize, review or discuss. Don't ask me anything first: if a detail is unclear, pick the most sensible option and keep going. - The spec is everything between the BEGIN SPEC and END SPEC lines. Follow all of it exactly. - If your tool can create files, also save the finished file as PL-155-ferrofluid-symphony.html. ===== BEGIN SPEC ===== FERROFLUID SYMPHONY: Spikes on the Magnet Stage HOOK OBJECT: window.__ferro Build "FERROFLUID SYMPHONY": a macro acoustics-lab sculpture in Three.js where a glossy jet-black pool of magnetic liquid sits inside a brushed-brass dish above three electromagnets and under a movable chrome magnet wand. Energizing the coils or sweeping the wand pulls sharp Rosensweig spikes out of the pool that lean along field lines, split on harmonic beats, and collapse into concentric ripples with a wet metallic slap when polarity drops. LOOK - Style: dark luxury studio macro shot, palette obsidian #07090D, liquid chrome-black #0A0D12, brushed brass #C89B4B, warm tungsten rim #FFB469, cool studio softbox #DCEEFF. - Subject: a 24 cm diameter turned-brass dish with a beveled lip and 3 visible copper-wound coil rings underneath, holding a 16 cm glossy ferrofluid pool (high-resolution displaced mesh, clearcoat 1.0, roughness <= 0.08, custom studio environment map made in code so every spike catches crisp specular highlights), plus a hovering chrome magnet wand above the rim. - FIRST FRAME (t = 0, no input): 38-degree macro camera angle with the brass dish and crowned ferrofluid spikes filling at least 55% of the screen height, coil #1 already energized so at least 14 sharp specular spikes stand cleanly silhouetted against warm rim light, with a compact top-left instrument pill away from the dish. MOTION / PLAY - Controls: drag across the pool (mouse or finger) to sweep the hovering magnet wand in X/Z; wheel or W/S raises or lowers wand height (2 cm to 14 cm); keys 1–4 or mode buttons switch coil presets (CROWN, TWIN VORTEX, PULSEMATRIX, DROP); drag outside the dish to orbit the camera. - Physics & surface field: surface height at each vertex sums Gaussian-damped radial spike lattices around active coil centers and the 3D wand position, conserving pool volume (mean height stays constant within 2 mm as spikes rise) with spring-damped vertical velocity so spikes overshoot, shimmer, and slosh into ring waves when field strength drops. - When wand height drops below 5 cm, fluid bridges upward toward the wand tip and adds +1 to bridges; clicking DROP (or Space) cuts coil current to zero for 1.2 s so all spikes collapse into traveling ring waves before the next preset fires. - ATTRACT MODE: with no input, a hands-free demo starts on load and loops every 25–30 s, cycling coil presets at 110 BPM, sweeping the wand low enough to pull a liquid bridge, and firing a full polarity drop. Any input takes over; the demo resumes after 8 s with no input. SOUND - Coil beat pulse (110 BPM) -> deep sub-bass thump synchronized with spike height surges. - Wand sweep near the pool -> resonant metallic filter-sweep hum whose pitch rises as wand distance shrinks. - Liquid bridge snap-up -> crisp magnetic zip upward; polarity drop collapse -> low wet metallic slap and ring-down shimmer. COUNTERS stats() returns { fps, activeSpikes, peakHeightMm, bridges, polarityDrops, preset }. - activeSpikes: current count of distinct local surface maxima at least 6 mm above the resting pool plane. - bridges: +1 each time the wand approaches close enough to pull a spike peak above 28 mm toward the wand tip (once per approach). Never on a timer, never on load. - polarityDrops: +1 each time coil current cuts to zero from an energized state and the crown visibly collapses. - On screen: top-left pill showing "SPIKES N · PEAK NN mm · BRIDGES N · DROPS N", readable in a paused frame and never over the dish. CHECKS for ?test=1 With ?test=1, run an accelerated self-test that measures real positions and real events (not self-set flags) and logs "TEST n PASS" or "TEST n FAIL: reason" to the console and to window.__testResults: 1. First frame: the brass dish and ferrofluid pool span at least 50% of the screen height, and at least 12 distinct surface maxima rise >= 6 mm above the resting plane with zero console errors. 2. Volume conservation: across low, medium and maximum field strength, average pool surface height stays within 2 mm of the resting plane while peakHeightMm exceeds 22 mm at full field. 3. Wand tracking: moving the magnet wand to 3 different quadrants shifts the highest spike centroid into that same quadrant within 0.5 s each time. 4. Bridge & polarity drop: lowering the wand under 4.5 cm pulls peakHeightMm above 28 mm and increments bridges by 1; triggering a polarity drop increments polarityDrops by 1 and decays activeSpikes to 0 within 0.9 s. 5. Attract showcase: 28 s of hands-free advance() visits at least 3 presets, records >= 1 bridge and >= 1 polarity drop, and keeps all fluid vertices inside the brass dish radius. KEEP IT SHORT - Keep the whole file under about 1,500 lines (soft target) so you can write it in one pass and finish well inside 15 minutes. - Save lines with helpers, loops and instancing, not by dropping features. Everything above must really work: no placeholders, no TODOs. BUILD RULES (all required): - Deliver ONE self-contained HTML file: inline CSS and JS, no build step, no local assets. Libraries only from a CDN. If you use Three.js, use exactly this import map: {"imports":{"three":"https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js","three/addons/":"https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/"}} - It must open straight from disk in desktop Chrome and on an iPhone (Safari), fill the full screen, handle resize and touch, and stay smooth (target 60 fps). - It must look stunning in the very FIRST frame: no black screen, no loading wait, no tiny subject. The main subject fills at least 50% of the screen height. - SOUND (required): all sound is made in code with Web Audio (no audio files). Show a small "🔊 TAP FOR SOUND" chip; on the first tap create ONE AudioContext, route everything through a master gain of 0.6 into a DynamicsCompressor, and hide the chip. Also expose enableAudio() on the hook object named at the top. - Expose the hook object named at the top with: setCameraOrbit(azimuthDeg, elevationDeg, distance) (or an equivalent camera setter), advance(seconds) that steps the simulation exactly that much for still captures, enableAudio(), and stats() returning {fps, ...the counters named above}. Use a fixed random seed of 360 so every run is the same. - Every on-screen counter must count a real event you can see happen. No fake numbers. - No text overlapping the subject; any label must be readable in a paused frame. - No brand logos, no real people, no copyrighted characters, brand names or logos. FAILURE MODES TO AVOID - Matte gray or flat black fluid with no studio reflections, so individual spikes merge into an unreadable silhouette. - Spikes growing without lowering the surrounding meniscus (violating volume conservation) or poking outside the brass dish rim. - Static spikes that ignore the magnet wand position or snap instantly instead of sloshing with spring damping. - Counters ticking on a clock rather than measuring real vertex peaks and real collapse events. - Text overlapping the brass dish or spikes. - The same variable declared twice, or methods called on objects that don't exist yet. SELF-TEST LOOP - If you can run code: build the file, open it, read the console, run ?test=1, and take screenshots at 3 s, 10 s and 30 s at 1280x720 and 390x844. Look at the screenshots and fix what looks wrong. Fix and retest until all 5 checks pass with zero console errors. Mark anything you could not run as UNMEASURED; never invent results. - If you are chat-only: go through this prompt line by line, check your code against each line, and fix anything that would fail. Then write one corrected, complete file. - Final answer: ONE complete HTML file in ONE code block, then the 5 checks marked PASS, FAIL or UNMEASURED. No snippets, no "rest unchanged". ===== END SPEC ===== Now build it. Reply with ONE complete HTML file in ONE code block, then the 5 checks marked PASS, FAIL or UNMEASURED.