Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
Add timeline page and 3D scene functionality
nirholas0fa866aed51c
diff --git a/.gitignore b/.gitignoreindex 8631cbe50..026d8398f 100644--- a/.gitignore+++ b/.gitignore@@ -389,6 +389,8 @@ prompts/robinhood-chain/11-toolkit-cli.md# archives at repo root are never committed/*.zip+# except the OpenAI Select Partner tier assets (owner-provided brand kit)+!/OAI Select Tier Assets-20260716T190344Z-1-001.ziptests/openai-comarketing-language.test.js# scratch OTP relay file used by scripts/get-mixamo-token.mjsdiff --git a/OAI Select Tier Assets-20260716T190344Z-1-001.zip b/OAI Select Tier Assets-20260716T190344Z-1-001.zipnew file mode 100644index 000000000..d54ae813eBinary files /dev/null and b/OAI Select Tier Assets-20260716T190344Z-1-001.zip differdiff --git a/OAI Select Tier Assets/[email protected] b/OAI Select Tier Assets/[email protected]new file mode 100644index 000000000..83f11187fBinary files /dev/null and b/OAI Select Tier Assets/[email protected] differdiff --git a/OAI Select Tier Assets/OpenAI Press Release Template for OpenAI Select Partners .docx b/OAI Select Tier Assets/OpenAI Press Release Template for OpenAI Select Partners .docxnew file mode 100644index 000000000..6b4564d79Binary files /dev/null and b/OAI Select Tier Assets/OpenAI Press Release Template for OpenAI Select Partners .docx differdiff --git a/OAI Select Tier Assets/PartnerNetwork_SelectPartner.svg b/OAI Select Tier Assets/PartnerNetwork_SelectPartner.svgnew file mode 100644index 000000000..89c1989b8--- /dev/null+++ b/OAI Select Tier Assets/PartnerNetwork_SelectPartner.svg@@ -0,0 +1,6 @@+<svg width="375" height="177" viewBox="0 0 375 177" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect x="1.5" y="1.5" width="372" height="174" rx="18.5" fill="white"/>+<rect x="1.5" y="1.5" width="372" height="174" rx="18.5" stroke="black" stroke-width="3"/>+<path d="M125.326 76.7565C127.658 68.0196 125.396 58.3113 118.542 51.4571C111.688 44.6032 101.981 42.3421 93.2431 44.6735C86.8419 38.2859 77.3046 35.39 67.9413 37.8991C58.5779 40.4077 51.7661 47.6847 49.4167 56.417C40.6845 58.7664 33.4074 65.579 30.8989 74.9415C28.3903 84.3048 31.2857 93.8421 37.6738 100.243C35.3424 108.98 37.6038 118.688 44.4577 125.543C51.3116 132.397 61.0194 134.658 69.7572 132.326C76.1581 138.714 85.6962 141.61 95.0587 139.101C104.422 136.593 111.234 129.316 113.583 120.584C122.316 118.234 129.593 111.422 132.101 102.059C134.61 92.6961 131.715 83.1574 125.326 76.7565ZM114.334 55.6663C118.979 60.311 120.894 66.6509 120.081 72.6946L98.2683 60.1008C97.8166 59.8399 97.3042 59.7026 96.7826 59.7026C96.2609 59.7026 95.7485 59.8399 95.2968 60.1008L69.7572 74.8459V65.1771C69.7575 64.8426 69.8455 64.5141 70.0124 64.2242C70.1793 63.9343 70.4192 63.6932 70.7083 63.525L90.1563 52.2969C97.862 47.9928 107.784 49.1167 114.334 55.6663ZM81.5001 74.94L93.2436 81.7202V95.2805L81.5001 102.061L69.7563 95.2805V81.7202L81.5001 74.94ZM54.4745 62.9023C54.5996 54.0774 60.5347 46.0459 69.4819 43.6483C75.8264 41.9486 82.2749 43.4598 87.1021 47.1855L65.2887 59.7787C64.8369 60.0395 64.4618 60.4146 64.201 60.8663C63.9402 61.318 63.8029 61.8304 63.803 62.352V91.8423L55.4296 87.0079C55.1401 86.8403 54.8995 86.5998 54.7319 86.3103C54.5643 86.0207 54.4756 85.6923 54.4745 85.3578V62.9023ZM36.6478 76.4821C38.3475 70.1378 42.8808 65.3084 48.5211 62.9912V88.1785C48.5211 89.2397 49.0874 90.221 50.0068 90.7518L75.5468 105.497L67.1731 110.332C66.8833 110.499 66.5548 110.587 66.2203 110.587C65.8858 110.587 65.5571 110.5 65.2669 110.334L45.8189 99.1057C38.2383 94.5846 34.251 85.4287 36.6478 76.4821ZM48.666 121.334C44.0212 116.69 42.106 110.35 42.9191 104.306L64.7317 116.9C65.1835 117.16 65.6959 117.298 66.2174 117.298C66.739 117.298 67.2513 117.16 67.7031 116.9L93.2431 102.155V111.823C93.2428 112.158 93.1548 112.486 92.9878 112.776C92.8209 113.066 92.5809 113.307 92.2917 113.476L72.8436 124.704C65.138 129.008 55.2162 127.884 48.666 121.334ZM108.525 114.098C108.4 122.923 102.465 130.955 93.5181 133.352C87.1735 135.052 80.725 133.541 75.8982 129.815L97.7113 117.222C98.163 116.961 98.5382 116.586 98.799 116.134C99.0598 115.682 99.1971 115.17 99.197 114.648V85.158L107.571 89.9927C107.86 90.1603 108.101 90.4009 108.268 90.6904C108.436 90.9799 108.524 91.3083 108.525 91.6428V114.098ZM126.352 100.518C124.652 106.863 120.119 111.692 114.479 114.009V88.8221C114.479 88.3005 114.342 87.7881 114.081 87.3363C113.82 86.8846 113.445 86.5095 112.993 86.2488L87.4532 71.5036L95.8268 66.6689C96.1167 66.502 96.4452 66.4139 96.7796 66.4135C97.1141 66.4131 97.4428 66.5004 97.7331 66.6666L117.181 77.8946C124.762 82.416 128.749 91.572 126.352 100.518Z" fill="black"/>+<path d="M195.685 37.115C202.65 37.115 208.32 42.785 208.32 49.75C208.32 56.715 202.65 62.385 195.685 62.385C188.72 62.385 183.05 56.715 183.05 49.75C183.05 42.785 188.72 37.115 195.685 37.115ZM195.755 57.835C199.955 57.835 203.42 54.475 203.42 49.75C203.42 45.025 199.955 41.665 195.755 41.665H195.615C191.415 41.665 187.95 45.025 187.95 49.75C187.95 54.475 191.415 57.835 195.615 57.835H195.755ZM210.747 69V44.5H215.297V46.32C216.312 45.13 218.167 44.115 220.617 44.115C225.517 44.115 229.297 48.14 229.297 53.25C229.297 58.36 225.517 62.385 220.617 62.385C218.167 62.385 216.312 61.37 215.297 60.18V69H210.747ZM220.022 58.36C222.577 58.36 224.747 56.365 224.747 53.285C224.747 50.205 222.577 48.14 220.022 48.14H219.882C217.327 48.14 215.157 50.205 215.157 53.285C215.157 56.365 217.327 58.36 219.882 58.36H220.022ZM240.092 62.385C234.912 62.385 231.132 58.64 231.132 53.32C231.132 48 235.122 44.115 240.092 44.115C245.062 44.115 248.912 47.685 248.912 53.6C248.912 53.985 248.912 54.37 248.877 54.79H235.682C235.752 56.4 237.292 58.71 239.917 58.71H240.057C241.982 58.71 243.452 57.66 244.047 56.505H248.667C247.862 59.2 245.097 62.385 240.092 62.385ZM244.257 51.465C244.117 49.61 242.507 47.79 240.057 47.79H239.917C237.677 47.79 236.067 49.575 235.717 51.465H244.257ZM251.455 62V44.5H256.005V46.32C256.985 45.165 258.805 44.115 261.08 44.115C265.175 44.115 267.905 46.845 267.905 51.395V62H263.355V51.955C263.355 49.54 261.99 48.175 259.855 48.175H259.715C257.51 48.175 256.005 50.135 256.005 52.69V62H251.455ZM269.489 62L279.534 37.5H285.064L294.864 62H289.754L287.654 56.645H276.559L274.424 62H269.489ZM278.204 52.445H286.009L282.124 42.575L278.204 52.445ZM296.541 62V37.5H301.371V62H296.541ZM193.06 101.385C186.305 101.385 183.05 97.955 182.84 93.16H187.53C187.705 95.47 189.245 97.185 193.095 97.185H193.235C196.28 97.185 198.24 96.065 198.24 94.07C198.24 92.635 197.33 91.55 194.495 91.06L190.4 90.36C185.36 89.485 183.365 87.21 183.365 83.465C183.365 79.51 186.76 76.115 192.64 76.115C198.87 76.115 202.58 79.72 202.755 84.165H198.03C197.68 81.89 195.965 80.315 192.64 80.315H192.5C189.63 80.315 188.02 81.54 188.02 83.255C188.02 84.83 188.895 85.6 191.415 86.02L195.72 86.72C200.34 87.455 202.965 90.01 202.965 93.965C202.965 98.34 199.185 101.385 193.06 101.385ZM213.603 101.385C208.423 101.385 204.643 97.64 204.643 92.32C204.643 87 208.633 83.115 213.603 83.115C218.573 83.115 222.423 86.685 222.423 92.6C222.423 92.985 222.423 93.37 222.388 93.79H209.193C209.263 95.4 210.803 97.71 213.428 97.71H213.568C215.493 97.71 216.963 96.66 217.558 95.505H222.178C221.373 98.2 218.608 101.385 213.603 101.385ZM217.768 90.465C217.628 88.61 216.018 86.79 213.568 86.79H213.428C211.188 86.79 209.578 88.575 209.228 90.465H217.768ZM224.966 101V76.5H229.516V101H224.966ZM241.041 101.385C235.861 101.385 232.081 97.64 232.081 92.32C232.081 87 236.071 83.115 241.041 83.115C246.011 83.115 249.861 86.685 249.861 92.6C249.861 92.985 249.861 93.37 249.826 93.79H236.631C236.701 95.4 238.241 97.71 240.866 97.71H241.006C242.931 97.71 244.401 96.66 244.996 95.505H249.616C248.811 98.2 246.046 101.385 241.041 101.385ZM245.206 90.465C245.066 88.61 243.456 86.79 241.006 86.79H240.866C238.626 86.79 237.016 88.575 236.666 90.465H245.206ZM260.804 101.385C255.694 101.385 251.669 97.395 251.669 92.25C251.669 87.105 255.764 83.115 260.804 83.115C265.809 83.115 269.134 86.615 269.554 90.115H264.934C264.374 88.225 262.799 87.14 260.874 87.14H260.734C258.319 87.14 256.219 89.1 256.219 92.215C256.219 95.33 258.319 97.36 260.734 97.36H260.874C262.694 97.36 264.304 96.17 264.899 94.315H269.554C268.749 98.34 265.179 101.385 260.804 101.385ZM278.688 101C275.328 101 273.578 99.18 273.578 95.89V87.245H269.903V83.5H273.578V77.9H278.128V83.5H282.503V87.245H278.128V95.12C278.128 96.66 278.618 97.15 280.193 97.15H282.678V101H278.688ZM184.38 140V115.5H195.475C200.2 115.5 203.665 118.475 203.665 123.2C203.665 127.925 200.2 130.9 195.475 130.9H189.105V140H184.38ZM195.125 126.7C197.295 126.7 198.835 125.3 198.835 123.2C198.835 121.1 197.295 119.7 195.125 119.7H189.105V126.7H195.125ZM210.565 140.385C206.89 140.385 204.475 138.25 204.475 134.96C204.475 131.635 206.96 129.85 211.335 129.465L216.165 129.045V128.59C216.165 126.91 214.94 125.825 212.77 125.825H212.63C210.705 125.825 209.515 126.735 209.235 127.82H204.825C205.21 124.81 208.255 122.115 212.84 122.115C217.705 122.115 220.505 124.915 220.505 128.975V136.08C220.505 137.27 220.575 138.81 220.785 140H216.55C216.375 139.335 216.305 138.6 216.27 138.075C215.22 139.3 213.05 140.385 210.565 140.385ZM211.685 136.71C213.96 136.71 216.165 135.345 216.165 132.72V132.335L211.685 132.755C209.585 132.965 208.78 133.7 208.78 134.82C208.78 136.01 209.83 136.71 211.58 136.71H211.685ZM224.154 140V122.5H228.704V125.09C229.474 123.585 231.714 122.29 234.199 122.29H234.934V126.49H233.919C230.804 126.49 228.704 128.415 228.704 131.95V140H224.154ZM245.084 140C241.724 140 239.974 138.18 239.974 134.89V126.245H236.299V122.5H239.974V116.9H244.524V122.5H248.899V126.245H244.524V134.12C244.524 135.66 245.014 136.15 246.589 136.15H249.074V140H245.084ZM251.685 140V122.5H256.235V124.32C257.215 123.165 259.035 122.115 261.31 122.115C265.405 122.115 268.135 124.845 268.135 129.395V140H263.585V129.955C263.585 127.54 262.22 126.175 260.085 126.175H259.945C257.74 126.175 256.235 128.135 256.235 130.69V140H251.685ZM279.658 140.385C274.478 140.385 270.698 136.64 270.698 131.32C270.698 126 274.688 122.115 279.658 122.115C284.628 122.115 288.478 125.685 288.478 131.6C288.478 131.985 288.478 132.37 288.443 132.79H275.248C275.318 134.4 276.858 136.71 279.483 136.71H279.623C281.548 136.71 283.018 135.66 283.613 134.505H288.233C287.428 137.2 284.663 140.385 279.658 140.385ZM283.823 129.465C283.683 127.61 282.073 125.79 279.623 125.79H279.483C277.243 125.79 275.633 127.575 275.283 129.465H283.823ZM291.021 140V122.5H295.571V125.09C296.341 123.585 298.581 122.29 301.066 122.29H301.801V126.49H300.786C297.671 126.49 295.571 128.415 295.571 131.95V140H291.021Z" fill="black"/>+</svg>diff --git a/STRUCTURE.md b/STRUCTURE.mdindex 496d92e55..55741439c 100644--- a/STRUCTURE.md+++ b/STRUCTURE.md@@ -142,6 +142,7 @@ bottom.| Meta-Allocator (the ETF of degens) | [pages/meta-allocator.html](pages/meta-allocator.html) + [src/meta-allocator.js](src/meta-allocator.js) `→ /meta-allocator`, brain [api/_lib/meta-allocator.js](api/_lib/meta-allocator.js), endpoint [api/meta-allocator.js](api/meta-allocator.js) | Live (non-custodial planning) | Spreads a budget across the top verified pump.fun leader agents, ranked by risk-adjusted on-chain track record (win rate, realized ROI, peak-to-trough max drawdown from `agent_sniper_positions`) and diversified across derived correlation groups, then returns a rebalance rule. Free-first `llmComplete` shaping with a deterministic same-shape fallback so it never fails. Returns a plan (weights + suggested sizes), never a transaction; users act one leader at a time via [/vaults](pages/vaults.html). Doc: [docs/meta-allocator.md](docs/meta-allocator.md). || Clip Director (content engine) | [pages/clip-director.html](pages/clip-director.html) + [src/clip-director-page.js](src/clip-director-page.js) `→ /clip-director`, brain [api/_lib/clip-director.js](api/_lib/clip-director.js), endpoint [api/clip-director.js](api/clip-director.js) | Live | Turns one real closed trade (`agent_sniper_positions`) into the optimal shareable card per surface (X / Telegram / Feed): honest hook, the real number, an avatar gesture mapped to a real animation clip, CTA, and alt text, plus an on-chain proof link. Losses get an honest card too. Free-first `llmComplete` with a deterministic same-shape fallback. Doc: [docs/clip-director.md](docs/clip-director.md). || Internationalization (i18n) | Runtime [src/i18n.js](src/i18n.js) `→ /i18n.js`; catalogs [public/locales/](public/locales) (`en` + 40 locales, `manifest.json`, `localized-pages.json`); pipeline [scripts/i18n-annotate.mjs](scripts/i18n-annotate.mjs) · [i18n-extract.mjs](scripts/i18n-extract.mjs) · [i18n-translate.mjs](scripts/i18n-translate.mjs) (Vertex Gemini, glossary-locked); hreflang in [api/sitemap/[type].js](api/sitemap/%5Btype%5D.js) | Live (41 languages) | LobeHub-model client-side copy swap. `npm run i18n:annotate` auto-injects `data-i18n*` into static HTML (byte-surgical), `i18n:extract` builds `en.json`, `i18n:translate` fans it out to every locale via Vertex with brand/protocol terms masked. Runtime auto-detects locale, mounts a floating `<lang-switcher>`, and injects hreflang. Doc: [docs/i18n.md](docs/i18n.md). Tests: [tests/i18n.test.js](tests/i18n.test.js), [tests/i18n-annotate.test.js](tests/i18n-annotate.test.js). |+| Interactive 3D history timeline | [pages/timeline.html](pages/timeline.html) `→ /timeline`, [src/timeline.js](src/timeline.js), data [data/timeline.json](data/timeline.json) | Live | three.ws's public history (launches, partnerships, listings, press, product ships) as an explorable 3D scene: 60+ milestones as glowing markers along a curved path, 360° free-orbit or a marker-to-marker Walk mode with a guide beacon (reuses the shared `AnimationManager` + default rig from [src/walk.js](src/walk.js)'s pattern), a synced bottom scrubber, category filters, and a detail panel linking to the original source where one exists (IBM Community, NVIDIA Developer Forums, Yahoo Finance, Phemex, CoinGecko, HackerNoon). Real accessible HTML-list fallback for no-WebGL or fetch-failure. |## npm workspacesdiff --git a/data/pages.json b/data/pages.jsonindex fe06ef5e6..62bcecfd9 100644--- a/data/pages.json+++ b/data/pages.json@@ -254,6 +254,14 @@"changefreq": "monthly","added": "2026-06-22"},+ {+ "path": "/timeline",+ "title": "The Story So Far",+ "description": "three.ws's history as an explorable 3D scene: every launch, partnership, listing, and milestone laid out along a path you can orbit in 360° or walk end to end, with a synced scrubber and source links.",+ "priority": 0.6,+ "changefreq": "weekly",+ "added": "2026-07-25"+ },{"path": "/tour","title": "Guided Tour",diff --git a/data/timeline.json b/data/timeline.jsonnew file mode 100644index 000000000..32d311928--- /dev/null+++ b/data/timeline.json@@ -0,0 +1,75 @@+{+ "$comment": "Data for the interactive 3D history timeline at /timeline (src/timeline.js). Events are chronological milestones in three.ws's public history — launches, partnerships, listings, press, and product ships — assembled from the @nichxbt / @trythreews X history and corroborating third-party sources (IBM Community, NVIDIA Developer Forums, HackerNoon, Yahoo Finance, Phemex, CoinGecko). `importance` (1-5) drives visual scale/prominence along the 3D path; `category` drives marker color. `source_url` is null when the sole source is the X post history rather than a fetchable third-party page.",+ "categories": {+ "launch": { "label": "Launch", "color": "#7dd3fc" },+ "partnership": { "label": "Partnership", "color": "#c4b5fd" },+ "milestone": { "label": "Milestone", "color": "#fbbf6d" },+ "listing": { "label": "Listing", "color": "#86efac" },+ "press": { "label": "Press", "color": "#f9a8d4" },+ "product": { "label": "Product", "color": "#93c5fd" }+ },+ "events": [+ { "id": "2026-04-28-soft-launch", "date": "2026-04-28", "title": "three.ws soft-launches", "category": "launch", "summary": "Founder @nichxbt posts \"Build your AI character in seconds,\" the first public reveal of three.ws, a platform for creating, owning, and monetizing 3D AI agents on Solana.", "source_url": null, "importance": 5 },+ { "id": "2026-04-28-npm-github", "date": "2026-04-28", "title": "npm package and GitHub repo go live", "category": "product", "summary": "The three.ws npm package publishes and the GitHub repository (nirholas/three.ws) goes public, opening the SDK and framework to developers.", "source_url": null, "importance": 3 },+ { "id": "2026-04-29-mcp-submitted", "date": "2026-04-29", "title": "MCP server submitted to Anthropic registry", "category": "product", "summary": "three.ws submits its Model Context Protocol server for listing in Anthropic's official MCP registry.", "source_url": null, "importance": 3 },+ { "id": "2026-04-29-google-cloud", "date": "2026-04-29", "title": "Google Cloud partnership announced", "category": "partnership", "summary": "three.ws announces participation in the Google Cloud for Web3 Startups program.", "source_url": null, "importance": 4 },+ { "id": "2026-04-29-x402scan", "date": "2026-04-29", "title": "x402scan listing", "category": "listing", "summary": "three.ws's x402 paid endpoints get listed on x402scan, an index of x402-protocol payment services.", "source_url": null, "importance": 2 },+ { "id": "2026-05-01-officially-live", "date": "2026-05-01", "title": "three.ws goes officially live", "category": "launch", "summary": "@trythreews declares the platform officially live to the public.", "source_url": null, "importance": 4 },+ { "id": "2026-05-01-spotify", "date": "2026-05-01", "title": "Podcast launches on Spotify", "category": "product", "summary": "A three.ws-branded podcast launches on Spotify.", "source_url": null, "importance": 2 },+ { "id": "2026-05-01-amazon-music", "date": "2026-05-01", "title": "Podcast launches on Amazon Music", "category": "product", "summary": "The same podcast becomes available on Amazon Music.", "source_url": null, "importance": 1 },+ { "id": "2026-05-03-seeker-preview", "date": "2026-05-03", "title": "Solana Seeker 3D preview", "category": "product", "summary": "three.ws previews 3D agent rendering on the Solana Seeker device.", "source_url": null, "importance": 2 },+ { "id": "2026-05-03-ath-low", "date": "2026-05-03", "title": "$THREE hits all-time low after launch", "category": "milestone", "summary": "Per CoinGecko historical data, $THREE (FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump), launched via pump.fun on Solana, records its all-time low of $0.00005259 shortly after going live.", "source_url": "https://www.coingecko.com/en/coins/three-ws", "importance": 2 },+ { "id": "2026-05-05-sperax", "date": "2026-05-05", "title": "SperaxOS integration ships", "category": "partnership", "summary": "three.ws agents get animated 3D avatars inside chat.sperax.io via a custom plugin (render_agent, speak, gesture, emote); Sperax offered free AI credits to three.ws users during rollout.", "source_url": "https://community.ibm.com/community/user/discussion/speraxos-threews-give-your-ai-agents-a-real-3d-body-inside-sperax-chat", "importance": 3 },+ { "id": "2026-05-07-claude-marketplace", "date": "2026-05-07", "title": "Claude marketplace submission", "category": "product", "summary": "three.ws is submitted for listing in Anthropic's Claude marketplace.", "source_url": null, "importance": 2 },+ { "id": "2026-05-09-vanity-addresses", "date": "2026-05-09", "title": "Agent wallet vanity addresses", "category": "product", "summary": "three.ws adds vanity address generation for agent wallets.", "source_url": null, "importance": 2 },+ { "id": "2026-05-11-pumpfun-sdk-re", "date": "2026-05-11", "title": "pump.fun agent payments SDK reverse-engineered", "category": "product", "summary": "The team reverse-engineers pump.fun's agent payments SDK ahead of a formal integration.", "source_url": null, "importance": 3 },+ { "id": "2026-05-13-pumpfun-sdk-viral", "date": "2026-05-13", "title": "pump.fun agent payments integration goes viral", "category": "product", "summary": "A post detailing the pump.fun agent payments SDK integration draws significant engagement on X.", "source_url": null, "importance": 3 },+ { "id": "2026-05-15-hackernoon-partnership", "date": "2026-05-15", "title": "HackerNoon content partnership", "category": "partnership", "summary": "three.ws establishes a content partnership with HackerNoon.", "source_url": null, "importance": 2 },+ { "id": "2026-05-16-agent-3d-widget", "date": "2026-05-16", "title": "<agent-3d> embed widget launches", "category": "product", "summary": "three.ws ships the <agent-3d> web component, letting any website embed a live, animated 3D agent with two lines of HTML.", "source_url": null, "importance": 4 },+ { "id": "2026-05-17-cmc-community", "date": "2026-05-17", "title": "CoinMarketCap community listing", "category": "listing", "summary": "$THREE's community page goes live on CoinMarketCap.", "source_url": null, "importance": 2 },+ { "id": "2026-05-19-dappbay", "date": "2026-05-19", "title": "BNB Chain / DappBay listing", "category": "listing", "summary": "three.ws gets listed on DappBay, a BNB Chain dApp directory.", "source_url": null, "importance": 2 },+ { "id": "2026-05-20-coinbase-x402", "date": "2026-05-20", "title": "Coinbase x402 Bazaar verification", "category": "listing", "summary": "three.ws's x402 endpoints are verified in Coinbase's x402 Bazaar.", "source_url": null, "importance": 3 },+ { "id": "2026-05-21-metamask", "date": "2026-05-21", "title": "MetaMask Agent Wallet Early Access", "category": "partnership", "summary": "three.ws gains Early Access to the MetaMask Agent Wallet program.", "source_url": null, "importance": 3 },+ { "id": "2026-05-22-mcp-official", "date": "2026-05-22", "title": "Anthropic MCP Registry official listing", "category": "listing", "summary": "three.ws's MCP server (io.github.nirholas/3d-agent-mcp) is officially listed in Anthropic's MCP Registry.", "source_url": null, "importance": 4 },+ { "id": "2026-05-24-aws", "date": "2026-05-24", "title": "AWS Partner Network + AWS Marketplace listing", "category": "listing", "summary": "three.ws joins the AWS Partner Network and lists on AWS Marketplace.", "source_url": null, "importance": 4 },+ { "id": "2026-05-26-producthunt", "date": "2026-05-26", "title": "ProductHunt launch", "category": "launch", "summary": "three.ws launches on ProductHunt in an attempt at the #1 Product of the Day spot.", "source_url": null, "importance": 3 },+ { "id": "2026-05-28-hackernoon-score", "date": "2026-05-28", "title": "HackerNoon Proof of Usefulness score: 78.1", "category": "press", "summary": "HackerNoon publishes \"three.ws Earns a 78.1 Proof of Usefulness Score by Building Embeddable 3D AI Agents.\"", "source_url": "https://hackernoon.com/threews-earns-a-781-proof-of-usefulness-score-by-building-embeddable-3d-ai-agents", "importance": 3 },+ { "id": "2026-05-28-chatgpt-studio", "date": "2026-05-28", "title": "ChatGPT 3D Studio GPT launches", "category": "product", "summary": "three.ws ships a custom GPT (\"3D Studio\") for ChatGPT/OpenAI's GPT store.", "source_url": null, "importance": 3 },+ { "id": "2026-06-01-ibm-partnership", "date": "2026-06-01", "title": "IBM partnership announced", "category": "partnership", "summary": "IBM and three.ws announce a partnership integrating three.ws's 3D AI agents with IBM's enterprise foundation models (Granite family), watsonx.ai, hybrid cloud infrastructure, and Guardian governance/trust tooling, targeting regulated industries.", "source_url": "https://finance.yahoo.com/sectors/technology/articles/ibm-extends-ai-narrative-three-010650764.html", "importance": 5 },+ { "id": "2026-06-04-50x-surge", "date": "2026-06-04", "title": "$THREE surges 50x on IBM news", "category": "milestone", "summary": "Per Phemex, $THREE's market cap jumps roughly 50x from about $300,000 to a peak of $16.38 million after IBM's official X account engaged with partnership content; CoinGecko records the token's all-time high of $0.01540 the same day.", "source_url": "https://phemex.com/news/article/threews-token-surges-50x-following-ibm-collaboration-announcement-88153", "importance": 5 },+ { "id": "2026-06-05-animations-studio", "date": "2026-06-05", "title": "Animations & Poses Studio launches", "category": "product", "summary": "three.ws ships a dedicated studio for browsing and applying animation clips and poses to agents.", "source_url": null, "importance": 3 },+ { "id": "2026-06-07-333-avatars", "date": "2026-06-07", "title": "Metaplex Core Agent Registry: 333 avatars inscribed", "category": "milestone", "summary": "The first 333 three.ws avatars are permanently inscribed on-chain via a Metaplex Core agent registry.", "source_url": null, "importance": 3 },+ { "id": "2026-06-09-quicknode", "date": "2026-06-09", "title": "QuickNode Startup Program", "category": "partnership", "summary": "three.ws is accepted into the QuickNode Startup Program for RPC infrastructure.", "source_url": null, "importance": 2 },+ { "id": "2026-06-10-zauth", "date": "2026-06-10", "title": "zAuth cybersecurity partnership", "category": "partnership", "summary": "three.ws partners with zAuth on cybersecurity.", "source_url": null, "importance": 2 },+ { "id": "2026-06-11-ibm-open-platform", "date": "2026-06-11", "title": "IBM blog: \"The Open On-Chain Platform for 3D Agents\"", "category": "press", "summary": "IBM Community post describes three.ws as an open-source platform for persistent, ownable, on-chain AI agents; cites almost 5,000 GitHub commits, four agent memory modes, and ERC-8004/Metaplex identity.", "source_url": "https://community.ibm.com/community/user/blogs/jessica-swanson/2026/06/11/threews-the-open-on-chain-platform-for-3d-agents", "importance": 3 },+ { "id": "2026-06-11-second-species", "date": "2026-06-11", "title": "IBM discussion: \"The Internet's Second Species Has Arrived\"", "category": "press", "summary": "An IBM Community post frames three.ws as producing the first production-ready embodied AI agents: three.js/glTF rendering, text-to-3D pipelines, ARKit-style lip-sync, WebXR/AR, and x402 USDC settlement on Solana and Base.", "source_url": "https://community.ibm.com/community/user/discussion/the-internets-second-species-has-arrived-how-threews-built-it", "importance": 3 },+ { "id": "2026-06-15-vogue", "date": "2026-06-15", "title": "Vogue Magazine feature", "category": "press", "summary": "Vogue Magazine covers $THREE, described as the first crypto project to be featured in the publication.", "source_url": null, "importance": 4 },+ { "id": "2026-06-18-dgx-spark", "date": "2026-06-18", "title": "NVIDIA DGX Spark local inference demos", "category": "product", "summary": "three.ws demonstrates local model inference running on NVIDIA DGX Spark hardware.", "source_url": null, "importance": 3 },+ { "id": "2026-06-24-ibm-strategic-partner", "date": "2026-06-24", "title": "IBM names three.ws a Strategic Partner, live build event", "category": "press", "summary": "IBM's \"Spotlight\" post confirms three.ws as an IBM Strategic Partner and recaps a livestreamed build (on IBM Cloud, powered by Granite via watsonx.ai) generating a 3D agent in about 30 minutes: universal rig with 100+ motion clips, 52 facial blendshapes, 38 MCP servers operational, 18 @three-ws SDK packages on npm.", "source_url": "https://community.ibm.com/community/user/blogs/jessica-swanson/2026/06/24/spotlight-three-ws-ibm-strategic-partner", "importance": 5 },+ { "id": "2026-06-24-alibaba-cloud", "date": "2026-06-24", "title": "Alibaba Cloud Marketplace listing", "category": "listing", "summary": "three.ws lists on Alibaba Cloud Marketplace, per IBM's spotlight post and its earlier June 11 blog.", "source_url": null, "importance": 3 },+ { "id": "2026-06-27-5000-commits", "date": "2026-06-27", "title": "5,000 GitHub commits milestone", "category": "milestone", "summary": "three.ws's GitHub repository crosses 5,000 commits.", "source_url": null, "importance": 3 },+ { "id": "2026-06-28-agent-to-agent-payments", "date": "2026-06-28", "title": "Agent-to-agent payments go live", "category": "product", "summary": "three.ws ships live agent-to-agent USDC payments over x402.", "source_url": null, "importance": 4 },+ { "id": "2026-07-01-vscode-x402", "date": "2026-07-01", "title": "VS Code x402 extension", "category": "product", "summary": "three.ws ships a VS Code extension for working with the x402 payment protocol.", "source_url": null, "importance": 3 },+ { "id": "2026-07-03-nvidia-inception", "date": "2026-07-03", "title": "NVIDIA Inception Program acceptance", "category": "partnership", "summary": "three.ws is accepted into the NVIDIA Inception Program for startups.", "source_url": null, "importance": 5 },+ { "id": "2026-07-05-nvidia-dev-program", "date": "2026-07-05", "title": "NVIDIA Developer Program", "category": "partnership", "summary": "three.ws joins the NVIDIA Developer Program.", "source_url": null, "importance": 2 },+ { "id": "2026-07-07-markets-launch", "date": "2026-07-07", "title": "/markets crypto intelligence platform launches", "category": "launch", "summary": "three.ws launches /markets, a crypto market intelligence surface on the platform.", "source_url": null, "importance": 4 },+ { "id": "2026-07-08-3000-animations", "date": "2026-07-08", "title": "3,000+ animations library milestone", "category": "milestone", "summary": "three.ws's animation clip library surpasses 3,000 entries.", "source_url": null, "importance": 2 },+ { "id": "2026-07-09-robinhood-tools", "date": "2026-07-09", "title": "Robinhood tools published", "category": "product", "summary": "three.ws publishes Robinhood-integrated tools alongside a multichain positioning statement.", "source_url": null, "importance": 3 },+ { "id": "2026-07-10-nemotron-pipeline", "date": "2026-07-10", "title": "NVIDIA forum: Nemotron models power the text-to-3D pipeline", "category": "press", "summary": "An NVIDIA Developer Forums post explains how small Nemotron models act as validators and safety/reasoning layers in front of the Microsoft TRELLIS text-to-3D generator on NVIDIA NIM: 12-13 second generations, ~340ms content-safety latency.", "source_url": "https://forums.developer.nvidia.com/t/how-nemotron-made-three-ws-text-to-3d-pipeline-usable/376445", "importance": 3 },+ { "id": "2026-07-11-ibm-community-corner", "date": "2026-07-11", "title": "IBM corner/community launch", "category": "partnership", "summary": "three.ws's dedicated corner/community space launches on IBM Community.", "source_url": "https://community.ibm.com/community/user/usergroup?CommunityKey=e71510cc-d953-408f-9a1c-019f5c0a7016", "importance": 3 },+ { "id": "2026-07-13-huggingface", "date": "2026-07-13", "title": "Hugging Face PRO listing, #1 trending", "category": "listing", "summary": "three.ws lists on Hugging Face PRO and reaches #1 trending.", "source_url": null, "importance": 4 },+ { "id": "2026-07-14-ibm-user-group", "date": "2026-07-14", "title": "IBM launches the three.ws User Group", "category": "press", "summary": "IBM Community announces the three.ws User Group, a space for developers building 3D AI agents, covering generative 3D, spatial reasoning, and agentic pipelines.", "source_url": "https://community.ibm.com/community/user/blogs/jessica-swanson/2026/07/14/welcome-to-the-threews-user-group-building-ai-agen", "importance": 3 },+ { "id": "2026-07-14-ibm-platform-tour", "date": "2026-07-14", "title": "IBM discussion: full platform tour", "category": "press", "summary": "An IBM Community post gives a full tour of three.ws: free text-to-3D at /forge, auto-rigging across Mixamo/VRM/Avaturn/MakeHuman, the <agent-3d> embed component, and a multiplayer world at /play.", "source_url": "https://community.ibm.com/community/user/discussion/welcome-to-the-threews-ibm-community-a-full-tour-of-the-platform-start-here", "importance": 2 },+ { "id": "2026-07-15-openai-partner-network", "date": "2026-07-15", "title": "OpenAI Partner Network + ChatGPT 3D Studio", "category": "partnership", "summary": "three.ws joins the OpenAI Partner Network alongside its ChatGPT 3D Studio GPT presence.", "source_url": null, "importance": 4 },+ { "id": "2026-07-15-coinbase-listing", "date": "2026-07-15", "title": "Coinbase listing", "category": "listing", "summary": "$THREE gets listed on Coinbase.", "source_url": null, "importance": 4 },+ { "id": "2026-07-16-100-languages", "date": "2026-07-16", "title": "100+ language localization ships", "category": "product", "summary": "three.ws ships full platform localization into 100+ languages, including right-to-left scripts.", "source_url": null, "importance": 4 },+ { "id": "2026-07-16-ibm-10-generators", "date": "2026-07-16", "title": "IBM blog: \"10 Best Free AI 3D Model Generators\"", "category": "press", "summary": "IBM Community blog walks through ten three.ws features: Forge, rigged avatars, the <agent-3d> embed with lip-sync, x402 payments, MCP integration, Diorama scenes, and the /play multiplayer world.", "source_url": "https://community.ibm.com/community/user/blogs/nich8/2026/07/16/threews-the-free-ai-3d-model-generators-10-best", "importance": 2 },+ { "id": "2026-07-17-ibm-forge-walkthrough", "date": "2026-07-17", "title": "IBM discussion: Forge walkthrough tutorial", "category": "press", "summary": "An IBM Community tutorial walks through three.ws Forge's text/photo/sketch-to-3D modes and its three quality tiers: Draft, Standard, and High.", "source_url": "https://community.ibm.com/community/user/discussion/type-a-sentence-get-a-3d-model-a-hands-on-walkthrough-of-the-threews-forge-user-perspective", "importance": 2 },+ { "id": "2026-07-18-nvidia-inception-public", "date": "2026-07-18", "title": "NVIDIA Inception public announcement", "category": "partnership", "summary": "three.ws's NVIDIA Inception Program acceptance is publicly announced.", "source_url": null, "importance": 4 },+ { "id": "2026-07-18-jensen-huang", "date": "2026-07-18", "title": "Jensen Huang interaction", "category": "press", "summary": "NVIDIA CEO Jensen Huang interacts with three.ws content, amplifying the NVIDIA Inception announcement.", "source_url": null, "importance": 3 },+ { "id": "2026-07-18-ibm-embeddable-agent", "date": "2026-07-18", "title": "IBM discussion: text-prompt-to-embeddable-agent tutorial", "category": "press", "summary": "An IBM Community tutorial walks through going from a text prompt to a fully embeddable 3D agent: free GLB generation, mobile AR viewing, auto-rigging, and embedding via the <agent-3d> element.", "source_url": "https://community.ibm.com/community/user/discussion/from-a-text-prompt-to-an-embeddable-3d-agent-step-by-step", "importance": 1 },+ { "id": "2026-07-19-nvidia-i18n-pipeline", "date": "2026-07-19", "title": "NVIDIA forum: 100+ language i18n pipeline detailed", "category": "press", "summary": "An NVIDIA Developer Forums post details the localization pipeline behind the July 16 launch: NVIDIA NIM running Llama 3.3 70B Instruct with sentinel masking, incremental diffing, and explicit right-to-left handling.", "source_url": "https://forums.developer.nvidia.com/t/how-three-ws-translates-a-web-app-into-100-languages-with-nvidia-nim-an-llm-powered-i18n-pipeline/377379", "importance": 3 },+ { "id": "2026-07-20-quicknode-followup", "date": "2026-07-20", "title": "QuickNode Startup Program (follow-up post)", "category": "product", "summary": "@trythreews posts a follow-up on the QuickNode Startup Program relationship first established June 9.", "source_url": null, "importance": 1 },+ { "id": "2026-07-24-500-props", "date": "2026-07-24", "title": "500+ free 3D props library milestone", "category": "milestone", "summary": "three.ws's free 3D props library surpasses 500 items.", "source_url": null, "importance": 2 }+ ]+}diff --git a/pages/timeline.html b/pages/timeline.htmlnew file mode 100644index 000000000..066d70b09--- /dev/null+++ b/pages/timeline.html@@ -0,0 +1,91 @@+<!doctype html>+<html lang="en">+ <head>+ <script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>+ <meta charset="utf-8" />+ <title data-i18n="timeline.meta_title">The Story So Far — three.ws Timeline</title>+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <meta name="theme-color" content="#04050a" />+ <meta name="description" content="Walk three.ws's history in 3D: every launch, partnership, listing, and milestone from soft-launch to today, laid out as a path you can orbit in 360° or walk end to end." data-i18n-attr="content:timeline.meta_description" />++ <meta property="og:type" content="website">+ <meta property="og:url" content="https://three.ws/timeline">+ <meta property="og:title" content="The Story So Far — three.ws Timeline" data-i18n-attr="content:timeline.meta_og_title">+ <meta property="og:description" content="Every three.ws milestone, in one explorable 3D timeline." data-i18n-attr="content:timeline.meta_og_description">+ <meta property="og:image" content="https://three.ws/og-image.png">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta name="twitter:card" content="summary_large_image">+ <meta name="twitter:image" content="https://three.ws/og-image.png">+ <link rel="canonical" href="https://three.ws/timeline" />++ <link rel="icon" href="/favicon.ico" sizes="any" />+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />+ <link rel="manifest" href="/manifest.webmanifest" />+ <link rel="stylesheet" href="/style.css" />+ <link rel="stylesheet" href="/fonts/fonts.css" />+ <style>+ html, body { overflow: hidden; }+ body { display: flex; flex-direction: column; min-height: 100vh; background: #04050a; }++ .tl-header {+ display: flex; align-items: center; gap: 1rem;+ padding: 0.7rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08);+ flex: none; z-index: 30; background: rgba(6, 8, 15, 0.9); backdrop-filter: blur(10px);+ }+ .tl-header .back {+ display: inline-flex; align-items: center; gap: 0.45rem; color: rgba(255, 255, 255, 0.7);+ text-decoration: none; font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.6rem; border-radius: 8px;+ }+ .tl-header .back:hover, .tl-header .back:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.07); }+ .tl-header h1 { font-size: 0.98rem; margin: 0; font-weight: 650; color: #eef2fa; }+ .tl-header .sub { font-size: 0.72rem; color: rgba(255, 255, 255, 0.45); margin-left: auto; display: none; }+ @media (min-width: 720px) { .tl-header .sub { display: inline; } }++ #timeline-root { flex: 1; min-height: 0; position: relative; }++ .tl-boot {+ position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;+ gap: 0.9rem; color: rgba(255, 255, 255, 0.7); font: 500 0.92rem system-ui, sans-serif; text-align: center; padding: 2rem;+ }+ .tl-boot .spinner {+ width: 34px; height: 34px; border-radius: 50%;+ border: 3px solid rgba(255, 255, 255, 0.12); border-top-color: #9ad0ff;+ animation: tl-spin 0.85s linear infinite;+ }+ @keyframes tl-spin { to { transform: rotate(360deg); } }+ .tl-boot a { color: #9ad0ff; }++ /* No-WebGL / reduced-capability fallback: a plain, real, accessible list. */+ .tl-fallback { position: absolute; inset: 0; overflow-y: auto; padding: 1.5rem 1rem 3rem; }+ .tl-fallback ol { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; display: flex; flex-direction: column; gap: 0.9rem; }+ .tl-fallback li {+ border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 0.9rem 1.05rem;+ background: rgba(255, 255, 255, 0.03);+ }+ .tl-fallback .tl-date { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; }+ .tl-fallback .tl-title { font-size: 0.98rem; font-weight: 650; color: #eef2fa; margin: 0.2rem 0 0.35rem; }+ .tl-fallback .tl-summary { font-size: 0.85rem; line-height: 1.5; color: rgba(255, 255, 255, 0.7); margin: 0; }+ .tl-fallback .tl-src { display: inline-block; margin-top: 0.5rem; font-size: 0.78rem; color: #9ad0ff; text-decoration: none; }+ </style>+ </head>+ <body>+ <script src="/nav.js"></script>+ <header class="tl-header">+ <a class="back" href="/partners" data-i18n-html="timeline.back"><span aria-hidden="true">←</span> Back</a>+ <h1 data-i18n="timeline.title">The Story So Far</h1>+ <span class="sub" data-i18n="timeline.subtitle">three.ws · a history you can walk through</span>+ </header>+ <main id="timeline-root">+ <div class="tl-boot" id="timeline-boot">+ <div class="spinner" aria-hidden="true"></div>+ <div data-i18n="timeline.loading">Loading three.ws's story…</div>+ </div>+ </main>+ <script type="module" src="/src/timeline.js"></script>+ <script src="/footer.js"></script>+ <!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->+ <script type="module" src="/i18n.js"></script>+ </body>+</html>diff --git a/src/timeline.js b/src/timeline.jsnew file mode 100644index 000000000..b0b9fad14--- /dev/null+++ b/src/timeline.js@@ -0,0 +1,806 @@+// /timeline — three.ws's public history as an explorable 3D scene.+//+// Every milestone (data/timeline.json) sits as a glowing marker along a+// curved path. Two ways to explore: Orbit (drag to look around 360°, click+// any marker) or Walk (step marker-to-marker with a guide beacon leading the+// way, chase camera). A synced bottom scrubber, a detail panel, category+// filters, and a real accessible fallback list for no-WebGL/reduced-motion+// visitors round it out. No server round-trip beyond the one static JSON+// fetch — everything else is client-side.++import {+ AmbientLight,+ AdditiveBlending,+ Box3,+ BufferGeometry,+ CanvasTexture,+ CatmullRomCurve3,+ Clock,+ Color,+ CylinderGeometry,+ DirectionalLight,+ Float32BufferAttribute,+ FogExp2,+ Group,+ HemisphereLight,+ IcosahedronGeometry,+ MeshBasicMaterial,+ Mesh,+ PerspectiveCamera,+ PlaneGeometry,+ Points,+ PointsMaterial,+ Raycaster,+ Scene,+ SRGBColorSpace,+ ACESFilmicToneMapping,+ Sprite,+ SpriteMaterial,+ Vector2,+ Vector3,+ WebGLRenderer,+} from 'three';+import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';+import { OrbitControls } from 'three/addons/controls/OrbitControls.js';+import { clone as cloneSkinnedScene } from 'three/addons/utils/SkeletonUtils.js';+import { getMeshoptDecoder } from './viewer/internal.js';+import { AnimationManager } from './animation-manager.js';+import { log } from './shared/log.js';++const DATA_URL = '/data/timeline.json';+const AVATAR_URL = '/avatars/default.glb';+const ANIMATIONS_MANIFEST_URL = '/animations/manifest.json';+const CLIP_IDLE = 'idle';++const SPACING = 6.4; // metres between consecutive markers along the path+const REDUCED_MOTION = typeof matchMedia === 'function' && matchMedia('(prefers-reduced-motion: reduce)').matches;++const root = document.getElementById('timeline-root');+const boot = document.getElementById('timeline-boot');++// ── Styles (injected once; keeps pages/timeline.html to a plain shell) ─────++function injectStyles() {+ const css = `+ .tl-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; outline: none; }++ .tl-topbar {+ position: absolute; top: 0.85rem; left: 50%; transform: translateX(-50%);+ display: flex; align-items: center; gap: 0.5rem; z-index: 15;+ background: rgba(8, 10, 18, 0.72); backdrop-filter: blur(10px);+ border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px;+ padding: 0.35rem 0.4rem; max-width: calc(100vw - 1.6rem); overflow-x: auto;+ }+ .tl-mode-btn, .tl-filter-chip {+ font: 600 0.74rem system-ui, sans-serif; color: rgba(255,255,255,0.72);+ background: transparent; border: 1px solid transparent; border-radius: 999px;+ padding: 0.34rem 0.7rem; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem;+ }+ .tl-mode-btn:hover, .tl-filter-chip:hover { color: #fff; background: rgba(255,255,255,0.08); }+ .tl-mode-btn[aria-pressed="true"] { background: #7aa2ff; color: #06080f; }+ .tl-filter-chip[aria-pressed="false"] { opacity: 0.4; }+ .tl-chip-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }+ .tl-topbar-sep { width: 1px; align-self: stretch; background: rgba(255,255,255,0.14); margin: 0 0.15rem; flex: none; }++ .tl-panel {+ position: absolute; top: 0; right: 0; height: 100%; width: min(380px, 100%);+ background: rgba(8, 10, 18, 0.88); backdrop-filter: blur(14px);+ border-left: 1px solid rgba(255,255,255,0.1); box-shadow: -20px 0 40px rgba(0,0,0,0.35);+ transform: translateX(100%); transition: transform 0.32s cubic-bezier(.2,.7,.2,1);+ z-index: 20; display: flex; flex-direction: column; padding: 1.3rem 1.25rem;+ color: #eef2fa; overflow-y: auto;+ }+ .tl-panel.is-open { transform: translateX(0); }+ .tl-panel-close {+ position: absolute; top: 0.8rem; right: 0.8rem; width: 30px; height: 30px; border-radius: 50%;+ background: rgba(255,255,255,0.08); border: none; color: #fff; font-size: 1rem; cursor: pointer;+ }+ .tl-panel-close:hover { background: rgba(255,255,255,0.16); }+ .tl-panel-badge {+ display: inline-flex; align-items: center; gap: 0.4rem; font: 700 0.68rem system-ui, sans-serif;+ text-transform: uppercase; letter-spacing: 0.04em; padding: 0.28rem 0.6rem; border-radius: 999px;+ background: rgba(255,255,255,0.08); width: fit-content; margin-bottom: 0.7rem;+ }+ .tl-panel-date { font: 600 0.78rem system-ui, sans-serif; color: rgba(255,255,255,0.5); margin: 0 0 0.3rem; }+ .tl-panel-title { font: 700 1.28rem/1.3 system-ui, sans-serif; margin: 0 0 0.75rem; }+ .tl-panel-summary { font: 400 0.92rem/1.55 system-ui, sans-serif; color: rgba(255,255,255,0.78); margin: 0 0 1rem; }+ .tl-panel-src {+ display: inline-flex; align-items: center; gap: 0.4rem; color: #9ad0ff; text-decoration: none;+ font: 600 0.84rem system-ui, sans-serif; margin-top: auto; padding-top: 0.6rem;+ }+ .tl-panel-src:hover { text-decoration: underline; }+ .tl-panel-counter { font: 600 0.72rem system-ui, sans-serif; color: rgba(255,255,255,0.4); margin-top: 0.4rem; }++ .tl-bottombar {+ position: absolute; left: 0; right: 0; bottom: 0; z-index: 15;+ background: linear-gradient(to top, rgba(4,5,10,0.92), rgba(4,5,10,0));+ padding: 2.2rem 1rem 0.9rem; display: flex; flex-direction: column; gap: 0.55rem;+ }+ .tl-scrub-row { display: flex; align-items: center; gap: 0.6rem; }+ .tl-nav-btn {+ flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.16);+ background: rgba(255,255,255,0.06); color: #fff; font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; justify-content: center;+ }+ .tl-nav-btn:hover { background: rgba(255,255,255,0.14); }+ .tl-nav-btn[aria-pressed="true"] { background: #7aa2ff; color: #06080f; border-color: transparent; }+ .tl-scrub-track {+ flex: 1; min-width: 0; display: flex; gap: 3px; overflow-x: auto; padding: 0.3rem 0.1rem;+ scroll-behavior: smooth; scrollbar-width: thin;+ }+ .tl-tick {+ flex: none; width: 9px; height: 22px; border-radius: 4px; border: none; cursor: pointer;+ background: rgba(255,255,255,0.16); opacity: 0.55; transition: transform 0.15s, opacity 0.15s;+ }+ .tl-tick:hover { opacity: 0.9; }+ .tl-tick.is-active { height: 30px; opacity: 1; transform: translateY(-4px); }+ .tl-tick.is-dim { opacity: 0.12; }+ .tl-scrub-label { text-align: center; font: 600 0.7rem system-ui, sans-serif; color: rgba(255,255,255,0.5); }++ .tl-hint {+ position: absolute; bottom: 6.2rem; left: 50%; transform: translateX(-50%); z-index: 12;+ font: 500 0.72rem system-ui, sans-serif; color: rgba(255,255,255,0.4); pointer-events: none; text-align: center;+ }++ .tl-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; padding: 2rem; text-align: center; color: rgba(255,255,255,0.75); font: 500 0.9rem system-ui, sans-serif; }+ .tl-error button { font: 650 0.82rem system-ui, sans-serif; background: #7aa2ff; color: #06080f; border: none; border-radius: 999px; padding: 0.55rem 1.2rem; cursor: pointer; }++ @media (max-width: 640px) {+ .tl-panel { width: 100%; height: min(62vh, 420px); top: auto; bottom: 0; right: 0;+ transform: translateY(100%); border-left: none; border-top: 1px solid rgba(255,255,255,0.1); border-radius: 16px 16px 0 0; }+ .tl-panel.is-open { transform: translateY(0); }+ .tl-bottombar { padding-bottom: 0.7rem; }+ .tl-hint { display: none; }+ }+ `;+ const tag = document.createElement('style');+ tag.textContent = css;+ document.head.appendChild(tag);+}++// ── Small helpers ───────────────────────────────────────────────────────────++function easeInOutCubic(t) {+ return t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2;+}++function clamp01(v) {+ return Math.min(1, Math.max(0, v));+}++function makeLabelSprite(text, subtext, color) {+ const canvas = document.createElement('canvas');+ const scale = 2; // crisp on hiDPI without ballooning texture memory+ canvas.width = 512 * scale;+ canvas.height = 128 * scale;+ const ctx = canvas.getContext('2d');+ ctx.scale(scale, scale);+ ctx.textAlign = 'center';+ ctx.fillStyle = 'rgba(255,255,255,0.55)';+ ctx.font = '600 15px system-ui, sans-serif';+ ctx.fillText(subtext, 256, 34);+ ctx.fillStyle = '#f4f7ff';+ ctx.font = '700 25px system-ui, sans-serif';+ const words = text.length > 42 ? text.slice(0, 40) + '…' : text;+ ctx.fillText(words, 256, 72);+ ctx.fillStyle = color;+ ctx.beginPath();+ ctx.arc(256, 94, 4, 0, Math.PI * 2);+ ctx.fill();++ const texture = new CanvasTexture(canvas);+ texture.colorSpace = SRGBColorSpace;+ const material = new SpriteMaterial({ map: texture, transparent: true, depthWrite: false });+ const sprite = new Sprite(material);+ sprite.scale.set(3.4, 0.85, 1);+ return sprite;+}++function makeStarfield() {+ const COUNT = 1400;+ const positions = new Float32Array(COUNT * 3);+ for (let i = 0; i < COUNT; i++) {+ const r = 140 + Math.random() * 260;+ const theta = Math.random() * Math.PI * 2;+ const phi = Math.acos(2 * Math.random() - 1);+ positions[i * 3] = r * Math.sin(phi) * Math.cos(theta);+ positions[i * 3 + 1] = Math.abs(r * Math.cos(phi)) * 0.5 + 4;+ positions[i * 3 + 2] = r * Math.sin(phi) * Math.sin(theta);+ }+ const geo = new BufferGeometry();+ geo.setAttribute('position', new Float32BufferAttribute(positions, 3));+ const mat = new PointsMaterial({ color: 0xbfd4ff, size: 0.55, sizeAttenuation: true, transparent: true, opacity: 0.6 });+ return new Points(geo, mat);+}++// ── Boot ─────────────────────────────────────────────────────────────────++function supportsWebGL() {+ try {+ const c = document.createElement('canvas');+ return !!(window.WebGLRenderingContext && (c.getContext('webgl2') || c.getContext('webgl')));+ } catch {+ return false;+ }+}++function escapeHtml(s) {+ const d = document.createElement('div');+ d.textContent = s;+ return d.innerHTML;+}++function renderFallback(events, reason) {+ if (boot) boot.remove();+ const wrap = document.createElement('div');+ wrap.className = 'tl-fallback';+ const intro = reason+ ? `<p style="color:rgba(255,255,255,0.55);font:500 0.82rem system-ui,sans-serif;max-width:640px;margin:0 auto 1.2rem;text-align:center">${escapeHtml(reason)} Here's the same history as a plain list.</p>`+ : '';+ wrap.innerHTML = `${intro}<ol>${events+ .map(+ (e) => `<li>+ <div class="tl-date">${e.date}</div>+ <h2 class="tl-title">${escapeHtml(e.title)}</h2>+ <p class="tl-summary">${escapeHtml(e.summary)}</p>+ ${e.source_url ? `<a class="tl-src" href="${e.source_url}" target="_blank" rel="noopener noreferrer">Read source ↗</a>` : ''}+ </li>`+ )+ .join('')}</ol>`;+ root.appendChild(wrap);+}++function showError(message, onRetry) {+ if (boot) boot.remove();+ const existing = root.querySelector('.tl-error');+ if (existing) existing.remove();+ const wrap = document.createElement('div');+ wrap.className = 'tl-error';+ wrap.innerHTML = `<div>${escapeHtml(message)}</div>`;+ const btn = document.createElement('button');+ btn.textContent = 'Retry';+ btn.addEventListener('click', onRetry);+ wrap.appendChild(btn);+ root.appendChild(wrap);+}++async function loadData() {+ const res = await fetch(DATA_URL, { cache: 'force-cache' });+ if (!res.ok) throw new Error(`HTTP ${res.status} loading timeline data`);+ const json = await res.json();+ if (!json || !Array.isArray(json.events) || json.events.length === 0) {+ throw new Error('Timeline data is empty');+ }+ return json;+}++async function boot_() {+ injectStyles();+ if (!supportsWebGL()) {+ try {+ const data = await loadData();+ renderFallback(data.events, 'Your browser can’t run the 3D scene.');+ } catch {+ showError('Could not load the timeline. Check your connection and try again.', () => location.reload());+ }+ return;+ }+ try {+ const data = await loadData();+ if (boot) boot.remove();+ mountTimeline(root, data);+ } catch (err) {+ log.warn('[timeline] load failed:', err?.message);+ showError('Could not load the timeline. Check your connection and try again.', boot_);+ }+}++boot_();++// ── Main scene ───────────────────────────────────────────────────────────++function mountTimeline(container, data) {+ const categories = data.categories || {};+ const events = data.events;+ const state = {+ mode: 'orbit', // 'orbit' | 'walk'+ focusedIndex: 0,+ visibleCategories: new Set(Object.keys(categories)),+ playing: false,+ playTimer: null,+ tween: null, // { from, to, start, duration } for walk-mode camera moves+ orbitFly: null,+ panelOpen: false,+ destroyed: false,+ };++ // ── renderer / scene / camera ──+ const canvas = document.createElement('canvas');+ canvas.className = 'tl-canvas';+ canvas.tabIndex = 0;+ container.appendChild(canvas);++ const renderer = new WebGLRenderer({ canvas, antialias: true, powerPreference: 'high-performance' });+ renderer.setPixelRatio(Math.min(devicePixelRatio || 1, 2));+ renderer.outputColorSpace = SRGBColorSpace;+ renderer.toneMapping = ACESFilmicToneMapping;+ renderer.toneMappingExposure = 1.05;++ const scene = new Scene();+ scene.background = new Color(0x03040a);+ scene.fog = new FogExp2(0x03040a, 0.016);+ scene.add(makeStarfield());++ const pathLength = (events.length - 1) * SPACING;+ const camera = new PerspectiveCamera(55, 1, 0.1, 400);+ camera.position.set(0, 5.5, Math.min(24, pathLength * 0.35 + 8));++ scene.add(new AmbientLight(0x8899cc, 0.55));+ const hemi = new HemisphereLight(0x99bbff, 0x0a0810, 0.6);+ scene.add(hemi);+ const sun = new DirectionalLight(0xffffff, 1.1);+ sun.position.set(6, 12, 6);+ scene.add(sun);++ // Ground: a dim plane so the path reads as "on the ground" without the+ // cost of real shadow mapping.+ const ground = new Mesh(+ new PlaneGeometry(pathLength + 60, 60),+ new MeshBasicMaterial({ color: 0x070912 })+ );+ ground.rotation.x = -Math.PI / 2;+ ground.position.set(pathLength / 2, -0.02, 0);+ scene.add(ground);++ const controls = new OrbitControls(camera, canvas);+ controls.enableDamping = true;+ controls.dampingFactor = 0.08;+ controls.minDistance = 4;+ controls.maxDistance = 60;+ controls.maxPolarAngle = Math.PI * 0.49;+ controls.autoRotate = !REDUCED_MOTION;+ controls.autoRotateSpeed = 0.4;+ controls.addEventListener('start', () => {+ controls.autoRotate = false;+ if (state.playing) togglePlay(false);+ });++ // ── path + markers ──+ // Gentle S-curve so the walk reads as a real path rather than a straight+ // line, evenly re-parametrized by arc length so marker spacing (and+ // camera travel speed in Walk mode) stays visually even through the turns.+ const rawPoints = [];+ const turns = Math.max(2, Math.round(events.length / 7));+ for (let i = 0; i < events.length; i++) {+ const t = events.length > 1 ? i / (events.length - 1) : 0;+ const x = t * pathLength;+ const z = Math.sin(t * Math.PI * turns) * 5.2;+ rawPoints.push(new Vector3(x, 0, z));+ }+ const curve = new CatmullRomCurve3(rawPoints, false, 'catmullrom', 0.5);+ curve.arcLengthDivisions = Math.max(200, events.length * 6);++ const markerGroup = new Group();+ scene.add(markerGroup);+ const markers = []; // { mesh, beam, label, position, event, index }++ events.forEach((event, index) => {+ const t = events.length > 1 ? index / (events.length - 1) : 0;+ const pos = curve.getPointAt(t);+ const color = new Color(categories[event.category]?.color || '#7aa2ff');+ const scale = 0.32 + (event.importance || 1) * 0.075;++ const mesh = new Mesh(+ new IcosahedronGeometry(scale, 1),+ new MeshBasicMaterial({ color })+ );+ mesh.position.copy(pos);+ mesh.position.y = scale;+ mesh.userData.index = index;+ markerGroup.add(mesh);++ const beamHeight = 0.6 + (event.importance || 1) * 0.7;+ const beam = new Mesh(+ new CylinderGeometry(0.02, 0.05, beamHeight, 8, 1, true),+ new MeshBasicMaterial({ color, transparent: true, opacity: 0.35, blending: AdditiveBlending, depthWrite: false })+ );+ beam.position.copy(pos);+ beam.position.y = beamHeight / 2;+ markerGroup.add(beam);++ const label = makeLabelSprite(event.title, event.date, `#${new Color(color).getHexString()}`);+ label.position.copy(pos);+ label.position.y = beamHeight + 0.9;+ markerGroup.add(label);++ markers.push({ mesh, beam, label, position: pos, event, index });+ });++ // ── guide beacon (default rigged avatar, idle-animated, carried along the+ // path) — reuses the site's shared avatar/animation pipeline. Wrapped+ // so a manifest/network hiccup degrades to "no visible guide" instead+ // of breaking the timeline. ──+ const guide = new Group();+ guide.visible = false;+ scene.add(guide);+ let guideAnim = null;+ loadGuideAvatar()+ .then(({ model, animationManager }) => {+ if (state.destroyed) return;+ guide.add(model);+ guide.visible = true;+ guideAnim = animationManager;+ })+ .catch((err) => log.warn('[timeline] guide avatar unavailable, continuing without it:', err?.message));++ async function loadGuideAvatar() {+ const decoder = await getMeshoptDecoder();+ const loader = new GLTFLoader();+ loader.setMeshoptDecoder(decoder);+ const gltf = await loader.loadAsync(AVATAR_URL);+ const model = cloneSkinnedScene(gltf.scene);+ const box = new Box3().setFromObject(model);+ model.position.y -= box.min.y;+ model.scale.setScalar(0.62); // small "tour guide" scale, distinct from a life-size avatar++ const animationManager = new AnimationManager();+ animationManager.attach(model);+ const manifest = await fetch(ANIMATIONS_MANIFEST_URL, { cache: 'force-cache' }).then((r) => {+ if (!r.ok) throw new Error(`HTTP ${r.status} fetching animation manifest`);+ return r.json();+ });+ const idleDef = manifest.filter((d) => d.name === CLIP_IDLE);+ if (idleDef.length) {+ animationManager.setAnimationDefs(idleDef);+ await animationManager.loadAll();+ await animationManager.crossfadeTo(CLIP_IDLE, 0);+ }+ return { model, animationManager };+ }++ function placeGuideAt(t, faceForwardT) {+ const p = curve.getPointAt(clamp01(t));+ guide.position.copy(p);+ const ahead = curve.getPointAt(clamp01(faceForwardT ?? t + 0.01));+ if (ahead.distanceToSquared(p) > 1e-6) {+ const dir = new Vector3().subVectors(ahead, p).normalize();+ guide.rotation.y = Math.atan2(dir.x, dir.z);+ }+ }+ placeGuideAt(0, 0.02);++ // ── UI: topbar (mode + filters) ──+ const topbar = document.createElement('div');+ topbar.className = 'tl-topbar';+ container.appendChild(topbar);++ const orbitBtn = document.createElement('button');+ orbitBtn.className = 'tl-mode-btn';+ orbitBtn.textContent = '360° Orbit';+ orbitBtn.setAttribute('aria-pressed', 'true');+ const walkBtn = document.createElement('button');+ walkBtn.className = 'tl-mode-btn';+ walkBtn.textContent = 'Walk the path';+ walkBtn.setAttribute('aria-pressed', 'false');+ orbitBtn.addEventListener('click', () => setMode('orbit'));+ walkBtn.addEventListener('click', () => setMode('walk'));+ topbar.appendChild(orbitBtn);+ topbar.appendChild(walkBtn);++ const sep = document.createElement('div');+ sep.className = 'tl-topbar-sep';+ topbar.appendChild(sep);++ const chipButtons = new Map();+ Object.entries(categories).forEach(([key, meta]) => {+ const chip = document.createElement('button');+ chip.className = 'tl-filter-chip';+ chip.setAttribute('aria-pressed', 'true');+ chip.innerHTML = `<span class="tl-chip-dot" style="background:${meta.color}"></span>${escapeHtml(meta.label)}`;+ chip.addEventListener('click', () => toggleCategory(key, chip));+ topbar.appendChild(chip);+ chipButtons.set(key, chip);+ });++ function toggleCategory(key, chip) {+ if (state.visibleCategories.has(key)) {+ state.visibleCategories.delete(key);+ chip.setAttribute('aria-pressed', 'false');+ } else {+ state.visibleCategories.add(key);+ chip.setAttribute('aria-pressed', 'true');+ }+ refreshVisibility();+ }++ function refreshVisibility() {+ markers.forEach((m) => {+ const visible = state.visibleCategories.has(m.event.category);+ const dim = !visible;+ m.mesh.material.opacity = dim ? 0.18 : 1;+ m.mesh.material.transparent = dim;+ m.beam.material.opacity = dim ? 0.06 : 0.35;+ m.label.material.opacity = dim ? 0.15 : 1;+ const tick = scrubTicks[m.index];+ if (tick) tick.classList.toggle('is-dim', dim);+ });+ }++ function visibleIndices() {+ return markers.filter((m) => state.visibleCategories.has(m.event.category)).map((m) => m.index);+ }++ // ── UI: detail panel ──+ const panel = document.createElement('aside');+ panel.className = 'tl-panel';+ panel.setAttribute('aria-hidden', 'true');+ panel.innerHTML = `+ <button class="tl-panel-close" aria-label="Close">×</button>+ <span class="tl-panel-badge" id="tl-panel-badge"></span>+ <div class="tl-panel-date" id="tl-panel-date"></div>+ <h2 class="tl-panel-title" id="tl-panel-title"></h2>+ <p class="tl-panel-summary" id="tl-panel-summary"></p>+ <a class="tl-panel-src" id="tl-panel-src" target="_blank" rel="noopener noreferrer" style="display:none">Read the source ↗</a>+ <div class="tl-panel-counter" id="tl-panel-counter"></div>+ `;+ container.appendChild(panel);+ panel.querySelector('.tl-panel-close').addEventListener('click', () => setPanelOpen(false));++ function setPanelOpen(open) {+ state.panelOpen = open;+ panel.classList.toggle('is-open', open);+ panel.setAttribute('aria-hidden', open ? 'false' : 'true');+ if (open && state.mode === 'orbit') controls.autoRotate = false;+ }++ // ── UI: bottom scrubber ──+ const bottombar = document.createElement('div');+ bottombar.className = 'tl-bottombar';+ bottombar.innerHTML = `+ <div class="tl-scrub-label" id="tl-scrub-label"></div>+ <div class="tl-scrub-row">+ <button class="tl-nav-btn" id="tl-prev" aria-label="Previous milestone">‹</button>+ <div class="tl-scrub-track" id="tl-scrub-track"></div>+ <button class="tl-nav-btn" id="tl-next" aria-label="Next milestone">›</button>+ <button class="tl-nav-btn" id="tl-play" aria-label="Auto-play the tour" aria-pressed="false">▶</button>+ </div>+ `;+ container.appendChild(bottombar);++ const hint = document.createElement('div');+ hint.className = 'tl-hint';+ hint.textContent = 'Drag to look around · click a marker · ← → to step · space to auto-play';+ container.appendChild(hint);++ const scrubTrack = bottombar.querySelector('#tl-scrub-track');+ const scrubLabel = bottombar.querySelector('#tl-scrub-label');+ const scrubTicks = markers.map((m) => {+ const tick = document.createElement('button');+ tick.className = 'tl-tick';+ tick.style.background = categories[m.event.category]?.color || '#7aa2ff';+ tick.setAttribute('aria-label', `${m.event.date} — ${m.event.title}`);+ tick.addEventListener('click', () => {+ togglePlay(false);+ focusEvent(m.index, { fly: true });+ });+ scrubTrack.appendChild(tick);+ return tick;+ });++ bottombar.querySelector('#tl-prev').addEventListener('click', () => { togglePlay(false); step(-1); });+ bottombar.querySelector('#tl-next').addEventListener('click', () => { togglePlay(false); step(1); });+ const playBtn = bottombar.querySelector('#tl-play');+ playBtn.addEventListener('click', () => togglePlay());++ function step(dir) {+ const visible = visibleIndices();+ if (visible.length === 0) return;+ const pos = visible.indexOf(state.focusedIndex);+ const nextPos = pos === -1 ? 0 : (pos + dir + visible.length) % visible.length;+ focusEvent(visible[nextPos], { fly: true });+ }++ function togglePlay(force) {+ const next = typeof force === 'boolean' ? force : !state.playing;+ state.playing = next;+ playBtn.setAttribute('aria-pressed', String(next));+ playBtn.textContent = next ? '❚❚' : '▶';+ clearTimeout(state.playTimer);+ if (next) {+ if (state.mode !== 'walk') setMode('walk');+ const advance = () => {+ if (!state.playing) return;+ const visible = visibleIndices();+ const pos = visible.indexOf(state.focusedIndex);+ if (pos === visible.length - 1) { togglePlay(false); return; }+ step(1);+ state.playTimer = setTimeout(advance, REDUCED_MOTION ? 900 : 2600);+ };+ state.playTimer = setTimeout(advance, REDUCED_MOTION ? 900 : 2600);+ }+ }++ // ── focus / camera control ──+ function setMode(mode) {+ if (mode === state.mode) return;+ state.mode = mode;+ orbitBtn.setAttribute('aria-pressed', String(mode === 'orbit'));+ walkBtn.setAttribute('aria-pressed', String(mode === 'walk'));+ controls.enabled = mode === 'orbit';+ controls.autoRotate = mode === 'orbit' && !REDUCED_MOTION && !state.panelOpen;+ if (mode === 'walk') beginWalkTween(state.focusedIndex);+ }++ function beginWalkTween(index) {+ const from = state.tween ? currentWalkT() : (events.length > 1 ? state.focusedIndex / (events.length - 1) : 0);+ const to = events.length > 1 ? index / (events.length - 1) : 0;+ state.tween = { from, to, start: performance.now(), duration: REDUCED_MOTION ? 1 : 950 };+ }++ function currentWalkT() {+ if (!state.tween) return events.length > 1 ? state.focusedIndex / (events.length - 1) : 0;+ const { from, to, start, duration } = state.tween;+ const e = clamp01((performance.now() - start) / duration);+ return from + (to - from) * easeInOutCubic(e);+ }++ function focusEvent(index, { fly = false } = {}) {+ state.focusedIndex = index;+ const m = markers[index];+ scrubTicks.forEach((tick, i) => tick.classList.toggle('is-active', i === index));+ scrubTicks[index]?.scrollIntoView({ behavior: REDUCED_MOTION ? 'auto' : 'smooth', inline: 'center', block: 'nearest' });+ scrubLabel.textContent = `${index + 1} / ${events.length} · ${m.event.date}`;++ const badge = panel.querySelector('#tl-panel-badge');+ badge.textContent = categories[m.event.category]?.label || m.event.category;+ badge.style.background = `${categories[m.event.category]?.color || '#7aa2ff'}33`;+ panel.querySelector('#tl-panel-date').textContent = m.event.date;+ panel.querySelector('#tl-panel-title').textContent = m.event.title;+ panel.querySelector('#tl-panel-summary').textContent = m.event.summary;+ const srcLink = panel.querySelector('#tl-panel-src');+ if (m.event.source_url) {+ srcLink.href = m.event.source_url;+ srcLink.style.display = 'inline-flex';+ } else {+ srcLink.style.display = 'none';+ }+ panel.querySelector('#tl-panel-counter').textContent = `Milestone ${index + 1} of ${events.length}`;+ setPanelOpen(true);++ if (state.mode === 'walk') {+ beginWalkTween(index);+ } else if (fly) {+ flyOrbitTarget(m.position);+ }+ }++ // Smoothly dolly the orbit target/camera toward a clicked marker without+ // yanking the user out of a free-look — preserves the current+ // camera-to-target *offset* so 360° orbiting continues to feel natural.+ function flyOrbitTarget(target) {+ const offset = new Vector3().subVectors(camera.position, controls.target);+ const desiredDist = Math.min(Math.max(offset.length(), 6), 14);+ offset.normalize().multiplyScalar(desiredDist);+ state.orbitFly = {+ fromTarget: controls.target.clone(),+ toTarget: target.clone(),+ fromCam: camera.position.clone(),+ toCam: new Vector3().addVectors(target, offset),+ start: performance.now(),+ duration: REDUCED_MOTION ? 1 : 750,+ };+ }++ // ── input: click/tap a marker ──+ const raycaster = new Raycaster();+ const pointer = new Vector2();+ function onPointerDown(ev) {+ const rect = canvas.getBoundingClientRect();+ pointer.x = ((ev.clientX - rect.left) / rect.width) * 2 - 1;+ pointer.y = -((ev.clientY - rect.top) / rect.height) * 2 + 1;+ raycaster.setFromCamera(pointer, camera);+ const hits = raycaster.intersectObjects(markers.map((m) => m.mesh), false);+ if (hits.length) {+ const idx = hits[0].object.userData.index;+ if (state.visibleCategories.has(events[idx].category)) {+ togglePlay(false);+ focusEvent(idx, { fly: true });+ }+ }+ }+ canvas.addEventListener('pointerdown', onPointerDown);++ function onKeydown(ev) {+ if (ev.target instanceof HTMLElement && ['INPUT', 'TEXTAREA'].includes(ev.target.tagName)) return;+ if (ev.key === 'ArrowRight') { togglePlay(false); step(1); }+ else if (ev.key === 'ArrowLeft') { togglePlay(false); step(-1); }+ else if (ev.key === ' ') { ev.preventDefault(); togglePlay(); }+ else if (ev.key === 'Escape') setPanelOpen(false);+ }+ window.addEventListener('keydown', onKeydown);++ // ── resize ──+ function resize() {+ const w = container.clientWidth || 1;+ const h = container.clientHeight || 1;+ camera.aspect = w / h;+ camera.updateProjectionMatrix();+ renderer.setSize(w, h, false);+ }+ const ro = new ResizeObserver(resize);+ ro.observe(container);+ resize();++ // ── render loop ──+ const clock = new Clock();+ let raf = 0;+ function tick() {+ if (state.destroyed) return;+ guideAnim?.update(clock.getDelta());++ if (state.mode === 'walk') {+ const t = currentWalkT();+ const p = curve.getPointAt(clamp01(t));+ const tangent = curve.getTangentAt(clamp01(t)).normalize();+ const behind = new Vector3().copy(tangent).multiplyScalar(-3.6);+ const camPos = new Vector3().copy(p).add(behind).add(new Vector3(0, 2.1, 0));+ camera.position.lerp(camPos, REDUCED_MOTION ? 1 : 0.18);+ const lookTarget = new Vector3().copy(p).add(new Vector3().copy(tangent).multiplyScalar(3));+ controls.target.lerp(lookTarget, REDUCED_MOTION ? 1 : 0.18);+ camera.lookAt(controls.target);+ placeGuideAt(t, t + 0.02);+ } else if (state.orbitFly) {+ const { fromTarget, toTarget, fromCam, toCam, start, duration } = state.orbitFly;+ const e = clamp01((performance.now() - start) / duration);+ const k = easeInOutCubic(e);+ controls.target.lerpVectors(fromTarget, toTarget, k);+ camera.position.lerpVectors(fromCam, toCam, k);+ if (e >= 1) state.orbitFly = null;+ }++ // Gentle pulse on the focused marker's beam so it reads as "selected."+ markers.forEach((m, i) => {+ if (i !== state.focusedIndex) return;+ if (!state.visibleCategories.has(m.event.category)) { m.beam.material.opacity = 0.06; return; }+ m.beam.material.opacity = REDUCED_MOTION ? 0.4 : 0.35 + Math.sin(performance.now() / 300) * 0.15;+ });++ // OrbitControls.update() re-derives camera.position from its own+ // internal spherical state even while `enabled` is false, which would+ // fight the manual position/lookAt we just set for Walk mode. Only+ // let it drive the camera in Orbit mode; it resyncs from wherever the+ // camera actually is the next time we call it, so no explicit resync+ // is needed when switching back.+ if (state.mode === 'orbit') controls.update();+ renderer.render(scene, camera);+ raf = requestAnimationFrame(tick);+ }+ raf = requestAnimationFrame(tick);++ // initial focus (no camera fly on load — let the establishing shot hold)+ focusEvent(0, { fly: false });+ setPanelOpen(false);+ refreshVisibility();++ // ── teardown ──+ function destroy() {+ state.destroyed = true;+ cancelAnimationFrame(raf);+ clearTimeout(state.playTimer);+ ro.disconnect();+ canvas.removeEventListener('pointerdown', onPointerDown);+ window.removeEventListener('keydown', onKeydown);+ controls.dispose();+ renderer.dispose();+ scene.traverse((obj) => {+ if (obj.geometry) obj.geometry.dispose();+ if (obj.material) {+ const mats = Array.isArray(obj.material) ? obj.material : [obj.material];+ mats.forEach((mat) => {+ if (mat.map) mat.map.dispose();+ mat.dispose();+ });+ }+ });+ }+ window.addEventListener('pagehide', destroy, { once: true });+}diff --git a/vite.config.js b/vite.config.jsindex 539bff2b2..e9209538f 100644--- a/vite.config.js+++ b/vite.config.js@@ -340,6 +340,7 @@ const appConfig = {'tour-builder': resolve(__dirname, 'pages/tour-builder.html'),'agent-identities': resolve(__dirname, 'pages/agent-identities.html'),pitch: resolve(__dirname, 'pages/pitch.html'),+ timeline: resolve(__dirname, 'pages/timeline.html'),features: resolve(__dirname, 'pages/features.html'),'features-ar': resolve(__dirname, 'pages/features/ar.html'),'features-forge': resolve(__dirname, 'pages/features/forge.html'),@@ -1325,6 +1326,8 @@ support: resolve(__dirname, 'pages/support.html'),'/what-is/': resolve(root, 'pages/what-is.html'),'/pitch': resolve(root, 'pages/pitch.html'),'/pitch/': resolve(root, 'pages/pitch.html'),+ '/timeline': resolve(root, 'pages/timeline.html'),+ '/timeline/': resolve(root, 'pages/timeline.html'),'/features': resolve(root, 'pages/features.html'),'/features/': resolve(root, 'pages/features.html'),'/agent/new': resolve(root, 'pages/agent-edit.html'),