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
feat: add shared footer component across multiple pages and improve styling - Introduced a new footer component with branding, links, and avatar display. - Updated styles for the footer to enhance visual appeal and responsiveness. - Integrated footer into home, create, profile, agent-home, and index pages. - Removed unused chain ribbon feature from the features page. - Added tooltips for better user guidance in the studio.
nirholas5fcb19b57fd0
diff --git a/agent-home.html b/agent-home.htmlindex 3b3f69430..22911982e 100644--- a/agent-home.html+++ b/agent-home.html@@ -14,6 +14,7 @@<link rel="preconnect" href="https://fonts.googleapis.com" /><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="stylesheet" href="/style.css" />+ <link rel="stylesheet" href="/footer.css" /><linkhref="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap"rel="stylesheet"@@ -561,6 +562,66 @@</section></main>+ <footer class="h-footer-horizon">+ <div class="h-footer-glow-line" aria-hidden="true"></div>+ <div class="h-footer-floor" aria-hidden="true"></div>+ <div class="h-footer-haze" aria-hidden="true"></div>+ <div class="h-footer-watermark" aria-hidden="true">three.ws</div>+ <div class="h-footer-avatar" aria-hidden="true">+ <model-viewer+ src="/animations/robotexpressive.glb"+ auto-rotate+ auto-rotate-delay="0"+ rotation-per-second="20deg"+ interaction-prompt="none"+ camera-controls="false"+ disable-zoom+ shadow-intensity="0"+ exposure="0.7"+ environment-image="neutral"+ camera-orbit="0deg 80deg 4m"+ field-of-view="35deg"+ loading="lazy"+ ></model-viewer>+ </div>+ <div class="h-footer-inner">+ <div class="h-footer-brand-col">+ <div class="h-footer-brand">+ <span class="wordmark-dot" aria-hidden="true"></span>+ <span>three.ws</span>+ </div>+ <p class="h-footer-tagline">Give your AI a body.</p>+ </div>+ <nav class="h-footer-links" aria-label="Footer">+ <a href="https://github.com/nirholas/3D" target="_blank" rel="noopener">GitHub</a>+ <a href="/create">Create</a>+ <a href="/studio">Studio</a>+ <a href="/widgets">Widgets</a>+ <a href="/features">Features</a>+ <a href="/discover">Discover</a>+ <a href="/docs/widgets">Docs</a>+ <a href="https://eips.ethereum.org/EIPS/eip-8004" target="_blank" rel="noopener">ERC-8004</a>+ </nav>+ </div>+ <div class="h-footer-bottom">+ <p class="h-footer-legal">© 2026 three.ws — All rights reserved.</p>+ <div class="h-footer-badges">+ <span class="h-footer-badge" aria-label="System status">+ <span class="h-footer-status-dot" aria-hidden="true"></span>+ <span>All systems normal</span>+ </span>+ <a class="h-footer-badge" href="https://github.com/nirholas/3D/blob/main/LICENSE" target="_blank" rel="noopener" aria-label="MIT license">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14.5A6.5 6.5 0 1 1 8 1.5a6.5 6.5 0 0 1 0 13zm-1-9.25a1 1 0 1 1 2 0v3.5a1 1 0 1 1-2 0v-3.5zm1 6.5a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2z"/></svg>+ <span>MIT Licensed</span>+ </a>+ <a class="h-footer-badge" href="https://github.com/nirholas/3D" target="_blank" rel="noopener" aria-label="View source on GitHub">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>+ <span>Open source</span>+ </a>+ </div>+ </div>+ </footer>+<script type="module">import { AgentIdentity } from './src/agent-identity.js';import { AgentMemory } from './src/agent-memory.js';diff --git a/create.html b/create.htmlindex bf6e2fe9c..fd9cd628b 100644--- a/create.html+++ b/create.html@@ -424,6 +424,11 @@}}</style>+ <link rel="stylesheet" href="/footer.css" />+ <script+ type="module"+ src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"+ ></script><script>fetch('/api/auth/me', { credentials: 'include' }).then(function (r) {if (!r.ok) {@@ -612,6 +617,66 @@</div></main>+ <footer class="h-footer-horizon">+ <div class="h-footer-glow-line" aria-hidden="true"></div>+ <div class="h-footer-floor" aria-hidden="true"></div>+ <div class="h-footer-haze" aria-hidden="true"></div>+ <div class="h-footer-watermark" aria-hidden="true">three.ws</div>+ <div class="h-footer-avatar" aria-hidden="true">+ <model-viewer+ src="/animations/robotexpressive.glb"+ auto-rotate+ auto-rotate-delay="0"+ rotation-per-second="20deg"+ interaction-prompt="none"+ camera-controls="false"+ disable-zoom+ shadow-intensity="0"+ exposure="0.7"+ environment-image="neutral"+ camera-orbit="0deg 80deg 4m"+ field-of-view="35deg"+ loading="lazy"+ ></model-viewer>+ </div>+ <div class="h-footer-inner">+ <div class="h-footer-brand-col">+ <div class="h-footer-brand">+ <span class="wordmark-dot" aria-hidden="true"></span>+ <span>three.ws</span>+ </div>+ <p class="h-footer-tagline">Give your AI a body.</p>+ </div>+ <nav class="h-footer-links" aria-label="Footer">+ <a href="https://github.com/nirholas/3D" target="_blank" rel="noopener">GitHub</a>+ <a href="/create">Create</a>+ <a href="/studio">Studio</a>+ <a href="/widgets">Widgets</a>+ <a href="/features">Features</a>+ <a href="/discover">Discover</a>+ <a href="/docs/widgets">Docs</a>+ <a href="https://eips.ethereum.org/EIPS/eip-8004" target="_blank" rel="noopener">ERC-8004</a>+ </nav>+ </div>+ <div class="h-footer-bottom">+ <p class="h-footer-legal">© 2026 three.ws — All rights reserved.</p>+ <div class="h-footer-badges">+ <span class="h-footer-badge" aria-label="System status">+ <span class="h-footer-status-dot" aria-hidden="true"></span>+ <span>All systems normal</span>+ </span>+ <a class="h-footer-badge" href="https://github.com/nirholas/3D/blob/main/LICENSE" target="_blank" rel="noopener" aria-label="MIT license">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14.5A6.5 6.5 0 1 1 8 1.5a6.5 6.5 0 0 1 0 13zm-1-9.25a1 1 0 1 1 2 0v3.5a1 1 0 1 1-2 0v-3.5zm1 6.5a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2z"/></svg>+ <span>MIT Licensed</span>+ </a>+ <a class="h-footer-badge" href="https://github.com/nirholas/3D" target="_blank" rel="noopener" aria-label="View source on GitHub">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>+ <span>Open source</span>+ </a>+ </div>+ </div>+ </footer>+<labelfor="glb-input"class="visually-hidden"diff --git a/footer.css b/footer.cssnew file mode 100644index 000000000..2478d9d1f--- /dev/null+++ b/footer.css@@ -0,0 +1,282 @@+/* ── Shared site footer: "The Horizon" ──────────────────────────────────── */+/* Used on home, index/features, create, profile, agent-home. */++.h-footer-horizon {+ position: relative;+ overflow: hidden;+ min-height: 360px;+ padding: 4rem 2rem 2rem;+ border-top: none;+ background: linear-gradient(180deg, #0a0a0a 0%, #050505 60%, #000 100%);+ isolation: isolate;+ color: #fff;+}++.h-footer-glow-line {+ position: absolute;+ top: 0;+ left: 0;+ right: 0;+ height: 1px;+ background: linear-gradient(+ 90deg,+ transparent 0%,+ rgba(255, 255, 255, 0.0) 10%,+ rgba(255, 255, 255, 0.75) 50%,+ rgba(255, 255, 255, 0.0) 90%,+ transparent 100%+ );+ box-shadow:+ 0 0 10px rgba(255, 255, 255, 0.35),+ 0 0 24px rgba(255, 255, 255, 0.18);+ z-index: 2;+}++.h-footer-floor {+ position: absolute;+ left: -10%;+ right: -10%;+ bottom: -40%;+ height: 90%;+ background-image:+ linear-gradient(to right, rgba(255, 255, 255, 0.09) 1px, transparent 1px),+ linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 1px, transparent 1px);+ background-size: 64px 64px;+ transform: perspective(600px) rotateX(62deg);+ transform-origin: 50% 0%;+ mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 95%);+ -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 95%);+ z-index: 1;+ animation: hFloorScroll 12s linear infinite;+}++@keyframes hFloorScroll {+ 0% { background-position: 0 0; }+ 100% { background-position: 0 64px; }+}++.h-footer-haze {+ position: absolute;+ inset: 0;+ background:+ radial-gradient(60% 70% at 30% 110%, rgba(255, 255, 255, 0.10) 0%, transparent 60%),+ radial-gradient(55% 70% at 75% 110%, rgba(255, 255, 255, 0.07) 0%, transparent 60%);+ filter: blur(40px);+ z-index: 1;+ pointer-events: none;+}++.h-footer-watermark {+ position: absolute;+ left: 50%;+ bottom: -0.15em;+ transform: translateX(-50%);+ font-family: 'Space Grotesk', 'Inter', sans-serif;+ font-weight: 700;+ font-size: clamp(7rem, 22vw, 22rem);+ line-height: 0.85;+ letter-spacing: -0.04em;+ white-space: nowrap;+ background: linear-gradient(+ 180deg,+ rgba(255, 255, 255, 0.12) 0%,+ rgba(255, 255, 255, 0.04) 60%,+ rgba(255, 255, 255, 0) 100%+ );+ -webkit-background-clip: text;+ background-clip: text;+ color: transparent;+ pointer-events: none;+ z-index: 2;+ user-select: none;+}++.h-footer-avatar {+ position: absolute;+ right: 4%;+ bottom: 12%;+ width: 140px;+ height: 140px;+ z-index: 3;+ pointer-events: none;+ filter: grayscale(1) drop-shadow(0 0 18px rgba(255, 255, 255, 0.30));+}++.h-footer-avatar model-viewer {+ width: 100%;+ height: 100%;+ background: transparent;+ --poster-color: transparent;+}++.h-footer-inner {+ position: relative;+ z-index: 4;+ display: flex;+ align-items: flex-start;+ justify-content: space-between;+ flex-wrap: wrap;+ gap: 2rem;+ max-width: 1080px;+ margin: 0 auto 4rem;+}++.h-footer-brand-col {+ display: flex;+ flex-direction: column;+ gap: 0.4rem;+}++.h-footer-brand {+ display: flex;+ align-items: center;+ gap: 0.4rem;+ font-family: 'Space Grotesk', 'Inter', sans-serif;+ font-size: 1.1rem;+ font-weight: 600;+ color: #fff;+}++.h-footer-brand .wordmark-dot {+ display: inline-block;+ width: 8px;+ height: 8px;+ border-radius: 50%;+ background: #fff;+ box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);+}++.h-footer-tagline {+ font-family: 'Inter', sans-serif;+ font-size: 0.85rem;+ color: rgba(255, 255, 255, 0.45);+ margin: 0;+ letter-spacing: 0.01em;+}++.h-footer-links {+ display: grid;+ grid-template-columns: repeat(2, auto);+ gap: 0.6rem 2.5rem;+}++.h-footer-links a {+ position: relative;+ color: rgba(255, 255, 255, 0.45);+ text-decoration: none;+ font-size: 0.9rem;+ transition: color 0.2s ease, text-shadow 0.2s ease;+}++.h-footer-links a:hover {+ color: #fff;+ text-shadow: 0 0 12px rgba(255, 255, 255, 0.55);+}++.h-footer-bottom {+ position: relative;+ z-index: 4;+ max-width: 1080px;+ margin: 0 auto;+ padding-top: 1.5rem;+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 1rem;+ flex-wrap: wrap;+ border-top: 1px solid rgba(255, 255, 255, 0.06);+}++.h-footer-legal {+ margin: 0;+ font-family: 'Inter', sans-serif;+ font-size: 0.78rem;+ font-weight: 400;+ color: rgba(255, 255, 255, 0.42);+ letter-spacing: 0.005em;+}++.h-footer-badges {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ flex-wrap: wrap;+}++.h-footer-badge {+ display: inline-flex;+ align-items: center;+ gap: 0.4rem;+ padding: 0.32rem 0.7rem;+ border-radius: 999px;+ border: 1px solid rgba(255, 255, 255, 0.09);+ background: rgba(255, 255, 255, 0.025);+ color: rgba(255, 255, 255, 0.62);+ font-family: 'Inter', sans-serif;+ font-size: 0.72rem;+ font-weight: 500;+ letter-spacing: 0.01em;+ text-decoration: none;+ transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;+}++.h-footer-badge:hover {+ color: #fff;+ border-color: rgba(255, 255, 255, 0.18);+ background: rgba(255, 255, 255, 0.05);+ transform: translateY(-1px);+}++.h-footer-badge svg {+ width: 12px;+ height: 12px;+ flex-shrink: 0;+}++.h-footer-status-dot {+ width: 6px;+ height: 6px;+ border-radius: 50%;+ background: #4ade80;+ box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);+ flex-shrink: 0;+ animation: hStatusPulse 2.4s ease-in-out infinite;+}++@keyframes hStatusPulse {+ 0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }+ 50% { opacity: 0.55; box-shadow: 0 0 4px rgba(74, 222, 128, 0.35); }+}++.h-footer-horizon a:focus-visible {+ outline: 2px solid #ffd76a;+ outline-offset: 3px;+ border-radius: 4px;+}++@media (max-width: 720px) {+ .h-footer-horizon {+ min-height: 320px;+ padding: 3rem 1.25rem 1.5rem;+ }+ .h-footer-inner {+ flex-direction: column;+ gap: 1.5rem;+ margin-bottom: 3rem;+ }+ .h-footer-links {+ grid-template-columns: repeat(2, 1fr);+ gap: 0.5rem 1rem;+ }+ .h-footer-bottom {+ flex-direction: column;+ align-items: flex-start;+ gap: 0.75rem;+ }+ .h-footer-avatar {+ width: 90px;+ height: 90px;+ right: 5%;+ bottom: 18%;+ }+}diff --git a/home.css b/home.cssindex 7b6abfcbb..7598a159a 100644--- a/home.css+++ b/home.css@@ -576,7 +576,7 @@min-height: 360px;padding: 4rem 2rem 2rem !important;border-top: none !important;- background: linear-gradient(180deg, #06070b 0%, #02030a 60%, #000 100%) !important;+ background: linear-gradient(180deg, #0a0a0a 0%, #050505 60%, #000 100%) !important;isolation: isolate;}@@ -589,15 +589,14 @@background: linear-gradient(90deg,transparent 0%,- rgba(124, 58, 237, 0.0) 10%,- rgba(124, 58, 237, 0.85) 35%,- rgba(37, 99, 235, 0.85) 65%,- rgba(37, 99, 235, 0.0) 90%,+ rgba(255, 255, 255, 0.0) 10%,+ rgba(255, 255, 255, 0.75) 50%,+ rgba(255, 255, 255, 0.0) 90%,transparent 100%);box-shadow:- 0 0 12px rgba(124, 58, 237, 0.55),- 0 0 28px rgba(37, 99, 235, 0.35);+ 0 0 10px rgba(255, 255, 255, 0.35),+ 0 0 24px rgba(255, 255, 255, 0.18);z-index: 2;}@@ -608,8 +607,8 @@bottom: -40%;height: 90%;background-image:- linear-gradient(to right, rgba(180, 180, 255, 0.10) 1px, transparent 1px),- linear-gradient(to bottom, rgba(180, 180, 255, 0.10) 1px, transparent 1px);+ linear-gradient(to right, rgba(255, 255, 255, 0.09) 1px, transparent 1px),+ linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 1px, transparent 1px);background-size: 64px 64px;transform: perspective(600px) rotateX(62deg);transform-origin: 50% 0%;@@ -628,8 +627,8 @@position: absolute;inset: 0;background:- radial-gradient(60% 70% at 30% 110%, rgba(124, 58, 237, 0.22) 0%, transparent 60%),- radial-gradient(55% 70% at 75% 110%, rgba(37, 99, 235, 0.20) 0%, transparent 60%);+ radial-gradient(60% 70% at 30% 110%, rgba(255, 255, 255, 0.10) 0%, transparent 60%),+ radial-gradient(55% 70% at 75% 110%, rgba(255, 255, 255, 0.07) 0%, transparent 60%);filter: blur(40px);z-index: 1;pointer-events: none;@@ -668,7 +667,7 @@height: 140px;z-index: 3;pointer-events: none;- filter: drop-shadow(0 0 24px rgba(124, 58, 237, 0.45));+ filter: grayscale(1) drop-shadow(0 0 18px rgba(255, 255, 255, 0.30));}.h-footer-avatar model-viewer {@@ -730,18 +729,82 @@.h-footer-links a:hover {color: #fff;- text-shadow: 0 0 12px rgba(124, 58, 237, 0.7);+ text-shadow: 0 0 12px rgba(255, 255, 255, 0.55);}-.h-footer-copy {+.h-footer-bottom {position: relative;z-index: 4;- text-align: center;- font-size: 0.7rem;- color: rgba(255, 255, 255, 0.32);- letter-spacing: 0.08em;- font-family: 'JetBrains Mono', monospace;+ max-width: 1080px;+ margin: 0 auto;+ padding-top: 1.5rem;+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 1rem;+ flex-wrap: wrap;+ border-top: 1px solid rgba(255, 255, 255, 0.06);+}++.h-footer-legal {margin: 0;+ font-family: 'Inter', sans-serif;+ font-size: 0.78rem;+ font-weight: 400;+ color: rgba(255, 255, 255, 0.42);+ letter-spacing: 0.005em;+}++.h-footer-badges {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ flex-wrap: wrap;+}++.h-footer-badge {+ display: inline-flex;+ align-items: center;+ gap: 0.4rem;+ padding: 0.32rem 0.7rem;+ border-radius: 999px;+ border: 1px solid rgba(255, 255, 255, 0.09);+ background: rgba(255, 255, 255, 0.025);+ color: rgba(255, 255, 255, 0.62);+ font-family: 'Inter', sans-serif;+ font-size: 0.72rem;+ font-weight: 500;+ letter-spacing: 0.01em;+ text-decoration: none;+ transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;+}++.h-footer-badge:hover {+ color: #fff;+ border-color: rgba(255, 255, 255, 0.18);+ background: rgba(255, 255, 255, 0.05);+ transform: translateY(-1px);+}++.h-footer-badge svg {+ width: 12px;+ height: 12px;+ flex-shrink: 0;+}++.h-footer-status-dot {+ width: 6px;+ height: 6px;+ border-radius: 50%;+ background: #4ade80;+ box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);+ flex-shrink: 0;+ animation: hStatusPulse 2.4s ease-in-out infinite;+}++@keyframes hStatusPulse {+ 0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }+ 50% { opacity: 0.55; box-shadow: 0 0 4px rgba(74, 222, 128, 0.35); }}@media (max-width: 720px) {@@ -758,6 +821,11 @@grid-template-columns: repeat(2, 1fr);gap: 0.5rem 1rem;}+ .h-footer-bottom {+ flex-direction: column;+ align-items: flex-start;+ gap: 0.75rem;+ }.h-footer-avatar {width: 90px;height: 90px;diff --git a/home.html b/home.htmlindex 33729efc9..f91eb4dbe 100644--- a/home.html+++ b/home.html@@ -36,6 +36,7 @@<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="stylesheet" href="/style.css" /><link rel="stylesheet" href="/home.css" />+ <link rel="stylesheet" href="/footer.css" /><linkhref="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400&family=Space+Grotesk:wght@500;600;700&display=swap"rel="stylesheet"@@ -512,7 +513,23 @@</nav></div>- <p class="h-footer-copy">$ three.ws · open source · MIT license</p>+ <div class="h-footer-bottom">+ <p class="h-footer-legal">© 2026 three.ws — All rights reserved.</p>+ <div class="h-footer-badges">+ <span class="h-footer-badge" aria-label="System status">+ <span class="h-footer-status-dot" aria-hidden="true"></span>+ <span>All systems normal</span>+ </span>+ <a class="h-footer-badge" href="https://github.com/nirholas/3D/blob/main/LICENSE" target="_blank" rel="noopener" aria-label="MIT license">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14.5A6.5 6.5 0 1 1 8 1.5a6.5 6.5 0 0 1 0 13zm-1-9.25a1 1 0 1 1 2 0v3.5a1 1 0 1 1-2 0v-3.5zm1 6.5a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2z"/></svg>+ <span>MIT Licensed</span>+ </a>+ <a class="h-footer-badge" href="https://github.com/nirholas/3D" target="_blank" rel="noopener" aria-label="View source on GitHub">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>+ <span>Open source</span>+ </a>+ </div>+ </div></footer></main>diff --git a/index.html b/index.htmlindex b052615f1..be801c258 100644--- a/index.html+++ b/index.html@@ -35,6 +35,7 @@<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="stylesheet" href="/style.css" /><link rel="stylesheet" href="/features.css" />+ <link rel="stylesheet" href="/footer.css" /><linkhref="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400&display=swap"rel="stylesheet"@@ -1172,20 +1173,66 @@</div></section>- <footer class="features-footer">- <p>- three.ws ·- <a href="https://github.com/nirholas/3D" target="_blank" rel="noopener">GitHub</a> ·- <a href="/create">Create</a> ·- <a href="/studio">Studio</a> ·- <a href="/widgets">Widgets</a> ·- <a href="/features">Features</a> ·- <a href="/discover">Discover</a> ·- <a href="/docs/widgets">Docs</a> ·- <a href="https://eips.ethereum.org/EIPS/eip-8004" target="_blank" rel="noopener">ERC-8004</a> ·- <a href="/legal/privacy">Privacy</a> ·- <a href="/legal/tos">Terms</a>- </p>+ <footer class="h-footer-horizon">+ <div class="h-footer-glow-line" aria-hidden="true"></div>+ <div class="h-footer-floor" aria-hidden="true"></div>+ <div class="h-footer-haze" aria-hidden="true"></div>+ <div class="h-footer-watermark" aria-hidden="true">three.ws</div>+ <div class="h-footer-avatar" aria-hidden="true">+ <model-viewer+ src="/animations/robotexpressive.glb"+ auto-rotate+ auto-rotate-delay="0"+ rotation-per-second="20deg"+ interaction-prompt="none"+ camera-controls="false"+ disable-zoom+ shadow-intensity="0"+ exposure="0.7"+ environment-image="neutral"+ camera-orbit="0deg 80deg 4m"+ field-of-view="35deg"+ loading="lazy"+ ></model-viewer>+ </div>+ <div class="h-footer-inner">+ <div class="h-footer-brand-col">+ <div class="h-footer-brand">+ <span class="wordmark-dot" aria-hidden="true"></span>+ <span>three.ws</span>+ </div>+ <p class="h-footer-tagline">Give your AI a body.</p>+ </div>+ <nav class="h-footer-links" aria-label="Footer">+ <a href="https://github.com/nirholas/3D" target="_blank" rel="noopener">GitHub</a>+ <a href="/create">Create</a>+ <a href="/studio">Studio</a>+ <a href="/widgets">Widgets</a>+ <a href="/features">Features</a>+ <a href="/discover">Discover</a>+ <a href="/docs/widgets">Docs</a>+ <a href="https://eips.ethereum.org/EIPS/eip-8004" target="_blank" rel="noopener">ERC-8004</a>+ <a href="/legal/privacy">Privacy</a>+ <a href="/legal/tos">Terms</a>+ </nav>+ </div>+ <div class="h-footer-bottom">+ <p class="h-footer-legal">© 2026 three.ws — All rights reserved.</p>+ <div class="h-footer-badges">+ <span class="h-footer-badge" aria-label="System status">+ <span class="h-footer-status-dot" aria-hidden="true"></span>+ <span>All systems normal</span>+ </span>+ <a class="h-footer-badge" href="https://github.com/nirholas/3D/blob/main/LICENSE" target="_blank" rel="noopener" aria-label="MIT license">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14.5A6.5 6.5 0 1 1 8 1.5a6.5 6.5 0 0 1 0 13zm-1-9.25a1 1 0 1 1 2 0v3.5a1 1 0 1 1-2 0v-3.5zm1 6.5a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2z"/></svg>+ <span>MIT Licensed</span>+ </a>+ <a class="h-footer-badge" href="https://github.com/nirholas/3D" target="_blank" rel="noopener" aria-label="View source on GitHub">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>+ <span>Open source</span>+ </a>+ </div>+ </div></footer></main>diff --git a/profile.html b/profile.htmlindex b3d107b1e..847015d6c 100644--- a/profile.html+++ b/profile.html@@ -11,6 +11,7 @@<link rel="preconnect" href="https://fonts.googleapis.com" /><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="stylesheet" href="/style.css" />+ <link rel="stylesheet" href="/footer.css" /><linkhref="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap"rel="stylesheet"@@ -332,6 +333,66 @@</div></main>+ <footer class="h-footer-horizon">+ <div class="h-footer-glow-line" aria-hidden="true"></div>+ <div class="h-footer-floor" aria-hidden="true"></div>+ <div class="h-footer-haze" aria-hidden="true"></div>+ <div class="h-footer-watermark" aria-hidden="true">three.ws</div>+ <div class="h-footer-avatar" aria-hidden="true">+ <model-viewer+ src="/animations/robotexpressive.glb"+ auto-rotate+ auto-rotate-delay="0"+ rotation-per-second="20deg"+ interaction-prompt="none"+ camera-controls="false"+ disable-zoom+ shadow-intensity="0"+ exposure="0.7"+ environment-image="neutral"+ camera-orbit="0deg 80deg 4m"+ field-of-view="35deg"+ loading="lazy"+ ></model-viewer>+ </div>+ <div class="h-footer-inner">+ <div class="h-footer-brand-col">+ <div class="h-footer-brand">+ <span class="wordmark-dot" aria-hidden="true"></span>+ <span>three.ws</span>+ </div>+ <p class="h-footer-tagline">Give your AI a body.</p>+ </div>+ <nav class="h-footer-links" aria-label="Footer">+ <a href="https://github.com/nirholas/3D" target="_blank" rel="noopener">GitHub</a>+ <a href="/create">Create</a>+ <a href="/studio">Studio</a>+ <a href="/widgets">Widgets</a>+ <a href="/features">Features</a>+ <a href="/discover">Discover</a>+ <a href="/docs/widgets">Docs</a>+ <a href="https://eips.ethereum.org/EIPS/eip-8004" target="_blank" rel="noopener">ERC-8004</a>+ </nav>+ </div>+ <div class="h-footer-bottom">+ <p class="h-footer-legal">© 2026 three.ws — All rights reserved.</p>+ <div class="h-footer-badges">+ <span class="h-footer-badge" aria-label="System status">+ <span class="h-footer-status-dot" aria-hidden="true"></span>+ <span>All systems normal</span>+ </span>+ <a class="h-footer-badge" href="https://github.com/nirholas/3D/blob/main/LICENSE" target="_blank" rel="noopener" aria-label="MIT license">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14.5A6.5 6.5 0 1 1 8 1.5a6.5 6.5 0 0 1 0 13zm-1-9.25a1 1 0 1 1 2 0v3.5a1 1 0 1 1-2 0v-3.5zm1 6.5a1.1 1.1 0 1 1 0-2.2 1.1 1.1 0 0 1 0 2.2z"/></svg>+ <span>MIT Licensed</span>+ </a>+ <a class="h-footer-badge" href="https://github.com/nirholas/3D" target="_blank" rel="noopener" aria-label="View source on GitHub">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>+ <span>Open source</span>+ </a>+ </div>+ </div>+ </footer>+<script type="module">import { mountUserProfile } from './src/erc8004/user-profile.js';diff --git a/public/features/features.css b/public/features/features.cssindex a15d9ca96..a5d860d82 100644--- a/public/features/features.css+++ b/public/features/features.css@@ -305,32 +305,6 @@fill: rgba(255, 255, 255, 0.08);}-/* ── Mid-depth: chain ribbon (Act 3, populated by features.js) ──────────── */--.layer-chains {- position: absolute;- inset: 0;- display: flex;- flex-wrap: wrap;- align-content: center;- justify-content: center;- gap: 1.5rem 2.5rem;- padding: 6rem 4rem;-}--.layer-chains .chain-pill {- font-family: 'Space Grotesk', sans-serif;- font-size: 18px;- font-weight: 600;- letter-spacing: 0.08em;- color: rgba(110, 231, 183, 0.32);- text-transform: uppercase;- border: 1px solid rgba(110, 231, 183, 0.2);- border-radius: 999px;- padding: 0.4rem 1rem;- white-space: nowrap;-}-/* ── Ghost model-viewer (depth 3 background figures) ────────────────────── */.layer-ghost-model {diff --git a/public/features/features.js b/public/features/features.jsindex 701a36e49..04b912ac7 100644--- a/public/features/features.js+++ b/public/features/features.js@@ -13,30 +13,6 @@const ROOT = document;-// Mirror of the mainnet labels in src/erc8004/chains.js — visual ribbon only.-const CHAIN_LABELS = [- 'Ethereum',- 'Optimism',- 'BNB',- 'Gnosis',- 'Polygon',- 'Fantom',- 'zkSync',- 'Moonbeam',- 'Mantle',- 'Base',- 'Arbitrum',- 'Celo',- 'Avalanche',- 'Linea',- 'Scroll',- 'Mode',- 'Blast',- 'opBNB',- 'Sepolia',- 'Holesky',-];-const SHORT_NAME_BY_CHAIN = new Map([[1, 'Ethereum'],[10, 'Optimism'],@@ -99,20 +75,7 @@ function setupEmotionChips() {});}-// ── Act 3: chain ribbon + on-chain passport ──────────────────────────────--function paintChainRibbon() {- const host = ROOT.querySelector('[data-role="chain-ribbon"]');- if (!host) return;- host.replaceChildren(- ...CHAIN_LABELS.map((label) => {- const span = document.createElement('span');- span.className = 'chain-pill';- span.textContent = label;- return span;- }),- );-}+// ── Act 3: on-chain passport ─────────────────────────────────────────────async function loadOnChainAgent() {const passport = ROOT.querySelector('[data-role="passport"]');@@ -239,7 +202,6 @@ function setupProgressDots() {function init() {initStarFields();- paintChainRibbon();setupEmotionChips();setupCopyEmbed();setupProgressDots();diff --git a/public/features/index.html b/public/features/index.htmlindex 7c054d481..4d46107f2 100644--- a/public/features/index.html+++ b/public/features/index.html@@ -308,13 +308,12 @@<div class="layer-bg layer-bg--mint"></div><canvas class="layer-stars-canvas" data-role="star-canvas" data-tint="110,231,183" data-count="240"></canvas></div>- <div class="parallax-layer" style="--depth: 5" aria-hidden="true">- <div class="layer-chains" data-role="chain-ribbon"></div>- </div><div class="parallax-layer" style="--depth: 3" aria-hidden="true"><model-viewerclass="layer-ghost-model layer-ghost-model--mint"src="/animations/soldier.glb"+ animation-name="Idle"+ autoplayauto-rotateauto-rotate-delay="0"rotation-per-second="7deg"diff --git a/public/login.html b/public/login.htmlindex 853c2e15e..66b778637 100644--- a/public/login.html+++ b/public/login.html@@ -6,6 +6,10 @@<title>Sign in · three.ws</title><link rel="icon" href="/favicon.ico" /><link rel="stylesheet" href="/wallet-connect.css" />+ <script+ type="module"+ src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"+ ></script><style>:root {color-scheme: dark;@@ -26,10 +30,36 @@color: #eee;margin: 0;min-height: 100vh;- display: grid;- place-items: center;+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ gap: 8px;padding: 24px;}+ .agent-avatar {+ position: relative;+ width: 160px;+ height: 160px;+ pointer-events: none;+ }+ .agent-avatar model-viewer {+ width: 100%;+ height: 100%;+ --poster-color: transparent;+ background: transparent;+ }+ .agent-avatar::after {+ content: '';+ position: absolute;+ left: 50%;+ bottom: -2px;+ width: 90px;+ height: 10px;+ background: radial-gradient(ellipse, rgba(106, 92, 255, 0.35), transparent 70%);+ transform: translateX(-50%);+ filter: blur(4px);+ }a {color: #9a8cff;}@@ -165,6 +195,25 @@</style></head><body>+ <div class="agent-avatar" aria-hidden="true">+ <model-viewer+ id="login-avatar"+ src="/avatars/cz.glb"+ alt=""+ autoplay+ animation-name="IdleV4.2(maya_head)"+ disable-zoom+ interaction-prompt="none"+ shadow-intensity="0.6"+ shadow-softness="1"+ exposure="1.05"+ tone-mapping="aces"+ environment-image="neutral"+ camera-orbit="0deg 88deg 4.8m"+ field-of-view="32deg"+ loading="eager"+ ></model-viewer>+ </div><form class="card" id="f"><p class="brand">three.ws</p><h1>Welcome back</h1>@@ -220,6 +269,42 @@.wallet-hint-btn.active { border-color: #6a5cff; color: #9a8cff; background: rgba(106,92,255,0.08); }</style><script type="module" src="/wallet-login.js"></script>+ <script>+ (function () {+ const viewer = document.getElementById('login-avatar');+ if (!viewer) return;+ const BASE_AZ = 0;+ const BASE_POL = 88;+ const AZ_RANGE = 30;+ const POL_RANGE = 14;+ let targetAz = BASE_AZ, targetPol = BASE_POL;+ let curAz = BASE_AZ, curPol = BASE_POL;+ let nod = 0;+ const lerp = (a, b, t) => a + (b - a) * t;+ function tick() {+ curAz = lerp(curAz, targetAz, 0.1);+ curPol = lerp(curPol, targetPol + nod, 0.18);+ nod *= 0.85;+ viewer.setAttribute('camera-orbit', `${curAz}deg ${curPol}deg 4.8m`);+ requestAnimationFrame(tick);+ }+ requestAnimationFrame(tick);+ window.addEventListener('mousemove', (e) => {+ const nx = e.clientX / window.innerWidth - 0.5;+ const ny = e.clientY / window.innerHeight - 0.5;+ targetAz = BASE_AZ - nx * AZ_RANGE * 2;+ targetPol = BASE_POL + ny * POL_RANGE * 2;+ }, { passive: true });+ const inputs = document.querySelectorAll('#f input');+ inputs.forEach((el) => {+ el.addEventListener('keydown', (e) => {+ if (e.key.length === 1 || e.key === 'Backspace') {+ nod = (nod >= 0 ? -1 : 1) * 4;+ }+ });+ });+ })();+ </script><script>const params = new URLSearchParams(location.search);const next =diff --git a/public/studio/index.html b/public/studio/index.htmlindex 425a2c37b..2f273b1e8 100644--- a/public/studio/index.html+++ b/public/studio/index.html@@ -38,11 +38,15 @@<main class="studio-layout" id="studio-layout" hidden><section class="studio-col-left" aria-label="Pick avatar and widget type"><div class="panel">- <h2>1. Pick avatar</h2>+ <h2 data-tooltip="The 3D model your widget will display. We've pre-loaded a demo agent so you can try the studio right away — sign in to use your own.">+ 1. Pick avatar+ </h2><div class="avatar-list" id="avatar-list" aria-busy="true"></div></div><div class="panel">- <h2>2. Pick widget type</h2>+ <h2 data-tooltip="Each widget type is a different layout — Turntable for hero banners, Talking Agent for chat, Passport for on-chain identity, etc. Click to switch and watch the preview update.">+ 2. Pick widget type+ </h2><div class="type-grid" id="type-grid"></div></div></section>@@ -63,6 +67,7 @@class="btn-ghost btn-sm"id="capture-camera-btn"type="button"+ data-tooltip="Drag to frame the avatar exactly how you want, then click to lock in that camera angle as the widget's default."disabled>Use current view@@ -73,14 +78,19 @@<section class="studio-col-right" aria-label="Brand and config"><div class="panel">- <h2>3. Brand</h2>+ <h2 data-tooltip="Style the widget to match your site — colors, environment, captions, and behavior. Changes update the preview live.">+ 3. Brand+ </h2><formid="config-form"class="config-form"autocomplete="off"onsubmit="return false">- <label class="field">+ <label+ class="field"+ data-tooltip="Internal name for this widget. Shows up in your dashboard — visitors never see it."+ ><span>Name</span><inputtype="text"@@ -90,15 +100,24 @@placeholder="My turntable widget"/></label>- <label class="field">+ <label+ class="field"+ data-tooltip="Backdrop color behind the avatar. Pick something close to your site's background for a seamless embed."+ ><span>Background</span><input type="color" name="background" value="#0a0a0a" /></label>- <label class="field">+ <label+ class="field"+ data-tooltip="Highlight color used for buttons, focus rings, and the chat bubble. Match your brand."+ ><span>Accent</span><input type="color" name="accent" value="#8b5cf6" /></label>- <label class="field">+ <label+ class="field"+ data-tooltip="Optional text overlay shown below the avatar — great for a tagline or call-to-action."+ ><span>Caption (optional)</span><inputtype="text"@@ -107,15 +126,24 @@placeholder="Hello, world."/></label>- <label class="field row">+ <label+ class="field row"+ data-tooltip="Show the orbit/zoom controls so visitors can rotate the avatar themselves. Turn off for a hands-off hero shot."+ ><input type="checkbox" name="showControls" checked /><span>Show controls</span></label>- <label class="field row">+ <label+ class="field row"+ data-tooltip="Slowly spin the avatar on its own. Pauses when the visitor interacts."+ ><input type="checkbox" name="autoRotate" checked /><span>Auto-rotate</span></label>- <label class="field">+ <label+ class="field"+ data-tooltip="HDR lighting environment that affects how the avatar is lit and reflects. Try a few — they change the mood instantly."+ ><span>Environment</span><select name="envPreset"><option value="none">None</option>@@ -124,7 +152,10 @@<option value="footprint-court">Footprint court</option></select></label>- <label class="field row">+ <label+ class="field row"+ data-tooltip="Public widgets load for anyone with the URL or embed snippet. Uncheck to keep it private to your account."+ ><input type="checkbox" name="is_public" checked /><span>Public widget (anyone with the URL can load it)</span></label>@@ -134,8 +165,20 @@</div><div class="action-row">- <button type="button" class="btn-ghost" id="save-draft-btn">Save draft</button>- <button type="button" class="btn-primary" id="generate-btn">+ <button+ type="button"+ class="btn-ghost"+ id="save-draft-btn"+ data-tooltip="Save your config to your dashboard without generating embed code. You can come back and tweak it later."+ >+ Save draft+ </button>+ <button+ type="button"+ class="btn-primary"+ id="generate-btn"+ data-tooltip="Save and produce a shareable URL plus the iframe/script snippets you can paste into your site."+ >Generate embed</button></div>diff --git a/public/studio/studio.css b/public/studio/studio.cssindex b23246213..720803560 100644--- a/public/studio/studio.css+++ b/public/studio/studio.css@@ -575,3 +575,77 @@ body.studio-body {transition: none;}}++/* ── tooltips ───────────────────────────────────────────────────────────── */+[data-tooltip] {+ position: relative;+}+[data-tooltip]::after {+ content: attr(data-tooltip);+ position: absolute;+ bottom: calc(100% + 6px);+ left: 50%;+ transform: translateX(-50%) translateY(4px);+ width: max-content;+ max-width: 240px;+ padding: 6px 9px;+ background: #111;+ color: #f2f2f2;+ border: 1px solid rgba(255, 255, 255, 0.1);+ border-radius: var(--radius-sm);+ font-family: var(--font-body);+ font-size: var(--text-xs);+ font-weight: 400;+ line-height: 1.4;+ letter-spacing: 0;+ text-transform: none;+ text-align: left;+ white-space: normal;+ pointer-events: none;+ opacity: 0;+ transition:+ opacity 0.12s ease,+ transform 0.12s ease;+ z-index: 20;+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);+}+[data-tooltip]:hover::after,+[data-tooltip]:focus-visible::after,+[data-tooltip]:focus-within::after {+ opacity: 1;+ transform: translateX(-50%) translateY(0);+}+.action-row [data-tooltip]::after,+.preview-meta [data-tooltip]::after {+ bottom: auto;+ top: calc(100% + 6px);+ transform: translateX(-50%) translateY(-4px);+}+.action-row [data-tooltip]:hover::after,+.action-row [data-tooltip]:focus-visible::after,+.preview-meta [data-tooltip]:hover::after,+.preview-meta [data-tooltip]:focus-visible::after {+ transform: translateX(-50%) translateY(0);+}++@media (prefers-reduced-motion: reduce) {+ [data-tooltip]::after {+ transition: none;+ }+}++/* ── demo avatar badge ──────────────────────────────────────────────────── */+.avatar-card.is-demo {+ border-style: dashed;+ border-color: rgba(139, 92, 246, 0.35);+}+.avatar-card .badge-demo {+ font-size: 9px;+ letter-spacing: 1px;+ text-transform: uppercase;+ color: #c4b5fd;+ background: rgba(139, 92, 246, 0.18);+ padding: 1px 5px;+ border-radius: 3px;+ width: fit-content;+}diff --git a/public/studio/studio.js b/public/studio/studio.jsindex 0d601b440..1af9019ea 100644--- a/public/studio/studio.js+++ b/public/studio/studio.js@@ -38,6 +38,14 @@ const WIDGET_TYPES = {},};+const DEMO_AVATAR = Object.freeze({+ id: '__demo__',+ name: 'Demo agent (CZ)',+ model_url: '/avatars/cz.glb',+ thumbnail_url: null,+ is_demo: true,+});+const BRAND_DEFAULTS = Object.freeze({background: '#0a0a0a',accent: '#8b5cf6',@@ -133,6 +141,7 @@ if (preModel) state.preselectedModel = preModel;if (editId) await loadForEdit(editId);else if (tplId) await cloneTemplate(tplId);else if (state.preselectedModel) selectByModelUrl(state.preselectedModel);+ else if (!state.avatarId) selectAvatar(DEMO_AVATAR.id);updatePreview(true);})();@@ -152,19 +161,23 @@ async function fetchMe() {async function loadAvatars() {const list = $('#avatar-list');list.removeAttribute('aria-busy');+ state.avatars = [DEMO_AVATAR];if (!state.user) {- const loginHref = `/login?next=${encodeURIComponent(location.pathname + location.search)}`;- list.innerHTML = `<div class="empty"><a href="${attr(loginHref)}">Sign in</a> to pick from your avatars.</div>`;+ renderAvatarList();return;}try {const res = await fetch('/api/avatars?limit=100', { credentials: 'include' });if (!res.ok) throw new Error(`avatars: ${res.status}`);const { avatars = [] } = await res.json();- state.avatars = avatars;+ state.avatars = [DEMO_AVATAR, ...avatars];renderAvatarList();} catch (err) {- list.innerHTML = `<div class="empty">Couldn't load avatars: ${escapeHtml(err.message)}</div>`;+ renderAvatarList();+ const note = document.createElement('div');+ note.className = 'empty';+ note.textContent = `Couldn't load your avatars: ${err.message}`;+ list.appendChild(note);}}@@ -219,16 +232,31 @@ function renderAvatarList() {for (const a of state.avatars) {const card = document.createElement('button');card.type = 'button';- card.className = 'avatar-card' + (a.id === state.avatarId ? ' selected' : '');+ card.className =+ 'avatar-card' ++ (a.id === state.avatarId ? ' selected' : '') ++ (a.is_demo ? ' is-demo' : '');card.dataset.id = a.id;card.setAttribute('aria-pressed', String(a.id === state.avatarId));+ if (a.is_demo) {+ card.dataset.tooltip =+ 'A built-in demo so you can try the studio without uploading. Sign in and pick one of your own avatars to save and embed.';+ }const thumb = a.thumbnail_url? `<div class="thumb"><img src="${attr(a.thumbnail_url)}" alt="" loading="lazy"></div>`: `<div class="thumb">◎</div>`;- card.innerHTML = `${thumb}<span class="name">${escapeHtml(a.name || a.slug || a.id)}</span>`;+ const badge = a.is_demo ? '<span class="badge-demo">Demo</span>' : '';+ card.innerHTML = `${thumb}<span class="name">${escapeHtml(a.name || a.slug || a.id)}</span>${badge}`;card.addEventListener('click', () => selectAvatar(a.id));list.appendChild(card);}+ if (!state.user) {+ const loginHref = `/login?next=${encodeURIComponent(location.pathname + location.search)}`;+ const note = document.createElement('div');+ note.className = 'empty';+ note.innerHTML = `<a href="${attr(loginHref)}">Sign in</a> to use your own avatars.`;+ list.appendChild(note);+ }}function renderTypeGrid() {@@ -471,6 +499,10 @@ async function save({ generate }) {}if (!state.name?.trim()) return showError('Name is required');if (!state.avatarId) return showError('Pick an avatar first');+ if (state.avatarId === DEMO_AVATAR.id)+ return showError(+ 'The demo avatar is preview-only — upload your own avatar from the dashboard to save and embed.',+ );if (!WIDGET_TYPES[state.type]) return showError('Pick a widget type');const body = {diff --git a/src/app.js b/src/app.jsindex c1a6aed8a..f07a28e22 100644--- a/src/app.js+++ b/src/app.js@@ -302,7 +302,39 @@ class App {const model = options.model || '/avatars/cz.glb';const resolvedModel = isDecentralizedURI(model) ? resolveURI(model) : model;- this.view(resolvedModel, '', new Map());+ const isDefaultCz = !options.model;+ const loadPromise = this.view(resolvedModel, '', new Map());+ if (isDefaultCz) {+ loadPromise?.then?.(() => this._playDefaultLandingClip('taunt'));+ }+ }++ /**+ * After the default CZ avatar loads on /app, stop the baked-in idle clip+ * (which fights the manifest animations on the same skeleton and looks+ * glitchy) and crossfade into a manifest clip once it's ready.+ * @param {string} clipName+ */+ _playDefaultLandingClip(clipName) {+ const viewer = this.viewer;+ if (!viewer) return;+ if (viewer.mixer) viewer.mixer.stopAllAction();+ const am = viewer.animationManager;+ if (!am) return;+ const start = performance.now();+ const tryPlay = () => {+ if (!this.viewer || this.viewer !== viewer) return;+ if (viewer.mixer) viewer.mixer.stopAllAction();+ const defs = am.getAnimationDefs();+ const hasDef = defs.some((d) => d.name === clipName);+ if (hasDef) {+ am.crossfadeTo(clipName).catch(() => {});+ return;+ }+ if (performance.now() - start > 8000) return;+ setTimeout(tryPlay, 200);+ };+ tryPlay();}// ── Agent System Init ─────────────────────────────────────────────────────