Skip to content

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.

29.8 KB
Raw Blame
<!doctype html>
<html lang="en">
	<head>
		<script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<title data-i18n="app.meta_title">three.ws — AI-Powered 3D Model Viewer</title>
		<meta
			name="viewport"
			content="width=device-width, initial-scale=1, viewport-fit=cover"
		/>
		<meta name="author" content="nirholas" />
		<meta
			name="description"
			content="The first embodied 3D AI agent. Not a chatbot. A presence — with a body, a place, an identity, and memory."
		 data-i18n-attr="content:app.meta_description"/>
		<meta
			name="keywords"
			content="three.ws, AI agent, embodied AI, glTF viewer, GLB viewer, 3D model viewer, WebGL, three.js, ERC-8004, agent identity"
		/>
		<meta name="theme-color" content="#000000" />

		<!-- Open Graph -->
		<meta property="og:type" content="website" />
		<meta property="og:title" content="three.ws — The First Embodied AI Agent"  data-i18n-attr="content:app.meta_og_title"/>
		<meta
			property="og:description"
			content="Agents have always been imagined as present. We made that real."
		 data-i18n-attr="content:app.meta_og_description"/>
		<meta property="og:url" content="https://three.ws/" />
		<meta property="og:site_name" content="three.ws" />
		<meta property="og:image" content="https://three.ws/api/page-og?s=main&amp;t=Showcase&amp;d=Browse+every+ERC-8004+agent+that+carries+a+3D+glTF+body%2C+indexed+from+canonical+registries+across+22+chains%2C+and+open+any+of+them+in+the+live+viewer.&amp;p=%2Fshowcase">
		<meta property="og:image:width" content="1200">
		<meta property="og:image:height" content="630">

		<!-- Twitter / X -->
		<meta name="twitter:card" content="summary_large_image" />
		<meta name="twitter:title" content="three.ws — Embodied AI"  data-i18n-attr="content:app.meta_twitter_title"/>
		<meta
			name="twitter:description"
			content="The first three.ws with a body, a place, an identity, and memory."
		 data-i18n-attr="content:app.meta_twitter_description"/>
		<meta name="twitter:site" content="@trythreews" />
		<meta name="twitter:creator" content="@trythreews" />
		<meta name="twitter:image" content="https://three.ws/api/page-og?s=main&amp;t=Showcase&amp;d=Browse+every+ERC-8004+agent+that+carries+a+3D+glTF+body%2C+indexed+from+canonical+registries+across+22+chains%2C+and+open+any+of+them+in+the+live+viewer.&amp;p=%2Fshowcase">

		<link rel="canonical" href="https://three.ws/app" />
		<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="stylesheet" href="/style.css" />
		<link rel="stylesheet" href="/fonts/fonts.css" />
		<link rel="stylesheet" href="/footer.css" />
		<script defer type="module" src="/src/app.js"></script>
			<link rel="stylesheet" href="/nav.css" />
			<link rel="stylesheet" href="/mobile.css" />
		<style>
			/* ── Accessibility: skip-link, focus rings, reduced motion ──
			   Scoped to the agent-home surface (app.html). Uses the global
			   focus-ring tokens from tokens.css with literal fallbacks so the
			   ring is visible even before tokens resolve. */
			.skip-link {
				position: absolute;
				top: -48px;
				left: 8px;
				z-index: 10000;
				padding: 0.55rem 0.95rem;
				background: #fff;
				color: #000;
				font-size: 14px;
				font-weight: 600;
				text-decoration: none;
				border-radius: 6px;
				transition: top var(--duration-fast) var(--ease-standard);
			}
			.skip-link:focus,
			.skip-link:focus-visible {
				top: 8px;
				outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, #6c8cff);
				outline-offset: var(--focus-ring-offset, 2px);
			}
			/* Visible focus indicator for every interactive element on this
			   surface. :focus-visible keeps the ring off mouse clicks. */
			main.wrap a:focus-visible,
			main.wrap button:focus-visible,
			main.wrap input:focus-visible,
			main.wrap [tabindex]:focus-visible,
			main.wrap [contenteditable]:focus-visible,
			main.wrap summary:focus-visible,
			.agent-home-panel a:focus-visible,
			.agent-home-panel button:focus-visible,
			.agent-home-panel input:focus-visible,
			.agent-home-panel [contenteditable]:focus-visible,
			.agent-home-panel summary:focus-visible,
			.agent-home-show-pill:focus-visible {
				outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, #6c8cff);
				outline-offset: var(--focus-ring-offset, 2px);
				border-radius: 6px;
			}
			@media (prefers-reduced-motion: reduce) {
				.skip-link {
					transition: none;
				}
				/* Disable non-essential animation/transition on this surface so
				   motion-sensitive users aren't subjected to the timeline slide,
				   wallet-nudge slide, poster crossfade, or emotion-label fades. */
				main.wrap *,
				main.wrap *::before,
				main.wrap *::after,
				.agent-home-panel *,
				.agent-home-show-pill,
				.agent-wallet-nudge {
					animation-duration: 0.001ms !important;
					animation-iteration-count: 1 !important;
					transition-duration: var(--duration-instant) !important;
					scroll-behavior: auto !important;
				}
			}
		</style>
	
	<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
	<meta property="og:locale" content="en_US">
	<meta property="og:image:alt" content="Showcase — three.ws">
	<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Showcase","description":"Browse every ERC-8004 agent that carries a 3D glTF body, indexed from canonical registries across 22 chains, and open any of them in the live viewer.","url":"https://three.ws/showcase","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=main&t=Showcase&d=Browse+every+ERC-8004+agent+that+carries+a+3D+glTF+body%2C+indexed+from+canonical+registries+across+22+chains%2C+and+open+any+of+them+in+the+live+viewer.&p=%2Fshowcase"}]}</script>
