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
<!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>
<script>/* Tier boot: no-flash progressive disclosure. New visitors get the lite tier — the core journey only, with advanced sections collapsed behind #advanced-gate and the deep nav menus hidden. One site-wide preference, shared with the nav (public/nav.js → applyTier). */(function(){var lite=true;try{lite=localStorage.getItem('tws:tier')!=='full';}catch(e){}if(lite)document.documentElement.classList.add('tws-lite');})();</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title data-i18n="home.meta_title">three.ws — The 3D Agent Layer of the Internet</title>
<meta name="description" data-i18n-attr="content:home.meta_desc" content="Make a 3D AI agent from a selfie in 60 seconds. Drop one HTML tag to embed it on any website. Agents think on IBM watsonx.ai (Granite); optionally charge per chat with built-in micropayments." />
<link rel="canonical" href="https://three.ws/" />
<link rel="alternate" type="application/rss+xml" title="three.ws announcements" href="https://three.ws/rss/announcements.xml" />
<link rel="alternate" type="text/plain" title="llms.txt" href="/llms.txt" />
<link rel="alternate" type="text/plain" title="llms-full.txt" href="/llms-full.txt" />
<meta name="theme-color" content="#050505" />
<meta name="color-scheme" content="dark" />
<!-- Open Graph -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="three.ws" />
<meta property="og:url" content="https://three.ws/" />
<meta property="og:title" content="three.ws — The 3D Agent Layer of the Internet" data-i18n-attr="content:home.meta_og_title"/>
<meta property="og:description" content="Make a living 3D AI agent from a selfie — embed it on any website in 60 seconds. Voice, memory, payments, and an IBM watsonx.ai (Granite) brain built in." data-i18n-attr="content:home.meta_og_description"/>
<meta property="og:image" content="https://three.ws/api/page-og?s=main&t=Classic+Home&d=The+original+three.ws+landing+page%3A+the+pitch%2C+live+agent+demos+and+the+front+door+to+every+flow%2C+kept+as+the+classic+view+of+the+desktop.&p=%2Fclassic" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="three.ws — living 3D AI agents you can embed anywhere" />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@trythreews" />
<meta name="twitter:creator" content="@trythreews" />
<meta name="twitter:title" content="three.ws — The 3D Agent Layer of the Internet" data-i18n-attr="content:home.meta_twitter_title"/>
<meta name="twitter:description" content="Make a living 3D AI agent from a selfie — embed it on any website in 60 seconds. Voice, memory, payments, and an IBM watsonx.ai (Granite) brain built in." data-i18n-attr="content:home.meta_twitter_description"/>
<meta name="twitter:image" content="https://three.ws/api/page-og?s=main&t=Classic+Home&d=The+original+three.ws+landing+page%3A+the+pitch%2C+live+agent+demos+and+the+front+door+to+every+flow%2C+kept+as+the+classic+view+of+the+desktop.&p=%2Fclassic" />
<meta name="twitter:image:alt" content="three.ws — living 3D AI agents you can embed anywhere" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.webmanifest" />
<link rel="preload" href="/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin />
<link rel="preload" href="/fonts/space-grotesk-latin.woff2" as="font" type="font/woff2" crossorigin />
<!-- The hero/showcase 3D viewers lazy-load model-viewer (4.0.0) from this CDN
on first interaction; warm the connection so the TLS/DNS handshake is paid
before the element bundle is requested. -->
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin />
<link rel="stylesheet" href="/fonts/fonts.css" />
<link rel="stylesheet" href="/tokens.css" />
<link rel="stylesheet" href="/buttons.css" />
<link rel="stylesheet" href="/nav.css" />
<link rel="stylesheet" href="/economy-ticker.css" />
<link rel="stylesheet" href="/src/event-markets/event-markets.css" />
<link rel="stylesheet" href="/home.css" />
<noscript><style>.reveal{opacity:1!important;transform:none!important}.hero-text>*{opacity:1!important;transform:none!important}</style></noscript>
<!-- Deferred, and placed BEFORE the agent-3d module: defer scripts and module
scripts execute in document order, so the meshopt shim still registers its
decoder before any model-viewer/agent-3d define runs. -->
<script src="/model-viewer-meshopt.js" defer></script>
<!-- Absolute, and it has to stay absolute. dist/agent-3d/ is written by
`npm run publish:lib` AFTER the frontend build, so a root-relative
module src fails the build outright ("Failed to resolve
/agent-3d/latest/agent-3d.js"), and moving the tag to a runtime-injected
script would hide it from the preload scanner and delay the hero.
Consequence worth knowing when profiling: a local or preview build loads
PRODUCTION's copy of the library, not the one just built, so a
Lighthouse run against them measures the deployed bundle here. -->
<script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"></script>
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://three.ws/#organization","name":"three.ws","url":"https://three.ws","logo":"https://three.ws/og-image.png","description":"three.ws is the AI-agent layer for the open web: build, embed, monetize, and trade autonomous agents with real 3D avatars, on-chain identity (ERC-8004), pay-per-call (x402), and pump.fun token launches.","sameAs":["https://x.com/trythreews","https://github.com/nirholas/three.ws","https://www.coingecko.com/en/coins/three-ws","https://www.npmjs.com/package/three.ws","https://registry.modelcontextprotocol.io/?q=threews","https://coinmarketcap.com/community/profile/three_ws","https://hackernoon.com/u/three-ws","https://t.me/three_ws"]},{"@type":"WebSite","@id":"https://three.ws/#website","name":"three.ws","url":"https://three.ws","description":"Give your AI a body.","publisher":{"@id":"https://three.ws/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://three.ws/discover?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}</script>
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
<meta property="og:locale" content="en_US">
</head>
<body>
<a class="skip-link" href="#main-content" data-i18n="home.skip_to_content">Skip to content</a>
<!-- ── NAV ──────────────────────────────────────────────────────── -->
<!-- Shared site navigation: injected by /nav.js from /nav.html, with every
menu rendered from /nav-data.js — the single source of truth. The
homepage uses the same header as every other page; edit menus in
public/nav-data.js, never here. -->
<div id="nav-container"></div>
<script src="/nav.js" defer></script>
<!-- Seasonal decorations (date-gated no-op outside its window) -->
<script src="/seasonal.js" defer></script>
<!-- ── HERO ─────────────────────────────────────────────────────── -->
<main id="main-content" tabindex="-1">
<div id="em-ticker" class="em-ticker" role="region" aria-label="Live event markets" hidden></div>
<section class="hero">
<div class="hero-text">
<a class="eyebrow" href="/forge" data-i18n-html="home.eyebrow" data-i18n-attr="aria-label:home.eyebrow_aria" aria-label="New: Text to 3D is live — open the Forge">New · Text → 3D is live — type a prompt, get a model <span class="eyebrow-arrow" aria-hidden="true">→</span></a>
<h1 class="hero-h" data-i18n-html="home.hero_h">
The 3D agent<br/>
layer of the<br/>
<em>internet.</em>
</h1>
<ul class="hero-bullets">
<li data-i18n-html="home.bullet_create"><strong>Create</strong> a 3D AI agent from a text prompt or selfie in about a minute</li>
<li data-i18n-html="home.bullet_embed"><strong>Embed</strong> it on any website with two lines of HTML</li>
<!-- Monetization is the one promise a newcomer has no context for yet
(it names a payment protocol in the first screen), so it joins the
advanced tier. The other two ARE the first-run journey. -->
<li data-tier="advanced" data-i18n-html="home.bullet_earn"><strong>Earn</strong> USDC per chat with x402 micropayments</li>
</ul>
<!-- Hero forge bar: the site's one job, right where the eye lands. Types
straight into the live mini-forge below (relocated directly under the
hero) and scrolls to watch it build, so first-magic is: land, type,
Enter. Wired in src/home-forge.js (wireHeroBar). -->
<form class="hero-forge" id="hero-forge-form" autocomplete="off" role="search" aria-label="Generate a 3D model from a text description">
<span class="hero-forge-glyph" aria-hidden="true">◆</span>
<input type="text" id="hero-forge-input" class="hero-forge-input" maxlength="1000" autocomplete="off" spellcheck="false" aria-label="Describe a 3D model to generate" placeholder="describe anything: a brass compass, weathered…" data-i18n-attr="placeholder:home.hero_forge_placeholder" />
<button type="submit" class="hero-forge-go" id="hero-forge-go" data-cta="hero_forge" data-cta-loc="hero">
<span class="btn-forge-dot" aria-hidden="true"></span>
<span data-hero-forge-label data-i18n="home.forge_it">Forge it</span>
<span class="arrow" aria-hidden="true">→</span>
</button>
</form>
<div class="hero-forge-tries" aria-label="Example prompts to try">
<span class="hero-forge-tries-label" data-i18n="home.hero_try">Try</span>
<button type="button" class="hero-try" data-prompt="a low-poly red fox, sitting" data-i18n="home.low_poly_fox">low-poly fox</button>
<button type="button" class="hero-try" data-prompt="a sci-fi combat helmet, brushed metal" data-i18n="home.sci_fi_helmet">sci-fi helmet</button>
<button type="button" class="hero-try" data-prompt="a glazed ceramic teapot" data-i18n="home.ceramic_teapot">ceramic teapot</button>
</div>
<p class="hero-forge-note" data-i18n-html="home.hero_forge_note">Free, no sign-up, a real textured model in about a minute. <a href="/forge">Open the full Forge →</a></p>
<div class="hero-cta-row">
<a class="btn" href="/create" data-cta="build_agent" data-cta-loc="hero" data-i18n-html="home.cta_build">Build your agent <span class="arrow">→</span></a>
<a class="btn" href="#embed" data-cta="see_embed" data-cta-loc="hero" data-i18n="home.cta_embed">See the embed</a>
<a class="btn" href="/tour" id="hero-tour-start" data-cta="guided_tour" data-cta-loc="hero"><span aria-hidden="true">▶</span> <span data-i18n="common.take_tour">Take the tour</span></a>
</div>
</div>
<div class="hero-stage" id="hero-stage">
<div class="hero-stage-inner" id="hero-stage-inner"></div>
<div class="hero-chips-wrap" id="hero-chips-wrap">
<div class="hero-chips-label">
<strong class="hero-chips-counter" id="hero-chips-counter"></strong>
</div>
<div class="hero-chips" id="hero-chips" role="group" aria-label="Trigger an animation on the hero avatar">
<button type="button" class="hero-chip hero-chip--rand" data-anim="__random" data-i18n="home.random">🎲 Random</button>
<button type="button" class="hero-chip" data-anim="wave" data-i18n="home.wave">👋 Wave</button>
<button type="button" class="hero-chip" data-anim="dance" data-i18n="home.dance">💃 Dance</button>
<button type="button" class="hero-chip" data-anim="capoeira" data-i18n="home.capoeira">🤸 Capoeira</button>
<button type="button" class="hero-chip" data-anim="jump" data-i18n="home.jump">🦘 Jump</button>
<button type="button" class="hero-chip" data-anim="thriller" data-i18n="home.thriller">🧟 Thriller</button>
<button type="button" class="hero-chip" data-anim="pray" data-i18n="home.pray">🙏 Pray</button>
</div>
</div>
</div>
</section>
<!-- ── START PATH ─ the lite entry. First-time visitors get three named
steps (avatar → agent → publish) before any feature depth; the deep
platform sits behind #advanced-gate further down. -->
<section class="start-path" aria-label="Start here: three steps">
<div class="wrap-1280">
<div class="start-path-head">
<p class="start-path-eyebrow" data-i18n="home.lite_start_here">Start here · three steps, about five minutes</p>
<p class="start-path-note" data-i18n-html="home.lite_power_note">Power user? <a href="#advanced-gate">Skip to the advanced platform ↓</a></p>
</div>
<div class="start-steps">
<a class="start-step" href="/create/prompt" data-cta="lite_create_avatar" data-cta-loc="start_path">
<span class="start-step-num"><span>01</span><span class="time" data-i18n="home.lite_time_1_min">~1 min</span></span>
<h3><span data-i18n="home.lite_create_avatar">Create a 3D avatar</span><span class="arrow" aria-hidden="true">→</span></h3>
<p data-i18n="home.lite_create_avatar_desc">Describe a character, or start from a selfie. You get a rigged, animated avatar you own.</p>
</a>
<a class="start-step" href="/create-agent" data-cta="lite_build_agent" data-cta-loc="start_path">
<span class="start-step-num"><span>02</span><span class="time" data-i18n="home.lite_time_3_min">~3 min</span></span>
<h3><span data-i18n="home.lite_build_agent">Build an AI agent</span><span class="arrow" aria-hidden="true">→</span></h3>
<p data-i18n="home.lite_build_agent_desc">Give your avatar a personality, a voice, and skills in the guided wizard.</p>
</a>
<a class="start-step" href="#embed" data-cta="lite_publish" data-cta-loc="start_path">
<span class="start-step-num"><span>03</span><span class="time" data-i18n="home.lite_time_1_min_more">~1 min</span></span>
<h3><span data-i18n="home.lite_publish">Publish anywhere</span><span class="arrow" aria-hidden="true">→</span></h3>
<p data-i18n="home.lite_publish_desc">Two lines of HTML put your agent on any site. Try the live embed below.</p>
</a>
</div>
</div>
</section>
<section class="block" id="home-forge">
<div class="wrap-1280">
<div class="block-head reveal">
<p class="block-eyebrow" data-i18n-html="home.forge"><span class="num">•</span>Forge</p>
<h2 class="block-h" data-i18n-html="home.type_it_hold_it_in_3d">Type it. <em>Hold it in 3D.</em></h2>
<p class="block-lede" data-i18n-html="home.a_live_slice_of_forge_the_same">
A live slice of <a href="/forge">Forge</a>, the same text-to-3D pipeline that powers the full page. Describe an object and a textured, downloadable GLB takes shape right here, usually within a minute. Open Options for the full brains: quality tiers, live engine choice, aspect ratio, and a one-tap prompt Enhance. The full Forge adds photo and sketch input, multi-view fusion, stylize filters, and retopology.
</p>
</div>
<div class="hf-chamber reveal reveal-d1" data-hf-chamber data-hf-state="idle">
<div class="hf-floor" aria-hidden="true"></div>
<div class="hf-ring-glow" aria-hidden="true"></div>
<div class="hf-ring" aria-hidden="true"></div>
<div class="hf-ground" aria-hidden="true"></div>
<div class="hf-hud"><span class="dot"></span>Live pipeline</div>
<div class="hf-telemetry" aria-live="polite">
<span data-hf-tel-state data-i18n="home.standby">standby</span>
<span class="hf-elapsed" data-hf-elapsed></span>
<span data-hf-lane-label data-i18n="home.standard_free_lane">standard · free lane</span>
</div>
<!-- Session history — real captured frames of models you forged here,
persisted on this device. Click one to bring it back on stage. -->
<div class="hf-history" data-hf-history hidden>
<span class="hf-history-label" data-i18n="home.recent">Recent</span>
<div class="hf-history-track" data-hf-history-track role="list" aria-label="Models you forged this session"></div>
</div>
<div class="hf-toast" data-hf-toast role="status" aria-live="polite" hidden></div>
<div class="hf-state" data-hf-idle>
<h3 data-i18n="home.nothing_forged_yet">Nothing forged yet</h3>
<p data-i18n="home.type_a_description_or_take_the_suggestion">Type a description — or take the suggestion — and a real textured mesh lands here, usually within a minute.</p>
<span class="hf-idle-kbd" data-i18n-html="home.tab_takes_the_suggestion_forges"><kbd>Tab</kbd> takes the suggestion · <kbd>⌘⏎</kbd> forges</span>
</div>
<div class="hf-state" data-hf-generating hidden>
<div class="hf-preview" data-hf-preview></div>
<div class="hf-steps" aria-live="polite">
<div class="hf-step" data-hf-step="mesh" data-state="pending"><span class="dot" aria-hidden="true"></span><span data-i18n="home.reconstructing_textured_mesh">Reconstructing textured mesh</span></div>
<div class="hf-step" data-hf-step="finish" data-state="pending"><span class="dot" aria-hidden="true"></span><span data-i18n="home.finalizing_glb">Finalizing GLB</span></div>
</div>
<!-- Cold-start honesty: shown only while /api/forge reports cold_start
for the chosen self-hosted GPU lane, and cleared by the first real
"running" poll, never by a timer. Its text is written from the
poll payload's own numbers (see src/home-forge.js). -->
<p class="hf-warming" data-hf-warming role="status" hidden></p>
<button type="button" class="hf-btn" data-hf-cancel data-i18n="home.cancel">Cancel</button>
</div>
<div class="hf-result" data-hf-result hidden>
<div class="hf-viewer" data-hf-viewer-slot></div>
<div class="hf-scan" data-hf-scan aria-hidden="true"></div>
<div class="hf-result-bar" data-hf-result-region tabindex="-1" role="group" aria-label="Forged model — actions">
<span class="hf-result-meta" data-hf-result-meta></span>
<div class="hf-result-actions">
<button type="button" class="hf-btn hf-icon-btn" data-hf-spin aria-pressed="true" title="Pause auto-rotate" aria-label="Toggle auto-rotate" data-i18n-attr="aria-label:home.toggle_auto_rotate_arialabel;title:home.pause_auto_rotate_title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 12a9 9 0 0 1 15-6.7L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-15 6.7L3 16"/><path d="M3 21v-5h5"/></svg>
</button>
<button type="button" class="hf-btn" data-hf-vary>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12 3 1.9 4.6L18.5 9.5 13.9 11.4 12 16l-1.9-4.6L5.5 9.5l4.6-1.9z"/><path d="M19 14.5l.8 2 .2.5 2 .8-2 .8-.2.5-.8 2-.8-2-.2-.5-2-.8 2-.8.2-.5z"/></svg>
Variation
</button>
<a class="hf-btn hf-btn--accent" data-hf-scene target="_blank" rel="noopener">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 2 3 7v10l9 5 9-5V7z"/><path d="M3 7l9 5 9-5"/><path d="M12 12v10"/></svg>
Scene Studio
</a>
<button type="button" class="hf-btn hf-icon-btn" data-hf-embed-open title="Embed on any website" aria-label="Embed on any website" aria-haspopup="dialog" data-i18n-attr="aria-label:home.embed_on_any_website_arialabel;title:home.embed_on_any_website_title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>
</button>
<button type="button" class="hf-btn hf-icon-btn" data-hf-share title="Copy share link" aria-label="Copy share link" data-i18n-attr="aria-label:home.copy_share_link_arialabel;title:home.copy_share_link_title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1.5 1.5"/><path d="M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1.5-1.5"/></svg>
</button>
<a class="hf-btn" data-hf-download download>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3v12"/><path d="m7 11 5 5 5-5"/><path d="M5 21h14"/></svg>
GLB
</a>
<button type="button" class="hf-btn hf-icon-btn" data-hf-again title="Clear" aria-label="Clear and forge another" data-i18n-attr="aria-label:home.clear_and_forge_another_arialabel;title:home.clear_title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
</button>
</div>
</div>
</div>
<div class="hf-state hf-state--error" data-hf-error hidden>
<h3 data-i18n="home.generation_failed">Generation failed</h3>
<p data-hf-error-message data-i18n="home.something_went_wrong_try_a_simpler_single">Something went wrong. Try a simpler, single-subject prompt.</p>
<button type="button" class="hf-btn hf-btn--bright" data-hf-retry data-i18n="home.try_again">Try again</button>
</div>
<!-- Embed sheet — drop the forged model on any site. Snippet shapes are
shared with the full Forge via src/forge-embed-snippets.js. -->
<div class="hf-embed" data-hf-embed hidden role="dialog" aria-modal="true" aria-label="Embed this model">
<div class="hf-embed-scrim" data-hf-embed-close aria-hidden="true"></div>
<div class="hf-embed-card" role="document">
<div class="hf-embed-head">
<div>
<p class="hf-embed-kicker" data-i18n="home.embed_3">Embed</p>
<h3 class="hf-embed-title" data-i18n="home.put_this_model_on_any_site">Put this model on any site</h3>
</div>
<button type="button" class="hf-btn hf-icon-btn" data-hf-embed-close title="Close" aria-label="Close embed panel" data-i18n-attr="aria-label:home.close_embed_panel_arialabel;title:home.close_title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
</button>
</div>
<div class="hf-embed-preview" data-hf-embed-preview>
<iframe class="hf-embed-frame" data-hf-embed-frame title="Embed preview" allow="xr-spatial-tracking; fullscreen" loading="lazy"></iframe>
</div>
<div class="hf-embed-controls">
<div class="hf-seg" data-hf-embed-tabs role="group" aria-label="Embed type">
<button type="button" class="hf-seg-btn" data-hf-embed-tab="iframe" aria-pressed="true" data-i18n="home.iframe">iframe</button>
<button type="button" class="hf-seg-btn" data-hf-embed-tab="component" aria-pressed="false" data-i18n="home.web_component">Web component</button>
</div>
<div class="hf-seg" data-hf-embed-sizes role="group" aria-label="Size">
<button type="button" class="hf-seg-btn" data-hf-embed-size="wide" aria-pressed="true">16 : 9</button>
<button type="button" class="hf-seg-btn" data-hf-embed-size="square" aria-pressed="false" data-i18n="home.square">Square</button>
<button type="button" class="hf-seg-btn" data-hf-embed-size="portrait" aria-pressed="false">4 : 5</button>
</div>
</div>
<label class="hf-embed-codelabel" for="hf-embed-code" data-i18n="home.paste_this_where_you_want_the_model">Paste this where you want the model</label>
<textarea id="hf-embed-code" class="hf-embed-code" data-hf-embed-code readonly spellcheck="false" rows="5"></textarea>
<button type="button" class="hf-forge-btn hf-embed-copy" data-hf-embed-copy>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
<span data-hf-embed-copy-label data-i18n="home.copy_embed_code">Copy embed code</span>
</button>
<p class="hf-embed-foot" data-i18n-html="home.live_orbitable_ar_ready_on_phones_open">Live, orbitable, AR-ready on phones · <a data-hf-embed-standalone target="_blank" rel="noopener">open the standalone viewer ↗</a></p>
</div>
</div>
<form class="hf-dock" data-hf-form autocomplete="off">
<div class="hf-chips" data-hf-chips role="group" aria-label="Example prompts">
<button type="button" class="hf-chip hf-chip--surprise" data-hf-surprise title="Roll a fresh prompt" aria-label="Surprise me with a prompt" data-i18n-attr="aria-label:home.surprise_me_arialabel;title:home.surprise_title"><span class="hf-chip-ico" aria-hidden="true">⚄</span><span data-i18n="home.surprise">Surprise</span></button>
<button type="button" class="hf-chip" data-prompt="a low-poly red fox, sitting" data-i18n="home.low_poly_fox">low-poly fox</button>
<button type="button" class="hf-chip" data-prompt="a sci-fi combat helmet, brushed metal" data-i18n="home.sci_fi_helmet">sci-fi helmet</button>
<button type="button" class="hf-chip" data-prompt="a potted monstera plant" data-i18n="home.monstera_plant">monstera plant</button>
<button type="button" class="hf-chip" data-prompt="a vintage film camera" data-i18n="home.film_camera">film camera</button>
</div>
<!-- Options disclosure — the full-Forge brains (quality tier, engine lane,
aspect, BYOK, $THREE High gate), kept collapsed so the default chamber
stays the minimal bar. Buttons inside are built at runtime from
/api/forge?catalog + ?health by src/home-forge-controls.js. -->
<div class="hf-panel" id="hf-panel" data-hf-panel hidden>
<div class="hf-panel-row">
<span class="hf-panel-label" data-i18n="home.quality">Quality</span>
<div class="hf-seg" data-hf-tier role="group" aria-label="Quality tier"></div>
</div>
<div class="hf-panel-row">
<span class="hf-panel-label" data-i18n="home.engine">Engine</span>
<div class="hf-engine" data-hf-engine role="group" aria-label="Generation engine"></div>
</div>
<div class="hf-panel-row" data-hf-aspect-row>
<span class="hf-panel-label" data-i18n="home.frame">Frame</span>
<div class="hf-seg" data-hf-aspect role="group" aria-label="Aspect ratio"></div>
</div>
<div class="hf-byok" data-hf-byok hidden>
<label class="hf-byok-label" for="hf-byok-key"><span data-hf-byok-label data-i18n="home.provider_key">Provider key</span></label>
<input id="hf-byok-key" class="hf-byok-key" data-hf-byok-key type="password" autocomplete="off" spellcheck="false" placeholder="Your API key (kept in this browser)" />
<p class="hf-byok-hint" data-hf-byok-hint></p>
</div>
<div class="hf-lock" data-hf-lock hidden></div>
<p class="hf-perk" data-hf-perk hidden></p>
</div>
<div class="hf-bar">
<span class="hf-bar-glyph" aria-hidden="true">◆</span>
<label class="sr-only" for="hf-prompt-input" data-i18n="home.describe_the_object_to_generate">Describe the object to generate</label>
<textarea id="hf-prompt-input" class="hf-prompt" data-hf-prompt rows="1" maxlength="1000" placeholder="describe an object…"></textarea>
<button type="button" class="hf-icon-mini" data-hf-enhance title="Enhance the prompt (art-director rewrite)" aria-label="Enhance the prompt" data-i18n-attr="aria-label:home.enhance_the_prompt_arialabel;title:home.enhance_title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12 3 1.9 4.6L18.5 9.5 13.9 11.4 12 16l-1.9-4.6L5.5 9.5l4.6-1.9z"/><path d="M19 15l.6 1.6 1.6.6-1.6.6L19 20l-.6-1.6-1.6-.6 1.6-.6z"/></svg>
</button>
<span class="hf-kbd" aria-hidden="true">⌘⏎</span>
<button class="hf-forge-btn" data-hf-generate type="submit" data-i18n-html="home.forge_2"><span data-hf-generate-label>Forge</span></button>
</div>
<div class="hf-dock-meta">
<button type="button" class="hf-opts-toggle" data-hf-opts aria-expanded="false" aria-controls="hf-panel">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 6h16"/><path d="M4 12h16"/><path d="M4 18h16"/><circle cx="9" cy="6" r="2" fill="var(--bg,#000)"/><circle cx="15" cy="12" r="2" fill="var(--bg,#000)"/><circle cx="9" cy="18" r="2" fill="var(--bg,#000)"/></svg>
<span data-i18n="home.options">Options</span>
</button>
<p class="hf-dock-note" data-i18n-html="home.free_no_sign_up_lands_in_your">Free · no sign-up · lands in your full Forge gallery on this device · <a href="/forge">open the full Forge →</a></p>
</div>
</form>
</div>
</div>
</section>
<!-- ── CAPABILITY STRIP ───────────────────────────────────────────── -->
<!-- No tabindex here on purpose: the strip is decorative and aria-hidden, so it
must be unreachable, and `tabindex="-1"` does not achieve that. It only
removes the element from sequential navigation while leaving it
programmatically focusable, which axe still reports as aria-hidden-focus.
The strip stays out of the tab order because its CSS clips with
`overflow: clip` rather than `hidden`, so it never becomes the scroll
container Chrome would make focusable. See public/home.css. -->
<div class="capability-strip" id="capability-strip" aria-hidden="true">
<div class="cap-fade cap-fade--l"></div>
<div class="cap-track">
<div class="cap-inner">
<span class="cap-item" data-i18n="home.text_3d_generation">Text → 3D generation</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.110_animation_clips">110+ animation clips</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.1_line_embed">1-line embed</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.glb_vrm_support">GLB & VRM support</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.ai_agent_sdk">AI agent SDK</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.pay_per_call_micropayments">Pay-per-call micropayments</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.solana_native">Solana native</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.blockchain_identity">Blockchain identity</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.typescript_sdk">TypeScript SDK</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.real_time_sync">Real-time sync</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.webgl_rendering">WebGL rendering</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.agent_marketplace">Agent marketplace</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.pump_fun_native">Pump.fun native</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.custom_avatars">Custom avatars</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.widget_builder">Widget builder</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.sub_10ms_load">Sub-10ms load</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.rest_websockets">REST + WebSockets</span>
<span class="cap-sep">·</span>
</div>
<div class="cap-inner" aria-hidden="true">
<span class="cap-item" data-i18n="home.text_3d_generation_2">Text → 3D generation</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.110_animation_clips_2">110+ animation clips</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.1_line_embed_2">1-line embed</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.glb_vrm_support_2">GLB & VRM support</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.ai_agent_sdk_2">AI agent SDK</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.pay_per_call_micropayments_2">Pay-per-call micropayments</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.solana_native_2">Solana native</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.blockchain_identity_2">Blockchain identity</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.typescript_sdk_2">TypeScript SDK</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.real_time_sync_2">Real-time sync</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.webgl_rendering_2">WebGL rendering</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.agent_marketplace_2">Agent marketplace</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.pump_fun_native_2">Pump.fun native</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.custom_avatars_2">Custom avatars</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.widget_builder_2">Widget builder</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.sub_10ms_load_2">Sub-10ms load</span>
<span class="cap-sep">·</span>
<span class="cap-item" data-i18n="home.rest_websockets_2">REST + WebSockets</span>
<span class="cap-sep">·</span>
</div>
</div>
<div class="cap-fade cap-fade--r"></div>
</div>
<div class="press-strip">
<div class="wrap-1280">
<div class="press-strip-cap">Partnered with & featured in</div>
<div class="press-row">
<a class="press-logo" href="https://registry.modelcontextprotocol.io/?q=threews" target="_blank" rel="noopener" data-i18n-html="home.anthropic"><span class="ico" style="--logo:url(/featured-logos/anthropic.svg)"></span><span class="lbl">Anthropic</span></a>
<a class="press-logo" href="/news/mcp-servers-x402-bazaar-coinbase" data-i18n-html="home.coinbase"><span class="ico" style="--logo:url(/featured-logos/coinbase.svg)"></span><span class="lbl">Coinbase</span></a>
<a class="press-logo" href="/news/ibm-collaboration-showcase" data-i18n-html="home.ibm"><span class="lbl">IBM</span></a>
<a class="press-logo" href="/news/aws-marketplace-live-may29" data-i18n-html="home.aws"><span class="lbl">AWS</span></a>
<a class="press-logo" href="/news/2059675892981633179" data-i18n-html="home.google_cloud"><span class="ico" style="--logo:url(/featured-logos/googlecloud.svg)"></span><span class="lbl">Google Cloud</span></a>
<a class="press-logo" href="/news/live-on-alibaba-cloud-marketplace" data-i18n-html="home.alibaba_cloud"><span class="ico" style="--logo:url(/featured-logos/alibabacloud.svg)"></span><span class="lbl">Alibaba Cloud</span></a>
<a class="press-logo" href="https://solana.com" target="_blank" rel="noopener" data-i18n-html="home.solana"><span class="ico" style="--logo:url(/featured-logos/solana.svg)"></span><span class="lbl">Solana</span></a>
<a class="press-logo" href="https://coinmarketcap.com/community/articles/6a226647c17eac2629024fc8/" target="_blank" rel="noopener" data-i18n-html="home.coinmarketcap"><span class="ico" style="--logo:url(/featured-logos/coinmarketcap.svg)"></span><span class="lbl">CoinMarketCap</span></a>
<a class="press-logo" href="https://www.coingecko.com/en/coins/three-ws" target="_blank" rel="noopener" data-i18n-html="home.coingecko"><span class="lbl">CoinGecko</span></a>
<a class="press-logo" href="https://hackernoon.com/threews-earns-a-781-proof-of-usefulness-score-by-building-embeddable-3d-ai-agents" target="_blank" rel="noopener" data-i18n-html="home.hackernoon"><span class="ico" style="--logo:url(/featured-logos/hackernoon.svg)"></span><span class="lbl">HackerNoon</span></a>
</div>
</div>
</div>
<!-- ── PLAYGROUND ──────────────────────────────────────────────────── -->
<section class="block" id="embed">
<div class="wrap-1280">
<div class="block-head reveal">
<p class="block-eyebrow" data-i18n-html="home.01playground"><span class="num">01</span>Playground</p>
<h2 class="block-h" data-i18n-html="home.try_it_live_ship_it_now">Try it live. <em>Ship it now.</em></h2>
<p class="block-lede" data-i18n="home.edit_the_code_below_the_preview_updates">
Edit the code below — the preview updates instantly. Switch avatars, trigger animations, toggle features. Copy two lines when you're done.
</p>
</div>
<div class="pg reveal reveal-d1">
<div class="pg-toolbar">
<div class="pg-tabs" id="pg-tabs">
<button class="pg-tab active" data-flavor="html" data-i18n="home.html">HTML</button>
<button class="pg-tab" data-flavor="react" data-i18n="home.react">React</button>
<button class="pg-tab" data-flavor="vue" data-i18n="home.vue">Vue</button>
</div>
<div class="pg-toolbar-end">
<button class="pg-copy" id="pg-copy" data-i18n="home.copy">Copy</button>
</div>
</div>
<div class="pg-controls">
<div class="pg-control-group pg-avatars-group">
<span class="pg-control-label" data-i18n="home.avatar">Avatar</span>
<div class="pg-avatar-row" id="pg-avatars"></div>
</div>
<div class="pg-control-group">
<span class="pg-control-label" data-i18n="home.mode">Mode</span>
<div class="pg-chips" id="pg-mode-chips">
<button class="pg-chip active" data-val="inline" data-i18n="home.inline">inline</button>
<button class="pg-chip" data-val="widget" data-i18n="home.widget">widget</button>
</div>
</div>
<div class="pg-control-group" style="position:relative">
<span class="pg-control-label" data-i18n="home.bg">BG</span>
<div class="pg-chips" id="pg-bg-chips">
<button class="pg-chip active" data-val="transparent" data-i18n="home.none">none</button>
<button class="pg-chip" data-val="dark" data-i18n="home.dark">dark</button>
<button class="pg-chip" data-val="light" data-i18n="home.light">light</button>
</div>
<button class="pg-color-trigger" id="pg-color-trigger" aria-label="Pick a custom background color" title="Custom color" data-i18n-attr="aria-label:home.pick_a_custom_background_col_arialabel;title:home.custom_color_title"></button>
<div class="pg-color-popover" id="pg-color-popover">
<span class="pg-color-popover-label" data-i18n="home.pick_a_color">Pick a color</span>
<div class="pg-color-swatches" id="pg-color-swatches"></div>
<div class="pg-color-hex-row">
<div class="pg-color-preview" id="pg-color-preview"></div>
<input class="pg-color-hex-input" id="pg-color-hex" type="text" placeholder="#1b1b1b" maxlength="7" spellcheck="false" autocomplete="off" aria-label="Custom background color hex value" />
</div>
</div>
</div>
<div class="pg-control-group">
<span class="pg-control-label" data-i18n="home.features">Features</span>
<div class="pg-chips" id="pg-option-chips">
<button class="pg-chip active" data-attr="responsive" data-i18n="home.responsive">responsive</button>
<button class="pg-chip" data-attr="name-plate" data-val="on" data-i18n="home.nameplate">nameplate</button>
<button class="pg-chip" data-attr="avatar-chat" data-val="on" data-i18n="home.chat">chat</button>
<button class="pg-chip active" data-attr="eager" data-i18n="home.eager">eager</button>
</div>
</div>
</div>
<div class="pg-split">
<div class="pg-left">
<div class="pg-editor-head">index.html</div>
<div class="pg-editor" id="pg-editor">
<textarea id="pg-textarea" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off" aria-label="Embed code editor"></textarea>
<pre id="pg-highlight" aria-hidden="true"></pre>
</div>
</div>
<div class="pg-right">
<div class="pg-preview-head">
<span data-i18n="home.live_preview">↪ live preview</span>
<span class="pg-status" data-i18n="home.running">running</span>
</div>
<div class="pg-preview" id="pg-preview"></div>
<div class="pg-anims" id="pg-anims">
<button class="pg-anim" data-anim="idle" data-i18n="home.idle">Idle</button>
<button class="pg-anim" data-anim="wave" data-i18n="home.wave_2">Wave</button>
<button class="pg-anim" data-anim="dance" data-i18n="home.dance_2">Dance</button>
<button class="pg-anim" data-anim="capoeira" data-i18n="home.capoeira_2">Capoeira</button>
<button class="pg-anim" data-anim="jump" data-i18n="home.jump_2">Jump</button>
<button class="pg-anim" data-anim="thriller" data-i18n="home.thriller_2">Thriller</button>
<button class="pg-anim" data-anim="celebrate" data-i18n="home.celebrate">Celebrate</button>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ── DRAGON VISION ──────────────────────────────────────────────── -->
<section class="block vision-block" id="vision-section">
<div class="wrap-1280">
<p class="block-eyebrow reveal" data-i18n-html="home.the_vision"><span class="num">•</span>The vision</p>
</div>
<div class="dragon-wrap" id="dragon-canvas-wrap">
<div class="dragon-hint">move cursor · hold to breathe fire</div>
</div>
</section>
<!-- ── THREE DOORS ───────────────────────────────────────────────── -->
<section class="block">
<div class="wrap-1280">
<div class="block-head reveal">
<p class="block-eyebrow" data-i18n-html="home.02the_platform"><span class="num">02</span>The platform</p>
<h2 class="block-h" data-i18n-html="home.build_embed_and_earn">Build, embed, <em>and earn.</em></h2>
<p class="block-lede" data-i18n="home.a_full_stack_platform_for_3d_ai">
A full-stack platform for 3D AI agents: from selfie to published agent, from embed to earning.
</p>
</div>
<div class="doors reveal reveal-d1">
<a class="door" href="/create" data-cta="build_agent" data-cta-loc="doors">
<div class="door-num"><span>01</span><span class="lbl" data-i18n="home.create">Create</span></div>
<div class="door-screenshot">
<div class="door-agent" id="door-create"></div>
</div>
<h3 data-i18n="home.prompt_to_agent_in_60_seconds">Prompt to agent in 60 seconds.</h3>
<p data-i18n="home.type_a_description_snap_a_selfie_or">Type a description, snap a selfie, or upload a GLB. Add a personality prompt, pick a voice, wire up your AI. Publish to the marketplace or keep it private.</p>
<span class="door-cta" data-i18n="home.start_building">Start building</span>
</a>
<a class="door" href="/docs" data-cta="read_docs" data-cta-loc="doors">
<div class="door-num"><span>02</span><span class="lbl" data-i18n="home.embed">Embed</span></div>
<div class="door-screenshot">
<div class="door-agent" id="door-embed"></div>
</div>
<h3 data-i18n="home.two_lines_any_page">Two lines. Any page.</h3>
<p data-i18n-html="home.drop_into_any_page_react_vue_svelte">Drop <code><agent-3d></code> into any page. React, Vue, Svelte, plain HTML. Voice, memory, animation, and payments built-in. Lazy-loaded by default.</p>
<span class="door-cta" data-i18n="home.read_the_docs">Read the docs</span>
</a>
<a class="door" href="/dashboard/monetize" data-cta="setup_monetization" data-cta-loc="doors">
<div class="door-num"><span>03</span><span class="lbl" data-i18n="home.earn">Earn</span></div>
<div class="door-screenshot">
<div class="door-earn-viz" id="door-earn-viz">
<svg class="door-earn-spark" viewBox="0 0 320 180" preserveAspectRatio="none" aria-hidden="true" focusable="false">
<defs>
<linearGradient id="earnFill" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="rgba(232,232,232,0.16)"/>
<stop offset="1" stop-color="rgba(232,232,232,0)"/>
</linearGradient>
</defs>
<path class="door-earn-area" d="M0,158 L32,150 L64,140 L96,134 L128,120 L160,112 L192,92 L224,86 L256,66 L288,50 L320,38 L320,180 L0,180 Z" fill="url(#earnFill)"/>
<path class="door-earn-line" d="M0,158 L32,150 L64,140 L96,134 L128,120 L160,112 L192,92 L224,86 L256,66 L288,50 L320,38"/>
</svg>
</div>
<div class="door-earn-overlay">
<div class="door-earn-val" id="door-earn-val">$0.00</div>
<div class="door-earn-lbl">example earnings · USDC</div>
</div>
</div>
<h3 data-i18n="home.charge_per_chat_keep_everything">Charge per chat. Keep everything.</h3>
<p data-i18n-html="home.gate_skills_behind_pay_per_call_micropayment">Gate skills behind <span data-term="pay-per-call">pay-per-call (micropayments)</span> USDC payments. Keep 100% during open beta. Watch earnings flow in real-time from your dashboard.</p>
<span class="door-cta" data-i18n="home.set_up_monetization">Set up monetization</span>
</a>
</div>
</div>
</section>
<!-- ── ADVANCED PLATFORM GATE ─ progressive disclosure. Sections tagged
data-tier="advanced" collapse behind this band for the lite tier
(html.home-lite, applied pre-paint in <head> from localStorage
'tws-home:tier'). Expanding persists; deep links into a gated section
auto-expand for that visit without persisting. -->
<section class="adv-gate" id="advanced-gate" aria-label="Advanced platform">
<div class="wrap-1280">
<div class="adv-gate-card">
<div class="adv-gate-text">
<p class="adv-gate-eyebrow" data-i18n="home.lite_adv_eyebrow">For power users</p>
<h2 class="adv-gate-h" data-i18n-html="home.lite_adv_h">The full platform, <em>when you want it.</em></h2>
<p class="adv-gate-desc" data-i18n="home.lite_adv_desc">Everything above takes you from a prompt to a published agent. The deep end is one click away:</p>
<div class="adv-gate-topics">
<a class="adv-topic" href="#home-sniper" data-i18n="home.lite_topic_trading">Autonomous trading</a>
<a class="adv-topic" href="#home-capabilities" data-i18n="home.lite_topic_capabilities">Full capability grid</a>
<a class="adv-topic" href="#home-token-economy" data-i18n="home.lite_topic_token">Token economy</a>
<a class="adv-topic" href="#home-live-economy" data-i18n="home.lite_topic_live_economy">Live agent economy</a>
<a class="adv-topic" href="#home-oracle" data-i18n="home.lite_topic_oracle">Oracle scoring</a>
<a class="adv-topic" href="#home-x402" data-i18n="home.lite_topic_x402">Pay-per-call payments</a>
<a class="adv-topic" href="#home-dev-platform" data-i18n="home.lite_topic_dev">API, SDK & MCP</a>
<a class="adv-topic" href="#home-stack" data-i18n="home.lite_topic_stack">The stack</a>
</div>
</div>
<button type="button" class="adv-toggle" id="adv-toggle" data-cta="advanced_toggle" data-cta-loc="advanced_gate"
aria-controls="home-sniper home-capabilities home-token-economy home-live-economy home-oracle home-x402 home-dev-platform home-stack">
<span class="adv-toggle-show" data-i18n="home.lite_show_advanced">Show the advanced platform</span>
<span class="adv-toggle-hide" data-i18n="home.lite_hide_advanced">Hide advanced sections</span>
</button>
</div>
</div>
</section>
<script>
// Advanced-tier runtime: toggle + persistence + deep-link auto-expand.
// The boot script in <head> already applied html.tws-lite before paint.
//
// The tier is one site-wide preference shared with the nav (public/nav.js owns
// `window.twsTier` and the `tws:tier-change` event). This page defers to it
// when the nav has loaded, and falls back to writing the same key itself so the
// gate still works on its own — the nav is fetched asynchronously and a fast
// click must never be swallowed.
(function () {
var KEY = 'tws:tier';
var root = document.documentElement;
var btn = document.getElementById('adv-toggle');
function isLite() { return root.classList.contains('tws-lite'); }
function setLite(lite, persist) {
if (persist && window.twsTier) { window.twsTier.set(lite); return; }
root.classList.toggle('tws-lite', lite);
syncBtn();
if (persist) { try { localStorage.setItem(KEY, lite ? 'lite' : 'full'); } catch (e) {} }
}
function syncBtn() {
if (btn) btn.setAttribute('aria-expanded', String(!isLite()));
}
if (btn) {
syncBtn();
btn.addEventListener('click', function () { setLite(!isLite(), true); });
}
// Flipping the tier from a nav menu must move this gate with it.
window.addEventListener('tws:tier-change', syncBtn);
// A hash pointing inside a gated section (nav links, shared URLs, the
// topic chips above) expands the tier for this visit and scrolls there.
function revealForHash() {
var hash = location.hash;
if (!hash || hash.length < 2 || !isLite()) return;
var el = null;
try { el = document.getElementById(decodeURIComponent(hash.slice(1))); } catch (e) { return; }
if (!el || !el.closest('[data-tier="advanced"]')) return;
setLite(false, false);
// Instant, not smooth: the section only just appeared, so there is no
// scroll continuity to preserve and the page-wide `scroll-behavior:
// smooth` would otherwise animate across the whole document.
requestAnimationFrame(function () {
el.scrollIntoView({ block: 'start', behavior: 'auto' });
// Late-loading media above can shift layout; correct once it settles.
setTimeout(function () { el.scrollIntoView({ block: 'start', behavior: 'auto' }); }, 450);
});
}
// This script runs mid-parse, before the gated sections below it exist in
// the DOM, so the load-time hash check must wait for the full document.
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', revealForHash);
} else {
revealForHash();
}
window.addEventListener('hashchange', revealForHash);
})();
</script>
<!-- ── AUTONOMOUS SNIPING & TRADING ─────────────────────────────── -->
<style>
#home-sniper .snipe-lede-pill {
display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
padding: 6px 12px; border: 1px solid var(--hairline-strong); border-radius: 999px;
font-size: 12px; letter-spacing: .02em; color: var(--text-2); background: var(--surface-1);
}
/* ── aggregate proof band ──────────────────────────────────── */
#home-sniper .snipe-stats {
margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 720px) { #home-sniper .snipe-stats { grid-template-columns: 1fr; gap: 12px; } }
#home-sniper .snipe-stat {
position: relative; padding: 26px 24px; border-radius: 14px; overflow: hidden;
background: var(--surface-1); border: 1px solid var(--hairline-strong);
transition: transform var(--duration-base) var(--ease-standard), border-color var(--duration-base), background var(--duration-base);
}
#home-sniper .snipe-stat::before {
content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
opacity: 0; transition: opacity var(--duration-base);
}
#home-sniper .snipe-stat:hover {
transform: translateY(-3px); border-color: rgba(255,255,255,0.4); background: var(--surface-2);
}
#home-sniper .snipe-stat:hover::before { opacity: 1; }
#home-sniper .snipe-stat-val {
display: block; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; line-height: 1;
letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums;
}
#home-sniper .snipe-stat-val.accent { color: var(--success); }
#home-sniper .snipe-stat-val.loading { color: var(--text-3); animation: snipe-shimmer-text 1.4s ease-in-out infinite; }
#home-sniper .snipe-stat-lbl {
display: block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--text);
}
#home-sniper .snipe-stat-hint {
display: block; margin-top: 5px; font-size: 12px; line-height: 1.45; color: var(--text-3);
}
#home-sniper .snipe-console {
margin-top: 24px; border: 1px solid var(--hairline-strong); border-radius: 16px;
background: var(--surface-1); overflow: hidden;
box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 24px 60px -32px rgba(0,0,0,0.8);
}
#home-sniper .snipe-console-head {
display: flex; align-items: center; justify-content: space-between; gap: 16px;
padding: 14px 20px; border-bottom: 1px solid var(--hairline);
background: linear-gradient(to bottom, var(--surface-2), var(--surface-1));
}
#home-sniper .snipe-status { display: flex; align-items: center; gap: 12px; min-width: 0; }
#home-sniper .snipe-state {
display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
color: var(--text); white-space: nowrap;
}
#home-sniper .snipe-dot {
width: 8px; height: 8px; border-radius: 50%; background: var(--text-3);
box-shadow: 0 0 0 0 rgba(52,211,153,0.5); flex: none;
}
#home-sniper .snipe-dot.live { background: var(--success); animation: snipe-pulse 2s ease-out infinite; }
#home-sniper .snipe-dot.degraded { background: var(--warn); }
#home-sniper .snipe-dot.down { background: var(--danger); }
@keyframes snipe-pulse {
0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
#home-sniper .snipe-substate { font-size: 12px; color: var(--text-3); white-space: nowrap; }
#home-sniper .snipe-net {
font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
font-variant-numeric: tabular-nums; white-space: nowrap;
}
#home-sniper .snipe-body { display: grid; grid-template-columns: 1.35fr 1fr; }
@media (max-width: 860px) { #home-sniper .snipe-body { grid-template-columns: 1fr; } }
/* ── decision pipeline ─────────────────────────────────────── */
#home-sniper .snipe-pipeline {
position: relative; padding: 34px 26px; border-right: 1px solid var(--hairline);
display: flex; flex-direction: column; gap: 20px;
}
@media (max-width: 860px) { #home-sniper .snipe-pipeline { border-right: none; border-bottom: 1px solid var(--hairline); } }
#home-sniper .snipe-flow-label {
font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}
#home-sniper .snipe-stages { position: relative; display: flex; align-items: stretch; gap: 0; }
#home-sniper .snipe-rail {
position: absolute; left: 8%; right: 8%; top: 21px; height: 2px;
background: var(--hairline-strong); border-radius: 2px; overflow: visible;
}
#home-sniper .snipe-packet {
position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
background: #fff; box-shadow: 0 0 10px 2px rgba(255,255,255,0.7);
opacity: 0; transform: translateX(0); will-change: transform, opacity;
}
#home-sniper .snipe-stage {
position: relative; flex: 1; display: flex; flex-direction: column; align-items: center;
gap: 10px; text-align: center; background: none; border: none; padding: 0; cursor: pointer;
font: inherit; color: inherit; z-index: 1;
}
#home-sniper .snipe-node {
width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
background: var(--surface-2); border: 1px solid var(--hairline-strong);
color: var(--text-2); transition: transform var(--duration-base) var(--ease-standard),
border-color var(--duration-base), color var(--duration-base), box-shadow var(--duration-base), background var(--duration-base);
}
#home-sniper .snipe-node svg { width: 20px; height: 20px; }
#home-sniper .snipe-stage:hover .snipe-node,
#home-sniper .snipe-stage:focus-visible .snipe-node {
border-color: rgba(255,255,255,0.45); color: var(--text); transform: translateY(-2px);
}
#home-sniper .snipe-stage.active .snipe-node,
#home-sniper .snipe-stage.flow .snipe-node {
border-color: #fff; color: #fff; background: var(--surface-3);
box-shadow: 0 0 0 4px rgba(255,255,255,0.08), 0 0 18px -2px rgba(255,255,255,0.4);
transform: translateY(-2px) scale(1.04);
}
#home-sniper .snipe-stage-name { font-size: 12px; font-weight: 600; color: var(--text); }
#home-sniper .snipe-stage-sub { font-size: 10.5px; color: var(--text-3); line-height: 1.3; }
#home-sniper .snipe-explain {
min-height: 44px; margin-top: 2px; padding: 12px 14px; border-radius: 10px;
background: var(--surface-1); border: 1px solid var(--hairline);
font-size: 12.5px; line-height: 1.5; color: var(--text-2);
transition: opacity var(--duration-base); opacity: 1;
}
#home-sniper .snipe-explain strong { color: var(--text); font-weight: 600; }
/* ── live trade tape ───────────────────────────────────────── */
#home-sniper .snipe-tape-wrap { display: flex; flex-direction: column; min-width: 0; }
#home-sniper .snipe-tape-head {
display: flex; align-items: center; justify-content: space-between; gap: 8px;
padding: 14px 18px 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
color: var(--text-3);
}
#home-sniper .snipe-tape {
list-style: none; margin: 0; padding: 0 10px 12px; display: flex; flex-direction: column;
gap: 4px; overflow: hidden; flex: 1; min-height: 232px;
}
#home-sniper .snipe-row {
display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
padding: 9px 10px; border-radius: 9px; background: var(--surface-1);
border: 1px solid transparent; text-decoration: none; color: inherit;
transition: background var(--duration-base), border-color var(--duration-base);
}
#home-sniper a.snipe-row:hover { background: var(--surface-2); border-color: var(--hairline-strong); }
#home-sniper .snipe-row.enter { animation: snipe-row-in .42s cubic-bezier(.2,.7,.3,1); }
@keyframes snipe-row-in {
from { opacity: 0; transform: translateY(-8px); }
to { opacity: 1; transform: translateY(0); }
}
#home-sniper .snipe-tag {
font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px;
text-transform: uppercase; flex: none;
}
#home-sniper .snipe-tag.buy { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }
#home-sniper .snipe-tag.sell { color: #cbd5e1; background: rgba(203,213,225,0.1); }
#home-sniper .snipe-tag.open { color: #5fe3ff; background: rgba(95,227,255,0.12); }
#home-sniper .snipe-rmeta { min-width: 0; }
#home-sniper .snipe-rsym { font-size: 13px; font-weight: 600; color: var(--text); }
#home-sniper .snipe-ragent {
font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden;
text-overflow: ellipsis; max-width: 100%;
}
#home-sniper .snipe-rpnl { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
#home-sniper .snipe-rpnl.up { color: var(--success); }
#home-sniper .snipe-rpnl.down { color: var(--danger); }
#home-sniper .snipe-rpnl.flat { color: var(--text-3); }
#home-sniper .snipe-tape-msg { padding: 40px 16px; text-align: center; color: var(--text-3); font-size: 13px; line-height: 1.5; }
#home-sniper .snipe-skel {
height: 38px; border-radius: 9px; margin: 0 0 4px;
background: linear-gradient(90deg, var(--surface-1) 25%, rgba(255,255,255,0.05) 50%, var(--surface-1) 75%);
background-size: 200% 100%; animation: snipe-shimmer 1.3s linear infinite;
}
@keyframes snipe-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
/* ── footer: KPIs + CTAs ───────────────────────────────────── */
#home-sniper .snipe-foot {
display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
padding: 16px 20px; border-top: 1px solid var(--hairline); background: var(--surface-1);
}
#home-sniper .snipe-kpis { display: flex; gap: 26px; flex-wrap: wrap; }
#home-sniper .snipe-kpi { display: flex; flex-direction: column; gap: 2px; }
#home-sniper .snipe-kpi-val { font-size: 18px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; }
#home-sniper .snipe-kpi-val.accent { color: var(--success); }
#home-sniper .snipe-kpi-val.loading { color: var(--text-3); animation: snipe-shimmer-text 1.4s ease-in-out infinite; }
@keyframes snipe-shimmer-text { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
#home-sniper .snipe-kpi-lbl { font-size: 11px; color: var(--text-3); letter-spacing: .02em; }
#home-sniper .snipe-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
#home-sniper .snipe-cta {
display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px;
font-size: 13px; font-weight: 600; text-decoration: none; transition: transform var(--duration-base), background var(--duration-base), border-color var(--duration-base);
}
#home-sniper .snipe-cta.primary { background: #fff; color: #0b0b0b; }
#home-sniper .snipe-cta.primary:hover { transform: translateY(-1px); }
#home-sniper .snipe-cta.ghost { background: transparent; color: var(--text); border: 1px solid var(--hairline-strong); }
#home-sniper .snipe-cta.ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.4); }
@media (prefers-reduced-motion: reduce) {
#home-sniper .snipe-dot.live { animation: none; }
#home-sniper .snipe-row.enter { animation: none; }
#home-sniper .snipe-skel { animation: none; }
#home-sniper .snipe-kpi-val.loading { animation: none; }
}
</style>
<section class="block" id="home-sniper" data-tier="advanced">
<div class="wrap-1280">
<div class="block-head reveal">
<p class="block-eyebrow" data-i18n-html="home.03autonomous_trading"><span class="num">03</span>Autonomous trading</p>
<h2 class="block-h" data-i18n-html="home.your_agents_don_t_just_talk_they">Your agents don't just talk. <em>They trade.</em></h2>
<p class="block-lede" data-i18n="home.every_three_ws_agent_can_run_an">
Every three.ws agent can run an on-chain sniper: it watches new pump.fun launches in
real time, scores each one, clears its risk guards, buys, and exits on its own —
stop-loss, take-profit, trailing, or timeout. One loop, fully autonomous, provable on-chain.
</p>
<span class="snipe-lede-pill" data-i18n-html="home.live_engine_real_positions_no_simulation"><span class="snipe-dot live" aria-hidden="true"></span> Live engine · real positions · no simulation</span>
</div>
<!-- Aggregate proof band — real platform numbers from the oracle + trade ledger -->
<div class="snipe-stats reveal reveal-d1" id="snipe-stats" aria-label="Autonomous trading — by the numbers">
<div class="snipe-stat">
<span class="snipe-stat-val loading" id="snipe-stat-scored" data-to="0">—</span>
<span class="snipe-stat-lbl" data-i18n="home.launches_scored_today">Launches scored today</span>
<span class="snipe-stat-hint" data-i18n="home.every_new_pump_fun_mint_graded_for">Every new pump.fun mint, graded for conviction in the last 24 hours.</span>
</div>
<div class="snipe-stat">
<span class="snipe-stat-val accent loading" id="snipe-stat-wins" data-to="0">—</span>
<span class="snipe-stat-lbl" data-i18n="home.winning_exits">Winning exits</span>
<span class="snipe-stat-hint" data-i18n="home.profitable_trades_agents_have_closed_autonom">Profitable trades agents have closed autonomously, all-time.</span>
</div>
<div class="snipe-stat">
<span class="snipe-stat-val loading" id="snipe-stat-ath" data-to="0">—</span>
<span class="snipe-stat-lbl" data-i18n="home.best_run">Best run</span>
<span class="snipe-stat-hint" data-i18n="home.top_multiple_a_scored_launch_has_reached">Top multiple a scored launch has reached from its entry.</span>
</div>
</div>
<div class="snipe-console reveal reveal-d1">
<div class="snipe-console-head">
<div class="snipe-status" id="snipe-status">
<span class="snipe-state" data-i18n-html="home.connecting_to_the_engine"><span class="snipe-dot" id="snipe-state-dot" aria-hidden="true"></span><span id="snipe-state-text">Connecting to the engine…</span></span>
<span class="snipe-substate" id="snipe-substate"></span>
</div>
<span class="snipe-net" data-i18n="home.mainnet_pump_fun">mainnet · pump.fun</span>
</div>
<div class="snipe-body">
<!-- decision pipeline -->
<div class="snipe-pipeline">
<span class="snipe-flow-label" data-i18n="home.the_trade_loop">The trade loop</span>
<div class="snipe-stages" id="snipe-stages" role="group" aria-label="The autonomous trade loop — select a stage to learn what it does">
<div class="snipe-rail">
<span class="snipe-packet" id="snipe-packet" aria-hidden="true"></span>
</div>
<button type="button" class="snipe-stage active" data-stage="watch" aria-pressed="true" data-i18n-html="home.watch_new_launches">
<span class="snipe-node"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"/></svg></span>
<span class="snipe-stage-name">Watch</span>
<span class="snipe-stage-sub">new launches</span>
</button>
<button type="button" class="snipe-stage" data-stage="score" aria-pressed="false" data-i18n-html="home.score_conviction">
<span class="snipe-node"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3v18h18"/><path d="m7 14 3-4 3 3 5-7"/></svg></span>
<span class="snipe-stage-name">Score</span>
<span class="snipe-stage-sub">conviction</span>
</button>
<button type="button" class="snipe-stage" data-stage="guard" aria-pressed="false" data-i18n-html="home.guard_risk_checks">
<span class="snipe-node"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z"/></svg></span>
<span class="snipe-stage-name">Guard</span>
<span class="snipe-stage-sub">risk checks</span>
</button>
<button type="button" class="snipe-stage" data-stage="buy" aria-pressed="false" data-i18n-html="home.buy_sign_land">
<span class="snipe-node"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M12 19V5"/><path d="m5 12 7-7 7 7"/></svg></span>
<span class="snipe-stage-name">Buy</span>
<span class="snipe-stage-sub">sign & land</span>
</button>
<button type="button" class="snipe-stage" data-stage="exit" aria-pressed="false" data-i18n-html="home.exit_tp_sl_trail">
<span class="snipe-node"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><path d="m16 17 5-5-5-5"/><path d="M21 12H9"/></svg></span>
<span class="snipe-stage-name">Exit</span>
<span class="snipe-stage-sub">TP / SL / trail</span>
</button>
</div>
<p class="snipe-explain" id="snipe-explain" data-i18n-html="home.watch_a_pumpportal_feed_streams_every_new"><strong>Watch.</strong> A PumpPortal feed streams every new pump.fun mint the instant it's created — the agent sees launches the moment they exist.</p>
</div>
<!-- live trade tape -->
<div class="snipe-tape-wrap">
<div class="snipe-tape-head">
<span data-i18n="home.live_activity">Live activity</span>
<span class="snipe-state" style="font-size:11px" data-i18n-html="home.streaming"><span class="snipe-dot live" aria-hidden="true"></span> streaming</span>
</div>
<ul class="snipe-tape" id="snipe-tape" aria-live="polite" aria-label="Live sniper trades">
<li class="snipe-skel"></li><li class="snipe-skel"></li><li class="snipe-skel"></li>
<li class="snipe-skel"></li><li class="snipe-skel"></li>
</ul>
</div>
</div>
<div class="snipe-foot">
<div class="snipe-kpis" id="snipe-kpis">
<div class="snipe-kpi"><span class="snipe-kpi-val accent loading" id="snipe-kpi-roi">—</span><span class="snipe-kpi-lbl" data-i18n="home.best_roi">Best ROI</span></div>
<div class="snipe-kpi"><span class="snipe-kpi-val loading" id="snipe-kpi-open">—</span><span class="snipe-kpi-lbl" data-i18n="home.open_positions">Open positions</span></div>
<div class="snipe-kpi"><span class="snipe-kpi-val loading" id="snipe-kpi-armed">—</span><span class="snipe-kpi-lbl" data-i18n="home.strategies_armed">Strategies armed</span></div>
</div>
<div class="snipe-ctas">
<a class="snipe-cta primary" href="/arena" data-cta="watch_arena" data-cta-loc="home_sniper" data-i18n="home.watch_the_arena">Watch the arena →</a>
<a class="snipe-cta ghost" href="/oracle/arm" data-cta="arm_strategy" data-cta-loc="home_sniper" data-i18n="home.arm_a_strategy">Arm a strategy</a>
</div>
</div>
</div>
</div>
</section>
<!-- ── WHAT YOU GET ──────────────────────────────────────────────── -->
<section class="block" id="what-you-get">
<div class="wrap-1280">
<div class="wyg-head reveal">
<p class="wyg-eyebrow" data-i18n="home.what_you_get">What you get</p>
<h2 class="wyg-title" data-i18n-html="home.everything_an_agent_needs_to_exist_in">Everything an agent needs<br>to exist in the world.</h2>
</div>
<div class="wyg-grid reveal reveal-d1">
<!-- Left: Avatar viewer with animation gallery -->
<div class="wyg-viewer" id="wyg-viewer">
<div class="wyg-viewer-skel" id="wyg-viewer-skel">
<div class="wyg-viewer-skel-ring"></div>
</div>
<div class="wyg-anim-bar">
<div class="wyg-anim-head">
<span class="wyg-anim-label" data-i18n="home.animations">Animations</span>
<button class="wyg-anim-stop" id="wyg-anim-stop" type="button" aria-label="Stop animation" data-i18n-attr="aria-label:home.stop_animation_arialabel"></button>
</div>
<div class="wyg-anim-scroll" id="wyg-anim-scroll" role="group" aria-label="Animation gallery">
<button type="button" class="wyg-anim-chip" data-anim="idle" data-i18n-html="home.idle_2"><span class="wyg-anim-chip-icon">🧍</span>Idle</button>
<button type="button" class="wyg-anim-chip" data-anim="lookdown" data-i18n-html="home.look_down"><span class="wyg-anim-chip-icon">👀</span>Look Down</button>
<button type="button" class="wyg-anim-chip" data-anim="covereyes" data-i18n-html="home.cover_eyes"><span class="wyg-anim-chip-icon">🙈</span>Cover Eyes</button>
<button type="button" class="wyg-anim-chip" data-anim="facepalm" data-i18n-html="home.facepalm"><span class="wyg-anim-chip-icon">🤦</span>Facepalm</button>
<button type="button" class="wyg-anim-chip" data-anim="av-idle-breath" data-i18n-html="home.idle_breath"><span class="wyg-anim-chip-icon">🧘</span>Idle Breath</button>
<button type="button" class="wyg-anim-chip" data-anim="av-waiting" data-i18n-html="home.waiting"><span class="wyg-anim-chip-icon">🕰️</span>Waiting</button>
<button type="button" class="wyg-anim-chip" data-anim="av-superhero-jump" data-i18n-html="home.superhero_j"><span class="wyg-anim-chip-icon">🦸</span>Superhero J.</button>
<button type="button" class="wyg-anim-chip" data-anim="av-walk-crouching" data-i18n-html="home.walk_crouc"><span class="wyg-anim-chip-icon">🚶</span>Walk Crouc.</button>
<button type="button" class="wyg-anim-chip" data-anim="av-arm-flex" data-i18n-html="home.arm_flex"><span class="wyg-anim-chip-icon">💪</span>Arm Flex</button>
<button type="button" class="wyg-anim-chip" data-anim="av-boxer-dance" data-i18n-html="home.boxer_dance"><span class="wyg-anim-chip-icon">🥊</span>Boxer Dance</button>
<button type="button" class="wyg-anim-chip" data-anim="av-brag-claps" data-i18n-html="home.brag_clap"><span class="wyg-anim-chip-icon">👏</span>Brag & Clap</button>
<button type="button" class="wyg-anim-chip" data-anim="av-flexing-arm" data-i18n-html="home.flex_arm"><span class="wyg-anim-chip-icon">💪</span>Flex Arm</button>
<button type="button" class="wyg-anim-chip" data-anim="av-vtubing" data-i18n-html="home.vtubing"><span class="wyg-anim-chip-icon">📹</span>VTubing</button>
<button type="button" class="wyg-anim-chip" data-anim="av-stand-crouch-stand" data-i18n-html="home.stand_crouch"><span class="wyg-anim-chip-icon">🦵</span>Stand-Crouch</button>
<button type="button" class="wyg-anim-chip" data-anim="av-smoking" data-i18n-html="home.smoking"><span class="wyg-anim-chip-icon">🚬</span>Smoking</button>
<button type="button" class="wyg-anim-chip" data-anim="av-gymnastics-aerial" data-i18n-html="home.gymnastics"><span class="wyg-anim-chip-icon">🤸</span>Gymnastics</button>
<button type="button" class="wyg-anim-chip" data-anim="av-back-flip" data-i18n-html="home.back_flip"><span class="wyg-anim-chip-icon">🤸</span>Back Flip</button>
<button type="button" class="wyg-anim-chip" data-anim="av-idle-male" data-i18n-html="home.male_idle"><span class="wyg-anim-chip-icon">🚹</span>Male Idle</button>
<button type="button" class="wyg-anim-chip" data-anim="av-idle-female" data-i18n-html="home.female_idle"><span class="wyg-anim-chip-icon">🚺</span>Female Idle</button>
<button type="button" class="wyg-anim-chip" data-anim="av-chest-bump" data-i18n-html="home.chest_bump"><span class="wyg-anim-chip-icon">🦍</span>Chest Bump</button>
<button type="button" class="wyg-anim-chip" data-anim="av-walk-feminine" data-i18n-html="home.feminine_walk"><span class="wyg-anim-chip-icon">🚶‍♀️</span>Feminine Walk</button>
<button type="button" class="wyg-anim-chip" data-anim="av-push-block" data-i18n-html="home.push_block"><span class="wyg-anim-chip-icon">📦</span>Push Block</button>
<button type="button" class="wyg-anim-chip" data-anim="av-dance-shuffle" data-i18n-html="home.shuffle_dance"><span class="wyg-anim-chip-icon">💃</span>Shuffle Dance</button>
<button type="button" class="wyg-anim-chip" data-anim="av-headbang" data-i18n-html="home.head_banging"><span class="wyg-anim-chip-icon">🤘</span>Head Banging</button>
<button type="button" class="wyg-anim-chip" data-anim="av-call-me" data-i18n-html="home.call_me"><span class="wyg-anim-chip-icon">📞</span>Call Me</button>
<button type="button" class="wyg-anim-chip" data-anim="av-chilling" data-i18n-html="home.chilling"><span class="wyg-anim-chip-icon">😎</span>Chilling</button>
<button type="button" class="wyg-anim-chip" data-anim="av-pose1" data-i18n-html="home.pose"><span class="wyg-anim-chip-icon">🎭</span>Pose</button>
<button type="button" class="wyg-anim-chip" data-anim="av-muay-thai" data-i18n-html="home.muay_thai"><span class="wyg-anim-chip-icon">🥊</span>Muay Thai</button>
<button type="button" class="wyg-anim-chip" data-anim="av-banging-tunes" data-i18n-html="home.banging_tunes"><span class="wyg-anim-chip-icon">🎵</span>Banging Tunes</button>
<button type="button" class="wyg-anim-chip" data-anim="av-celebrating" data-i18n-html="home.celebrating"><span class="wyg-anim-chip-icon">🎉</span>Celebrating</button>
<button type="button" class="wyg-anim-chip" data-anim="av-spy" data-i18n-html="home.spy"><span class="wyg-anim-chip-icon">🕵️</span>Spy</button>
<button type="button" class="wyg-anim-chip" data-anim="av-cheering" data-i18n-html="home.cheering"><span class="wyg-anim-chip-icon">📣</span>Cheering</button>
<button type="button" class="wyg-anim-chip" data-anim="av-joy" data-i18n-html="home.joy"><span class="wyg-anim-chip-icon">😊</span>Joy</button>
<button type="button" class="wyg-anim-chip" data-anim="av-conductor" data-i18n-html="home.conductor"><span class="wyg-anim-chip-icon">🎼</span>Conductor</button>
<button type="button" class="wyg-anim-chip" data-anim="av-listening-music" data-i18n-html="home.listening"><span class="wyg-anim-chip-icon">🎧</span>Listening</button>
<button type="button" class="wyg-anim-chip" data-anim="av-leaning-wall" data-i18n-html="home.leaning"><span class="wyg-anim-chip-icon">🧱</span>Leaning</button>
<button type="button" class="wyg-anim-chip" data-anim="av-rap-dance" data-i18n-html="home.rap_dancing"><span class="wyg-anim-chip-icon">🎤</span>Rap Dancing</button>
<button type="button" class="wyg-anim-chip" data-anim="dance" data-i18n-html="home.dance_3"><span class="wyg-anim-chip-icon">💃</span>Dance</button>
<button type="button" class="wyg-anim-chip" data-anim="celebrate" data-i18n-html="home.celebrate_2"><span class="wyg-anim-chip-icon">🎉</span>Celebrate</button>
<button type="button" class="wyg-anim-chip" data-anim="angry" data-i18n-html="home.angry"><span class="wyg-anim-chip-icon">😡</span>Angry</button>
<button type="button" class="wyg-anim-chip" data-anim="defeated" data-i18n-html="home.defeated"><span class="wyg-anim-chip-icon">😞</span>Defeated</button>
<button type="button" class="wyg-anim-chip" data-anim="dying" data-i18n-html="home.dying"><span class="wyg-anim-chip-icon">💀</span>Dying</button>
<button type="button" class="wyg-anim-chip" data-anim="falling" data-i18n-html="home.falling"><span class="wyg-anim-chip-icon">🪂</span>Falling</button>
<button type="button" class="wyg-anim-chip" data-anim="jump" data-i18n-html="home.jump_3"><span class="wyg-anim-chip-icon">🦘</span>Jump</button>
<button type="button" class="wyg-anim-chip" data-anim="kiss" data-i18n-html="home.kiss"><span class="wyg-anim-chip-icon">💋</span>Kiss</button>
<button type="button" class="wyg-anim-chip" data-anim="pray" data-i18n-html="home.pray_2"><span class="wyg-anim-chip-icon">🙏</span>Pray</button>
<button type="button" class="wyg-anim-chip" data-anim="reaction" data-i18n-html="home.reaction"><span class="wyg-anim-chip-icon">😲</span>Reaction</button>
<button type="button" class="wyg-anim-chip" data-anim="rumba" data-i18n-html="home.rumba"><span class="wyg-anim-chip-icon">🕺</span>Rumba</button>
<button type="button" class="wyg-anim-chip" data-anim="silly" data-i18n-html="home.silly_dance"><span class="wyg-anim-chip-icon">🤪</span>Silly Dance</button>
<button type="button" class="wyg-anim-chip" data-anim="sitclap" data-i18n-html="home.sit_clap"><span class="wyg-anim-chip-icon">👏</span>Sit Clap</button>
<button type="button" class="wyg-anim-chip" data-anim="sitlaugh" data-i18n-html="home.sit_laugh"><span class="wyg-anim-chip-icon">😂</span>Sit Laugh</button>
<button type="button" class="wyg-anim-chip" data-anim="taunt" data-i18n-html="home.taunt"><span class="wyg-anim-chip-icon">😝</span>Taunt</button>
<button type="button" class="wyg-anim-chip" data-anim="thriller" data-i18n-html="home.thriller_3"><span class="wyg-anim-chip-icon">🧟</span>Thriller</button>
<button type="button" class="wyg-anim-chip" data-anim="capoeira" data-i18n-html="home.capoeira_3"><span class="wyg-anim-chip-icon">🥋</span>Capoeira</button>
<button type="button" class="wyg-anim-chip" data-anim="wave" data-i18n-html="home.wave_3"><span class="wyg-anim-chip-icon">👋</span>Wave</button>
<button type="button" class="wyg-anim-chip" data-anim="walk" data-i18n-html="home.walk"><span class="wyg-anim-chip-icon">🚶</span>Walk</button>
<button type="button" class="wyg-anim-chip" data-anim="dodge" data-i18n-html="home.dodge"><span class="wyg-anim-chip-icon">🤺</span>Dodge</button>
<button type="button" class="wyg-anim-chip" data-anim="stepback" data-i18n-html="home.step_back"><span class="wyg-anim-chip-icon">👣</span>Step Back</button>
<button type="button" class="wyg-anim-chip" data-anim="shoved" data-i18n-html="home.shoved"><span class="wyg-anim-chip-icon">💥</span>Shoved</button>
<button type="button" class="wyg-anim-chip" data-anim="standup" data-i18n-html="home.stand_up"><span class="wyg-anim-chip-icon">⬆️</span>Stand Up</button>
<button type="button" class="wyg-anim-chip" data-anim="header" data-i18n-html="home.header"><span class="wyg-anim-chip-icon">⚽</span>Header</button>
<button type="button" class="wyg-anim-chip" data-anim="coverstand" data-i18n-html="home.cover_stand"><span class="wyg-anim-chip-icon">🛡️</span>Cover Stand</button>
<button type="button" class="wyg-anim-chip" data-anim="goalkeeper" data-i18n-html="home.goalkeeper"><span class="wyg-anim-chip-icon">🧤</span>Goalkeeper</button>
<button type="button" class="wyg-anim-chip" data-anim="jumpdown" data-i18n-html="home.jump_down"><span class="wyg-anim-chip-icon">⬇️</span>Jump Down</button>
<button type="button" class="wyg-anim-chip" data-anim="jumpdown2" data-i18n-html="home.jump_down_2"><span class="wyg-anim-chip-icon">⬇️</span>Jump Down 2</button>
<button type="button" class="wyg-anim-chip" data-anim="jumpdown3" data-i18n-html="home.jump_down_3"><span class="wyg-anim-chip-icon">⬇️</span>Jump Down 3</button>
<button type="button" class="wyg-anim-chip" data-anim="removing" data-i18n-html="home.removing"><span class="wyg-anim-chip-icon">🚗</span>Removing</button>
<button type="button" class="wyg-anim-chip" data-anim="falltolanding" data-i18n-html="home.fall_to_land"><span class="wyg-anim-chip-icon">🦅</span>Fall to Land</button>
<button type="button" class="wyg-anim-chip" data-anim="downdog" data-i18n-html="home.downward_dog"><span class="wyg-anim-chip-icon">🧘</span>Downward Dog</button>
</div>
</div>
</div>
<!-- Right: Feature cards -->
<div class="wyg-cards">
<!-- Viewer -->
<div class="wyg-card">
<p class="wyg-card-eyebrow clr-sky" data-i18n="home.viewer">Viewer</p>
<h3 class="wyg-card-title" data-i18n="home.webgl_rendering_zero_install">WebGL rendering, zero install.</h3>
<p class="wyg-card-body" data-i18n="home.drag_any_glb_into_the_browser_full">Drag any GLB into the browser. Full animations, lighting, and materials — instantly, on any device.</p>
<a href="/playground" class="wyg-card-link" data-i18n="home.open_viewer">Open viewer</a>
</div>
<!-- Embed -->
<div class="wyg-card">
<p class="wyg-card-eyebrow clr-teal" data-i18n="home.embed_2">Embed</p>
<h3 class="wyg-card-title" data-i18n="home.one_tag_any_site">One tag. Any site.</h3>
<p class="wyg-card-body" data-i18n="home.drop_a_web_component_into_notion_ghost">Drop a web component into Notion, Ghost, WordPress, Framer, or your own app — no SDK required.</p>
<div class="wyg-card-code"><span style="color:var(--text-3)"><</span><span style="color:var(--text)" data-i18n="home.agent_3d">agent-3d</span><br> <span style="color:var(--text-4)" data-i18n="home.agent_id">agent-id=</span><span style="color:var(--text-2)" data-i18n="home.3dag_upl">"3DAg…uPL"</span><br><span style="color:var(--text-3)">></</span><span style="color:var(--text)" data-i18n="home.agent_3d_2">agent-3d</span><span style="color:var(--text-3)">></span></div>
</div>
<!-- On-chain -->
<div class="wyg-card">
<p class="wyg-card-eyebrow clr-purple" data-i18n="home.on_chain_optional">On-chain · optional</p>
<h3 class="wyg-card-title" data-i18n="home.own_it_if_you_want">Own it, if you want.</h3>
<p class="wyg-card-body" data-i18n="home.optionally_record_your_agent_on_the_blockcha">Optionally record your agent on the blockchain so anyone can verify it's really yours — and other AI tools can find and call it. One transaction, sub-cent fees. Built on Metaplex Core, ERC-8004, A2A, and MCP.</p>
</div>
<!-- AI -->
<div class="wyg-card">
<p class="wyg-card-eyebrow clr-rose" data-i18n="home.ai">AI</p>
<h3 class="wyg-card-title" data-i18n="home.expression_in_real_time">Expression, in real time.</h3>
<p class="wyg-card-body" data-i18n="home.your_agent_reacts_as_it_speaks_thinks">Your agent reacts as it speaks, thinks, succeeds, and fails — emotion wired directly to model output, not scripted.</p>
<div class="wyg-card-pills">
<span class="wyg-card-pill" data-i18n-html="home.celebration"><span class="dot" style="background:#ffffff"></span>Celebration</span>
<span class="wyg-card-pill" data-i18n-html="home.curiosity"><span class="dot" style="background:var(--success)"></span>Curiosity</span>
<span class="wyg-card-pill" data-i18n-html="home.empathy"><span class="dot" style="background:#60a5fa"></span>Empathy</span>
<span class="wyg-card-pill" data-i18n-html="home.concern"><span class="dot" style="background:var(--warn)"></span>Concern</span>
</div>
</div>
<!-- Widgets -->
<div class="wyg-card">
<p class="wyg-card-eyebrow clr-gold" data-i18n="home.widgets">Widgets</p>
<h3 class="wyg-card-title" data-i18n="home.5_widget_types">5 widget types.</h3>
<p class="wyg-card-body" data-i18n="home.turntable_talking_agent_animation_gallery_ag">Turntable · Talking Agent · Animation Gallery · Agent Passport · Hotspot Tour</p>
<a href="/widgets" class="wyg-card-link" data-i18n="home.widget_studio">Widget Studio</a>
</div>
<!-- SNS -->
<div class="wyg-card">
<p class="wyg-card-eyebrow clr-amber" data-i18n="home.sns_pay_by_name">SNS · pay-by-name</p>
<h3 class="wyg-card-title" data-i18n="home.get_paid_by_name">Get paid by name.</h3>
<p class="wyg-card-body" data-i18n="home.claim_yourname_threews_sol_as_a_solana">Claim yourname.threews.sol as a Solana Name Service subdomain. Brave routes it straight to your showcase; agents pay you in USDC by name, not address. We absorb the gas.</p>
<a href="/dashboard/account" class="wyg-card-link" data-i18n="home.claim_your_subdomain">Claim your subdomain</a>
</div>
</div>
</div>
</div>
</section>
<!-- ── COMMUNITY FORGE — live spinning models from /api/forge-gallery ── -->
<style>
#home-community-forge { overflow: hidden; border-top: 1px solid var(--hairline); }
#home-community-forge .hcf-head {
display: flex; align-items: flex-end; justify-content: space-between;
gap: 16px; margin-bottom: 28px;
}
#home-community-forge .hcf-eyebrow {
font-family: var(--font-mono); font-size: var(--text-xs);
letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
#home-community-forge .hcf-eyebrow::before {
content: ''; display: inline-block; width: 6px; height: 6px;
border-radius: 50%; background: var(--text-3);
}
#home-community-forge .hcf-title {
font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, var(--text-2xl));
font-weight: 600; line-height: 1.1; margin: 0;
}
#home-community-forge .hcf-title em { font-style: normal; color: var(--text-3); }
#home-community-forge .hcf-cta {
flex-shrink: 0; font-size: 14px; font-weight: 500; font-family: var(--font-body);
color: var(--text-2); text-decoration: none; border: 1px solid var(--hairline);
border-radius: 8px; padding: 8px 16px; white-space: nowrap;
display: inline-flex; align-items: center; gap: 6px;
transition: color var(--duration-fast), border-color var(--duration-fast);
}
#home-community-forge .hcf-cta:hover { color: var(--text); border-color: var(--hairline-strong); }
#home-community-forge .hcf-track {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 12px;
}
@media (min-width: 1100px) {
#home-community-forge .hcf-track {
grid-template-columns: repeat(6, minmax(0, 1fr));
}
}
@media (min-width: 700px) and (max-width: 1099px) {
#home-community-forge .hcf-track {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 699px) {
#home-community-forge .hcf-track {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
.hcf-card {
border-radius: 14px; overflow: hidden;
border: 1px solid var(--hairline);
background: var(--surface-1);
display: flex; flex-direction: column;
transition: border-color var(--duration-fast), transform var(--duration-fast);
cursor: default; min-width: 0;
}
.hcf-card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.hcf-viewer-wrap {
position: relative; aspect-ratio: 1 / 1;
background: radial-gradient(120% 100% at 50% 0%, #121214 0%, #0a0a0b 100%);
}
.hcf-viewer-wrap model-viewer {
width: 100%; height: 100%;
--poster-color: transparent;
background: transparent;
}
/* Stand-in for the mesh until the strip nears the viewport. Matches the
viewer's box exactly so the swap to <model-viewer> shifts nothing. */
.hcf-poster {
width: 100%; height: 100%;
object-fit: contain;
display: block;
background: transparent;
}
.hcf-ph {
position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.hcf-ph svg { width: 32px; height: 32px; opacity: 0.18; }
.hcf-body {
padding: 10px 12px 12px;
flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.hcf-prompt {
font-size: 12.5px; font-family: var(--font-body); color: var(--text-2); line-height: 1.35;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
overflow: hidden;
}
.hcf-meta { font-size: 11px; font-family: var(--font-mono); color: var(--text-3); margin-top: auto; padding-top: 6px; }
.hcf-skel {
border-radius: 14px; border: 1px solid var(--hairline);
background: var(--surface-1); overflow: hidden;
}
.hcf-skel-thumb { aspect-ratio: 1/1; background: var(--surface-2); animation: hcf-pulse 1.8s ease-in-out infinite; }
.hcf-skel-body { padding: 10px 12px 12px; }
.hcf-skel-line { height: 10px; border-radius: 5px; background: var(--surface-2); animation: hcf-pulse 1.8s ease-in-out infinite; margin-bottom: 6px; }
.hcf-skel-line:last-child { width: 60%; margin-bottom: 0; }
@keyframes hcf-pulse { 0%,100%{opacity:.5} 50%{opacity:1} }
/* Live-feed controls: Fresh/Trending toggle, live pulse, Show more */
#home-community-forge .hcf-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
#home-community-forge .hcf-tabs {
display: inline-flex; padding: 3px; gap: 2px;
background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 999px;
}
#home-community-forge .hcf-tab {
appearance: none; border: 0; cursor: pointer;
padding: 6px 14px; border-radius: 999px; background: transparent;
font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--text-3);
transition: color var(--duration-fast), background var(--duration-fast);
}
#home-community-forge .hcf-tab[aria-pressed="true"] { color: var(--text); background: var(--surface-3); }
#home-community-forge .hcf-tab:hover { color: var(--text); }
#home-community-forge .hcf-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#home-community-forge .hcf-live {
display: inline-flex; align-items: center; gap: 6px;
font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
text-transform: uppercase; color: var(--text-3);
}
#home-community-forge .hcf-live-dot {
width: 6px; height: 6px; border-radius: 50%; background: var(--success);
box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 50%, transparent); animation: hcf-live-pulse 2.2s ease-out infinite;
}
@keyframes hcf-live-pulse {
0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 45%, transparent); }
70% { box-shadow: 0 0 0 6px transparent; }
100% { box-shadow: 0 0 0 0 transparent; }
}
#home-community-forge .hcf-empty {
grid-column: 1 / -1; margin: 0; padding: 40px 16px; text-align: center;
color: var(--text-3); font-size: 14px; font-family: var(--font-body);
border: 1px dashed var(--hairline); border-radius: 14px;
}
#home-community-forge .hcf-morewrap { display: flex; justify-content: center; margin-top: 22px; }
#home-community-forge .hcf-more {
appearance: none; cursor: pointer;
padding: 10px 22px; border-radius: 10px;
background: var(--surface-1); border: 1px solid var(--hairline);
font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-2);
transition: color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}
#home-community-forge .hcf-more:hover { color: var(--text); border-color: var(--hairline-strong); transform: translateY(-1px); }
#home-community-forge .hcf-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A freshly arrived model animates in at the top of the loop */
.hcf-card--new { animation: hcf-card-in .5s cubic-bezier(.2,.7,.3,1) both; }
@keyframes hcf-card-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
#home-community-forge .hcf-live-dot { animation: none; }
.hcf-card--new { animation: none; }
}
@media (max-width: 560px) {
#home-community-forge .hcf-head { flex-direction: column; align-items: flex-start; }
#home-community-forge .hcf-controls { width: 100%; justify-content: space-between; }
}
</style>
<section class="block" id="home-community-forge">
<div class="wrap-1280">
<div class="hcf-head reveal">
<div>
<p class="hcf-eyebrow"><span data-i18n="home.community">Community</span><span class="hcf-live" id="hcf-live" hidden><span class="hcf-live-dot" aria-hidden="true"></span><span data-i18n="home.live">live</span></span></p>
<h2 class="hcf-title" data-i18n-html="home.made_with_forge_right_now">Made with Forge. <em>Right now.</em></h2>
</div>
<div class="hcf-controls">
<div class="hcf-tabs" role="group" aria-label="Sort community models">
<button type="button" class="hcf-tab" data-hcf-sort="fresh" aria-pressed="true" data-i18n="home.fresh">Fresh</button>
<button type="button" class="hcf-tab" data-hcf-sort="top" aria-pressed="false" data-i18n="home.trending">Trending</button>
</div>
<a href="/forge" class="hcf-cta" data-i18n="home.generate_yours">Generate yours →</a>
</div>
</div>
<div class="hcf-track reveal reveal-d1" id="hcf-track">
<!-- skeleton placeholders — replaced by JS -->
<div class="hcf-skel"><div class="hcf-skel-thumb"></div><div class="hcf-skel-body"><div class="hcf-skel-line"></div><div class="hcf-skel-line"></div></div></div>
<div class="hcf-skel"><div class="hcf-skel-thumb"></div><div class="hcf-skel-body"><div class="hcf-skel-line"></div><div class="hcf-skel-line"></div></div></div>
<div class="hcf-skel"><div class="hcf-skel-thumb"></div><div class="hcf-skel-body"><div class="hcf-skel-line"></div><div class="hcf-skel-line"></div></div></div>
<div class="hcf-skel"><div class="hcf-skel-thumb"></div><div class="hcf-skel-body"><div class="hcf-skel-line"></div><div class="hcf-skel-line"></div></div></div>
<div class="hcf-skel"><div class="hcf-skel-thumb"></div><div class="hcf-skel-body"><div class="hcf-skel-line"></div><div class="hcf-skel-line"></div></div></div>
<div class="hcf-skel"><div class="hcf-skel-thumb"></div><div class="hcf-skel-body"><div class="hcf-skel-line"></div><div class="hcf-skel-line"></div></div></div>
</div>
<div class="hcf-morewrap"><button type="button" class="hcf-more" id="hcf-more" hidden data-i18n="home.show_more">Show more</button></div>
</div>
</section>
<script type="module">
import { attendRotation } from '/src/shared/attended-rotation.js';
(function() {
var track = document.getElementById('hcf-track');
if (!track) return;
function timeAgo(iso) {
var s = Math.max(0, (Date.now() - Date.parse(iso)) / 1000);
if (s < 60) return 'just now';
if (s < 3600) return Math.floor(s / 60) + 'm ago';
if (s < 86400) return Math.floor(s / 3600) + 'h ago';
return Math.floor(s / 86400) + 'd ago';
}
function promptGrad(str) {
var h = 0;
for (var i = 0; i < (str || '').length; i++) h = (Math.imul(31, h) + str.charCodeAt(i)) | 0;
var hue = Math.abs(h) % 360;
return 'radial-gradient(120% 100% at 50% 0%, hsl(' + hue + ',28%,13%) 0%, hsl(' + ((hue+40)%360) + ',18%,8%) 100%)';
}
// This strip sits several screens below the fold, but it used to build a grid
// of live <model-viewer> elements during page load: the CDN element bundle
// alone cost ~1.4s of main-thread scripting inside the Total Blocking Time
// window, for a section the visitor had not scrolled to. Cards now render
// immediately as poster images (same markup, same height, so nothing shifts)
// and upgrade to real meshes when the section approaches the viewport.
var viewersLive = false;
var pendingViewerCards = [];
const MV_SRC = 'https://cdn.jsdelivr.net/npm/@google/[email protected]/dist/model-viewer.min.js';
function ensureModelViewer() {
if (customElements.get('model-viewer')) return;
// Reuse the library if the hero/mini-forge already injected it, but match
// the actual element bundle (model-viewer.min.js) — NOT model-viewer-meshopt.js,
// the decoder helper loaded on this page, whose src also contains
// "model-viewer". The looser match short-circuited here and left the
// community cards permanently un-upgraded (gradient/poster, never a mesh).
if (document.querySelector('script[src*="model-viewer.min.js"]')) return;
var s = document.createElement('script');
s.type = 'module';
s.src = MV_SRC;
document.head.appendChild(s);
}
// Replace a card's poster with the live rotating mesh.
function mountViewer(wrap, c) {
var mv = document.createElement('model-viewer');
mv.setAttribute('src', c.glb_url);
mv.setAttribute('auto-rotate', '');
mv.setAttribute('auto-rotate-delay', '0');
mv.setAttribute('rotation-per-second', '20deg');
mv.setAttribute('interaction-prompt', 'none');
mv.setAttribute('disable-zoom', '');
mv.setAttribute('shadow-intensity', '0');
mv.setAttribute('exposure', '0.92');
mv.setAttribute('environment-image', 'neutral');
mv.setAttribute('camera-controls', '');
// Defer the ~1.5MB GLB fetch until the card nears the viewport instead
// of pulling every model on first paint. That eager burst was failing
// on mobile (aborted loads under memory/network pressure) and flooding
// the error reporter. The poster (the lightweight forge preview image)
// shows instantly and remains as a graceful fallback if the mesh can't
// load, so a card is never blank.
mv.setAttribute('loading', 'lazy');
if (c.preview_image_url) mv.setAttribute('poster', c.preview_image_url);
mv.setAttribute('aria-label', c.prompt || 'Forged 3D model');
mv.style.cssText = 'width:100%;height:100%;--poster-color:transparent;background:transparent;';
var poster = wrap.querySelector('.hcf-poster');
if (poster) poster.remove();
wrap.appendChild(mv);
// The strip holds a card per community model. Left alone every one of
// them rotates for the life of the tab, and model-viewer blits each
// element's pixels every frame; they spin while looked at instead.
attendRotation(mv);
}
// A card with its real prompt, link and gradient, but a poster image instead
// of a live <model-viewer>. Same DOM shape and therefore the exact same
// height as the upgraded card, so promoting it later shifts nothing.
function buildCard(c) {
var card = document.createElement('a');
card.className = 'hcf-card';
card.href = '/forge' + (c.id ? '?share=' + c.id : '');
card.title = c.prompt || 'Forged model';
var wrap = document.createElement('div');
wrap.className = 'hcf-viewer-wrap';
wrap.style.background = promptGrad(c.prompt);
if (c.glb_url && !viewersLive) {
// Deferred phase: show the forge preview image the viewer would have
// used as its poster. Visually near-identical, costs one small image
// instead of the model-viewer bundle plus a ~1.5MB mesh.
if (c.preview_image_url) {
var img = document.createElement('img');
img.className = 'hcf-poster';
img.src = c.preview_image_url;
img.loading = 'lazy';
img.decoding = 'async';
img.alt = c.prompt || 'Forged 3D model';
wrap.appendChild(img);
}
pendingViewerCards.push({ wrap: wrap, item: c });
} else if (c.glb_url) {
mountViewer(wrap, c);
} else {
var ph = document.createElement('div');
ph.className = 'hcf-ph';
ph.innerHTML = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M12 2 3 7v10l9 5 9-5V7l-9-5Z"/><path d="m3 7 9 5 9-5"/><line x1="12" y1="12" x2="12" y2="22"/></svg>';
wrap.appendChild(ph);
}
card.appendChild(wrap);
var body = document.createElement('div');
body.className = 'hcf-body';
var pEl = document.createElement('p');
pEl.className = 'hcf-prompt';
pEl.textContent = c.prompt || 'Untitled';
body.appendChild(pEl);
if (c.created_at) {
var m = document.createElement('span');
m.className = 'hcf-meta';
m.textContent = timeAgo(c.created_at);
body.appendChild(m);
}
card.appendChild(body);
return card;
}
// ── Live, sortable, paginated loop ──────────────────────────────────
// The strip used to be a one-shot fetch of 6 models. It's now a real browse
// loop: a Fresh/Trending toggle (the gallery API's sort=fresh vs
// sort=top&window=week), Show more to page deeper, and a background refresh
// that prepends genuinely-new models on the Fresh tab so "Right now" stays
// honest. Everything is fail-soft: any fetch error hides the section exactly
// as before, so a data outage never leaves a broken strip on the homepage.
var INITIAL = 12, MAX = 24, POLL_MS = 25000;
var section = document.getElementById('home-community-forge');
var moreBtn = document.getElementById('hcf-more');
var liveChip = document.getElementById('hcf-live');
var tabs = section ? section.querySelectorAll('.hcf-tab') : [];
var sort = 'fresh';
var items = []; // deduped items for the current sort
var knownIds = new Set(); // ids already on stage (live-prepend dedupe)
var expanded = false;
var pollTimer = null;
var reqSeq = 0; // ignore a slow response after a tab switch
var hasRendered = false; // a first successful render happened (keep the section on later empties)
// The "live" chip claims the strip is moving right now, so it has to be earned
// by the data rather than by which tab happens to be selected. When the object
// store rejected our credential on 2026-09-07 no new model could be recorded
// for two days, and the chip kept pulsing "live" over a strip whose newest card
// was 48h old. Older models are still worth showing, they just are not live.
var LIVE_MAX_AGE_MS = 6 * 3600 * 1000;
function feedIsLive(list) {
var newest = 0;
(list || []).forEach(function(c) {
var t = Date.parse(c && c.created_at);
if (t > newest) newest = t;
});
return newest > 0 && (Date.now() - newest) < LIVE_MAX_AGE_MS;
}
function syncLiveChip() {
if (liveChip) liveChip.hidden = sort !== 'fresh' || !feedIsLive(items);
}
function dedupe(all) {
var seen = new Set();
return (Array.isArray(all) ? all : []).filter(function(c) {
var key = (c.prompt || c.id || '').toLowerCase().replace(/\s+/g, ' ').trim();
if (!key || seen.has(key)) return false;
seen.add(key);
return true;
});
}
function qsFor(s) {
return s === 'top'
? 'scope=community&sort=top&window=week&limit=' + MAX
: 'scope=community&sort=fresh&limit=' + MAX;
}
function fetchFeed(s) {
return fetch('/api/forge-gallery?' + qsFor(s))
.then(function(r) { return r.json(); })
.then(function(data) {
return { enabled: data && data.enabled !== false, items: dedupe(data && data.creations) };
});
}
function render() {
if (viewersLive) ensureModelViewer();
pendingViewerCards = [];
track.innerHTML = '';
knownIds = new Set();
var count = expanded ? MAX : INITIAL;
items.slice(0, count).forEach(function(c) {
if (c.id) knownIds.add(c.id);
track.appendChild(buildCard(c));
});
if (moreBtn) moreBtn.hidden = expanded || items.length <= INITIAL;
hasRendered = true;
}
// Empty-state for a sort that returns nothing (e.g. Trending before the first
// weekly vote). Only reached AFTER a successful render, so the section and its
// toggle stay put — the visitor can switch back to Fresh, never a vanished
// strip. The message spans the whole grid via a full-row card.
function renderEmpty(s) {
track.innerHTML = '';
items = [];
knownIds = new Set();
if (moreBtn) moreBtn.hidden = true;
var msg = document.createElement('p');
msg.className = 'hcf-empty';
var t = (window.threewsI18n && window.threewsI18n.t) || function(_, d) { return d; };
msg.textContent = s === 'top'
? t('home.feed_empty_top', 'No trending models yet this week. Check back after a few votes, or browse Fresh.')
: t('home.feed_empty_fresh', 'Nothing here yet. Be the first to forge one.');
track.appendChild(msg);
}
function stopPolling() { if (pollTimer) { clearInterval(pollTimer); pollTimer = null; } }
function startPolling() {
stopPolling();
if (sort !== 'fresh') return;
// No live refresh for a strip that is still off-screen; the approach
// observer starts it the moment the section actually matters.
if (!viewersLive) return;
pollTimer = setInterval(function() {
if (document.hidden || sort !== 'fresh') return;
var seq = reqSeq;
fetchFeed('fresh').then(function(res) {
if (seq !== reqSeq || !res.items.length) return;
// Prepend only models we haven't shown yet, newest first.
var fresh = res.items.filter(function(c) { return c.id && !knownIds.has(c.id); });
if (!fresh.length) return;
fresh.reverse().forEach(function(c) {
knownIds.add(c.id);
items.unshift(c);
var card = buildCard(c);
card.classList.add('hcf-card--new');
track.insertBefore(card, track.firstChild);
});
// Keep the grid tidy: never exceed the current visible cap.
var cap = expanded ? MAX : INITIAL;
while (track.children.length > cap) track.removeChild(track.lastChild);
syncLiveChip();
}).catch(function() { /* transient: keep the current stage */ });
}, POLL_MS);
}
function load(s) {
var seq = ++reqSeq;
fetchFeed(s).then(function(res) {
if (seq !== reqSeq) return;
// Persistence off, or nothing to show and nothing ever shown: this is a
// deployment/first-load with no community models, so hide the strip
// entirely (the pre-existing behaviour).
if (!res.enabled || (!res.items.length && !hasRendered)) {
if (section) section.hidden = true;
stopPolling();
return;
}
// A sort that came back empty AFTER we've shown models (e.g. Trending
// with no votes yet): keep the section and toggle, show a message.
if (!res.items.length) {
renderEmpty(s);
if (liveChip) liveChip.hidden = true;
stopPolling();
return;
}
items = res.items;
expanded = false;
render();
syncLiveChip();
startPolling();
}).catch(function() {
if (seq !== reqSeq) return;
// First load failing hides the section (as before); a failed re-sort
// keeps whatever is already on stage rather than blanking it.
if (!hasRendered && section) section.hidden = true;
});
}
Array.prototype.forEach.call(tabs, function(tab) {
tab.addEventListener('click', function() {
var next = tab.getAttribute('data-hcf-sort');
if (next === sort) return;
sort = next;
Array.prototype.forEach.call(tabs, function(t) {
t.setAttribute('aria-pressed', String(t === tab));
});
load(sort);
});
});
if (moreBtn) moreBtn.addEventListener('click', function() { expanded = true; render(); });
// Pause the live refresh while the tab is backgrounded, resume on return.
document.addEventListener('visibilitychange', function() {
if (document.hidden) stopPolling();
else if (sort === 'fresh' && !pollTimer && !section.hidden) startPolling();
});
// Promote every poster card to a live mesh once the strip is one screen away,
// and keep every later render (sort switch, Show more, live prepend) on the
// live path from then on.
if (section) {
var mvObs = new IntersectionObserver(function(entries) {
if (!entries[0].isIntersecting) return;
mvObs.disconnect();
viewersLive = true;
ensureModelViewer();
var queued = pendingViewerCards;
pendingViewerCards = [];
queued.forEach(function(q) { mountViewer(q.wrap, q.item); });
if (sort === 'fresh' && !pollTimer && !section.hidden) startPolling();
}, { rootMargin: '400px' });
mvObs.observe(section);
}
load('fresh');
})();
</script>
<!-- ── POSE STUDIO — LITE DEMO ────────────────────────────────────── -->
<style>
#home-pose .hp-wrap { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 28px; align-items: stretch; }
#home-pose .hp-stage-card {
position: relative; border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden;
background: radial-gradient(120% 100% at 50% 0%, #121214 0%, #09090a 70%); min-height: 460px;
}
#home-pose [data-pose-stage] { position: absolute; inset: 0; cursor: grab; }
#home-pose [data-pose-stage]:active { cursor: grabbing; }
#home-pose .hp-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
#home-pose .hp-stage-hud {
position: absolute; left: 16px; top: 16px; display: flex; gap: 8px; align-items: center;
font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
color: var(--text-3); pointer-events: none;
}
#home-pose .hp-stage-hud .dot { width: 6px; height: 6px; border-radius: 50%; background: #4fc3ff; box-shadow: 0 0 8px #4fc3ff; }
#home-pose .hp-hint {
position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
font-size: 12.5px; color: var(--text-3); background: rgba(0,0,0,0.45); border: 1px solid var(--hairline);
padding: 7px 14px; border-radius: 999px; pointer-events: none; backdrop-filter: blur(6px);
}
#home-pose .hp-chips {
position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 14px;
overflow-x: auto; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
#home-pose .hp-chips::-webkit-scrollbar { display: none; }
#home-pose .hp-chip {
flex: 0 0 auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
background: rgba(20,20,22,0.82); border: 1px solid var(--hairline); border-radius: 999px;
padding: 7px 14px; cursor: pointer; white-space: nowrap; transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast), transform var(--duration-fast);
backdrop-filter: blur(8px);
}
#home-pose .hp-chip:hover { color: var(--text); border-color: var(--hairline-strong); transform: translateY(-1px); }
#home-pose .hp-chip:focus-visible { outline: 2px solid #4fc3ff; outline-offset: 2px; }
#home-pose .hp-chip.is-active { color: #061015; background: #4fc3ff; border-color: #4fc3ff; }
#home-pose .hp-panel { display: flex; flex-direction: column; gap: 18px; }
#home-pose .hp-panel-card { border: 1px solid var(--hairline); border-radius: 16px; background: var(--surface-1); padding: 22px; }
#home-pose .hp-panel-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin: 0 0 4px; }
#home-pose .hp-panel-sel { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin: 0 0 16px; }
#home-pose .hp-sliders { display: flex; flex-direction: column; gap: 16px; }
#home-pose .hp-sliders-empty { font-size: 13.5px; color: var(--text-3); margin: 0; line-height: 1.5; }
#home-pose .hp-slider-row { display: flex; flex-direction: column; gap: 7px; }
#home-pose .hp-slider-head { display: flex; justify-content: space-between; align-items: baseline; }
#home-pose .hp-slider-axis { font-size: 12px; color: var(--text-2); font-weight: 500; }
#home-pose .hp-slider-val { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
#home-pose .hp-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: 2px; background: var(--hairline-strong); outline: none; cursor: pointer; }
#home-pose .hp-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--text); border: 2px solid #09090a; box-shadow: 0 0 0 1px var(--hairline-strong); cursor: grab; transition: transform var(--duration-fast); }
#home-pose .hp-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
#home-pose .hp-slider:focus-visible { outline: var(--focus-ring-width,2px) solid var(--focus-ring-color,var(--accent)); outline-offset: var(--focus-ring-offset,4px); }
#home-pose .hp-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--focus-ring-color,var(--accent)); }
#home-pose .hp-slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--focus-ring-color,var(--accent)); }
#home-pose .hp-slider::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--text); border: 2px solid #09090a; cursor: grab; }
#home-pose .hp-mini-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#home-pose .hp-btn {
text-align: center; font-family: var(--font-mono); font-size: 12.5px; padding: 11px 14px;
border-radius: 10px; border: 1px solid var(--hairline); background: transparent; color: var(--text-2);
cursor: pointer; text-decoration: none; transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
}
#home-pose .hp-btn:hover { color: var(--text); border-color: var(--hairline-strong); }
#home-pose .hp-btn:focus-visible { outline: 2px solid #4fc3ff; outline-offset: 2px; }
#home-pose .hp-btn-primary { display: block; background: var(--text); color: #09090a; border-color: var(--text); font-weight: 600; }
#home-pose .hp-btn-primary:hover { color: #09090a; background: #e2e2e2; }
#home-pose .hp-toast {
position: absolute; left: 50%; top: 16px; transform: translateX(-50%) translateY(-8px);
font-family: var(--font-mono); font-size: 12px; color: #061015; background: #4fc3ff;
padding: 7px 14px; border-radius: 999px; opacity: 0; pointer-events: none;
transition: opacity var(--duration-base), transform var(--duration-base); z-index: 4;
}
#home-pose .hp-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 880px) {
#home-pose .hp-wrap { grid-template-columns: 1fr; }
#home-pose .hp-stage-card { min-height: 400px; }
}
</style>
<section class="block" id="home-pose">
<div class="wrap-1280">
<div class="block-head reveal">
<p class="block-eyebrow" data-i18n-html="home.pose_studio"><span class="num">•</span>Pose Studio</p>
<h2 class="block-h" data-i18n-html="home.pose_it_right_here">Pose it. <em>Right here.</em></h2>
<p class="block-lede" data-i18n-html="home.a_live_slice_of_pose_studio_the">
A live slice of <a href="/pose">Pose Studio</a> — the same rig, presets, and joint controls. Orbit the figure, click a body part to pose it, or tap a preset to morph the whole pose. Then take the full studio for keyframes, your own avatars, and PNG/GLB export.
</p>
</div>
<div class="hp-wrap reveal reveal-d1">
<div class="hp-stage-card">
<div data-pose-stage></div>
<div class="hp-stage-hud"><span class="dot"></span>Live rig</div>
<p class="hp-hint" data-pose-hint data-i18n="home.grab_a_limb_to_pose_it_drag">Grab a limb to pose it · drag the floor to orbit</p>
<div class="hp-toast" data-pose-toast aria-live="polite"></div>
<div class="hp-chips" data-pose-chips role="group" aria-label="Preset poses"></div>
</div>
<div class="hp-panel">
<div class="hp-panel-card">
<p class="hp-panel-label" data-i18n="home.selected_joint">Selected joint</p>
<p class="hp-panel-sel" data-pose-selected>—</p>
<div class="hp-sliders" data-pose-sliders></div>
</div>
<div class="hp-mini-actions">
<button type="button" class="hp-btn" data-pose-reset data-i18n="home.reset">Reset</button>
<button type="button" class="hp-btn" data-pose-copy data-i18n="home.copy_link">Copy link</button>
<button type="button" class="hp-btn" data-pose-snap data-i18n="home.snapshot">Snapshot</button>
</div>
<a class="hp-btn hp-btn-primary" href="/pose" data-pose-studio data-i18n="home.open_this_pose_in_the_full_studio">Open this pose in the full studio →</a>
</div>
</div>
</div>
</section>
<!-- ── FORGE — LIVE CHAMBER ──────────────────────────────────────── -->
<style>
/* The chamber is one immersive stage: layered floor + iridescent ring +
floating command dock. Every layer is state-reactive via
[data-hf-state="idle|generating|result|error"] on the chamber root. */
#home-forge { --hf-iris: linear-gradient(120deg, #ffb454, #ff6ad5 38%, #8b5cf6 64%, #4fc3ff); }
#home-forge .hf-chamber {
position: relative; border: 1px solid var(--hairline); border-radius: 20px; overflow: hidden;
background: radial-gradient(130% 110% at 50% -10%, #15151a 0%, #0a0a0c 52%, #060607 100%);
min-height: 560px; isolation: isolate;
}
/* Film-grain so the void never reads as flat dead pixels. */
#home-forge .hf-chamber::after {
content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
/* Dot lattice — quiet spatial texture behind the ring. Parallax via --px/--py. */
#home-forge .hf-floor {
position: absolute; inset: -24px; z-index: 0; pointer-events: none;
background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.6px);
background-size: 28px 28px;
background-position: calc(50% + var(--px, 0) * 14px) calc(50% + var(--py, 0) * 10px);
-webkit-mask: radial-gradient(78% 72% at 50% 48%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 82%);
mask: radial-gradient(78% 72% at 50% 48%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 82%);
opacity: 0.5;
}
/* The forge ring — a thin iridescent annulus. Idle: slow drift. Forging:
fast spin + counter-arc. Complete: yields the stage to the model. */
#home-forge .hf-ring {
position: absolute; inset: 0; margin: auto; z-index: 0; pointer-events: none;
width: min(46vmin, 380px); aspect-ratio: 1 / 1; border-radius: 50%;
background: conic-gradient(from 0deg, transparent 0% 6%, #ffb454 20%, #ff6ad5 38%, #8b5cf6 56%, #4fc3ff 72%, transparent 86% 100%);
-webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
transform: translate(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -12px));
animation: hf-rot 26s linear infinite; opacity: 0.6;
transition: opacity var(--duration-slow) var(--ease-standard), width var(--duration-slow) var(--ease-standard);
}
/* Soft glow copy of the ring (mask can't blur, so it's a sibling). */
#home-forge .hf-ring-glow {
position: absolute; inset: 0; margin: auto; z-index: 0; pointer-events: none;
width: min(46vmin, 380px); aspect-ratio: 1 / 1; border-radius: 50%;
background: conic-gradient(from 0deg, transparent 0% 6%, rgba(255, 180, 84, 0.5) 20%, rgba(255, 106, 213, 0.5) 38%, rgba(139, 92, 246, 0.5) 56%, rgba(79, 195, 255, 0.5) 72%, transparent 86% 100%);
filter: blur(26px); opacity: 0.3;
transform: translate(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -12px));
animation: hf-rot 26s linear infinite;
transition: opacity var(--duration-slow) var(--ease-standard);
}
@keyframes hf-rot { to { rotate: 360deg; } }
#home-forge [data-hf-state='generating'] .hf-ring,
#home-forge [data-hf-state='generating'] .hf-ring-glow { animation-duration: 2.4s; opacity: 1; }
#home-forge [data-hf-state='generating'] .hf-ring-glow { opacity: 0.55; }
#home-forge [data-hf-state='result'] .hf-ring,
#home-forge [data-hf-state='result'] .hf-ring-glow { opacity: 0; }
#home-forge [data-hf-state='error'] .hf-ring {
background: conic-gradient(from 0deg, transparent 0% 6%, #ff7a7a 30%, #b0413e 60%, transparent 80% 100%);
animation-duration: 14s; opacity: 0.7;
}
#home-forge [data-hf-state='error'] .hf-ring-glow { opacity: 0.12; }
/* HUD — top corners. Mono, uppercase, honest telemetry. */
#home-forge .hf-hud {
position: absolute; left: 18px; top: 16px; z-index: 5; display: flex; gap: 8px; align-items: center;
font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
color: var(--text-3); pointer-events: none;
}
#home-forge .hf-hud .dot { width: 6px; height: 6px; border-radius: 50%; background: #ffb454; box-shadow: 0 0 8px #ffb454; }
#home-forge [data-hf-state='generating'] .hf-hud .dot { animation: hf-pulse 1s ease-in-out infinite; }
@keyframes hf-pulse { 50% { box-shadow: 0 0 14px #ffb454; transform: scale(1.25); } }
#home-forge .hf-telemetry {
position: absolute; right: 18px; top: 16px; z-index: 5; display: flex; gap: 14px; align-items: baseline;
font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
color: var(--text-3); pointer-events: none; text-align: right;
}
#home-forge .hf-telemetry [data-hf-tel-state] { color: var(--text-2); }
#home-forge [data-hf-state='generating'] .hf-telemetry [data-hf-tel-state] { color: #ffb454; }
#home-forge [data-hf-state='result'] .hf-telemetry [data-hf-tel-state] { color: #58d68d; }
#home-forge [data-hf-state='error'] .hf-telemetry [data-hf-tel-state] { color: #ff7a7a; }
#home-forge .hf-elapsed:empty { display: none; }
/* Centered state layers. */
#home-forge .hf-state {
position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
align-items: center; justify-content: center; gap: 12px; text-align: center;
padding: 28px 28px 150px; pointer-events: none;
}
#home-forge .hf-state[hidden] { display: none; }
#home-forge .hf-state > * { pointer-events: auto; }
#home-forge .hf-state h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); margin: 0; }
#home-forge .hf-state p { font-size: 13.5px; color: var(--text-3); line-height: 1.6; margin: 0; max-width: 44ch; }
#home-forge .hf-idle-kbd { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.06em; }
#home-forge .hf-idle-kbd kbd {
font-family: inherit; font-size: 10px; color: var(--text-2); background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--hairline); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px;
}
#home-forge .hf-state--error h3 { color: #ff7a7a; }
/* Generating telemetry rows. */
#home-forge .hf-steps { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-family: var(--font-mono); }
#home-forge .hf-step { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.04em; color: var(--text-3); transition: color var(--duration-base); }
#home-forge .hf-step .dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--hairline-strong); flex: none; transition: border-color var(--duration-base), background var(--duration-base); }
#home-forge .hf-step[data-state='active'] { color: var(--text); }
#home-forge .hf-step[data-state='active'] .dot { border-color: #ffb454; border-top-color: transparent; animation: hf-spin 0.8s linear infinite; }
#home-forge .hf-step[data-state='done'] { color: var(--text-2); }
#home-forge .hf-step[data-state='done'] .dot { background: #58d68d; border-color: #58d68d; }
@keyframes hf-spin { to { transform: rotate(360deg); } }
/* Cold start: a GPU booting is a nameable wait, so it reads as information
rather than as an error. Sits under the steps it explains. */
#home-forge .hf-warming { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; max-width: 34ch; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; letter-spacing: 0.03em; color: var(--text-2); }
#home-forge .hf-warming[hidden] { display: none; }
#home-forge .hf-warming::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ffb454; flex: none; animation: hf-warm-pulse 1.6s ease-in-out infinite; }
@keyframes hf-warm-pulse { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
#home-forge .hf-warming::before { animation: none; opacity: 1; }
}
#home-forge .hf-preview { width: 132px; aspect-ratio: 1 / 1; border-radius: 12px; border: 1px solid var(--hairline); overflow: hidden; display: none; }
#home-forge .hf-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
#home-forge .hf-preview.is-on { display: block; }
/* Result — the model owns the chamber. */
#home-forge .hf-result { position: absolute; inset: 0; z-index: 2; }
#home-forge .hf-result[hidden] { display: none; }
#home-forge .hf-viewer { position: absolute; inset: 0 0 36px; }
#home-forge .hf-viewer model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
#home-forge .hf-viewer.is-in { animation: hf-mat 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes hf-mat { from { opacity: 0; filter: blur(26px) saturate(1.6); transform: scale(0.94); } to { opacity: 1; filter: blur(0) saturate(1); transform: scale(1); } }
/* Ground bloom under the landed model. */
#home-forge .hf-ground {
position: absolute; left: 50%; bottom: 96px; z-index: 1; width: min(52%, 460px); height: 60px;
transform: translateX(-50%); border-radius: 50%; pointer-events: none; opacity: 0;
background: radial-gradient(50% 50% at 50% 50%, rgba(139, 92, 246, 0.22) 0%, rgba(79, 195, 255, 0.08) 55%, transparent 75%);
filter: blur(10px); transition: opacity var(--duration-slow) var(--ease-standard) var(--duration-fast);
}
#home-forge [data-hf-state='result'] .hf-ground { opacity: 1; }
/* One-shot scanline sweep when the GLB lands. */
#home-forge .hf-scan { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; }
#home-forge .hf-scan.is-scan { animation: hf-scan-fade 1s linear both; }
#home-forge .hf-scan::before {
content: ''; position: absolute; left: 0; right: 0; top: -12%; height: 10%;
background: linear-gradient(180deg, transparent, rgba(79, 195, 255, 0.16) 55%, rgba(255, 255, 255, 0.5) 98%, transparent);
}
#home-forge .hf-scan.is-scan::before { animation: hf-scan-sweep 0.9s cubic-bezier(0.6, 0, 0.4, 1) both; }
@keyframes hf-scan-sweep { to { top: 112%; } }
@keyframes hf-scan-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
/* Floating glass result actions. */
#home-forge .hf-result-bar {
position: absolute; left: 50%; bottom: 108px; z-index: 6; transform: translateX(-50%);
display: flex; align-items: center; gap: 10px; max-width: min(92%, 720px);
padding: 8px 10px 8px 16px; border-radius: 999px;
background: rgba(12, 12, 16, 0.66); border: 1px solid var(--hairline-strong);
-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.8);
}
#home-forge .hf-result-meta { font-size: 12.5px; color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#home-forge .hf-result-actions { display: flex; gap: 8px; flex: none; }
/* The command dock — a floating glass prompt bar. */
#home-forge .hf-dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 18px 18px; pointer-events: none; }
#home-forge .hf-dock > * { pointer-events: auto; }
#home-forge .hf-chips { display: flex; gap: 7px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; }
#home-forge .hf-chips::-webkit-scrollbar { display: none; }
/* The chips' job is done once a run starts or a model is on stage — clear
the dock down to the command bar so nothing collides with the result. */
#home-forge [data-hf-state='generating'] .hf-chips,
#home-forge [data-hf-state='result'] .hf-chips { display: none; }
#home-forge .hf-chip {
flex: none; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3);
background: rgba(14, 14, 18, 0.6); border: 1px solid var(--hairline); border-radius: 999px;
padding: 5px 12px; cursor: pointer; white-space: nowrap;
-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
transition: color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}
#home-forge .hf-chip:hover { color: var(--text); border-color: var(--hairline-strong); transform: translateY(-1px); }
#home-forge .hf-chip:active { transform: translateY(0); }
#home-forge .hf-chip:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
#home-forge .hf-bar {
display: flex; align-items: center; gap: 10px; width: min(680px, 100%);
padding: 7px 7px 7px 16px; border-radius: 16px;
background: linear-gradient(rgba(12, 12, 16, 0.72), rgba(12, 12, 16, 0.72)) padding-box,
linear-gradient(120deg, rgba(255, 180, 84, 0.35), rgba(255, 106, 213, 0.35) 38%, rgba(139, 92, 246, 0.35) 64%, rgba(79, 195, 255, 0.35)) border-box;
border: 1px solid transparent;
-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
box-shadow: 0 18px 48px -20px rgba(0, 0, 0, 0.85);
transition: box-shadow var(--duration-base) var(--ease-standard);
}
#home-forge .hf-bar:focus-within { box-shadow: 0 18px 48px -20px rgba(0, 0, 0, 0.85), 0 0 0 4px rgba(139, 92, 246, 0.14); }
#home-forge .hf-bar:focus-within { outline: var(--focus-ring-width,2px) solid var(--focus-ring-color,var(--accent)); outline-offset: var(--focus-ring-offset,2px); }
#home-forge .hf-bar-glyph { color: var(--text-3); font-size: 13px; flex: none; }
#home-forge [data-hf-state='generating'] .hf-bar-glyph { color: #ffb454; }
#home-forge .hf-prompt {
flex: 1; min-width: 0; max-height: 96px; resize: none; background: transparent; border: none; outline: none;
color: var(--text); font-family: inherit; font-size: 14.5px; line-height: 1.45; padding: 6px 0;
}
#home-forge .hf-prompt::placeholder { color: var(--text-3); }
#home-forge .hf-kbd {
flex: none; font-family: var(--font-mono); font-size: 10px; color: var(--text-3);
border: 1px solid var(--hairline); border-bottom-width: 2px; border-radius: 5px; padding: 2px 6px;
}
#home-forge .hf-forge-btn {
flex: none; display: inline-flex; align-items: center; gap: 7px;
font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
color: #0a0a0c; background: var(--text); border: 1px solid var(--text); border-radius: 11px;
padding: 9px 18px; cursor: pointer;
transition: background var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-base);
}
#home-forge .hf-forge-btn:hover { background: var(--ink); box-shadow: 0 0 24px -6px rgba(139, 92, 246, 0.55); }
#home-forge .hf-forge-btn:active { transform: translateY(1px); }
#home-forge .hf-forge-btn:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
#home-forge .hf-forge-btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
#home-forge .hf-dock-meta { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
#home-forge .hf-dock-note { font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.04em; color: var(--text-3); margin: 0; text-align: center; }
#home-forge .hf-dock-note a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--hairline-strong); }
#home-forge .hf-dock-note a:hover { color: var(--text); }
#home-forge .hf-dock-note a:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
/* ── Forge controls: Surprise chip, Enhance button, Options panel ──────
The full-Forge brains layered onto the chamber. Kept visually quiet so
the default (collapsed) chamber still reads as the minimal bar. */
#home-forge .hf-chip--surprise { color: var(--text); border-color: var(--hairline-strong); background: rgba(139, 92, 246, 0.08); }
#home-forge .hf-chip--surprise:hover { background: rgba(139, 92, 246, 0.16); border-color: rgba(139, 92, 246, 0.5); }
#home-forge .hf-chip .hf-chip-ico { margin-right: 5px; opacity: 0.85; }
/* Enhance — small icon button inside the bar, left of the Forge button. */
#home-forge .hf-icon-mini {
flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
border-radius: 8px; border: 1px solid var(--hairline-strong); background: rgba(14, 14, 18, 0.5);
color: var(--text-3); cursor: pointer; transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
#home-forge .hf-icon-mini svg { width: 16px; height: 16px; }
#home-forge .hf-icon-mini:hover { color: var(--accent-violet); border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.1); transform: translateY(-1px); }
#home-forge .hf-icon-mini:active { transform: translateY(0); }
#home-forge .hf-icon-mini:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
#home-forge .hf-icon-mini[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
#home-forge .hf-icon-mini.is-working { color: var(--accent-violet); border-color: rgba(139, 92, 246, 0.5); }
#home-forge .hf-icon-mini.is-working svg { animation: hf-spin 0.9s linear infinite; }
@keyframes hf-spin { to { transform: rotate(360deg); } }
/* Options toggle. */
#home-forge .hf-opts-toggle {
display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px;
letter-spacing: 0.04em; padding: 5px 11px; border-radius: 999px; cursor: pointer;
border: 1px solid var(--hairline-strong); background: rgba(14, 14, 18, 0.5); color: var(--text-3);
transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
#home-forge .hf-opts-toggle svg { width: 14px; height: 14px; }
#home-forge .hf-opts-toggle:hover { color: var(--text); border-color: var(--hairline-strong); }
#home-forge .hf-opts-toggle.is-open { color: var(--text); border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.1); }
#home-forge .hf-opts-toggle:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
/* Options panel. */
#home-forge .hf-panel {
width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px;
padding: 15px 16px; border-radius: 16px; border: 1px solid var(--hairline);
background: linear-gradient(180deg, rgba(16, 16, 22, 0.86), rgba(10, 10, 14, 0.86));
backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
max-height: 340px; overflow-y: auto; animation: hf-panel-in .24s cubic-bezier(.22, 1, .36, 1);
}
@keyframes hf-panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#home-forge .hf-panel-row { display: flex; align-items: flex-start; gap: 12px; }
#home-forge .hf-panel-row[hidden] { display: none; }
#home-forge .hf-panel-label { flex: none; width: 62px; padding-top: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
/* Segmented control (tier + aspect). */
#home-forge .hf-seg { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
#home-forge .hf-seg-btn {
display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 12px;
padding: 6px 12px; border-radius: 9px; cursor: pointer; border: 1px solid var(--hairline-strong);
background: rgba(14, 14, 18, 0.5); color: var(--text-2); transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
#home-forge .hf-seg-btn:hover { color: var(--text); border-color: var(--hairline-strong); }
#home-forge .hf-seg-btn[aria-pressed="true"] { color: var(--text); background: rgba(255, 255, 255, 0.08); border-color: var(--hairline-strong); }
#home-forge .hf-seg-btn:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
/* The High-tier $THREE lock pill on its tier button. */
#home-forge .hfc-lock { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 700; letter-spacing: 0.03em; padding: 2px 5px; border-radius: 5px; }
#home-forge .hfc-lock[data-state="locked"] { color: #f5c451; background: rgba(245, 196, 81, 0.14); }
#home-forge .hfc-lock[data-state="unlocked"] { color: #6ee7a8; background: rgba(110, 231, 168, 0.14); }
#home-forge .hfc-lock-ico { width: 10px; height: 10px; }
/* Engine picker — pills that scroll horizontally when they overflow. */
#home-forge .hf-engine { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
#home-forge .hfc-engine-btn {
display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 12px;
padding: 6px 11px; border-radius: 9px; cursor: pointer; border: 1px solid var(--hairline-strong);
background: rgba(14, 14, 18, 0.5); color: var(--text-2); transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
#home-forge .hfc-engine-btn:hover:not(:disabled) { color: var(--text); border-color: var(--hairline-strong); }
#home-forge .hfc-engine-btn[aria-pressed="true"] { color: var(--text); background: rgba(255, 255, 255, 0.08); border-color: var(--hairline-strong); }
#home-forge .hfc-engine-btn:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
#home-forge .hfc-engine-btn:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
#home-forge .hfc-engine-btn[data-health="degraded"] { border-color: rgba(245, 196, 81, 0.4); }
#home-forge .hfc-engine-auto[aria-pressed="true"] { background: rgba(139, 92, 246, 0.14); border-color: rgba(139, 92, 246, 0.5); }
#home-forge .hfc-auto-pill { font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent-violet); }
#home-forge .hfc-free-pill { font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; color: #6ee7a8; background: rgba(110, 231, 168, 0.14); padding: 1px 4px; border-radius: 4px; }
#home-forge .hfc-key { width: 12px; height: 12px; opacity: 0.7; }
/* BYOK key row. */
#home-forge .hf-byok { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--hairline); background: rgba(20, 20, 27, 0.6); }
#home-forge .hf-byok[hidden] { display: none; }
#home-forge .hf-byok-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
#home-forge .hf-byok-key { font-family: var(--font-mono); font-size: 13px; padding: 8px 11px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: rgba(0, 0, 0, 0.35); color: var(--text); }
#home-forge .hf-byok-key:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
#home-forge .hf-byok-hint { margin: 0; font-size: 11px; color: var(--text-3); line-height: 1.5; }
#home-forge .hf-byok-hint a { color: var(--text-2); }
/* Lock host + holder perk line. */
#home-forge .hf-lock[hidden] { display: none; }
#home-forge .hf-perk { margin: 0; font-size: 11.5px; color: var(--text-3); line-height: 1.5; text-align: center; }
#home-forge .hf-perk[hidden] { display: none; }
#home-forge .hf-perk strong { color: var(--text); }
#home-forge .hf-perk a { color: var(--text-2); }
/* Ghost buttons shared by states. */
#home-forge .hf-btn {
display: inline-flex; align-items: center; gap: 6px; text-align: center;
font-family: var(--font-mono); font-size: 12px; padding: 8px 14px; border-radius: 999px;
border: 1px solid var(--hairline-strong); background: rgba(14, 14, 18, 0.5); color: var(--text-2);
cursor: pointer; text-decoration: none;
-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
}
#home-forge .hf-btn:hover { color: var(--text); border-color: var(--text-3); }
#home-forge .hf-btn:active { transform: translateY(1px); }
#home-forge .hf-btn:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
#home-forge .hf-btn--bright { background: var(--text); border-color: var(--text); color: #0a0a0c; font-weight: 600; }
#home-forge .hf-btn--bright:hover { background: var(--ink); color: var(--bg-0); }
#home-forge .hf-btn svg { width: 14px; height: 14px; flex: none; }
/* Accent action — the primary "where does this go next" CTA in the bar. */
#home-forge .hf-btn--accent { color: var(--text); border-color: rgba(139, 92, 246, 0.55); background: rgba(139, 92, 246, 0.12); }
#home-forge .hf-btn--accent:hover { border-color: #8b5cf6; background: rgba(139, 92, 246, 0.2); color: #fff; }
#home-forge .hf-icon-btn { width: 32px; height: 32px; padding: 0; justify-content: center; }
#home-forge .hf-icon-btn svg { width: 15px; height: 15px; }
#home-forge .hf-btn[aria-pressed='false'] { color: var(--text-3); }
#home-forge .hf-result-region:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 4px; }
#home-forge .hf-result-actions { display: flex; gap: 6px; flex: none; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
#home-forge .hf-result-actions::-webkit-scrollbar { display: none; }
#home-forge .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; }
/* Session history rail — real captured frames of your recent forges. */
#home-forge .hf-history {
position: absolute; left: 16px; top: 50px; z-index: 6;
display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
max-height: calc(100% - 210px); pointer-events: none;
}
#home-forge .hf-history[hidden] { display: none; }
#home-forge .hf-history-label {
font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
text-transform: uppercase; color: var(--text-3); padding-left: 2px;
}
#home-forge .hf-history-track {
display: flex; flex-direction: column; gap: 8px; overflow-y: auto;
scrollbar-width: none; padding: 2px; pointer-events: auto;
}
#home-forge .hf-history-track::-webkit-scrollbar { display: none; }
#home-forge .hf-thumb {
width: 46px; height: 46px; flex: none; border-radius: 10px; cursor: pointer; padding: 0;
border: 1px solid var(--hairline); overflow: hidden; position: relative;
background: #0e0e12 center / cover no-repeat;
transition: border-color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
animation: hf-thumb-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes hf-thumb-in { from { opacity: 0; transform: translateX(-6px) scale(0.9); } }
#home-forge .hf-thumb:hover { transform: translateX(2px) scale(1.05); border-color: var(--hairline-strong); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.85); }
#home-forge .hf-thumb:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
#home-forge .hf-thumb[aria-current='true'] { border-color: #8b5cf6; box-shadow: 0 0 0 1px #8b5cf6, 0 8px 22px -10px rgba(139, 92, 246, 0.7); }
#home-forge .hf-thumb-fallback {
display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
font-family: var(--font-mono); font-size: 15px; text-transform: uppercase; color: var(--text-3);
background: radial-gradient(120% 120% at 30% 20%, #1a1a22, #0c0c10);
}
/* Ephemeral confirmation toast (copy link, etc.). */
#home-forge .hf-toast {
position: absolute; left: 50%; bottom: 168px; z-index: 8; transform: translateX(-50%) translateY(6px);
padding: 7px 15px; border-radius: 999px; pointer-events: none; opacity: 0;
background: rgba(12, 12, 16, 0.92); border: 1px solid var(--hairline-strong);
-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--text-2);
transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
#home-forge .hf-toast[hidden] { display: none; }
#home-forge .hf-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
/* Embed sheet — an in-chamber glass dialog in the chamber's own language. */
#home-forge .hf-embed {
position: absolute; inset: 0; z-index: 9; display: flex; align-items: center; justify-content: center;
padding: 22px;
}
#home-forge .hf-embed[hidden] { display: none; }
#home-forge .hf-embed-scrim {
position: absolute; inset: 0; background: rgba(6, 6, 8, 0.62);
-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
animation: hf-embed-fade 0.22s ease both;
}
@keyframes hf-embed-fade { from { opacity: 0; } }
#home-forge .hf-embed-card {
position: relative; z-index: 1; width: min(440px, 100%); max-height: 100%; overflow-y: auto;
display: flex; flex-direction: column; gap: 12px; padding: 18px;
border-radius: 18px; scrollbar-width: none;
background: linear-gradient(rgba(13, 13, 17, 0.92), rgba(13, 13, 17, 0.92)) padding-box,
linear-gradient(120deg, rgba(255, 180, 84, 0.4), rgba(255, 106, 213, 0.4) 38%, rgba(139, 92, 246, 0.4) 64%, rgba(79, 195, 255, 0.4)) border-box;
border: 1px solid transparent;
-webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
box-shadow: 0 30px 80px -28px rgba(0, 0, 0, 0.92);
animation: hf-embed-rise 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#home-forge .hf-embed-card::-webkit-scrollbar { display: none; }
@keyframes hf-embed-rise { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
#home-forge .hf-embed-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
#home-forge .hf-embed-kicker {
margin: 0 0 2px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
text-transform: uppercase; color: #ffb454;
}
#home-forge .hf-embed-title { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
#home-forge .hf-embed-preview {
width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--hairline);
background: #0b0b0d; aspect-ratio: 16 / 9; transition: aspect-ratio var(--duration-slow) var(--ease-standard);
}
#home-forge .hf-embed-frame { display: block; width: 100%; height: 100%; border: 0; }
#home-forge .hf-embed-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
#home-forge .hf-seg {
display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px;
background: rgba(255, 255, 255, 0.035); border: 1px solid var(--hairline);
}
#home-forge .hf-seg-btn {
background: transparent; border: 0; cursor: pointer; color: var(--text-3);
font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
padding: 7px 11px; border-radius: 8px; transition: background var(--duration-fast), color var(--duration-fast);
}
#home-forge .hf-seg-btn:hover { color: var(--text); }
#home-forge .hf-seg-btn[aria-pressed='true'] { background: rgba(255, 255, 255, 0.1); color: var(--text); }
#home-forge .hf-seg-btn:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
#home-forge .hf-embed-codelabel {
font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
color: var(--text-3); margin-top: 2px;
}
#home-forge .hf-embed-code {
width: 100%; box-sizing: border-box; resize: vertical; min-height: 96px;
background: rgba(0, 0, 0, 0.42); border: 1px solid var(--hairline); border-radius: 10px;
padding: 11px 12px; color: var(--text); white-space: pre; overflow-x: auto;
font-family: var(--font-mono); font-size: 12px; line-height: 1.55; scrollbar-width: thin;
}
#home-forge .hf-embed-code:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 1px; }
#home-forge .hf-embed-copy { width: 100%; justify-content: center; padding: 12px 16px; }
#home-forge .hf-embed-copy svg { width: 15px; height: 15px; flex: none; }
#home-forge .hf-embed-copy.is-copied { background: #58d68d; border-color: #58d68d; box-shadow: 0 0 24px -6px rgba(88, 214, 141, 0.6); }
#home-forge .hf-embed-foot { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-3); text-align: center; }
#home-forge .hf-embed-foot a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--hairline-strong); }
#home-forge .hf-embed-foot a:hover { color: var(--text); }
#home-forge .hf-embed-foot a:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
@media (max-width: 720px) {
#home-forge .hf-chamber { min-height: 600px; border-radius: 16px; }
#home-forge .hf-state { padding: 24px 18px 190px; }
#home-forge .hf-telemetry { display: none; }
#home-forge .hf-kbd { display: none; }
#home-forge .hf-idle-kbd { display: none; }
#home-forge .hf-viewer { inset: 0 0 120px; }
#home-forge .hf-result-bar { bottom: 112px; left: 18px; right: 18px; transform: none; max-width: none; justify-content: space-between; }
#home-forge .hf-ground { bottom: 150px; }
/* History becomes a horizontal scroller pinned under the HUD. */
#home-forge .hf-history { left: 16px; right: 16px; top: 44px; flex-direction: row; align-items: center; gap: 8px; max-height: none; }
#home-forge .hf-history-label { display: none; }
#home-forge .hf-history-track { flex-direction: row; overflow-x: auto; overflow-y: hidden; }
#home-forge .hf-thumb { width: 40px; height: 40px; }
#home-forge .hf-toast { bottom: 180px; }
}
@media (prefers-reduced-motion: reduce) {
#home-forge .hf-ring, #home-forge .hf-ring-glow { animation: none; }
#home-forge .hf-viewer.is-in { animation: none; }
#home-forge .hf-scan.is-scan, #home-forge .hf-scan.is-scan::before { animation: none; opacity: 0; }
#home-forge .hf-hud .dot { animation: none; }
#home-forge .hf-thumb { animation: none; }
#home-forge .hf-toast { transition: opacity var(--duration-base) var(--ease-standard); }
#home-forge .hf-embed-scrim, #home-forge .hf-embed-card { animation: none; }
#home-forge .hf-embed-preview { transition: none; }
}
</style>
<!-- ── AR — PLACE IT IN YOUR WORLD ───────────────────────────────── -->
<section class="block" id="home-ar">
<div class="wrap-1280">
<div class="block-head reveal">
<p class="block-eyebrow" data-i18n-html="home.augmented_reality"><span class="num">•</span>Augmented Reality</p>
<h2 class="block-h" data-i18n-html="home.your_3d_agent_in_your_room">Your 3D agent. <em>In your room.</em></h2>
<p class="block-lede" data-i18n="home.every_model_you_generate_or_import_gets">
Every model you generate or import gets a View in AR button. On mobile, tap once to anchor it in your real space through the camera. On desktop, scan the QR and place it from your phone. WebXR on Android, Quick Look on iOS. No app. No download.
</p>
</div>
<div class="har-inner reveal reveal-d1">
<div class="har-viewer-wrap" id="har-viewer-wrap" tabindex="0" role="group" aria-roledescription="carousel" aria-label="Community model showcase, use left and right arrow keys to browse">
<div class="har-skeleton" id="har-skeleton">Loading model…</div>
<!-- model-viewer injected by JS once the CDN script is ready -->
<span class="har-cat" id="har-cat"></span>
<div class="har-dots" id="har-dots" role="tablist" aria-label="Showcase models" style="display:none"></div>
<div class="har-autobar" id="har-autobar" aria-hidden="true"></div>
<div class="har-viewer-nav" id="har-viewer-nav" style="display:none">
<button class="har-nav-btn" id="har-prev" aria-label="Previous model" data-i18n-attr="aria-label:home.previous_model_arialabel">←</button>
<span class="har-prompt" id="har-prompt-label"></span>
<button class="har-nav-btn" id="har-next" aria-label="Next model" data-i18n-attr="aria-label:home.next_model_arialabel">→</button>
</div>
<span id="har-live" class="sr-only" aria-live="polite"></span>
</div>
<div class="har-right">
<div>
<p style="color:var(--text-2);line-height:1.7;margin:0 0 8px;font-size:15px;" data-i18n-html="home.these_are_real_models_from_the_forge">
These are real models from the <a href="/forge" style="color:var(--text);text-decoration:underline;text-underline-offset:3px">Forge gallery</a>, generated by users with a text prompt. On a phone, tap the button below to see the current model anchored to a flat surface around you at real-world scale.
</p>
<div class="har-compat">
<span class="har-compat-pill" data-i18n="home.webxr_android">WebXR · Android</span>
<span class="har-compat-pill" data-i18n="home.quick_look_ios">Quick Look · iOS</span>
<span class="har-compat-pill" data-i18n="home.no_app_needed">No app needed</span>
</div>
<p class="har-count" id="har-count" aria-live="polite"></p>
</div>
<!-- Mobile: direct AR launch -->
<div class="har-mobile-only">
<button class="har-mobile-btn" id="har-ar-btn" disabled>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 2 3 7v10l9 5 9-5V7z"/><path d="M3 7l9 5 9-5"/><path d="M12 12v10"/></svg>
Place in your space
</button>
<p style="color:var(--text-3);font-size:13px;margin:0" data-i18n="home.point_your_camera_at_a_flat_surface">Point your camera at a flat surface to anchor the model.</p>
</div>
<!-- Desktop: QR code -->
<div class="har-desktop-only">
<div class="har-qr-wrap" id="har-qr-wrap">
<canvas id="har-qr-canvas" width="104" height="104" style="border-radius:4px;display:block" role="img" aria-label="QR code that opens this model in AR on your phone. The same link is available below as: Open this model in AR." data-i18n-attr="aria-label:home.har_qr_aria"></canvas>
</div>
<p class="har-qr-label" data-i18n-html="home.scan_with_your_phone_to_place_this">Scan with your phone to place<br>this model in your real space.</p>
</div>
<div style="display:flex;flex-direction:column;gap:10px">
<a class="har-cta-link har-desktop-only" id="har-open-model" href="/forge" style="color:var(--text);font-weight:600" data-i18n="home.open_this_model_in_ar">Open this model in AR →</a>
<a class="har-cta-link" href="/forge" data-i18n="home.generate_your_own_model">Generate your own model →</a>
<a class="har-cta-link" href="/gallery" data-i18n="home.browse_the_avatar_gallery">Browse the avatar gallery →</a>
<a class="har-cta-link" href="/features/ar" data-i18n="home.ar_feature_overview">AR feature overview →</a>
<a class="har-cta-link" href="/blog/see-your-3d-in-ar" data-i18n="home.how_ar_works">How AR works →</a>
</div>
</div>
</div>
</div>
</section>
<script type="module">
import { attendRotation } from '/src/shared/attended-rotation.js';
(async () => {
let renderQRToCanvas;
try {
({ renderQRToCanvas } = await import('/src/erc8004/qr.js'));
} catch { return; }
// Lazy-load model-viewer (reuse the CDN script if already present)
async function ensureModelViewer() {
if (customElements.get('model-viewer')) return;
await new Promise((resolve, reject) => {
const s = document.createElement('script');
s.type = 'module';
s.src = 'https://cdn.jsdelivr.net/npm/@google/[email protected]/dist/model-viewer.min.js';
s.integrity = 'sha384-wjsPzEO+lXOf7d9csIDfAQpPt2OKuUU3m0K9qsdKIuzX4N8czSF6hdh23eAbZa3p';
s.crossOrigin = 'anonymous';
s.onload = resolve;
s.onerror = reject;
document.head.appendChild(s);
});
}
let models = [];
let idx = 0;
let mv = null;
let autoTimer = null;
let autoPaused = false;
const AUTO_MS = 5000;
const reduceMotion = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
const wrap = document.getElementById('har-viewer-wrap');
const skeleton = document.getElementById('har-skeleton');
const nav = document.getElementById('har-viewer-nav');
const dotsWrap = document.getElementById('har-dots');
const autobar = document.getElementById('har-autobar');
const promptLabel = document.getElementById('har-prompt-label');
const arBtn = document.getElementById('har-ar-btn');
const qrCanvas = document.getElementById('har-qr-canvas');
const qrWrap = document.getElementById('har-qr-wrap');
const catChip = document.getElementById('har-cat');
const countEl = document.getElementById('har-count');
const liveEl = document.getElementById('har-live');
const openLink = document.getElementById('har-open-model');
const nfmt = (n) => { try { return new Intl.NumberFormat().format(n); } catch { return String(n); } };
// Map the raw category slug to a human label for the on-viewer chip.
const CAT_LABEL = { avatar: 'Character', creature: 'Creature', item: 'Object', accessory: 'Accessory', scene: 'Scene', vehicle: 'Vehicle', prop: 'Prop', other: 'Model' };
// The AR-studio deep link for a given model, shared by the QR and the desktop
// "Open this model in AR" text link.
function arStudioUrl(glbUrl, prompt) {
if (!glbUrl) return '/forge';
const q = new URLSearchParams({ src: glbUrl });
if (prompt) q.set('title', String(prompt).slice(0, 120));
return 'https://three.ws/ar/studio/?' + q.toString();
}
// Dedupe (same prompt or same mesh twice reads as a bug) and interleave by
// category so consecutive slides feel varied (a character, an object, a
// creature) instead of three carnival tents in a row.
function curate(list) {
const seen = new Set();
const unique = list.filter((c) => {
// Two takes on the same subject read as a bug even though each is a
// distinct mesh, and near-duplicate prompts (one with extra "photoreal…"
// hints appended) share an opening clause. Collapse on a normalized
// prompt prefix, keeping the first / best-voted occurrence. Fall back to
// the glb url when there is no prompt.
const p = String(c.prompt || '').trim().toLowerCase().replace(/\s+/g, ' ').slice(0, 48);
const key = p || c.glb_url;
if (seen.has(key)) return false;
seen.add(key);
return true;
});
const out = [];
const pool = unique.slice();
let lastCat = null;
while (pool.length) {
let pick = pool.findIndex((c) => (c.model_category || 'other') !== lastCat);
if (pick === -1) pick = 0;
const [c] = pool.splice(pick, 1);
out.push(c);
lastCat = c.model_category || 'other';
}
return out;
}
// Deep-link the QR at the CURRENTLY SHOWN model in the AR studio, so scanning
// it places exactly this model in the room, matching the "place this model"
// caption. Falls back to /forge only when no glb is available yet.
function updateQR(glbUrl, prompt) {
try {
const ctx = qrCanvas.getContext('2d');
const tmp = renderQRToCanvas(arStudioUrl(glbUrl, prompt), { scale: 8, margin: 2 });
qrCanvas.width = tmp.width;
qrCanvas.height = tmp.height;
ctx.drawImage(tmp, 0, 0);
qrWrap.style.width = qrCanvas.width + 'px';
qrWrap.style.height = qrCanvas.height + 'px';
} catch {}
}
// Warm the browser cache for the next model's GLB so cycling feels instant.
// A bare rel=prefetch is a low-priority speculative hint: unlike as=fetch with
// a CORS mode, it never forces a preflight the CDN might reject, so it stays
// silent when a bucket omits cross-origin headers. Best-effort by design.
let prefetchLink = null;
function prefetchNext() {
if (models.length < 2) return;
const next = models[(idx + 1) % models.length];
if (!next || !next.glb_url) return;
if (!prefetchLink) {
prefetchLink = document.createElement('link');
prefetchLink.rel = 'prefetch';
document.head.appendChild(prefetchLink);
}
prefetchLink.href = next.glb_url;
}
function loadModel(m) {
if (!mv) return;
// Poster-first: the rendered thumbnail paints instantly while the GLB
// streams in, so the viewer never shows a black "Loading model…" void.
if (m.preview_image_url) mv.setAttribute('poster', m.preview_image_url);
else mv.removeAttribute('poster');
mv.setAttribute('src', m.glb_url);
mv.setAttribute('alt', m.prompt || '3D model');
promptLabel.textContent = m.prompt || 'model';
arBtn.disabled = false;
// Category chip: signals the variety is intentional, not random.
if (catChip) {
const label = CAT_LABEL[m.model_category] || CAT_LABEL.other;
catChip.textContent = label;
catChip.dataset.shown = '1';
}
// Desktop text link opens exactly this model in AR.
if (openLink) openLink.href = arStudioUrl(m.glb_url, m.prompt);
// Announce the change for screen-reader users.
if (liveEl) liveEl.textContent = 'Showing ' + (m.prompt || 'model') + ', model ' + (idx + 1) + ' of ' + models.length;
updateQR(m.glb_url, m.prompt);
syncDots();
prefetchNext();
}
function syncDots() {
if (!dotsWrap) return;
for (const d of dotsWrap.children) {
const on = Number(d.dataset.i) === idx;
d.dataset.active = on ? '1' : '0';
d.setAttribute('aria-selected', on ? 'true' : 'false');
}
}
function buildDots() {
if (!dotsWrap || models.length < 2) return;
dotsWrap.innerHTML = '';
models.forEach((m, i) => {
const b = document.createElement('button');
b.className = 'har-dot';
b.dataset.i = String(i);
b.setAttribute('role', 'tab');
b.setAttribute('aria-label', 'Show model ' + (i + 1) + ' of ' + models.length);
b.addEventListener('click', () => { pauseAuto(); show(i); });
dotsWrap.appendChild(b);
});
dotsWrap.style.display = 'flex';
}
function show(i) {
idx = (i + models.length) % models.length;
loadModel(models[idx]);
restartAutobar();
}
// The thin progress bar telegraphs the auto-advance; restarting it means
// reflowing so the CSS transition replays from 0.
function restartAutobar() {
if (!autobar || reduceMotion) return;
autobar.dataset.run = '0';
autobar.style.setProperty('--har-auto-ms', AUTO_MS + 'ms');
void autobar.offsetWidth;
if (!autoPaused && autoTimer) autobar.dataset.run = '1';
}
function startAuto() {
if (reduceMotion || models.length < 2 || autoTimer) return;
autoTimer = setInterval(() => { if (!autoPaused) show(idx + 1); }, AUTO_MS);
restartAutobar();
}
// Pause is permanent once the visitor takes the wheel (nav, dot, drag).
// Autoplay that fights the user is worse than none.
function pauseAuto() {
if (autoTimer) { clearInterval(autoTimer); autoTimer = null; }
if (autobar) autobar.dataset.run = '0';
}
// Hover/focus is a soft pause: hold position, resume on leave.
function softPause() { autoPaused = true; if (autobar) autobar.dataset.run = '0'; }
function softResume() { autoPaused = false; restartAutobar(); }
// Live social-proof count. The `total` is the full community-model count; we
// show the bigger of it and the fetched slice so the number never undercounts.
function renderCount(total) {
if (!countEl) return;
const n = Math.max(Number(total) || 0, models.length);
if (n < 3) return; // too few to be persuasive: stay quiet.
countEl.innerHTML = '<span class="har-dot-live" aria-hidden="true"></span>Join <b>' + nfmt(n) + '</b> models forged by the community.';
countEl.dataset.shown = '1';
}
// Designed failure state: never a bare "no data", always a way forward.
function showEmpty(message) {
if (mv) { mv.remove(); mv = null; }
nav.style.display = 'none';
if (dotsWrap) dotsWrap.style.display = 'none';
skeleton.style.display = 'none';
if (wrap.querySelector('.har-empty')) return;
const box = document.createElement('div');
box.className = 'har-empty';
const p = document.createElement('p');
p.textContent = message;
const a = document.createElement('a');
a.href = '/forge';
a.textContent = 'Forge a model →';
box.append(p, a);
wrap.appendChild(box);
}
async function init() {
let total = 0;
try {
// Curated community showcase (top-voted first, rejected excluded), not
// the anonymous newest-first bucket. The AR hero should lead with the
// best models, never a random half-formed generation.
const r = await fetch('/api/forge-gallery?scope=community&sort=top&limit=24');
if (!r.ok) throw new Error(r.status);
const d = await r.json();
total = Number(d.total) || 0;
const all = (d.creations || []).filter(c => c.glb_url);
// Votes are sparse, so top-sort falls back to newest and can surface
// throwaway prompts ("test") or un-rendered results. Prefer entries that
// actually produced a poster and carry a real description; keep the
// API's vote ordering. Fall back to the raw list if the filter empties.
const junk = /^\s*(test|asdf|hello|hi|untitled)\b/i;
const quality = all.filter(c =>
c.preview_image_url &&
String(c.prompt || '').trim().length >= 12 &&
!junk.test(String(c.prompt || '')),
);
models = curate(quality.length ? quality : all).slice(0, 12);
} catch { models = []; }
if (!models.length) {
showEmpty('The community showcase is warming up. Be the first to forge one.');
return;
}
renderCount(total);
await ensureModelViewer();
mv = document.createElement('model-viewer');
mv.setAttribute('camera-controls', '');
mv.setAttribute('auto-rotate', '');
mv.setAttribute('ar', '');
mv.setAttribute('ar-modes', 'webxr scene-viewer quick-look');
mv.setAttribute('shadow-intensity', '1.3');
mv.setAttribute('shadow-softness', '0.85');
mv.setAttribute('exposure', '1.05');
mv.setAttribute('environment-image', 'neutral');
mv.setAttribute('interaction-prompt', 'none');
if (models[0].preview_image_url) mv.setAttribute('poster', models[0].preview_image_url);
mv.style.cssText = 'width:100%;height:100%;--poster-color:transparent;background:transparent;';
skeleton.style.display = 'none';
wrap.insertBefore(mv, nav);
// One showcase viewer, but the same perpetual-rotation cost: turn while
// the section is on screen and being looked at, then settle.
attendRotation(mv);
buildDots();
loadModel(models[0]);
nav.style.display = 'flex';
// Wire AR button to model-viewer. Launching AR stops the carousel so it
// can't advance out from under an active placement.
arBtn.addEventListener('click', () => {
pauseAuto();
if (mv && mv.activateAR) mv.activateAR();
});
// Manual nav takes the wheel: hard-stop autoplay.
document.getElementById('har-prev').addEventListener('click', () => { pauseAuto(); show(idx - 1); });
document.getElementById('har-next').addEventListener('click', () => { pauseAuto(); show(idx + 1); });
// Keyboard: arrow keys cycle when the viewer group has focus.
wrap.addEventListener('keydown', (e) => {
if (e.key === 'ArrowLeft') { pauseAuto(); show(idx - 1); e.preventDefault(); }
else if (e.key === 'ArrowRight') { pauseAuto(); show(idx + 1); e.preventDefault(); }
});
// Hover/focus/drag softly holds position; leaving resumes.
wrap.addEventListener('pointerenter', softPause);
wrap.addEventListener('pointerleave', softResume);
wrap.addEventListener('pointerdown', pauseAuto);
wrap.addEventListener('focusin', softPause);
wrap.addEventListener('focusout', softResume);
// Don't advance while the tab is backgrounded.
document.addEventListener('visibilitychange', () => {
if (document.hidden) softPause(); else softResume();
});
startAuto();
}
// Render initial QR immediately (desktop only, no model needed)
try {
const tmp = renderQRToCanvas('https://three.ws/forge', { scale: 8, margin: 2 });
qrCanvas.width = tmp.width;
qrCanvas.height = tmp.height;
qrCanvas.getContext('2d').drawImage(tmp, 0, 0);
qrWrap.style.width = qrCanvas.width + 'px';
qrWrap.style.height = qrCanvas.height + 'px';
} catch {}
// Use IntersectionObserver to lazy-init when section is visible
const section = document.getElementById('home-ar');
const io = new IntersectionObserver((entries) => {
if (entries[0].isIntersecting) { io.disconnect(); init(); }
}, { rootMargin: '200px' });
if (section) io.observe(section);
})();
</script>
<!-- ── FEATURE BENTO ─────────────────────────────────────────────── -->
<section class="block" id="home-capabilities" data-tier="advanced">
<div class="wrap-1280">
<div class="block-head reveal">
<p class="block-eyebrow" data-i18n-html="home.03capabilities"><span class="num">03</span>Capabilities</p>
<h2 class="block-h" data-i18n-html="home.every_feature_your_agent_needs">Every feature your <em>agent needs.</em></h2>
<p class="block-lede" data-i18n="home.a_complete_platform_not_a_widget_voice">
A complete platform — not a widget. Voice, motion capture, multiplayer, and payments built into every agent — with optional blockchain identity.
</p>
</div>
<div class="bento reveal reveal-d1">
<!-- Avatar Studio -->
<div class="bento-card span2">
<div class="bento-icon">
<span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
<span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)" data-i18n="home.avatar_studio">Avatar Studio</span>
</div>
<p class="bento-title" data-i18n="home.selfie_3d_avatar_in_60_seconds">Selfie → 3D avatar in 60 seconds</p>
<p class="bento-desc" data-i18n="home.upload_a_photo_webcam_shot_or_existing">Upload a photo, webcam shot, or existing GLB. Our pipeline generates a fully rigged, animatable 3D character compatible with VRM and standard glTF/GLB avatar formats. Retargets to any animation clip instantly.</p>
<div class="bento-interact" id="studio-interact">
<div class="studio-zone" id="studio-zone">
<button type="button" class="studio-drop" id="studio-drop" aria-label="Upload a selfie — drop an image here or activate to choose a file" data-i18n-html="home.drop_a_selfie_or_click_to_upload" data-i18n-attr="aria-label:home.upload_a_selfie_drop_an_imag_arialabel">
<span class="studio-drop-icon" aria-hidden="true">↑</span>
<span>Drop a selfie or click to upload</span>
</button>
<input type="file" accept="image/*" id="studio-file" style="display:none" aria-label="Selfie image file" />
<button class="bento-action-btn studio-webcam-btn" id="studio-webcam-btn" type="button" data-i18n="home.webcam">Webcam</button>
</div>
<div class="studio-ready" id="studio-ready">
<img class="studio-preview-img" id="studio-preview-img" alt="The photo you just captured" width="44" height="44" />
<div class="studio-ready-body">
<span class="studio-ready-title" data-i18n="home.photo_ready">Photo ready.</span>
<span class="studio-ready-sub" data-i18n="home.finish_in_avatar_studio_we_ll_build">Finish in Avatar Studio — we'll build a rigged 3D avatar from it. Add side angles, a personality, and a voice.</span>
</div>
<div class="studio-ready-actions">
<a class="bento-action-btn primary" id="studio-continue" href="/create/selfie" data-i18n="home.continue_in_avatar_studio">Continue in Avatar Studio →</a>
<button class="bento-action-btn ghost" id="studio-reset" type="button" data-i18n="home.use_a_different_photo">Use a different photo</button>
</div>
</div>
<div class="studio-error" id="studio-error" role="alert" hidden></div>
</div>
<div class="bento-screenshot">
<div class="bento-agent" id="bento-studio"></div>
</div>
<div class="bento-pills">
<span class="bento-pill" data-i18n="home.vrm">VRM</span>
<span class="bento-pill" data-i18n="home.photo">Photo</span>
<span class="bento-pill" data-i18n="home.webcam_2">Webcam</span>
<span class="bento-pill" data-i18n="home.glb_gltf">GLB/GLTF</span>
<span class="bento-pill" data-i18n="home.auto_rig">Auto-rig</span>
</div>
</div>
<!-- Animations -->
<div class="bento-card">
<div class="bento-icon">
<span class="dot" style="background:var(--ink);box-shadow:0 0 8px #e8e8e855"></span>
<span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)" data-i18n="home.animations_2">Animations</span>
</div>
<p class="bento-title" data-i18n-html="home.110_motion_clips"><span id="bento-anim-count">110+</span> motion clips</p>
<p class="bento-desc" data-i18n="home.walk_dance_gesture_emote_a_growing_library">Walk, dance, gesture, emote — a growing library of idle loops and triggered animations that blend seamlessly. Upload your own GLB, FBX, or BVH captures.</p>
<div class="bento-agent-mini" id="bento-anim"></div>
<div class="bento-pills" id="bento-anim-pills">
<button class="bento-pill bento-pill-btn active" data-anim="idle" data-i18n="home.idle_3">Idle</button>
<button class="bento-pill bento-pill-btn" data-anim="av-walk-feminine" data-i18n="home.walk_2">Walk</button>
<button class="bento-pill bento-pill-btn" data-anim="michelle-samba-dance" data-i18n="home.samba">Samba</button>
<button class="bento-pill bento-pill-btn" data-anim="capoeira" data-i18n="home.capoeira_4">Capoeira</button>
<button class="bento-pill bento-pill-btn" data-anim="xbot-sneak-pose" data-i18n="home.sneak">Sneak</button>
<button class="bento-pill bento-pill-btn" data-anim="jump" data-i18n="home.jump_4">Jump</button>
</div>
</div>
<!-- Sign Language -->
<a class="bento-card" href="/sign-language" style="text-decoration:none;color:inherit;display:block">
<div class="bento-icon">
<span class="dot" style="background:#a78bfa;box-shadow:0 0 8px #a78bfa55"></span>
<span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)" data-i18n="home.sign_language_new">Sign Language · New</span>
</div>
<p class="bento-title" data-i18n="home.avatars_that_sign_in_asl">Avatars that sign in ASL 🤟</p>
<p class="bento-desc" data-i18n="home.fingerspell_any_word_or_number_get_signed">Fingerspell any word or number, get signed chat replies, and sign back to the AI with your webcam — the whole conversation in American Sign Language, live in 3D.</p>
<div class="bento-pills">
<span class="bento-pill" data-i18n="home.fingerspelling">Fingerspelling</span>
<span class="bento-pill" data-i18n="home.signed_replies">Signed replies</span>
<span class="bento-pill" data-i18n="home.webcam_input">Webcam input</span>
<span class="bento-pill" data-i18n="home.a_z_0_9">A–Z + 0–9</span>
</div>
</a>
<!-- Voice & Mocap -->
<div class="bento-card">
<div class="bento-icon">
<span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
<span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)" data-i18n="home.voice_mocap">Voice + Mocap</span>
</div>
<p class="bento-title" data-i18n="home.real_time_voice_face_capture">Real-time voice & face capture</p>
<p class="bento-desc" data-i18n="home.elevenlabs_voice_cloning_with_livekit_stream">ElevenLabs voice cloning with LiveKit streaming. Webcam face mocap drives your avatar's expressions and lip sync in real-time — no hardware required.</p>
<div class="bento-interact mocap-demo" id="mocap-demo">
<div class="mocap-bar">
<button class="bento-action-btn" id="mocap-mic-btn" data-i18n="home.microphone">Microphone</button>
<span class="mocap-status" id="mocap-status" data-i18n="home.click_to_capture">click to capture</span>
</div>
<canvas class="mocap-waveform" id="mocap-waveform" height="48"></canvas>
</div>
<div class="bento-pills">
<span class="bento-pill" data-i18n="home.elevenlabs">ElevenLabs</span>
<span class="bento-pill" data-i18n="home.livekit">LiveKit</span>
<span class="bento-pill" data-i18n="home.webxr">WebXR</span>
<span class="bento-pill" data-i18n="home.lip_sync">Lip sync</span>
</div>
</div>
<!-- Walk & Multiplayer -->
<div class="bento-card">
<div class="bento-icon">
<span class="dot" style="background:#f59e0b;box-shadow:0 0 8px #f59e0b55"></span>
<span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)" data-i18n="home.walk_multiplayer">Walk & Multiplayer</span>
</div>
<p class="bento-title" data-i18n="home.multiplayer_3d_worlds">Multiplayer 3D worlds</p>
<p class="bento-desc" data-i18n="home.walk_your_avatar_through_live_environments_m">Walk your avatar through live environments. Multiple visitors move together in real-time — CRDT-synced positions, joystick or keyboard control, and WebSocket presence.</p>
<div class="bento-interact">
<div class="walk-minimap-wrap">
<canvas class="walk-minimap" id="walk-minimap" tabindex="0" role="application" aria-label="Walk minimap. Use W A S D or arrow keys to move your avatar." data-i18n-attr="aria-label:home.walk_minimap_aria"></canvas>
<div class="walk-minimap-hud">
<span class="walk-minimap-dot"></span>
<span id="walk-player-count" data-i18n="home.4_players_online">4 players online</span>
</div>
<div class="walk-minimap-hint"><kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd> or click to move</div>
</div>
</div>
<div class="bento-pills">
<span class="bento-pill" data-i18n="home.multiplayer">Multiplayer</span>
<span class="bento-pill" data-i18n="home.crdt_sync">CRDT sync</span>
<span class="bento-pill" data-i18n="home.websocket">WebSocket</span>
</div>
</div>
<!-- Micropayments -->
<div class="bento-card">
<div class="bento-icon">
<span class="dot" style="background:var(--ink);box-shadow:0 0 8px #e8e8e855"></span>
<span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)" data-i18n="home.micropayments">Micropayments</span>
</div>
<p class="bento-title" data-i18n="home.charge_per_chat_in_usdc">Charge per chat in USDC</p>
<p class="bento-desc" data-i18n="home.gate_any_agent_skill_behind_a_pay">Gate any agent skill behind a pay-per-call paywall. Visitors pay with USDC (a $1 digital dollar) on Base or Solana. Funds land in your wallet instantly.</p>
<div class="bento-interact x402-demo" id="x402-demo">
<div class="x402-step" id="x402-step-req">
<span class="x402-code err" id="x402-code" data-i18n="home.http_402_payment_required">HTTP 402 — Payment Required</span>
<div class="x402-spinner" id="x402-spinner"></div>
<span class="x402-amount" id="x402-amount">+$0.05</span>
<button class="bento-action-btn sm" id="x402-pay-btn" data-i18n="home.pay_0_05">Pay $0.05</button>
</div>
</div>
<div class="bento-pills">
<span class="bento-pill" data-i18n="home.usdc">USDC</span>
<span class="bento-pill" data-i18n="home.base">Base</span>
<span class="bento-pill" data-i18n="home.solana_2">Solana</span>
<span class="bento-pill" data-i18n="home.instant">Instant</span>
</div>
</div>
<!-- On-chain Identity -->
<div class="bento-card">
<div class="bento-icon">
<span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
<span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)" data-i18n="home.blockchain_identity_3">Blockchain Identity</span>
</div>
<p class="bento-title" data-i18n="home.blockchain_identity_optional">Blockchain identity (optional)</p>
<p class="bento-desc" data-i18n="home.save_your_agent_to_the_blockchain_as">Save your agent to the blockchain as a tradeable identity on Solana — created in one transaction for sub-cent fees. Own it, trade it, and let other agents discover and call it automatically.</p>
<div class="bento-interact mint-demo">
<div class="mint-card" id="mint-card">
<div class="mint-card-inner">
<div class="mint-card-info">
<span class="mint-card-label" id="mint-label" data-i18n="home.erc_8004_solana">ERC-8004 · Solana</span>
<input class="mint-card-name" id="mint-name" type="text" value="my-agent" maxlength="32" spellcheck="false" autocomplete="off" aria-label="Agent name to deploy" />
<span class="mint-card-chain" id="mint-chain" data-i18n="home.metaplex_core_mainnet">Metaplex Core · mainnet</span>
</div>
<div class="mint-progress" id="mint-progress">
<svg viewBox="0 0 28 28"><circle cx="14" cy="14" r="12.5"/></svg>
</div>
<button class="bento-action-btn sm" id="mint-btn" data-i18n="home.deploy">Deploy</button>
</div>
<p class="mint-status" id="mint-status" role="status" aria-live="polite" hidden></p>
</div>
</div>
<div class="bento-pills">
<span class="bento-pill" data-i18n="home.erc_8004">ERC-8004</span>
<span class="bento-pill" data-i18n="home.solana_3">Solana</span>
<span class="bento-pill" data-i18n="home.metaplex_core">Metaplex Core</span>
<span class="bento-pill" data-i18n="home.a2a">A2A</span>
</div>
</div>
<!-- MCP / A2A Skills -->
<div class="bento-card">
<div class="bento-icon">
<span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
<span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)" data-i18n="home.skills">Skills</span>
</div>
<p class="bento-title" data-i18n="home.connect_tools_other_agents">Connect tools & other agents</p>
<p class="bento-desc" data-i18n="home.wire_your_agent_to_any_tool_via">Wire your agent to any tool via MCP. Let it discover and call other agents via A2A. Build skill packs and sell them in the marketplace.</p>
<div class="bento-interact skill-demo">
<div class="bento-pills" id="skill-tools">
<button class="bento-pill bento-pill-btn active" data-tool="jupiter" data-i18n="home.jupiter">Jupiter</button>
<button class="bento-pill bento-pill-btn" data-tool="pump" data-i18n="home.pump_fun">Pump.fun</button>
<button class="bento-pill bento-pill-btn" data-tool="rpc" data-i18n="home.solana_rpc">Solana RPC</button>
<button class="bento-pill bento-pill-btn" data-tool="a2a" data-i18n="home.a2a_call">A2A call</button>
</div>
<div class="skill-result" id="skill-result"></div>
</div>
</div>
<!-- Memory -->
<div class="bento-card">
<div class="bento-icon">
<span class="dot" style="background:#f59e0b;box-shadow:0 0 8px #f59e0b55"></span>
<span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)" data-i18n="home.memory">Memory</span>
</div>
<p class="bento-title" data-i18n="home.persistent_cross_device_memory">Persistent cross-device memory</p>
<p class="bento-desc" data-i18n="home.your_agent_remembers_every_visitor_across_de">Your agent remembers every visitor across devices and sessions. Tie-in to your own data sources or use the built-in vector memory.</p>
<div class="bento-interact memory-demo" id="memory-demo">
<div class="memory-input-row">
<input class="memory-input" id="memory-input" placeholder="Tell the agent something..." maxlength="120" aria-label="Tell the agent something to remember" />
<button class="bento-action-btn sm" id="memory-store-btn" data-i18n="home.store">Store</button>
</div>
<button class="bento-action-btn sm" id="memory-recall-btn" style="align-self:flex-start" data-i18n="home.recall">Recall</button>
<div class="memory-log" id="memory-log" aria-live="polite"></div>
</div>
</div>
<!-- AR / WebXR -->
<div class="bento-card">
<div class="bento-icon">
<span class="dot" style="background:var(--ink);box-shadow:0 0 8px #e8e8e855"></span>
<span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)" data-i18n="home.ar_webxr">AR / WebXR</span>
</div>
<p class="bento-title" data-i18n="home.augmented_reality_no_app">Augmented reality, no app</p>
<p class="bento-desc" data-i18n="home.place_your_agent_in_the_real_world">Place your agent in the real world with WebXR on Android or Quick Look on iOS. No app install required.</p>
<div class="bento-interact ar-demo" id="ar-demo">
<div class="ar-phone" id="ar-phone">
<div class="ar-phone-notch"></div>
<div class="ar-phone-screen">
<div class="ar-phone-avatar" id="ar-phone-avatar">◇</div>
<div class="ar-phone-crosshair"></div>
</div>
</div>
<div class="ar-info">
<button class="bento-action-btn sm" id="ar-launch-btn" data-i18n="home.launch_ar">Launch AR</button>
<span class="ar-status" id="ar-status" data-i18n="home.tap_to_place_agent">tap to place agent</span>
</div>
</div>
<div class="bento-pills">
<span class="bento-pill" data-i18n="home.webxr_2">WebXR</span>
<span class="bento-pill" data-i18n="home.quick_look">Quick Look</span>
<span class="bento-pill" data-i18n="home.ios_android">iOS / Android</span>
</div>
</div>
<!-- Marketplace -->
<div class="bento-card">
<div class="bento-icon">
<span class="dot" style="background:#ffffff;box-shadow:0 0 8px #ffffff55"></span>
<span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)" data-i18n="home.marketplace">Marketplace</span>
</div>
<p class="bento-title" data-i18n="home.discover_remix_deploy">Discover, remix, deploy</p>
<p class="bento-desc" data-i18n="home.browse_public_agents_in_the_marketplace_fork">Browse public agents in the marketplace. Fork any agent's personality, voice, and skills. Publish your own and let others remix.</p>
<div class="bento-interact">
<div class="mktplace-strip" id="mktplace-strip"></div>
</div>
</div>
<!-- Analytics -->
<div class="bento-card">
<div class="bento-icon">
<span class="dot" style="background:var(--success);box-shadow:0 0 8px color-mix(in srgb, var(--success) 53%, transparent)"></span>
<span style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3)" data-i18n="home.analytics">Analytics</span>
</div>
<p class="bento-title" data-i18n="home.track_everything">Track everything</p>
<p class="bento-desc" data-i18n="home.conversations_revenue_engagement_retention_a">Conversations, revenue, engagement, retention — all in real-time. See which skills earn the most.</p>
<div class="bento-interact analytics-demo" id="analytics-demo">
<div class="analytics-example-tag" aria-hidden="true">Example dashboard</div>
<div class="analytics-counters">
<div class="analytics-counter"><span class="analytics-val" id="an-convos">0</span><span class="analytics-lbl" data-i18n="home.convos">convos</span></div>
<div class="analytics-counter"><span class="analytics-val" id="an-revenue">$0</span><span class="analytics-lbl" data-i18n="home.revenue">revenue</span></div>
<div class="analytics-counter"><span class="analytics-val" id="an-retention">0%</span><span class="analytics-lbl" data-i18n="home.retention">retention</span></div>
</div>
<svg class="analytics-spark" id="analytics-spark" viewBox="0 0 200 40" preserveAspectRatio="none">
<defs><linearGradient id="spark-grad" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" style="stop-color:var(--success)" stop-opacity="0.35"/><stop offset="100%" style="stop-color:var(--success)" stop-opacity="0"/></linearGradient></defs>
</svg>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ── PUMP.FUN INTEGRATION ───────────────────────────────────────── -->
<section class="block" id="home-token-economy" data-tier="advanced">
<div class="wrap-1280">
<div class="block-head reveal">
<p class="block-eyebrow" data-i18n-html="home.04token_economy"><span class="num">04</span>Token economy</p>
<h2 class="block-h" data-i18n-html="home.your_agent_can_launch_its_own_token">Your agent can launch <em>its own token.</em></h2>
<p class="block-lede" data-i18n="home.the_first_3d_agent_platform_with_native">
The first 3D agent platform with native Pump.fun integration. One click from your agent dashboard to a live token on Solana.
</p>
</div>
<div class="feat-split reveal">
<div class="feat-text">
<p class="feat-eyebrow" data-i18n="home.pump_fun_native_integration">Pump.fun · Native integration</p>
<h3 class="feat-h" data-i18n-html="home.from_character_to_community_token">From character<br/>to <em>community token.</em></h3>
<p class="feat-body" data-i18n="home.three_ws_agents_are_onchain_native_launch">
three.ws agents are onchain-native. Launch a meme coin, fan token, or governance token directly from your agent's dashboard — no coding, no CLI, no wallet juggling.
</p>
<ul class="feat-list">
<li data-i18n-html="home.one_click_launch_name_ticker_image_and"><strong>One-click launch</strong> — name, ticker, image, and initial supply set from your agent profile</li>
<li data-i18n-html="home.live_token_feed_embed_a_real_time"><strong>Live token feed</strong> — embed a real-time Pump.fun price widget into your agent's embed</li>
<li data-i18n-html="home.trade_from_chat_visitors_buy_sell_and"><strong>Trade from chat</strong> — visitors buy, sell, and tip using the agent's built-in Pump.fun skill</li>
<li data-i18n-html="home.trending_dashboard_track_your_token_across_t"><strong>Trending dashboard</strong> — track your token across the Pump.fun leaderboard in real-time</li>
</ul>
<div>
<a class="btn btn--sm" href="/launches" data-i18n-html="home.explore_token_agents">Explore token agents <span class="arrow">→</span></a>
</div>
</div>
<div class="feat-visual">
<div class="feat-visual-label" id="hlt-label">Live token · Pump.fun</div>
<div class="feat-visual-inner" id="hlt-card">
<a class="token-card" id="hlt-pump-link" href="https://pump.fun" target="_blank" rel="noopener noreferrer" style="text-decoration:none;color:inherit;">
<div class="token-avatar" id="hlt-avatar">—</div>
<div class="token-info">
<div class="token-name" id="hlt-name">Loading live token…</div>
<div class="token-ticker" id="hlt-ticker">Streaming from pump.fun</div>
</div>
<div class="token-price" id="hlt-price">Live</div>
</a>
<div class="earn-rows" id="hlt-rows" style="border:1px solid var(--hairline);border-radius:8px;overflow:hidden;"></div>
<div style="display:flex;gap:10px;">
<a class="btn btn--sm" href="/radar" style="flex:1;justify-content:center;" data-i18n="home.trending_tokens">Trending tokens</a>
<button class="btn btn--sm btn--primary" id="hlt-launch" type="button" style="flex:1;justify-content:center;" data-i18n="home.launch_yours">Launch yours</button>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ── LIVE ECONOMY ──────────────────────────────────────────────────── -->
<section class="block" id="home-live-economy" data-tier="advanced">
<div class="wrap-1280">
<div class="block-head reveal">
<p class="block-eyebrow" data-i18n-html="home.05live_economy"><span class="num">05</span>Live economy</p>
<h2 class="block-h" data-i18n-html="home.watch_real_value_move_between_agents">Watch real value <em>move between agents.</em></h2>
<p class="block-lede" data-i18n-html="home.every_tip_payment_trade_and_token_launch">
Every tip, payment, trade, and token launch on three.ws is on-chain and explorer-verifiable. Here it is in real time — and the full 3D money map lives in the <a href="/galaxy" style="text-decoration:underline;">Agent Galaxy</a>.
</p>
</div>
<div class="reveal" style="max-width:640px;margin:0 auto;">
<div id="economyTicker"></div>
</div>
</div>
</section>
<!-- ── ORACLE CONVICTION ─────────────────────────────────────────────── -->
<section class="block" id="home-oracle" data-tier="advanced">
<div class="wrap-1280">
<div class="feat-split reveal">
<div class="feat-text">
<p class="feat-eyebrow" data-i18n="home.oracle_fused_conviction_scoring">Oracle · Fused conviction scoring</p>
<h3 class="feat-h" data-i18n-html="home.one_score_four_reads_fused">One score.<br/><em>Four reads fused.</em></h3>
<p class="feat-body" data-i18n-html="home.oracle_reads_every_pump_fun_launch_the">
Oracle reads every pump.fun launch the instant it surfaces and fuses four independent signals into a single 0–100 conviction score: <strong>who's buying</strong> (proven-wallet pedigree), <strong>how</strong> (organic vs coordinated buy structure), <strong>what</strong> it is (cultural narrative and virality), and <strong>how it's moving</strong> (momentum). Hard structural caps mean a bundled coin can never score Strong — the score is honest, not flattering.
</p>
<ul class="feat-list">
<li data-i18n-html="home.scores_every_launch_the_instant_it_appears"><strong>Scores every launch</strong> — the instant it appears on-chain, before the crowd forms</li>
<li data-i18n-html="home.smart_wallet_pedigree_did_the_proven_money"><strong>Smart-wallet pedigree</strong> — did the proven money get in early? What's their win rate?</li>
<li data-i18n-html="home.structure_detection_bundles_snipers_concentr"><strong>Structure detection</strong> — bundles, snipers, concentration flags, dev behavior</li>
<li data-i18n-html="home.agent_action_loop_arm_your_3d_agent"><strong>Agent action loop</strong> — arm your 3D agent to buy automatically at prime or strong tier</li>
</ul>
<div>
<a class="btn btn--sm btn--primary" href="/oracle" data-i18n-html="home.open_oracle">Open Oracle <span class="arrow">→</span></a>
</div>
</div>
<div class="feat-visual">
<div class="feat-visual-label"><span class="hoc-live-dot"></span>Oracle conviction · live feed</div>
<div class="feat-visual-inner" style="padding:0;overflow:hidden">
<div id="hoc-items" class="hoc-loading">
<div class="hoc-sk"></div><div class="hoc-sk"></div><div class="hoc-sk"></div>
</div>
<div style="padding:12px 16px;border-top:1px solid var(--hairline)">
<a class="btn btn--sm" href="/oracle" style="width:100%;text-align:center;justify-content:center" data-i18n="home.view_all_conviction_scores">View all conviction scores →</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ── PAY-PER-CALL EARN ──────────────────────────────────────────────────── -->
<section class="block" id="home-x402" data-tier="advanced">
<div class="wrap-1280">
<div class="feat-split rev reveal">
<div class="feat-text">
<p class="feat-eyebrow" data-i18n="home.pay_per_call_micropayments_usdc_payments">Pay-per-call (micropayments) · USDC payments</p>
<h3 class="feat-h" data-i18n-html="home.charge_per_chat_keep_everything_2">Charge per chat.<br/><em>Keep everything.</em></h3>
<p class="feat-body" data-i18n="home.pay_per_call_is_an_open_http">
Pay-per-call is an open HTTP payment protocol — your agent responds with a 402 status code and visitors pay in USDC before unlocking your skills. No platform cut during open beta.
</p>
<ul class="feat-list">
<li data-i18n-html="home.set_your_price_from_0_001_per"><strong>Set your price</strong> — from $0.001 per message to $100 per session</li>
<li data-i18n-html="home.gate_any_skill_wrap_any_mcp_tool"><strong>Gate any skill</strong> — wrap any MCP tool or agent response behind a paywall</li>
<li data-i18n-html="home.instant_settlement_usdc_hits_your_wallet_on"><strong>Instant settlement</strong> — USDC hits your wallet on Base or Solana, no escrow</li>
<li data-i18n-html="home.per_user_metering_built_in_rate_limits"><strong>Per-user metering</strong> — built-in rate limits and subscription tiers</li>
<li data-i18n-html="home.0_fee_during_beta_keep_100_of"><strong>0% fee during beta</strong> — keep 100% of revenue while the platform scales</li>
</ul>
<div>
<a class="btn btn--sm" href="/dashboard/monetize" data-i18n-html="home.configure_monetization">Configure monetization <span class="arrow">→</span></a>
</div>
</div>
<div class="feat-visual">
<div class="feat-visual-label">Earnings dashboard · example</div>
<div class="feat-visual-inner">
<div style="display:flex;justify-content:space-between;align-items:baseline;">
<div>
<div style="font-family:var(--font-display);font-size:36px;font-weight:600;letter-spacing:-0.025em;color:var(--green)">$847.50</div>
<div style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3);margin-top:4px">Example earnings · USDC</div>
</div>
<div style="text-align:right">
<div style="font-family:var(--font-display);font-size:20px;font-weight:600;color:var(--text)">312</div>
<div style="font-family:var(--font-mono);font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-3);margin-top:2px">conversations</div>
</div>
</div>
<div class="earn-rows" style="border:1px solid var(--hairline);border-radius:8px;overflow:hidden;">
<div class="earn-row">
<div class="earn-row-left">
<div class="earn-row-name">skill: deep-research</div>
<div class="earn-row-time">$2.50 / session</div>
</div>
<div class="earn-row-amount">+$320.00</div>
</div>
<div class="earn-row">
<div class="earn-row-left">
<div class="earn-row-name">skill: image-gen</div>
<div class="earn-row-time">$0.10 / call</div>
</div>
<div class="earn-row-amount">+$218.40</div>
</div>
<div class="earn-row">
<div class="earn-row-left">
<div class="earn-row-name">skill: voice-chat</div>
<div class="earn-row-time">$0.05 / minute</div>
</div>
<div class="earn-row-amount">+$187.60</div>
</div>
<div class="earn-row">
<div class="earn-row-left">
<div class="earn-row-name">direct tips</div>
<div class="earn-row-time">any amount</div>
</div>
<div class="earn-row-amount">+$121.50</div>
</div>
</div>
<div style="font-family:var(--font-mono);font-size:11px;color:var(--text-3);text-align:center;letter-spacing:0.1em;">0% PLATFORM FEE DURING OPEN BETA</div>
</div>
</div>
</div>
</div>
</section>
<!-- ── WALK & MULTIPLAYER ─────────────────────────────────────────── -->
<section class="block">
<div class="wrap-1280">
<div class="feat-split reveal">
<div class="feat-text">
<p class="feat-eyebrow" data-i18n="home.walk_mode_multiplayer">Walk mode · Multiplayer</p>
<h3 class="feat-h" data-i18n-html="home.your_visitors_walk_together">Your visitors walk<br/><em>together.</em></h3>
<p class="feat-body" data-i18n="home.embed_a_full_multiplayer_3d_world_onto">
Embed a full multiplayer 3D world onto any page. Visitors arrive as their own avatar, see each other move in real-time, and can voice-chat inside the scene.
</p>
<ul class="feat-list">
<li data-i18n-html="home.multiplayer_sync_crdt_based_position_sync_vi"><strong>Multiplayer sync</strong> — CRDT-based position sync via WebSocket, handles 100s of concurrent users</li>
<li data-i18n-html="home.any_environment_drop_your_own_3d_scene"><strong>Any environment</strong> — drop your own 3D scene GLB or use one of the built-in club environments</li>
<li data-i18n-html="home.voice_in_scene_livekit_spatial_audio_tied"><strong>Voice-in-scene</strong> — LiveKit spatial audio tied to avatar position</li>
<li data-i18n-html="home.one_embed_tag_same_tag_zero_backend"><strong>One embed tag</strong> — same <code><walk-embed></code> tag, zero backend setup</li>
</ul>
<div>
<a class="btn btn--sm" href="/temporary" data-i18n-html="home.see_walk_mode">See walk mode <span class="arrow">→</span></a>
</div>
</div>
<div class="feat-visual walk-preview-visual">
<div class="feat-visual-label">Walk embed · live preview</div>
<div class="walk-preview-wrap" id="walk-preview-container">
<div class="walk-preview-canvas-area">
<canvas class="walk-preview-canvas"></canvas>
<div data-walk-loading class="walk-preview-loading">
<div class="walk-preview-spinner"></div>
<span data-i18n="home.loading_3d_scene">Loading 3D scene...</span>
</div>
<div class="walk-preview-hint">
<span data-i18n-html="home.wasd_move"><kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd> move</span>
<span data-i18n="home.drag_to_orbit">drag to orbit</span>
<span data-i18n-html="home.space_jump"><kbd>space</kbd> jump</span>
</div>
<div data-walk-joystick class="walk-preview-joystick"></div>
</div>
<div class="bento-code"><span class="kw" data-i18n="home.walk_embed"><walk-embed</span><br/> <span class="kw" data-i18n="home.src">src=</span><span class="str" data-i18n="home.api_scenes_my_lobby">"/api/scenes/my-lobby"</span><br/> <span class="kw" data-i18n="home.multiplayer_2">multiplayer</span><br/><span class="kw" data-i18n="home.text">></walk-embed></span></div>
</div>
</div>
</div>
</div>
</section>
<!-- ── DEVELOPER PLATFORM ─────────────────────────────────────────── -->
<section class="block" id="home-dev-platform" data-tier="advanced">
<div class="wrap-1280">
<div class="block-head reveal">
<p class="block-eyebrow" data-i18n-html="home.06developer_platform"><span class="num">06</span>Developer platform</p>
<h2 class="block-h" data-i18n-html="home.headless_api_full_power">Headless API. <em>Full power.</em></h2>
<p class="block-lede" data-i18n="home.everything_available_through_a_rest_api_sdk">
Everything available through a REST API, SDK, and MCP server. Build custom agents, automate workflows, and connect to any AI tool.
</p>
</div>
<div class="dev-grid reveal reveal-d1" id="api-playground">
<!-- ── Left: request / code pane ─────────────────────── -->
<div class="dev-pane" id="pg-left">
<div class="dev-pane-head">
<span id="pg-head-title" data-i18n="home.api_playground">API Playground</span>
<span id="pg-head-sub" data-i18n="home.interactive">interactive</span>
</div>
<div class="dev-tabs" id="pg-tabs">
<button type="button" class="dev-tab active" data-tab="tryit" data-i18n="home.try_it">Try it</button>
<button type="button" class="dev-tab" data-tab="sdk" data-i18n="home.node_sdk">Node SDK</button>
<button type="button" class="dev-tab" data-tab="curl" data-i18n="home.curl">cURL</button>
</div>
<!-- Tab: Try it -->
<div class="dev-tab-content active" id="pg-tab-tryit">
<div id="pg-empty-state" class="pg-empty">
<div class="pg-empty-icon"></></div>
Select an endpoint to start exploring the API
</div>
<div id="pg-builder" style="display:none;">
<div class="pg-request">
<div class="pg-field pg-key-field">
<label class="pg-field-label" for="pg-key" data-i18n-html="home.api_keyget_a_key">API key<a class="pg-key-hint" href="/dashboard/api" target="_blank" rel="noopener">Get a key ↗</a></label>
<input class="pg-input" id="pg-key" type="password" autocomplete="off" spellcheck="false" placeholder="Bearer token — required for /agents and /chat" />
</div>
<div class="pg-url-bar">
<div class="pg-url-method" id="pg-method">GET</div>
<input class="pg-url-path" id="pg-path" readonly aria-label="Request URL path" />
</div>
<div id="pg-params"></div>
<div id="pg-body-wrap" style="display:none;">
<div class="pg-field">
<label class="pg-field-label" for="pg-body" data-i18n="home.request_body">Request body</label>
<textarea class="pg-input" id="pg-body" placeholder='{ "key": "value" }'></textarea>
</div>
</div>
<div class="pg-actions">
<button type="button" class="pg-send" id="pg-send" data-i18n="home.send">Send</button>
<span class="pg-status" id="pg-status" role="status" aria-live="polite"></span>
</div>
<div class="pg-response" id="pg-response" style="display:none;">
<div class="pg-response-head">
<span data-i18n="home.response">Response</span>
<button type="button" class="pg-copy" id="pg-copy-resp" data-i18n="home.copy_2">Copy</button>
</div>
<div class="pg-response-body" id="pg-response-body" aria-live="polite" aria-atomic="true"></div>
</div>
</div>
</div>
</div>
<!-- Tab: SDK -->
<div class="dev-tab-content" id="pg-tab-sdk">
<div class="dev-code" id="pg-sdk-code">
<span class="kw" data-i18n="home.import">import</span> { <span class="fn" data-i18n="home.agent">Agent</span> } <span class="kw" data-i18n="home.from">from</span> <span class="str" data-i18n="home.three_ws_sdk">'@three-ws/sdk'</span>;
<span class="kw" data-i18n="home.const">const</span> <span class="fn" data-i18n="home.agent_2">agent</span> = <span class="kw" data-i18n="home.new">new</span> <span class="fn" data-i18n="home.agent_3">Agent</span>({
<span class="fn" data-i18n="home.avatarid">avatarId</span>: <span class="str" data-i18n="home.bacff13e_b64b_4ac0_860d_44f0168ad23b">'bacff13e-b64b-4ac0-860d-44f0168ad23b'</span>,
<span class="fn" data-i18n="home.voice">voice</span>: <span class="str" data-i18n="home.elevenlabs_josh">'elevenlabs:josh'</span>,
<span class="fn" data-i18n="home.memory_2">memory</span>: <span class="str" data-i18n="home.persistent">'persistent'</span>,
});
<span class="cmt" data-i18n="home.add_a_paid_skill">// Add a paid skill</span>
<span class="fn" data-i18n="home.agent_4">agent</span>.<span class="fn" data-i18n="home.skill">skill</span>(<span class="str" data-i18n="home.deep_research">'deep-research'</span>, {
<span class="fn" data-i18n="home.price">price</span>: <span class="str" data-i18n="home.2_50_usdc">'2.50 USDC'</span>,
<span class="fn" data-i18n="home.handler">handler</span>: <span class="kw" data-i18n="home.async">async</span> (query) => { <span class="cmt">/* … */</span> },
});
<span class="cmt" data-i18n="home.pay_per_call_gated_endpoint_auto_wired">// pay-per-call gated endpoint auto-wired</span>
<span class="kw" data-i18n="home.await">await</span> <span class="fn" data-i18n="home.agent_5">agent</span>.<span class="fn" data-i18n="home.deploy_2">deploy</span>();
</div>
</div>
<!-- Tab: cURL -->
<div class="dev-tab-content" id="pg-tab-curl">
<div class="pg-curl-code" id="pg-curl-code">Select an endpoint to generate a cURL command.</div>
</div>
<div class="dev-links">
<div class="dev-links-row">
<a class="dev-link" href="/docs" data-i18n="home.docs">Docs</a>
<a class="dev-link" href="https://github.com/nirholas/three.ws" data-i18n="home.github">GitHub</a>
<a class="dev-link" href="/openapi.json" data-i18n="home.openapi">OpenAPI</a>
<a class="dev-link" href="/docs/mcp" data-i18n="home.mcp_server">MCP server</a>
</div>
</div>
</div>
<!-- ── Right: endpoint list ──────────────────────────── -->
<div class="dev-pane dev-right" id="pg-endpoints">
<div class="dev-pane-head">
<span data-i18n="home.endpoints">Endpoints</span>
<span data-i18n="home.v1">v1</span>
</div>
<button type="button" class="dev-api-row" aria-pressed="false" data-endpoint="list-agents" data-i18n-html="home.get_v1_agents_list_all_agents_in">
<span style="display:flex;align-items:center;gap:8px;">
<span class="dev-badge get">GET</span>
<span class="dev-api-path">/v1/agents</span>
</span>
<span class="dev-api-desc">List all agents in your account</span>
</button>
<button type="button" class="dev-api-row" aria-pressed="false" data-endpoint="create-agent" data-i18n-html="home.post_v1_agents_create_agent_from_avatar">
<span style="display:flex;align-items:center;gap:8px;">
<span class="dev-badge post">POST</span>
<span class="dev-api-path">/v1/agents</span>
</span>
<span class="dev-api-desc">Create agent from avatar + prompt</span>
</button>
<button type="button" class="dev-api-row" aria-pressed="false" data-endpoint="chat" data-i18n-html="home.post_v1_chat_send_a_message_stream">
<span style="display:flex;align-items:center;gap:8px;">
<span class="dev-badge post">POST</span>
<span class="dev-api-path">/v1/chat</span>
</span>
<span class="dev-api-desc">Send a message, stream a response</span>
</button>
<button type="button" class="dev-api-row" aria-pressed="false" data-endpoint="get-avatar" data-i18n-html="home.get_v1_avatars_id_fetch_avatar_metadata">
<span style="display:flex;align-items:center;gap:8px;">
<span class="dev-badge get">GET</span>
<span class="dev-api-path">/v1/avatars/:id</span>
</span>
<span class="dev-api-desc">Fetch avatar metadata and GLB URL</span>
</button>
<button type="button" class="dev-api-row" aria-pressed="false" data-endpoint="mcp" data-i18n-html="home.mcp_three_ws_mcp_model_context_protocol">
<span style="display:flex;align-items:center;gap:8px;">
<span class="dev-badge mcp">MCP</span>
<span class="dev-api-path">three.ws/mcp</span>
</span>
<span class="dev-api-desc">Model Context Protocol server</span>
</button>
<button type="button" class="dev-api-row" aria-pressed="false" data-endpoint="a2a" data-i18n-html="home.a2a_v1_a2a_agentid_agent_to_agent">
<span style="display:flex;align-items:center;gap:8px;">
<span class="dev-badge mcp">A2A</span>
<span class="dev-api-path">/v1/a2a/:agentId</span>
</span>
<span class="dev-api-desc">Agent-to-agent protocol endpoint</span>
</button>
<div style="padding:14px 20px;margin-top:auto;border-top:1px solid var(--hairline);">
<a class="btn btn--sm" href="/dashboard/api" data-i18n-html="home.get_api_key">Get API key <span class="arrow">→</span></a>
</div>
</div>
</div>
</div>
</section>
<!-- ── HOW IT WORKS ───────────────────────────────────────────────── -->
<section class="block">
<div class="wrap-1280">
<div class="block-head reveal">
<p class="block-eyebrow" data-i18n-html="home.07how_it_works"><span class="num">07</span>How it works</p>
<h2 class="block-h" data-i18n-html="home.three_steps_one_living_character">Three steps. <em>One living character.</em></h2>
</div>
<div class="steps reveal reveal-d1">
<div class="step">
<div class="step-num">01 · CREATE</div>
<div class="step-title">Make an agent</div>
<p class="step-body" data-i18n="home.selfie_3d_avatar_in_a_minute_or">Selfie → 3D avatar in a minute. Or upload your own GLB. Add a personality prompt, pick a voice from ElevenLabs or LiveKit, and wire up AI. Or browse the marketplace for a pre-built agent.</p>
</div>
<div class="step">
<div class="step-num">02 · EMBED</div>
<div class="step-title">Drop the tag</div>
<p class="step-body" data-i18n="home.two_lines_of_html_no_sdk_install">Two lines of HTML. No SDK install, no iframe wrapper, no build step. Works in React, Vue, Svelte, and plain HTML. Lazy-loaded by default, CDN-hosted globally.</p>
</div>
<div class="step">
<div class="step-num">03 · SHIP</div>
<div class="step-title">Your site is alive</div>
<p class="step-body" data-i18n="home.visitors_talk_to_your_agent_with_text">Visitors talk to your agent with text or voice. It remembers across sessions. Charge per chat with pay-per-call micropayments. Launch its token on Pump.fun. Watch it grow.</p>
</div>
</div>
</div>
</section>
<!-- ── 3D STACK ────────────────────────────────────────────────────── -->
<section class="block" id="home-stack" data-tier="advanced">
<div class="wrap-1280">
<div class="block-head reveal">
<p class="block-eyebrow" data-i18n-html="home.08the_stack"><span class="num">08</span>The stack</p>
<h2 class="block-h" data-i18n-html="home.six_pieces_one_layer">Six pieces. <em>One layer.</em></h2>
<p class="block-lede" data-i18n="home.every_component_is_open_real_and_shipping">Every component is open, real, and shipping today. Use one. Use all. They compose.</p>
</div>
<div class="stack-3d reveal" id="stack-3d">
<div class="stack-3d-scene" id="stack-3d-scene">
<a href="/studio" class="stack-card" data-i18n-html="home.01_studio_selfie_to_rigged_avatar_in">
<span class="stack-card-num">01</span>
<span class="stack-card-title">Studio</span>
<span class="stack-card-desc">Selfie to rigged avatar in seconds. Browser-native, GPU-accelerated — no software to install.</span>
<span class="stack-card-arrow">↗</span>
</a>
<a href="/discover" class="stack-card" data-i18n-html="home.02_registry_optional_blockchain_identity_age">
<span class="stack-card-num">02</span>
<span class="stack-card-title">Registry</span>
<span class="stack-card-desc">Optional blockchain identity. Agents discoverable, portable, and attestable across any A2A or MCP client.</span>
<span class="stack-card-arrow">↗</span>
</a>
<a href="/docs" class="stack-card" data-i18n-html="home.03_embed_web_component_one_tag_any">
<span class="stack-card-num">03</span>
<span class="stack-card-title">Embed</span>
<span class="stack-card-desc"><agent-3d> web component. One tag. Any host. Lazy-loaded, isolated CSS, CDN-hosted globally.</span>
<span class="stack-card-arrow">↗</span>
</a>
<a href="/dashboard/monetize" class="stack-card" data-i18n-html="home.04_pay_per_call_http_native_usdc">
<span class="stack-card-num">04</span>
<span class="stack-card-title">Pay-per-call</span>
<span class="stack-card-desc">HTTP-native USDC micropayments. Bill per skill, message, or session. 0% platform fee during open beta.</span>
<span class="stack-card-arrow">↗</span>
</a>
<a href="/temporary" class="stack-card" data-i18n-html="home.05_walk_multiplayer_3d_worlds_crdt_synced">
<span class="stack-card-num">05</span>
<span class="stack-card-title">Walk</span>
<span class="stack-card-desc">Multiplayer 3D worlds. CRDT-synced avatar positions, spatial voice, joystick control — in one embed tag.</span>
<span class="stack-card-arrow">↗</span>
</a>
<a href="/docs/sdk" class="stack-card" data-i18n-html="home.06_sdk_javascript_python_rust_mint_sign">
<span class="stack-card-num">06</span>
<span class="stack-card-title">SDK</span>
<span class="stack-card-desc">JavaScript, Python, Rust. Mint, sign, attest, render, pay. Apache-2.0 licensed. Available on npm.</span>
<span class="stack-card-arrow">↗</span>
</a>
</div>
</div>
</div>
</section>
<!-- ── SHOWCASE 3D ────────────────────────────────────────────────── -->
<section class="block" id="showcase-3d-section">
<div class="wrap-1280">
<div class="block-head reveal">
<p class="block-eyebrow" data-i18n-html="home.09discover"><span class="num">09</span>Discover</p>
<h2 class="block-h" data-i18n-html="home.living_agents_right_now">Living agents, <em>right now.</em></h2>
<p class="block-lede" data-i18n="home.a_taste_of_what_s_running_across">A taste of what's running across the web today. Click any agent to talk, remix, or grab their embed code.</p>
</div>
<div class="showcase-3d reveal reveal-d1">
<div class="showcase-3d-grid" id="showcase-3d-grid">
<!-- Agent cards + CTA cards injected by JS from /api/explore -->
</div>
</div>
</div>
</section>
<!-- ── AVATAR DROP ─────────────────────────────────────────────────── -->
<section class="block body-drop" id="body-drop">
<div class="wrap-1280">
<div class="body-drop-content reveal">
<p class="block-eyebrow" data-i18n-html="home.10see_it_in_action"><span class="num">10</span>See it in action</p>
<h2 class="body-drop-title" data-i18n-html="home.your_agent_lives_here">
<span id="drop-sit-line">Your agent</span><br/>
lives <em>here.</em>
</h2>
<p class="body-drop-sub" data-i18n="home.not_a_render_not_a_video_a">
Not a render. Not a video. A real 3D character sitting on this text, jumping onto the button, interacting with the page in real-time.
</p>
<div class="cta-row">
<a class="btn btn--primary" href="/create" id="drop-cta-btn" data-cta="build_agent" data-cta-loc="drop" data-i18n-html="home.build_your_agent">Build your agent <span class="arrow">→</span></a>
</div>
</div>
</div>
<canvas id="drop-canvas"></canvas>
</section>
<!-- ── V4 IMMERSIVE CLOSE ─────────────────────────────────────────── -->
<section class="vclose" id="vclose">
<div class="vclose-grid" aria-hidden="true"></div>
<div id="vclose-agent-slot" class="vclose-agent"></div>
<div class="vclose-vignette" aria-hidden="true"></div>
<div class="vclose-overlay">
<div class="vclose-eyebrow">live · three.ws</div>
<h2 class="vclose-title" data-i18n-html="home.your_ai_deserves_a_body">Your AI deserves<br />a <em>body.</em></h2>
<p class="vclose-sub" data-i18n="home.free_to_start_two_lines_of_html">Free to start. Two lines of HTML. Voice, memory, and payments included.</p>
<div class="cta-row" style="justify-content:center;">
<a class="btn btn--primary" href="/create" data-i18n-html="home.build_your_agent_2">Build your agent <span class="arrow">→</span></a>
<a class="btn btn--forge" href="/forge" data-i18n-html="home.text_3d"><span class="btn-forge-dot" aria-hidden="true"></span>Text → 3D</a>
<a class="btn" href="/docs" data-i18n="home.read_the_docs_2">Read the docs</a>
</div>
<div class="vclose-chips" id="vclose-chips" role="group" aria-label="Trigger an animation">
<button type="button" class="hero-chip hero-chip--rand" data-anim="__random" data-i18n="home.random_2">🎲 Random</button>
<button type="button" class="hero-chip" data-anim="wave" data-i18n="home.wave_4">👋 Wave</button>
<button type="button" class="hero-chip" data-anim="dance" data-i18n="home.dance_4">💃 Dance</button>
<button type="button" class="hero-chip" data-anim="capoeira" data-i18n="home.capoeira_5">🤸 Capoeira</button>
<button type="button" class="hero-chip" data-anim="thriller" data-i18n="home.thriller_4">🧟 Thriller</button>
<button type="button" class="hero-chip" data-anim="celebrate" data-i18n="home.celebrate_3">🎉 Celebrate</button>
</div>
</div>
</section>
<div id="em-strip" data-heading="Live now: call the winner" style="max-width:1100px;margin:0 auto;padding:0 1rem 2rem"></div>
</main>
<!-- ── FOOTER ─────────────────────────────────────────────────────── -->
<footer>
<div class="wrap-1280">
<nav class="foot-cols" aria-label="Footer">
<div class="foot-col">
<h3 class="foot-col-h">Product</h3>
<a href="/create" data-i18n="home.build_an_agent">Build an agent</a>
<a href="/forge" data-i18n="home.text_to_3d">Text to 3D</a>
<a href="/image-to-3d" data-i18n="home.image_to_3d">Image to 3D</a>
<a href="/marketplace" data-i18n="home.marketplace_2">Marketplace</a>
<a href="/discover" data-i18n="home.discover">Discover</a>
<a href="/pricing" data-i18n="home.pricing">Pricing</a>
<a href="/dashboard" data-i18n="home.console">Console</a>
</div>
<div class="foot-col">
<h3 class="foot-col-h">Explore</h3>
<a href="/agents" data-i18n="home.agents_index">Agents Index</a>
<a href="/reputation" data-i18n="home.reputation">Reputation</a>
<a href="/characters" data-i18n="home.characters">Characters</a>
<a href="/gallery" data-i18n="home.avatar_gallery">Avatar Gallery</a>
<a href="/bazaar" data-i18n="home.marketplace_3">Marketplace</a>
</div>
<div class="foot-col">
<h3 class="foot-col-h">Developers</h3>
<a href="/docs" data-i18n="home.docs_2">Docs</a>
<a href="/avatar-sdk" data-i18n="home.avatar_sdk">Avatar SDK</a>
<a href="/dashboard/api" data-i18n="home.api">API</a>
<a href="/artifact" data-i18n="home.artifact_viewer">Artifact Viewer</a>
<a href="/sitemap" data-i18n="home.sitemap">Sitemap</a>
</div>
<div class="foot-col">
<h3 class="foot-col-h">Integrations</h3>
<a href="/galaxy" data-i18n="home.agent_galaxy">Agent Galaxy</a>
<a href="/x402" data-i18n="home.trust_layer">Trust Layer</a>
<a href="/aws" data-i18n="home.aws_marketplace">AWS Marketplace</a>
</div>
<div class="foot-col">
<h3 class="foot-col-h">Company</h3>
<a href="/blog" data-i18n="home.blog">Blog</a>
<a href="/community" data-i18n="home.community_2">Community</a>
<a href="/support" data-i18n="home.support">Support</a>
<a href="/status" data-i18n="home.status">Status</a>
<a href="https://x.com/trythreews" target="_blank" rel="noopener noreferrer" data-i18n="home.x_twitter">X / Twitter</a>
<a href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener noreferrer" data-i18n="home.github_2">GitHub</a>
<a href="mailto:[email protected]" data-i18n="home.contact">Contact</a>
</div>
<div class="foot-col">
<h3 class="foot-col-h">Legal</h3>
<a href="/legal/privacy" data-i18n="home.privacy">Privacy</a>
<a href="/legal/tos" data-i18n="home.terms">Terms</a>
</div>
</nav>
<div class="foot-lang">
<span class="foot-lang-label" data-i18n="common.language">Language</span>
<lang-switcher></lang-switcher>
</div>
<div class="foot-inner">
<div>© 2026 · three.ws · the 3D agent layer of the internet</div>
<button class="foot-ca" id="foot-ca-btn" title="Copy contract address" data-i18n-html="home.three_fembdox7r1psc4gecvjdsbnbza3bfztcydcatj" data-i18n-attr="title:home.copy_contract_address_title">
<span class="foot-ca-label">$THREE</span>
<span class="foot-ca-addr" id="foot-ca-addr">FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump</span>
</button>
</div>
</div>
</footer>
<script type="module">
// Dynamic import inside the observer callback — a static import would put
// Three.js + GLTFLoader in the home entry's critical bundle even though the
// section is far below the fold. The module (and its GLB fetch) only loads
// when the user scrolls within 200px of the section.
const dropSection = document.getElementById('body-drop');
if (dropSection) {
const io = new IntersectionObserver(async entries => {
if (!entries[0].isIntersecting) return;
io.disconnect();
try {
const { initAvatarDrop } = await import('/src/avatar-drop.js');
initAvatarDrop(dropSection);
} catch {}
}, { rootMargin: '200px' });
io.observe(dropSection);
}
</script>
<script type="module">
// Same deferral as the body-drop section above: the walk preview pulls
// Three.js, RoomEnvironment, nipplejs, and a rigged GLB — none of which
// belong in first paint. Load it all when the section approaches the
// viewport.
const walkContainer = document.getElementById('walk-preview-container');
if (walkContainer) {
const io = new IntersectionObserver(async entries => {
if (!entries[0].isIntersecting) return;
io.disconnect();
try {
const { initWalkPreview } = await import('/src/walk-embed-preview.js');
initWalkPreview(walkContainer);
} catch {}
}, { rootMargin: '200px' });
io.observe(walkContainer);
}
</script>
<script type="module">
// Live pump.fun token card + real "Launch yours" flow.
import { initHomeLiveToken } from '/src/home-live-token.js';
import { initHomepageLauncher } from '/src/pump/homepage-launcher.js';
const hltCard = document.getElementById('hlt-card');
if (hltCard) initHomeLiveToken(hltCard);
initHomepageLauncher(document.getElementById('hlt-launch'));
</script>
<script type="module">
// Oracle conviction mini-feed on home page.
// Fetches top scoring coins from /api/oracle/feed and renders compact cards
// showing ticker, score, tier pill, and four pillar bars.
(async function initHomeOracle() {
const hocItems = document.getElementById('hoc-items');
if (!hocItems) return;
const PIL_COLOR = { pedigree: '#5fe3ff', structure: '#34d399', narrative: '#a07bff', momentum: '#fbbf24' };
const TIER_LABEL = { prime: 'PRIME', strong: 'STRONG', lean: 'LEAN', watch: 'WATCH', avoid: 'AVOID' };
const tc = (t) => `t-${TIER_LABEL[t] ? t : 'watch'}`;
const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
function miniCard(it) {
const tier = it.tier || 'watch';
const score = Math.round(it.score ?? 0);
const p = it.pillars || {};
const bars = ['pedigree','structure','narrative','momentum'].map(k =>
`<div class="hoc-pillar"><div class="hoc-pillar-fill" style="width:${Math.max(0,Math.min(100,p[k]||0))}%;background:${PIL_COLOR[k]}"></div></div>`
).join('');
const sym = (it.symbol || '?').toUpperCase();
const name = it.name || it.mint.slice(0, 8);
const a = document.createElement('a');
a.className = 'hoc-item';
a.href = `/oracle/coin/${encodeURIComponent(it.mint)}`;
a.setAttribute('aria-label', `$${sym} — ${score} conviction, ${tier} tier`);
a.innerHTML = `
<div class="hoc-score ${tc(tier)}">${score}</div>
<div class="hoc-info">
<div class="hoc-sym">$${esc(sym)}</div>
<div class="hoc-name">${esc(name)}</div>
<div class="hoc-pillars">${bars}</div>
</div>
<span class="hoc-tier ${tc(tier)}">${esc(TIER_LABEL[tier] || String(tier).toUpperCase())}</span>`;
return a;
}
try {
const r = await fetch('/api/oracle/feed?network=mainnet&limit=6&min_score=56');
if (!r.ok) throw new Error(r.status);
const data = await r.json();
const items = (data.items || []).sort((a, b) => b.score - a.score).slice(0, 3);
hocItems.className = '';
hocItems.innerHTML = '';
if (!items.length) {
hocItems.innerHTML = '<div style="padding:32px 16px;text-align:center;color:var(--text-3);font-size:13px">Oracle is warming up — scores arrive live as new coins surface.</div>';
return;
}
items.forEach(it => hocItems.appendChild(miniCard(it)));
} catch {
hocItems.className = '';
hocItems.innerHTML = '<div style="padding:28px 16px;text-align:center"><a class="btn btn--sm" href="/oracle">Open Oracle →</a></div>';
}
})();
</script>
<script type="module" src="/src/home-live-agents.js"></script>
<script type="module" src="/src/event-markets/mount-strip.js"></script>
<script type="module" src="/src/event-markets/ticker.js"></script>
<script type="module" src="/src/api-playground.js"></script>
<script type="module" src="/src/economy-ticker.js"></script>
<script type="module" src="/src/home-sniper.js"></script>
<script type="module">
// "Pose it here" pulls Three.js + OrbitControls + the full mannequin rig —
// load it only when the section approaches the viewport. The module
// self-boots on import (document is long past 'loading' by then), so the
// dynamic import alone wires the demo.
const poseRoot = document.getElementById('home-pose');
if (poseRoot) {
const io = new IntersectionObserver(entries => {
if (entries[0].isIntersecting) {
io.disconnect();
import('/src/home-pose.js');
}
}, { rootMargin: '200px' });
io.observe(poseRoot);
}
// Mini Forge — same deal: the module (and, once a job runs, model-viewer)
// stays off the critical path until the section approaches the viewport.
const forgeRoot = document.getElementById('home-forge');
if (forgeRoot) {
// A deep link (/?prompt=… — e.g. a shared remix link) drives the hero
// forge bar the instant the page opens, so its controller module must
// boot eagerly instead of waiting for the chamber to scroll into view.
// Normal loads keep the module off the critical path (lazy on approach).
if (/[?&](?:prompt|p)=/.test(location.search)) {
import('/src/home-forge.js');
} else {
const io = new IntersectionObserver(entries => {
if (entries[0].isIntersecting) {
io.disconnect();
import('/src/home-forge.js');
}
}, { rootMargin: '200px' });
io.observe(forgeRoot);
}
}
</script>
<!-- The dragon is a decorative canvas backdrop well below the fold, but its
one-time build (text layout, tunnel geometry, dragon rig, first static
frame) is ~1.8s of main-thread scripting. Loaded eagerly it landed
entirely inside the page-load window and was one of the largest single
contributors to Total Blocking Time. Deferred to the section's approach,
it costs nothing until the visitor has scrolled most of the page. -->
<script type="module">
const dragonRoot = document.getElementById('dragon-canvas-wrap');
if (dragonRoot) {
const io = new IntersectionObserver(entries => {
if (!entries[0].isIntersecting) return;
io.disconnect();
// public/ asset, not a bundled source module: inject the tag rather
// than import() so Vite resolves it as a static file, exactly as the
// model-viewer loader on this page does.
const s = document.createElement('script');
s.type = 'module';
s.src = '/dragon-section.js';
document.body.appendChild(s);
}, { rootMargin: '200px' });
io.observe(dragonRoot);
}
</script>
<script type="module" src="/src/home-bento.js"></script>
<!-- On-chain Identity: real Solana (Metaplex Core) deploy. Module scope so we
can dynamically import the deploy flow only when the user clicks Deploy,
keeping the rest of the homepage lean. -->
<script type="module">
(function () {
const btn = document.getElementById('mint-btn');
const card = document.getElementById('mint-card');
const progress = document.getElementById('mint-progress');
const label = document.getElementById('mint-label');
const nameInput = document.getElementById('mint-name');
const chainEl = document.getElementById('mint-chain');
const statusEl = document.getElementById('mint-status');
if (!btn || !card || !nameInput) return;
const NETWORK = 'mainnet';
const DEFAULT_CHAIN = 'Metaplex Core · mainnet';
let deploying = false;
const short = (a) => (a ? a.slice(0, 4) + '…' + a.slice(-4) : '');
function extLink(href, text) {
const a = document.createElement('a');
a.href = href;
a.textContent = text;
a.target = '_blank';
a.rel = 'noopener';
return a;
}
function navLink(href, text) {
const a = document.createElement('a');
a.href = href;
a.textContent = text;
return a;
}
function setStatus(parts, kind) {
if (!parts) {
statusEl.hidden = true;
statusEl.textContent = '';
statusEl.className = 'mint-status';
return;
}
statusEl.hidden = false;
statusEl.className = 'mint-status' + (kind ? ' ' + kind : '');
statusEl.textContent = '';
statusEl.append(...(Array.isArray(parts) ? parts : [parts]));
}
function resetRing() {
progress.classList.remove('active', 'done');
const c = progress.querySelector('circle');
if (c) {
c.style.strokeDashoffset = '';
void c.offsetWidth;
}
}
function showError(err) {
card.classList.add('error');
console.group('[three.ws] home deploy error');
console.error(err);
console.groupEnd();
const code = err && err.code;
const httpStatus = err && err.status;
const rawMsg = (err && err.message) || '';
if (code === 'NO_WALLET') {
setStatus([
'No Solana wallet connected. ',
extLink('https://phantom.app/', 'Get Phantom ↗'),
' — takes about a minute, then come back to deploy.',
], 'err');
return;
}
if (httpStatus === 401) {
setStatus(['Sign in first — ', navLink('/deploy', 'open the deploy console ↗')], 'err');
return;
}
if (code === 'forbidden' || httpStatus === 403) {
setStatus(["This wallet isn't linked to your account yet — ", navLink('/deploy', 'finish setup in the deploy console ↗')], 'err');
return;
}
if (/reject|denied|cancel|user.*declin/i.test(rawMsg)) {
setStatus("Transaction cancelled — try again whenever you're ready.", 'err');
return;
}
if (/insufficient|balance|funds/i.test(rawMsg)) {
setStatus(['Not enough funds in your wallet. ', navLink('/deploy', 'Add funds ↗'), ' and try again.'], 'err');
return;
}
if (/network|fetch|econnrefused/i.test(rawMsg)) {
setStatus('Connection problem — check your internet and try again.', 'err');
return;
}
setStatus('Deploy failed — try again. If this keeps happening, contact support.', 'err');
}
async function deploy() {
if (deploying) return;
const name = (nameInput.value || '').trim();
if (!name) {
nameInput.classList.remove('shake');
void nameInput.offsetWidth;
nameInput.classList.add('shake');
nameInput.focus();
setStatus('Name your agent first.', 'err');
card.classList.add('error');
return;
}
deploying = true;
card.classList.remove('error', 'minted');
label.textContent = 'ERC-8004 · Solana';
chainEl.textContent = DEFAULT_CHAIN;
nameInput.disabled = true;
btn.disabled = true;
btn.textContent = 'Deploying…';
resetRing();
progress.classList.add('active');
setStatus('Connecting your Solana wallet…');
try {
const { runSolanaDeploy, solanaTxExplorerUrl } = await import('/src/erc8004/solana-deploy.js');
setStatus('Approve the transaction in your wallet, then waiting for confirmation…');
const res = await runSolanaDeploy({ agent: { name }, network: NETWORK });
progress.classList.add('done');
card.classList.add('minted');
label.textContent = 'MINTED';
chainEl.textContent = 'Metaplex Core · ';
chainEl.append(extLink('https://solscan.io/token/' + res.assetPubkey, short(res.assetPubkey)));
setStatus(['Live on Solana ✓ ', extLink(solanaTxExplorerUrl(res.network, res.txSignature), 'view tx ↗')], 'ok');
btn.textContent = 'Deployed ✓';
setTimeout(() => {
btn.disabled = false;
btn.textContent = 'Deploy another';
nameInput.disabled = false;
deploying = false;
}, 1400);
} catch (err) {
resetRing();
showError(err);
nameInput.disabled = false;
btn.disabled = false;
btn.textContent = 'Deploy';
deploying = false;
}
}
btn.addEventListener('click', deploy);
nameInput.addEventListener('keydown', (e) => {
if (e.key === 'Enter') {
e.preventDefault();
deploy();
}
});
nameInput.addEventListener('input', () => {
if (card.classList.contains('error')) {
card.classList.remove('error');
setStatus(null);
}
});
})();
</script>
<script src="/brand.js" defer></script>
<script src="/getting-started.js" defer></script>
<script>
(function () {
var btn = document.getElementById('foot-ca-btn');
var addr = document.getElementById('foot-ca-addr');
if (!btn || !addr) return;
var CA = 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump';
btn.addEventListener('click', function () {
var orig = addr.textContent;
var flash = function (label) {
addr.textContent = label;
setTimeout(function () { addr.textContent = orig; }, 1500);
};
navigator.clipboard.writeText(CA).then(
function () { flash('Copied!'); },
function () { flash('Copy failed, select it instead'); }
);
});
})();
</script>
<script>
// Hero "Take the tour" launches the guided 3D tour directly from the
// homepage — the engine boots on the first stop's page via ?tour=start
// (nav.js injects /feature-tour.js when it sees the param). The anchor's
// href="/tour" is the no-JS fallback to the track picker.
(function () {
var btn = document.getElementById('hero-tour-start');
if (!btn) return;
btn.addEventListener('click', function (e) {
e.preventDefault();
fetch('/tour/curriculum.json', { cache: 'force-cache' })
.then(function (r) { return r.json(); })
.then(function (c) {
var first = (c.stops && c.stops[0] && c.stops[0].path) || '/';
location.href = first + '?tour=start';
})
.catch(function () { location.href = '/?tour=start'; });
});
})();
</script>
<script type="module">
import { initAcquisitionAnalytics } from '/src/acquisition-analytics.js';
initAcquisitionAnalytics();
</script>
<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
<script type="module" src="/i18n.js"></script>
<!-- Classic view -> desktop. The choice is remembered (tws:view) and honoured by the "/" route. -->
<a id="to-desktop" href="/?view=desktop" aria-label="Switch to the three.ws desktop">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="12" rx="2"/><path d="M8 20h8M12 16v4"/></svg>
Try the desktop
</a>
<style>
#to-desktop{position:fixed;left:16px;bottom:16px;z-index:60;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 16px;border-radius:19px;font:500 13px/1 Inter,system-ui,sans-serif;color:#fff;text-decoration:none;background:linear-gradient(90deg,#ad6eca,#3b91d8);box-shadow:0 6px 24px rgba(0,0,0,.35);transition:transform var(--duration-fast),filter var(--duration-fast)}
#to-desktop:hover{filter:brightness(1.1);transform:translateY(-1px)}
#to-desktop:active{transform:scale(.97)}
#to-desktop:focus-visible{outline:2px solid #fff;outline-offset:3px}
</style>
</body>
</html>