Skip to content

Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.

feat: add the exploded axonometric diagram type (#268)

Cathryn Laveryd86805d85dca
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index f67f0c0..1e29736 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -1,7 +1,7 @@
{
"name": "diagram-design",
"metadata": {
- "description": "Architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart, loop, nested, tree, org chart, layer stack, Venn, pyramid/funnel, bar, waterfall, treemap, heatmap, line, Gantt, scatter, high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, deployment, dependency graph, UML class, story map, database schema, lifecycle phases."
+ "description": "Architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar, loop, nested, tree, org chart, layer stack, exploded, Venn, pyramid/funnel, bar, waterfall, treemap, heatmap, line, Gantt, scatter, high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, deployment, dependency graph, UML class, story map, DB schema, lifecycle phases."
},
"owner": {
"name": "Cathryn Lavery"
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index ecc9258..55eab36 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "diagram-design",
- "description": "Architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart, loop, nested, tree, org chart, layer stack, Venn, pyramid/funnel, bar, waterfall, treemap, heatmap, line, Gantt, scatter, high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, deployment, dependency graph, UML class, story map, database schema, lifecycle phases.",
+ "description": "Architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar, loop, nested, tree, org chart, layer stack, exploded, Venn, pyramid/funnel, bar, waterfall, treemap, heatmap, line, Gantt, scatter, high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, deployment, dependency graph, UML class, story map, DB schema, lifecycle phases.",
"version": "2.6.54",
"author": {
"name": "Cathryn Lavery",
diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json
index baed1e9..a8de200 100644
--- a/.codex-plugin/plugin.json
+++ b/.codex-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "diagram-design",
- "description": "Architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart, loop, nested, tree, org chart, layer stack, Venn, pyramid/funnel, bar, waterfall, treemap, heatmap, line, Gantt, scatter, high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, deployment, dependency graph, UML class, story map, database schema, lifecycle phases.",
+ "description": "Architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar, loop, nested, tree, org chart, layer stack, exploded, Venn, pyramid/funnel, bar, waterfall, treemap, heatmap, line, Gantt, scatter, high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, deployment, dependency graph, UML class, story map, DB schema, lifecycle phases.",
"version": "2.6.54",
"author": {
"name": "Cathryn Lavery",
@@ -26,7 +26,7 @@
"interface": {
"displayName": "Diagram Design",
"shortDescription": "Create editorial diagrams",
- "longDescription": "Diagram Design turns a description of your system, process, or data into an editorial diagram that matches your brand. Editorial diagrams your designer won't hate. No Figma. No generic rounded boxes. No 30-minute color-picking sessions.\n\nDescribe what you need and get a self-contained HTML file with inline SVG that opens in any browser and exports to SVG or PNG. Point it at your website once and it reads your colors and fonts, so every diagram looks like the rest of your site. It also redraws draw.io, Mermaid, and Excalidraw files at the size and level of detail you choose.\n\nEvery node earns its place. The accent color is reserved for the one or two things the reader should look at first.\n\n42 diagram types: architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, Venn, pyramid/funnel, treemap and marimekko, heatmap, bar and dumbbell, waterfall, line (slopegraph, ridgeline, streamgraph, bump), Gantt and scatter charts (bubble, beeswarm), high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, deployment, dependency graph, UML class, story map, and database schema. Plus lifecycle phase maps, block decomposition trees, semantic patterns, callouts, accessible motion, and sketchy hand-drawn styling.",
+ "longDescription": "Diagram Design turns a description of your system, process, or data into an editorial diagram that matches your brand. Editorial diagrams your designer won't hate. No Figma. No generic rounded boxes. No 30-minute color-picking sessions.\n\nDescribe what you need and get a self-contained HTML file with inline SVG that opens in any browser and exports to SVG or PNG. Point it at your website once and it reads your colors and fonts, so every diagram looks like the rest of your site. It also redraws draw.io, Mermaid, and Excalidraw files at the size and level of detail you choose.\n\nEvery node earns its place. The accent color is reserved for the one or two things the reader should look at first.\n\n43 diagram types: architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, exploded axonometric, Venn, pyramid/funnel, treemap and marimekko, heatmap, bar and dumbbell, waterfall, line (slopegraph, ridgeline, streamgraph, bump), Gantt and scatter charts (bubble, beeswarm), high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, deployment, dependency graph, UML class, story map, and database schema. Plus lifecycle phase maps, block decomposition trees, semantic patterns, callouts, accessible motion, and sketchy hand-drawn styling.",
"developerName": "LittleMight",
"category": "Creativity",
"capabilities": [
diff --git a/.factory-plugin/plugin.json b/.factory-plugin/plugin.json
index ecc9258..55eab36 100644
--- a/.factory-plugin/plugin.json
+++ b/.factory-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "diagram-design",
- "description": "Architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart, loop, nested, tree, org chart, layer stack, Venn, pyramid/funnel, bar, waterfall, treemap, heatmap, line, Gantt, scatter, high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, deployment, dependency graph, UML class, story map, database schema, lifecycle phases.",
+ "description": "Architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar, loop, nested, tree, org chart, layer stack, exploded, Venn, pyramid/funnel, bar, waterfall, treemap, heatmap, line, Gantt, scatter, high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, deployment, dependency graph, UML class, story map, DB schema, lifecycle phases.",
"version": "2.6.54",
"author": {
"name": "Cathryn Lavery",
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 167215f..8179764 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -410,6 +410,21 @@ jobs:
id: architecture_delta_tests
run: python scripts/test-verify-architecture-delta.py
+ - name: Verify exploded examples match their builder
+ if: always()
+ id: exploded_build
+ run: python scripts/build-exploded-examples.py --check
+
+ - name: Verify exploded axonometric geometry
+ if: always()
+ id: exploded
+ run: python scripts/verify-exploded.py --all
+
+ - name: Verify exploded axonometric checker
+ if: always()
+ id: exploded_tests
+ run: python scripts/test-verify-exploded.py
+
- name: Verify tone claims against the ramps they describe
if: always()
id: skin_polarity
@@ -539,6 +554,9 @@ jobs:
echo "| Beeswarm Checker | ${{ steps.beeswarm_tests.outcome == 'success' && '✅ Passed' || (steps.beeswarm_tests.outcome == 'skipped' && '⏭️ Skipped' || '❌ Failed') }} |" >> $GITHUB_STEP_SUMMARY
echo "| Architecture Delta Snapshots & Ledger | ${{ steps.architecture_delta.outcome == 'success' && '✅ Passed' || (steps.architecture_delta.outcome == 'skipped' && '⏭️ Skipped' || '❌ Failed') }} |" >> $GITHUB_STEP_SUMMARY
echo "| Architecture Delta Checker | ${{ steps.architecture_delta_tests.outcome == 'success' && '✅ Passed' || (steps.architecture_delta_tests.outcome == 'skipped' && '⏭️ Skipped' || '❌ Failed') }} |" >> $GITHUB_STEP_SUMMARY
+ echo "| Exploded Examples Match Builder | ${{ steps.exploded_build.outcome == 'success' && '✅ Passed' || (steps.exploded_build.outcome == 'skipped' && '⏭️ Skipped' || '❌ Failed') }} |" >> $GITHUB_STEP_SUMMARY
+ echo "| Exploded Axonometric Geometry | ${{ steps.exploded.outcome == 'success' && '✅ Passed' || (steps.exploded.outcome == 'skipped' && '⏭️ Skipped' || '❌ Failed') }} |" >> $GITHUB_STEP_SUMMARY
+ echo "| Exploded Axonometric Checker | ${{ steps.exploded_tests.outcome == 'success' && '✅ Passed' || (steps.exploded_tests.outcome == 'skipped' && '⏭️ Skipped' || '❌ Failed') }} |" >> $GITHUB_STEP_SUMMARY
echo "| Tone Claim vs Ramp Polarity | ${{ steps.skin_polarity.outcome == 'success' && '✅ Passed' || (steps.skin_polarity.outcome == 'skipped' && '⏭️ Skipped' || '❌ Failed') }} |" >> $GITHUB_STEP_SUMMARY
echo "| Skin Polarity Checker | ${{ steps.skin_polarity_tests.outcome == 'success' && '✅ Passed' || (steps.skin_polarity_tests.outcome == 'skipped' && '⏭️ Skipped' || '❌ Failed') }} |" >> $GITHUB_STEP_SUMMARY
echo "| Primitive Icons & Documentation | ${{ steps.icons.outcome == 'success' && '✅ Passed' || (steps.icons.outcome == 'skipped' && '⏭️ Skipped' || '❌ Failed') }} |" >> $GITHUB_STEP_SUMMARY
diff --git a/.maintainer-policy.json b/.maintainer-policy.json
index 6afd3f4..7190d6a 100644
--- a/.maintainer-policy.json
+++ b/.maintainer-policy.json
@@ -74,6 +74,9 @@
"python3 scripts/test-verify-geometry.py",
"python3 scripts/verify-architecture-delta.py --all",
"python3 scripts/test-verify-architecture-delta.py",
+ "python3 scripts/build-exploded-examples.py --check",
+ "python3 scripts/verify-exploded.py --all",
+ "python3 scripts/test-verify-exploded.py",
"python3 scripts/verify-block-registry.py --all",
"python3 scripts/test-verify-block-registry.py",
"python3 scripts/verify-treemap.py --all",
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 1d0bf9c..a36e3c2 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -8,7 +8,7 @@ Please read [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) first. All contributions ar
## What this project is
-Diagram Design is an agent skill (Claude Code, Codex, Factory Droid, Pi) that produces editorial-quality diagrams as self-contained HTML files. The repo is documentation-first: `skills/diagram-design/SKILL.md` is the index, each of the 42 visual types has its own reference file, and the extractor scripts in `skills/diagram-design/scripts/` turn draw.io, Mermaid, and Excalidraw sources into a structured IR.
+Diagram Design is an agent skill (Claude Code, Codex, Factory Droid, Pi) that produces editorial-quality diagrams as self-contained HTML files. The repo is documentation-first: `skills/diagram-design/SKILL.md` is the index, each of the 43 visual types has its own reference file, and the extractor scripts in `skills/diagram-design/scripts/` turn draw.io, Mermaid, and Excalidraw sources into a structured IR.
See [README.md](README.md) for the full picture, including the design system and the import/export flows.
@@ -65,6 +65,9 @@ Every validation gate below must pass before a PR is ready. They also run automa
| Label geometry checker behaves (pass + adversarial cases) | `python3 scripts/test-verify-geometry.py` |
| Architecture delta snapshots preserve identity, ledger coverage, signatures, positions, and relationship endpoints | `python3 scripts/verify-architecture-delta.py --all` |
| Architecture delta checker behaves (pass + adversarial cases) | `python3 scripts/test-verify-architecture-delta.py` |
+| Exploded examples are what the builder produces | `python3 scripts/build-exploded-examples.py --check` |
+| Exploded axonometric silhouettes match their declared boxes, gaps are equal, and labels sit in one clear column | `python3 scripts/verify-exploded.py --all` |
+| Exploded axonometric checker behaves (pass + adversarial cases) | `python3 scripts/test-verify-exploded.py` |
| Traceable block decomposition registries have unique IDs, resolving parents, names, and no cycles | `python3 scripts/verify-block-registry.py --all` |
| Block registry checker behaves (pass + adversarial cases) | `python3 scripts/test-verify-block-registry.py` |
| Treemap cells match the values they are labelled with, and labels fit | `python3 scripts/verify-treemap.py --all` |
@@ -149,6 +152,9 @@ python3 scripts/test-plugin-package.py \
&& python3 scripts/test-verify-geometry.py \
&& python3 scripts/verify-architecture-delta.py --all \
&& python3 scripts/test-verify-architecture-delta.py \
+ && python3 scripts/build-exploded-examples.py --check \
+ && python3 scripts/verify-exploded.py --all \
+ && python3 scripts/test-verify-exploded.py \
&& python3 scripts/verify-block-registry.py --all \
&& python3 scripts/test-verify-block-registry.py \
&& python3 scripts/verify-treemap.py --all \
@@ -183,7 +189,7 @@ python3 scripts/test-plugin-package.py \
- **`verify-plugin-package.py`:** if it reports a version change, drop the manifest edits from your branch — versions are bumped on `main` after merge, never in a PR. If packaging validation fails, keep all native marketplaces pointed at the repository root and keep the shared skill at `skills/diagram-design/SKILL.md`.
- **`lint-skin.py`:** the failure message names the file, line, and category (`color`, `font-family`, `a11y`, `external-asset`, `pure-black`, `script`). Colors must come from the palette in `skills/diagram-design/references/style-guide.md`; fonts from the allowed list; diagrams must satisfy the accessible SVG contract (see below). The linter also requires the SHA-pinned controller from `template-motion.html` verbatim and rejects remote resources, CSS `@import`, non-fragment CSS `url()`, event handlers, `srcdoc`, executable URLs, and extra scripts.
- **`verify-*.py`:** the extractor's real behavior no longer matches its fixture or the documentation, or the reference/command/prompt wiring drifted. Fix the source of truth — do not widen a test to avoid a failure.
-- **`verify-screenshot-freshness.py`:** a canonical minimal-light example or its committed PNG changed without a synchronized catalog refresh. Before the first regeneration, install the renderer with `python3 -m pip install playwright && python3 -m playwright install chromium`. Then run `python3 scripts/render-canonical-screenshots.py`, inspect all 42 renders, and commit the updated PNGs plus `docs/screenshots/manifest.json`. The gate hashes example sources in their canonical LF form, so a checkout that converts LF to CRLF still passes; `scripts/test-verify-screenshot-freshness.py` covers that case, real source drift, and raw PNG digests.
+- **`verify-screenshot-freshness.py`:** a canonical minimal-light example or its committed PNG changed without a synchronized catalog refresh. Before the first regeneration, install the renderer with `python3 -m pip install playwright && python3 -m playwright install chromium`. Then run `python3 scripts/render-canonical-screenshots.py`, inspect all 43 renders, and commit the updated PNGs plus `docs/screenshots/manifest.json`. The gate hashes example sources in their canonical LF form, so a checkout that converts LF to CRLF still passes; `scripts/test-verify-screenshot-freshness.py` covers that case, real source drift, and raw PNG digests.
- **`build-readme-thumbs.py --check`:** a README preview is missing, stale, corrupt, the wrong size, orphaned, or no longer links to its full PNG. Install the pinned renderer with `python3 -m pip install Pillow==12.1.1`, run `python3 scripts/build-readme-thumbs.py`, inspect the preview changes, and commit the WebPs plus `docs/screenshots/thumbs/manifest.json`.
- **`verify-marimekko.py`:** a column is drawn off its category's share of the width, a segment off its series' share of the column, the columns do not share one plot height or one gutter, segments leave a gap or overlap, a series changes order between columns, a second segment wears the accent, anything positions a segment or a bound label from a `transform` attribute, an inline `style`, or a `<style>` rule, or a label, caption or key disagrees with the rect it binds. Fix the geometry or the declaration so they state one thing — never widen a column or pad a segment to fit a label, and never drop a category or a series to tidy the grid.
- **`verify-slopegraph.py`:** the two axes disagree about scale or origin, or an endpoint is drawn somewhere other than where its own declared value belongs. Fix the coordinate, never the label — and never move a point to stop two endpoint labels colliding, because crowded labels mean the values really are close.
@@ -195,6 +201,7 @@ python3 scripts/test-plugin-package.py \
- **`verify-skin-polarity.py`:** a legend key or caption names the ramp's direction by lightness (`darker is larger`) in a file whose ramp composites the other way. `ink` is a role, not a colour — it resolves near-black on light paper and near-white on dark — so one set of opacities runs darker as it strengthens in the light skin and lighter in the dark one. Name the direction by contrast against the paper (`stronger contrast is larger`), which survives the skin swap, and ship the same sentence in every variant; never invert the word for one file. The gate also fails closed on a claim it cannot substantiate — no resolvable paper colour, fewer than three rank-bearing ramp members, or a ramp that is not strictly ordered — and on wording it cannot parse: a tone word within six words of a magnitude word that no supported sentence form binds. Rephrase that as `<tone> <is|means|represents> <magnitude>` (`stronger contrast is larger`), because a claim the gate cannot read is a claim nothing checks.
- **`verify-geometry.py`:** a label mask overlaps a node declared later in the document, so the node fill clips the label at render time. Move the label to a free segment of its connector — keep the 6–10px gap from the stroke required by SKILL.md §6, and do not shrink the mask to sneak under the check.
- **`verify-architecture-delta.py`:** a stable ID, snapshot membership, status, signature, position, endpoint, or ledger target disagrees with the declared migration. Follow `type-architecture-delta.md`: record every changed object in the center ledger, retain unchanged positions on matching grids, and distinguish CHANGED, MOVED, and REWIRED by what actually differs. Fix the diagram and metadata together; never suppress the ledger entry to hide an unaccounted change.
+- **`verify-exploded.py`:** a part's silhouette is off the projection of the box it declares, a level sits at two heights, the gaps differ or fall under max(0.5 x top-face height, 3 x part thickness), a leader bends, starts off its part, or crosses another part, labels crowd or leave the column, or an animated lift disagrees with the geometry. Change the model in `scripts/build-exploded-examples.py` and rebuild; never nudge a drawn coordinate, and never shrink a gap to fit the canvas.
- **`verify-block-registry.py`:** a Traceable block decomposition diagram (`semantic-patterns.md` § 8) has a duplicate `data-block-id`, a `data-block-parent` that doesn't resolve to another block's id in the same file, a blank `data-block-id`, a missing or blank `data-block-name`, or a cycle in the parent chain. Fix the diagram's attributes — the checker mirrors the source rather than validating semantics, so a passing file is only as correct as the IDs and parents actually authored on it.
- **Icon assets:** you changed `scripts/vendor/icons/` or `scripts/build-icons.py` and the generated files went stale. Rerun `python3 scripts/build-icons.py` and commit the regenerated files.
diff --git a/README.md b/README.md
index 2ffa8a2..41e967a 100644
--- a/README.md
+++ b/README.md
@@ -106,12 +106,14 @@ Every visual type ships in three static variants: minimal light, minimal dark, a
<tr>
<td align="center" width="33%"><a href="docs/screenshots/waterfall.png"><img src="docs/screenshots/thumbs/waterfall.webp" alt="Waterfall"></a><br><b>Waterfall</b><br><sub>Running total + signed bridges</sub></td>
<td align="center" width="33%"><a href="docs/screenshots/architecture-delta.png"><img src="docs/screenshots/thumbs/architecture-delta.webp" alt="Architecture delta"></a><br><b>Architecture delta</b><br><sub>Before · Changes · After topology</sub></td>
- <td align="center" width="33%"></td>
+ <td align="center" width="33%"><a href="docs/screenshots/exploded.png"><img src="docs/screenshots/thumbs/exploded.webp" alt="Exploded axonometric"></a><br><b>Exploded axonometric</b><br><sub>Parts pulled apart on one axis</sub></td>
</tr>
</table>
Architecture delta compares synchronized topologies through a Before · Changes · After ledger of added, removed, changed, moved, and rewired objects. See its [reference](skills/diagram-design/references/type-architecture-delta.md) and [order-fulfilment example](skills/diagram-design/assets/example-architecture-delta.html). Attribute-only comparisons remain tables; a single snapshot uses Architecture.
+Exploded axonometric draws one object in 2:1 dimetric projection with its parts lifted apart at equal gaps: a [phone teardown](skills/diagram-design/assets/example-exploded-phone.html), an [unboxing](skills/diagram-design/assets/example-exploded-unboxing.html), or an [app stack](skills/diagram-design/assets/example-exploded.html). Every coordinate comes from one projection function, and the [animated phone](skills/diagram-design/assets/example-exploded-phone-animated.html) opens assembled and explodes once. See its [reference](skills/diagram-design/references/type-exploded.md).
+
The v2.5.10 release added ten layout grammars. Compare their light, dark, and full-editorial variants in the [30-variant contact sheet](.github/pr-previews/editorial-diagrams-2.5.10.jpg).
**Browse the live gallery:** [cathrynlavery.github.io/diagram-design](https://cathrynlavery.github.io/diagram-design/) — or open [`skills/diagram-design/assets/index.html`](skills/diagram-design/assets/index.html) locally to flip through every diagram with light / dark / full-editorial tabs.
@@ -442,6 +444,7 @@ diagram-design/
│ │ ├── type-tree.md
│ │ ├── type-org-chart.md
│ │ ├── type-layers.md
+│ │ ├── type-exploded.md
│ │ ├── type-venn.md
│ │ ├── type-pyramid.md
│ │ ├── type-sankey.md
@@ -577,6 +580,7 @@ At startup, the agent sees only the skill name and description. When a request m
| "Make me a flowchart" | `SKILL.md` + `references/type-flowchart.md` |
| "Build an architecture diagram" | `SKILL.md` + `references/type-architecture.md` |
| "Show what was added, removed, changed, moved, or rewired in this migration" | `SKILL.md` + `references/type-architecture-delta.md` |
+| "Show what's inside this device, exploded" | `SKILL.md` + `references/type-exploded.md` |
| "Compare why these two policy requests differ" | `SKILL.md` + `references/semantic-patterns.md` + `references/type-flowchart.md` |
| "Animate that policy trace" | Prior selection + `references/animation.md` |
| "Onboard this skill to my site" | `SKILL.md` + `references/onboarding.md` + `references/style-guide.md` |
diff --git a/docs/adr/0002-semantic-patterns-do-not-expand-the-taxonomy.md b/docs/adr/0002-semantic-patterns-do-not-expand-the-taxonomy.md
index da17612..35f6af6 100644
--- a/docs/adr/0002-semantic-patterns-do-not-expand-the-taxonomy.md
+++ b/docs/adr/0002-semantic-patterns-do-not-expand-the-taxonomy.md
@@ -34,4 +34,6 @@ Behavior is a separate axis. The semantic patterns in `references/semantic-patte
**2026-09-29 — the count is 42.** Synchronized Before · Changes · After topologies with stable identities and an exact change ledger constitute a new layout grammar under the same escape clause. It ships the full §10 set and moves the canonical counters 41 → 42 together; see [ADR 0012](0012-architecture-delta.md).
+**2026-10-04 · the count is 43.** Exploded axonometric was admitted under the same escape clause: a 2:1 dimetric projection of one object with its parts pulled apart along one axis, at equal gaps, with parts that share a level exploding together, is a layout grammar no existing type provides (layer stack stacks text bands with no footprint, architecture joins boxes with connectors, nested shows containment without order). It ships the full §10 set and moves the canonical counters 42 → 43 together; see [ADR 0013](0013-exploded-axonometric.md).
+
The decision itself is unchanged — semantic patterns still never add a type, and the count still moves only for a new *layout* grammar. What this amendment records is the procedure: the two counters are this ADR's enforcement, so a PR that edits them without amending this file has quietly made itself the authority. Amend here in the same PR, or the number in the test is just whatever the last contributor typed.
diff --git a/docs/adr/0013-exploded-axonometric.md b/docs/adr/0013-exploded-axonometric.md
new file mode 100644
index 0000000..0393dd6
--- /dev/null
+++ b/docs/adr/0013-exploded-axonometric.md
@@ -0,0 +1,38 @@
+# ADR 0013: Exploded axonometric is a projection grammar
+
+**Status:** accepted
+
+## Context
+
+Some figures the skill could only flatten: what is inside a phone, what comes out of the box in what order, and the layers of a product drawn as parts of one object. ADR 0002 admits a new type only when a genuinely new layout grammar appears. The nearest existing grammars were audited against that bar:
+
+- **Layer stack** stacks full-width bands of text. A band has no footprint, no thickness, and no relationship to the object it belongs to.
+- **Architecture** joins boxes with connectors; position carries no meaning of its own.
+- **Nested** shows containment without order or a physical axis.
+- **Deployment** places software on hosts in a logical topology with no physical object.
+
+None of them projects a three-dimensional model, orders parts along a physical axis, or shows that two parts sit side by side inside a third. An exploded view needs all three.
+
+## Decision
+
+Add **Exploded axonometric** as visual type #43 with the full §10 shipping set: `references/type-exploded.md`, three example triples (app stack, phone, unboxing), two animated examples, gallery tabs, the selection-table row and frontmatter hook, a budget row (5 parts, 5 levels, 1 focal part, three detail levels), the canonical screenshot, and an executable contract.
+
+Every part declares its geometry. It states its model box (`data-rect`, `data-z`, `data-t`) and level, and the figure states its origin and gap. `scripts/verify-exploded.py` reprojects each silhouette with one 2:1 dimetric function and fails on projection drift, unequal gaps, a gap under its floor, a level split across heights, leaders that bend, start off the part, or cross another part, crowded or multi-column labels, more than one focal part, trace lines that lean, and animated lifts that disagree with the geometry. `scripts/test-verify-exploded.py` proves both polarities per ADR 0005. `scripts/build-exploded-examples.py` builds every shipped example from the same projection, so no example coordinate is placed by hand.
+
+Three scoped decisions:
+
+- **One primitive.** Slab, box, and cylinder are the same rounded prism at different corner radii, and a container is that prism with a cavity. One silhouette algorithm covers every shipped part, which is what makes the verifier short enough to trust.
+- **Parts can share a level.** Parts that sit side by side in the assembled object explode together. Without this a phone's board and battery stack a full gap apart, which misdescribes the object and wastes the canvas.
+- **No contact shadow.** Shadows are an anti-pattern in this skin (SKILL.md §4), so the bottom part grounds the object instead.
+
+## Motion exception
+
+`animation.md` caps translation at 24px. An exploded view that opens as the assembled object and lifts apart needs its parts to travel their full explode distance, often hundreds of pixels, because the travel is what the figure explains. The exception is scoped to exactly that: a part may translate straight up by its declared `--lift`, which must equal its exploded `z` minus its assembled `z`, and the verifier checks the equality. Nothing else in the figure moves further than 24px, the controller stays the pinned one from `template-motion.html` (ADR 0001), the run happens once on load (ADR 0003), and the static, no-JavaScript, reduced-motion, print, and export states all show the exploded frame.
+
+Canonical examples stay static, because the screenshot catalog captures the first SVG as soon as fonts load and an autoplaying example would be photographed mid-run. Animated versions ship as separate `-animated` files.
+
+## Consequences
+
+- The verifiable type count moves to 43. ADR 0002 is amended in the same change.
+- The plugin manifest descriptions were already at the 500-character Cowork limit, so adding the type's lexical hook cost words elsewhere in each description.
+- An axonometric site or floor plan (buildings on a plate, walls cut at desk height) uses the same projection without an explode. It is a different grammar with its own label rule (tags on roofs and floors instead of a leader column), so it is proposed as its own type.
diff --git a/docs/screenshots/exploded.png b/docs/screenshots/exploded.png
new file mode 100644
index 0000000..ed66aaf
Binary files /dev/null and b/docs/screenshots/exploded.png differ
diff --git a/docs/screenshots/manifest.json b/docs/screenshots/manifest.json
index 936ccae..8dba2fc 100644
--- a/docs/screenshots/manifest.json
+++ b/docs/screenshots/manifest.json
@@ -164,6 +164,15 @@
"width": 2400,
"height": 1202
},
+ {
+ "slug": "exploded",
+ "source": "skills/diagram-design/assets/example-exploded.html",
+ "screenshot": "docs/screenshots/exploded.png",
+ "source_sha256": "164bee35a19956151cb0c3043ac41054de9d5ae6dfcf0ed2c2c211d16218604d",
+ "screenshot_sha256": "e835ddfc5e9bf34191e410fe2d7020ed9340b34535647964abdba82ff68baa9c",
+ "width": 2400,
+ "height": 1336
+ },
{
"slug": "venn",
"source": "skills/diagram-design/assets/example-venn.html",
diff --git a/docs/screenshots/thumbs/exploded.webp b/docs/screenshots/thumbs/exploded.webp
new file mode 100644
index 0000000..6195252
Binary files /dev/null and b/docs/screenshots/thumbs/exploded.webp differ
diff --git a/docs/screenshots/thumbs/manifest.json b/docs/screenshots/thumbs/manifest.json
index f668aa9..e2e1a27 100644
--- a/docs/screenshots/thumbs/manifest.json
+++ b/docs/screenshots/thumbs/manifest.json
@@ -96,6 +96,15 @@
"quality": 82,
"thumb_sha256": "cf2a816b86ca379f13ac1cb9de1bc1619eee598237e81a582d8dff239f24c822"
},
+ {
+ "thumb": "exploded.webp",
+ "source": "docs/screenshots/exploded.png",
+ "source_sha256": "e835ddfc5e9bf34191e410fe2d7020ed9340b34535647964abdba82ff68baa9c",
+ "width": 600,
+ "height": 334,
+ "quality": 82,
+ "thumb_sha256": "2dd0e991d4dce224b16effe9197dd597aab8b8847d09dbaf654d63751f6dd85b"
+ },
{
"thumb": "fishbone.webp",
"source": "docs/screenshots/fishbone.png",
diff --git a/scripts/build-exploded-examples.py b/scripts/build-exploded-examples.py
new file mode 100644
index 0000000..79bbd00
--- /dev/null
+++ b/scripts/build-exploded-examples.py
@@ -0,0 +1,787 @@
+#!/usr/bin/env python3
+"""Build the exploded axonometric examples from one projection.
+
+Every coordinate in the generated files comes from ``iso(x, y, z)``, the 2:1
+dimetric projection documented in
+``skills/diagram-design/references/type-exploded.md``. Nothing is placed by
+hand, so the examples can be rebuilt after any change to the model and
+``scripts/verify-exploded.py`` can recompute every silhouette from the
+attributes each part declares.
+
+ python3 scripts/build-exploded-examples.py # write the examples
+ python3 scripts/build-exploded-examples.py --check # fail if any file is stale
+"""
+
+from __future__ import annotations
+
+import argparse
+import math
+import re
+import sys
+from dataclasses import dataclass, field
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent.parent
+ASSETS = ROOT / "skills/diagram-design/assets"
+MOTION_TEMPLATE = ASSETS / "template-motion.html"
+S2 = math.sqrt(2)
+
+# Face tones per skin. Every value is a style-guide role or an rgba() of one.
+SKINS = {
+ "light": dict(
+ paper="#f5f5f5", ink="#2d3142", muted="#4f5d75", soft="#7a8399", accent="#eb6c36",
+ ink_rgb="45,49,66", acc_rgb="235,108,54", base="#ffffff", rule="rgba(45,49,66,0.12)",
+ shade=(None, "rgba(45,49,66,0.07)", "rgba(45,49,66,0.15)"),
+ focal=("rgba(235,108,54,0.10)", "rgba(235,108,54,0.20)", "rgba(235,108,54,0.32)"),
+ cavity="rgba(45,49,66,0.10)", floor="rgba(45,49,66,0.04)", well="rgba(45,49,66,0.14)",
+ screen="#2d3142", island="#111111", chip_top="#4f5d75", chip_side="#2d3142",
+ sil="#2d3142", inner="rgba(45,49,66,0.55)", trace="rgba(45,49,66,0.30)",
+ lead="rgba(45,49,66,0.40)", lead_acc="rgba(235,108,54,0.60)", inner_acc="rgba(235,108,54,0.70)",
+ lens="#2d3142", lens_ring="rgba(245,245,245,0.35)",
+ ),
+ "dark": dict(
+ paper="#2d3142", ink="#f5f5f5", muted="#bfc0c0", soft="#8e98ac", accent="#f08a59",
+ ink_rgb="245,245,245", acc_rgb="240,138,89", base="#393e53", rule="rgba(245,245,245,0.12)",
+ shade=("rgba(245,245,245,0.10)", None, "rgba(45,49,66,0.45)"),
+ focal=("rgba(240,138,89,0.18)", None, "rgba(45,49,66,0.45)"),
+ cavity="rgba(45,49,66,0.55)", floor="rgba(45,49,66,0.25)", well="rgba(45,49,66,0.40)",
+ screen="#111111", island="#2d3142", chip_top="#8e98ac", chip_side="#2d3142",
+ sil="#f5f5f5", inner="rgba(245,245,245,0.45)", trace="rgba(245,245,245,0.30)",
+ lead="rgba(245,245,245,0.40)", lead_acc="rgba(240,138,89,0.60)", inner_acc="rgba(240,138,89,0.70)",
+ lens="#111111", lens_ring="rgba(245,245,245,0.35)",
+ ),
+}
+
+
+# ---------------------------------------------------------------- projection
+
+
+def f(value: float) -> str:
+ rounded = round(value, 2)
+ return str(int(rounded)) if rounded == int(rounded) else f"{rounded:g}"
+
+
+class Proj:
+ """iso(x, y, z) = [x - y, (x + y) / 2 - z], shifted to the drawing origin."""
+
+ def __init__(self, ox: float, oy: float):
+ self.ox, self.oy = ox, oy
+
+ def iso(self, x, y, z):
+ return (self.ox + x - y, self.oy + (x + y) / 2 - z)
+
+
+@dataclass
+class Rect:
+ """A rounded-rectangle footprint. r = 0 is a box; r = w/2 = d/2 is a cylinder."""
+
+ x0: float
+ y0: float
+ x1: float
+ y1: float
+ r: float = 0
+
+ def centers(self):
+ r = self.r
+ return [(self.x1 - r, self.y1 - r), (self.x0 + r, self.y1 - r),
+ (self.x0 + r, self.y0 + r), (self.x1 - r, self.y0 + r)]
+
+ def inset(self, m, r=None):
+ return Rect(self.x0 + m, self.y0 + m, self.x1 - m, self.y1 - m,
+ max(0, self.r - m) if r is None else r)
+
+ def attr(self):
+ return " ".join(f(v) for v in (self.x0, self.y0, self.x1, self.y1, self.r))
+
+
+def corner(theta):
+ return int(math.floor(theta / 90)) % 4
+
+
+def point(P, rect, theta, z, k=None):
+ k = corner(theta) if k is None else k
+ cx, cy = rect.centers()[k]
+ t = math.radians(theta)
+ return P.iso(cx + rect.r * math.cos(t), cy + rect.r * math.sin(t), z)
+
+
+def walk(P, rect, a, b, z):
+ """Path commands from outline angle a to b. Each corner is a quarter of one 2:1 ellipse."""
+ cmds = []
+ rx, ry = rect.r * S2, rect.r / S2
+ rising = b > a
+ th = a
+ while (b - th) * (1 if rising else -1) > 1e-9:
+ nxt = min(b, (math.floor(th / 90) + 1) * 90) if rising else max(b, (math.ceil(th / 90) - 1) * 90)
+ k = corner((th + nxt) / 2)
+ end = point(P, rect, nxt, z, k)
+ if rect.r > 0:
+ cmds.append(f"A {f(rx)} {f(ry)} 0 0 {1 if rising else 0} {f(end[0])} {f(end[1])}")
+ else:
+ cmds.append(f"L {f(end[0])} {f(end[1])}")
+ th = nxt
+ if (b - th) * (1 if rising else -1) > 1e-9:
+ nx = point(P, rect, th, z, corner(th + (1 if rising else -1)))
+ cmds.append(f"L {f(nx[0])} {f(nx[1])}")
+ return " ".join(cmds)
+
+
+def M(p):
+ return f"M {f(p[0])} {f(p[1])}"
+
+
+def L(p):
+ return f"L {f(p[0])} {f(p[1])}"
+
+
+def outline(P, rect, z):
+ return f"{M(point(P, rect, 0, z, 0))} {walk(P, rect, 0, 360, z)} Z"
+
+
+def prism(P, rect, z0, z1):
+ """Top face, the two visible side bands, the silhouette, the top-front edge, and the label anchor."""
+ lt, ft, rt = point(P, rect, 135, z1), point(P, rect, 45, z1), point(P, rect, -45, z1)
+ lb, fb, rb = point(P, rect, 135, z0), point(P, rect, 45, z0), point(P, rect, -45, z0)
+ edge = f"{M(lt)} {walk(P, rect, 135, -45, z1)}"
+ if rect.r == 0:
+ edge += f" {M(ft)} {L(fb)}"
+ n = 24
+ poly = [point(P, rect, 135 + 180 * i / n, z1) for i in range(n + 1)]
+ poly += [point(P, rect, -45 + 180 * i / n, z0) for i in range(n + 1)]
+ return dict(
+ top=outline(P, rect, z1),
+ left=f"{M(lt)} {walk(P, rect, 135, 45, z1)} {L(fb)} {walk(P, rect, 45, 135, z0)} Z",
+ right=f"{M(ft)} {walk(P, rect, 45, -45, z1)} {L(rb)} {walk(P, rect, -45, 45, z0)} Z",
+ sil=f"{M(lt)} {walk(P, rect, 135, 315, z1)} {L(rb)} {walk(P, rect, -45, 135, z0)} Z",
+ edge=edge,
+ rx=rt[0],
+ anchor=(rt[0], (rt[1] + rb[1]) / 2),
+ poly=poly,
+ )
+
+
+# ---------------------------------------------------------------- parts
+
+
+@dataclass
+class Part:
+ key: str
+ name: str
+ sub: str
+ rect: Rect
+ t: float
+ kind: str = "slab"
+ closed_z: float = 0
+ level: int | None = None
+ z: float = 0
+
+
+def solid(P, rect, z0, z1, sk, tones, stroke, inner, role=True):
+ pr = prism(P, rect, z0, z1)
+ tag = ' data-role="silhouette"' if role else ""
+ out = [f'<path{tag} d="{pr["sil"]}" fill="{sk["base"]}"/>']
+ for path, tone in zip((pr["top"], pr["left"], pr["right"]), tones):
+ if tone:
+ out.append(f'<path d="{path}" fill="{tone}"/>')
+ return pr, out
+
+
+def finish(pr, stroke, inner, sw=1.2):
+ return [f'<path d="{pr["edge"]}" fill="none" stroke="{inner}" stroke-width="0.8"/>',
+ f'<path d="{pr["sil"]}" fill="none" stroke="{stroke}" stroke-width="{sw}" stroke-linejoin="round"/>']
+
+
+def styles(sk, focal):
+ return (sk["focal"] if focal else sk["shade"], sk["accent"] if focal else sk["sil"],
+ sk["inner_acc"] if focal else sk["inner"])
+
+
+WALL, FLOOR = 5, 3
+
+
+def draw_part(P, p: Part, sk, focal: bool, uid: str):
+ tones, stroke, inner = styles(sk, focal)
+ z0, z1 = p.z, p.z + p.t
+ if p.kind == "housing":
+ # Back half only: silhouette, rim, cavity, and floor. housing_front() paints the
+ # outer walls and the front rim after anything that sits inside.
+ pr = prism(P, p.rect, z0, z1)
+ ir = p.rect.inset(WALL)
+ out = [f'<path data-role="silhouette" d="{pr["sil"]}" fill="{sk["base"]}"/>',
+ f'<path d="{outline(P, p.rect, z1)}" fill="{sk["base"]}"/>']
+ if tones[0]:
+ out.append(f'<path d="{outline(P, p.rect, z1)}" fill="{tones[0]}"/>')
+ out += [f'<path d="{outline(P, ir, z1)}" fill="{sk["base"]}"/>',
+ f'<path d="{outline(P, ir, z1)}" fill="{sk["cavity"]}"/>',
+ f'<clipPath id="{uid}-cavity"><path d="{outline(P, ir, z1)}"/></clipPath>',
+ f'<g clip-path="url(#{uid}-cavity)"><path d="{outline(P, ir, z0 + FLOOR)}" fill="{sk["base"]}"/>'
+ f'<path d="{outline(P, ir, z0 + FLOOR)}" fill="{sk["floor"]}"/>'
+ f'<path d="{outline(P, ir, z0 + FLOOR)}" fill="none" stroke="{inner}" stroke-width="0.8"/></g>',
+ f'<path d="{outline(P, ir, z1)}" fill="none" stroke="{inner}" stroke-width="0.8"/>',
+ f'<path d="{M(point(P, p.rect, 135, z1))} {walk(P, p.rect, 135, 315, z1)}" fill="none" stroke="{stroke}" stroke-width="1.2" stroke-linejoin="round"/>']
+ return pr, out
+ pr, out = solid(P, p.rect, z0, z1, sk, tones, stroke, inner)
+ r = p.rect
+ if p.kind == "display":
+ out.append(f'<path d="{outline(P, r.inset(4), z1)}" fill="{sk["screen"]}"/>')
+ cx = (r.x0 + r.x1) / 2
+ out.append(f'<path d="{outline(P, Rect(cx - 16, r.y0 + 12, cx + 16, r.y0 + 22, 5), z1)}" fill="{sk["island"]}"/>')
+ elif p.kind == "battery":
+ out.append(f'<path d="{outline(P, r.inset(8), z1)}" fill="none" stroke="{inner}" stroke-width="0.8"/>')
+ out.append(f'<path d="{outline(P, Rect(r.x0 + 12, r.y0 + 4, r.x0 + 36, r.y0 + 10, 0), z1)}" fill="{sk["chip_top"]}"/>')
+ elif p.kind == "board":
+ out += finish(pr, stroke, inner)
+ cam = Rect(r.x0 + 8, r.y0 + 8, r.x0 + 52, r.y0 + 52, 8)
+ cpr, cbody = solid(P, cam, z1, z1 + 6, sk, sk["shade"], sk["sil"], sk["inner"], role=False)
+ out += cbody + finish(cpr, sk["sil"], sk["inner"], 1)
+ for lx, ly in ((r.x0 + 21, r.y0 + 21), (r.x0 + 39, r.y0 + 39)):
+ lens = Rect(lx - 8, ly - 8, lx + 8, ly + 8, 8)
+ out += [f'<path d="{prism(P, lens, z1 + 6, z1 + 9)["sil"]}" fill="{sk["lens"]}"/>',
+ f'<path d="{outline(P, lens.inset(3), z1 + 9)}" fill="none" stroke="{sk["lens_ring"]}" stroke-width="0.8"/>']
+ for ax, ay, bx, by, h in ((64, 16, 100, 52, 3), (20, 64, 44, 92, 2), (64, 64, 108, 84, 2)):
+ chip = prism(P, Rect(r.x0 + ax, r.y0 + ay, r.x0 + bx, r.y0 + by, 1), z1, z1 + h)
+ out += [f'<path d="{chip["sil"]}" fill="{sk["chip_side"]}"/>', f'<path d="{chip["top"]}" fill="{sk["chip_top"]}"/>']
+ return pr, out
+ elif p.kind == "insert":
+ for well in (Rect(SPK.x0 - 4, SPK.y0 - 4, SPK.x1 + 4, SPK.y1 + 4, SPK.r + 4),
+ Rect(CABLE.x0 - 3, CABLE.y0 - 3, CABLE.x1 + 3, CABLE.y1 + 3, 5)):
+ out.append(f'<path d="{outline(P, well, z1)}" fill="{sk["well"]}" stroke="{inner}" stroke-width="0.8"/>')
+ elif p.kind == "speaker":
+ for zz in range(int(z0) + 10, int(z0 + p.t * 0.72), 8):
+ out.append(f'<path d="{M(point(P, r, 135, zz))} {walk(P, r, 135, -45, zz)}" fill="none" stroke="{inner}" stroke-width="0.6"/>')
+ out.append(f'<path d="{outline(P, r.inset(10), z1)}" fill="none" stroke="{inner}" stroke-width="0.8"/>')
+ dot = Rect(r.x0 + 36, r.y0 + 36, r.x1 - 36, r.y1 - 36, 10)
+ out.append(f'<path d="{outline(P, dot, z1)}" fill="{sk["accent"] if focal else sk["chip_top"]}"/>')
+ elif p.kind == "cable":
+ for k in (6, 11):
+ out.append(f'<path d="{outline(P, r.inset(k, 4), z1)}" fill="none" stroke="{inner}" stroke-width="0.8"/>')
+ elif p.kind == "lid":
+ out.append(f'<path d="{outline(P, r.inset(14), z1)}" fill="none" stroke="{inner}" stroke-width="0.8"/>')
+ cx, cy = (r.x0 + r.x1) / 2, (r.y0 + r.y1) / 2
+ mark = Rect(cx - 14, cy - 14, cx + 14, cy + 14, 14)
+ out.append(f'<path d="{outline(P, mark, z1)}" fill="none" stroke="{sk["sil"]}" stroke-width="1.2"/>')
+ out.append(f'<path d="{outline(P, mark.inset(9), z1)}" fill="{sk["sil"]}"/>')
+ out += finish(pr, stroke, inner)
+ return pr, out
+
+
+def housing_front(P, p: Part, sk, focal, buttons):
+ """Outer walls and the front half of the rim, painted after the parts inside."""
+ tones, stroke, inner = styles(sk, focal)
+ z0, z1 = p.z, p.z + p.t
+ ir = p.rect.inset(WALL)
+ pr = prism(P, p.rect, z0, z1)
+ rim = (f"{M(point(P, p.rect, 135, z1))} {walk(P, p.rect, 135, -45, z1)} "
+ f"{L(point(P, ir, -45, z1))} {walk(P, ir, -45, 135, z1)} Z")
+ walls = (f"{M(point(P, p.rect, 135, z1))} {walk(P, p.rect, 135, -45, z1)} "
+ f"{L(point(P, p.rect, -45, z0))} {walk(P, p.rect, -45, 135, z0)} Z")
+ out = [f'<path d="{walls}" fill="{sk["base"]}"/>', f'<path d="{rim}" fill="{sk["base"]}"/>']
+ if tones[0]:
+ out.append(f'<path d="{rim}" fill="{tones[0]}"/>')
+ if tones[1]:
+ out.append(f'<path d="{pr["left"]}" fill="{tones[1]}"/>')
+ if tones[2]:
+ out.append(f'<path d="{pr["right"]}" fill="{tones[2]}"/>')
+ if buttons:
+ r = p.rect
+ for ya, yb in ((r.y0 + 60, r.y0 + 100), (r.y0 + 112, r.y0 + 132)):
+ za, zb = z0 + p.t * 0.35, z0 + p.t * 0.75
+ bar = [P.iso(r.x1 + 1.5, ya, zb), P.iso(r.x1 + 1.5, yb, zb), P.iso(r.x1 + 1.5, yb, za), P.iso(r.x1 + 1.5, ya, za)]
+ out.append(f'<polygon points="{" ".join(f"{f(a)},{f(b)}" for a, b in bar)}" fill="{sk["base"]}" stroke="{inner}" stroke-width="0.8"/>')
+ out.append(f'<path d="{M(point(P, ir, 135, z1))} {walk(P, ir, 135, -45, z1)}" fill="none" stroke="{inner}" stroke-width="0.8"/>')
+ out.append(f'<path d="{pr["edge"]}" fill="none" stroke="{stroke}" stroke-width="1.2"/>')
+ front = (f"{M(point(P, p.rect, 135, z1))} {L(point(P, p.rect, 135, z0))} "
+ f"{walk(P, p.rect, 135, -45, z0)} {L(point(P, p.rect, -45, z1))}")
+ out.append(f'<path d="{front}" fill="none" stroke="{stroke}" stroke-width="1.2" stroke-linejoin="round"/>')
+ return out
+
+
+# ---------------------------------------------------------------- layout
+
+
+def levels_of(parts):
+ idx, current, previous = [], -1, object()
+ for p in parts:
+ if p.level is None or p.level != previous:
+ current += 1
+ idx.append(current)
+ previous = p.level if p.level is not None else object()
+ return idx
+
+
+def crosses(y, xa, xb, poly):
+ xs = []
+ for i in range(len(poly)):
+ (x1, y1), (x2, y2) = poly[i], poly[(i + 1) % len(poly)]
+ if (y1 - y) * (y2 - y) < 0:
+ xs.append(x1 + (y - y1) * (x2 - x1) / (y2 - y1))
+ xs.sort()
+ return any(xs[i] < xb and xs[i + 1] > xa for i in range(0, len(xs) - 1, 2))
+
+
+LABEL_PITCH = 36
+
+
+def explode(parts, gap_k):
+ """Assign z by level. Gap = max(gap_k x top-face height, 3 x part thickness), raised in
+ 4-unit steps until no leader crosses another part and no two labels sit closer than
+ LABEL_PITCH. Raising the gap cannot fix two parts on one level, so that raises."""
+ top_h = max((p.rect.x1 - p.rect.x0 + p.rect.y1 - p.rect.y0) / 2 for p in parts)
+ tmax = max(p.t for p in parts if p.kind != "housing")
+ gap = math.ceil(max(gap_k * top_h, 3 * tmax) / 4) * 4
+ lv = levels_of(parts)
+ while True:
+ z = 0
+ for k in range(max(lv) + 1):
+ members = [p for p, level in zip(parts, lv) if level == k]
+ for p in members:
+ p.z = z
+ z += max(p.t for p in members) + gap
+ P = Proj(0, 0)
+ prs = [prism(P, p.rect, p.z, p.z + p.t) for p in parts]
+ right = max(pr["rx"] for pr in prs) + 48
+ bad = False
+ for i, pr in enumerate(prs):
+ for j, q in enumerate(prs):
+ if i != j and crosses(pr["anchor"][1], pr["anchor"][0] + 1, right, q["poly"]):
+ if lv[i] == lv[j]:
+ raise ValueError(f"leader of {parts[i].key} crosses {parts[j].key} on one level")
+ bad = True
+ ys = sorted((pr["anchor"][1], lv[i], parts[i].key) for i, pr in enumerate(prs))
+ for (y1, l1, k1), (y2, l2, k2) in zip(ys, ys[1:]):
+ if y2 - y1 < LABEL_PITCH:
+ if l1 == l2:
+ raise ValueError(f"labels of {k1} and {k2} collide on one level")
+ bad = True
+ if not bad:
+ return gap
+ gap += 4
+
+
+# ---------------------------------------------------------------- figure
+
+
+@dataclass
+class Figure:
+ slug: str
+ title: str
+ desc: str
+ parts: list[Part]
+ focus: str
+ gap_k: float = 0.5
+ buttons: bool = False
+ caption: tuple[str, str] | None = None
+ subtitle: str = ""
+ cards: list[tuple[str, str, str, list[str] | str]] = field(default_factory=list)
+ footer: str = ""
+
+
+def label(sk, part, anchor, col_x, focal, motion):
+ ax, ay = anchor
+ cls = ' class="part-label"' if motion else ""
+ lead = sk["lead_acc"] if focal else sk["lead"]
+ dot = sk["accent"] if focal else sk["ink"]
+ sub = sk["accent"] if focal else sk["muted"]
+ return (f'<g data-role="label"{cls}>'
+ f'<line data-role="leader" x1="{f(ax + 6)}" y1="{f(ay)}" x2="{f(col_x - 12)}" y2="{f(ay)}" stroke="{lead}" stroke-width="0.8"/>'
+ f'<circle cx="{f(ax)}" cy="{f(ay)}" r="2" fill="{dot}"/>'
+ f'<text data-role="name" x="{f(col_x)}" y="{f(ay - 1)}" fill="{sk["ink"]}" font-size="16" font-weight="600" font-family="\'Geist\', sans-serif">{part.name}</text>'
+ f'<text x="{f(col_x)}" y="{f(ay + 15)}" fill="{sub}" font-size="10" font-family="\'Geist Mono\', monospace" letter-spacing="0.08em">{part.sub}</text></g>')
+
+
+def build_svg(fig: Figure, skin: str, motion: bool, slug: str):
+ sk = SKINS[skin]
+ parts = fig.parts
+ gap = explode(parts, fig.gap_k)
+ P0 = Proj(0, 0)
+ pts = [pt for p in parts for pt in prism(P0, p.rect, p.z, p.z + p.t)["poly"]]
+ minx, maxx = min(p[0] for p in pts), max(p[0] for p in pts)
+ miny, maxy = min(p[1] for p in pts), max(p[1] for p in pts)
+ lead_w, label_w = 64, 240
+ left = math.floor((1000 - (maxx - minx + lead_w + label_w)) / 2 / 4) * 4
+ ox, oy = round((left - minx) / 4) * 4, round((40 - miny) / 4) * 4
+ P = Proj(ox, oy)
+ vh = math.ceil((oy + maxy + (72 if fig.caption else 32)) / 4) * 4
+ col_x = ox + maxx + lead_w
+
+ lv = levels_of(parts)
+ top_level = max(lv)
+ steps = top_level + 1
+ housing = parts[0] if parts[0].kind == "housing" else None
+
+ def attrs(i, p):
+ a = (f'data-part="{p.key}" data-name="{p.name}" data-rect="{p.rect.attr()}" '
+ f'data-z="{f(p.z)}" data-t="{f(p.t)}" data-level="{lv[i]}"')
+ if p.kind == "housing":
+ a += ' data-kind="housing"'
+ if p.key == fig.focus:
+ a += " data-focal"
+ if motion:
+ a += f' data-closed-z="{f(p.closed_z)}"'
+ return a
+
+ out = [f'<rect width="100%" height="100%" fill="{sk["paper"]}"/>',
+ f'<g data-exploded data-origin="{f(ox)} {f(oy)}" data-gap="{f(gap)}">']
+ b, t = parts[0], parts[-1]
+ trace = "".join(
+ f'<line data-role="trace" x1="{f(point(P, b.rect, th, b.z + b.t)[0])}" y1="{f(point(P, b.rect, th, b.z + b.t)[1])}" '
+ f'x2="{f(point(P, b.rect, th, t.z)[0])}" y2="{f(point(P, b.rect, th, t.z)[1])}" stroke="{sk["trace"]}" stroke-width="0.8" stroke-dasharray="4,3"/>'
+ for th in (135, -45))
+
+ pr0, body0 = draw_part(P, b, sk, b.key == fig.focus, f"{slug}-{b.key}")
+ if motion:
+ out.append(f'<g {attrs(0, b)}>' + "".join(body0) + "</g>")
+ out.append(f'<g data-motion-item data-step="{steps}" data-reveal aria-label="{b.name} stays put; trace lines show where each part sat">'
+ + trace + label(sk, b, pr0["anchor"], col_x, b.key == fig.focus, False) + "</g>")
+ else:
+ out.append(trace)
+ out.append(f'<g {attrs(0, b)}>' + "".join(body0) + label(sk, b, pr0["anchor"], col_x, b.key == fig.focus, False) + "</g>")
+
+ def group(i):
+ p = parts[i]
+ focal = p.key == fig.focus
+ pr, body = draw_part(P, p, sk, focal, f"{slug}-{p.key}")
+ lab = label(sk, p, pr["anchor"], col_x, focal, motion)
+ if not motion:
+ return f'<g {attrs(i, p)}>' + "".join(body) + lab + "</g>"
+ step = top_level - lv[i] + 1
+ return (f'<g {attrs(i, p)} data-motion-item data-step="{step}" style="--lift:{f(p.z - p.closed_z)}px" '
+ f'aria-label="{p.name} lifts clear">' + "".join(body) + lab + "</g>")
+
+ if housing:
+ for i in range(1, len(parts) - 1):
+ out.append(group(i))
+ out.append(f'<g data-part-front="{housing.key}">' + "".join(housing_front(P, housing, sk, housing.key == fig.focus, fig.buttons)) + "</g>")
+ out.append(group(len(parts) - 1))
+ else:
+ for i in range(1, len(parts)):
+ out.append(group(i))
+ out.append("</g>")
+ if fig.caption:
+ cy = vh - 28
+ out.append(f'<text x="{left}" y="{cy}" fill="{sk["muted"]}" font-size="8" font-family="\'Geist Mono\', monospace" letter-spacing="0.18em">{fig.caption[0]}</text>')
+ out.append(f'<text x="{left + 104}" y="{cy}" fill="{sk["muted"]}" font-size="8.5" font-family="\'Geist\', sans-serif" font-style="italic">{fig.caption[1]}</text>')
+ return "\n ".join(out), vh, steps
+
+
+# ---------------------------------------------------------------- pages
+
+FONT_LINK = "https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap"
+
+MINIMAL = """<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>{title}</title>
+ <link href="{font}" rel="stylesheet">
+ <style>
+ *, *::before, *::after {{ box-sizing: border-box; margin: 0; padding: 0; }}
+ :root {{
+ --color-paper: {paper};
+ --color-ink: {ink};
+ --color-muted: {muted};
+ --color-accent: {accent};
+ --font-sans: 'Geist', system-ui, sans-serif;
+ --font-serif: 'Instrument Serif', serif;
+ --font-mono: 'Geist Mono', ui-monospace, monospace;
+ }}
+
+ body {{
+ font-family: var(--font-sans);
+ background: var(--color-paper);
+ color: var(--color-ink);
+ min-height: 100vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 3rem 2rem;
+ }}
+
+ .frame {{ max-width: 1200px; width: 100%; }}
+ .diagram-container {{ width: 100%; overflow-x: auto; }}
+
+ .eyebrow {{
+ font-family: var(--font-mono);
+ font-size: 0.66rem;
+ font-weight: 500;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ color: var(--color-muted);
+ margin-bottom: 0.5rem;
+ }}
+
+ h1 {{
+ font-family: var(--font-serif);
+ font-size: clamp(1.5rem, 2.4vw + 0.75rem, 2rem);
+ font-weight: 400;
+ letter-spacing: -0.02em;
+ line-height: 1.15;
+ color: var(--color-ink);
+ margin-bottom: 1.5rem;
+ }}
+
+ svg {{ width: 100%; min-width: 1000px; display: block; }}
+ @media print {{
+ .diagram-container {{ overflow-x: visible; }}
+ svg {{ min-width: 0; }}
+ }}
+ </style>
+</head>
+<body>
+ <div class="frame">
+ <p class="eyebrow">Exploded axonometric · Diagram Design</p>
+ <h1>{title}</h1>
+
+ <div class="diagram-container">
+ <svg viewBox="0 0 1000 {vh}" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="{slug}-title {slug}-desc">
+ <title id="{slug}-title">{title}</title>
+ <desc id="{slug}-desc">{desc}</desc>
+ {body}
+ </svg>
+ </div>
+ </div>
+</body>
+</html>
+"""
+
+FULL = """<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>{title}</title>
+ <link href="{font}" rel="stylesheet">
+ <style>
+ *, *::before, *::after {{ box-sizing: border-box; margin: 0; padding: 0; }}
+ :root {{ --color-paper:#f5f5f5; --color-paper-2:#ececec; --color-ink:#2d3142; --color-muted:#4f5d75; --color-soft:#7a8399; --color-rule:rgba(45,49,66,0.12); --color-accent:#eb6c36; --color-link:#2e5aa8; --font-sans:'Geist',system-ui,sans-serif; --font-serif:'Instrument Serif',serif; --font-mono:'Geist Mono',ui-monospace,monospace; }}
+ body {{ font-family: var(--font-sans); background: var(--color-paper); min-height: 100vh; padding: 3rem 2rem; color: var(--color-ink); }}
+ .container {{ max-width: 1200px; margin: 0 auto; }}
+ .header {{ margin-bottom: 2.5rem; }}
+ .header-eyebrow {{ font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.75rem; }}
+ h1 {{ font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.5rem; }}
+ .subtitle {{ font-size: 1rem; line-height: 1.55; color: var(--color-muted); max-width: 58ch; }}
+ .diagram-container {{ overflow-x: auto; }}
+ svg {{ width: 100%; min-width: 1000px; display: block; }}
+ @media print {{ .diagram-container {{ overflow-x: visible; }} svg {{ min-width: 0; }} }}
+ .cards {{ display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: 1rem; margin-top: 1.5rem; }}
+ @media (max-width: 820px) {{ .cards {{ grid-template-columns: 1fr; }} }}
+ .card {{ background: #fff; border-radius: 6px; border: 1px solid var(--color-rule); padding: 1.25rem; }}
+ .card .eyebrow {{ font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.5rem; }}
+ .card-header {{ display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.875rem; padding-bottom: 0.875rem; border-bottom: 1px solid rgba(45,49,66,0.08); }}
+ .card-dot {{ width: 7px; height: 7px; border-radius: 50%; }}
+ .card-dot.ink {{ background: var(--color-ink); }} .card-dot.muted {{ background: var(--color-muted); }} .card-dot.coral {{ background: var(--color-accent); }}
+ .card h3 {{ font-size: 0.875rem; font-weight: 600; }}
+ .card p, .card ul {{ color: var(--color-muted); font-size: 0.8125rem; line-height: 1.55; list-style: none; }}
+ .card li {{ margin-bottom: 0.3rem; padding-left: 0.875rem; position: relative; }}
+ .card li::before {{ content: '·'; position: absolute; left: 0.2rem; color: rgba(45,49,66,0.45); }}
+ .footer {{ margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(45,49,66,0.10); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--color-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }}
+ </style>
+</head>
+<body>
+ <div class="container">
+ <div class="header">
+ <p class="header-eyebrow">Exploded axonometric · Diagram Design</p>
+ <h1>{title}</h1>
+ <p class="subtitle">{subtitle}</p>
+ </div>
+
+ <div class="diagram-container">
+ <svg viewBox="0 0 1000 {vh}" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="{slug}-title {slug}-desc">
+ <title id="{slug}-title">{title}</title>
+ <desc id="{slug}-desc">{desc}</desc>
+ {body}
+ </svg>
+ </div>
+
+ <div class="cards">
+{cards}
+ </div>
+
+ <div class="footer">
+ <span>{footer}</span>
+ <span>example · diagram design</span>
+ </div>
+ </div>
+</body>
+</html>
+"""
+
+MOTION_CSS = """
+ /* Static source is the exploded frame. Only an initialized enhancement assembles it.
+ Parts travel straight up, so a vertical translate is the whole explode. */
+ .motion-ready [data-motion-item][data-part] { opacity: 1; transform: translateY(var(--lift)); }
+ .motion-ready:not([data-frame="start"]) [data-motion-item][data-part] { transition: transform var(--motion-step) var(--motion-ease); }
+ .motion-ready [data-motion-item][data-part].is-visible,
+ .motion-ready[data-frame="end"] [data-motion-item][data-part],
+ .motion-ready[data-frame="static"] [data-motion-item][data-part] { transform: none; }
+ .motion-ready [data-part] .part-label { opacity: 0; transition: none; }
+ .motion-ready [data-part].is-visible .part-label { opacity: 1; transition: opacity var(--motion-fast) linear var(--motion-step); }
+ .motion-ready[data-frame="end"] .part-label,
+ .motion-ready[data-frame="static"] .part-label { opacity: 1; }
+ .motion-ready [data-motion-item][data-reveal] { opacity: 0; transform: none; transition: none; }
+ .motion-ready [data-motion-item][data-reveal].is-visible { opacity: 1; transition: opacity var(--motion-step) var(--motion-ease); }
+ .motion-ready[data-frame="end"] [data-motion-item][data-reveal],
+ .motion-ready[data-frame="static"] [data-motion-item][data-reveal] { opacity: 1; }
+ html[data-motion="static"] .part-label { opacity: 1 !important; }
+ html[data-motion="step"] .part-label { transition: none !important; }
+ @media (prefers-reduced-motion: reduce) { .part-label { opacity: 1 !important; } }
+ @media print { .part-label { opacity: 1 !important; } }
+"""
+
+
+def animated_page(fig: Figure, slug: str, body: str, vh: int, steps: int) -> str:
+ """Start from template-motion.html so the controller, controls, and fallbacks stay canonical."""
+ src = MOTION_TEMPLATE.read_text(encoding="utf-8")
+ src = src.replace("<title>Motion diagram template</title>", f"<title>{fig.title}</title>", 1)
+ src = src.replace("--motion-step: 480ms;", "--motion-step: 600ms;", 1)
+ src = src.replace("--motion-hold: 720ms;", "--motion-hold: 900ms;", 1)
+ src = src.replace("--motion-total: 3600ms;", f"--motion-total: {steps * 900}ms;", 1)
+ src = src.replace("min-width: 960px;", "min-width: 1000px;", 1)
+ src = src.replace(" </style>", MOTION_CSS + " </style>", 1)
+ start = src.index(" <!-- Replace template-motion")
+ end = src.index(" <div data-motion-controls")
+ main = (f' <main data-motion-root data-motion-mode="reveal" data-step-count="{steps}" data-step-current="{steps}" data-frame="static" data-static-frame="complete">\n'
+ f' <p class="eyebrow">Exploded axonometric · Optional motion</p>\n'
+ f' <h1>{fig.title}</h1>\n\n'
+ f' <div class="diagram-container">\n'
+ f' <svg viewBox="0 0 1000 {vh}" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="{slug}-title {slug}-desc">\n'
+ f' <title id="{slug}-title">{fig.title}</title>\n'
+ f' <desc id="{slug}-desc">{fig.desc}</desc>\n'
+ f' {body}\n'
+ f' </svg>\n'
+ f' </div>\n\n')
+ src = src[:start] + main + src[end:]
+ src = re.sub(r'Step <span data-motion-step-label>\d+</span> of \d+',
+ f'Step <span data-motion-step-label>{steps}</span> of {steps}', src, count=1)
+ src = src.replace("The complete final diagram is shown above.", "The complete exploded diagram is shown above.", 1)
+ return src
+
+
+def cards_html(cards):
+ out = []
+ for eyebrow, dot, title, body in cards:
+ inner = f"<p>{body}</p>" if isinstance(body, str) else "<ul>" + "".join(f"<li>{item}</li>" for item in body) + "</ul>"
+ eb = f'<p class="eyebrow">{eyebrow}</p>' if eyebrow else ""
+ out.append(f' <div class="card">\n {eb}\n <div class="card-header"><span class="card-dot {dot}"></span><h3>{title}</h3></div>\n {inner}\n </div>')
+ return "\n".join(out)
+
+
+# ---------------------------------------------------------------- content
+
+def app_stack():
+ a = 200
+ return [Part("data", "Data", "postgres, object store", Rect(0, 0, a, a, 12), t=16, closed_z=0),
+ Part("logic", "Logic", "api, workers, queue", Rect(0, 0, a, a, 12), t=16, closed_z=16),
+ Part("interface", "Interface", "web app, mobile", Rect(0, 0, a, a, 12), t=16, closed_z=32)]
+
+
+PW, PD, PR = 140, 280, 24
+
+
+def phone():
+ body = Rect(0, 0, PW, PD, PR)
+ return [Part("housing", "Housing", "aluminium frame", body, t=20, kind="housing", closed_z=0),
+ Part("board", "Logic board", "soc, cameras", Rect(8, 8, PW - 8, 112, 4), t=4, kind="board", closed_z=3, level=1),
+ Part("battery", "Battery", "li-ion cell", Rect(10, 136, PW - 10, PD - 12, 6), t=8, kind="battery", closed_z=3, level=1),
+ Part("display", "Display", "oled, cover glass", body, t=6, kind="display", closed_z=20)]
+
+
+BW, BD = 180, 180
+SPK = Rect(36, 52, 128, 144, 46)
+CABLE = Rect(138, 40, 170, 72, 4)
+
+
+def unboxing():
+ return [Part("box", "Box", "rigid board", Rect(0, 0, BW, BD, 4), t=72, kind="housing", closed_z=0),
+ Part("insert", "Insert", "moulded pulp", Rect(6, 6, BW - 6, BD - 6, 2), t=12, kind="insert", closed_z=3),
+ Part("cable", "Cable", "usb-c, 1 m", CABLE, t=14, kind="cable", closed_z=9, level=2),
+ Part("speaker", "Speaker", "the product", SPK, t=60, kind="speaker", closed_z=9, level=2),
+ Part("lid", "Lid", "printed sleeve", Rect(-3, -3, BW + 3, BD + 3, 6), t=28, kind="lid", closed_z=48)]
+
+
+FIGURES = {
+ "exploded": lambda: Figure(
+ slug="exploded",
+ title="App stack · Three layers, one product",
+ desc="Exploded view of a three-layer app stack: data at the base, logic in the middle, interface on top, with logic as the focal layer.",
+ parts=app_stack(), focus="logic",
+ caption=("FOCAL LAYER", "Logic is where the product decisions live; the other two layers are swappable."),
+ subtitle="Three layers pulled apart along one axis. The middle one carries the product, and the other two can be swapped.",
+ cards=[("The headline", "coral", "Logic is the layer that pays rent", "Swapping the database is a migration. Swapping the interface is a redesign. Rewriting the logic is a different product, so that layer gets the accent."),
+ ("", "ink", "Reading the explode", ["Bottom layer stays put", "Equal gaps, one axis", "Dashed lines trace the outer corners", "Labels sit in one column"]),
+ ("", "muted", "Why only three", "A stack this small reads at a glance. Past five parts the explode gets tall and the labels crowd; split it into two figures.")],
+ footer="app stack · exploded axonometric"),
+ "exploded-phone": lambda: Figure(
+ slug="exploded-phone",
+ title="Phone teardown · What sits under the glass",
+ desc="Exploded view of a phone: the display lifts off the housing to show the logic board and battery inside, with the logic board as the focal part.",
+ parts=phone(), focus="board", gap_k=0.75, buttons=True,
+ subtitle="The display comes off first. Underneath, the logic board and battery share one level inside the housing, so they lift together.",
+ cards=[("The headline", "coral", "The board is the phone", "Cameras, radios and the system chip all live on one small board. Everything else holds it, powers it, or shows its output."),
+ ("", "ink", "How it was drawn", ["Rounded corners project as quarter ellipses", "The housing is a tray, so its front walls paint last", "Parts on one level explode together", "Gap widened so the display clears the board"]),
+ ("", "muted", "Four parts", "A real teardown has dozens of parts. The diagram keeps the four a reader needs and drops the screws.")],
+ footer="phone · exploded axonometric"),
+ "exploded-unboxing": lambda: Figure(
+ slug="exploded-unboxing",
+ title="Unboxing · What you see, in the order you see it",
+ desc="Exploded view of product packaging: printed lid, the speaker and its cable, the moulded insert that holds them, and the rigid box, with the speaker as the focal part.",
+ parts=unboxing(), focus="speaker",
+ subtitle="Read it top down and it is the unboxing: lid, product, insert, box. The product and its cable share a level because they sit side by side.",
+ cards=[("The headline", "coral", "The product is the reveal", "Everything above the speaker is a lid and everything below it is a cradle. The accent marks the speaker because the packaging exists to present it."),
+ ("", "ink", "Reading the explode", ["Lid telescopes over the box walls", "Insert wells match the parts they hold", "Cable and speaker lift as one level", "Box stays put"]),
+ ("", "muted", "When to use it", "Packaging reviews, supplier briefs, and launch pages. For a list of what is in the box, a table is faster.")],
+ footer="unboxing · exploded axonometric"),
+}
+ANIMATED = ("exploded-phone", "exploded-unboxing")
+
+
+def render_all() -> dict[Path, str]:
+ files: dict[Path, str] = {}
+ for name, make in FIGURES.items():
+ for variant, skin in (("", "light"), ("-dark", "dark"), ("-full", "light")):
+ fig = make()
+ slug = f"{name}{variant}"
+ body, vh, _ = build_svg(fig, skin, False, slug)
+ sk = SKINS[skin]
+ if variant == "-full":
+ html = FULL.format(title=fig.title, font=FONT_LINK, slug=slug, desc=fig.desc, vh=vh, body=body,
+ subtitle=fig.subtitle, cards=cards_html(fig.cards), footer=fig.footer)
+ else:
+ html = MINIMAL.format(title=fig.title, font=FONT_LINK, slug=slug, desc=fig.desc, vh=vh, body=body,
+ **{k: sk[k] for k in ("paper", "ink", "muted", "accent")})
+ files[ASSETS / f"example-{slug}.html"] = html
+ if name in ANIMATED:
+ fig = make()
+ slug = f"{name}-animated"
+ body, vh, steps = build_svg(fig, "light", True, slug)
+ files[ASSETS / f"example-{slug}.html"] = animated_page(fig, slug, body, vh, steps)
+ return files
+
+
+def main() -> int:
+ parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
+ parser.add_argument("--check", action="store_true", help="fail if any generated example differs from disk")
+ args = parser.parse_args()
+ files = render_all()
+ stale = []
+ for path, html in files.items():
+ current = path.read_text(encoding="utf-8") if path.exists() else None
+ if current != html:
+ if args.check:
+ stale.append(path.relative_to(ROOT).as_posix())
+ else:
+ path.write_text(html, encoding="utf-8")
+ print(f"wrote {path.relative_to(ROOT).as_posix()}")
+ if stale:
+ print("stale exploded examples (run scripts/build-exploded-examples.py):")
+ for name in stale:
+ print(f" - {name}")
+ return 1
+ if args.check:
+ print(f"OK exploded examples: {len(files)} files up to date")
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/scripts/render-canonical-screenshots.py b/scripts/render-canonical-screenshots.py
index 540bbc7..6501b6f 100644
--- a/scripts/render-canonical-screenshots.py
+++ b/scripts/render-canonical-screenshots.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""Render the 42 canonical minimal-light examples and record their digests."""
+"""Render the 43 canonical minimal-light examples and record their digests."""
from __future__ import annotations
@@ -22,8 +22,8 @@ from screenshot_catalog import (
def main() -> int:
slugs = canonical_slugs()
- if len(slugs) != 42 or len(slugs) != len(set(slugs)):
- raise SystemExit(f"expected 42 unique canonical types; found {len(slugs)}")
+ if len(slugs) != 43 or len(slugs) != len(set(slugs)):
+ raise SystemExit(f"expected 43 unique canonical types; found {len(slugs)}")
SCREENSHOT_DIR.mkdir(parents=True, exist_ok=True)
entries: list[dict[str, object]] = []
diff --git a/scripts/test-maintainer-policy.py b/scripts/test-maintainer-policy.py
index 010f678..788f8e7 100644
--- a/scripts/test-maintainer-policy.py
+++ b/scripts/test-maintainer-policy.py
@@ -71,6 +71,9 @@ REQUIRED_COMMANDS = {
"python3 scripts/test-verify-skin-polarity.py",
"python3 scripts/verify-architecture-delta.py --all",
"python3 scripts/test-verify-architecture-delta.py",
+ "python3 scripts/build-exploded-examples.py --check",
+ "python3 scripts/verify-exploded.py --all",
+ "python3 scripts/test-verify-exploded.py",
"python3 scripts/lint-render.py --self-test",
"python3 scripts/lint-render.py --all",
}
diff --git a/scripts/test-verify-exploded.py b/scripts/test-verify-exploded.py
new file mode 100644
index 0000000..99df6d4
--- /dev/null
+++ b/scripts/test-verify-exploded.py
@@ -0,0 +1,200 @@
+#!/usr/bin/env python3
+"""Adversarial tests for verify-exploded.py, both polarities.
+
+Per ADR 0005, a geometric contract is a checker plus fixtures that prove it
+fires when it should and stays quiet when it should not. Every mutation below
+still renders as a plausible exploded view; the defects are geometric lies
+that only a reprojection catches.
+
+Usage: python3 scripts/test-verify-exploded.py
+Exit: 0 all pass, 1 a case failed.
+"""
+
+from __future__ import annotations
+
+import importlib.util
+import re
+import subprocess
+import sys
+import tempfile
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent.parent
+CHECKER = ROOT / "scripts/verify-exploded.py"
+BUILDER = ROOT / "scripts/build-exploded-examples.py"
+ASSETS = ROOT / "skills/diagram-design/assets"
+STACK = ASSETS / "example-exploded.html"
+PHONE = ASSETS / "example-exploded-phone.html"
+ANIMATED = ASSETS / "example-exploded-phone-animated.html"
+SHIPPED = sorted(ASSETS.glob("example-exploded*.html"))
+
+
+def run(*args: str) -> tuple[int, str]:
+ result = subprocess.run([sys.executable, str(CHECKER), *args], capture_output=True,
+ text=True, encoding="utf-8", errors="replace")
+ return result.returncode, (result.stdout or "") + (result.stderr or "")
+
+
+def builder():
+ spec = importlib.util.spec_from_file_location("build_exploded", BUILDER)
+ module = importlib.util.module_from_spec(spec)
+ sys.modules[spec.name] = module # dataclasses resolve their module through sys.modules
+ spec.loader.exec_module(module)
+ return module
+
+
+def page(module, fig, slug="mutant"):
+ body, vh, _ = module.build_svg(fig, "light", False, slug)
+ sk = module.SKINS["light"]
+ return module.MINIMAL.format(title=fig.title, font=module.FONT_LINK, slug=slug, desc=fig.desc, vh=vh, body=body,
+ **{k: sk[k] for k in ("paper", "ink", "muted", "accent")})
+
+
+def once(pattern, repl, source, flags=0):
+ out, n = re.subn(pattern, repl, source, count=1, flags=flags)
+ if n != 1:
+ raise AssertionError(f"mutation pattern did not match: {pattern}")
+ return out
+
+
+def bump_first_number(match):
+ head, value = match.group(1), float(match.group(2))
+ return f"{head}{value + 3:g}"
+
+
+def main() -> int:
+ failures: list[str] = []
+ stack = STACK.read_text(encoding="utf-8")
+ phone = PHONE.read_text(encoding="utf-8")
+ animated = ANIMATED.read_text(encoding="utf-8")
+ module = builder()
+
+ for path in SHIPPED:
+ code, output = run(str(path))
+ if code != 0:
+ failures.append(f"shipped example failed: {path.name}\n{output}")
+ else:
+ print(f"OK: shipped {path.name} passes")
+ code, output = run("--all")
+ if code != 0:
+ failures.append(f"--all failed on the shipped set\n{output}")
+ else:
+ print("OK: --all passes on the shipped set")
+
+ # A gap under the floor: the real builder with the gap factor turned down.
+ low = module.FIGURES["exploded"]()
+ low.gap_k = 0.2
+ low_gap = page(module, low)
+
+ # Leaders across parts and crowded labels: the real builder with the gap forced shut.
+ real_explode = module.explode
+
+ def shut(parts, gap_k):
+ levels = module.levels_of(parts)
+ z = 0
+ for k in range(max(levels) + 1):
+ members = [p for p, level in zip(parts, levels) if level == k]
+ for p in members:
+ p.z = z
+ z += max(p.t for p in members) + 8
+ return 8
+
+ module.explode = shut
+ crowded = page(module, module.FIGURES["exploded-phone"]())
+ module.explode = real_explode
+
+ cases = {
+ "silhouette vertex moved": (
+ once(r'(data-role="silhouette" d="M )(-?\d+(?:\.\d+)?)', bump_first_number, stack),
+ "silhouette vertex 0"),
+ "corner arc off the 2:1 ellipse": (
+ once(r'(data-role="silhouette" d="M [^"]*?A )(\d+(?:\.\d+)?) (\d+(?:\.\d+)?)', r"\g<1>20 10", stack),
+ "is not the 2:1 ellipse"),
+ "corner arc sweeps the wrong way": (
+ once(r'(data-role="silhouette" d="M [^"]*?A \d+(?:\.\d+)? \d+(?:\.\d+)? 0 0 )1', r"\g<1>0", stack),
+ "corner arc flags"),
+ "transform moves a part": (
+ once(r'(data-part="logic")', r'\1 transform="translate(0 -12)"', stack),
+ "carries transform="),
+ "transform on a silhouette": (
+ once(r'(data-role="silhouette")', r'\1 transform="translate(4 0)"', stack),
+ "carries transform="),
+ "duplicate label for one part": (
+ once(r'(<g data-role="label">.*?</g>)', lambda m: m.group(1) + m.group(1), stack, re.S),
+ "has more than one label"),
+ "silhouette missing": (
+ once(r'data-role="silhouette"', 'data-role="outline"', stack),
+ "has no data-role=silhouette"),
+ "unequal gap": (
+ once(r'(data-part="interface"[^>]*data-z=")(\d+(?:\.\d+)?)', lambda m: f"{m.group(1)}{float(m.group(2)) + 4:g}", stack),
+ "gaps must be equal"),
+ "bottom level lifted": (
+ once(r'(data-part="data"[^>]*data-z=")0"', r'\g<1>4"', stack),
+ "must stay at z = 0"),
+ "one level split across two heights": (
+ once(r'(data-part="battery"[^>]*data-z=")(\d+(?:\.\d+)?)', lambda m: f"{m.group(1)}{float(m.group(2)) - 4:g}", phone),
+ "sit at different z"),
+ "gap under the floor": (low_gap, "is under max(0.5"),
+ "leader crosses another part": (crowded, "crosses part"),
+ "labels crowd": (crowded, "px apart"),
+ "second focal part": (
+ once(r'(data-part="data")', r"\1 data-focal", stack),
+ "focal parts"),
+ "three-word label": (
+ stack.replace('data-name="Logic"', 'data-name="Core logic tier"').replace(">Logic</text>", ">Core logic tier</text>"),
+ "keep labels to one or two"),
+ "slanted leader": (
+ once(r'(data-role="leader" x1="[^"]+" y1="[^"]+" x2="[^"]+" y2=")(-?\d+(?:\.\d+)?)', lambda m: f"{m.group(1)}{float(m.group(2)) + 5:g}", stack),
+ "is not horizontal"),
+ "leader off the right extreme": (
+ once(r'(data-role="leader" x1=")(-?\d+(?:\.\d+)?)', lambda m: f"{m.group(1)}{float(m.group(2)) + 10:g}", stack),
+ "the part's right extreme is"),
+ "label out of the column": (
+ once(r'(data-role="name" x=")(-?\d+(?:\.\d+)?)', lambda m: f"{m.group(1)}{float(m.group(2)) + 8:g}", stack),
+ "columns"),
+ "label without a name": (
+ once(r'data-role="name"', 'data-role="caption"', stack),
+ "needs a data-role=name"),
+ "trace line leans": (
+ once(r'(data-role="trace" x1="[^"]+" y1="[^"]+" x2=")(-?\d+(?:\.\d+)?)', lambda m: f"{m.group(1)}{float(m.group(2)) + 6:g}", stack),
+ "trace line is not vertical"),
+ "trace line solid": (
+ once(r'(data-role="trace"[^>]*?) stroke-dasharray="4,3"', r"\1", stack),
+ "trace line must be dashed"),
+ "animated lift disagrees with geometry": (
+ once(r'(--lift:)(-?\d+(?:\.\d+)?)', lambda m: f"{m.group(1)}{float(m.group(2)) + 12:g}", animated),
+ "minus closed z"),
+ "static part positioned by style": (
+ once(r'(data-part="logic")', r'\1 style="transform:translateY(-8px)"', stack),
+ "carries a style attribute"),
+ }
+
+ with tempfile.TemporaryDirectory() as tmp:
+ for name, (source, expect) in cases.items():
+ path = Path(tmp) / f"example-exploded-{re.sub(r'[^a-z]+', '-', name)}.html"
+ path.write_text(source, encoding="utf-8")
+ code, output = run(str(path))
+ if code == 0:
+ failures.append(f"mutation passed: {name}")
+ elif expect not in output:
+ failures.append(f"mutation {name!r} failed for the wrong reason (wanted {expect!r}):\n{output}")
+ else:
+ print(f"OK: fails on {name}")
+
+ code, _ = run()
+ if code != 2:
+ failures.append(f"usage error should exit 2, got {code}")
+ else:
+ print("OK: usage error exits 2")
+
+ if failures:
+ print("\nFAIL verify-exploded tests:")
+ for failure in failures:
+ print(f" - {failure}")
+ return 1
+ print(f"\nOK: verify-exploded passes {len(SHIPPED)} shipped files and fails all {len(cases)} mutations")
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/scripts/verify-docs-sync.py b/scripts/verify-docs-sync.py
index bcbf0bc..5232cd4 100644
--- a/scripts/verify-docs-sync.py
+++ b/scripts/verify-docs-sync.py
@@ -65,7 +65,7 @@ ONBOARDING_REFERENCE = ROOT / "skills/diagram-design/references/onboarding.md"
LINE_DARK_EXAMPLE = ROOT / "skills/diagram-design/assets/example-line-dark.html"
OUTPUT_SPEC_REFERENCE = ROOT / "skills/diagram-design/references/output-spec.md"
VARIANTS = ("", "-dark", "-full")
-VISUAL_TYPE_COUNT = 42
+VISUAL_TYPE_COUNT = 43
AGENT_SKILLS_DESCRIPTION_MAX = 1024
PLUGIN_DESCRIPTION_MAX = 500
# Types whose selection-table name differs from its description vocabulary.
@@ -73,6 +73,9 @@ DESCRIPTION_ALIASES = {
"bar chart": "bar",
"line chart": "line",
"scatter plot": "scatter",
+ "polar chart": "polar",
+ "database schema": "schema",
+ "exploded axonometric": "exploded",
}
DISCOVERY_HOOKS = ("lifecycle phase",)
ROUTING_SURFACES = {
diff --git a/scripts/verify-exploded.py b/scripts/verify-exploded.py
new file mode 100644
index 0000000..736e648
--- /dev/null
+++ b/scripts/verify-exploded.py
@@ -0,0 +1,391 @@
+#!/usr/bin/env python3
+"""Verify exploded axonometric diagrams against the geometry they declare.
+
+Each part carries its model box (``data-rect``, ``data-z``, ``data-t``,
+``data-level``) and the figure carries its drawing origin and gap. This
+checker reprojects every part with iso(x, y, z) = [x - y, (x + y) / 2 - z]
+and fails when the drawing and the declaration disagree:
+
+- a silhouette vertex or corner arc off the projection of its declared box;
+- a level that does not share one z, a bottom level off z = 0, unequal gaps,
+ or a gap under max(0.5 x top-face height, 3 x thickest non-container part);
+- a leader that is not horizontal, does not start at its part's right
+ extreme, or crosses another part; labels outside one column, closer than
+ 36px, or longer than two words;
+- more than one focal part, a trace line that is not vertical and dashed, an
+ SVG transform anywhere in the figure, a part with two labels, or an
+ animated part whose lift is not its exploded z minus its closed z.
+
+ python3 scripts/verify-exploded.py --all
+ python3 scripts/verify-exploded.py skills/diagram-design/assets/example-exploded.html
+"""
+
+from __future__ import annotations
+
+import argparse
+import math
+import re
+import sys
+from html.parser import HTMLParser
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parent.parent
+ASSETS = ROOT / "skills/diagram-design/assets"
+TOL = 0.05
+LABEL_PITCH = 36
+NUMBER = re.compile(r"-?\d+(?:\.\d+)?")
+
+
+class Element:
+ def __init__(self, tag, attrs, parent):
+ self.tag, self.attrs, self.parent = tag, attrs, parent
+ self.children: list[Element] = []
+ self.text = ""
+
+ def ancestors(self):
+ node = self.parent
+ while node is not None:
+ yield node
+ node = node.parent
+
+ def walk(self):
+ for child in self.children:
+ yield child
+ yield from child.walk()
+
+
+class Tree(HTMLParser):
+ VOID = {"path", "line", "circle", "rect", "polygon", "ellipse", "meta", "link", "br", "img", "input", "stop"}
+
+ def __init__(self):
+ super().__init__(convert_charrefs=True)
+ self.root = Element("#root", {}, None)
+ self.cur = self.root
+
+ def handle_starttag(self, tag, attrs):
+ el = Element(tag, {k: (v if v is not None else "") for k, v in attrs}, self.cur)
+ self.cur.children.append(el)
+ if tag not in self.VOID:
+ self.cur = el
+
+ def handle_startendtag(self, tag, attrs):
+ el = Element(tag, {k: (v if v is not None else "") for k, v in attrs}, self.cur)
+ self.cur.children.append(el)
+
+ def handle_endtag(self, tag):
+ node = self.cur
+ while node is not self.root and node.tag != tag:
+ node = node.parent
+ if node is not self.root:
+ self.cur = node.parent
+
+ def handle_data(self, data):
+ self.cur.text += data
+
+
+# ---------------------------------------------------------------- projection (independent of the builder)
+
+
+def corners(r):
+ x0, y0, x1, y1, rad = r
+ return [(x1 - rad, y1 - rad), (x0 + rad, y1 - rad), (x0 + rad, y0 + rad), (x1 - rad, y0 + rad)]
+
+
+def outline_point(origin, r, theta, z, k=None):
+ k = int(math.floor(theta / 90)) % 4 if k is None else k
+ cx, cy = corners(r)[k]
+ t = math.radians(theta)
+ x, y = cx + r[4] * math.cos(t), cy + r[4] * math.sin(t)
+ return (origin[0] + x - y, origin[1] + (x + y) / 2 - z)
+
+
+def walk_points(origin, r, a, b, z):
+ """Endpoints of each edge and quarter arc between outline angles a and b."""
+ pts, arcs = [], []
+ rising = b > a
+ th = a
+ step = 1 if rising else -1
+ while (b - th) * step > 1e-9:
+ nxt = min(b, (math.floor(th / 90) + 1) * 90) if rising else max(b, (math.ceil(th / 90) - 1) * 90)
+ k = int(math.floor((th + nxt) / 2 / 90)) % 4
+ pts.append(outline_point(origin, r, nxt, z, k))
+ arcs.append(r[4] > 0)
+ th = nxt
+ if (b - th) * step > 1e-9:
+ pts.append(outline_point(origin, r, th, z, int(math.floor((th + step) / 90)) % 4))
+ arcs.append(False)
+ return pts, arcs
+
+
+def expected_silhouette(origin, r, z0, z1):
+ pts = [outline_point(origin, r, 135, z1)]
+ arcs = [False]
+ p, a = walk_points(origin, r, 135, 315, z1)
+ pts += p
+ arcs += a
+ pts.append(outline_point(origin, r, -45, z0))
+ arcs.append(False)
+ p, a = walk_points(origin, r, -45, 135, z0)
+ pts += p
+ arcs += a
+ return pts, arcs
+
+
+def silhouette_poly(origin, r, z0, z1, n=24):
+ poly = [outline_point(origin, r, 135 + 180 * i / n, z1) for i in range(n + 1)]
+ poly += [outline_point(origin, r, -45 + 180 * i / n, z0) for i in range(n + 1)]
+ return poly
+
+
+def parse_path(d):
+ """Return (endpoints, is_arc, arcs as (rx, ry, rotation, large-arc, sweep)) for an absolute M/L/A/Z path."""
+ tokens = re.findall(r"[MLAZ]|-?\d+(?:\.\d+)?", d)
+ pts, arcs, radii = [], [], []
+ i = 0
+ while i < len(tokens):
+ cmd = tokens[i]
+ if cmd in ("M", "L"):
+ pts.append((float(tokens[i + 1]), float(tokens[i + 2])))
+ arcs.append(False)
+ i += 3
+ elif cmd == "A":
+ radii.append(tuple(float(tokens[i + k]) for k in range(1, 6)))
+ pts.append((float(tokens[i + 6]), float(tokens[i + 7])))
+ arcs.append(True)
+ i += 8
+ elif cmd == "Z":
+ i += 1
+ else:
+ raise ValueError(f"unsupported path token {cmd!r}")
+ return pts, arcs, radii
+
+
+def crosses(y, xa, xb, poly):
+ xs = []
+ for i in range(len(poly)):
+ (x1, y1), (x2, y2) = poly[i], poly[(i + 1) % len(poly)]
+ if (y1 - y) * (y2 - y) < 0:
+ xs.append(x1 + (y - y1) * (x2 - x1) / (y2 - y1))
+ xs.sort()
+ return any(xs[i] < xb and xs[i + 1] > xa for i in range(0, len(xs) - 1, 2))
+
+
+def num(value, what, errors):
+ try:
+ return float(value)
+ except (TypeError, ValueError):
+ errors.append(f"{what} is not a number: {value!r}")
+ return None
+
+
+# ---------------------------------------------------------------- checks
+
+
+def verify_source(source: str, name: str) -> list[str]:
+ errors: list[str] = []
+ tree = Tree()
+ tree.feed(source)
+ roots = [el for el in tree.root.walk() if el.tag == "g" and "data-exploded" in el.attrs]
+ if len(roots) != 1:
+ return [f"{name}: expected one <g data-exploded>; found {len(roots)}"]
+ fig = roots[0]
+ origin_vals = NUMBER.findall(fig.attrs.get("data-origin", ""))
+ if len(origin_vals) != 2:
+ return [f"{name}: data-origin must be two numbers"]
+ origin = (float(origin_vals[0]), float(origin_vals[1]))
+ gap = num(fig.attrs.get("data-gap"), f"{name}: data-gap", errors)
+ if gap is None:
+ return errors
+
+ parts = []
+ for el in fig.walk():
+ if el.tag != "g" or "data-part" not in el.attrs:
+ continue
+ key = el.attrs["data-part"]
+ vals = NUMBER.findall(el.attrs.get("data-rect", ""))
+ if len(vals) != 5:
+ errors.append(f"{name}: part {key!r} data-rect must be x0 y0 x1 y1 r")
+ continue
+ rect = tuple(float(v) for v in vals)
+ z = num(el.attrs.get("data-z"), f"{name}: part {key!r} data-z", errors)
+ t = num(el.attrs.get("data-t"), f"{name}: part {key!r} data-t", errors)
+ level = num(el.attrs.get("data-level"), f"{name}: part {key!r} data-level", errors)
+ if None in (z, t, level):
+ continue
+ parts.append(dict(key=key, el=el, rect=rect, z=z, t=t, level=int(level),
+ name=el.attrs.get("data-name", ""), housing=el.attrs.get("data-kind") == "housing",
+ focal="data-focal" in el.attrs, closed=el.attrs.get("data-closed-z")))
+ if len(parts) < 2:
+ errors.append(f"{name}: an exploded view needs at least two parts; found {len(parts)}")
+ return errors
+
+ # 1. Every silhouette is the projection of its declared box.
+ for p in parts:
+ sil = next((c for c in p["el"].walk() if c.tag == "path" and c.attrs.get("data-role") == "silhouette"), None)
+ if sil is None:
+ errors.append(f"{name}: part {p['key']!r} has no data-role=silhouette path")
+ continue
+ want, want_arcs = expected_silhouette(origin, p["rect"], p["z"], p["z"] + p["t"])
+ try:
+ got, got_arcs, radii = parse_path(sil.attrs.get("d", ""))
+ except (ValueError, IndexError) as exc:
+ errors.append(f"{name}: part {p['key']!r} silhouette is unreadable ({exc})")
+ continue
+ if len(got) != len(want) or got_arcs != want_arcs:
+ errors.append(f"{name}: part {p['key']!r} silhouette has {len(got)} vertices; its box projects to {len(want)}")
+ continue
+ for i, (g, w) in enumerate(zip(got, want)):
+ if abs(g[0] - w[0]) > TOL or abs(g[1] - w[1]) > TOL:
+ errors.append(f"{name}: part {p['key']!r} silhouette vertex {i} is at {g}; iso() of its box puts it at ({w[0]:.2f}, {w[1]:.2f})")
+ break
+ r = p["rect"][4]
+ for rx, ry, rotation, large, sweep in radii:
+ if abs(rx - r * math.sqrt(2)) > TOL or abs(ry - r / math.sqrt(2)) > TOL:
+ errors.append(f"{name}: part {p['key']!r} corner arc {rx:g}x{ry:g} is not the 2:1 ellipse of radius {r:g} ({r * math.sqrt(2):.2f}x{r / math.sqrt(2):.2f})")
+ break
+ # Both silhouette walks run clockwise on screen through quarter corners, so every
+ # arc is unrotated, short, and sweeps positive. A flipped flag bends the corner
+ # inward while its endpoints and radii still match.
+ if rotation != 0 or large != 0 or sweep != 1:
+ errors.append(f"{name}: part {p['key']!r} corner arc flags are rotation {rotation:g}, large-arc {large:g}, sweep {sweep:g}; a projected corner is 0 0 1")
+ break
+
+ # 2. Levels, equal gaps, the gap floor, and the bottom staying put.
+ levels: dict[int, list[dict]] = {}
+ for p in parts:
+ levels.setdefault(p["level"], []).append(p)
+ order = sorted(levels)
+ if order != list(range(len(order))):
+ errors.append(f"{name}: levels must run 0..{len(order) - 1}; found {order}")
+ for k in order:
+ zs = {round(p["z"], 3) for p in levels[k]}
+ if len(zs) != 1:
+ errors.append(f"{name}: level {k} parts sit at different z {sorted(zs)}; a level explodes together")
+ if order and abs(levels[order[0]][0]["z"]) > TOL:
+ errors.append(f"{name}: the bottom level must stay at z = 0; found {levels[order[0]][0]['z']}")
+ for k0, k1 in zip(order, order[1:]):
+ top = levels[k0][0]["z"] + max(p["t"] for p in levels[k0])
+ actual = levels[k1][0]["z"] - top
+ if abs(actual - gap) > TOL:
+ errors.append(f"{name}: gap between levels {k0} and {k1} is {actual:g}; the figure declares {gap:g}, and gaps must be equal")
+ top_h = max((p["rect"][2] - p["rect"][0] + p["rect"][3] - p["rect"][1]) / 2 for p in parts)
+ solids = [p["t"] for p in parts if not p["housing"]] or [p["t"] for p in parts]
+ floor = max(0.5 * top_h, 3 * max(solids))
+ if gap + TOL < floor:
+ errors.append(f"{name}: gap {gap:g} is under max(0.5 x top-face height, 3 x thickness) = {floor:g}")
+
+ # 3. Labels: exactly one per part, one column, horizontal leaders from each part's right extreme.
+ labels = {}
+ part_names = {p["name"] for p in parts}
+ for el in fig.walk():
+ if el.tag == "g" and el.attrs.get("data-role") == "label":
+ name_el = next((c for c in el.walk() if c.tag == "text" and c.attrs.get("data-role") == "name"), None)
+ leader = next((c for c in el.walk() if c.tag == "line" and c.attrs.get("data-role") == "leader"), None)
+ if name_el is None or leader is None:
+ errors.append(f"{name}: a label group needs a data-role=name text and a data-role=leader line")
+ continue
+ text = name_el.text.strip()
+ if text in labels:
+ errors.append(f"{name}: part {text!r} has more than one label; each part gets exactly one")
+ continue
+ if text not in part_names:
+ errors.append(f"{name}: label {text!r} names no declared part")
+ continue
+ labels[text] = (name_el, leader)
+ polys = {p["key"]: silhouette_poly(origin, p["rect"], p["z"], p["z"] + p["t"]) for p in parts}
+ columns, anchor_ys = set(), []
+ for p in parts:
+ if p["name"] not in labels:
+ errors.append(f"{name}: part {p['key']!r} has no label named {p['name']!r}")
+ continue
+ name_el, leader = labels[p["name"]]
+ words = p["name"].split()
+ if len(words) > 2:
+ errors.append(f"{name}: label {p['name']!r} has {len(words)} words; keep labels to one or two")
+ x1, y1, x2, y2 = (float(leader.attrs.get(k, "nan")) for k in ("x1", "y1", "x2", "y2"))
+ if abs(y1 - y2) > TOL:
+ errors.append(f"{name}: leader for {p['name']!r} is not horizontal ({y1:g} to {y2:g})")
+ top_right = outline_point(origin, p["rect"], -45, p["z"] + p["t"])
+ bottom_right = outline_point(origin, p["rect"], -45, p["z"])
+ ax, ay = top_right[0], (top_right[1] + bottom_right[1]) / 2
+ if abs(y1 - ay) > TOL or abs(x1 - (ax + 6)) > TOL:
+ errors.append(f"{name}: leader for {p['name']!r} starts at ({x1:g}, {y1:g}); the part's right extreme is ({ax:.2f}, {ay:.2f})")
+ anchor_ys.append((ay, p["name"]))
+ columns.add(round(float(name_el.attrs.get("x", "nan")), 2))
+ for q in parts:
+ if q is not p and crosses(y1, x1, x2, polys[q["key"]]):
+ errors.append(f"{name}: leader for {p['name']!r} crosses part {q['key']!r}")
+ if len(columns) > 1:
+ errors.append(f"{name}: labels sit in {len(columns)} columns {sorted(columns)}; use one aligned column")
+ anchor_ys.sort()
+ for (ya, na), (yb, nb) in zip(anchor_ys, anchor_ys[1:]):
+ if yb - ya < LABEL_PITCH - TOL:
+ errors.append(f"{name}: labels {na!r} and {nb!r} are {yb - ya:.1f}px apart; the minimum is {LABEL_PITCH}")
+
+ # 4. One focal part at most.
+ focal = [p["key"] for p in parts if p["focal"]]
+ if len(focal) > 1:
+ errors.append(f"{name}: {len(focal)} focal parts {focal}; the accent goes on one")
+
+ # 5. Trace lines run straight up and are dashed.
+ for el in fig.walk():
+ if el.tag == "line" and el.attrs.get("data-role") == "trace":
+ if abs(float(el.attrs.get("x1", "nan")) - float(el.attrs.get("x2", "nan"))) > TOL:
+ errors.append(f"{name}: trace line is not vertical")
+ if not el.attrs.get("stroke-dasharray"):
+ errors.append(f"{name}: trace line must be dashed")
+
+ # 6. Geometry comes from coordinates alone: no SVG transform anywhere in the figure.
+ for el in [fig, *fig.walk()]:
+ if "transform" in el.attrs:
+ errors.append(f"{name}: <{el.tag}> carries transform={el.attrs['transform']!r}; position comes from projected coordinates")
+
+ # 7. Animated parts lift by exactly their explode distance.
+ for p in parts:
+ style = p["el"].attrs.get("style", "")
+ if "data-motion-item" in p["el"].attrs:
+ if p["closed"] is None:
+ errors.append(f"{name}: animated part {p['key']!r} needs data-closed-z")
+ continue
+ m = re.fullmatch(r"\s*--lift:\s*(-?\d+(?:\.\d+)?)px;?\s*", style)
+ if not m:
+ errors.append(f"{name}: animated part {p['key']!r} must carry only style=\"--lift:Npx\"; found {style!r}")
+ continue
+ want = p["z"] - float(p["closed"])
+ if abs(float(m.group(1)) - want) > TOL:
+ errors.append(f"{name}: part {p['key']!r} lifts {m.group(1)}px; z {p['z']:g} minus closed z {p['closed']} is {want:g}")
+ elif style:
+ errors.append(f"{name}: static part {p['key']!r} carries a style attribute; position comes from geometry")
+ return errors
+
+
+def verify(path: Path) -> list[str]:
+ try:
+ display = path.resolve().relative_to(ROOT).as_posix()
+ except ValueError:
+ display = str(path)
+ return verify_source(path.read_text(encoding="utf-8"), display)
+
+
+def main() -> int:
+ parser = argparse.ArgumentParser(description="Verify exploded axonometric geometry.")
+ parser.add_argument("files", nargs="*", type=Path)
+ parser.add_argument("--all", action="store_true", help="check every shipped example-exploded*.html")
+ args = parser.parse_args()
+ files = sorted(ASSETS.glob("example-exploded*.html")) if args.all else args.files
+ if not files:
+ parser.error("name files or pass --all")
+ errors = []
+ for path in files:
+ errors += verify(path)
+ if errors:
+ print(f"FAIL exploded axonometric: {len(errors)} problem(s)")
+ for error in errors:
+ print(f" - {error}")
+ return 1
+ print(f"OK exploded axonometric: {len(files)} file(s) match their declared geometry")
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/scripts/verify-screenshot-freshness.py b/scripts/verify-screenshot-freshness.py
index b8f4481..52da83e 100644
--- a/scripts/verify-screenshot-freshness.py
+++ b/scripts/verify-screenshot-freshness.py
@@ -21,8 +21,8 @@ from screenshot_catalog import (
def main() -> int:
errors: list[str] = []
slugs = canonical_slugs()
- if len(slugs) != 42 or len(slugs) != len(set(slugs)):
- errors.append(f"expected 42 unique canonical types; found {len(slugs)}")
+ if len(slugs) != 43 or len(slugs) != len(set(slugs)):
+ errors.append(f"expected 43 unique canonical types; found {len(slugs)}")
if not MANIFEST.is_file():
errors.append("docs/screenshots/manifest.json is missing")
@@ -97,7 +97,7 @@ def main() -> int:
for error in errors:
print(f" - {error}")
return 1
- print("OK screenshot freshness: 42 canonical sources and PNG digests match")
+ print("OK screenshot freshness: 43 canonical sources and PNG digests match")
return 0
diff --git a/scripts/verify-semantic-motion.py b/scripts/verify-semantic-motion.py
index d08803e..3359ce9 100644
--- a/scripts/verify-semantic-motion.py
+++ b/scripts/verify-semantic-motion.py
@@ -28,7 +28,7 @@ ANIMATION = ROOT / "skills/diagram-design/references/animation.md"
EXAMPLE = ROOT / "skills/diagram-design/assets/example-policy-trace-animated.html"
ADR_0002 = ROOT / "docs/adr/0002-semantic-patterns-do-not-expand-the-taxonomy.md"
MAX_SKILL_BYTES = 40_000
-VISUAL_TYPE_COUNT = 42
+VISUAL_TYPE_COUNT = 43
PATTERN_NAMES = (
"Fan-in queue / bottleneck",
diff --git a/skills/diagram-design/SKILL.md b/skills/diagram-design/SKILL.md
index add7d71..1a2f87d 100644
--- a/skills/diagram-design/SKILL.md
+++ b/skills/diagram-design/SKILL.md
@@ -1,6 +1,6 @@
---
name: diagram-design
-description: Create branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, Venn, pyramid/funnel, treemap and marimekko, heatmap, bar and dumbbell, waterfall, line (slopegraph, ridgeline, streamgraph, bump), Gantt and scatter charts (bubble, beeswarm), high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, deployment, dependency graph, UML class, story map, or database schema diagrams as HTML/SVG/PNG, with .drawio, Mermaid, and .excalidraw import, plus lifecycle phase maps, block decomposition trees, and onboarding guidance.
+description: Create branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, exploded axonometric, Venn, pyramid/funnel, treemap and marimekko, heatmap, bar and dumbbell, waterfall, line (slopegraph, ridgeline, streamgraph, bump), Gantt and scatter charts (bubble, beeswarm), high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, deployment, dependency graph, UML class, story map, or database schema diagrams as HTML/SVG/PNG, with .drawio, Mermaid, and .excalidraw import, plus lifecycle phase maps, block decomposition trees, and onboarding guidance.
license: MIT
metadata:
version: "2.6"
@@ -10,7 +10,7 @@ metadata:
Create diagrams as self-contained HTML files with inline SVG and an editorial design system.
-Forty-two visual types. Semantic patterns describe behavior; type references describe layout.
+Forty-three visual types. Semantic patterns describe behavior; type references describe layout.
---
@@ -49,7 +49,7 @@ Applied to schematics:
## 2. When to Use
-Use for any of the 42 visual types (§3) when a reader will learn more from a visual than from prose, a table, or a bulleted list.
+Use for any of the 43 visual types (§3) when a reader will learn more from a visual than from prose, a table, or a bulleted list.
**Don't use for:**
@@ -80,7 +80,7 @@ When behavior, state, enforcement, or risk carries the meaning, first load [`ref
The pattern owns semantic primitives and its tighter budget; the type owns layout grammar. Use [`references/animation.md`](references/animation.md) only when motion is requested or materially clarifies ordered change; static remains the default.
-### Visual-type guide (42)
+### Visual-type guide (43)
| If you're showing… | Use | Reference |
|---|---|---|
@@ -101,6 +101,7 @@ The pattern owns semantic primitives and its tighter budget; the type owns layou
| Parent → children relationships | **Tree** | [type-tree.md](references/type-tree.md) |
| Human/agent/team ownership, reporting, routing, escalation | **Org chart** | [type-org-chart.md](references/type-org-chart.md) |
| Stacked abstraction levels | **Layer stack** | [type-layers.md](references/type-layers.md) |
+| Parts of one object pulled apart along one axis: a teardown, an unboxing, assembly order | **Exploded axonometric** | [type-exploded.md](references/type-exploded.md) |
| Overlap between sets | **Venn** | [type-venn.md](references/type-venn.md) |
| Ranked hierarchy or conversion drop-off | **Pyramid / funnel** | [type-pyramid.md](references/type-pyramid.md) |
| Quantitative comparison across categories | **Bar chart** | [type-bar.md](references/type-bar.md) |
diff --git a/skills/diagram-design/assets/example-exploded-dark.html b/skills/diagram-design/assets/example-exploded-dark.html
new file mode 100644
index 0000000..da38b5c
--- /dev/null
+++ b/skills/diagram-design/assets/example-exploded-dark.html
@@ -0,0 +1,83 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>App stack · Three layers, one product</title>
+ <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
+ <style>
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
+ :root {
+ --color-paper: #2d3142;
+ --color-ink: #f5f5f5;
+ --color-muted: #bfc0c0;
+ --color-accent: #f08a59;
+ --font-sans: 'Geist', system-ui, sans-serif;
+ --font-serif: 'Instrument Serif', serif;
+ --font-mono: 'Geist Mono', ui-monospace, monospace;
+ }
+
+ body {
+ font-family: var(--font-sans);
+ background: var(--color-paper);
+ color: var(--color-ink);
+ min-height: 100vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 3rem 2rem;
+ }
+
+ .frame { max-width: 1200px; width: 100%; }
+ .diagram-container { width: 100%; overflow-x: auto; }
+
+ .eyebrow {
+ font-family: var(--font-mono);
+ font-size: 0.66rem;
+ font-weight: 500;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ color: var(--color-muted);
+ margin-bottom: 0.5rem;
+ }
+
+ h1 {
+ font-family: var(--font-serif);
+ font-size: clamp(1.5rem, 2.4vw + 0.75rem, 2rem);
+ font-weight: 400;
+ letter-spacing: -0.02em;
+ line-height: 1.15;
+ color: var(--color-ink);
+ margin-bottom: 1.5rem;
+ }
+
+ svg { width: 100%; min-width: 1000px; display: block; }
+ @media print {
+ .diagram-container { overflow-x: visible; }
+ svg { min-width: 0; }
+ }
+ </style>
+</head>
+<body>
+ <div class="frame">
+ <p class="eyebrow">Exploded axonometric · Diagram Design</p>
+ <h1>App stack · Three layers, one product</h1>
+
+ <div class="diagram-container">
+ <svg viewBox="0 0 1000 556" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="exploded-dark-title exploded-dark-desc">
+ <title id="exploded-dark-title">App stack · Three layers, one product</title>
+ <desc id="exploded-dark-desc">Exploded view of a three-layer app stack: data at the base, logic in the middle, interface on top, with logic as the focal layer.</desc>
+ <rect width="100%" height="100%" fill="#2d3142"/>
+ <g data-exploded data-origin="344 284" data-gap="100">
+ <line data-role="trace" x1="151.03" y1="368" x2="151.03" y2="152" stroke="rgba(245,245,245,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><line data-role="trace" x1="536.97" y1="368" x2="536.97" y2="152" stroke="rgba(245,245,245,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/>
+ <g data-part="data" data-name="Data" data-rect="0 0 200 200 12" data-z="0" data-t="16" data-level="0"><path data-role="silhouette" d="M 151.03 368 A 16.97 8.49 0 0 1 156 362 L 332 274 A 16.97 8.49 0 0 1 356 274 L 532 362 A 16.97 8.49 0 0 1 536.97 368 L 536.97 384 A 16.97 8.49 0 0 1 532 390 L 356 478 A 16.97 8.49 0 0 1 332 478 L 156 390 A 16.97 8.49 0 0 1 151.03 384 Z" fill="#393e53"/><path d="M 356 462 A 16.97 8.49 0 0 1 332 462 L 156 374 A 16.97 8.49 0 0 1 156 362 L 332 274 A 16.97 8.49 0 0 1 356 274 L 532 362 A 16.97 8.49 0 0 1 532 374 Z" fill="rgba(245,245,245,0.10)"/><path d="M 344 464.49 A 16.97 8.49 0 0 0 356 462 L 532 374 A 16.97 8.49 0 0 0 536.97 368 L 536.97 384 A 16.97 8.49 0 0 1 532 390 L 356 478 A 16.97 8.49 0 0 1 344 480.49 Z" fill="rgba(45,49,66,0.45)"/><path d="M 151.03 368 A 16.97 8.49 0 0 0 156 374 L 332 462 A 16.97 8.49 0 0 0 356 462 L 532 374 A 16.97 8.49 0 0 0 536.97 368" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 151.03 368 A 16.97 8.49 0 0 1 156 362 L 332 274 A 16.97 8.49 0 0 1 356 274 L 532 362 A 16.97 8.49 0 0 1 536.97 368 L 536.97 384 A 16.97 8.49 0 0 1 532 390 L 356 478 A 16.97 8.49 0 0 1 332 478 L 156 390 A 16.97 8.49 0 0 1 151.03 384 Z" fill="none" stroke="#f5f5f5" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="542.97" y1="376" x2="588.97" y2="376" stroke="rgba(245,245,245,0.40)" stroke-width="0.8"/><circle cx="536.97" cy="376" r="2" fill="#f5f5f5"/><text data-role="name" x="600.97" y="375" fill="#f5f5f5" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Data</text><text x="600.97" y="391" fill="#bfc0c0" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">postgres, object store</text></g></g>
+ <g data-part="logic" data-name="Logic" data-rect="0 0 200 200 12" data-z="116" data-t="16" data-level="1" data-focal><path data-role="silhouette" d="M 151.03 252 A 16.97 8.49 0 0 1 156 246 L 332 158 A 16.97 8.49 0 0 1 356 158 L 532 246 A 16.97 8.49 0 0 1 536.97 252 L 536.97 268 A 16.97 8.49 0 0 1 532 274 L 356 362 A 16.97 8.49 0 0 1 332 362 L 156 274 A 16.97 8.49 0 0 1 151.03 268 Z" fill="#393e53"/><path d="M 356 346 A 16.97 8.49 0 0 1 332 346 L 156 258 A 16.97 8.49 0 0 1 156 246 L 332 158 A 16.97 8.49 0 0 1 356 158 L 532 246 A 16.97 8.49 0 0 1 532 258 Z" fill="rgba(240,138,89,0.18)"/><path d="M 344 348.49 A 16.97 8.49 0 0 0 356 346 L 532 258 A 16.97 8.49 0 0 0 536.97 252 L 536.97 268 A 16.97 8.49 0 0 1 532 274 L 356 362 A 16.97 8.49 0 0 1 344 364.49 Z" fill="rgba(45,49,66,0.45)"/><path d="M 151.03 252 A 16.97 8.49 0 0 0 156 258 L 332 346 A 16.97 8.49 0 0 0 356 346 L 532 258 A 16.97 8.49 0 0 0 536.97 252" fill="none" stroke="rgba(240,138,89,0.70)" stroke-width="0.8"/><path d="M 151.03 252 A 16.97 8.49 0 0 1 156 246 L 332 158 A 16.97 8.49 0 0 1 356 158 L 532 246 A 16.97 8.49 0 0 1 536.97 252 L 536.97 268 A 16.97 8.49 0 0 1 532 274 L 356 362 A 16.97 8.49 0 0 1 332 362 L 156 274 A 16.97 8.49 0 0 1 151.03 268 Z" fill="none" stroke="#f08a59" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="542.97" y1="260" x2="588.97" y2="260" stroke="rgba(240,138,89,0.60)" stroke-width="0.8"/><circle cx="536.97" cy="260" r="2" fill="#f08a59"/><text data-role="name" x="600.97" y="259" fill="#f5f5f5" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Logic</text><text x="600.97" y="275" fill="#f08a59" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">api, workers, queue</text></g></g>
+ <g data-part="interface" data-name="Interface" data-rect="0 0 200 200 12" data-z="232" data-t="16" data-level="2"><path data-role="silhouette" d="M 151.03 136 A 16.97 8.49 0 0 1 156 130 L 332 42 A 16.97 8.49 0 0 1 356 42 L 532 130 A 16.97 8.49 0 0 1 536.97 136 L 536.97 152 A 16.97 8.49 0 0 1 532 158 L 356 246 A 16.97 8.49 0 0 1 332 246 L 156 158 A 16.97 8.49 0 0 1 151.03 152 Z" fill="#393e53"/><path d="M 356 230 A 16.97 8.49 0 0 1 332 230 L 156 142 A 16.97 8.49 0 0 1 156 130 L 332 42 A 16.97 8.49 0 0 1 356 42 L 532 130 A 16.97 8.49 0 0 1 532 142 Z" fill="rgba(245,245,245,0.10)"/><path d="M 344 232.49 A 16.97 8.49 0 0 0 356 230 L 532 142 A 16.97 8.49 0 0 0 536.97 136 L 536.97 152 A 16.97 8.49 0 0 1 532 158 L 356 246 A 16.97 8.49 0 0 1 344 248.49 Z" fill="rgba(45,49,66,0.45)"/><path d="M 151.03 136 A 16.97 8.49 0 0 0 156 142 L 332 230 A 16.97 8.49 0 0 0 356 230 L 532 142 A 16.97 8.49 0 0 0 536.97 136" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 151.03 136 A 16.97 8.49 0 0 1 156 130 L 332 42 A 16.97 8.49 0 0 1 356 42 L 532 130 A 16.97 8.49 0 0 1 536.97 136 L 536.97 152 A 16.97 8.49 0 0 1 532 158 L 356 246 A 16.97 8.49 0 0 1 332 246 L 156 158 A 16.97 8.49 0 0 1 151.03 152 Z" fill="none" stroke="#f5f5f5" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="542.97" y1="144" x2="588.97" y2="144" stroke="rgba(245,245,245,0.40)" stroke-width="0.8"/><circle cx="536.97" cy="144" r="2" fill="#f5f5f5"/><text data-role="name" x="600.97" y="143" fill="#f5f5f5" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Interface</text><text x="600.97" y="159" fill="#bfc0c0" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">web app, mobile</text></g></g>
+ </g>
+ <text x="152" y="528" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.18em">FOCAL LAYER</text>
+ <text x="256" y="528" fill="#bfc0c0" font-size="8.5" font-family="'Geist', sans-serif" font-style="italic">Logic is where the product decisions live; the other two layers are swappable.</text>
+ </svg>
+ </div>
+ </div>
+</body>
+</html>
diff --git a/skills/diagram-design/assets/example-exploded-full.html b/skills/diagram-design/assets/example-exploded-full.html
new file mode 100644
index 0000000..af0cf5c
--- /dev/null
+++ b/skills/diagram-design/assets/example-exploded-full.html
@@ -0,0 +1,82 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>App stack · Three layers, one product</title>
+ <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
+ <style>
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
+ :root { --color-paper:#f5f5f5; --color-paper-2:#ececec; --color-ink:#2d3142; --color-muted:#4f5d75; --color-soft:#7a8399; --color-rule:rgba(45,49,66,0.12); --color-accent:#eb6c36; --color-link:#2e5aa8; --font-sans:'Geist',system-ui,sans-serif; --font-serif:'Instrument Serif',serif; --font-mono:'Geist Mono',ui-monospace,monospace; }
+ body { font-family: var(--font-sans); background: var(--color-paper); min-height: 100vh; padding: 3rem 2rem; color: var(--color-ink); }
+ .container { max-width: 1200px; margin: 0 auto; }
+ .header { margin-bottom: 2.5rem; }
+ .header-eyebrow { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.75rem; }
+ h1 { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.5rem; }
+ .subtitle { font-size: 1rem; line-height: 1.55; color: var(--color-muted); max-width: 58ch; }
+ .diagram-container { overflow-x: auto; }
+ svg { width: 100%; min-width: 1000px; display: block; }
+ @media print { .diagram-container { overflow-x: visible; } svg { min-width: 0; } }
+ .cards { display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: 1rem; margin-top: 1.5rem; }
+ @media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
+ .card { background: #fff; border-radius: 6px; border: 1px solid var(--color-rule); padding: 1.25rem; }
+ .card .eyebrow { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.5rem; }
+ .card-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.875rem; padding-bottom: 0.875rem; border-bottom: 1px solid rgba(45,49,66,0.08); }
+ .card-dot { width: 7px; height: 7px; border-radius: 50%; }
+ .card-dot.ink { background: var(--color-ink); } .card-dot.muted { background: var(--color-muted); } .card-dot.coral { background: var(--color-accent); }
+ .card h3 { font-size: 0.875rem; font-weight: 600; }
+ .card p, .card ul { color: var(--color-muted); font-size: 0.8125rem; line-height: 1.55; list-style: none; }
+ .card li { margin-bottom: 0.3rem; padding-left: 0.875rem; position: relative; }
+ .card li::before { content: '·'; position: absolute; left: 0.2rem; color: rgba(45,49,66,0.45); }
+ .footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(45,49,66,0.10); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--color-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
+ </style>
+</head>
+<body>
+ <div class="container">
+ <div class="header">
+ <p class="header-eyebrow">Exploded axonometric · Diagram Design</p>
+ <h1>App stack · Three layers, one product</h1>
+ <p class="subtitle">Three layers pulled apart along one axis. The middle one carries the product, and the other two can be swapped.</p>
+ </div>
+
+ <div class="diagram-container">
+ <svg viewBox="0 0 1000 556" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="exploded-full-title exploded-full-desc">
+ <title id="exploded-full-title">App stack · Three layers, one product</title>
+ <desc id="exploded-full-desc">Exploded view of a three-layer app stack: data at the base, logic in the middle, interface on top, with logic as the focal layer.</desc>
+ <rect width="100%" height="100%" fill="#f5f5f5"/>
+ <g data-exploded data-origin="344 284" data-gap="100">
+ <line data-role="trace" x1="151.03" y1="368" x2="151.03" y2="152" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><line data-role="trace" x1="536.97" y1="368" x2="536.97" y2="152" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/>
+ <g data-part="data" data-name="Data" data-rect="0 0 200 200 12" data-z="0" data-t="16" data-level="0"><path data-role="silhouette" d="M 151.03 368 A 16.97 8.49 0 0 1 156 362 L 332 274 A 16.97 8.49 0 0 1 356 274 L 532 362 A 16.97 8.49 0 0 1 536.97 368 L 536.97 384 A 16.97 8.49 0 0 1 532 390 L 356 478 A 16.97 8.49 0 0 1 332 478 L 156 390 A 16.97 8.49 0 0 1 151.03 384 Z" fill="#ffffff"/><path d="M 151.03 368 A 16.97 8.49 0 0 0 156 374 L 332 462 A 16.97 8.49 0 0 0 344 464.49 L 344 480.49 A 16.97 8.49 0 0 1 332 478 L 156 390 A 16.97 8.49 0 0 1 151.03 384 Z" fill="rgba(45,49,66,0.07)"/><path d="M 344 464.49 A 16.97 8.49 0 0 0 356 462 L 532 374 A 16.97 8.49 0 0 0 536.97 368 L 536.97 384 A 16.97 8.49 0 0 1 532 390 L 356 478 A 16.97 8.49 0 0 1 344 480.49 Z" fill="rgba(45,49,66,0.15)"/><path d="M 151.03 368 A 16.97 8.49 0 0 0 156 374 L 332 462 A 16.97 8.49 0 0 0 356 462 L 532 374 A 16.97 8.49 0 0 0 536.97 368" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 151.03 368 A 16.97 8.49 0 0 1 156 362 L 332 274 A 16.97 8.49 0 0 1 356 274 L 532 362 A 16.97 8.49 0 0 1 536.97 368 L 536.97 384 A 16.97 8.49 0 0 1 532 390 L 356 478 A 16.97 8.49 0 0 1 332 478 L 156 390 A 16.97 8.49 0 0 1 151.03 384 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="542.97" y1="376" x2="588.97" y2="376" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="536.97" cy="376" r="2" fill="#2d3142"/><text data-role="name" x="600.97" y="375" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Data</text><text x="600.97" y="391" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">postgres, object store</text></g></g>
+ <g data-part="logic" data-name="Logic" data-rect="0 0 200 200 12" data-z="116" data-t="16" data-level="1" data-focal><path data-role="silhouette" d="M 151.03 252 A 16.97 8.49 0 0 1 156 246 L 332 158 A 16.97 8.49 0 0 1 356 158 L 532 246 A 16.97 8.49 0 0 1 536.97 252 L 536.97 268 A 16.97 8.49 0 0 1 532 274 L 356 362 A 16.97 8.49 0 0 1 332 362 L 156 274 A 16.97 8.49 0 0 1 151.03 268 Z" fill="#ffffff"/><path d="M 356 346 A 16.97 8.49 0 0 1 332 346 L 156 258 A 16.97 8.49 0 0 1 156 246 L 332 158 A 16.97 8.49 0 0 1 356 158 L 532 246 A 16.97 8.49 0 0 1 532 258 Z" fill="rgba(235,108,54,0.10)"/><path d="M 151.03 252 A 16.97 8.49 0 0 0 156 258 L 332 346 A 16.97 8.49 0 0 0 344 348.49 L 344 364.49 A 16.97 8.49 0 0 1 332 362 L 156 274 A 16.97 8.49 0 0 1 151.03 268 Z" fill="rgba(235,108,54,0.20)"/><path d="M 344 348.49 A 16.97 8.49 0 0 0 356 346 L 532 258 A 16.97 8.49 0 0 0 536.97 252 L 536.97 268 A 16.97 8.49 0 0 1 532 274 L 356 362 A 16.97 8.49 0 0 1 344 364.49 Z" fill="rgba(235,108,54,0.32)"/><path d="M 151.03 252 A 16.97 8.49 0 0 0 156 258 L 332 346 A 16.97 8.49 0 0 0 356 346 L 532 258 A 16.97 8.49 0 0 0 536.97 252" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.8"/><path d="M 151.03 252 A 16.97 8.49 0 0 1 156 246 L 332 158 A 16.97 8.49 0 0 1 356 158 L 532 246 A 16.97 8.49 0 0 1 536.97 252 L 536.97 268 A 16.97 8.49 0 0 1 532 274 L 356 362 A 16.97 8.49 0 0 1 332 362 L 156 274 A 16.97 8.49 0 0 1 151.03 268 Z" fill="none" stroke="#eb6c36" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="542.97" y1="260" x2="588.97" y2="260" stroke="rgba(235,108,54,0.60)" stroke-width="0.8"/><circle cx="536.97" cy="260" r="2" fill="#eb6c36"/><text data-role="name" x="600.97" y="259" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Logic</text><text x="600.97" y="275" fill="#eb6c36" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">api, workers, queue</text></g></g>
+ <g data-part="interface" data-name="Interface" data-rect="0 0 200 200 12" data-z="232" data-t="16" data-level="2"><path data-role="silhouette" d="M 151.03 136 A 16.97 8.49 0 0 1 156 130 L 332 42 A 16.97 8.49 0 0 1 356 42 L 532 130 A 16.97 8.49 0 0 1 536.97 136 L 536.97 152 A 16.97 8.49 0 0 1 532 158 L 356 246 A 16.97 8.49 0 0 1 332 246 L 156 158 A 16.97 8.49 0 0 1 151.03 152 Z" fill="#ffffff"/><path d="M 151.03 136 A 16.97 8.49 0 0 0 156 142 L 332 230 A 16.97 8.49 0 0 0 344 232.49 L 344 248.49 A 16.97 8.49 0 0 1 332 246 L 156 158 A 16.97 8.49 0 0 1 151.03 152 Z" fill="rgba(45,49,66,0.07)"/><path d="M 344 232.49 A 16.97 8.49 0 0 0 356 230 L 532 142 A 16.97 8.49 0 0 0 536.97 136 L 536.97 152 A 16.97 8.49 0 0 1 532 158 L 356 246 A 16.97 8.49 0 0 1 344 248.49 Z" fill="rgba(45,49,66,0.15)"/><path d="M 151.03 136 A 16.97 8.49 0 0 0 156 142 L 332 230 A 16.97 8.49 0 0 0 356 230 L 532 142 A 16.97 8.49 0 0 0 536.97 136" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 151.03 136 A 16.97 8.49 0 0 1 156 130 L 332 42 A 16.97 8.49 0 0 1 356 42 L 532 130 A 16.97 8.49 0 0 1 536.97 136 L 536.97 152 A 16.97 8.49 0 0 1 532 158 L 356 246 A 16.97 8.49 0 0 1 332 246 L 156 158 A 16.97 8.49 0 0 1 151.03 152 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="542.97" y1="144" x2="588.97" y2="144" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="536.97" cy="144" r="2" fill="#2d3142"/><text data-role="name" x="600.97" y="143" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Interface</text><text x="600.97" y="159" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">web app, mobile</text></g></g>
+ </g>
+ <text x="152" y="528" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.18em">FOCAL LAYER</text>
+ <text x="256" y="528" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif" font-style="italic">Logic is where the product decisions live; the other two layers are swappable.</text>
+ </svg>
+ </div>
+
+ <div class="cards">
+ <div class="card">
+ <p class="eyebrow">The headline</p>
+ <div class="card-header"><span class="card-dot coral"></span><h3>Logic is the layer that pays rent</h3></div>
+ <p>Swapping the database is a migration. Swapping the interface is a redesign. Rewriting the logic is a different product, so that layer gets the accent.</p>
+ </div>
+ <div class="card">
+
+ <div class="card-header"><span class="card-dot ink"></span><h3>Reading the explode</h3></div>
+ <ul><li>Bottom layer stays put</li><li>Equal gaps, one axis</li><li>Dashed lines trace the outer corners</li><li>Labels sit in one column</li></ul>
+ </div>
+ <div class="card">
+
+ <div class="card-header"><span class="card-dot muted"></span><h3>Why only three</h3></div>
+ <p>A stack this small reads at a glance. Past five parts the explode gets tall and the labels crowd; split it into two figures.</p>
+ </div>
+ </div>
+
+ <div class="footer">
+ <span>app stack · exploded axonometric</span>
+ <span>example · diagram design</span>
+ </div>
+ </div>
+</body>
+</html>
diff --git a/skills/diagram-design/assets/example-exploded-phone-animated.html b/skills/diagram-design/assets/example-exploded-phone-animated.html
new file mode 100644
index 0000000..f572111
--- /dev/null
+++ b/skills/diagram-design/assets/example-exploded-phone-animated.html
@@ -0,0 +1,436 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Phone teardown · What sits under the glass</title>
+ <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&family=Noto+Serif:ital@0;1&family=Noto+Sans+KR:wght@400;500;600&family=Noto+Serif+KR:wght@400&family=Noto+Sans+TC:wght@400;500;600&family=Noto+Serif+TC:wght@400&display=swap" rel="stylesheet">
+ <style>
+ *, *::before, *::after { box-sizing: border-box; }
+ :root {
+ --color-paper: #f5f5f5;
+ --color-ink: #2d3142;
+ --color-muted: #4f5d75;
+ --color-soft: #7a8399;
+ --color-accent: #eb6c36;
+ --color-rule: rgba(45,49,66,0.12);
+ --font-sans: 'Geist', system-ui, sans-serif;
+ --font-serif: 'Instrument Serif', 'Noto Serif', 'Noto Serif KR', serif;
+ --font-mono: 'Geist Mono', ui-monospace, monospace;
+ --motion-fast: 160ms;
+ --motion-step: 600ms;
+ --motion-hold: 900ms;
+ --motion-total: 2700ms;
+ --motion-ease: cubic-bezier(.2,.8,.2,1);
+ }
+ body {
+ margin: 0;
+ min-height: 100vh;
+ display: grid;
+ place-items: center;
+ padding: 48px 32px;
+ color: var(--color-ink);
+ background: var(--color-paper);
+ font-family: var(--font-sans);
+ }
+ [data-motion-root] { width: min(100%, 1000px); }
+ .eyebrow {
+ margin: 0 0 8px;
+ color: var(--color-muted);
+ font: 500 12px/1.4 var(--font-mono);
+ letter-spacing: .18em;
+ text-transform: uppercase;
+ }
+ h1 { margin: 0 0 24px; font: 400 32px/1.15 var(--font-serif); }
+ svg { display: block; width: 100%; min-width: 1000px; }
+ /* The SVG holds its readable width (min-width == the viewBox width, so the
+ type ramp is never silently scaled down). This wrapper lets a narrow
+ screen scroll the diagram instead of the whole page. body is a centred
+ grid, so the root needs max-width/min-width to stop the grid item from
+ sizing itself to the SVG's max-content width. */
+ [data-motion-root] { max-width: 100%; min-width: 0; }
+ .diagram-container { width: 100%; overflow-x: auto; }
+
+ /* Static source is complete. Only an initialized enhancement hides items. */
+ .motion-ready [data-motion-item] {
+ opacity: .12;
+ transform: translateY(8px);
+ transform-box: fill-box;
+ transform-origin: center;
+ transition: opacity var(--motion-step) var(--motion-ease),
+ transform var(--motion-step) var(--motion-ease);
+ }
+ .motion-ready [data-motion-item].is-visible,
+ .motion-ready[data-frame="end"] [data-motion-item],
+ .motion-ready[data-frame="static"] [data-motion-item] {
+ opacity: 1;
+ transform: none;
+ }
+ .draw-path {
+ fill: none;
+ stroke: var(--color-accent);
+ stroke-width: 3;
+ stroke-dasharray: 1;
+ stroke-dashoffset: 1;
+ pointer-events: none;
+ }
+ .motion-ready .draw-path.is-visible {
+ animation: draw-path var(--motion-step) linear forwards;
+ }
+ .flow-token { opacity: 0; pointer-events: none; }
+ .motion-ready.is-playing .flow-token.is-visible {
+ opacity: 1;
+ animation: token-flow 3.2s linear 1 forwards;
+ }
+ .motion-ready[data-motion-mode="loop"].is-playing .flow-token.is-visible {
+ animation-iteration-count: infinite;
+ }
+ @keyframes draw-path { to { stroke-dashoffset: 0; } }
+ @keyframes token-flow {
+ 0% { transform: translateX(0); }
+ 100% { transform: translateX(240px); }
+ }
+
+ [data-motion-controls] {
+ display: none;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-top: 16px;
+ padding-top: 16px;
+ border-top: 1px solid var(--color-rule);
+ }
+ .motion-ready [data-motion-controls] { display: flex; }
+ [data-motion-controls][hidden] { display: none !important; }
+ [data-motion-controls] button {
+ min-width: 44px;
+ min-height: 44px;
+ padding: 8px 12px;
+ border: 1px solid var(--color-muted);
+ border-radius: 4px;
+ color: var(--color-ink);
+ background: var(--color-paper);
+ font: 600 12px/1 var(--font-sans);
+ cursor: pointer;
+ }
+ [data-motion-controls] button:hover { border-color: var(--color-accent); }
+ [data-motion-controls] button:focus-visible {
+ outline: 3px solid var(--color-accent);
+ outline-offset: 2px;
+ }
+ [data-motion-controls] button:disabled { cursor: not-allowed; opacity: .45; }
+ [data-motion-status-visible] {
+ margin-left: auto;
+ color: var(--color-muted);
+ font: 500 12px/1.4 var(--font-mono);
+ }
+ .sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0,0,0,0);
+ white-space: nowrap;
+ border: 0;
+ }
+ noscript p {
+ margin: 12px 0 0;
+ color: var(--color-muted);
+ font: 500 12px/1.4 var(--font-mono);
+ }
+
+ html[data-motion="static"] [data-motion-controls],
+ html[data-motion="static"] [data-motion-decorative] { display: none !important; }
+ html[data-motion="static"] [data-motion-item] {
+ opacity: 1 !important;
+ transform: none !important;
+ animation: none !important;
+ transition: none !important;
+ }
+ html[data-motion="step"] [data-motion-controls],
+ html[data-motion="step"] [data-motion-decorative] { display: none !important; }
+ html[data-motion="step"] [data-motion-item] {
+ animation: none !important;
+ transition: none !important;
+ }
+ @media (prefers-reduced-motion: reduce) {
+ *, *::before, *::after {
+ animation-duration: .001ms !important;
+ animation-iteration-count: 1 !important;
+ scroll-behavior: auto !important;
+ transition-duration: .001ms !important;
+ }
+ [data-motion-item] { opacity: 1 !important; transform: none !important; }
+ [data-motion-decorative] { display: none !important; }
+ [data-motion-controls] { display: none !important; }
+ }
+ @media print {
+ /* Paper has no scrollbar, so the local scroller would clip instead of
+ scroll. Let the diagram scale down to the sheet: smaller but whole
+ beats sharp but cut off. */
+ .diagram-container { overflow-x: visible; }
+ svg { min-width: 0; }
+ [data-motion-controls], [data-motion-decorative] { display: none !important; }
+ [data-motion-item] {
+ opacity: 1 !important;
+ transform: none !important;
+ animation: none !important;
+ transition: none !important;
+ }
+ }
+
+ /* Static source is the exploded frame. Only an initialized enhancement assembles it.
+ Parts travel straight up, so a vertical translate is the whole explode. */
+ .motion-ready [data-motion-item][data-part] { opacity: 1; transform: translateY(var(--lift)); }
+ .motion-ready:not([data-frame="start"]) [data-motion-item][data-part] { transition: transform var(--motion-step) var(--motion-ease); }
+ .motion-ready [data-motion-item][data-part].is-visible,
+ .motion-ready[data-frame="end"] [data-motion-item][data-part],
+ .motion-ready[data-frame="static"] [data-motion-item][data-part] { transform: none; }
+ .motion-ready [data-part] .part-label { opacity: 0; transition: none; }
+ .motion-ready [data-part].is-visible .part-label { opacity: 1; transition: opacity var(--motion-fast) linear var(--motion-step); }
+ .motion-ready[data-frame="end"] .part-label,
+ .motion-ready[data-frame="static"] .part-label { opacity: 1; }
+ .motion-ready [data-motion-item][data-reveal] { opacity: 0; transform: none; transition: none; }
+ .motion-ready [data-motion-item][data-reveal].is-visible { opacity: 1; transition: opacity var(--motion-step) var(--motion-ease); }
+ .motion-ready[data-frame="end"] [data-motion-item][data-reveal],
+ .motion-ready[data-frame="static"] [data-motion-item][data-reveal] { opacity: 1; }
+ html[data-motion="static"] .part-label { opacity: 1 !important; }
+ html[data-motion="step"] .part-label { transition: none !important; }
+ @media (prefers-reduced-motion: reduce) { .part-label { opacity: 1 !important; } }
+ @media print { .part-label { opacity: 1 !important; } }
+ </style>
+</head>
+<body>
+ <main data-motion-root data-motion-mode="reveal" data-step-count="3" data-step-current="3" data-frame="static" data-static-frame="complete">
+ <p class="eyebrow">Exploded axonometric · Optional motion</p>
+ <h1>Phone teardown · What sits under the glass</h1>
+
+ <div class="diagram-container">
+ <svg viewBox="0 0 1000 624" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="exploded-phone-animated-title exploded-phone-animated-desc">
+ <title id="exploded-phone-animated-title">Phone teardown · What sits under the glass</title>
+ <desc id="exploded-phone-animated-desc">Exploded view of a phone: the display lifts off the housing to show the logic board and battery inside, with the logic board as the focal part.</desc>
+ <rect width="100%" height="100%" fill="#f5f5f5"/>
+ <g data-exploded data-origin="416 388" data-gap="160">
+ <g data-part="housing" data-name="Housing" data-rect="0 0 140 280 24" data-z="0" data-t="20" data-level="0" data-kind="housing" data-closed-z="0"><path data-role="silhouette" d="M 150.06 508 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 252 586 L 160 540 A 33.94 16.97 0 0 1 150.06 528 Z" fill="#ffffff"/><path d="M 300 566 A 33.94 16.97 0 0 1 252 566 L 160 520 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 532 450 Z" fill="#ffffff"/><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="#ffffff"/><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="rgba(45,49,66,0.10)"/><clipPath id="exploded-phone-animated-housing-cavity"><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z"/></clipPath><g clip-path="url(#exploded-phone-animated-housing-cavity)"><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="#ffffff"/><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="rgba(45,49,66,0.04)"/><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/></g><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 150.06 508 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 541.94 438" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/></g>
+ <g data-motion-item data-step="3" data-reveal aria-label="Housing stays put; trace lines show where each part sat"><line data-role="trace" x1="150.06" y1="508" x2="150.06" y2="180" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><line data-role="trace" x1="541.94" y1="438" x2="541.94" y2="110" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><g data-role="label"><line data-role="leader" x1="547.94" y1="448" x2="593.94" y2="448" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="541.94" cy="448" r="2" fill="#2d3142"/><text data-role="name" x="605.94" y="447" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Housing</text><text x="605.94" y="463" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">aluminium frame</text></g></g>
+ <g data-part="board" data-name="Logic board" data-rect="8 8 132 112 4" data-z="180" data-t="4" data-level="1" data-focal data-closed-z="3" data-motion-item data-step="2" style="--lift:177px" aria-label="Logic board lifts clear"><path data-role="silhouette" d="M 314.34 264 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 432 328 L 316 270 A 5.66 2.83 0 0 1 314.34 268 Z" fill="#ffffff"/><path d="M 440 324 A 5.66 2.83 0 0 1 432 324 L 316 266 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 536 276 Z" fill="rgba(235,108,54,0.10)"/><path d="M 314.34 264 A 5.66 2.83 0 0 0 316 266 L 432 324 A 5.66 2.83 0 0 0 436 324.83 L 436 328.83 A 5.66 2.83 0 0 1 432 328 L 316 270 A 5.66 2.83 0 0 1 314.34 268 Z" fill="rgba(235,108,54,0.20)"/><path d="M 436 324.83 A 5.66 2.83 0 0 0 440 324 L 536 276 A 5.66 2.83 0 0 0 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 436 328.83 Z" fill="rgba(235,108,54,0.32)"/><path d="M 314.34 264 A 5.66 2.83 0 0 0 316 266 L 432 324 A 5.66 2.83 0 0 0 440 324 L 536 276 A 5.66 2.83 0 0 0 537.66 274" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.8"/><path d="M 314.34 264 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 432 328 L 316 270 A 5.66 2.83 0 0 1 314.34 268 Z" fill="none" stroke="#eb6c36" stroke-width="1.2" stroke-linejoin="round"/><path d="M 376.69 236 A 11.31 5.66 0 0 1 380 232 L 408 218 A 11.31 5.66 0 0 1 424 218 L 452 232 A 11.31 5.66 0 0 1 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 408 260 L 380 246 A 11.31 5.66 0 0 1 376.69 242 Z" fill="#ffffff"/><path d="M 376.69 236 A 11.31 5.66 0 0 0 380 240 L 408 254 A 11.31 5.66 0 0 0 416 255.66 L 416 261.66 A 11.31 5.66 0 0 1 408 260 L 380 246 A 11.31 5.66 0 0 1 376.69 242 Z" fill="rgba(45,49,66,0.07)"/><path d="M 416 255.66 A 11.31 5.66 0 0 0 424 254 L 452 240 A 11.31 5.66 0 0 0 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 416 261.66 Z" fill="rgba(45,49,66,0.15)"/><path d="M 376.69 236 A 11.31 5.66 0 0 0 380 240 L 408 254 A 11.31 5.66 0 0 0 424 254 L 452 240 A 11.31 5.66 0 0 0 455.31 236" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 376.69 236 A 11.31 5.66 0 0 1 380 232 L 408 218 A 11.31 5.66 0 0 1 424 218 L 452 232 A 11.31 5.66 0 0 1 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 408 260 L 380 246 A 11.31 5.66 0 0 1 376.69 242 Z" fill="none" stroke="#2d3142" stroke-width="1" stroke-linejoin="round"/><path d="M 404.69 224 A 11.31 5.66 0 0 1 408 220 L 408 220 A 11.31 5.66 0 0 1 424 220 L 424 220 A 11.31 5.66 0 0 1 427.31 224 L 427.31 227 A 11.31 5.66 0 0 1 424 231 L 424 231 A 11.31 5.66 0 0 1 408 231 L 408 231 A 11.31 5.66 0 0 1 404.69 227 Z" fill="#2d3142"/><path d="M 421 226.5 A 7.07 3.54 0 0 1 411 226.5 L 411 226.5 A 7.07 3.54 0 0 1 411 221.5 L 411 221.5 A 7.07 3.54 0 0 1 421 221.5 L 421 221.5 A 7.07 3.54 0 0 1 421 226.5 Z" fill="none" stroke="rgba(245,245,245,0.35)" stroke-width="0.8"/><path d="M 404.69 242 A 11.31 5.66 0 0 1 408 238 L 408 238 A 11.31 5.66 0 0 1 424 238 L 424 238 A 11.31 5.66 0 0 1 427.31 242 L 427.31 245 A 11.31 5.66 0 0 1 424 249 L 424 249 A 11.31 5.66 0 0 1 408 249 L 408 249 A 11.31 5.66 0 0 1 404.69 245 Z" fill="#2d3142"/><path d="M 421 244.5 A 7.07 3.54 0 0 1 411 244.5 L 411 244.5 A 7.07 3.54 0 0 1 411 239.5 L 411 239.5 A 7.07 3.54 0 0 1 421 239.5 L 421 239.5 A 7.07 3.54 0 0 1 421 244.5 Z" fill="none" stroke="rgba(245,245,245,0.35)" stroke-width="0.8"/><path d="M 428.59 267 A 1.41 0.71 0 0 1 429 266.5 L 463 249.5 A 1.41 0.71 0 0 1 465 249.5 L 499 266.5 A 1.41 0.71 0 0 1 499.41 267 L 499.41 270 A 1.41 0.71 0 0 1 499 270.5 L 465 287.5 A 1.41 0.71 0 0 1 463 287.5 L 429 270.5 A 1.41 0.71 0 0 1 428.59 270 Z" fill="#2d3142"/><path d="M 465 284.5 A 1.41 0.71 0 0 1 463 284.5 L 429 267.5 A 1.41 0.71 0 0 1 429 266.5 L 463 249.5 A 1.41 0.71 0 0 1 465 249.5 L 499 266.5 A 1.41 0.71 0 0 1 499 267.5 Z" fill="#4f5d75"/><path d="M 344.59 266 A 1.41 0.71 0 0 1 345 265.5 L 371 252.5 A 1.41 0.71 0 0 1 373 252.5 L 395 263.5 A 1.41 0.71 0 0 1 395.41 264 L 395.41 266 A 1.41 0.71 0 0 1 395 266.5 L 369 279.5 A 1.41 0.71 0 0 1 367 279.5 L 345 268.5 A 1.41 0.71 0 0 1 344.59 268 Z" fill="#2d3142"/><path d="M 369 277.5 A 1.41 0.71 0 0 1 367 277.5 L 345 266.5 A 1.41 0.71 0 0 1 345 265.5 L 371 252.5 A 1.41 0.71 0 0 1 373 252.5 L 395 263.5 A 1.41 0.71 0 0 1 395 264.5 Z" fill="#4f5d75"/><path d="M 396.59 284 A 1.41 0.71 0 0 1 397 283.5 L 415 274.5 A 1.41 0.71 0 0 1 417 274.5 L 459 295.5 A 1.41 0.71 0 0 1 459.41 296 L 459.41 298 A 1.41 0.71 0 0 1 459 298.5 L 441 307.5 A 1.41 0.71 0 0 1 439 307.5 L 397 286.5 A 1.41 0.71 0 0 1 396.59 286 Z" fill="#2d3142"/><path d="M 441 305.5 A 1.41 0.71 0 0 1 439 305.5 L 397 284.5 A 1.41 0.71 0 0 1 397 283.5 L 415 274.5 A 1.41 0.71 0 0 1 417 274.5 L 459 295.5 A 1.41 0.71 0 0 1 459 296.5 Z" fill="#4f5d75"/><g data-role="label" class="part-label"><line data-role="leader" x1="543.66" y1="276" x2="593.94" y2="276" stroke="rgba(235,108,54,0.60)" stroke-width="0.8"/><circle cx="537.66" cy="276" r="2" fill="#eb6c36"/><text data-role="name" x="605.94" y="275" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Logic board</text><text x="605.94" y="291" fill="#eb6c36" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">soc, cameras</text></g></g>
+ <g data-part="battery" data-name="Battery" data-rect="10 136 130 268 6" data-z="180" data-t="8" data-level="1" data-closed-z="3" data-motion-item data-step="2" style="--lift:177px" aria-label="Battery lifts clear"><path data-role="silhouette" d="M 161.51 339 A 8.49 4.24 0 0 1 164 336 L 284 276 A 8.49 4.24 0 0 1 296 276 L 404 330 A 8.49 4.24 0 0 1 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 272 404 L 164 350 A 8.49 4.24 0 0 1 161.51 347 Z" fill="#ffffff"/><path d="M 161.51 339 A 8.49 4.24 0 0 0 164 342 L 272 396 A 8.49 4.24 0 0 0 278 397.24 L 278 405.24 A 8.49 4.24 0 0 1 272 404 L 164 350 A 8.49 4.24 0 0 1 161.51 347 Z" fill="rgba(45,49,66,0.07)"/><path d="M 278 397.24 A 8.49 4.24 0 0 0 284 396 L 404 336 A 8.49 4.24 0 0 0 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 278 405.24 Z" fill="rgba(45,49,66,0.15)"/><path d="M 278 391 L 278 391 L 174 339 L 174 339 L 290 281 L 290 281 L 394 333 L 394 333 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 316 296 L 316 296 L 292 284 L 292 284 L 298 281 L 298 281 L 322 293 L 322 293 Z" fill="#4f5d75"/><path d="M 161.51 339 A 8.49 4.24 0 0 0 164 342 L 272 396 A 8.49 4.24 0 0 0 284 396 L 404 336 A 8.49 4.24 0 0 0 406.49 333" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 161.51 339 A 8.49 4.24 0 0 1 164 336 L 284 276 A 8.49 4.24 0 0 1 296 276 L 404 330 A 8.49 4.24 0 0 1 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 272 404 L 164 350 A 8.49 4.24 0 0 1 161.51 347 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label" class="part-label"><line data-role="leader" x1="412.49" y1="337" x2="593.94" y2="337" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="406.49" cy="337" r="2" fill="#2d3142"/><text data-role="name" x="605.94" y="336" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Battery</text><text x="605.94" y="352" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">li-ion cell</text></g></g>
+ <g data-part-front="housing"><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 252 586 L 160 540 A 33.94 16.97 0 0 1 150.06 528 Z" fill="#ffffff"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 534.87 438 A 26.87 13.44 0 0 1 527 447.5 L 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 157.13 508 Z" fill="#ffffff"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 276 570.97 L 276 590.97 A 33.94 16.97 0 0 1 252 586 L 160 540 A 33.94 16.97 0 0 1 150.06 528 Z" fill="rgba(45,49,66,0.07)"/><path d="M 276 570.97 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 276 590.97 Z" fill="rgba(45,49,66,0.15)"/><polygon points="497.5,473.75 457.5,493.75 457.5,501.75 497.5,481.75" fill="#ffffff" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><polygon points="445.5,499.75 425.5,509.75 425.5,517.75 445.5,507.75" fill="#ffffff" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 157.13 508 A 26.87 13.44 0 0 0 165 517.5 L 257 563.5 A 26.87 13.44 0 0 0 295 563.5 L 527 447.5 A 26.87 13.44 0 0 0 534.87 438" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438" fill="none" stroke="#2d3142" stroke-width="1.2"/><path d="M 150.06 508 L 150.06 528 A 33.94 16.97 0 0 0 160 540 L 252 586 A 33.94 16.97 0 0 0 300 586 L 532 470 A 33.94 16.97 0 0 0 541.94 458 L 541.94 438" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/></g>
+ <g data-part="display" data-name="Display" data-rect="0 0 140 280 24" data-z="348" data-t="6" data-level="2" data-closed-z="20" data-motion-item data-step="1" style="--lift:328px" aria-label="Display lifts clear"><path data-role="silhouette" d="M 150.06 174 A 33.94 16.97 0 0 1 160 162 L 392 46 A 33.94 16.97 0 0 1 440 46 L 532 92 A 33.94 16.97 0 0 1 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 252 238 L 160 192 A 33.94 16.97 0 0 1 150.06 180 Z" fill="#ffffff"/><path d="M 150.06 174 A 33.94 16.97 0 0 0 160 186 L 252 232 A 33.94 16.97 0 0 0 276 236.97 L 276 242.97 A 33.94 16.97 0 0 1 252 238 L 160 192 A 33.94 16.97 0 0 1 150.06 180 Z" fill="rgba(45,49,66,0.07)"/><path d="M 276 236.97 A 33.94 16.97 0 0 0 300 232 L 532 116 A 33.94 16.97 0 0 0 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 276 242.97 Z" fill="rgba(45,49,66,0.15)"/><path d="M 296 230 A 28.28 14.14 0 0 1 256 230 L 164 184 A 28.28 14.14 0 0 1 164 164 L 396 48 A 28.28 14.14 0 0 1 436 48 L 528 94 A 28.28 14.14 0 0 1 528 114 Z" fill="#2d3142"/><path d="M 485 85.5 A 7.07 3.54 0 0 1 475 85.5 L 453 74.5 A 7.07 3.54 0 0 1 453 69.5 L 453 69.5 A 7.07 3.54 0 0 1 463 69.5 L 485 80.5 A 7.07 3.54 0 0 1 485 85.5 Z" fill="#111111"/><path d="M 150.06 174 A 33.94 16.97 0 0 0 160 186 L 252 232 A 33.94 16.97 0 0 0 300 232 L 532 116 A 33.94 16.97 0 0 0 541.94 104" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 150.06 174 A 33.94 16.97 0 0 1 160 162 L 392 46 A 33.94 16.97 0 0 1 440 46 L 532 92 A 33.94 16.97 0 0 1 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 252 238 L 160 192 A 33.94 16.97 0 0 1 150.06 180 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label" class="part-label"><line data-role="leader" x1="547.94" y1="107" x2="593.94" y2="107" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="541.94" cy="107" r="2" fill="#2d3142"/><text data-role="name" x="605.94" y="106" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Display</text><text x="605.94" y="122" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">oled, cover glass</text></g></g>
+ </g>
+ </svg>
+ </div>
+
+ <div data-motion-controls role="group" aria-label="Diagram playback controls">
+ <button type="button" data-motion-action="prev">Previous</button>
+ <button type="button" data-motion-action="play" aria-pressed="false">Play</button>
+ <button type="button" data-motion-action="pause" aria-pressed="true">Pause</button>
+ <button type="button" data-motion-action="next">Next</button>
+ <button type="button" data-motion-action="replay">Replay</button>
+ <span class="keyboard-help">←/→ step · Space play/pause · R replay · Home/End jump</span>
+ <span data-motion-status-visible aria-hidden="true">Step <span data-motion-step-label>3</span> of 3</span>
+ </div>
+ <p class="sr-only" data-motion-status role="status" aria-live="polite" aria-atomic="true"></p>
+ <noscript><p>Animation controls require JavaScript. The complete exploded diagram is shown above.</p></noscript>
+ </main>
+
+ <script data-diagram-controls>
+ (() => {
+ const params = new URLSearchParams(location.search);
+ const staticOverride = params.get('motion') === 'static' || document.documentElement.dataset.motion === 'static';
+ const requestedStep = params.get('step');
+ const reduce = matchMedia('(prefers-reduced-motion: reduce)');
+ document.fonts.ready.then(() => { document.documentElement.dataset.fontsReady = 'true'; });
+
+ document.querySelectorAll('[data-motion-root]').forEach((root) => {
+ const count = Number(root.dataset.stepCount);
+ const hold = parseFloat(getComputedStyle(root).getPropertyValue('--motion-hold')) || 720;
+ const parsedStep = requestedStep !== null && /^\d+$/.test(requestedStep) ? Number(requestedStep) : null;
+ const exactStep = params.get('motion') === 'step' && Number.isSafeInteger(parsedStep) && parsedStep >= 0 && parsedStep <= count ? parsedStep : null;
+ const items = [...root.querySelectorAll('[data-motion-item]')];
+ const labels = Array.from({ length: count + 1 }, (_, index) => index === 0
+ ? 'Ready'
+ : items.filter((item) => !item.hasAttribute('data-motion-decorative') && Number(item.dataset.step) === index)
+ .map((item) => item.getAttribute('aria-label')).join('; '));
+ const controls = root.querySelector('[data-motion-controls]');
+ const status = root.querySelector('[data-motion-status]');
+ const visibleStep = root.querySelector('[data-motion-step-label]');
+ let step = count;
+ let timer = 0;
+ let playing = false;
+ let stepBeforeReduce = 0;
+ let resumeAfterReduce = root.dataset.motionMode === 'reveal';
+
+ const buttons = (action) => controls.querySelector(`[data-motion-action="${action}"]`);
+ const clearClock = () => { window.clearTimeout(timer); timer = 0; };
+ const announce = () => { status.textContent = `Step ${step} of ${count}: ${labels[step] || 'Complete'}`; };
+ const setControlsAvailable = (available) => {
+ controls.hidden = !available;
+ controls.setAttribute('aria-hidden', String(!available));
+ controls.dataset.playbackDisabled = String(!available);
+ controls.querySelectorAll('button').forEach((control) => { control.disabled = !available; });
+ };
+
+ function render(next, userInitiated = false) {
+ step = Math.max(0, Math.min(count, next));
+ root.dataset.stepCurrent = String(step);
+ root.dataset.frame = step === count ? 'end' : step === 0 ? 'start' : 'step';
+ items.forEach((item) => {
+ const itemStep = Number(item.dataset.step);
+ item.classList.toggle('is-visible', itemStep <= step);
+ item.classList.toggle('is-current', itemStep === step);
+ });
+ if (visibleStep) visibleStep.textContent = String(step);
+ const unavailable = controls.dataset.playbackDisabled === 'true';
+ buttons('prev').disabled = unavailable || step === 0;
+ buttons('next').disabled = unavailable || step === count;
+ if (userInitiated) announce();
+ }
+
+ function pause(userInitiated = false) {
+ clearClock();
+ playing = false;
+ root.classList.remove('is-playing');
+ buttons('play').setAttribute('aria-pressed', 'false');
+ buttons('pause').setAttribute('aria-pressed', 'true');
+ if (userInitiated) status.textContent = `Paused at step ${step} of ${count}`;
+ }
+
+ function finish() {
+ pause(false);
+ root.dataset.frame = 'end';
+ status.textContent = `Complete · step ${count} of ${count}`;
+ }
+
+ function tick() {
+ if (!playing) return;
+ if (step >= count) { finish(); return; }
+ render(step + 1, false);
+ if (step >= count) { finish(); return; }
+ timer = window.setTimeout(tick, hold);
+ }
+
+ function play(fromStart = false, userInitiated = false) {
+ clearClock();
+ if (fromStart || step >= count) render(0, userInitiated);
+ playing = true;
+ root.classList.add('is-playing');
+ buttons('play').setAttribute('aria-pressed', 'true');
+ buttons('pause').setAttribute('aria-pressed', 'false');
+ timer = window.setTimeout(tick, hold);
+ }
+
+ controls.addEventListener('click', (event) => {
+ const button = event.target.closest('[data-motion-action]');
+ if (!button) return;
+ const action = button.dataset.motionAction;
+ if (action === 'play') play(false, true);
+ if (action === 'pause') pause(true);
+ if (action === 'replay') play(true, true);
+ if (action === 'prev') { pause(false); render(step - 1, true); }
+ if (action === 'next') { pause(false); render(step + 1, true); }
+ });
+
+ root.addEventListener('keydown', (event) => {
+ if (event.target.matches('input, textarea, select, a[href]')) return;
+ const keys = { ArrowLeft: step - 1, ArrowRight: step + 1, Home: 0, End: count };
+ if (event.code === 'Space' && !event.target.closest('button')) {
+ event.preventDefault();
+ playing ? pause(true) : play(false, true);
+ return;
+ }
+ if (!event.ctrlKey && !event.metaKey && !event.altKey && event.key.toLowerCase() === 'r') {
+ event.preventDefault();
+ play(true, true);
+ return;
+ }
+ if (!(event.key in keys)) return;
+ event.preventDefault();
+ pause(false);
+ render(keys[event.key], true);
+ });
+
+ document.addEventListener('visibilitychange', () => {
+ if (document.visibilityState === 'hidden' && playing) pause(false);
+ });
+ reduce.addEventListener('change', (event) => {
+ if (event.matches && root.dataset.motionState !== 'reduced') {
+ stepBeforeReduce = step;
+ resumeAfterReduce = playing;
+ }
+ pause(false);
+ if (event.matches) {
+ setControlsAvailable(false);
+ render(count, false);
+ root.dataset.frame = 'static';
+ root.dataset.motionState = 'reduced';
+ status.textContent = 'Reduced motion · complete static frame · playback controls unavailable';
+ } else if (staticOverride || root.dataset.motionMode === 'none') {
+ setControlsAvailable(false);
+ render(count, false);
+ root.dataset.frame = 'static';
+ root.dataset.motionState = 'static';
+ status.textContent = 'Static frame · complete diagram · playback controls unavailable';
+ } else {
+ delete root.dataset.motionState;
+ if (exactStep !== null) {
+ setControlsAvailable(false);
+ render(exactStep, false);
+ root.dataset.frame = 'step';
+ root.dataset.motionState = 'test';
+ status.textContent = `Test frame · step ${step} of ${count} · playback controls unavailable`;
+ } else {
+ setControlsAvailable(true);
+ render(stepBeforeReduce, false);
+ status.textContent = `Ready · step ${step} of ${count}`;
+ if (resumeAfterReduce && root.dataset.motionMode === 'reveal') {
+ play(false, false);
+ }
+ }
+ resumeAfterReduce = false;
+ }
+ });
+
+ if (staticOverride) {
+ document.documentElement.dataset.motion = 'static';
+ pause(false);
+ setControlsAvailable(false);
+ render(count, false);
+ root.dataset.frame = 'static';
+ root.dataset.motionState = 'static';
+ status.textContent = 'Static frame · complete diagram · playback controls unavailable';
+ } else if (reduce.matches || root.dataset.motionMode === 'none') {
+ pause(false);
+ setControlsAvailable(false);
+ render(count, false);
+ root.dataset.frame = 'static';
+ root.dataset.motionState = reduce.matches ? 'reduced' : 'static';
+ status.textContent = reduce.matches
+ ? 'Reduced motion · complete static frame · playback controls unavailable'
+ : 'Static frame · complete diagram · playback controls unavailable';
+ } else if (exactStep !== null) {
+ document.documentElement.dataset.motion = 'step';
+ pause(false);
+ setControlsAvailable(false);
+ render(exactStep, false);
+ root.dataset.frame = 'step';
+ root.dataset.motionState = 'test';
+ status.textContent = `Test frame · step ${step} of ${count} · playback controls unavailable`;
+ } else if (root.dataset.motionMode === 'reveal') {
+ setControlsAvailable(true);
+ render(0, false);
+ play(false, false);
+ } else {
+ pause(false);
+ setControlsAvailable(true);
+ render(0, false);
+ status.textContent = `Ready · step 0 of ${count}`;
+ }
+ root.classList.add('motion-ready');
+ });
+ })();
+ </script>
+</body>
+</html>
diff --git a/skills/diagram-design/assets/example-exploded-phone-dark.html b/skills/diagram-design/assets/example-exploded-phone-dark.html
new file mode 100644
index 0000000..3dbea54
--- /dev/null
+++ b/skills/diagram-design/assets/example-exploded-phone-dark.html
@@ -0,0 +1,83 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Phone teardown · What sits under the glass</title>
+ <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
+ <style>
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
+ :root {
+ --color-paper: #2d3142;
+ --color-ink: #f5f5f5;
+ --color-muted: #bfc0c0;
+ --color-accent: #f08a59;
+ --font-sans: 'Geist', system-ui, sans-serif;
+ --font-serif: 'Instrument Serif', serif;
+ --font-mono: 'Geist Mono', ui-monospace, monospace;
+ }
+
+ body {
+ font-family: var(--font-sans);
+ background: var(--color-paper);
+ color: var(--color-ink);
+ min-height: 100vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 3rem 2rem;
+ }
+
+ .frame { max-width: 1200px; width: 100%; }
+ .diagram-container { width: 100%; overflow-x: auto; }
+
+ .eyebrow {
+ font-family: var(--font-mono);
+ font-size: 0.66rem;
+ font-weight: 500;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ color: var(--color-muted);
+ margin-bottom: 0.5rem;
+ }
+
+ h1 {
+ font-family: var(--font-serif);
+ font-size: clamp(1.5rem, 2.4vw + 0.75rem, 2rem);
+ font-weight: 400;
+ letter-spacing: -0.02em;
+ line-height: 1.15;
+ color: var(--color-ink);
+ margin-bottom: 1.5rem;
+ }
+
+ svg { width: 100%; min-width: 1000px; display: block; }
+ @media print {
+ .diagram-container { overflow-x: visible; }
+ svg { min-width: 0; }
+ }
+ </style>
+</head>
+<body>
+ <div class="frame">
+ <p class="eyebrow">Exploded axonometric · Diagram Design</p>
+ <h1>Phone teardown · What sits under the glass</h1>
+
+ <div class="diagram-container">
+ <svg viewBox="0 0 1000 624" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="exploded-phone-dark-title exploded-phone-dark-desc">
+ <title id="exploded-phone-dark-title">Phone teardown · What sits under the glass</title>
+ <desc id="exploded-phone-dark-desc">Exploded view of a phone: the display lifts off the housing to show the logic board and battery inside, with the logic board as the focal part.</desc>
+ <rect width="100%" height="100%" fill="#2d3142"/>
+ <g data-exploded data-origin="416 388" data-gap="160">
+ <line data-role="trace" x1="150.06" y1="508" x2="150.06" y2="180" stroke="rgba(245,245,245,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><line data-role="trace" x1="541.94" y1="438" x2="541.94" y2="110" stroke="rgba(245,245,245,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/>
+ <g data-part="housing" data-name="Housing" data-rect="0 0 140 280 24" data-z="0" data-t="20" data-level="0" data-kind="housing"><path data-role="silhouette" d="M 150.06 508 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 252 586 L 160 540 A 33.94 16.97 0 0 1 150.06 528 Z" fill="#393e53"/><path d="M 300 566 A 33.94 16.97 0 0 1 252 566 L 160 520 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 532 450 Z" fill="#393e53"/><path d="M 300 566 A 33.94 16.97 0 0 1 252 566 L 160 520 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 532 450 Z" fill="rgba(245,245,245,0.10)"/><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="#393e53"/><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="rgba(45,49,66,0.55)"/><clipPath id="exploded-phone-dark-housing-cavity"><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z"/></clipPath><g clip-path="url(#exploded-phone-dark-housing-cavity)"><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="#393e53"/><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="rgba(45,49,66,0.25)"/><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/></g><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 150.06 508 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 541.94 438" fill="none" stroke="#f5f5f5" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="547.94" y1="448" x2="593.94" y2="448" stroke="rgba(245,245,245,0.40)" stroke-width="0.8"/><circle cx="541.94" cy="448" r="2" fill="#f5f5f5"/><text data-role="name" x="605.94" y="447" fill="#f5f5f5" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Housing</text><text x="605.94" y="463" fill="#bfc0c0" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">aluminium frame</text></g></g>
+ <g data-part="board" data-name="Logic board" data-rect="8 8 132 112 4" data-z="180" data-t="4" data-level="1" data-focal><path data-role="silhouette" d="M 314.34 264 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 432 328 L 316 270 A 5.66 2.83 0 0 1 314.34 268 Z" fill="#393e53"/><path d="M 440 324 A 5.66 2.83 0 0 1 432 324 L 316 266 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 536 276 Z" fill="rgba(240,138,89,0.18)"/><path d="M 436 324.83 A 5.66 2.83 0 0 0 440 324 L 536 276 A 5.66 2.83 0 0 0 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 436 328.83 Z" fill="rgba(45,49,66,0.45)"/><path d="M 314.34 264 A 5.66 2.83 0 0 0 316 266 L 432 324 A 5.66 2.83 0 0 0 440 324 L 536 276 A 5.66 2.83 0 0 0 537.66 274" fill="none" stroke="rgba(240,138,89,0.70)" stroke-width="0.8"/><path d="M 314.34 264 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 432 328 L 316 270 A 5.66 2.83 0 0 1 314.34 268 Z" fill="none" stroke="#f08a59" stroke-width="1.2" stroke-linejoin="round"/><path d="M 376.69 236 A 11.31 5.66 0 0 1 380 232 L 408 218 A 11.31 5.66 0 0 1 424 218 L 452 232 A 11.31 5.66 0 0 1 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 408 260 L 380 246 A 11.31 5.66 0 0 1 376.69 242 Z" fill="#393e53"/><path d="M 424 254 A 11.31 5.66 0 0 1 408 254 L 380 240 A 11.31 5.66 0 0 1 380 232 L 408 218 A 11.31 5.66 0 0 1 424 218 L 452 232 A 11.31 5.66 0 0 1 452 240 Z" fill="rgba(245,245,245,0.10)"/><path d="M 416 255.66 A 11.31 5.66 0 0 0 424 254 L 452 240 A 11.31 5.66 0 0 0 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 416 261.66 Z" fill="rgba(45,49,66,0.45)"/><path d="M 376.69 236 A 11.31 5.66 0 0 0 380 240 L 408 254 A 11.31 5.66 0 0 0 424 254 L 452 240 A 11.31 5.66 0 0 0 455.31 236" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 376.69 236 A 11.31 5.66 0 0 1 380 232 L 408 218 A 11.31 5.66 0 0 1 424 218 L 452 232 A 11.31 5.66 0 0 1 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 408 260 L 380 246 A 11.31 5.66 0 0 1 376.69 242 Z" fill="none" stroke="#f5f5f5" stroke-width="1" stroke-linejoin="round"/><path d="M 404.69 224 A 11.31 5.66 0 0 1 408 220 L 408 220 A 11.31 5.66 0 0 1 424 220 L 424 220 A 11.31 5.66 0 0 1 427.31 224 L 427.31 227 A 11.31 5.66 0 0 1 424 231 L 424 231 A 11.31 5.66 0 0 1 408 231 L 408 231 A 11.31 5.66 0 0 1 404.69 227 Z" fill="#111111"/><path d="M 421 226.5 A 7.07 3.54 0 0 1 411 226.5 L 411 226.5 A 7.07 3.54 0 0 1 411 221.5 L 411 221.5 A 7.07 3.54 0 0 1 421 221.5 L 421 221.5 A 7.07 3.54 0 0 1 421 226.5 Z" fill="none" stroke="rgba(245,245,245,0.35)" stroke-width="0.8"/><path d="M 404.69 242 A 11.31 5.66 0 0 1 408 238 L 408 238 A 11.31 5.66 0 0 1 424 238 L 424 238 A 11.31 5.66 0 0 1 427.31 242 L 427.31 245 A 11.31 5.66 0 0 1 424 249 L 424 249 A 11.31 5.66 0 0 1 408 249 L 408 249 A 11.31 5.66 0 0 1 404.69 245 Z" fill="#111111"/><path d="M 421 244.5 A 7.07 3.54 0 0 1 411 244.5 L 411 244.5 A 7.07 3.54 0 0 1 411 239.5 L 411 239.5 A 7.07 3.54 0 0 1 421 239.5 L 421 239.5 A 7.07 3.54 0 0 1 421 244.5 Z" fill="none" stroke="rgba(245,245,245,0.35)" stroke-width="0.8"/><path d="M 428.59 267 A 1.41 0.71 0 0 1 429 266.5 L 463 249.5 A 1.41 0.71 0 0 1 465 249.5 L 499 266.5 A 1.41 0.71 0 0 1 499.41 267 L 499.41 270 A 1.41 0.71 0 0 1 499 270.5 L 465 287.5 A 1.41 0.71 0 0 1 463 287.5 L 429 270.5 A 1.41 0.71 0 0 1 428.59 270 Z" fill="#2d3142"/><path d="M 465 284.5 A 1.41 0.71 0 0 1 463 284.5 L 429 267.5 A 1.41 0.71 0 0 1 429 266.5 L 463 249.5 A 1.41 0.71 0 0 1 465 249.5 L 499 266.5 A 1.41 0.71 0 0 1 499 267.5 Z" fill="#8e98ac"/><path d="M 344.59 266 A 1.41 0.71 0 0 1 345 265.5 L 371 252.5 A 1.41 0.71 0 0 1 373 252.5 L 395 263.5 A 1.41 0.71 0 0 1 395.41 264 L 395.41 266 A 1.41 0.71 0 0 1 395 266.5 L 369 279.5 A 1.41 0.71 0 0 1 367 279.5 L 345 268.5 A 1.41 0.71 0 0 1 344.59 268 Z" fill="#2d3142"/><path d="M 369 277.5 A 1.41 0.71 0 0 1 367 277.5 L 345 266.5 A 1.41 0.71 0 0 1 345 265.5 L 371 252.5 A 1.41 0.71 0 0 1 373 252.5 L 395 263.5 A 1.41 0.71 0 0 1 395 264.5 Z" fill="#8e98ac"/><path d="M 396.59 284 A 1.41 0.71 0 0 1 397 283.5 L 415 274.5 A 1.41 0.71 0 0 1 417 274.5 L 459 295.5 A 1.41 0.71 0 0 1 459.41 296 L 459.41 298 A 1.41 0.71 0 0 1 459 298.5 L 441 307.5 A 1.41 0.71 0 0 1 439 307.5 L 397 286.5 A 1.41 0.71 0 0 1 396.59 286 Z" fill="#2d3142"/><path d="M 441 305.5 A 1.41 0.71 0 0 1 439 305.5 L 397 284.5 A 1.41 0.71 0 0 1 397 283.5 L 415 274.5 A 1.41 0.71 0 0 1 417 274.5 L 459 295.5 A 1.41 0.71 0 0 1 459 296.5 Z" fill="#8e98ac"/><g data-role="label"><line data-role="leader" x1="543.66" y1="276" x2="593.94" y2="276" stroke="rgba(240,138,89,0.60)" stroke-width="0.8"/><circle cx="537.66" cy="276" r="2" fill="#f08a59"/><text data-role="name" x="605.94" y="275" fill="#f5f5f5" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Logic board</text><text x="605.94" y="291" fill="#f08a59" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">soc, cameras</text></g></g>
+ <g data-part="battery" data-name="Battery" data-rect="10 136 130 268 6" data-z="180" data-t="8" data-level="1"><path data-role="silhouette" d="M 161.51 339 A 8.49 4.24 0 0 1 164 336 L 284 276 A 8.49 4.24 0 0 1 296 276 L 404 330 A 8.49 4.24 0 0 1 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 272 404 L 164 350 A 8.49 4.24 0 0 1 161.51 347 Z" fill="#393e53"/><path d="M 284 396 A 8.49 4.24 0 0 1 272 396 L 164 342 A 8.49 4.24 0 0 1 164 336 L 284 276 A 8.49 4.24 0 0 1 296 276 L 404 330 A 8.49 4.24 0 0 1 404 336 Z" fill="rgba(245,245,245,0.10)"/><path d="M 278 397.24 A 8.49 4.24 0 0 0 284 396 L 404 336 A 8.49 4.24 0 0 0 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 278 405.24 Z" fill="rgba(45,49,66,0.45)"/><path d="M 278 391 L 278 391 L 174 339 L 174 339 L 290 281 L 290 281 L 394 333 L 394 333 Z" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 316 296 L 316 296 L 292 284 L 292 284 L 298 281 L 298 281 L 322 293 L 322 293 Z" fill="#8e98ac"/><path d="M 161.51 339 A 8.49 4.24 0 0 0 164 342 L 272 396 A 8.49 4.24 0 0 0 284 396 L 404 336 A 8.49 4.24 0 0 0 406.49 333" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 161.51 339 A 8.49 4.24 0 0 1 164 336 L 284 276 A 8.49 4.24 0 0 1 296 276 L 404 330 A 8.49 4.24 0 0 1 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 272 404 L 164 350 A 8.49 4.24 0 0 1 161.51 347 Z" fill="none" stroke="#f5f5f5" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="412.49" y1="337" x2="593.94" y2="337" stroke="rgba(245,245,245,0.40)" stroke-width="0.8"/><circle cx="406.49" cy="337" r="2" fill="#f5f5f5"/><text data-role="name" x="605.94" y="336" fill="#f5f5f5" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Battery</text><text x="605.94" y="352" fill="#bfc0c0" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">li-ion cell</text></g></g>
+ <g data-part-front="housing"><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 252 586 L 160 540 A 33.94 16.97 0 0 1 150.06 528 Z" fill="#393e53"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 534.87 438 A 26.87 13.44 0 0 1 527 447.5 L 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 157.13 508 Z" fill="#393e53"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 534.87 438 A 26.87 13.44 0 0 1 527 447.5 L 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 157.13 508 Z" fill="rgba(245,245,245,0.10)"/><path d="M 276 570.97 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 276 590.97 Z" fill="rgba(45,49,66,0.45)"/><polygon points="497.5,473.75 457.5,493.75 457.5,501.75 497.5,481.75" fill="#393e53" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><polygon points="445.5,499.75 425.5,509.75 425.5,517.75 445.5,507.75" fill="#393e53" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 157.13 508 A 26.87 13.44 0 0 0 165 517.5 L 257 563.5 A 26.87 13.44 0 0 0 295 563.5 L 527 447.5 A 26.87 13.44 0 0 0 534.87 438" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438" fill="none" stroke="#f5f5f5" stroke-width="1.2"/><path d="M 150.06 508 L 150.06 528 A 33.94 16.97 0 0 0 160 540 L 252 586 A 33.94 16.97 0 0 0 300 586 L 532 470 A 33.94 16.97 0 0 0 541.94 458 L 541.94 438" fill="none" stroke="#f5f5f5" stroke-width="1.2" stroke-linejoin="round"/></g>
+ <g data-part="display" data-name="Display" data-rect="0 0 140 280 24" data-z="348" data-t="6" data-level="2"><path data-role="silhouette" d="M 150.06 174 A 33.94 16.97 0 0 1 160 162 L 392 46 A 33.94 16.97 0 0 1 440 46 L 532 92 A 33.94 16.97 0 0 1 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 252 238 L 160 192 A 33.94 16.97 0 0 1 150.06 180 Z" fill="#393e53"/><path d="M 300 232 A 33.94 16.97 0 0 1 252 232 L 160 186 A 33.94 16.97 0 0 1 160 162 L 392 46 A 33.94 16.97 0 0 1 440 46 L 532 92 A 33.94 16.97 0 0 1 532 116 Z" fill="rgba(245,245,245,0.10)"/><path d="M 276 236.97 A 33.94 16.97 0 0 0 300 232 L 532 116 A 33.94 16.97 0 0 0 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 276 242.97 Z" fill="rgba(45,49,66,0.45)"/><path d="M 296 230 A 28.28 14.14 0 0 1 256 230 L 164 184 A 28.28 14.14 0 0 1 164 164 L 396 48 A 28.28 14.14 0 0 1 436 48 L 528 94 A 28.28 14.14 0 0 1 528 114 Z" fill="#111111"/><path d="M 485 85.5 A 7.07 3.54 0 0 1 475 85.5 L 453 74.5 A 7.07 3.54 0 0 1 453 69.5 L 453 69.5 A 7.07 3.54 0 0 1 463 69.5 L 485 80.5 A 7.07 3.54 0 0 1 485 85.5 Z" fill="#2d3142"/><path d="M 150.06 174 A 33.94 16.97 0 0 0 160 186 L 252 232 A 33.94 16.97 0 0 0 300 232 L 532 116 A 33.94 16.97 0 0 0 541.94 104" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 150.06 174 A 33.94 16.97 0 0 1 160 162 L 392 46 A 33.94 16.97 0 0 1 440 46 L 532 92 A 33.94 16.97 0 0 1 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 252 238 L 160 192 A 33.94 16.97 0 0 1 150.06 180 Z" fill="none" stroke="#f5f5f5" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="547.94" y1="107" x2="593.94" y2="107" stroke="rgba(245,245,245,0.40)" stroke-width="0.8"/><circle cx="541.94" cy="107" r="2" fill="#f5f5f5"/><text data-role="name" x="605.94" y="106" fill="#f5f5f5" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Display</text><text x="605.94" y="122" fill="#bfc0c0" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">oled, cover glass</text></g></g>
+ </g>
+ </svg>
+ </div>
+ </div>
+</body>
+</html>
diff --git a/skills/diagram-design/assets/example-exploded-phone-full.html b/skills/diagram-design/assets/example-exploded-phone-full.html
new file mode 100644
index 0000000..eb7fc09
--- /dev/null
+++ b/skills/diagram-design/assets/example-exploded-phone-full.html
@@ -0,0 +1,82 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Phone teardown · What sits under the glass</title>
+ <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
+ <style>
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
+ :root { --color-paper:#f5f5f5; --color-paper-2:#ececec; --color-ink:#2d3142; --color-muted:#4f5d75; --color-soft:#7a8399; --color-rule:rgba(45,49,66,0.12); --color-accent:#eb6c36; --color-link:#2e5aa8; --font-sans:'Geist',system-ui,sans-serif; --font-serif:'Instrument Serif',serif; --font-mono:'Geist Mono',ui-monospace,monospace; }
+ body { font-family: var(--font-sans); background: var(--color-paper); min-height: 100vh; padding: 3rem 2rem; color: var(--color-ink); }
+ .container { max-width: 1200px; margin: 0 auto; }
+ .header { margin-bottom: 2.5rem; }
+ .header-eyebrow { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.75rem; }
+ h1 { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.5rem; }
+ .subtitle { font-size: 1rem; line-height: 1.55; color: var(--color-muted); max-width: 58ch; }
+ .diagram-container { overflow-x: auto; }
+ svg { width: 100%; min-width: 1000px; display: block; }
+ @media print { .diagram-container { overflow-x: visible; } svg { min-width: 0; } }
+ .cards { display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: 1rem; margin-top: 1.5rem; }
+ @media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
+ .card { background: #fff; border-radius: 6px; border: 1px solid var(--color-rule); padding: 1.25rem; }
+ .card .eyebrow { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.5rem; }
+ .card-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.875rem; padding-bottom: 0.875rem; border-bottom: 1px solid rgba(45,49,66,0.08); }
+ .card-dot { width: 7px; height: 7px; border-radius: 50%; }
+ .card-dot.ink { background: var(--color-ink); } .card-dot.muted { background: var(--color-muted); } .card-dot.coral { background: var(--color-accent); }
+ .card h3 { font-size: 0.875rem; font-weight: 600; }
+ .card p, .card ul { color: var(--color-muted); font-size: 0.8125rem; line-height: 1.55; list-style: none; }
+ .card li { margin-bottom: 0.3rem; padding-left: 0.875rem; position: relative; }
+ .card li::before { content: '·'; position: absolute; left: 0.2rem; color: rgba(45,49,66,0.45); }
+ .footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(45,49,66,0.10); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--color-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
+ </style>
+</head>
+<body>
+ <div class="container">
+ <div class="header">
+ <p class="header-eyebrow">Exploded axonometric · Diagram Design</p>
+ <h1>Phone teardown · What sits under the glass</h1>
+ <p class="subtitle">The display comes off first. Underneath, the logic board and battery share one level inside the housing, so they lift together.</p>
+ </div>
+
+ <div class="diagram-container">
+ <svg viewBox="0 0 1000 624" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="exploded-phone-full-title exploded-phone-full-desc">
+ <title id="exploded-phone-full-title">Phone teardown · What sits under the glass</title>
+ <desc id="exploded-phone-full-desc">Exploded view of a phone: the display lifts off the housing to show the logic board and battery inside, with the logic board as the focal part.</desc>
+ <rect width="100%" height="100%" fill="#f5f5f5"/>
+ <g data-exploded data-origin="416 388" data-gap="160">
+ <line data-role="trace" x1="150.06" y1="508" x2="150.06" y2="180" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><line data-role="trace" x1="541.94" y1="438" x2="541.94" y2="110" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/>
+ <g data-part="housing" data-name="Housing" data-rect="0 0 140 280 24" data-z="0" data-t="20" data-level="0" data-kind="housing"><path data-role="silhouette" d="M 150.06 508 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 252 586 L 160 540 A 33.94 16.97 0 0 1 150.06 528 Z" fill="#ffffff"/><path d="M 300 566 A 33.94 16.97 0 0 1 252 566 L 160 520 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 532 450 Z" fill="#ffffff"/><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="#ffffff"/><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="rgba(45,49,66,0.10)"/><clipPath id="exploded-phone-full-housing-cavity"><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z"/></clipPath><g clip-path="url(#exploded-phone-full-housing-cavity)"><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="#ffffff"/><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="rgba(45,49,66,0.04)"/><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/></g><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 150.06 508 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 541.94 438" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="547.94" y1="448" x2="593.94" y2="448" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="541.94" cy="448" r="2" fill="#2d3142"/><text data-role="name" x="605.94" y="447" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Housing</text><text x="605.94" y="463" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">aluminium frame</text></g></g>
+ <g data-part="board" data-name="Logic board" data-rect="8 8 132 112 4" data-z="180" data-t="4" data-level="1" data-focal><path data-role="silhouette" d="M 314.34 264 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 432 328 L 316 270 A 5.66 2.83 0 0 1 314.34 268 Z" fill="#ffffff"/><path d="M 440 324 A 5.66 2.83 0 0 1 432 324 L 316 266 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 536 276 Z" fill="rgba(235,108,54,0.10)"/><path d="M 314.34 264 A 5.66 2.83 0 0 0 316 266 L 432 324 A 5.66 2.83 0 0 0 436 324.83 L 436 328.83 A 5.66 2.83 0 0 1 432 328 L 316 270 A 5.66 2.83 0 0 1 314.34 268 Z" fill="rgba(235,108,54,0.20)"/><path d="M 436 324.83 A 5.66 2.83 0 0 0 440 324 L 536 276 A 5.66 2.83 0 0 0 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 436 328.83 Z" fill="rgba(235,108,54,0.32)"/><path d="M 314.34 264 A 5.66 2.83 0 0 0 316 266 L 432 324 A 5.66 2.83 0 0 0 440 324 L 536 276 A 5.66 2.83 0 0 0 537.66 274" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.8"/><path d="M 314.34 264 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 432 328 L 316 270 A 5.66 2.83 0 0 1 314.34 268 Z" fill="none" stroke="#eb6c36" stroke-width="1.2" stroke-linejoin="round"/><path d="M 376.69 236 A 11.31 5.66 0 0 1 380 232 L 408 218 A 11.31 5.66 0 0 1 424 218 L 452 232 A 11.31 5.66 0 0 1 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 408 260 L 380 246 A 11.31 5.66 0 0 1 376.69 242 Z" fill="#ffffff"/><path d="M 376.69 236 A 11.31 5.66 0 0 0 380 240 L 408 254 A 11.31 5.66 0 0 0 416 255.66 L 416 261.66 A 11.31 5.66 0 0 1 408 260 L 380 246 A 11.31 5.66 0 0 1 376.69 242 Z" fill="rgba(45,49,66,0.07)"/><path d="M 416 255.66 A 11.31 5.66 0 0 0 424 254 L 452 240 A 11.31 5.66 0 0 0 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 416 261.66 Z" fill="rgba(45,49,66,0.15)"/><path d="M 376.69 236 A 11.31 5.66 0 0 0 380 240 L 408 254 A 11.31 5.66 0 0 0 424 254 L 452 240 A 11.31 5.66 0 0 0 455.31 236" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 376.69 236 A 11.31 5.66 0 0 1 380 232 L 408 218 A 11.31 5.66 0 0 1 424 218 L 452 232 A 11.31 5.66 0 0 1 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 408 260 L 380 246 A 11.31 5.66 0 0 1 376.69 242 Z" fill="none" stroke="#2d3142" stroke-width="1" stroke-linejoin="round"/><path d="M 404.69 224 A 11.31 5.66 0 0 1 408 220 L 408 220 A 11.31 5.66 0 0 1 424 220 L 424 220 A 11.31 5.66 0 0 1 427.31 224 L 427.31 227 A 11.31 5.66 0 0 1 424 231 L 424 231 A 11.31 5.66 0 0 1 408 231 L 408 231 A 11.31 5.66 0 0 1 404.69 227 Z" fill="#2d3142"/><path d="M 421 226.5 A 7.07 3.54 0 0 1 411 226.5 L 411 226.5 A 7.07 3.54 0 0 1 411 221.5 L 411 221.5 A 7.07 3.54 0 0 1 421 221.5 L 421 221.5 A 7.07 3.54 0 0 1 421 226.5 Z" fill="none" stroke="rgba(245,245,245,0.35)" stroke-width="0.8"/><path d="M 404.69 242 A 11.31 5.66 0 0 1 408 238 L 408 238 A 11.31 5.66 0 0 1 424 238 L 424 238 A 11.31 5.66 0 0 1 427.31 242 L 427.31 245 A 11.31 5.66 0 0 1 424 249 L 424 249 A 11.31 5.66 0 0 1 408 249 L 408 249 A 11.31 5.66 0 0 1 404.69 245 Z" fill="#2d3142"/><path d="M 421 244.5 A 7.07 3.54 0 0 1 411 244.5 L 411 244.5 A 7.07 3.54 0 0 1 411 239.5 L 411 239.5 A 7.07 3.54 0 0 1 421 239.5 L 421 239.5 A 7.07 3.54 0 0 1 421 244.5 Z" fill="none" stroke="rgba(245,245,245,0.35)" stroke-width="0.8"/><path d="M 428.59 267 A 1.41 0.71 0 0 1 429 266.5 L 463 249.5 A 1.41 0.71 0 0 1 465 249.5 L 499 266.5 A 1.41 0.71 0 0 1 499.41 267 L 499.41 270 A 1.41 0.71 0 0 1 499 270.5 L 465 287.5 A 1.41 0.71 0 0 1 463 287.5 L 429 270.5 A 1.41 0.71 0 0 1 428.59 270 Z" fill="#2d3142"/><path d="M 465 284.5 A 1.41 0.71 0 0 1 463 284.5 L 429 267.5 A 1.41 0.71 0 0 1 429 266.5 L 463 249.5 A 1.41 0.71 0 0 1 465 249.5 L 499 266.5 A 1.41 0.71 0 0 1 499 267.5 Z" fill="#4f5d75"/><path d="M 344.59 266 A 1.41 0.71 0 0 1 345 265.5 L 371 252.5 A 1.41 0.71 0 0 1 373 252.5 L 395 263.5 A 1.41 0.71 0 0 1 395.41 264 L 395.41 266 A 1.41 0.71 0 0 1 395 266.5 L 369 279.5 A 1.41 0.71 0 0 1 367 279.5 L 345 268.5 A 1.41 0.71 0 0 1 344.59 268 Z" fill="#2d3142"/><path d="M 369 277.5 A 1.41 0.71 0 0 1 367 277.5 L 345 266.5 A 1.41 0.71 0 0 1 345 265.5 L 371 252.5 A 1.41 0.71 0 0 1 373 252.5 L 395 263.5 A 1.41 0.71 0 0 1 395 264.5 Z" fill="#4f5d75"/><path d="M 396.59 284 A 1.41 0.71 0 0 1 397 283.5 L 415 274.5 A 1.41 0.71 0 0 1 417 274.5 L 459 295.5 A 1.41 0.71 0 0 1 459.41 296 L 459.41 298 A 1.41 0.71 0 0 1 459 298.5 L 441 307.5 A 1.41 0.71 0 0 1 439 307.5 L 397 286.5 A 1.41 0.71 0 0 1 396.59 286 Z" fill="#2d3142"/><path d="M 441 305.5 A 1.41 0.71 0 0 1 439 305.5 L 397 284.5 A 1.41 0.71 0 0 1 397 283.5 L 415 274.5 A 1.41 0.71 0 0 1 417 274.5 L 459 295.5 A 1.41 0.71 0 0 1 459 296.5 Z" fill="#4f5d75"/><g data-role="label"><line data-role="leader" x1="543.66" y1="276" x2="593.94" y2="276" stroke="rgba(235,108,54,0.60)" stroke-width="0.8"/><circle cx="537.66" cy="276" r="2" fill="#eb6c36"/><text data-role="name" x="605.94" y="275" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Logic board</text><text x="605.94" y="291" fill="#eb6c36" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">soc, cameras</text></g></g>
+ <g data-part="battery" data-name="Battery" data-rect="10 136 130 268 6" data-z="180" data-t="8" data-level="1"><path data-role="silhouette" d="M 161.51 339 A 8.49 4.24 0 0 1 164 336 L 284 276 A 8.49 4.24 0 0 1 296 276 L 404 330 A 8.49 4.24 0 0 1 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 272 404 L 164 350 A 8.49 4.24 0 0 1 161.51 347 Z" fill="#ffffff"/><path d="M 161.51 339 A 8.49 4.24 0 0 0 164 342 L 272 396 A 8.49 4.24 0 0 0 278 397.24 L 278 405.24 A 8.49 4.24 0 0 1 272 404 L 164 350 A 8.49 4.24 0 0 1 161.51 347 Z" fill="rgba(45,49,66,0.07)"/><path d="M 278 397.24 A 8.49 4.24 0 0 0 284 396 L 404 336 A 8.49 4.24 0 0 0 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 278 405.24 Z" fill="rgba(45,49,66,0.15)"/><path d="M 278 391 L 278 391 L 174 339 L 174 339 L 290 281 L 290 281 L 394 333 L 394 333 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 316 296 L 316 296 L 292 284 L 292 284 L 298 281 L 298 281 L 322 293 L 322 293 Z" fill="#4f5d75"/><path d="M 161.51 339 A 8.49 4.24 0 0 0 164 342 L 272 396 A 8.49 4.24 0 0 0 284 396 L 404 336 A 8.49 4.24 0 0 0 406.49 333" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 161.51 339 A 8.49 4.24 0 0 1 164 336 L 284 276 A 8.49 4.24 0 0 1 296 276 L 404 330 A 8.49 4.24 0 0 1 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 272 404 L 164 350 A 8.49 4.24 0 0 1 161.51 347 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="412.49" y1="337" x2="593.94" y2="337" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="406.49" cy="337" r="2" fill="#2d3142"/><text data-role="name" x="605.94" y="336" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Battery</text><text x="605.94" y="352" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">li-ion cell</text></g></g>
+ <g data-part-front="housing"><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 252 586 L 160 540 A 33.94 16.97 0 0 1 150.06 528 Z" fill="#ffffff"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 534.87 438 A 26.87 13.44 0 0 1 527 447.5 L 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 157.13 508 Z" fill="#ffffff"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 276 570.97 L 276 590.97 A 33.94 16.97 0 0 1 252 586 L 160 540 A 33.94 16.97 0 0 1 150.06 528 Z" fill="rgba(45,49,66,0.07)"/><path d="M 276 570.97 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 276 590.97 Z" fill="rgba(45,49,66,0.15)"/><polygon points="497.5,473.75 457.5,493.75 457.5,501.75 497.5,481.75" fill="#ffffff" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><polygon points="445.5,499.75 425.5,509.75 425.5,517.75 445.5,507.75" fill="#ffffff" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 157.13 508 A 26.87 13.44 0 0 0 165 517.5 L 257 563.5 A 26.87 13.44 0 0 0 295 563.5 L 527 447.5 A 26.87 13.44 0 0 0 534.87 438" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438" fill="none" stroke="#2d3142" stroke-width="1.2"/><path d="M 150.06 508 L 150.06 528 A 33.94 16.97 0 0 0 160 540 L 252 586 A 33.94 16.97 0 0 0 300 586 L 532 470 A 33.94 16.97 0 0 0 541.94 458 L 541.94 438" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/></g>
+ <g data-part="display" data-name="Display" data-rect="0 0 140 280 24" data-z="348" data-t="6" data-level="2"><path data-role="silhouette" d="M 150.06 174 A 33.94 16.97 0 0 1 160 162 L 392 46 A 33.94 16.97 0 0 1 440 46 L 532 92 A 33.94 16.97 0 0 1 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 252 238 L 160 192 A 33.94 16.97 0 0 1 150.06 180 Z" fill="#ffffff"/><path d="M 150.06 174 A 33.94 16.97 0 0 0 160 186 L 252 232 A 33.94 16.97 0 0 0 276 236.97 L 276 242.97 A 33.94 16.97 0 0 1 252 238 L 160 192 A 33.94 16.97 0 0 1 150.06 180 Z" fill="rgba(45,49,66,0.07)"/><path d="M 276 236.97 A 33.94 16.97 0 0 0 300 232 L 532 116 A 33.94 16.97 0 0 0 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 276 242.97 Z" fill="rgba(45,49,66,0.15)"/><path d="M 296 230 A 28.28 14.14 0 0 1 256 230 L 164 184 A 28.28 14.14 0 0 1 164 164 L 396 48 A 28.28 14.14 0 0 1 436 48 L 528 94 A 28.28 14.14 0 0 1 528 114 Z" fill="#2d3142"/><path d="M 485 85.5 A 7.07 3.54 0 0 1 475 85.5 L 453 74.5 A 7.07 3.54 0 0 1 453 69.5 L 453 69.5 A 7.07 3.54 0 0 1 463 69.5 L 485 80.5 A 7.07 3.54 0 0 1 485 85.5 Z" fill="#111111"/><path d="M 150.06 174 A 33.94 16.97 0 0 0 160 186 L 252 232 A 33.94 16.97 0 0 0 300 232 L 532 116 A 33.94 16.97 0 0 0 541.94 104" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 150.06 174 A 33.94 16.97 0 0 1 160 162 L 392 46 A 33.94 16.97 0 0 1 440 46 L 532 92 A 33.94 16.97 0 0 1 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 252 238 L 160 192 A 33.94 16.97 0 0 1 150.06 180 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="547.94" y1="107" x2="593.94" y2="107" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="541.94" cy="107" r="2" fill="#2d3142"/><text data-role="name" x="605.94" y="106" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Display</text><text x="605.94" y="122" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">oled, cover glass</text></g></g>
+ </g>
+ </svg>
+ </div>
+
+ <div class="cards">
+ <div class="card">
+ <p class="eyebrow">The headline</p>
+ <div class="card-header"><span class="card-dot coral"></span><h3>The board is the phone</h3></div>
+ <p>Cameras, radios and the system chip all live on one small board. Everything else holds it, powers it, or shows its output.</p>
+ </div>
+ <div class="card">
+
+ <div class="card-header"><span class="card-dot ink"></span><h3>How it was drawn</h3></div>
+ <ul><li>Rounded corners project as quarter ellipses</li><li>The housing is a tray, so its front walls paint last</li><li>Parts on one level explode together</li><li>Gap widened so the display clears the board</li></ul>
+ </div>
+ <div class="card">
+
+ <div class="card-header"><span class="card-dot muted"></span><h3>Four parts</h3></div>
+ <p>A real teardown has dozens of parts. The diagram keeps the four a reader needs and drops the screws.</p>
+ </div>
+ </div>
+
+ <div class="footer">
+ <span>phone · exploded axonometric</span>
+ <span>example · diagram design</span>
+ </div>
+ </div>
+</body>
+</html>
diff --git a/skills/diagram-design/assets/example-exploded-phone.html b/skills/diagram-design/assets/example-exploded-phone.html
new file mode 100644
index 0000000..d7d6ade
--- /dev/null
+++ b/skills/diagram-design/assets/example-exploded-phone.html
@@ -0,0 +1,83 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Phone teardown · What sits under the glass</title>
+ <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
+ <style>
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
+ :root {
+ --color-paper: #f5f5f5;
+ --color-ink: #2d3142;
+ --color-muted: #4f5d75;
+ --color-accent: #eb6c36;
+ --font-sans: 'Geist', system-ui, sans-serif;
+ --font-serif: 'Instrument Serif', serif;
+ --font-mono: 'Geist Mono', ui-monospace, monospace;
+ }
+
+ body {
+ font-family: var(--font-sans);
+ background: var(--color-paper);
+ color: var(--color-ink);
+ min-height: 100vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 3rem 2rem;
+ }
+
+ .frame { max-width: 1200px; width: 100%; }
+ .diagram-container { width: 100%; overflow-x: auto; }
+
+ .eyebrow {
+ font-family: var(--font-mono);
+ font-size: 0.66rem;
+ font-weight: 500;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ color: var(--color-muted);
+ margin-bottom: 0.5rem;
+ }
+
+ h1 {
+ font-family: var(--font-serif);
+ font-size: clamp(1.5rem, 2.4vw + 0.75rem, 2rem);
+ font-weight: 400;
+ letter-spacing: -0.02em;
+ line-height: 1.15;
+ color: var(--color-ink);
+ margin-bottom: 1.5rem;
+ }
+
+ svg { width: 100%; min-width: 1000px; display: block; }
+ @media print {
+ .diagram-container { overflow-x: visible; }
+ svg { min-width: 0; }
+ }
+ </style>
+</head>
+<body>
+ <div class="frame">
+ <p class="eyebrow">Exploded axonometric · Diagram Design</p>
+ <h1>Phone teardown · What sits under the glass</h1>
+
+ <div class="diagram-container">
+ <svg viewBox="0 0 1000 624" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="exploded-phone-title exploded-phone-desc">
+ <title id="exploded-phone-title">Phone teardown · What sits under the glass</title>
+ <desc id="exploded-phone-desc">Exploded view of a phone: the display lifts off the housing to show the logic board and battery inside, with the logic board as the focal part.</desc>
+ <rect width="100%" height="100%" fill="#f5f5f5"/>
+ <g data-exploded data-origin="416 388" data-gap="160">
+ <line data-role="trace" x1="150.06" y1="508" x2="150.06" y2="180" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><line data-role="trace" x1="541.94" y1="438" x2="541.94" y2="110" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/>
+ <g data-part="housing" data-name="Housing" data-rect="0 0 140 280 24" data-z="0" data-t="20" data-level="0" data-kind="housing"><path data-role="silhouette" d="M 150.06 508 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 252 586 L 160 540 A 33.94 16.97 0 0 1 150.06 528 Z" fill="#ffffff"/><path d="M 300 566 A 33.94 16.97 0 0 1 252 566 L 160 520 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 532 450 Z" fill="#ffffff"/><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="#ffffff"/><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="rgba(45,49,66,0.10)"/><clipPath id="exploded-phone-housing-cavity"><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z"/></clipPath><g clip-path="url(#exploded-phone-housing-cavity)"><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="#ffffff"/><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="rgba(45,49,66,0.04)"/><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/></g><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 150.06 508 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 541.94 438" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="547.94" y1="448" x2="593.94" y2="448" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="541.94" cy="448" r="2" fill="#2d3142"/><text data-role="name" x="605.94" y="447" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Housing</text><text x="605.94" y="463" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">aluminium frame</text></g></g>
+ <g data-part="board" data-name="Logic board" data-rect="8 8 132 112 4" data-z="180" data-t="4" data-level="1" data-focal><path data-role="silhouette" d="M 314.34 264 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 432 328 L 316 270 A 5.66 2.83 0 0 1 314.34 268 Z" fill="#ffffff"/><path d="M 440 324 A 5.66 2.83 0 0 1 432 324 L 316 266 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 536 276 Z" fill="rgba(235,108,54,0.10)"/><path d="M 314.34 264 A 5.66 2.83 0 0 0 316 266 L 432 324 A 5.66 2.83 0 0 0 436 324.83 L 436 328.83 A 5.66 2.83 0 0 1 432 328 L 316 270 A 5.66 2.83 0 0 1 314.34 268 Z" fill="rgba(235,108,54,0.20)"/><path d="M 436 324.83 A 5.66 2.83 0 0 0 440 324 L 536 276 A 5.66 2.83 0 0 0 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 436 328.83 Z" fill="rgba(235,108,54,0.32)"/><path d="M 314.34 264 A 5.66 2.83 0 0 0 316 266 L 432 324 A 5.66 2.83 0 0 0 440 324 L 536 276 A 5.66 2.83 0 0 0 537.66 274" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.8"/><path d="M 314.34 264 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 432 328 L 316 270 A 5.66 2.83 0 0 1 314.34 268 Z" fill="none" stroke="#eb6c36" stroke-width="1.2" stroke-linejoin="round"/><path d="M 376.69 236 A 11.31 5.66 0 0 1 380 232 L 408 218 A 11.31 5.66 0 0 1 424 218 L 452 232 A 11.31 5.66 0 0 1 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 408 260 L 380 246 A 11.31 5.66 0 0 1 376.69 242 Z" fill="#ffffff"/><path d="M 376.69 236 A 11.31 5.66 0 0 0 380 240 L 408 254 A 11.31 5.66 0 0 0 416 255.66 L 416 261.66 A 11.31 5.66 0 0 1 408 260 L 380 246 A 11.31 5.66 0 0 1 376.69 242 Z" fill="rgba(45,49,66,0.07)"/><path d="M 416 255.66 A 11.31 5.66 0 0 0 424 254 L 452 240 A 11.31 5.66 0 0 0 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 416 261.66 Z" fill="rgba(45,49,66,0.15)"/><path d="M 376.69 236 A 11.31 5.66 0 0 0 380 240 L 408 254 A 11.31 5.66 0 0 0 424 254 L 452 240 A 11.31 5.66 0 0 0 455.31 236" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 376.69 236 A 11.31 5.66 0 0 1 380 232 L 408 218 A 11.31 5.66 0 0 1 424 218 L 452 232 A 11.31 5.66 0 0 1 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 408 260 L 380 246 A 11.31 5.66 0 0 1 376.69 242 Z" fill="none" stroke="#2d3142" stroke-width="1" stroke-linejoin="round"/><path d="M 404.69 224 A 11.31 5.66 0 0 1 408 220 L 408 220 A 11.31 5.66 0 0 1 424 220 L 424 220 A 11.31 5.66 0 0 1 427.31 224 L 427.31 227 A 11.31 5.66 0 0 1 424 231 L 424 231 A 11.31 5.66 0 0 1 408 231 L 408 231 A 11.31 5.66 0 0 1 404.69 227 Z" fill="#2d3142"/><path d="M 421 226.5 A 7.07 3.54 0 0 1 411 226.5 L 411 226.5 A 7.07 3.54 0 0 1 411 221.5 L 411 221.5 A 7.07 3.54 0 0 1 421 221.5 L 421 221.5 A 7.07 3.54 0 0 1 421 226.5 Z" fill="none" stroke="rgba(245,245,245,0.35)" stroke-width="0.8"/><path d="M 404.69 242 A 11.31 5.66 0 0 1 408 238 L 408 238 A 11.31 5.66 0 0 1 424 238 L 424 238 A 11.31 5.66 0 0 1 427.31 242 L 427.31 245 A 11.31 5.66 0 0 1 424 249 L 424 249 A 11.31 5.66 0 0 1 408 249 L 408 249 A 11.31 5.66 0 0 1 404.69 245 Z" fill="#2d3142"/><path d="M 421 244.5 A 7.07 3.54 0 0 1 411 244.5 L 411 244.5 A 7.07 3.54 0 0 1 411 239.5 L 411 239.5 A 7.07 3.54 0 0 1 421 239.5 L 421 239.5 A 7.07 3.54 0 0 1 421 244.5 Z" fill="none" stroke="rgba(245,245,245,0.35)" stroke-width="0.8"/><path d="M 428.59 267 A 1.41 0.71 0 0 1 429 266.5 L 463 249.5 A 1.41 0.71 0 0 1 465 249.5 L 499 266.5 A 1.41 0.71 0 0 1 499.41 267 L 499.41 270 A 1.41 0.71 0 0 1 499 270.5 L 465 287.5 A 1.41 0.71 0 0 1 463 287.5 L 429 270.5 A 1.41 0.71 0 0 1 428.59 270 Z" fill="#2d3142"/><path d="M 465 284.5 A 1.41 0.71 0 0 1 463 284.5 L 429 267.5 A 1.41 0.71 0 0 1 429 266.5 L 463 249.5 A 1.41 0.71 0 0 1 465 249.5 L 499 266.5 A 1.41 0.71 0 0 1 499 267.5 Z" fill="#4f5d75"/><path d="M 344.59 266 A 1.41 0.71 0 0 1 345 265.5 L 371 252.5 A 1.41 0.71 0 0 1 373 252.5 L 395 263.5 A 1.41 0.71 0 0 1 395.41 264 L 395.41 266 A 1.41 0.71 0 0 1 395 266.5 L 369 279.5 A 1.41 0.71 0 0 1 367 279.5 L 345 268.5 A 1.41 0.71 0 0 1 344.59 268 Z" fill="#2d3142"/><path d="M 369 277.5 A 1.41 0.71 0 0 1 367 277.5 L 345 266.5 A 1.41 0.71 0 0 1 345 265.5 L 371 252.5 A 1.41 0.71 0 0 1 373 252.5 L 395 263.5 A 1.41 0.71 0 0 1 395 264.5 Z" fill="#4f5d75"/><path d="M 396.59 284 A 1.41 0.71 0 0 1 397 283.5 L 415 274.5 A 1.41 0.71 0 0 1 417 274.5 L 459 295.5 A 1.41 0.71 0 0 1 459.41 296 L 459.41 298 A 1.41 0.71 0 0 1 459 298.5 L 441 307.5 A 1.41 0.71 0 0 1 439 307.5 L 397 286.5 A 1.41 0.71 0 0 1 396.59 286 Z" fill="#2d3142"/><path d="M 441 305.5 A 1.41 0.71 0 0 1 439 305.5 L 397 284.5 A 1.41 0.71 0 0 1 397 283.5 L 415 274.5 A 1.41 0.71 0 0 1 417 274.5 L 459 295.5 A 1.41 0.71 0 0 1 459 296.5 Z" fill="#4f5d75"/><g data-role="label"><line data-role="leader" x1="543.66" y1="276" x2="593.94" y2="276" stroke="rgba(235,108,54,0.60)" stroke-width="0.8"/><circle cx="537.66" cy="276" r="2" fill="#eb6c36"/><text data-role="name" x="605.94" y="275" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Logic board</text><text x="605.94" y="291" fill="#eb6c36" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">soc, cameras</text></g></g>
+ <g data-part="battery" data-name="Battery" data-rect="10 136 130 268 6" data-z="180" data-t="8" data-level="1"><path data-role="silhouette" d="M 161.51 339 A 8.49 4.24 0 0 1 164 336 L 284 276 A 8.49 4.24 0 0 1 296 276 L 404 330 A 8.49 4.24 0 0 1 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 272 404 L 164 350 A 8.49 4.24 0 0 1 161.51 347 Z" fill="#ffffff"/><path d="M 161.51 339 A 8.49 4.24 0 0 0 164 342 L 272 396 A 8.49 4.24 0 0 0 278 397.24 L 278 405.24 A 8.49 4.24 0 0 1 272 404 L 164 350 A 8.49 4.24 0 0 1 161.51 347 Z" fill="rgba(45,49,66,0.07)"/><path d="M 278 397.24 A 8.49 4.24 0 0 0 284 396 L 404 336 A 8.49 4.24 0 0 0 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 278 405.24 Z" fill="rgba(45,49,66,0.15)"/><path d="M 278 391 L 278 391 L 174 339 L 174 339 L 290 281 L 290 281 L 394 333 L 394 333 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 316 296 L 316 296 L 292 284 L 292 284 L 298 281 L 298 281 L 322 293 L 322 293 Z" fill="#4f5d75"/><path d="M 161.51 339 A 8.49 4.24 0 0 0 164 342 L 272 396 A 8.49 4.24 0 0 0 284 396 L 404 336 A 8.49 4.24 0 0 0 406.49 333" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 161.51 339 A 8.49 4.24 0 0 1 164 336 L 284 276 A 8.49 4.24 0 0 1 296 276 L 404 330 A 8.49 4.24 0 0 1 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 272 404 L 164 350 A 8.49 4.24 0 0 1 161.51 347 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="412.49" y1="337" x2="593.94" y2="337" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="406.49" cy="337" r="2" fill="#2d3142"/><text data-role="name" x="605.94" y="336" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Battery</text><text x="605.94" y="352" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">li-ion cell</text></g></g>
+ <g data-part-front="housing"><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 252 586 L 160 540 A 33.94 16.97 0 0 1 150.06 528 Z" fill="#ffffff"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 534.87 438 A 26.87 13.44 0 0 1 527 447.5 L 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 157.13 508 Z" fill="#ffffff"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 276 570.97 L 276 590.97 A 33.94 16.97 0 0 1 252 586 L 160 540 A 33.94 16.97 0 0 1 150.06 528 Z" fill="rgba(45,49,66,0.07)"/><path d="M 276 570.97 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 276 590.97 Z" fill="rgba(45,49,66,0.15)"/><polygon points="497.5,473.75 457.5,493.75 457.5,501.75 497.5,481.75" fill="#ffffff" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><polygon points="445.5,499.75 425.5,509.75 425.5,517.75 445.5,507.75" fill="#ffffff" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 157.13 508 A 26.87 13.44 0 0 0 165 517.5 L 257 563.5 A 26.87 13.44 0 0 0 295 563.5 L 527 447.5 A 26.87 13.44 0 0 0 534.87 438" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438" fill="none" stroke="#2d3142" stroke-width="1.2"/><path d="M 150.06 508 L 150.06 528 A 33.94 16.97 0 0 0 160 540 L 252 586 A 33.94 16.97 0 0 0 300 586 L 532 470 A 33.94 16.97 0 0 0 541.94 458 L 541.94 438" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/></g>
+ <g data-part="display" data-name="Display" data-rect="0 0 140 280 24" data-z="348" data-t="6" data-level="2"><path data-role="silhouette" d="M 150.06 174 A 33.94 16.97 0 0 1 160 162 L 392 46 A 33.94 16.97 0 0 1 440 46 L 532 92 A 33.94 16.97 0 0 1 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 252 238 L 160 192 A 33.94 16.97 0 0 1 150.06 180 Z" fill="#ffffff"/><path d="M 150.06 174 A 33.94 16.97 0 0 0 160 186 L 252 232 A 33.94 16.97 0 0 0 276 236.97 L 276 242.97 A 33.94 16.97 0 0 1 252 238 L 160 192 A 33.94 16.97 0 0 1 150.06 180 Z" fill="rgba(45,49,66,0.07)"/><path d="M 276 236.97 A 33.94 16.97 0 0 0 300 232 L 532 116 A 33.94 16.97 0 0 0 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 276 242.97 Z" fill="rgba(45,49,66,0.15)"/><path d="M 296 230 A 28.28 14.14 0 0 1 256 230 L 164 184 A 28.28 14.14 0 0 1 164 164 L 396 48 A 28.28 14.14 0 0 1 436 48 L 528 94 A 28.28 14.14 0 0 1 528 114 Z" fill="#2d3142"/><path d="M 485 85.5 A 7.07 3.54 0 0 1 475 85.5 L 453 74.5 A 7.07 3.54 0 0 1 453 69.5 L 453 69.5 A 7.07 3.54 0 0 1 463 69.5 L 485 80.5 A 7.07 3.54 0 0 1 485 85.5 Z" fill="#111111"/><path d="M 150.06 174 A 33.94 16.97 0 0 0 160 186 L 252 232 A 33.94 16.97 0 0 0 300 232 L 532 116 A 33.94 16.97 0 0 0 541.94 104" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 150.06 174 A 33.94 16.97 0 0 1 160 162 L 392 46 A 33.94 16.97 0 0 1 440 46 L 532 92 A 33.94 16.97 0 0 1 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 252 238 L 160 192 A 33.94 16.97 0 0 1 150.06 180 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="547.94" y1="107" x2="593.94" y2="107" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="541.94" cy="107" r="2" fill="#2d3142"/><text data-role="name" x="605.94" y="106" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Display</text><text x="605.94" y="122" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">oled, cover glass</text></g></g>
+ </g>
+ </svg>
+ </div>
+ </div>
+</body>
+</html>
diff --git a/skills/diagram-design/assets/example-exploded-unboxing-animated.html b/skills/diagram-design/assets/example-exploded-unboxing-animated.html
new file mode 100644
index 0000000..0220390
--- /dev/null
+++ b/skills/diagram-design/assets/example-exploded-unboxing-animated.html
@@ -0,0 +1,437 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Unboxing · What you see, in the order you see it</title>
+ <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&family=Noto+Serif:ital@0;1&family=Noto+Sans+KR:wght@400;500;600&family=Noto+Serif+KR:wght@400&family=Noto+Sans+TC:wght@400;500;600&family=Noto+Serif+TC:wght@400&display=swap" rel="stylesheet">
+ <style>
+ *, *::before, *::after { box-sizing: border-box; }
+ :root {
+ --color-paper: #f5f5f5;
+ --color-ink: #2d3142;
+ --color-muted: #4f5d75;
+ --color-soft: #7a8399;
+ --color-accent: #eb6c36;
+ --color-rule: rgba(45,49,66,0.12);
+ --font-sans: 'Geist', system-ui, sans-serif;
+ --font-serif: 'Instrument Serif', 'Noto Serif', 'Noto Serif KR', serif;
+ --font-mono: 'Geist Mono', ui-monospace, monospace;
+ --motion-fast: 160ms;
+ --motion-step: 600ms;
+ --motion-hold: 900ms;
+ --motion-total: 3600ms;
+ --motion-ease: cubic-bezier(.2,.8,.2,1);
+ }
+ body {
+ margin: 0;
+ min-height: 100vh;
+ display: grid;
+ place-items: center;
+ padding: 48px 32px;
+ color: var(--color-ink);
+ background: var(--color-paper);
+ font-family: var(--font-sans);
+ }
+ [data-motion-root] { width: min(100%, 1000px); }
+ .eyebrow {
+ margin: 0 0 8px;
+ color: var(--color-muted);
+ font: 500 12px/1.4 var(--font-mono);
+ letter-spacing: .18em;
+ text-transform: uppercase;
+ }
+ h1 { margin: 0 0 24px; font: 400 32px/1.15 var(--font-serif); }
+ svg { display: block; width: 100%; min-width: 1000px; }
+ /* The SVG holds its readable width (min-width == the viewBox width, so the
+ type ramp is never silently scaled down). This wrapper lets a narrow
+ screen scroll the diagram instead of the whole page. body is a centred
+ grid, so the root needs max-width/min-width to stop the grid item from
+ sizing itself to the SVG's max-content width. */
+ [data-motion-root] { max-width: 100%; min-width: 0; }
+ .diagram-container { width: 100%; overflow-x: auto; }
+
+ /* Static source is complete. Only an initialized enhancement hides items. */
+ .motion-ready [data-motion-item] {
+ opacity: .12;
+ transform: translateY(8px);
+ transform-box: fill-box;
+ transform-origin: center;
+ transition: opacity var(--motion-step) var(--motion-ease),
+ transform var(--motion-step) var(--motion-ease);
+ }
+ .motion-ready [data-motion-item].is-visible,
+ .motion-ready[data-frame="end"] [data-motion-item],
+ .motion-ready[data-frame="static"] [data-motion-item] {
+ opacity: 1;
+ transform: none;
+ }
+ .draw-path {
+ fill: none;
+ stroke: var(--color-accent);
+ stroke-width: 3;
+ stroke-dasharray: 1;
+ stroke-dashoffset: 1;
+ pointer-events: none;
+ }
+ .motion-ready .draw-path.is-visible {
+ animation: draw-path var(--motion-step) linear forwards;
+ }
+ .flow-token { opacity: 0; pointer-events: none; }
+ .motion-ready.is-playing .flow-token.is-visible {
+ opacity: 1;
+ animation: token-flow 3.2s linear 1 forwards;
+ }
+ .motion-ready[data-motion-mode="loop"].is-playing .flow-token.is-visible {
+ animation-iteration-count: infinite;
+ }
+ @keyframes draw-path { to { stroke-dashoffset: 0; } }
+ @keyframes token-flow {
+ 0% { transform: translateX(0); }
+ 100% { transform: translateX(240px); }
+ }
+
+ [data-motion-controls] {
+ display: none;
+ align-items: center;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-top: 16px;
+ padding-top: 16px;
+ border-top: 1px solid var(--color-rule);
+ }
+ .motion-ready [data-motion-controls] { display: flex; }
+ [data-motion-controls][hidden] { display: none !important; }
+ [data-motion-controls] button {
+ min-width: 44px;
+ min-height: 44px;
+ padding: 8px 12px;
+ border: 1px solid var(--color-muted);
+ border-radius: 4px;
+ color: var(--color-ink);
+ background: var(--color-paper);
+ font: 600 12px/1 var(--font-sans);
+ cursor: pointer;
+ }
+ [data-motion-controls] button:hover { border-color: var(--color-accent); }
+ [data-motion-controls] button:focus-visible {
+ outline: 3px solid var(--color-accent);
+ outline-offset: 2px;
+ }
+ [data-motion-controls] button:disabled { cursor: not-allowed; opacity: .45; }
+ [data-motion-status-visible] {
+ margin-left: auto;
+ color: var(--color-muted);
+ font: 500 12px/1.4 var(--font-mono);
+ }
+ .sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0,0,0,0);
+ white-space: nowrap;
+ border: 0;
+ }
+ noscript p {
+ margin: 12px 0 0;
+ color: var(--color-muted);
+ font: 500 12px/1.4 var(--font-mono);
+ }
+
+ html[data-motion="static"] [data-motion-controls],
+ html[data-motion="static"] [data-motion-decorative] { display: none !important; }
+ html[data-motion="static"] [data-motion-item] {
+ opacity: 1 !important;
+ transform: none !important;
+ animation: none !important;
+ transition: none !important;
+ }
+ html[data-motion="step"] [data-motion-controls],
+ html[data-motion="step"] [data-motion-decorative] { display: none !important; }
+ html[data-motion="step"] [data-motion-item] {
+ animation: none !important;
+ transition: none !important;
+ }
+ @media (prefers-reduced-motion: reduce) {
+ *, *::before, *::after {
+ animation-duration: .001ms !important;
+ animation-iteration-count: 1 !important;
+ scroll-behavior: auto !important;
+ transition-duration: .001ms !important;
+ }
+ [data-motion-item] { opacity: 1 !important; transform: none !important; }
+ [data-motion-decorative] { display: none !important; }
+ [data-motion-controls] { display: none !important; }
+ }
+ @media print {
+ /* Paper has no scrollbar, so the local scroller would clip instead of
+ scroll. Let the diagram scale down to the sheet: smaller but whole
+ beats sharp but cut off. */
+ .diagram-container { overflow-x: visible; }
+ svg { min-width: 0; }
+ [data-motion-controls], [data-motion-decorative] { display: none !important; }
+ [data-motion-item] {
+ opacity: 1 !important;
+ transform: none !important;
+ animation: none !important;
+ transition: none !important;
+ }
+ }
+
+ /* Static source is the exploded frame. Only an initialized enhancement assembles it.
+ Parts travel straight up, so a vertical translate is the whole explode. */
+ .motion-ready [data-motion-item][data-part] { opacity: 1; transform: translateY(var(--lift)); }
+ .motion-ready:not([data-frame="start"]) [data-motion-item][data-part] { transition: transform var(--motion-step) var(--motion-ease); }
+ .motion-ready [data-motion-item][data-part].is-visible,
+ .motion-ready[data-frame="end"] [data-motion-item][data-part],
+ .motion-ready[data-frame="static"] [data-motion-item][data-part] { transform: none; }
+ .motion-ready [data-part] .part-label { opacity: 0; transition: none; }
+ .motion-ready [data-part].is-visible .part-label { opacity: 1; transition: opacity var(--motion-fast) linear var(--motion-step); }
+ .motion-ready[data-frame="end"] .part-label,
+ .motion-ready[data-frame="static"] .part-label { opacity: 1; }
+ .motion-ready [data-motion-item][data-reveal] { opacity: 0; transform: none; transition: none; }
+ .motion-ready [data-motion-item][data-reveal].is-visible { opacity: 1; transition: opacity var(--motion-step) var(--motion-ease); }
+ .motion-ready[data-frame="end"] [data-motion-item][data-reveal],
+ .motion-ready[data-frame="static"] [data-motion-item][data-reveal] { opacity: 1; }
+ html[data-motion="static"] .part-label { opacity: 1 !important; }
+ html[data-motion="step"] .part-label { transition: none !important; }
+ @media (prefers-reduced-motion: reduce) { .part-label { opacity: 1 !important; } }
+ @media print { .part-label { opacity: 1 !important; } }
+ </style>
+</head>
+<body>
+ <main data-motion-root data-motion-mode="reveal" data-step-count="4" data-step-current="4" data-frame="static" data-static-frame="complete">
+ <p class="eyebrow">Exploded axonometric · Optional motion</p>
+ <h1>Unboxing · What you see, in the order you see it</h1>
+
+ <div class="diagram-container">
+ <svg viewBox="0 0 1000 964" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="exploded-unboxing-animated-title exploded-unboxing-animated-desc">
+ <title id="exploded-unboxing-animated-title">Unboxing · What you see, in the order you see it</title>
+ <desc id="exploded-unboxing-animated-desc">Exploded view of product packaging: printed lid, the speaker and its cable, the moulded insert that holds them, and the rigid box, with the speaker as the focal part.</desc>
+ <rect width="100%" height="100%" fill="#f5f5f5"/>
+ <g data-exploded data-origin="348 752" data-gap="180">
+ <g data-part="box" data-name="Box" data-rect="0 0 180 180 4" data-z="0" data-t="72" data-level="0" data-kind="housing" data-closed-z="0"><path data-role="silhouette" d="M 170.34 770 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 344 930 L 172 844 A 5.66 2.83 0 0 1 170.34 842 Z" fill="#ffffff"/><path d="M 352 858 A 5.66 2.83 0 0 1 344 858 L 172 772 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 524 772 Z" fill="#ffffff"/><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="#ffffff"/><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="rgba(45,49,66,0.10)"/><clipPath id="exploded-unboxing-animated-box-cavity"><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z"/></clipPath><g clip-path="url(#exploded-unboxing-animated-box-cavity)"><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="#ffffff"/><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="rgba(45,49,66,0.04)"/><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/></g><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 170.34 770 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 525.66 770" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/></g>
+ <g data-motion-item data-step="4" data-reveal aria-label="Box stays put; trace lines show where each part sat"><line data-role="trace" x1="170.34" y1="770" x2="170.34" y2="158" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><line data-role="trace" x1="525.66" y1="770" x2="525.66" y2="158" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><g data-role="label"><line data-role="leader" x1="531.66" y1="806" x2="582.49" y2="806" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="525.66" cy="806" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="805" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Box</text><text x="594.49" y="821" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">rigid board</text></g></g>
+ <g data-part="insert" data-name="Insert" data-rect="6 6 174 174 2" data-z="252" data-t="12" data-level="1" data-closed-z="3" data-motion-item data-step="3" style="--lift:249px" aria-label="Insert lifts clear"><path data-role="silhouette" d="M 181.17 578 A 2.83 1.41 0 0 1 182 577 L 346 495 A 2.83 1.41 0 0 1 350 495 L 514 577 A 2.83 1.41 0 0 1 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 346 673 L 182 591 A 2.83 1.41 0 0 1 181.17 590 Z" fill="#ffffff"/><path d="M 181.17 578 A 2.83 1.41 0 0 0 182 579 L 346 661 A 2.83 1.41 0 0 0 348 661.41 L 348 673.41 A 2.83 1.41 0 0 1 346 673 L 182 591 A 2.83 1.41 0 0 1 181.17 590 Z" fill="rgba(45,49,66,0.07)"/><path d="M 348 661.41 A 2.83 1.41 0 0 0 350 661 L 514 579 A 2.83 1.41 0 0 0 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 348 673.41 Z" fill="rgba(45,49,66,0.15)"/><path d="M 382 603 A 70.71 35.36 0 0 1 282 603 L 282 603 A 70.71 35.36 0 0 1 282 553 L 282 553 A 70.71 35.36 0 0 1 382 553 L 382 553 A 70.71 35.36 0 0 1 382 603 Z" fill="rgba(45,49,66,0.14)" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 451 609.5 A 7.07 3.54 0 0 1 441 609.5 L 413 595.5 A 7.07 3.54 0 0 1 413 590.5 L 441 576.5 A 7.07 3.54 0 0 1 451 576.5 L 479 590.5 A 7.07 3.54 0 0 1 479 595.5 Z" fill="rgba(45,49,66,0.14)" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 181.17 578 A 2.83 1.41 0 0 0 182 579 L 346 661 A 2.83 1.41 0 0 0 350 661 L 514 579 A 2.83 1.41 0 0 0 514.83 578" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 181.17 578 A 2.83 1.41 0 0 1 182 577 L 346 495 A 2.83 1.41 0 0 1 350 495 L 514 577 A 2.83 1.41 0 0 1 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 346 673 L 182 591 A 2.83 1.41 0 0 1 181.17 590 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label" class="part-label"><line data-role="leader" x1="520.83" y1="584" x2="582.49" y2="584" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="514.83" cy="584" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="583" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Insert</text><text x="594.49" y="599" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">moulded pulp</text></g></g>
+ <g data-part="cable" data-name="Cable" data-rect="138 40 170 72 4" data-z="444" data-t="14" data-level="2" data-closed-z="9" data-motion-item data-step="2" style="--lift:435px" aria-label="Cable lifts clear"><path data-role="silhouette" d="M 416.34 399 A 5.66 2.83 0 0 1 418 397 L 442 385 A 5.66 2.83 0 0 1 450 385 L 474 397 A 5.66 2.83 0 0 1 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 442 427 L 418 415 A 5.66 2.83 0 0 1 416.34 413 Z" fill="#ffffff"/><path d="M 416.34 399 A 5.66 2.83 0 0 0 418 401 L 442 413 A 5.66 2.83 0 0 0 446 413.83 L 446 427.83 A 5.66 2.83 0 0 1 442 427 L 418 415 A 5.66 2.83 0 0 1 416.34 413 Z" fill="rgba(45,49,66,0.07)"/><path d="M 446 413.83 A 5.66 2.83 0 0 0 450 413 L 474 401 A 5.66 2.83 0 0 0 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 446 427.83 Z" fill="rgba(45,49,66,0.15)"/><path d="M 450 407 A 5.66 2.83 0 0 1 442 407 L 430 401 A 5.66 2.83 0 0 1 430 397 L 442 391 A 5.66 2.83 0 0 1 450 391 L 462 397 A 5.66 2.83 0 0 1 462 401 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 450 402 A 5.66 2.83 0 0 1 442 402 L 440 401 A 5.66 2.83 0 0 1 440 397 L 442 396 A 5.66 2.83 0 0 1 450 396 L 452 397 A 5.66 2.83 0 0 1 452 401 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 416.34 399 A 5.66 2.83 0 0 0 418 401 L 442 413 A 5.66 2.83 0 0 0 450 413 L 474 401 A 5.66 2.83 0 0 0 475.66 399" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 416.34 399 A 5.66 2.83 0 0 1 418 397 L 442 385 A 5.66 2.83 0 0 1 450 385 L 474 397 A 5.66 2.83 0 0 1 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 442 427 L 418 415 A 5.66 2.83 0 0 1 416.34 413 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label" class="part-label"><line data-role="leader" x1="481.66" y1="406" x2="582.49" y2="406" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="475.66" cy="406" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="405" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Cable</text><text x="594.49" y="421" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">usb-c, 1 m</text></g></g>
+ <g data-part="speaker" data-name="Speaker" data-rect="36 52 128 144 46" data-z="444" data-t="60" data-level="2" data-focal data-closed-z="9" data-motion-item data-step="2" style="--lift:435px" aria-label="Speaker lifts clear"><path data-role="silhouette" d="M 266.95 338 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 286 421 L 286 421 A 65.05 32.53 0 0 1 266.95 398 Z" fill="#ffffff"/><path d="M 378 361 A 65.05 32.53 0 0 1 286 361 L 286 361 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 378 361 Z" fill="rgba(235,108,54,0.10)"/><path d="M 266.95 338 A 65.05 32.53 0 0 0 286 361 L 286 361 A 65.05 32.53 0 0 0 332 370.53 L 332 430.53 A 65.05 32.53 0 0 1 286 421 L 286 421 A 65.05 32.53 0 0 1 266.95 398 Z" fill="rgba(235,108,54,0.20)"/><path d="M 332 370.53 A 65.05 32.53 0 0 0 378 361 L 378 361 A 65.05 32.53 0 0 0 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 332 430.53 Z" fill="rgba(235,108,54,0.32)"/><path d="M 266.95 388 A 65.05 32.53 0 0 0 286 411 L 286 411 A 65.05 32.53 0 0 0 378 411 L 378 411 A 65.05 32.53 0 0 0 397.05 388" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 266.95 380 A 65.05 32.53 0 0 0 286 403 L 286 403 A 65.05 32.53 0 0 0 378 403 L 378 403 A 65.05 32.53 0 0 0 397.05 380" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 266.95 372 A 65.05 32.53 0 0 0 286 395 L 286 395 A 65.05 32.53 0 0 0 378 395 L 378 395 A 65.05 32.53 0 0 0 397.05 372" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 266.95 364 A 65.05 32.53 0 0 0 286 387 L 286 387 A 65.05 32.53 0 0 0 378 387 L 378 387 A 65.05 32.53 0 0 0 397.05 364" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 266.95 356 A 65.05 32.53 0 0 0 286 379 L 286 379 A 65.05 32.53 0 0 0 378 379 L 378 379 A 65.05 32.53 0 0 0 397.05 356" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 368 356 A 50.91 25.46 0 0 1 296 356 L 296 356 A 50.91 25.46 0 0 1 296 320 L 296 320 A 50.91 25.46 0 0 1 368 320 L 368 320 A 50.91 25.46 0 0 1 368 356 Z" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.8"/><path d="M 342 343 A 14.14 7.07 0 0 1 322 343 L 322 343 A 14.14 7.07 0 0 1 322 333 L 322 333 A 14.14 7.07 0 0 1 342 333 L 342 333 A 14.14 7.07 0 0 1 342 343 Z" fill="#eb6c36"/><path d="M 266.95 338 A 65.05 32.53 0 0 0 286 361 L 286 361 A 65.05 32.53 0 0 0 378 361 L 378 361 A 65.05 32.53 0 0 0 397.05 338" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.8"/><path d="M 266.95 338 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 286 421 L 286 421 A 65.05 32.53 0 0 1 266.95 398 Z" fill="none" stroke="#eb6c36" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label" class="part-label"><line data-role="leader" x1="403.05" y1="368" x2="582.49" y2="368" stroke="rgba(235,108,54,0.60)" stroke-width="0.8"/><circle cx="397.05" cy="368" r="2" fill="#eb6c36"/><text data-role="name" x="594.49" y="367" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Speaker</text><text x="594.49" y="383" fill="#eb6c36" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">the product</text></g></g>
+ <g data-part-front="box"><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 344 930 L 172 844 A 5.66 2.83 0 0 1 170.34 842 Z" fill="#ffffff"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 518 770 L 518 770 L 348 855 L 348 855 L 178 770 L 178 770 Z" fill="#ffffff"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 348 858.83 L 348 930.83 A 5.66 2.83 0 0 1 344 930 L 172 844 A 5.66 2.83 0 0 1 170.34 842 Z" fill="rgba(45,49,66,0.07)"/><path d="M 348 858.83 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 348 930.83 Z" fill="rgba(45,49,66,0.15)"/><path d="M 178 770 L 178 770 L 348 855 L 348 855 L 518 770 L 518 770" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770" fill="none" stroke="#2d3142" stroke-width="1.2"/><path d="M 170.34 770 L 170.34 842 A 5.66 2.83 0 0 0 172 844 L 344 930 A 5.66 2.83 0 0 0 352 930 L 524 844 A 5.66 2.83 0 0 0 525.66 842 L 525.66 770" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/></g>
+ <g data-part="lid" data-name="Lid" data-rect="-3 -3 183 183 6" data-z="684" data-t="28" data-level="3" data-closed-z="48" data-motion-item data-step="1" style="--lift:636px" aria-label="Lid lifts clear"><path data-role="silhouette" d="M 165.51 130 A 8.49 4.24 0 0 1 168 127 L 342 40 A 8.49 4.24 0 0 1 354 40 L 528 127 A 8.49 4.24 0 0 1 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 342 248 L 168 161 A 8.49 4.24 0 0 1 165.51 158 Z" fill="#ffffff"/><path d="M 165.51 130 A 8.49 4.24 0 0 0 168 133 L 342 220 A 8.49 4.24 0 0 0 348 221.24 L 348 249.24 A 8.49 4.24 0 0 1 342 248 L 168 161 A 8.49 4.24 0 0 1 165.51 158 Z" fill="rgba(45,49,66,0.07)"/><path d="M 348 221.24 A 8.49 4.24 0 0 0 354 220 L 528 133 A 8.49 4.24 0 0 0 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 348 249.24 Z" fill="rgba(45,49,66,0.15)"/><path d="M 348 209 L 348 209 L 190 130 L 190 130 L 348 51 L 348 51 L 506 130 L 506 130 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 362 137 A 19.8 9.9 0 0 1 334 137 L 334 137 A 19.8 9.9 0 0 1 334 123 L 334 123 A 19.8 9.9 0 0 1 362 123 L 362 123 A 19.8 9.9 0 0 1 362 137 Z" fill="none" stroke="#2d3142" stroke-width="1.2"/><path d="M 353 132.5 A 7.07 3.54 0 0 1 343 132.5 L 343 132.5 A 7.07 3.54 0 0 1 343 127.5 L 343 127.5 A 7.07 3.54 0 0 1 353 127.5 L 353 127.5 A 7.07 3.54 0 0 1 353 132.5 Z" fill="#2d3142"/><path d="M 165.51 130 A 8.49 4.24 0 0 0 168 133 L 342 220 A 8.49 4.24 0 0 0 354 220 L 528 133 A 8.49 4.24 0 0 0 530.49 130" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 165.51 130 A 8.49 4.24 0 0 1 168 127 L 342 40 A 8.49 4.24 0 0 1 354 40 L 528 127 A 8.49 4.24 0 0 1 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 342 248 L 168 161 A 8.49 4.24 0 0 1 165.51 158 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label" class="part-label"><line data-role="leader" x1="536.49" y1="144" x2="582.49" y2="144" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="530.49" cy="144" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="143" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Lid</text><text x="594.49" y="159" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">printed sleeve</text></g></g>
+ </g>
+ </svg>
+ </div>
+
+ <div data-motion-controls role="group" aria-label="Diagram playback controls">
+ <button type="button" data-motion-action="prev">Previous</button>
+ <button type="button" data-motion-action="play" aria-pressed="false">Play</button>
+ <button type="button" data-motion-action="pause" aria-pressed="true">Pause</button>
+ <button type="button" data-motion-action="next">Next</button>
+ <button type="button" data-motion-action="replay">Replay</button>
+ <span class="keyboard-help">←/→ step · Space play/pause · R replay · Home/End jump</span>
+ <span data-motion-status-visible aria-hidden="true">Step <span data-motion-step-label>4</span> of 4</span>
+ </div>
+ <p class="sr-only" data-motion-status role="status" aria-live="polite" aria-atomic="true"></p>
+ <noscript><p>Animation controls require JavaScript. The complete exploded diagram is shown above.</p></noscript>
+ </main>
+
+ <script data-diagram-controls>
+ (() => {
+ const params = new URLSearchParams(location.search);
+ const staticOverride = params.get('motion') === 'static' || document.documentElement.dataset.motion === 'static';
+ const requestedStep = params.get('step');
+ const reduce = matchMedia('(prefers-reduced-motion: reduce)');
+ document.fonts.ready.then(() => { document.documentElement.dataset.fontsReady = 'true'; });
+
+ document.querySelectorAll('[data-motion-root]').forEach((root) => {
+ const count = Number(root.dataset.stepCount);
+ const hold = parseFloat(getComputedStyle(root).getPropertyValue('--motion-hold')) || 720;
+ const parsedStep = requestedStep !== null && /^\d+$/.test(requestedStep) ? Number(requestedStep) : null;
+ const exactStep = params.get('motion') === 'step' && Number.isSafeInteger(parsedStep) && parsedStep >= 0 && parsedStep <= count ? parsedStep : null;
+ const items = [...root.querySelectorAll('[data-motion-item]')];
+ const labels = Array.from({ length: count + 1 }, (_, index) => index === 0
+ ? 'Ready'
+ : items.filter((item) => !item.hasAttribute('data-motion-decorative') && Number(item.dataset.step) === index)
+ .map((item) => item.getAttribute('aria-label')).join('; '));
+ const controls = root.querySelector('[data-motion-controls]');
+ const status = root.querySelector('[data-motion-status]');
+ const visibleStep = root.querySelector('[data-motion-step-label]');
+ let step = count;
+ let timer = 0;
+ let playing = false;
+ let stepBeforeReduce = 0;
+ let resumeAfterReduce = root.dataset.motionMode === 'reveal';
+
+ const buttons = (action) => controls.querySelector(`[data-motion-action="${action}"]`);
+ const clearClock = () => { window.clearTimeout(timer); timer = 0; };
+ const announce = () => { status.textContent = `Step ${step} of ${count}: ${labels[step] || 'Complete'}`; };
+ const setControlsAvailable = (available) => {
+ controls.hidden = !available;
+ controls.setAttribute('aria-hidden', String(!available));
+ controls.dataset.playbackDisabled = String(!available);
+ controls.querySelectorAll('button').forEach((control) => { control.disabled = !available; });
+ };
+
+ function render(next, userInitiated = false) {
+ step = Math.max(0, Math.min(count, next));
+ root.dataset.stepCurrent = String(step);
+ root.dataset.frame = step === count ? 'end' : step === 0 ? 'start' : 'step';
+ items.forEach((item) => {
+ const itemStep = Number(item.dataset.step);
+ item.classList.toggle('is-visible', itemStep <= step);
+ item.classList.toggle('is-current', itemStep === step);
+ });
+ if (visibleStep) visibleStep.textContent = String(step);
+ const unavailable = controls.dataset.playbackDisabled === 'true';
+ buttons('prev').disabled = unavailable || step === 0;
+ buttons('next').disabled = unavailable || step === count;
+ if (userInitiated) announce();
+ }
+
+ function pause(userInitiated = false) {
+ clearClock();
+ playing = false;
+ root.classList.remove('is-playing');
+ buttons('play').setAttribute('aria-pressed', 'false');
+ buttons('pause').setAttribute('aria-pressed', 'true');
+ if (userInitiated) status.textContent = `Paused at step ${step} of ${count}`;
+ }
+
+ function finish() {
+ pause(false);
+ root.dataset.frame = 'end';
+ status.textContent = `Complete · step ${count} of ${count}`;
+ }
+
+ function tick() {
+ if (!playing) return;
+ if (step >= count) { finish(); return; }
+ render(step + 1, false);
+ if (step >= count) { finish(); return; }
+ timer = window.setTimeout(tick, hold);
+ }
+
+ function play(fromStart = false, userInitiated = false) {
+ clearClock();
+ if (fromStart || step >= count) render(0, userInitiated);
+ playing = true;
+ root.classList.add('is-playing');
+ buttons('play').setAttribute('aria-pressed', 'true');
+ buttons('pause').setAttribute('aria-pressed', 'false');
+ timer = window.setTimeout(tick, hold);
+ }
+
+ controls.addEventListener('click', (event) => {
+ const button = event.target.closest('[data-motion-action]');
+ if (!button) return;
+ const action = button.dataset.motionAction;
+ if (action === 'play') play(false, true);
+ if (action === 'pause') pause(true);
+ if (action === 'replay') play(true, true);
+ if (action === 'prev') { pause(false); render(step - 1, true); }
+ if (action === 'next') { pause(false); render(step + 1, true); }
+ });
+
+ root.addEventListener('keydown', (event) => {
+ if (event.target.matches('input, textarea, select, a[href]')) return;
+ const keys = { ArrowLeft: step - 1, ArrowRight: step + 1, Home: 0, End: count };
+ if (event.code === 'Space' && !event.target.closest('button')) {
+ event.preventDefault();
+ playing ? pause(true) : play(false, true);
+ return;
+ }
+ if (!event.ctrlKey && !event.metaKey && !event.altKey && event.key.toLowerCase() === 'r') {
+ event.preventDefault();
+ play(true, true);
+ return;
+ }
+ if (!(event.key in keys)) return;
+ event.preventDefault();
+ pause(false);
+ render(keys[event.key], true);
+ });
+
+ document.addEventListener('visibilitychange', () => {
+ if (document.visibilityState === 'hidden' && playing) pause(false);
+ });
+ reduce.addEventListener('change', (event) => {
+ if (event.matches && root.dataset.motionState !== 'reduced') {
+ stepBeforeReduce = step;
+ resumeAfterReduce = playing;
+ }
+ pause(false);
+ if (event.matches) {
+ setControlsAvailable(false);
+ render(count, false);
+ root.dataset.frame = 'static';
+ root.dataset.motionState = 'reduced';
+ status.textContent = 'Reduced motion · complete static frame · playback controls unavailable';
+ } else if (staticOverride || root.dataset.motionMode === 'none') {
+ setControlsAvailable(false);
+ render(count, false);
+ root.dataset.frame = 'static';
+ root.dataset.motionState = 'static';
+ status.textContent = 'Static frame · complete diagram · playback controls unavailable';
+ } else {
+ delete root.dataset.motionState;
+ if (exactStep !== null) {
+ setControlsAvailable(false);
+ render(exactStep, false);
+ root.dataset.frame = 'step';
+ root.dataset.motionState = 'test';
+ status.textContent = `Test frame · step ${step} of ${count} · playback controls unavailable`;
+ } else {
+ setControlsAvailable(true);
+ render(stepBeforeReduce, false);
+ status.textContent = `Ready · step ${step} of ${count}`;
+ if (resumeAfterReduce && root.dataset.motionMode === 'reveal') {
+ play(false, false);
+ }
+ }
+ resumeAfterReduce = false;
+ }
+ });
+
+ if (staticOverride) {
+ document.documentElement.dataset.motion = 'static';
+ pause(false);
+ setControlsAvailable(false);
+ render(count, false);
+ root.dataset.frame = 'static';
+ root.dataset.motionState = 'static';
+ status.textContent = 'Static frame · complete diagram · playback controls unavailable';
+ } else if (reduce.matches || root.dataset.motionMode === 'none') {
+ pause(false);
+ setControlsAvailable(false);
+ render(count, false);
+ root.dataset.frame = 'static';
+ root.dataset.motionState = reduce.matches ? 'reduced' : 'static';
+ status.textContent = reduce.matches
+ ? 'Reduced motion · complete static frame · playback controls unavailable'
+ : 'Static frame · complete diagram · playback controls unavailable';
+ } else if (exactStep !== null) {
+ document.documentElement.dataset.motion = 'step';
+ pause(false);
+ setControlsAvailable(false);
+ render(exactStep, false);
+ root.dataset.frame = 'step';
+ root.dataset.motionState = 'test';
+ status.textContent = `Test frame · step ${step} of ${count} · playback controls unavailable`;
+ } else if (root.dataset.motionMode === 'reveal') {
+ setControlsAvailable(true);
+ render(0, false);
+ play(false, false);
+ } else {
+ pause(false);
+ setControlsAvailable(true);
+ render(0, false);
+ status.textContent = `Ready · step 0 of ${count}`;
+ }
+ root.classList.add('motion-ready');
+ });
+ })();
+ </script>
+</body>
+</html>
diff --git a/skills/diagram-design/assets/example-exploded-unboxing-dark.html b/skills/diagram-design/assets/example-exploded-unboxing-dark.html
new file mode 100644
index 0000000..b66cac1
--- /dev/null
+++ b/skills/diagram-design/assets/example-exploded-unboxing-dark.html
@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Unboxing · What you see, in the order you see it</title>
+ <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
+ <style>
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
+ :root {
+ --color-paper: #2d3142;
+ --color-ink: #f5f5f5;
+ --color-muted: #bfc0c0;
+ --color-accent: #f08a59;
+ --font-sans: 'Geist', system-ui, sans-serif;
+ --font-serif: 'Instrument Serif', serif;
+ --font-mono: 'Geist Mono', ui-monospace, monospace;
+ }
+
+ body {
+ font-family: var(--font-sans);
+ background: var(--color-paper);
+ color: var(--color-ink);
+ min-height: 100vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 3rem 2rem;
+ }
+
+ .frame { max-width: 1200px; width: 100%; }
+ .diagram-container { width: 100%; overflow-x: auto; }
+
+ .eyebrow {
+ font-family: var(--font-mono);
+ font-size: 0.66rem;
+ font-weight: 500;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ color: var(--color-muted);
+ margin-bottom: 0.5rem;
+ }
+
+ h1 {
+ font-family: var(--font-serif);
+ font-size: clamp(1.5rem, 2.4vw + 0.75rem, 2rem);
+ font-weight: 400;
+ letter-spacing: -0.02em;
+ line-height: 1.15;
+ color: var(--color-ink);
+ margin-bottom: 1.5rem;
+ }
+
+ svg { width: 100%; min-width: 1000px; display: block; }
+ @media print {
+ .diagram-container { overflow-x: visible; }
+ svg { min-width: 0; }
+ }
+ </style>
+</head>
+<body>
+ <div class="frame">
+ <p class="eyebrow">Exploded axonometric · Diagram Design</p>
+ <h1>Unboxing · What you see, in the order you see it</h1>
+
+ <div class="diagram-container">
+ <svg viewBox="0 0 1000 964" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="exploded-unboxing-dark-title exploded-unboxing-dark-desc">
+ <title id="exploded-unboxing-dark-title">Unboxing · What you see, in the order you see it</title>
+ <desc id="exploded-unboxing-dark-desc">Exploded view of product packaging: printed lid, the speaker and its cable, the moulded insert that holds them, and the rigid box, with the speaker as the focal part.</desc>
+ <rect width="100%" height="100%" fill="#2d3142"/>
+ <g data-exploded data-origin="348 752" data-gap="180">
+ <line data-role="trace" x1="170.34" y1="770" x2="170.34" y2="158" stroke="rgba(245,245,245,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><line data-role="trace" x1="525.66" y1="770" x2="525.66" y2="158" stroke="rgba(245,245,245,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/>
+ <g data-part="box" data-name="Box" data-rect="0 0 180 180 4" data-z="0" data-t="72" data-level="0" data-kind="housing"><path data-role="silhouette" d="M 170.34 770 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 344 930 L 172 844 A 5.66 2.83 0 0 1 170.34 842 Z" fill="#393e53"/><path d="M 352 858 A 5.66 2.83 0 0 1 344 858 L 172 772 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 524 772 Z" fill="#393e53"/><path d="M 352 858 A 5.66 2.83 0 0 1 344 858 L 172 772 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 524 772 Z" fill="rgba(245,245,245,0.10)"/><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="#393e53"/><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="rgba(45,49,66,0.55)"/><clipPath id="exploded-unboxing-dark-box-cavity"><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z"/></clipPath><g clip-path="url(#exploded-unboxing-dark-box-cavity)"><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="#393e53"/><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="rgba(45,49,66,0.25)"/><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/></g><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 170.34 770 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 525.66 770" fill="none" stroke="#f5f5f5" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="531.66" y1="806" x2="582.49" y2="806" stroke="rgba(245,245,245,0.40)" stroke-width="0.8"/><circle cx="525.66" cy="806" r="2" fill="#f5f5f5"/><text data-role="name" x="594.49" y="805" fill="#f5f5f5" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Box</text><text x="594.49" y="821" fill="#bfc0c0" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">rigid board</text></g></g>
+ <g data-part="insert" data-name="Insert" data-rect="6 6 174 174 2" data-z="252" data-t="12" data-level="1"><path data-role="silhouette" d="M 181.17 578 A 2.83 1.41 0 0 1 182 577 L 346 495 A 2.83 1.41 0 0 1 350 495 L 514 577 A 2.83 1.41 0 0 1 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 346 673 L 182 591 A 2.83 1.41 0 0 1 181.17 590 Z" fill="#393e53"/><path d="M 350 661 A 2.83 1.41 0 0 1 346 661 L 182 579 A 2.83 1.41 0 0 1 182 577 L 346 495 A 2.83 1.41 0 0 1 350 495 L 514 577 A 2.83 1.41 0 0 1 514 579 Z" fill="rgba(245,245,245,0.10)"/><path d="M 348 661.41 A 2.83 1.41 0 0 0 350 661 L 514 579 A 2.83 1.41 0 0 0 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 348 673.41 Z" fill="rgba(45,49,66,0.45)"/><path d="M 382 603 A 70.71 35.36 0 0 1 282 603 L 282 603 A 70.71 35.36 0 0 1 282 553 L 282 553 A 70.71 35.36 0 0 1 382 553 L 382 553 A 70.71 35.36 0 0 1 382 603 Z" fill="rgba(45,49,66,0.40)" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 451 609.5 A 7.07 3.54 0 0 1 441 609.5 L 413 595.5 A 7.07 3.54 0 0 1 413 590.5 L 441 576.5 A 7.07 3.54 0 0 1 451 576.5 L 479 590.5 A 7.07 3.54 0 0 1 479 595.5 Z" fill="rgba(45,49,66,0.40)" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 181.17 578 A 2.83 1.41 0 0 0 182 579 L 346 661 A 2.83 1.41 0 0 0 350 661 L 514 579 A 2.83 1.41 0 0 0 514.83 578" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 181.17 578 A 2.83 1.41 0 0 1 182 577 L 346 495 A 2.83 1.41 0 0 1 350 495 L 514 577 A 2.83 1.41 0 0 1 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 346 673 L 182 591 A 2.83 1.41 0 0 1 181.17 590 Z" fill="none" stroke="#f5f5f5" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="520.83" y1="584" x2="582.49" y2="584" stroke="rgba(245,245,245,0.40)" stroke-width="0.8"/><circle cx="514.83" cy="584" r="2" fill="#f5f5f5"/><text data-role="name" x="594.49" y="583" fill="#f5f5f5" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Insert</text><text x="594.49" y="599" fill="#bfc0c0" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">moulded pulp</text></g></g>
+ <g data-part="cable" data-name="Cable" data-rect="138 40 170 72 4" data-z="444" data-t="14" data-level="2"><path data-role="silhouette" d="M 416.34 399 A 5.66 2.83 0 0 1 418 397 L 442 385 A 5.66 2.83 0 0 1 450 385 L 474 397 A 5.66 2.83 0 0 1 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 442 427 L 418 415 A 5.66 2.83 0 0 1 416.34 413 Z" fill="#393e53"/><path d="M 450 413 A 5.66 2.83 0 0 1 442 413 L 418 401 A 5.66 2.83 0 0 1 418 397 L 442 385 A 5.66 2.83 0 0 1 450 385 L 474 397 A 5.66 2.83 0 0 1 474 401 Z" fill="rgba(245,245,245,0.10)"/><path d="M 446 413.83 A 5.66 2.83 0 0 0 450 413 L 474 401 A 5.66 2.83 0 0 0 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 446 427.83 Z" fill="rgba(45,49,66,0.45)"/><path d="M 450 407 A 5.66 2.83 0 0 1 442 407 L 430 401 A 5.66 2.83 0 0 1 430 397 L 442 391 A 5.66 2.83 0 0 1 450 391 L 462 397 A 5.66 2.83 0 0 1 462 401 Z" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 450 402 A 5.66 2.83 0 0 1 442 402 L 440 401 A 5.66 2.83 0 0 1 440 397 L 442 396 A 5.66 2.83 0 0 1 450 396 L 452 397 A 5.66 2.83 0 0 1 452 401 Z" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 416.34 399 A 5.66 2.83 0 0 0 418 401 L 442 413 A 5.66 2.83 0 0 0 450 413 L 474 401 A 5.66 2.83 0 0 0 475.66 399" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 416.34 399 A 5.66 2.83 0 0 1 418 397 L 442 385 A 5.66 2.83 0 0 1 450 385 L 474 397 A 5.66 2.83 0 0 1 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 442 427 L 418 415 A 5.66 2.83 0 0 1 416.34 413 Z" fill="none" stroke="#f5f5f5" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="481.66" y1="406" x2="582.49" y2="406" stroke="rgba(245,245,245,0.40)" stroke-width="0.8"/><circle cx="475.66" cy="406" r="2" fill="#f5f5f5"/><text data-role="name" x="594.49" y="405" fill="#f5f5f5" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Cable</text><text x="594.49" y="421" fill="#bfc0c0" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">usb-c, 1 m</text></g></g>
+ <g data-part="speaker" data-name="Speaker" data-rect="36 52 128 144 46" data-z="444" data-t="60" data-level="2" data-focal><path data-role="silhouette" d="M 266.95 338 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 286 421 L 286 421 A 65.05 32.53 0 0 1 266.95 398 Z" fill="#393e53"/><path d="M 378 361 A 65.05 32.53 0 0 1 286 361 L 286 361 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 378 361 Z" fill="rgba(240,138,89,0.18)"/><path d="M 332 370.53 A 65.05 32.53 0 0 0 378 361 L 378 361 A 65.05 32.53 0 0 0 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 332 430.53 Z" fill="rgba(45,49,66,0.45)"/><path d="M 266.95 388 A 65.05 32.53 0 0 0 286 411 L 286 411 A 65.05 32.53 0 0 0 378 411 L 378 411 A 65.05 32.53 0 0 0 397.05 388" fill="none" stroke="rgba(240,138,89,0.70)" stroke-width="0.6"/><path d="M 266.95 380 A 65.05 32.53 0 0 0 286 403 L 286 403 A 65.05 32.53 0 0 0 378 403 L 378 403 A 65.05 32.53 0 0 0 397.05 380" fill="none" stroke="rgba(240,138,89,0.70)" stroke-width="0.6"/><path d="M 266.95 372 A 65.05 32.53 0 0 0 286 395 L 286 395 A 65.05 32.53 0 0 0 378 395 L 378 395 A 65.05 32.53 0 0 0 397.05 372" fill="none" stroke="rgba(240,138,89,0.70)" stroke-width="0.6"/><path d="M 266.95 364 A 65.05 32.53 0 0 0 286 387 L 286 387 A 65.05 32.53 0 0 0 378 387 L 378 387 A 65.05 32.53 0 0 0 397.05 364" fill="none" stroke="rgba(240,138,89,0.70)" stroke-width="0.6"/><path d="M 266.95 356 A 65.05 32.53 0 0 0 286 379 L 286 379 A 65.05 32.53 0 0 0 378 379 L 378 379 A 65.05 32.53 0 0 0 397.05 356" fill="none" stroke="rgba(240,138,89,0.70)" stroke-width="0.6"/><path d="M 368 356 A 50.91 25.46 0 0 1 296 356 L 296 356 A 50.91 25.46 0 0 1 296 320 L 296 320 A 50.91 25.46 0 0 1 368 320 L 368 320 A 50.91 25.46 0 0 1 368 356 Z" fill="none" stroke="rgba(240,138,89,0.70)" stroke-width="0.8"/><path d="M 342 343 A 14.14 7.07 0 0 1 322 343 L 322 343 A 14.14 7.07 0 0 1 322 333 L 322 333 A 14.14 7.07 0 0 1 342 333 L 342 333 A 14.14 7.07 0 0 1 342 343 Z" fill="#f08a59"/><path d="M 266.95 338 A 65.05 32.53 0 0 0 286 361 L 286 361 A 65.05 32.53 0 0 0 378 361 L 378 361 A 65.05 32.53 0 0 0 397.05 338" fill="none" stroke="rgba(240,138,89,0.70)" stroke-width="0.8"/><path d="M 266.95 338 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 286 421 L 286 421 A 65.05 32.53 0 0 1 266.95 398 Z" fill="none" stroke="#f08a59" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="403.05" y1="368" x2="582.49" y2="368" stroke="rgba(240,138,89,0.60)" stroke-width="0.8"/><circle cx="397.05" cy="368" r="2" fill="#f08a59"/><text data-role="name" x="594.49" y="367" fill="#f5f5f5" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Speaker</text><text x="594.49" y="383" fill="#f08a59" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">the product</text></g></g>
+ <g data-part-front="box"><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 344 930 L 172 844 A 5.66 2.83 0 0 1 170.34 842 Z" fill="#393e53"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 518 770 L 518 770 L 348 855 L 348 855 L 178 770 L 178 770 Z" fill="#393e53"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 518 770 L 518 770 L 348 855 L 348 855 L 178 770 L 178 770 Z" fill="rgba(245,245,245,0.10)"/><path d="M 348 858.83 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 348 930.83 Z" fill="rgba(45,49,66,0.45)"/><path d="M 178 770 L 178 770 L 348 855 L 348 855 L 518 770 L 518 770" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770" fill="none" stroke="#f5f5f5" stroke-width="1.2"/><path d="M 170.34 770 L 170.34 842 A 5.66 2.83 0 0 0 172 844 L 344 930 A 5.66 2.83 0 0 0 352 930 L 524 844 A 5.66 2.83 0 0 0 525.66 842 L 525.66 770" fill="none" stroke="#f5f5f5" stroke-width="1.2" stroke-linejoin="round"/></g>
+ <g data-part="lid" data-name="Lid" data-rect="-3 -3 183 183 6" data-z="684" data-t="28" data-level="3"><path data-role="silhouette" d="M 165.51 130 A 8.49 4.24 0 0 1 168 127 L 342 40 A 8.49 4.24 0 0 1 354 40 L 528 127 A 8.49 4.24 0 0 1 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 342 248 L 168 161 A 8.49 4.24 0 0 1 165.51 158 Z" fill="#393e53"/><path d="M 354 220 A 8.49 4.24 0 0 1 342 220 L 168 133 A 8.49 4.24 0 0 1 168 127 L 342 40 A 8.49 4.24 0 0 1 354 40 L 528 127 A 8.49 4.24 0 0 1 528 133 Z" fill="rgba(245,245,245,0.10)"/><path d="M 348 221.24 A 8.49 4.24 0 0 0 354 220 L 528 133 A 8.49 4.24 0 0 0 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 348 249.24 Z" fill="rgba(45,49,66,0.45)"/><path d="M 348 209 L 348 209 L 190 130 L 190 130 L 348 51 L 348 51 L 506 130 L 506 130 Z" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 362 137 A 19.8 9.9 0 0 1 334 137 L 334 137 A 19.8 9.9 0 0 1 334 123 L 334 123 A 19.8 9.9 0 0 1 362 123 L 362 123 A 19.8 9.9 0 0 1 362 137 Z" fill="none" stroke="#f5f5f5" stroke-width="1.2"/><path d="M 353 132.5 A 7.07 3.54 0 0 1 343 132.5 L 343 132.5 A 7.07 3.54 0 0 1 343 127.5 L 343 127.5 A 7.07 3.54 0 0 1 353 127.5 L 353 127.5 A 7.07 3.54 0 0 1 353 132.5 Z" fill="#f5f5f5"/><path d="M 165.51 130 A 8.49 4.24 0 0 0 168 133 L 342 220 A 8.49 4.24 0 0 0 354 220 L 528 133 A 8.49 4.24 0 0 0 530.49 130" fill="none" stroke="rgba(245,245,245,0.45)" stroke-width="0.8"/><path d="M 165.51 130 A 8.49 4.24 0 0 1 168 127 L 342 40 A 8.49 4.24 0 0 1 354 40 L 528 127 A 8.49 4.24 0 0 1 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 342 248 L 168 161 A 8.49 4.24 0 0 1 165.51 158 Z" fill="none" stroke="#f5f5f5" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="536.49" y1="144" x2="582.49" y2="144" stroke="rgba(245,245,245,0.40)" stroke-width="0.8"/><circle cx="530.49" cy="144" r="2" fill="#f5f5f5"/><text data-role="name" x="594.49" y="143" fill="#f5f5f5" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Lid</text><text x="594.49" y="159" fill="#bfc0c0" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">printed sleeve</text></g></g>
+ </g>
+ </svg>
+ </div>
+ </div>
+</body>
+</html>
diff --git a/skills/diagram-design/assets/example-exploded-unboxing-full.html b/skills/diagram-design/assets/example-exploded-unboxing-full.html
new file mode 100644
index 0000000..c3f3f70
--- /dev/null
+++ b/skills/diagram-design/assets/example-exploded-unboxing-full.html
@@ -0,0 +1,83 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Unboxing · What you see, in the order you see it</title>
+ <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
+ <style>
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
+ :root { --color-paper:#f5f5f5; --color-paper-2:#ececec; --color-ink:#2d3142; --color-muted:#4f5d75; --color-soft:#7a8399; --color-rule:rgba(45,49,66,0.12); --color-accent:#eb6c36; --color-link:#2e5aa8; --font-sans:'Geist',system-ui,sans-serif; --font-serif:'Instrument Serif',serif; --font-mono:'Geist Mono',ui-monospace,monospace; }
+ body { font-family: var(--font-sans); background: var(--color-paper); min-height: 100vh; padding: 3rem 2rem; color: var(--color-ink); }
+ .container { max-width: 1200px; margin: 0 auto; }
+ .header { margin-bottom: 2.5rem; }
+ .header-eyebrow { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.75rem; }
+ h1 { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.5rem; }
+ .subtitle { font-size: 1rem; line-height: 1.55; color: var(--color-muted); max-width: 58ch; }
+ .diagram-container { overflow-x: auto; }
+ svg { width: 100%; min-width: 1000px; display: block; }
+ @media print { .diagram-container { overflow-x: visible; } svg { min-width: 0; } }
+ .cards { display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: 1rem; margin-top: 1.5rem; }
+ @media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
+ .card { background: #fff; border-radius: 6px; border: 1px solid var(--color-rule); padding: 1.25rem; }
+ .card .eyebrow { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.5rem; }
+ .card-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.875rem; padding-bottom: 0.875rem; border-bottom: 1px solid rgba(45,49,66,0.08); }
+ .card-dot { width: 7px; height: 7px; border-radius: 50%; }
+ .card-dot.ink { background: var(--color-ink); } .card-dot.muted { background: var(--color-muted); } .card-dot.coral { background: var(--color-accent); }
+ .card h3 { font-size: 0.875rem; font-weight: 600; }
+ .card p, .card ul { color: var(--color-muted); font-size: 0.8125rem; line-height: 1.55; list-style: none; }
+ .card li { margin-bottom: 0.3rem; padding-left: 0.875rem; position: relative; }
+ .card li::before { content: '·'; position: absolute; left: 0.2rem; color: rgba(45,49,66,0.45); }
+ .footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(45,49,66,0.10); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--color-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
+ </style>
+</head>
+<body>
+ <div class="container">
+ <div class="header">
+ <p class="header-eyebrow">Exploded axonometric · Diagram Design</p>
+ <h1>Unboxing · What you see, in the order you see it</h1>
+ <p class="subtitle">Read it top down and it is the unboxing: lid, product, insert, box. The product and its cable share a level because they sit side by side.</p>
+ </div>
+
+ <div class="diagram-container">
+ <svg viewBox="0 0 1000 964" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="exploded-unboxing-full-title exploded-unboxing-full-desc">
+ <title id="exploded-unboxing-full-title">Unboxing · What you see, in the order you see it</title>
+ <desc id="exploded-unboxing-full-desc">Exploded view of product packaging: printed lid, the speaker and its cable, the moulded insert that holds them, and the rigid box, with the speaker as the focal part.</desc>
+ <rect width="100%" height="100%" fill="#f5f5f5"/>
+ <g data-exploded data-origin="348 752" data-gap="180">
+ <line data-role="trace" x1="170.34" y1="770" x2="170.34" y2="158" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><line data-role="trace" x1="525.66" y1="770" x2="525.66" y2="158" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/>
+ <g data-part="box" data-name="Box" data-rect="0 0 180 180 4" data-z="0" data-t="72" data-level="0" data-kind="housing"><path data-role="silhouette" d="M 170.34 770 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 344 930 L 172 844 A 5.66 2.83 0 0 1 170.34 842 Z" fill="#ffffff"/><path d="M 352 858 A 5.66 2.83 0 0 1 344 858 L 172 772 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 524 772 Z" fill="#ffffff"/><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="#ffffff"/><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="rgba(45,49,66,0.10)"/><clipPath id="exploded-unboxing-full-box-cavity"><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z"/></clipPath><g clip-path="url(#exploded-unboxing-full-box-cavity)"><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="#ffffff"/><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="rgba(45,49,66,0.04)"/><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/></g><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 170.34 770 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 525.66 770" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="531.66" y1="806" x2="582.49" y2="806" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="525.66" cy="806" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="805" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Box</text><text x="594.49" y="821" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">rigid board</text></g></g>
+ <g data-part="insert" data-name="Insert" data-rect="6 6 174 174 2" data-z="252" data-t="12" data-level="1"><path data-role="silhouette" d="M 181.17 578 A 2.83 1.41 0 0 1 182 577 L 346 495 A 2.83 1.41 0 0 1 350 495 L 514 577 A 2.83 1.41 0 0 1 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 346 673 L 182 591 A 2.83 1.41 0 0 1 181.17 590 Z" fill="#ffffff"/><path d="M 181.17 578 A 2.83 1.41 0 0 0 182 579 L 346 661 A 2.83 1.41 0 0 0 348 661.41 L 348 673.41 A 2.83 1.41 0 0 1 346 673 L 182 591 A 2.83 1.41 0 0 1 181.17 590 Z" fill="rgba(45,49,66,0.07)"/><path d="M 348 661.41 A 2.83 1.41 0 0 0 350 661 L 514 579 A 2.83 1.41 0 0 0 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 348 673.41 Z" fill="rgba(45,49,66,0.15)"/><path d="M 382 603 A 70.71 35.36 0 0 1 282 603 L 282 603 A 70.71 35.36 0 0 1 282 553 L 282 553 A 70.71 35.36 0 0 1 382 553 L 382 553 A 70.71 35.36 0 0 1 382 603 Z" fill="rgba(45,49,66,0.14)" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 451 609.5 A 7.07 3.54 0 0 1 441 609.5 L 413 595.5 A 7.07 3.54 0 0 1 413 590.5 L 441 576.5 A 7.07 3.54 0 0 1 451 576.5 L 479 590.5 A 7.07 3.54 0 0 1 479 595.5 Z" fill="rgba(45,49,66,0.14)" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 181.17 578 A 2.83 1.41 0 0 0 182 579 L 346 661 A 2.83 1.41 0 0 0 350 661 L 514 579 A 2.83 1.41 0 0 0 514.83 578" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 181.17 578 A 2.83 1.41 0 0 1 182 577 L 346 495 A 2.83 1.41 0 0 1 350 495 L 514 577 A 2.83 1.41 0 0 1 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 346 673 L 182 591 A 2.83 1.41 0 0 1 181.17 590 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="520.83" y1="584" x2="582.49" y2="584" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="514.83" cy="584" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="583" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Insert</text><text x="594.49" y="599" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">moulded pulp</text></g></g>
+ <g data-part="cable" data-name="Cable" data-rect="138 40 170 72 4" data-z="444" data-t="14" data-level="2"><path data-role="silhouette" d="M 416.34 399 A 5.66 2.83 0 0 1 418 397 L 442 385 A 5.66 2.83 0 0 1 450 385 L 474 397 A 5.66 2.83 0 0 1 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 442 427 L 418 415 A 5.66 2.83 0 0 1 416.34 413 Z" fill="#ffffff"/><path d="M 416.34 399 A 5.66 2.83 0 0 0 418 401 L 442 413 A 5.66 2.83 0 0 0 446 413.83 L 446 427.83 A 5.66 2.83 0 0 1 442 427 L 418 415 A 5.66 2.83 0 0 1 416.34 413 Z" fill="rgba(45,49,66,0.07)"/><path d="M 446 413.83 A 5.66 2.83 0 0 0 450 413 L 474 401 A 5.66 2.83 0 0 0 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 446 427.83 Z" fill="rgba(45,49,66,0.15)"/><path d="M 450 407 A 5.66 2.83 0 0 1 442 407 L 430 401 A 5.66 2.83 0 0 1 430 397 L 442 391 A 5.66 2.83 0 0 1 450 391 L 462 397 A 5.66 2.83 0 0 1 462 401 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 450 402 A 5.66 2.83 0 0 1 442 402 L 440 401 A 5.66 2.83 0 0 1 440 397 L 442 396 A 5.66 2.83 0 0 1 450 396 L 452 397 A 5.66 2.83 0 0 1 452 401 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 416.34 399 A 5.66 2.83 0 0 0 418 401 L 442 413 A 5.66 2.83 0 0 0 450 413 L 474 401 A 5.66 2.83 0 0 0 475.66 399" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 416.34 399 A 5.66 2.83 0 0 1 418 397 L 442 385 A 5.66 2.83 0 0 1 450 385 L 474 397 A 5.66 2.83 0 0 1 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 442 427 L 418 415 A 5.66 2.83 0 0 1 416.34 413 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="481.66" y1="406" x2="582.49" y2="406" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="475.66" cy="406" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="405" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Cable</text><text x="594.49" y="421" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">usb-c, 1 m</text></g></g>
+ <g data-part="speaker" data-name="Speaker" data-rect="36 52 128 144 46" data-z="444" data-t="60" data-level="2" data-focal><path data-role="silhouette" d="M 266.95 338 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 286 421 L 286 421 A 65.05 32.53 0 0 1 266.95 398 Z" fill="#ffffff"/><path d="M 378 361 A 65.05 32.53 0 0 1 286 361 L 286 361 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 378 361 Z" fill="rgba(235,108,54,0.10)"/><path d="M 266.95 338 A 65.05 32.53 0 0 0 286 361 L 286 361 A 65.05 32.53 0 0 0 332 370.53 L 332 430.53 A 65.05 32.53 0 0 1 286 421 L 286 421 A 65.05 32.53 0 0 1 266.95 398 Z" fill="rgba(235,108,54,0.20)"/><path d="M 332 370.53 A 65.05 32.53 0 0 0 378 361 L 378 361 A 65.05 32.53 0 0 0 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 332 430.53 Z" fill="rgba(235,108,54,0.32)"/><path d="M 266.95 388 A 65.05 32.53 0 0 0 286 411 L 286 411 A 65.05 32.53 0 0 0 378 411 L 378 411 A 65.05 32.53 0 0 0 397.05 388" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 266.95 380 A 65.05 32.53 0 0 0 286 403 L 286 403 A 65.05 32.53 0 0 0 378 403 L 378 403 A 65.05 32.53 0 0 0 397.05 380" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 266.95 372 A 65.05 32.53 0 0 0 286 395 L 286 395 A 65.05 32.53 0 0 0 378 395 L 378 395 A 65.05 32.53 0 0 0 397.05 372" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 266.95 364 A 65.05 32.53 0 0 0 286 387 L 286 387 A 65.05 32.53 0 0 0 378 387 L 378 387 A 65.05 32.53 0 0 0 397.05 364" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 266.95 356 A 65.05 32.53 0 0 0 286 379 L 286 379 A 65.05 32.53 0 0 0 378 379 L 378 379 A 65.05 32.53 0 0 0 397.05 356" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 368 356 A 50.91 25.46 0 0 1 296 356 L 296 356 A 50.91 25.46 0 0 1 296 320 L 296 320 A 50.91 25.46 0 0 1 368 320 L 368 320 A 50.91 25.46 0 0 1 368 356 Z" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.8"/><path d="M 342 343 A 14.14 7.07 0 0 1 322 343 L 322 343 A 14.14 7.07 0 0 1 322 333 L 322 333 A 14.14 7.07 0 0 1 342 333 L 342 333 A 14.14 7.07 0 0 1 342 343 Z" fill="#eb6c36"/><path d="M 266.95 338 A 65.05 32.53 0 0 0 286 361 L 286 361 A 65.05 32.53 0 0 0 378 361 L 378 361 A 65.05 32.53 0 0 0 397.05 338" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.8"/><path d="M 266.95 338 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 286 421 L 286 421 A 65.05 32.53 0 0 1 266.95 398 Z" fill="none" stroke="#eb6c36" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="403.05" y1="368" x2="582.49" y2="368" stroke="rgba(235,108,54,0.60)" stroke-width="0.8"/><circle cx="397.05" cy="368" r="2" fill="#eb6c36"/><text data-role="name" x="594.49" y="367" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Speaker</text><text x="594.49" y="383" fill="#eb6c36" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">the product</text></g></g>
+ <g data-part-front="box"><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 344 930 L 172 844 A 5.66 2.83 0 0 1 170.34 842 Z" fill="#ffffff"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 518 770 L 518 770 L 348 855 L 348 855 L 178 770 L 178 770 Z" fill="#ffffff"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 348 858.83 L 348 930.83 A 5.66 2.83 0 0 1 344 930 L 172 844 A 5.66 2.83 0 0 1 170.34 842 Z" fill="rgba(45,49,66,0.07)"/><path d="M 348 858.83 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 348 930.83 Z" fill="rgba(45,49,66,0.15)"/><path d="M 178 770 L 178 770 L 348 855 L 348 855 L 518 770 L 518 770" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770" fill="none" stroke="#2d3142" stroke-width="1.2"/><path d="M 170.34 770 L 170.34 842 A 5.66 2.83 0 0 0 172 844 L 344 930 A 5.66 2.83 0 0 0 352 930 L 524 844 A 5.66 2.83 0 0 0 525.66 842 L 525.66 770" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/></g>
+ <g data-part="lid" data-name="Lid" data-rect="-3 -3 183 183 6" data-z="684" data-t="28" data-level="3"><path data-role="silhouette" d="M 165.51 130 A 8.49 4.24 0 0 1 168 127 L 342 40 A 8.49 4.24 0 0 1 354 40 L 528 127 A 8.49 4.24 0 0 1 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 342 248 L 168 161 A 8.49 4.24 0 0 1 165.51 158 Z" fill="#ffffff"/><path d="M 165.51 130 A 8.49 4.24 0 0 0 168 133 L 342 220 A 8.49 4.24 0 0 0 348 221.24 L 348 249.24 A 8.49 4.24 0 0 1 342 248 L 168 161 A 8.49 4.24 0 0 1 165.51 158 Z" fill="rgba(45,49,66,0.07)"/><path d="M 348 221.24 A 8.49 4.24 0 0 0 354 220 L 528 133 A 8.49 4.24 0 0 0 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 348 249.24 Z" fill="rgba(45,49,66,0.15)"/><path d="M 348 209 L 348 209 L 190 130 L 190 130 L 348 51 L 348 51 L 506 130 L 506 130 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 362 137 A 19.8 9.9 0 0 1 334 137 L 334 137 A 19.8 9.9 0 0 1 334 123 L 334 123 A 19.8 9.9 0 0 1 362 123 L 362 123 A 19.8 9.9 0 0 1 362 137 Z" fill="none" stroke="#2d3142" stroke-width="1.2"/><path d="M 353 132.5 A 7.07 3.54 0 0 1 343 132.5 L 343 132.5 A 7.07 3.54 0 0 1 343 127.5 L 343 127.5 A 7.07 3.54 0 0 1 353 127.5 L 353 127.5 A 7.07 3.54 0 0 1 353 132.5 Z" fill="#2d3142"/><path d="M 165.51 130 A 8.49 4.24 0 0 0 168 133 L 342 220 A 8.49 4.24 0 0 0 354 220 L 528 133 A 8.49 4.24 0 0 0 530.49 130" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 165.51 130 A 8.49 4.24 0 0 1 168 127 L 342 40 A 8.49 4.24 0 0 1 354 40 L 528 127 A 8.49 4.24 0 0 1 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 342 248 L 168 161 A 8.49 4.24 0 0 1 165.51 158 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="536.49" y1="144" x2="582.49" y2="144" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="530.49" cy="144" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="143" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Lid</text><text x="594.49" y="159" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">printed sleeve</text></g></g>
+ </g>
+ </svg>
+ </div>
+
+ <div class="cards">
+ <div class="card">
+ <p class="eyebrow">The headline</p>
+ <div class="card-header"><span class="card-dot coral"></span><h3>The product is the reveal</h3></div>
+ <p>Everything above the speaker is a lid and everything below it is a cradle. The accent marks the speaker because the packaging exists to present it.</p>
+ </div>
+ <div class="card">
+
+ <div class="card-header"><span class="card-dot ink"></span><h3>Reading the explode</h3></div>
+ <ul><li>Lid telescopes over the box walls</li><li>Insert wells match the parts they hold</li><li>Cable and speaker lift as one level</li><li>Box stays put</li></ul>
+ </div>
+ <div class="card">
+
+ <div class="card-header"><span class="card-dot muted"></span><h3>When to use it</h3></div>
+ <p>Packaging reviews, supplier briefs, and launch pages. For a list of what is in the box, a table is faster.</p>
+ </div>
+ </div>
+
+ <div class="footer">
+ <span>unboxing · exploded axonometric</span>
+ <span>example · diagram design</span>
+ </div>
+ </div>
+</body>
+</html>
diff --git a/skills/diagram-design/assets/example-exploded-unboxing.html b/skills/diagram-design/assets/example-exploded-unboxing.html
new file mode 100644
index 0000000..5ba2fc8
--- /dev/null
+++ b/skills/diagram-design/assets/example-exploded-unboxing.html
@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Unboxing · What you see, in the order you see it</title>
+ <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
+ <style>
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
+ :root {
+ --color-paper: #f5f5f5;
+ --color-ink: #2d3142;
+ --color-muted: #4f5d75;
+ --color-accent: #eb6c36;
+ --font-sans: 'Geist', system-ui, sans-serif;
+ --font-serif: 'Instrument Serif', serif;
+ --font-mono: 'Geist Mono', ui-monospace, monospace;
+ }
+
+ body {
+ font-family: var(--font-sans);
+ background: var(--color-paper);
+ color: var(--color-ink);
+ min-height: 100vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 3rem 2rem;
+ }
+
+ .frame { max-width: 1200px; width: 100%; }
+ .diagram-container { width: 100%; overflow-x: auto; }
+
+ .eyebrow {
+ font-family: var(--font-mono);
+ font-size: 0.66rem;
+ font-weight: 500;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ color: var(--color-muted);
+ margin-bottom: 0.5rem;
+ }
+
+ h1 {
+ font-family: var(--font-serif);
+ font-size: clamp(1.5rem, 2.4vw + 0.75rem, 2rem);
+ font-weight: 400;
+ letter-spacing: -0.02em;
+ line-height: 1.15;
+ color: var(--color-ink);
+ margin-bottom: 1.5rem;
+ }
+
+ svg { width: 100%; min-width: 1000px; display: block; }
+ @media print {
+ .diagram-container { overflow-x: visible; }
+ svg { min-width: 0; }
+ }
+ </style>
+</head>
+<body>
+ <div class="frame">
+ <p class="eyebrow">Exploded axonometric · Diagram Design</p>
+ <h1>Unboxing · What you see, in the order you see it</h1>
+
+ <div class="diagram-container">
+ <svg viewBox="0 0 1000 964" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="exploded-unboxing-title exploded-unboxing-desc">
+ <title id="exploded-unboxing-title">Unboxing · What you see, in the order you see it</title>
+ <desc id="exploded-unboxing-desc">Exploded view of product packaging: printed lid, the speaker and its cable, the moulded insert that holds them, and the rigid box, with the speaker as the focal part.</desc>
+ <rect width="100%" height="100%" fill="#f5f5f5"/>
+ <g data-exploded data-origin="348 752" data-gap="180">
+ <line data-role="trace" x1="170.34" y1="770" x2="170.34" y2="158" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><line data-role="trace" x1="525.66" y1="770" x2="525.66" y2="158" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/>
+ <g data-part="box" data-name="Box" data-rect="0 0 180 180 4" data-z="0" data-t="72" data-level="0" data-kind="housing"><path data-role="silhouette" d="M 170.34 770 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 344 930 L 172 844 A 5.66 2.83 0 0 1 170.34 842 Z" fill="#ffffff"/><path d="M 352 858 A 5.66 2.83 0 0 1 344 858 L 172 772 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 524 772 Z" fill="#ffffff"/><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="#ffffff"/><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="rgba(45,49,66,0.10)"/><clipPath id="exploded-unboxing-box-cavity"><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z"/></clipPath><g clip-path="url(#exploded-unboxing-box-cavity)"><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="#ffffff"/><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="rgba(45,49,66,0.04)"/><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/></g><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 170.34 770 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 525.66 770" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="531.66" y1="806" x2="582.49" y2="806" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="525.66" cy="806" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="805" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Box</text><text x="594.49" y="821" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">rigid board</text></g></g>
+ <g data-part="insert" data-name="Insert" data-rect="6 6 174 174 2" data-z="252" data-t="12" data-level="1"><path data-role="silhouette" d="M 181.17 578 A 2.83 1.41 0 0 1 182 577 L 346 495 A 2.83 1.41 0 0 1 350 495 L 514 577 A 2.83 1.41 0 0 1 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 346 673 L 182 591 A 2.83 1.41 0 0 1 181.17 590 Z" fill="#ffffff"/><path d="M 181.17 578 A 2.83 1.41 0 0 0 182 579 L 346 661 A 2.83 1.41 0 0 0 348 661.41 L 348 673.41 A 2.83 1.41 0 0 1 346 673 L 182 591 A 2.83 1.41 0 0 1 181.17 590 Z" fill="rgba(45,49,66,0.07)"/><path d="M 348 661.41 A 2.83 1.41 0 0 0 350 661 L 514 579 A 2.83 1.41 0 0 0 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 348 673.41 Z" fill="rgba(45,49,66,0.15)"/><path d="M 382 603 A 70.71 35.36 0 0 1 282 603 L 282 603 A 70.71 35.36 0 0 1 282 553 L 282 553 A 70.71 35.36 0 0 1 382 553 L 382 553 A 70.71 35.36 0 0 1 382 603 Z" fill="rgba(45,49,66,0.14)" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 451 609.5 A 7.07 3.54 0 0 1 441 609.5 L 413 595.5 A 7.07 3.54 0 0 1 413 590.5 L 441 576.5 A 7.07 3.54 0 0 1 451 576.5 L 479 590.5 A 7.07 3.54 0 0 1 479 595.5 Z" fill="rgba(45,49,66,0.14)" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 181.17 578 A 2.83 1.41 0 0 0 182 579 L 346 661 A 2.83 1.41 0 0 0 350 661 L 514 579 A 2.83 1.41 0 0 0 514.83 578" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 181.17 578 A 2.83 1.41 0 0 1 182 577 L 346 495 A 2.83 1.41 0 0 1 350 495 L 514 577 A 2.83 1.41 0 0 1 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 346 673 L 182 591 A 2.83 1.41 0 0 1 181.17 590 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="520.83" y1="584" x2="582.49" y2="584" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="514.83" cy="584" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="583" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Insert</text><text x="594.49" y="599" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">moulded pulp</text></g></g>
+ <g data-part="cable" data-name="Cable" data-rect="138 40 170 72 4" data-z="444" data-t="14" data-level="2"><path data-role="silhouette" d="M 416.34 399 A 5.66 2.83 0 0 1 418 397 L 442 385 A 5.66 2.83 0 0 1 450 385 L 474 397 A 5.66 2.83 0 0 1 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 442 427 L 418 415 A 5.66 2.83 0 0 1 416.34 413 Z" fill="#ffffff"/><path d="M 416.34 399 A 5.66 2.83 0 0 0 418 401 L 442 413 A 5.66 2.83 0 0 0 446 413.83 L 446 427.83 A 5.66 2.83 0 0 1 442 427 L 418 415 A 5.66 2.83 0 0 1 416.34 413 Z" fill="rgba(45,49,66,0.07)"/><path d="M 446 413.83 A 5.66 2.83 0 0 0 450 413 L 474 401 A 5.66 2.83 0 0 0 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 446 427.83 Z" fill="rgba(45,49,66,0.15)"/><path d="M 450 407 A 5.66 2.83 0 0 1 442 407 L 430 401 A 5.66 2.83 0 0 1 430 397 L 442 391 A 5.66 2.83 0 0 1 450 391 L 462 397 A 5.66 2.83 0 0 1 462 401 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 450 402 A 5.66 2.83 0 0 1 442 402 L 440 401 A 5.66 2.83 0 0 1 440 397 L 442 396 A 5.66 2.83 0 0 1 450 396 L 452 397 A 5.66 2.83 0 0 1 452 401 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 416.34 399 A 5.66 2.83 0 0 0 418 401 L 442 413 A 5.66 2.83 0 0 0 450 413 L 474 401 A 5.66 2.83 0 0 0 475.66 399" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 416.34 399 A 5.66 2.83 0 0 1 418 397 L 442 385 A 5.66 2.83 0 0 1 450 385 L 474 397 A 5.66 2.83 0 0 1 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 442 427 L 418 415 A 5.66 2.83 0 0 1 416.34 413 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="481.66" y1="406" x2="582.49" y2="406" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="475.66" cy="406" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="405" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Cable</text><text x="594.49" y="421" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">usb-c, 1 m</text></g></g>
+ <g data-part="speaker" data-name="Speaker" data-rect="36 52 128 144 46" data-z="444" data-t="60" data-level="2" data-focal><path data-role="silhouette" d="M 266.95 338 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 286 421 L 286 421 A 65.05 32.53 0 0 1 266.95 398 Z" fill="#ffffff"/><path d="M 378 361 A 65.05 32.53 0 0 1 286 361 L 286 361 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 378 361 Z" fill="rgba(235,108,54,0.10)"/><path d="M 266.95 338 A 65.05 32.53 0 0 0 286 361 L 286 361 A 65.05 32.53 0 0 0 332 370.53 L 332 430.53 A 65.05 32.53 0 0 1 286 421 L 286 421 A 65.05 32.53 0 0 1 266.95 398 Z" fill="rgba(235,108,54,0.20)"/><path d="M 332 370.53 A 65.05 32.53 0 0 0 378 361 L 378 361 A 65.05 32.53 0 0 0 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 332 430.53 Z" fill="rgba(235,108,54,0.32)"/><path d="M 266.95 388 A 65.05 32.53 0 0 0 286 411 L 286 411 A 65.05 32.53 0 0 0 378 411 L 378 411 A 65.05 32.53 0 0 0 397.05 388" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 266.95 380 A 65.05 32.53 0 0 0 286 403 L 286 403 A 65.05 32.53 0 0 0 378 403 L 378 403 A 65.05 32.53 0 0 0 397.05 380" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 266.95 372 A 65.05 32.53 0 0 0 286 395 L 286 395 A 65.05 32.53 0 0 0 378 395 L 378 395 A 65.05 32.53 0 0 0 397.05 372" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 266.95 364 A 65.05 32.53 0 0 0 286 387 L 286 387 A 65.05 32.53 0 0 0 378 387 L 378 387 A 65.05 32.53 0 0 0 397.05 364" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 266.95 356 A 65.05 32.53 0 0 0 286 379 L 286 379 A 65.05 32.53 0 0 0 378 379 L 378 379 A 65.05 32.53 0 0 0 397.05 356" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.6"/><path d="M 368 356 A 50.91 25.46 0 0 1 296 356 L 296 356 A 50.91 25.46 0 0 1 296 320 L 296 320 A 50.91 25.46 0 0 1 368 320 L 368 320 A 50.91 25.46 0 0 1 368 356 Z" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.8"/><path d="M 342 343 A 14.14 7.07 0 0 1 322 343 L 322 343 A 14.14 7.07 0 0 1 322 333 L 322 333 A 14.14 7.07 0 0 1 342 333 L 342 333 A 14.14 7.07 0 0 1 342 343 Z" fill="#eb6c36"/><path d="M 266.95 338 A 65.05 32.53 0 0 0 286 361 L 286 361 A 65.05 32.53 0 0 0 378 361 L 378 361 A 65.05 32.53 0 0 0 397.05 338" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.8"/><path d="M 266.95 338 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 286 421 L 286 421 A 65.05 32.53 0 0 1 266.95 398 Z" fill="none" stroke="#eb6c36" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="403.05" y1="368" x2="582.49" y2="368" stroke="rgba(235,108,54,0.60)" stroke-width="0.8"/><circle cx="397.05" cy="368" r="2" fill="#eb6c36"/><text data-role="name" x="594.49" y="367" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Speaker</text><text x="594.49" y="383" fill="#eb6c36" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">the product</text></g></g>
+ <g data-part-front="box"><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 344 930 L 172 844 A 5.66 2.83 0 0 1 170.34 842 Z" fill="#ffffff"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 518 770 L 518 770 L 348 855 L 348 855 L 178 770 L 178 770 Z" fill="#ffffff"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 348 858.83 L 348 930.83 A 5.66 2.83 0 0 1 344 930 L 172 844 A 5.66 2.83 0 0 1 170.34 842 Z" fill="rgba(45,49,66,0.07)"/><path d="M 348 858.83 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 348 930.83 Z" fill="rgba(45,49,66,0.15)"/><path d="M 178 770 L 178 770 L 348 855 L 348 855 L 518 770 L 518 770" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770" fill="none" stroke="#2d3142" stroke-width="1.2"/><path d="M 170.34 770 L 170.34 842 A 5.66 2.83 0 0 0 172 844 L 344 930 A 5.66 2.83 0 0 0 352 930 L 524 844 A 5.66 2.83 0 0 0 525.66 842 L 525.66 770" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/></g>
+ <g data-part="lid" data-name="Lid" data-rect="-3 -3 183 183 6" data-z="684" data-t="28" data-level="3"><path data-role="silhouette" d="M 165.51 130 A 8.49 4.24 0 0 1 168 127 L 342 40 A 8.49 4.24 0 0 1 354 40 L 528 127 A 8.49 4.24 0 0 1 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 342 248 L 168 161 A 8.49 4.24 0 0 1 165.51 158 Z" fill="#ffffff"/><path d="M 165.51 130 A 8.49 4.24 0 0 0 168 133 L 342 220 A 8.49 4.24 0 0 0 348 221.24 L 348 249.24 A 8.49 4.24 0 0 1 342 248 L 168 161 A 8.49 4.24 0 0 1 165.51 158 Z" fill="rgba(45,49,66,0.07)"/><path d="M 348 221.24 A 8.49 4.24 0 0 0 354 220 L 528 133 A 8.49 4.24 0 0 0 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 348 249.24 Z" fill="rgba(45,49,66,0.15)"/><path d="M 348 209 L 348 209 L 190 130 L 190 130 L 348 51 L 348 51 L 506 130 L 506 130 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 362 137 A 19.8 9.9 0 0 1 334 137 L 334 137 A 19.8 9.9 0 0 1 334 123 L 334 123 A 19.8 9.9 0 0 1 362 123 L 362 123 A 19.8 9.9 0 0 1 362 137 Z" fill="none" stroke="#2d3142" stroke-width="1.2"/><path d="M 353 132.5 A 7.07 3.54 0 0 1 343 132.5 L 343 132.5 A 7.07 3.54 0 0 1 343 127.5 L 343 127.5 A 7.07 3.54 0 0 1 353 127.5 L 353 127.5 A 7.07 3.54 0 0 1 353 132.5 Z" fill="#2d3142"/><path d="M 165.51 130 A 8.49 4.24 0 0 0 168 133 L 342 220 A 8.49 4.24 0 0 0 354 220 L 528 133 A 8.49 4.24 0 0 0 530.49 130" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 165.51 130 A 8.49 4.24 0 0 1 168 127 L 342 40 A 8.49 4.24 0 0 1 354 40 L 528 127 A 8.49 4.24 0 0 1 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 342 248 L 168 161 A 8.49 4.24 0 0 1 165.51 158 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="536.49" y1="144" x2="582.49" y2="144" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="530.49" cy="144" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="143" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Lid</text><text x="594.49" y="159" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">printed sleeve</text></g></g>
+ </g>
+ </svg>
+ </div>
+ </div>
+</body>
+</html>
diff --git a/skills/diagram-design/assets/example-exploded.html b/skills/diagram-design/assets/example-exploded.html
new file mode 100644
index 0000000..c065f82
--- /dev/null
+++ b/skills/diagram-design/assets/example-exploded.html
@@ -0,0 +1,83 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>App stack · Three layers, one product</title>
+ <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
+ <style>
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
+ :root {
+ --color-paper: #f5f5f5;
+ --color-ink: #2d3142;
+ --color-muted: #4f5d75;
+ --color-accent: #eb6c36;
+ --font-sans: 'Geist', system-ui, sans-serif;
+ --font-serif: 'Instrument Serif', serif;
+ --font-mono: 'Geist Mono', ui-monospace, monospace;
+ }
+
+ body {
+ font-family: var(--font-sans);
+ background: var(--color-paper);
+ color: var(--color-ink);
+ min-height: 100vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 3rem 2rem;
+ }
+
+ .frame { max-width: 1200px; width: 100%; }
+ .diagram-container { width: 100%; overflow-x: auto; }
+
+ .eyebrow {
+ font-family: var(--font-mono);
+ font-size: 0.66rem;
+ font-weight: 500;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ color: var(--color-muted);
+ margin-bottom: 0.5rem;
+ }
+
+ h1 {
+ font-family: var(--font-serif);
+ font-size: clamp(1.5rem, 2.4vw + 0.75rem, 2rem);
+ font-weight: 400;
+ letter-spacing: -0.02em;
+ line-height: 1.15;
+ color: var(--color-ink);
+ margin-bottom: 1.5rem;
+ }
+
+ svg { width: 100%; min-width: 1000px; display: block; }
+ @media print {
+ .diagram-container { overflow-x: visible; }
+ svg { min-width: 0; }
+ }
+ </style>
+</head>
+<body>
+ <div class="frame">
+ <p class="eyebrow">Exploded axonometric · Diagram Design</p>
+ <h1>App stack · Three layers, one product</h1>
+
+ <div class="diagram-container">
+ <svg viewBox="0 0 1000 556" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="exploded-title exploded-desc">
+ <title id="exploded-title">App stack · Three layers, one product</title>
+ <desc id="exploded-desc">Exploded view of a three-layer app stack: data at the base, logic in the middle, interface on top, with logic as the focal layer.</desc>
+ <rect width="100%" height="100%" fill="#f5f5f5"/>
+ <g data-exploded data-origin="344 284" data-gap="100">
+ <line data-role="trace" x1="151.03" y1="368" x2="151.03" y2="152" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><line data-role="trace" x1="536.97" y1="368" x2="536.97" y2="152" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/>
+ <g data-part="data" data-name="Data" data-rect="0 0 200 200 12" data-z="0" data-t="16" data-level="0"><path data-role="silhouette" d="M 151.03 368 A 16.97 8.49 0 0 1 156 362 L 332 274 A 16.97 8.49 0 0 1 356 274 L 532 362 A 16.97 8.49 0 0 1 536.97 368 L 536.97 384 A 16.97 8.49 0 0 1 532 390 L 356 478 A 16.97 8.49 0 0 1 332 478 L 156 390 A 16.97 8.49 0 0 1 151.03 384 Z" fill="#ffffff"/><path d="M 151.03 368 A 16.97 8.49 0 0 0 156 374 L 332 462 A 16.97 8.49 0 0 0 344 464.49 L 344 480.49 A 16.97 8.49 0 0 1 332 478 L 156 390 A 16.97 8.49 0 0 1 151.03 384 Z" fill="rgba(45,49,66,0.07)"/><path d="M 344 464.49 A 16.97 8.49 0 0 0 356 462 L 532 374 A 16.97 8.49 0 0 0 536.97 368 L 536.97 384 A 16.97 8.49 0 0 1 532 390 L 356 478 A 16.97 8.49 0 0 1 344 480.49 Z" fill="rgba(45,49,66,0.15)"/><path d="M 151.03 368 A 16.97 8.49 0 0 0 156 374 L 332 462 A 16.97 8.49 0 0 0 356 462 L 532 374 A 16.97 8.49 0 0 0 536.97 368" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 151.03 368 A 16.97 8.49 0 0 1 156 362 L 332 274 A 16.97 8.49 0 0 1 356 274 L 532 362 A 16.97 8.49 0 0 1 536.97 368 L 536.97 384 A 16.97 8.49 0 0 1 532 390 L 356 478 A 16.97 8.49 0 0 1 332 478 L 156 390 A 16.97 8.49 0 0 1 151.03 384 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="542.97" y1="376" x2="588.97" y2="376" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="536.97" cy="376" r="2" fill="#2d3142"/><text data-role="name" x="600.97" y="375" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Data</text><text x="600.97" y="391" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">postgres, object store</text></g></g>
+ <g data-part="logic" data-name="Logic" data-rect="0 0 200 200 12" data-z="116" data-t="16" data-level="1" data-focal><path data-role="silhouette" d="M 151.03 252 A 16.97 8.49 0 0 1 156 246 L 332 158 A 16.97 8.49 0 0 1 356 158 L 532 246 A 16.97 8.49 0 0 1 536.97 252 L 536.97 268 A 16.97 8.49 0 0 1 532 274 L 356 362 A 16.97 8.49 0 0 1 332 362 L 156 274 A 16.97 8.49 0 0 1 151.03 268 Z" fill="#ffffff"/><path d="M 356 346 A 16.97 8.49 0 0 1 332 346 L 156 258 A 16.97 8.49 0 0 1 156 246 L 332 158 A 16.97 8.49 0 0 1 356 158 L 532 246 A 16.97 8.49 0 0 1 532 258 Z" fill="rgba(235,108,54,0.10)"/><path d="M 151.03 252 A 16.97 8.49 0 0 0 156 258 L 332 346 A 16.97 8.49 0 0 0 344 348.49 L 344 364.49 A 16.97 8.49 0 0 1 332 362 L 156 274 A 16.97 8.49 0 0 1 151.03 268 Z" fill="rgba(235,108,54,0.20)"/><path d="M 344 348.49 A 16.97 8.49 0 0 0 356 346 L 532 258 A 16.97 8.49 0 0 0 536.97 252 L 536.97 268 A 16.97 8.49 0 0 1 532 274 L 356 362 A 16.97 8.49 0 0 1 344 364.49 Z" fill="rgba(235,108,54,0.32)"/><path d="M 151.03 252 A 16.97 8.49 0 0 0 156 258 L 332 346 A 16.97 8.49 0 0 0 356 346 L 532 258 A 16.97 8.49 0 0 0 536.97 252" fill="none" stroke="rgba(235,108,54,0.70)" stroke-width="0.8"/><path d="M 151.03 252 A 16.97 8.49 0 0 1 156 246 L 332 158 A 16.97 8.49 0 0 1 356 158 L 532 246 A 16.97 8.49 0 0 1 536.97 252 L 536.97 268 A 16.97 8.49 0 0 1 532 274 L 356 362 A 16.97 8.49 0 0 1 332 362 L 156 274 A 16.97 8.49 0 0 1 151.03 268 Z" fill="none" stroke="#eb6c36" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="542.97" y1="260" x2="588.97" y2="260" stroke="rgba(235,108,54,0.60)" stroke-width="0.8"/><circle cx="536.97" cy="260" r="2" fill="#eb6c36"/><text data-role="name" x="600.97" y="259" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Logic</text><text x="600.97" y="275" fill="#eb6c36" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">api, workers, queue</text></g></g>
+ <g data-part="interface" data-name="Interface" data-rect="0 0 200 200 12" data-z="232" data-t="16" data-level="2"><path data-role="silhouette" d="M 151.03 136 A 16.97 8.49 0 0 1 156 130 L 332 42 A 16.97 8.49 0 0 1 356 42 L 532 130 A 16.97 8.49 0 0 1 536.97 136 L 536.97 152 A 16.97 8.49 0 0 1 532 158 L 356 246 A 16.97 8.49 0 0 1 332 246 L 156 158 A 16.97 8.49 0 0 1 151.03 152 Z" fill="#ffffff"/><path d="M 151.03 136 A 16.97 8.49 0 0 0 156 142 L 332 230 A 16.97 8.49 0 0 0 344 232.49 L 344 248.49 A 16.97 8.49 0 0 1 332 246 L 156 158 A 16.97 8.49 0 0 1 151.03 152 Z" fill="rgba(45,49,66,0.07)"/><path d="M 344 232.49 A 16.97 8.49 0 0 0 356 230 L 532 142 A 16.97 8.49 0 0 0 536.97 136 L 536.97 152 A 16.97 8.49 0 0 1 532 158 L 356 246 A 16.97 8.49 0 0 1 344 248.49 Z" fill="rgba(45,49,66,0.15)"/><path d="M 151.03 136 A 16.97 8.49 0 0 0 156 142 L 332 230 A 16.97 8.49 0 0 0 356 230 L 532 142 A 16.97 8.49 0 0 0 536.97 136" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 151.03 136 A 16.97 8.49 0 0 1 156 130 L 332 42 A 16.97 8.49 0 0 1 356 42 L 532 130 A 16.97 8.49 0 0 1 536.97 136 L 536.97 152 A 16.97 8.49 0 0 1 532 158 L 356 246 A 16.97 8.49 0 0 1 332 246 L 156 158 A 16.97 8.49 0 0 1 151.03 152 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label"><line data-role="leader" x1="542.97" y1="144" x2="588.97" y2="144" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="536.97" cy="144" r="2" fill="#2d3142"/><text data-role="name" x="600.97" y="143" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Interface</text><text x="600.97" y="159" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">web app, mobile</text></g></g>
+ </g>
+ <text x="152" y="528" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.18em">FOCAL LAYER</text>
+ <text x="256" y="528" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif" font-style="italic">Logic is where the product decisions live; the other two layers are swappable.</text>
+ </svg>
+ </div>
+ </div>
+</body>
+</html>
diff --git a/skills/diagram-design/assets/index.html b/skills/diagram-design/assets/index.html
index cf11721..792614f 100644
--- a/skills/diagram-design/assets/index.html
+++ b/skills/diagram-design/assets/index.html
@@ -394,6 +394,21 @@
<button class="tab new" data-type="architecture-delta">
<span class="eyebrow">55</span>Architecture delta
</button>
+ <button class="tab new" data-type="exploded">
+ <span class="eyebrow">56</span>Exploded axonometric
+ </button>
+ <button class="tab new" data-type="exploded-phone" data-parent-type="exploded">
+ <span class="eyebrow">56</span>Exploded · phone
+ </button>
+ <button class="tab new" data-type="exploded-unboxing" data-parent-type="exploded">
+ <span class="eyebrow">56</span>Exploded · unboxing
+ </button>
+ <button class="tab new" data-type="exploded-phone-animated" data-parent-type="exploded" data-single>
+ <span class="eyebrow">56</span>Exploded · phone, animated
+ </button>
+ <button class="tab new" data-type="exploded-unboxing-animated" data-parent-type="exploded" data-single>
+ <span class="eyebrow">56</span>Exploded · unboxing, animated
+ </button>
</div>
<div
diff --git a/skills/diagram-design/references/animation.md b/skills/diagram-design/references/animation.md
index 7e32927..640b2a0 100644
--- a/skills/diagram-design/references/animation.md
+++ b/skills/diagram-design/references/animation.md
@@ -104,6 +104,8 @@ Use [`assets/template-motion.html`](../assets/template-motion.html) rather than
Motion does not raise the static diagram budget: ≤8 semantic steps (target 3–6), ≤12 marked items, ≤2 simultaneous reveals, ≤2 drawn paths, one flow-token loop, 160–600ms transitions, 400–1200ms holds, ≤24px translation, and 3–8s total autoplay.
+One scoped exception to the translation limit: a part in an exploded axonometric may travel straight up by exactly its explode distance, the declared `--lift` that `scripts/verify-exploded.py` checks against its geometry (`type-exploded.md`). Nothing else in that figure moves further than 24px, and every other type keeps the limit.
+
Declare `data-step-count`; do not infer steps from transition events. Set `--motion-total` to step count × `--motion-hold` and keep it within the 8-second budget. Use one `setTimeout` chain per root, derive its hold from `--motion-hold`, clear it on Pause/Replay/page hide and immediately after rendering the final step, and never use `setInterval` for semantic playback. Pause when `document.visibilityState` becomes hidden and do not catch up later. `?motion=step&step=N` may expose an exact zero-duration frame for visual regression only when `N` is a non-negative base-10 integer from 0 through `data-step-count`; missing, fractional, negative, and over-budget values leave normal playback in place.
The final-state capture contract is synchronous: `?motion=static`, `<html data-motion="static">`, or mode `none` exposes every semantic item, hides controls and decorative overlays, and sets `data-frame="static"`. Wait for `document.fonts.ready` before capture. Two captures from the same URL, viewport, fonts, and device scale must be pixel-identical; random delays, generated IDs, clocks, and runtime path measurement are forbidden.
diff --git a/skills/diagram-design/references/layout-budget.md b/skills/diagram-design/references/layout-budget.md
index 8a635a3..d2410f7 100644
--- a/skills/diagram-design/references/layout-budget.md
+++ b/skills/diagram-design/references/layout-budget.md
@@ -34,6 +34,7 @@ These are the per-type limits. The universal rows in SKILL.md §7 (9 nodes, 12 a
| Max org chart depth | 4 |
| Max org chart nodes | 12 |
| Max layers (layer stack) | 6 |
+| Max parts / levels / focal parts (exploded axonometric) | 5 / 5 / 1, three detail levels |
| Max circles (venn) | 3 |
| Max layers (pyramid) | 6 |
| Max radar axes | 5 |
diff --git a/skills/diagram-design/references/onboarding.md b/skills/diagram-design/references/onboarding.md
index ccb129d..d80c15d 100644
--- a/skills/diagram-design/references/onboarding.md
+++ b/skills/diagram-design/references/onboarding.md
@@ -161,7 +161,7 @@ Write the new tokens to `style-guide.md`. Suggest running the `/regenerate-examp
After onboarding, the user should:
-1. Open `assets/index.html` (gallery) and confirm the new palette feels coherent across all 42 types.
+1. Open `assets/index.html` (gallery) and confirm the new palette feels coherent across all 43 types.
2. If any type looks off, they usually need to tune `muted` (often too dark or too light against the new `paper`).
---
diff --git a/skills/diagram-design/references/semantic-patterns.md b/skills/diagram-design/references/semantic-patterns.md
index 17cd5bc..f551a60 100644
--- a/skills/diagram-design/references/semantic-patterns.md
+++ b/skills/diagram-design/references/semantic-patterns.md
@@ -1,6 +1,6 @@
# Semantic patterns
-Semantic patterns describe **what a system does**; the 42 visual types describe **how information is arranged**. Choose a pattern first when behavior, state, enforcement, or risk is load-bearing, then use its nearest visual type as the layout grammar. If no pattern matches, choose a visual type directly.
+Semantic patterns describe **what a system does**; the 43 visual types describe **how information is arranged**. Choose a pattern first when behavior, state, enforcement, or risk is load-bearing, then use its nearest visual type as the layout grammar. If no pattern matches, choose a visual type directly.
Use one primary pattern per figure. A second pattern may supply at most one supporting primitive; if both need full treatment, split overview and detail. Labels and outcomes must remain complete in a static frame.
diff --git a/skills/diagram-design/references/type-exploded.md b/skills/diagram-design/references/type-exploded.md
new file mode 100644
index 0000000..9caea89
--- /dev/null
+++ b/skills/diagram-design/references/type-exploded.md
@@ -0,0 +1,110 @@
+# Exploded axonometric
+
+**Best for:** one object or system drawn in parallel projection with its parts pulled apart along one axis and labelled. A device teardown (what is inside a phone), an unboxing (lid, product, insert, box), assembly order, or the layers of a stack when the reader should see them as physical parts of one thing.
+
+**Not this type:**
+
+- Ordered abstraction levels with a note on each row → **layer stack** (`type-layers.md`). A layer stack is flat bands of text; an exploded view is the parts of one object. If nothing in the figure has a footprint or a thickness, use the layer stack.
+- Components and the connections between them → **architecture** (`type-architecture.md`). An exploded view has no arrows; position along the axis is the only relationship.
+- Containment without an order → **nested** (`type-nested.md`).
+- Where software runs → **deployment** (`type-deployment.md`).
+
+## Projection
+
+2:1 dimetric. The ground axes run at 26.565 degrees, so every edge lands on whole pixels when model units are multiples of 4. World x runs right and down, y runs left and down, z runs up. Project every point with one function and never place a coordinate by hand:
+
+```python
+from math import sqrt
+
+def iso(x, y, z, ox, oy):
+ """Model point to SVG point. (ox, oy) is where model (0, 0, 0) lands."""
+ return ox + x - y, oy + (x + y) / 2 - z
+```
+
+A rounded-rectangle footprint of corner radius `r` projects to straight edges joined by quarter arcs of one ellipse with `rx = r * sqrt(2)` and `ry = r / sqrt(2)`. Use that one shape for everything: `r = 0` is a box or slab, a small `r` is a product corner, and `r = w / 2 = d / 2` is a cylinder. Corner centres stay fixed when you inset an outline, so an inner rim is the same four centres at a smaller radius.
+
+Draw faces as plain SVG `<path>` and `<polygon>` elements with the projected points written in. No CSS 3D, no canvas, no WebGL, and no `transform` to place geometry. If content ever has to sit flat on a face, the matrices that agree with `iso()` are `matrix(1,0.5,-1,0.5,tx,ty)` for the top face, `matrix(1,0.5,0,-1,tx,ty)` for the left face, and `matrix(-1,0.5,0,-1,tx,ty)` for the right face. Labels never use them: labels stay horizontal.
+
+`scripts/build-exploded-examples.py` in the repository builds every shipped example from this function and is the worked reference for the helpers below.
+
+## Layout conventions
+
+- **Parts:** 2 to 5, listed bottom to top. Each part is a rounded prism (`rect`, thickness `t`) plus at most two levels of detail on its top face, because the top face is the one the reader sees.
+- **Explode axis:** Vertical by default. Parts move straight up, nothing rotates, and the bottom part stays at `z = 0`.
+- **Levels:** Parts that sit side by side in the assembled object share a level and explode together. A phone's logic board and battery sit next to each other inside the housing, so they lift as one level instead of stacking two gaps apart.
+- **Gap:** One gap between every pair of levels, `gap = max(k x top-face height, 3 x thickness of the thickest solid part)`, rounded up to a multiple of 4. `k = 0.5` is the floor; raise it to `0.75` when a tall part would hide the focal part below it. Top-face height is `(w + d) / 2` of the largest footprint. Containers (a housing, a box) do not count toward thickness.
+- **Clearance:** If a leader would cross another part, or two labels would sit closer than 36px, raise the gap in steps of 4 until neither happens. Two parts on one level that collide cannot be fixed by the gap: move one of them in plan.
+- **Paint order:** Bottom level first. Inside a level, parts farther back (smaller `x + y`) paint first. A container is split: its back half (silhouette, rim, cavity, floor) paints before the parts that sit inside it, and its outer walls and front rim paint after them. This is the only way an assembled frame shows the parts inside a tray correctly, and it stays correct throughout an explode.
+- **Frame:** The canvas is 1000 wide. The object and a 240px label column are centred together; the viewBox height follows the exploded object plus a 40px top margin. Nothing is clipped at the closed frame either, because the closed object fits inside the exploded one.
+
+### Faces and lines
+
+| Element | Light | Dark |
+|---|---|---|
+| Face base (opaque, under every face) | `#ffffff` | `paper-2` `#393e53` |
+| Top face | base | base + `rgba(245,245,245,0.10)` |
+| Left face (lit side) | base + `rgba(45,49,66,0.07)` | base |
+| Right face (shade side) | base + `rgba(45,49,66,0.15)` | base + `rgba(45,49,66,0.45)` |
+| Focal part, top / left / right | `accent` at 0.10 / 0.20 / 0.32 over base | `accent` at 0.18 top, neutral sides |
+| Silhouette | `ink`, 1.2 (`stroke-strong`) | `ink`, 1.2 |
+| Inner edges (top-front rim, front corner) | `ink` at 0.55, 0.8 (`stroke-thin`) | `ink` at 0.45, 0.8 |
+| Detail lines on a face | `ink` at 0.55, 0.6 to 0.8 | same |
+| Trace lines | `ink` at 0.30, 0.8, dashed `4,3` | `ink` at 0.30, 0.8, dashed `4,3` |
+
+Light comes from the top left, so the left face is lighter than the right. Always shade: an outline-only box flips between two readings like a Necker cube. Faces are an opaque base plus an `ink` overlay, never a translucent fill on its own, so parts behind never show through. Trace lines run straight up through the left and right extremes of the bottom part's outline to the underside of the top part, and paint before every part so the parts cover them.
+
+### Labels
+
+- One label per part, in one column to the right of the object. A label is the part name (Geist 600, 16px, one or two words) above a technical sublabel (Geist Mono 10px, `muted`, tracked 0.08em).
+- A horizontal leader (0.8px, `ink` at 0.40) runs from 6px right of a 2px dot on the part's right extreme, at mid-thickness, to 12px left of the column. Leaders never bend, never cross a part, and never cross each other; horizontal leaders from distinct heights cannot cross each other, and the gap rule above keeps them clear of parts.
+- The focal part's dot, leader, and sublabel take the accent. Its name stays `ink`.
+- No numbered callouts and no legend. The label is on the part it names.
+
+### Detail
+
+Three levels at most: the form (the rounded prism), insets on its top face (a screen, a cell outline, a moulded well), and micro detail (chips, lenses, a logo mark). Clip any inset that could reach a face edge to that face, keep it 4 units or more inside the edge, and stop at three levels. No contact shadow: shadows are out in this skin (SKILL.md §4). If the object needs grounding, the bottom part already provides it.
+
+### Focal part
+
+One part at most wears the accent, under the SKILL.md rule of 1 to 2 focal elements. The other parts stay neutral; do not fade them with opacity, because a translucent part shows the edges behind it.
+
+## Optional motion
+
+An exploded view may open as the assembled object and explode once, because watching the parts lift shows how they fit together. Use the pinned controller from `assets/template-motion.html` in `reveal` mode, per `animation.md`:
+
+- The source file is the exploded frame. Every part group carries `data-motion-item`, a `data-step` counted from the top level down (top level lifts first), and `style="--lift:Npx"` where `N` is the part's exploded `z` minus its assembled `z`. In this projection a straight-up move in model space is a straight-up move on screen, so one `translateY(var(--lift))` is the whole explode.
+- The bottom level does not move. Its label and the trace lines arrive together as the last step.
+- Each part's label hides at the closed frame and fades in after its part settles. Hide instantly and delay only the reveal, or labels pile up on the closed object for the first half second.
+- No JavaScript, `prefers-reduced-motion: reduce`, print, `?motion=static`, and export all show the exploded frame.
+- The lift is the one scoped exception to the 24px translation limit in `animation.md`, recorded in the repository as ADR 0013. Nothing else in the figure moves.
+
+## Metadata contract
+
+`scripts/verify-exploded.py` reprojects each part from what it declares:
+
+- The figure: one `<g data-exploded data-origin="ox oy" data-gap="g">` wrapping every part.
+- Each part: a `<g>` with `data-part` (key), `data-name` (the label text), `data-rect="x0 y0 x1 y1 r"`, `data-z`, `data-t`, `data-level`, optional `data-kind="housing"` for a container and `data-focal` for the focal part. Animated parts add `data-closed-z`.
+- Inside each part: the first `<path data-role="silhouette">` is the part's outline at its declared box, and a `<g data-role="label">` holds a `<line data-role="leader">` and a `<text data-role="name">`.
+- Trace lines carry `data-role="trace"`.
+
+## Anti-patterns
+
+- Hand-placed coordinates, or a CSS `transform` standing in for geometry.
+- Outline-only parts with no face shading.
+- Parts that rotate, slide sideways, or explode along two axes in one figure.
+- Unequal gaps, or a gap shrunk to fit the canvas. Raise `k` or cut a part.
+- Labels on the parts, angled with a face, or spread across two columns.
+- Numbered callouts with a key underneath.
+- More than one part in the accent, or the other parts faded to show which one matters.
+- Blurred contact shadows, gradients on solid faces, or glow.
+- An exploded view of something with no physical sense of parts. If the layers are just a list, use the layer stack.
+
+## Examples
+
+- `assets/example-exploded.html`: app stack, minimal light
+- `assets/example-exploded-dark.html`: app stack, minimal dark
+- `assets/example-exploded-full.html`: app stack, full editorial
+- `assets/example-exploded-phone.html`, `-dark`, `-full`: phone teardown with a housing, a shared board and battery level, and a display
+- `assets/example-exploded-unboxing.html`, `-dark`, `-full`: packaging with a telescoping lid, a product and cable on one level, an insert, and a box
+- `assets/example-exploded-phone-animated.html`: the phone assembled, then exploded once
+- `assets/example-exploded-unboxing-animated.html`: the box closed, then unpacked once