</head>
	<body>
		<a class="skip-link" href="#main-content" data-i18n="app.skip_to_content">Skip to content</a>
		<header>
			<h1 data-i18n-html="app.three_ws">
				<a href="/" aria-label="three.ws home"
					><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a
				>
			</h1>
			<nav class="features-nav" aria-label="Primary">
				<a href="/app" id="nav-viewer-link" data-i18n="app.viewer">Viewer</a>
				<a href="/create" data-i18n="app.create">Create</a>
				<a href="/features" data-i18n="app.features">Features</a>
				<a href="/discover" data-i18n="app.discover">Discover</a>
				<a href="/widgets" data-i18n="app.widgets">Widgets</a>
				<a href="/studio" data-i18n="app.studio">Studio</a>
				<a href="/chat" data-i18n="app.chat">Chat</a>
				<a href="/docs" data-i18n="app.docs">Docs</a>
				<a href="/dashboard" data-i18n="app.dashboard">Dashboard</a>
				<button
					type="button"
					class="save-to-account-btn"
					id="save-to-account-btn"
					hidden
					title="Save this model to your account"
					aria-label="Save this model to your account"
				 data-i18n-attr="aria-label:app.save_this_model_to_your_acco_arialabel;title:app.save_this_model_to_your_acco_title">
					<svg
						xmlns="http://www.w3.org/2000/svg"
						width="14"
						height="14"
						viewBox="0 0 24 24"
						fill="none"
						stroke="currentColor"
						stroke-width="2"
						stroke-linecap="round"
						stroke-linejoin="round"
						aria-hidden="true"
					>
						<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" />
						<polyline points="17 21 17 13 7 13 7 21" />
						<polyline points="7 3 7 8 15 8" />
					</svg>
					<span>Save to account</span>
				</button>
				<a
					class="make-widget-btn"
					id="make-widget-btn"
					href="/studio"
					hidden
					title="Save the current model as an embeddable widget"
				 data-i18n-attr="title:app.save_the_current_model_as_an_title">
					<svg
						xmlns="http://www.w3.org/2000/svg"
						width="14"
						height="14"
						viewBox="0 0 24 24"
						fill="none"
						stroke="currentColor"
						stroke-width="2"
						stroke-linecap="round"
						stroke-linejoin="round"
						aria-hidden="true"
					>
						<rect x="3" y="3" width="7" height="7" rx="1" />
						<rect x="14" y="3" width="7" height="7" rx="1" />
						<rect x="3" y="14" width="7" height="7" rx="1" />
						<rect x="14" y="14" width="7" height="7" rx="1" />
					</svg>
					<span>Make this a widget</span>
				</a>
				<a
					class="deploy-onchain-btn"
					id="deploy-onchain-btn"
					hidden
					aria-label="Deploy this 3D asset on Solana"
					title="Deploy on Solana — guided on-chain deployment for 3D assets"
				 data-i18n-attr="aria-label:app.deploy_this_3d_asset_on_sola_arialabel;title:app.deploy_on_solana_guided_on_c_title">
					<svg
						xmlns="http://www.w3.org/2000/svg"
						width="14"
						height="14"
						viewBox="0 0 24 24"
						fill="none"
						stroke="currentColor"
						stroke-width="2"
						stroke-linecap="round"
						stroke-linejoin="round"
						aria-hidden="true"
						focusable="false"
					>
						<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2" />
						<line x1="12" y1="2" x2="12" y2="22" />
						<polyline points="22 8.5 12 15.5 2 8.5" />
					</svg>
					<span data-state-label>Deploy on Solana</span>
				</a>
				<a
					class="open-in-composer-btn"
					id="open-in-composer-btn"
					hidden
					title="Open this model in the Scene Composer to attach accessories or build a scene"
				 data-i18n="app.open_in_composer" data-i18n-attr="title:app.open_this_model_in_the_scene_title">
					Open in Composer
				</a>
				<a
					class="view-public-profile-btn"
					id="view-public-profile-btn"
					hidden
					target="_blank"
					rel="noopener noreferrer"
					aria-label="Open this agent's public profile in a new tab"
					title="Open this agent's public profile in a new tab"
				 data-i18n-attr="aria-label:app.open_this_agent_s_public_pro_arialabel;title:app.open_this_agent_s_public_pro_title">
					<svg
						xmlns="http://www.w3.org/2000/svg"
						width="14"
						height="14"
						viewBox="0 0 24 24"
						fill="none"
						stroke="currentColor"
						stroke-width="2"
						stroke-linecap="round"
						stroke-linejoin="round"
						aria-hidden="true"
						focusable="false"
					>
						<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />
						<polyline points="15 3 21 3 21 9" />
						<line x1="10" y1="14" x2="21" y2="3" />
					</svg>
					<span>Public profile</span>
				</a>
				<div
					class="layout-switch"
					id="layout-switch"
					role="group"
					aria-label="Viewer layout"
					hidden
				>
					<button
						type="button"
						class="layout-switch__btn"
						data-layout-value="classic"
						aria-pressed="true"
					 data-i18n="app.classic">
						Classic
					</button>
					<button
						type="button"
						class="layout-switch__btn"
						data-layout-value="next"
						aria-pressed="false"
					 data-i18n="app.next">
						Next
					</button>
				</div>
				<a href="/dashboard" class="nav-dashboard" data-i18n="app.dashboard_2">Dashboard</a>
				<button
					type="button"
					class="nav-connect-wallet"
					id="connect-wallet-btn"
					title="Connect your Solana wallet"
					aria-label="Connect your Solana wallet"
				 data-i18n-attr="aria-label:app.connect_your_solana_wallet_arialabel;title:app.connect_your_solana_wallet_title">
					<svg
						xmlns="http://www.w3.org/2000/svg"
						width="14"
						height="14"
						viewBox="0 0 24 24"
						fill="none"
						stroke="currentColor"
						stroke-width="2"
						stroke-linecap="round"
						stroke-linejoin="round"
						aria-hidden="true"
						focusable="false"
					>
						<path d="M21 12V7H5a2 2 0 0 1 0-4h14v4" />
						<path d="M3 5v14a2 2 0 0 0 2 2h16v-5" />
						<path d="M18 12a2 2 0 0 0 0 4h4v-4z" />
					</svg>
					<span data-wallet-label>Connect Wallet</span>
				</button>
				<div class="nav-user-wrap" id="nav-user-wrap" hidden>
					<button class="nav-user" id="nav-user-btn" aria-haspopup="true" aria-expanded="false" type="button" data-i18n-html="app.account">
						<span id="nav-user-label">Account</span>
					</button>
					<div class="nav-user-menu" id="nav-user-menu" role="menu" hidden>
						<a href="/profile" id="nav-my-profile-link" class="nav-user-menu-item" data-i18n="app.my_profile">My Profile</a>
						<a href="/settings" class="nav-user-menu-item" data-i18n="app.settings">Settings</a>
						<a href="/dashboard" class="nav-user-menu-item" data-i18n="app.dashboard_3">Dashboard</a>
						<div class="nav-user-menu-sep" role="separator"></div>
						<button class="nav-user-menu-item nav-user-menu-signout" id="nav-sign-out-btn" type="button" data-i18n="app.sign_out">Sign out</button>
					</div>
				</div>
				<a href="/login" class="nav-sign-in" id="nav-sign-in" data-i18n="app.sign_in">Sign in</a>
			</nav>
		</header>

		<main class="wrap" id="main-content">
			<!-- Agent presence panel — rendered by AgentHome -->
			<div class="agent-presence-sidebar" id="agent-presence-sidebar">
				<div id="agent-home-container"></div>
			</div>

			<!-- Auth gate — shown only to anonymous visitors on the main viewer -->
			<aside class="auth-gate" id="auth-gate">
				<div class="auth-gate__inner">
					<div class="auth-gate__eyebrow">
						<svg class="auth-gate__lock" aria-hidden="true" viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
							<rect x="3" y="11" width="18" height="11" rx="2" />
							<path d="M7 11V7a5 5 0 0 1 10 0v4" />
						</svg>
						<span data-i18n="app.unlock_the_agent">Unlock the agent</span>
					</div>
					<h2 class="auth-gate__title" data-i18n="app.your_agent_lives_here">Your agent lives here</h2>
					<p class="auth-gate__desc" data-i18n="app.sign_in_to_access_animations_scene_controls">
						Sign in to access animations, scene controls, and your agent's on-chain
						identity, memory, and skills.
					</p>
					<div class="auth-gate__actions">
						<a class="auth-gate__btn auth-gate__btn--primary" href="/login" data-i18n="app.sign_in_2">Sign in</a>
						<a class="auth-gate__btn" href="/register" data-i18n="app.create_account">Create account</a>
					</div>
					<ul class="auth-gate__perks">
						<li data-i18n="app.animations_presence_controls">Animations &amp; presence controls</li>
						<li data-i18n="app.save_avatars_to_your_account">Save avatars to your account</li>
						<li data-i18n="app.register_on_chain_agent_identity">Register on-chain agent identity</li>
						<li data-i18n="app.scene_lighting_material_editor">Scene, lighting &amp; material editor</li>
					</ul>
				</div>
			</aside>

			<!-- First-time onboarding banner — shown once per agent after creation -->
			<aside
				class="agent-onboarding"
				id="agent-onboarding"
				role="dialog"
				aria-labelledby="agent-onboarding-title"
				hidden
			>
				<div class="agent-onboarding__inner">
					<button
						class="agent-onboarding__close"
						id="agent-onboarding-close"
						type="button"
						aria-label="Dismiss welcome message"
					 data-i18n-attr="aria-label:app.dismiss_welcome_message_arialabel">
						×
					</button>
					<h2 class="agent-onboarding__title" id="agent-onboarding-title" data-i18n="app.your_agent_is_ready">
						Your agent is ready 🎉
					</h2>
					<p class="agent-onboarding__desc" data-i18n="app.this_is_your_agent_s_studio_try">
						This is your agent's studio. Try an animation from the strip below, drop a
						new GLB to swap its body, or publish it on-chain so anyone can find and
						embed it.
					</p>
					<div class="agent-onboarding__actions">
						<a
							class="agent-onboarding__btn agent-onboarding__btn--primary"
							href="/deploy"
							id="agent-onboarding-deploy"
							 data-i18n="app.deploy_on_chain">Deploy on-chain →</a
						>
						<a
							class="agent-onboarding__btn"
							id="agent-onboarding-share"
							target="_blank"
							rel="noopener noreferrer"
							 data-i18n="app.view_public_profile">View public profile</a
						>
					</div>
				</div>
			</aside>

			<!-- 3D Viewer -->
			<div class="viewer-container" id="viewer-container"></div>

			<!-- Bottom bar -->
			<div class="dropzone">
				<div class="upload-btn">
					<input type="file" name="file-input[]" id="file-input" multiple="" />
					<label for="file-input">
						<svg
							xmlns="http://www.w3.org/2000/svg"
							width="20"
							height="17"
							viewBox="0 0 20 17"
							aria-hidden="true"
							focusable="false"
						>
							<path
								d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"
							></path>
						</svg>
						<span data-i18n="app.upload_your_own_model">Upload your own model</span>
					</label>
				</div>
				<span class="drop-hint" data-i18n="app.or_drag_drop_gltf_glb_anywhere">or drag &amp; drop glTF / GLB anywhere</span>
				<a
					class="create-avatar-btn create-avatar-btn--forge"
					id="forge-from-text-btn"
					href="/forge"
					title="Describe an object and Forge generates a 3D model"
				 data-i18n-attr="title:app.describe_an_object_and_forge_title">
					<svg
						xmlns="http://www.w3.org/2000/svg"
						width="16"
						height="16"
						viewBox="0 0 24 24"
						fill="currentColor"
						aria-hidden="true"
						focusable="false"
					>
						<path
							d="M9 3l1.6 4.6 4.6 1.6-4.6 1.6L9 15.4 7.4 10.8 2.8 9.2l4.6-1.6L9 3zm9 7l1.1 3.1 3.1 1.1-3.1 1.1L18 18.4l-1.1-3.1-3.1-1.1 3.1-1.1L18 10zM16.5 2.5l.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8.8-2.2z"
						/>
					</svg>
					<span>Generate from text</span>
				</a>
				<a
					class="create-avatar-btn"
					id="create-avatar-btn"
					href="/create"
					title="Create a custom 3D avatar from a selfie"
				 data-i18n-attr="title:app.create_a_custom_3d_avatar_fr_title">
					<svg
						xmlns="http://www.w3.org/2000/svg"
						width="16"
						height="16"
						viewBox="0 0 24 24"
						fill="currentColor"
						aria-hidden="true"
						focusable="false"
					>
						<path
							d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
						/>
					</svg>
					<span>Create Avatar</span>
				</a>
			</div>
			<div class="spinner"></div>

			<!-- ─────────────────────────────────────────────────────────────────
				 Next layout chrome — visible only when body[data-layout="next"].
				 Built once on page load; hidden via CSS when the user is on
				 the Classic layout so toggling is a single attribute flip.
				 ──────────────────────────────────────────────────────────── -->
			<div class="next-chrome" id="next-chrome" aria-hidden="true">
				<!-- First-interaction swipe affordance, copied from model-viewer.
					 Hides itself after any pointer/wheel/key event on the stage. -->
				<div class="next-prompt" id="next-prompt" aria-hidden="true">
					<svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">
						<path d="M9 11V6a2 2 0 1 1 4 0v4" />
						<path d="M13 8a2 2 0 1 1 4 0v6" />
						<path d="M17 10a2 2 0 1 1 4 0v6a6 6 0 0 1-6 6h-2a6 6 0 0 1-6-6v-1l-2-3 1-2 3 1V8a2 2 0 1 1 4 0v3" />
					</svg>
					<span data-i18n="app.drag_to_orbit">drag to orbit</span>
				</div>

				<!-- Top-right floating cluster: Controls gear + Share + AR -->
				<div class="next-corner" id="next-corner">
					<button
						class="next-icon-btn"
						id="next-share-btn"
						type="button"
						aria-haspopup="menu"
						aria-expanded="false"
						aria-controls="next-share-menu"
						title="Share, save, deploy"
					 data-i18n-attr="title:app.share_save_deploy_title">
						<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
							<circle cx="18" cy="5" r="3" />
							<circle cx="6" cy="12" r="3" />
							<circle cx="18" cy="19" r="3" />
							<line x1="8.6" y1="13.5" x2="15.4" y2="17.5" />
							<line x1="15.4" y1="6.5" x2="8.6" y2="10.5" />
						</svg>
					</button>

					<button
						class="next-icon-btn"
						id="next-controls-btn"
						type="button"
						aria-expanded="false"
						aria-controls="next-drawer"
						title="Controls"
					 data-i18n-attr="title:app.controls_title">
						<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
							<circle cx="12" cy="12" r="3" />
							<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" />
						</svg>
					</button>

					<button
						class="next-icon-btn"
						id="next-fullscreen-btn"
						type="button"
						title="Fullscreen"
					 data-i18n-attr="title:app.fullscreen_title">
						<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
							<path d="M3 9V3h6" />
							<path d="M21 9V3h-6" />
							<path d="M3 15v6h6" />
							<path d="M21 15v6h-6" />
						</svg>
					</button>
				</div>

				<!-- Share popover — host for Save/Widget/Deploy/Profile and presence -->
				<div
					class="next-share-menu"
					id="next-share-menu"
					role="menu"
					aria-labelledby="next-share-btn"
					hidden
				>
					<div class="next-share-menu__title">Share</div>
					<button class="next-share-menu__item" id="next-share-save" type="button" role="menuitem" hidden>
						<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" /><polyline points="17 21 17 13 7 13 7 21" /><polyline points="7 3 7 8 15 8" /></svg>
						<span data-i18n="app.save_to_account">Save to account</span>
					</button>
					<a class="next-share-menu__item" id="next-share-widget" role="menuitem" hidden>
						<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7" rx="1" /><rect x="14" y="3" width="7" height="7" rx="1" /><rect x="3" y="14" width="7" height="7" rx="1" /><rect x="14" y="14" width="7" height="7" rx="1" /></svg>
						<span data-i18n="app.make_this_a_widget">Make this a widget</span>
					</a>
					<a class="next-share-menu__item" id="next-share-deploy" role="menuitem" hidden>
						<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2" /><line x1="12" y1="2" x2="12" y2="22" /><polyline points="22 8.5 12 15.5 2 8.5" /></svg>
						<span data-i18n="app.deploy_on_chain_2">Deploy on-chain</span>
					</a>
					<a class="next-share-menu__item" id="next-share-profile" role="menuitem" target="_blank" rel="noopener noreferrer" hidden>
						<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" /><polyline points="15 3 21 3 21 9" /><line x1="10" y1="14" x2="21" y2="3" /></svg>
						<span data-i18n="app.public_profile">Public profile</span>
					</a>
					<div class="next-share-menu__sep" role="separator"></div>
					<button class="next-share-menu__item" id="next-share-upload" type="button" role="menuitem">
						<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /><polyline points="17 8 12 3 7 8" /><line x1="12" y1="3" x2="12" y2="15" /></svg>
						<span data-i18n="app.upload_model_glb_gltf">Upload model (.glb / .gltf)</span>
					</button>
					<a class="next-share-menu__item" href="/forge" role="menuitem">
						<svg viewBox="0 0 24 24" width="14" height="14" fill="currentColor"><path d="M9 3l1.6 4.6 4.6 1.6-4.6 1.6L9 15.4 7.4 10.8 2.8 9.2l4.6-1.6L9 3zm9 7l1.1 3.1 3.1 1.1-3.1 1.1L18 18.4l-1.1-3.1-3.1-1.1 3.1-1.1L18 10zM16.5 2.5l.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8.8-2.2z" /></svg>
						<span data-i18n="app.generate_a_model_from_text">Generate a model from text</span>
					</a>
					<a class="next-share-menu__item" href="/create" role="menuitem">
						<svg viewBox="0 0 24 24" width="14" height="14" fill="currentColor"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" /></svg>
						<span data-i18n="app.create_avatar_from_selfie">Create avatar from selfie</span>
					</a>
				</div>

				<!-- Right-side Controls drawer — hosts the dat.GUI panel -->
				<aside
					class="next-drawer"
					id="next-drawer"
					role="dialog"
					aria-modal="true"
					aria-label="Viewer controls"
					aria-hidden="true"
				>
					<header class="next-drawer__head">
						<h2 class="next-drawer__title" data-i18n="app.controls">Controls</h2>
						<button
							class="next-drawer__close"
							id="next-drawer-close"
							type="button"
							aria-label="Close controls"
						 data-i18n-attr="aria-label:app.close_controls_arialabel">×</button>
					</header>
					<div class="next-drawer__body" id="next-drawer-body">
						<!-- dat.GUI panel is moved here at runtime -->
					</div>
				</aside>

				<!-- Bottom command dock: clip name + play/pause + scrubber + clip count -->
				<section class="next-dock" id="next-dock" aria-label="Playback">
					<button
						class="next-dock__clip"
						id="next-dock-clip"
						type="button"
						aria-haspopup="listbox"
						aria-expanded="false"
						aria-controls="next-grid"
						title="Choose animation"
					 data-i18n-attr="title:app.choose_animation_title">
						<span class="next-dock__clip-name" id="next-dock-clip-name">—</span>
						<svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="next-dock__caret">
							<polyline points="6 9 12 15 18 9" />
						</svg>
					</button>

					<button
						class="next-dock__play"
						id="next-dock-play"
						type="button"
						aria-label="Play"
						aria-pressed="false"
					 data-i18n-attr="aria-label:app.play_arialabel">
						<svg class="next-dock__icon next-dock__icon--play" viewBox="0 0 24 24" width="18" height="18" fill="currentColor"><path d="M8 5v14l11-7z" /></svg>
						<svg class="next-dock__icon next-dock__icon--pause" viewBox="0 0 24 24" width="18" height="18" fill="currentColor"><path d="M6 5h4v14H6zM14 5h4v14h-4z" /></svg>
					</button>

					<div class="next-dock__scrub" id="next-dock-scrub">
						<input
							class="next-dock__scrub-input"
							id="next-dock-scrub-input"
							type="range"
							min="0"
							max="1000"
							step="1"
							value="0"
							aria-label="Animation timeline"
						/>
						<div class="next-dock__scrub-fill" id="next-dock-scrub-fill"></div>
					</div>

					<span class="next-dock__time" id="next-dock-time">0:00 / 0:00</span>

					<button
						class="next-dock__loop"
						id="next-dock-loop"
						type="button"
						aria-pressed="true"
						title="Loop"
					 data-i18n-attr="title:app.loop_title">
						<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
							<polyline points="17 1 21 5 17 9" />
							<path d="M3 11V9a4 4 0 0 1 4-4h14" />
							<polyline points="7 23 3 19 7 15" />
							<path d="M21 13v2a4 4 0 0 1-4 4H3" />
						</svg>
					</button>
				</section>

				<!-- Animation grid that expands upward from the dock -->
				<div class="next-grid" id="next-grid" role="listbox" aria-label="Animation clips" hidden></div>
			</div>
		</main>

		<!-- Golden Ratio dev grid — toggle with Alt+G -->
		<div class="phi-grid" id="phi-grid">
			<div class="phi-grid-h"></div>
			<div class="phi-grid-thirds"></div>
			<div class="phi-grid-thirds-h"></div>
		</div>
		<div class="phi-grid-label" id="phi-grid-label">φ Grid — Alt+G to toggle</div>
		<script>
			document.addEventListener('keydown', function (e) {
				if (e.altKey && e.key.toLowerCase() === 'g') {
					document.getElementById('phi-grid').classList.toggle('visible');
				}
			});
		</script>
	
	<script src="/brand.js" defer></script>
	<script src="/getting-started.js" defer></script>
	<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
	<script type="module" src="/i18n.js"></script>
</body>
</html>