3D engine that AI agents drive
Put the five-world loop on the home page in place of the airport hero
Nguyen Xuan Anc4415ed8fa76
diff --git a/changes/780.md b/changes/780.mdnew file mode 100644index 00000000..9d397870--- /dev/null+++ b/changes/780.md@@ -0,0 +1 @@+- The home page opens on the five-world loop (container port, data center, chip fab, warehouse, dark store) instead of the airport ramp: scene tabs, the credits of the playing world, a poster for reduced motion and for the first paint, and the first world downloads after the poster; the airport hero code and its styles are gone, and `hero-loop.html` stays as the standalone page (#780)diff --git a/hero-loop.html b/hero-loop.htmlindex 360d198c..8071cc26 100644--- a/hero-loop.html+++ b/hero-loop.html@@ -7,6 +7,7 @@<meta name="robots" content="noindex" /><title>Hero · World loop · 67js</title><link rel="icon" href="/favicon.svg" />+ <link rel="stylesheet" href="/src/hero-lab/lab.css" /><script>const mobile = matchMedia("(max-width: 700px)").matches ? "-mobile" : "";const preload = document.createElement("link");@@ -40,10 +41,10 @@</div></div><div class="scene-bar">- <a class="attribution" id="attribution" hidden target="_blank" rel="noopener"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"/></svg><span></span></a>+ <div class="attribution" id="attribution" hidden></div><div class="credits-panel" id="credits-panel" hidden></div><nav class="scene-tabs" id="scene-tabs" aria-label="Scenes"></nav>- <button class="credits-toggle" id="credits-toggle" type="button" aria-expanded="false" aria-controls="credits-panel"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 8v.1"/></svg>Credits</button>+ <button class="credits-toggle" id="credits-toggle" type="button" aria-expanded="false" aria-controls="credits-panel"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 8v.1"/></svg><span class="credits-label">Credits</span></button></div></main><script type="module" src="/src/hero-lab/hero-loop.js"></script>diff --git a/index.html b/index.htmlindex 3f5455a2..a710af32 100644--- a/index.html+++ b/index.html@@ -10,8 +10,10 @@<meta property="og:title" content="67js · 3D engine that AI agents drive" /><meta property="og:description" content="Real-time WebGL2, offline path tracing and an MCP server in one npm package." /><meta property="og:url" content="https://67js.codepawl.com/" />- <meta property="og:image" content="https://67js.codepawl.com/previews/showcase-airport.webp" />- <meta property="og:image:alt" content="An airport ramp rendered by 67js" />+ <meta property="og:image" content="https://67js.codepawl.com/hero-lab/poster-b-port.webp" />+ <meta property="og:image:width" content="1440" />+ <meta property="og:image:height" content="900" />+ <meta property="og:image:alt" content="A container port rendered live by 67js" /><meta name="twitter:card" content="summary_large_image" /><link rel="canonical" href="https://67js.codepawl.com/" /><title>67js · 3D engine that AI agents drive</title>@@ -27,33 +29,26 @@</nav><a class="site-nav-cta" href="https://github.com/codepawl/67.js" aria-label="GitHub"><span class="package-logo package-logo-github" aria-hidden="true"></span><span class="site-nav-cta-label">GitHub</span></a></header>- <main id="content">- <section class="hero" aria-label="67js introduction and live preview">- <div class="hero-frame" data-glow="#ff6a2b">- <a class="hero-shot" href="./showcase.html?scene=airport" aria-label="Open the airport ramp as a live 3D scene">- <img src="./previews/showcase-airport.webp" alt="An airport ramp with a 787 at its stand and the turnaround crew, rendered by 67js" width="1280" height="720" fetchpriority="high" />- </a>- <canvas id="hero-viewport" class="hero-viewport" aria-label="Live 3D airport ramp. Drag to orbit, or pick a shot."></canvas>- <aside class="hero-prompt" aria-label="Agent prompt presets">- <div class="hero-prompt-tabs" role="group" aria-label="Agent prompt">- <button type="button" data-prompt-preset="model" aria-pressed="true">Stand</button>- <button type="button" data-prompt-preset="explode" aria-pressed="false">Ramp crew</button>- <button type="button" data-prompt-preset="blend" aria-pressed="false">Sunset tower</button>- <button type="button" data-prompt-preset="review" aria-pressed="false">Normals</button>- </div>- <p class="hero-prompt-text" data-agent-prompt>"Frame the widebody stand at golden hour with 3-cascade shadows across the Boeing 787-9, service trucks, and ground crew."</p>- </aside>- </div>- <div class="hero-copy">- <h1>3D engine that<br />AI agents drive</h1>- <p class="lede">Real-time WebGL2 with Glaze, offline path tracing with Cook, and 23 MCP tools in one package.</p>- <div class="hero-actions">- <a href="/docs.html#getting-started" data-icon="book">Get started</a>- <a href="https://www.npmjs.com/package/@codepawlhq/67js"><span class="package-logo package-logo-npm brand-npm" aria-hidden="true"></span>npm</a>- </div>+ <section id="hero" class="hero-loop" data-scene="port" aria-label="67js introduction and live preview">+ <div class="stage" id="stage" role="img" aria-label="A live 3D scene: Container port">+ <picture><source media="(max-width: 700px)" srcset="/hero-lab/poster-b-port-mobile.webp" /><img class="poster" id="poster" src="/hero-lab/poster-b-port.webp" alt="" width="1440" height="900" fetchpriority="high" /></picture>+ </div>+ <div class="copy">+ <h1>3D engine that<br />AI agents drive</h1>+ <p class="lede">Real-time WebGL2 with Glaze, offline path tracing with Cook, and 23 MCP tools in one package.</p>+ <div class="hero-actions">+ <a href="/docs.html#getting-started" data-icon="book">Get started</a>+ <a href="https://www.npmjs.com/package/@codepawlhq/67js"><span class="package-logo package-logo-npm brand-npm" aria-hidden="true"></span>npm</a></div>- </section>-+ </div>+ <div class="scene-bar">+ <div class="attribution" id="attribution" hidden></div>+ <div class="credits-panel" id="credits-panel" hidden></div>+ <nav class="scene-tabs" id="scene-tabs" aria-label="Scenes"></nav>+ <button class="credits-toggle" id="credits-toggle" type="button" aria-expanded="false" aria-controls="credits-panel"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 8v.1"/></svg><span class="credits-label">Credits</span></button>+ </div>+ </section>+ <main id="content"><section id="downloads" class="home-install" aria-label="Install 67js"><div class="package-install"><div class="package-managers" role="group" aria-label="Package manager">@@ -143,6 +138,6 @@ renderer.render({ eye: [58, 31, 84], target: [-8, 3, -18] });</code></pre><nav class="footer-links" aria-label="Project links"><a href="https://github.com/codepawl/67.js"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/67js"><span class="package-logo package-logo-npm" aria-hidden="true"></span>npm</a><a data-release-commit href="https://github.com/codepawl/67.js">Release commit</a><a href="/changelog.html">Changelog</a><a href="/license.txt">MIT license</a><a href="/logo.svg" download>Logo SVG</a></nav></footer><script type="module" src="/src/home.js"></script>- <script type="module" src="/src/home-effects.js"></script>+ <script type="module" src="/src/hero-lab/hero-loop.js"></script></body></html>diff --git a/scripts/smoke-site.mjs b/scripts/smoke-site.mjsindex 11de1a18..ba0d822c 100644--- a/scripts/smoke-site.mjs+++ b/scripts/smoke-site.mjs@@ -68,7 +68,8 @@ try {assert.equal(await page.locator('#downloads').count(), 1, 'Homepage install controls are missing');const scenePaths = await page.locator('.gallery .example').evaluateAll(links => links.map(link => { const url = new URL(link.href); return url.pathname + url.search; }));assert.equal(new Set(scenePaths).size, scenePaths.length, 'Showcase repeats the same scene');- assert.equal(new URL(await page.locator('.hero-shot').evaluate(link => link.href)).search, '?scene=airport');+ assert.equal(await page.locator('.hero-loop #scene-tabs button').count(), 5, 'Hero scene tabs are missing');+ assert.equal(await page.locator('.hero-loop #credits-toggle').count(), 1, 'Hero credits control is missing');const showcase = await browser.newPage({ viewport:{ width:1440,height:900 }, reducedMotion:'reduce' });showcase.on('pageerror', error => errors.push(error.message));await showcase.goto(origin + '/showcase.html?scene=datacenter');@@ -86,7 +87,7 @@ try {await chip.waitFor({ state:'hidden', timeout:10000 });assert.equal(await showcase.locator('#showcase-tabs button[data-scene="airport"]').getAttribute('aria-pressed'), 'true');await showcase.close();- report.interactions.push('Hero links to the live airport scene, and the showcase opens the data center scene');+ report.interactions.push('Hero shows five scene tabs and credits, and the showcase opens the data center scene');}if (['/', '/downloads.html'].includes(route)) {if (route === '/downloads.html') assert.match(page.url(), /\/#downloads$/);diff --git a/src/dither-field.js b/src/dither-field.jsdeleted file mode 100644index a0889886..00000000--- a/src/dither-field.js+++ /dev/null@@ -1,181 +0,0 @@-// A soft glow behind the hero drawn as ordered-dither pixels (ported from codepawl.com's DitherField). The field is a sum of-// blurred blobs; every cell of a coarse grid is inked or left blank by comparing the field with an 8x8 Bayer matrix.-// Decorative: it steps at ten frames a second, pauses off screen, draws one still frame for reduced motion, and is cut out-// from under the header and the hero words.-const CELL = 4;-const FRAME_MS = 100;-const CLEAR_SELECTORS = ['.navigation', '.hero-copy'];-const CLEAR_MARGIN = 24;-const CLEAR_FEATHER = 72;-const PRESET_OPACITY = 0.24;--const BAYER = [- 0, 32, 8, 40, 2, 34, 10, 42,- 48, 16, 56, 24, 50, 18, 58, 26,- 12, 44, 4, 36, 14, 46, 6, 38,- 60, 28, 52, 20, 62, 30, 54, 22,- 3, 35, 11, 43, 1, 33, 9, 41,- 51, 19, 59, 27, 49, 17, 57, 25,- 15, 47, 7, 39, 13, 45, 5, 37,- 63, 31, 55, 23, 61, 29, 53, 21,-].map(value => (value + 0.5) / 64);--function blobsAround(anchor) {- return [- { offsetX: 0, offsetY: 0, radius: Math.max(anchor.width, anchor.height) * 0.62, strength: 0.46, orbit: 22, speed: 0.35, phase: 0, pulse: 0.2, pulseSpeed: 0.9 },- { offsetX: anchor.width * 0.4, offsetY: anchor.height * 0.4, radius: anchor.height * 0.5, strength: 0.28, orbit: 50, speed: 0.22, phase: 2.1, pulse: 0.3, pulseSpeed: 0.6 },- { offsetX: -anchor.width * 0.4, offsetY: -anchor.height * 0.34, radius: anchor.height * 0.42, strength: 0.22, orbit: 45, speed: 0.28, phase: 4.2, pulse: 0.3, pulseSpeed: 0.75 },- ];-}--// The ink colour as ImageData stores a pixel (little-endian ABGR).-function inkFromTheme() {- const style = getComputedStyle(document.documentElement);- const hex = style.getPropertyValue('--dither-ink').trim().slice(1);- const strength = Number.parseFloat(style.getPropertyValue('--dither-strength')) || 1;- const alpha = Math.round(Math.min(1, PRESET_OPACITY * strength) * 255);- const red = parseInt(hex.slice(0, 2), 16);- const green = parseInt(hex.slice(2, 4), 16);- const blue = parseInt(hex.slice(4, 6), 16);- return ((alpha << 24) | (blue << 16) | (green << 8) | red) >>> 0;-}--export function startDitherField({ anchor, cover }) {- const anchorElement = document.querySelector(anchor);- const wrapper = document.createElement('div');- const canvas = document.createElement('canvas');- const context = canvas.getContext('2d');- if (!anchorElement || !context) return;- wrapper.className = 'dither';- wrapper.setAttribute('aria-hidden', 'true');- wrapper.append(canvas);- document.body.prepend(wrapper);-- const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');- const ink = inkFromTheme();- let columns = 0;- let rows = 0;- let image = null;- let pixels = null;- let field = null;- let clearance = null;- let anchorBox = new DOMRect();- let startedAt = performance.now();- let frame = 0;- let lastStep = 0;- let visible = true;-- function applyClearance(wrapperBox) {- clearance = new Float32Array(columns * rows).fill(1);- for (const selector of CLEAR_SELECTORS) {- for (const element of document.querySelectorAll(selector)) {- const box = element.getBoundingClientRect();- if (box.width === 0 || box.height === 0) continue;- const left = box.left - wrapperBox.left - CLEAR_MARGIN;- const right = box.right - wrapperBox.left + CLEAR_MARGIN;- const top = box.top - wrapperBox.top - CLEAR_MARGIN;- const bottom = box.bottom - wrapperBox.top + CLEAR_MARGIN;- const firstRow = Math.max(0, Math.floor((top - CLEAR_FEATHER) / CELL));- const lastRow = Math.min(rows - 1, Math.ceil((bottom + CLEAR_FEATHER) / CELL));- const firstColumn = Math.max(0, Math.floor((left - CLEAR_FEATHER) / CELL));- const lastColumn = Math.min(columns - 1, Math.ceil((right + CLEAR_FEATHER) / CELL));- for (let row = firstRow; row <= lastRow; row += 1) {- const y = row * CELL + CELL / 2;- const distanceY = Math.max(top - y, 0, y - bottom);- for (let column = firstColumn; column <= lastColumn; column += 1) {- const x = column * CELL + CELL / 2;- const distanceX = Math.max(left - x, 0, x - right);- const index = row * columns + column;- clearance[index] = Math.min(clearance[index], Math.min(1, Math.hypot(distanceX, distanceY) / CLEAR_FEATHER));- }- }- }- }- }-- function measure() {- const wrapperBox = wrapper.getBoundingClientRect();- const coverElement = document.querySelector(cover);- const coverBottom = coverElement ? coverElement.getBoundingClientRect().bottom - wrapperBox.top : 640;- const height = Math.max(480, Math.round(coverBottom + 140));- wrapper.style.height = `${height}px`;- columns = Math.ceil(wrapperBox.width / CELL);- rows = Math.ceil(height / CELL);- canvas.width = columns;- canvas.height = rows;- canvas.style.width = `${columns * CELL}px`;- canvas.style.height = `${rows * CELL}px`;- image = context.createImageData(columns, rows);- pixels = new Uint32Array(image.data.buffer);- field = new Float32Array(columns * rows);- applyClearance(wrapperBox);- const box = anchorElement.getBoundingClientRect();- anchorBox = new DOMRect(box.left - wrapperBox.left, box.top - wrapperBox.top, box.width, box.height);- }-- function addBlob(blob, seconds, centreX, centreY) {- const x = (centreX + blob.offsetX + Math.cos(seconds * blob.speed + blob.phase) * blob.orbit) / CELL;- const y = (centreY + blob.offsetY + Math.sin(seconds * blob.speed * 0.8 + blob.phase) * blob.orbit) / CELL;- const radius = blob.radius * (1 + blob.pulse * Math.sin(seconds * blob.pulseSpeed + blob.phase));- const sigma = radius / CELL / 2;- const reach = Math.ceil(sigma * 3);- const twoSigmaSquared = 2 * sigma * sigma;- const top = Math.max(0, Math.floor(y - reach));- const bottom = Math.min(rows - 1, Math.ceil(y + reach));- const left = Math.max(0, Math.floor(x - reach));- const right = Math.min(columns - 1, Math.ceil(x + reach));- for (let row = top; row <= bottom; row += 1) {- const distanceY = row - y;- for (let column = left; column <= right; column += 1) {- const distanceX = column - x;- field[row * columns + column] += blob.strength * Math.exp(-(distanceX * distanceX + distanceY * distanceY) / twoSigmaSquared);- }- }- }-- function draw(now) {- if (!image) return;- const seconds = (now - startedAt) / 1000;- field.fill(0);- for (const blob of blobsAround(anchorBox)) {- addBlob(blob, seconds, anchorBox.x + anchorBox.width / 2, anchorBox.y + anchorBox.height / 2);- }- pixels.fill(0);- for (let row = 0; row < rows; row += 1) {- const bayerRow = (row & 7) * 8;- for (let column = 0; column < columns; column += 1) {- const index = row * columns + column;- if (field[index] * clearance[index] > BAYER[bayerRow + (column & 7)]) pixels[index] = ink;- }- }- context.putImageData(image, 0, 0);- }-- function loop(now) {- frame = requestAnimationFrame(loop);- if (!visible || document.hidden || now - lastStep < FRAME_MS) return;- lastStep = now;- draw(now);- }-- function start() {- cancelAnimationFrame(frame);- if (reducedMotion.matches) {- startedAt = performance.now() - 60000;- draw(performance.now());- return;- }- frame = requestAnimationFrame(loop);- }-- function refresh() {- measure();- draw(performance.now());- }-- measure();- start();- new ResizeObserver(refresh).observe(document.documentElement);- new IntersectionObserver(([entry]) => { visible = entry.isIntersecting; }).observe(wrapper);- reducedMotion.addEventListener('change', start);-}diff --git a/src/hero-lab/hero-loop.js b/src/hero-lab/hero-loop.jsindex e6707be1..6359b163 100644--- a/src/hero-lab/hero-loop.js+++ b/src/hero-lab/hero-loop.js@@ -3,7 +3,6 @@// ?capture=1 no real-time clock: the page waits for window.__loop.step(seconds) so a recorder can render exact frames// ?measure=1 reads a pixel back after every draw so frame times include the GPU, and keeps per-scene samples// ?samples=1 overrides the anti-aliasing sample count (previews)-import './lab.css';import './loop/loop.css';import { clamp, prefersReducedMotion, showStageError, smoothstep, startLoop, metrics } from './stage.js';import { SCENES } from './loop/scenes.js';@@ -159,12 +158,15 @@ function paintScene(index) {root.style.setProperty('--scrim', String(scene.scrim));stage.setAttribute('aria-label', `A live 3D scene: ${scene.name}`);ringMarks.forEach(mark => { mark.fill.style.strokeDashoffset = String(RING_LENGTH); });- const simready = scene.credits.find(credit => credit.label.startsWith('NVIDIA'));- attribution.hidden = !simready;- if (simready) {- attribution.href = simready.href;- attribution.querySelector('span').textContent = `${simready.label}, ${simready.licence}`;- }+ attribution.hidden = scene.credits.length === 0;+ attribution.replaceChildren(...scene.credits.map(credit => {+ const link = document.createElement('a');+ link.href = credit.href;+ link.target = '_blank';+ link.rel = 'noopener';+ link.textContent = `${credit.label}, ${credit.licence}`;+ return link;+ }));}// ---- Credits: every attribution the five worlds need, one list.@@ -259,7 +261,18 @@ function tick(seconds) {paintIndicator(incoming ? 1 : prefersReducedMotion ? 0 : activeSeconds / scene.seconds);}+// The poster is the largest paint, so the first world's download (about 12 MB) starts only after the poster has arrived.+function posterLoaded() {+ const poster = document.querySelector('#poster');+ if (!poster || poster.complete) return Promise.resolve();+ return new Promise(resolve => {+ poster.addEventListener('load', resolve, { once: true });+ poster.addEventListener('error', resolve, { once: true });+ });+}+async function start() {+ await posterLoaded();const first = prepare(0, { immediately: true });await first.ready;if (first.error) throw first.error;diff --git a/src/hero-lab/loop/loop.css b/src/hero-lab/loop/loop.cssindex a59b2001..305bb019 100644--- a/src/hero-lab/loop/loop.css+++ b/src/hero-lab/loop/loop.css@@ -6,7 +6,26 @@initial-value: 0.72;}-.hero-loop { position: relative; height: max(100svh, 640px); overflow: hidden; --scrim: 0.72; transition: --scrim 900ms ease; }+.hero-loop {+ --surface-hover: #2a2538;+ --ease-out: cubic-bezier(0.23, 1, 0.32, 1);+ --press: 140ms;+ --hover: 160ms;+ --scrim: 0.72;+ position: relative;+ height: max(100svh, 640px);+ overflow: hidden;+ transition: --scrim 900ms ease;+}+/* On the home page the site header sits above the hero, so the hero fills what is left of the first screen. */+.site > .hero-loop { height: max(calc(100svh - 80px), 560px); margin-top: 12px; }+/* The stage: the poster first, the live canvas fades in over it, then the poster leaves. */+.hero-loop .stage { position: absolute; inset: 0; overflow: hidden; background: var(--window, #09070f); }+.hero-loop .stage canvas, .hero-loop .stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }+.hero-loop .stage .poster { object-fit: cover; z-index: 1; transition: opacity 520ms ease 80ms; }+.hero-loop .stage canvas { z-index: 0; touch-action: pan-y; }+.hero-loop .stage[data-live='true'] .poster { opacity: 0; pointer-events: none; }+.hero-loop .stage-status { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--surface); color: var(--text); font-size: 13px; }.hero-loop .stage canvas.world { z-index: 0; }.hero-loop .stage::after {content: '';@@ -19,26 +38,34 @@linear-gradient(to right, rgb(9 7 15 / var(--scrim)) 0%, rgb(9 7 15 / calc(var(--scrim) * 0.5)) 38%, transparent 68%);}.hero-loop .copy { position: absolute; z-index: 3; left: clamp(16px, 6vw, 96px); bottom: clamp(32px, 9svh, 96px); max-width: 640px; display: flex; flex-direction: column; gap: 22px; }-.hero-loop h1 { font-size: clamp(42px, 6vw, 88px); }+.hero-loop .copy h1 { font-size: clamp(42px, 6vw, 88px); font-weight: 640; letter-spacing: -0.04em; line-height: 0.98; text-shadow: none; }+.hero-loop .copy .lede { max-width: 34ch; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; }+.hero-loop .copy .lede, .hero-loop .copy h1, .hero-loop .copy .hero-actions { animation: rise 700ms var(--ease-out) backwards; }+.hero-loop .copy .lede { animation-delay: 190ms; }+.hero-loop .copy .hero-actions { animation-delay: 260ms; }+.hero-loop .copy h1 { animation-delay: 120ms; }+@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }.scene-bar { position: absolute; z-index: 4; right: clamp(16px, 4vw, 48px); bottom: clamp(24px, 5svh, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; max-width: min(720px, 60vw); }.scene-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }-.scene-tab, .credits-toggle, .attribution { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color var(--hover) ease, color var(--hover) ease, transform var(--press) var(--ease-out); }-.scene-tab svg, .credits-toggle svg, .attribution svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }-.scene-tab:active, .credits-toggle:active { transform: scale(0.97); }-.scene-tab[aria-current='true'] { background: rgb(255 255 255 / 0.1); color: var(--text); }+.hero-loop .scene-tab, .hero-loop .credits-toggle { display: inline-flex; text-shadow: 0 1px 12px rgb(9 7 15 / 0.9); align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color var(--hover) ease, color var(--hover) ease, transform var(--press) var(--ease-out); }+.hero-loop .scene-tab svg, .hero-loop .credits-toggle svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }+.hero-loop .scene-tab:active, .hero-loop .credits-toggle:active { transform: scale(0.97); }+.hero-loop .scene-tab[aria-current='true'] { background: rgb(255 255 255 / 0.1); color: var(--text); }.ring-track { stroke: rgb(255 255 255 / 0.22); }.ring-fill { stroke: currentColor; transform: rotate(-90deg); transform-origin: 50% 50%; opacity: 0; }.ring-dot { fill: currentColor; stroke: none; opacity: 0.6; }-.scene-tab[data-state='playing'] .ring-fill { opacity: 1; }-.scene-tab[data-state='playing'] .ring-dot { opacity: 1; }-.scene-tab[data-state='loading'] .ring-track { stroke-dasharray: 3 4; animation: ring-turn 1.4s linear infinite; transform-origin: 50% 50%; }+.hero-loop .scene-tab[data-state='playing'] .ring-fill { opacity: 1; }+.hero-loop .scene-tab[data-state='playing'] .ring-dot { opacity: 1; }+.hero-loop .scene-tab[data-state='loading'] .ring-track { stroke-dasharray: 3 4; animation: ring-turn 1.4s linear infinite; transform-origin: 50% 50%; }@keyframes ring-turn { to { transform: rotate(360deg); } }@media (hover: hover) and (pointer: fine) {- .scene-tab:hover, .credits-toggle:hover, .attribution:hover { background: rgb(255 255 255 / 0.08); color: var(--text); }+ .attribution a:hover { color: var(--text); }+ .hero-loop .scene-tab:hover, .hero-loop .credits-toggle:hover { background: rgb(255 255 255 / 0.08); color: var(--text); }}.attribution[hidden], .credits-panel[hidden] { display: none; }-.attribution { flex-basis: 100%; justify-content: flex-end; }+.attribution { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-end; padding: 0 12px 4px; }+.attribution a { display: inline-flex; align-items: center; min-height: 28px; color: var(--muted); font-size: 12px; text-shadow: 0 1px 12px rgb(9 7 15 / 0.9); transition: color var(--hover) ease; }.credits-panel { flex-basis: 100%; display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 16px; background: var(--surface); }.credits-panel a { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; font-size: 13px; }.credits-panel .credit-meta { color: var(--muted); font-size: 12px; }@@ -46,18 +73,27 @@@media (hover: hover) and (pointer: fine) { .credits-panel a:hover { background: var(--surface-hover); } }@media (max-width: 1180px) {- .scene-tab span { display: none; }- .scene-tab[aria-current='true'] span { display: inline; }+ .hero-loop .scene-tab span { display: none; }+ .hero-loop .scene-tab[aria-current='true'] span { display: inline; }}@media (max-width: 700px) {- .hero-loop .copy { bottom: 108px; }- .hero-loop h1 { font-size: 40px; }- .scene-bar { left: 12px; right: 12px; max-width: none; justify-content: flex-start; bottom: 16px; }+ .hero-loop .copy { bottom: 148px; }+ .hero-loop .copy h1 { font-size: 40px; }+ .scene-bar { left: 8px; right: 8px; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'attribution attribution' 'panel panel' 'tabs credits'; align-items: center; gap: 0; bottom: 16px; }+ .attribution { grid-area: attribution; }+ .credits-panel { grid-area: panel; margin-bottom: 8px; }+ .scene-tabs { grid-area: tabs; }+ .hero-loop .credits-toggle { grid-area: credits; }+ .attribution { align-items: flex-start; padding: 0 8px 8px; }+ .hero-loop .scene-tab, .hero-loop .credits-toggle { padding: 0 9px; }+ .hero-loop .scene-tab[aria-current='true'] { padding: 0 12px 0 9px; }+ .credits-label { display: none; }.scene-tabs { justify-content: flex-start; }- .scene-tab span { display: none; }- .scene-tab[aria-current='true'] span { display: inline; }+ .hero-loop .scene-tab span { display: none; }+ .hero-loop .scene-tab[aria-current='true'] span { display: inline; }}@media (prefers-reduced-motion: reduce) {- .scene-tab[data-state='loading'] .ring-track { animation: none; }+ .hero-loop .scene-tab[data-state='loading'] .ring-track { animation: none; }.hero-loop { transition: none; }+ .hero-loop .copy > * { animation: none; }}diff --git a/src/home-agent-hero.js b/src/home-agent-hero.jsdeleted file mode 100644index d86f760f..00000000--- a/src/home-agent-hero.js+++ /dev/null@@ -1,371 +0,0 @@-// Live hero for the homepage, drawn by Glaze (Renderer67): the staged airport ramp world-// (a 787 at its stand, the turnaround crew, service trucks, terminal and tower) with cascaded-// shadows and an HDRI sky. Visitors orbit it or pick one of four shots, one a surface-normal view.-import './replace-textured-parts.js';-import { Glaze } from './renderer.js';-import { createSharedTextures, loadGltf } from './gltf.js';-import { loadHdri } from './hdri.js';-import { createCascadedShadows } from './cascaded-shadows.js';-import { readPartRanks } from './showcase-download.js';--const PROMPTS = {- model: {- prompt: '"Frame the widebody stand at golden hour with 3-cascade shadows across the Boeing 787-9, service trucks, and ground crew."',- state: {- eye: [138, 64, 36],- target: [1, 3, -13],- fov: 20,- inspection: false,- exposure: 1.0,- },- },- explode: {- prompt: '"Sweep down to ramp level beside the nose gear, turbofan cowling, pushback tug, and ground turnaround crew."',- state: {- eye: [58, 31, 84],- target: [-8, 3, -18],- fov: 24,- inspection: false,- exposure: 1.04,- },- },- blend: {- prompt: '"Orbit across the carbon wing, fuel tanker, terminal pier, and control tower against the Industrial Sunset HDRI sky."',- state: {- eye: [-86, 36, 82],- target: [6, 8, -16],- fov: 24,- inspection: false,- exposure: 1.02,- },- },- review: {- prompt: '"Switch Glaze to world-space surface normal inspection across the airliner fuselage, turbine blades, and ground vehicles."',- state: {- eye: [72, 26, 56],- target: [-2, 4, -14],- fov: 22,- inspection: true,- exposure: 1.0,- },- },-};--function orbitFromCamera(eye, target) {- const dx = eye[0] - target[0];- const dy = eye[1] - target[1];- const dz = eye[2] - target[2];- const distance = Math.hypot(dx, dy, dz) || 1;- return {- yaw: Math.atan2(dx, dz),- pitch: Math.asin(Math.max(-0.99, Math.min(0.99, dy / distance))),- distance,- target: [...target],- };-}--function eyeFromOrbit(orbit) {- const horiz = Math.cos(orbit.pitch) * orbit.distance;- return [- orbit.target[0] + Math.sin(orbit.yaw) * horiz,- orbit.target[1] + Math.sin(orbit.pitch) * orbit.distance,- orbit.target[2] + Math.cos(orbit.yaw) * horiz,- ];-}--function inWholeWorldOrder(files) {- if (files.some(file => !file.ranks || file.ranks.length !== file.parts.length)) {- return files.flatMap(file => file.parts);- }- const ranked = files.flatMap(file =>- file.parts.map((part, index) => ({ part, rank: file.ranks[index] })),- );- return ranked.sort((a, b) => a.rank - b.rank).map(entry => entry.part);-}--async function fetchBlob(url) {- const response = await fetch(url);- if (!response.ok) throw new Error(`Failed to fetch ${url} (${response.status})`);- return response.blob();-}--const LIVE_HERO_QUERY = '(min-width: 961px) and (prefers-reduced-motion: no-preference)';-const AUTO_CYCLE_MS = 7500;--// The live hero only runs where it is cheap to: a wide screen, no data saver, motion allowed.-// Everywhere else the poster image stays, so phones never download the world.-function liveHeroAllowed() {- if (navigator.connection?.saveData) return false;- return window.matchMedia(LIVE_HERO_QUERY).matches;-}--function afterPageSettles(start) {- const whenIdle = () => {- if ('requestIdleCallback' in window) requestIdleCallback(start, { timeout: 2500 });- else setTimeout(start, 300);- };- if (document.readyState === 'complete') whenIdle();- else window.addEventListener('load', whenIdle, { once: true });-}--export function mountHeroAgentWorkbench() {- if (!liveHeroAllowed()) return;- afterPageSettles(() => mountHomeAgentHero());-}--function createOrbitState(preset) {- const orbit = orbitFromCamera(preset.state.eye, preset.state.target);- return {- yaw: orbit.yaw,- pitch: orbit.pitch,- distance: orbit.distance,- target: [...orbit.target],- fov: preset.state.fov,- exposure: preset.state.exposure,- inspection: preset.state.inspection,- };-}--export async function mountHomeAgentHero() {- const canvas = document.querySelector('#hero-viewport');- const frame = document.querySelector('.hero-frame');- if (!canvas || !frame) return;-- let renderer = null;- let activeMap = null;- let sceneDescription = null;- let sharedTextures = null;- let firstAsset = null;- let firstRanks = null;-- try {- const descriptionResponse = await fetch('/showcase/airport/scene.json');- if (!descriptionResponse.ok) throw new Error(`Airport scene description unavailable (${descriptionResponse.status})`);- sceneDescription = await descriptionResponse.json();-- const glbUrl = new URL(sceneDescription.glb, location.href);- const previewSkyUrl = new URL(sceneDescription.hdriPreview ?? sceneDescription.hdri, location.href).href;- const [firstBlob, previewMap] = await Promise.all([- fetchBlob(glbUrl.href),- loadHdri(previewSkyUrl, sceneDescription.hdriOptions ?? {}),- ]);-- sharedTextures = createSharedTextures();- firstAsset = await loadGltf(firstBlob, {- baseUrl: new URL('.', glbUrl).href,- sharedTextures,- ...(sceneDescription.gltfOptions ?? {}),- });- firstRanks = await readPartRanks(firstBlob);-- activeMap = previewMap;- const rendererOptions = sceneDescription.renderer ?? {};- const shadowCascades = rendererOptions.shadowCascades- ? createCascadedShadows(rendererOptions.shadowCascades)- : undefined;-- renderer = new Glaze(canvas, firstAsset.parts, {- ground: false,- hdr: true,- depth: true,- samples: 4,- pixelRatio: Math.min(window.devicePixelRatio || 1, 1.5),- memoryBudgetMiB: 512,- ...rendererOptions,- shadowCascades,- environment: {- ...(rendererOptions.environment ?? {}),- map: activeMap,- },- });- } catch (error) {- window.__heroWorkbench = { error: error.message };- return;- }-- // The rest of the world (about 11 MB) and the full sky (about 4 MB) load only once someone- // engages with the hero, so a visitor who scrolls past pays for the first stage alone.- let fullWorldRequested = false;- async function loadFullWorld() {- if (fullWorldRequested) return;- fullWorldRequested = true;- try {- const restPaths = sceneDescription.glbRest ?? [];- const fullSkyUrl = new URL(sceneDescription.hdri, location.href).href;- const [restBlobs, fullMap] = await Promise.all([- Promise.all(restPaths.map(path => fetchBlob(new URL(path, location.href).href))),- loadHdri(fullSkyUrl, sceneDescription.hdriOptions ?? {}).catch(() => null),- ]);- if (restBlobs.length > 0) {- const files = [{ parts: firstAsset.parts, ranks: firstRanks }];- for (let index = 0; index < restBlobs.length; index++) {- const baseUrl = new URL('.', new URL(restPaths[index], location.href)).href;- const restAsset = await loadGltf(restBlobs[index], {- baseUrl,- sharedTextures,- ...(sceneDescription.gltfOptions ?? {}),- });- files.push({ parts: restAsset.parts, ranks: await readPartRanks(restBlobs[index]) });- }- renderer.replaceParts(inWholeWorldOrder(files));- }- if (fullMap) activeMap = fullMap;- } catch (error) {- window.__heroWorkbench = { ...window.__heroWorkbench, restError: error.message };- }- }-- const current = createOrbitState(PROMPTS.model);- let target = createOrbitState(PROMPTS.model);- let activeKey = 'model';- let dragging = false;- let userInteracted = false;- let pointerStart = [0, 0];- let orbitStart = [0, 0];- let simTime = 0;- let lastNow = performance.now();- let rafId = 0;- let heroVisible = true;-- const promptElement = document.querySelector('[data-agent-prompt]');- const presetButtons = [...document.querySelectorAll('[data-prompt-preset]')];-- function markInteracted() {- userInteracted = true;- loadFullWorld();- }-- function applyPresetUI(key) {- const preset = PROMPTS[key];- if (!preset) return;- activeKey = key;- target = createOrbitState(preset);- presetButtons.forEach(button => {- button.setAttribute('aria-pressed', String(button.dataset.promptPreset === key));- });- if (promptElement) promptElement.textContent = preset.prompt;- }-- presetButtons.forEach(button => {- button.addEventListener('click', () => {- markInteracted();- applyPresetUI(button.dataset.promptPreset);- });- });-- const presetKeys = Object.keys(PROMPTS);- const autoCycle = setInterval(() => {- if (userInteracted || document.hidden || !heroVisible) return;- const nextIndex = (presetKeys.indexOf(activeKey) + 1) % presetKeys.length;- applyPresetUI(presetKeys[nextIndex]);- }, AUTO_CYCLE_MS);-- canvas.addEventListener('pointerdown', event => {- dragging = true;- markInteracted();- pointerStart = [event.clientX, event.clientY];- orbitStart = [target.yaw, target.pitch];- canvas.setPointerCapture?.(event.pointerId);- });-- canvas.addEventListener('pointermove', event => {- if (!dragging) return;- const deltaX = event.clientX - pointerStart[0];- const deltaY = event.clientY - pointerStart[1];- target.yaw = orbitStart[0] - deltaX * 0.0055;- target.pitch = Math.max(0.05, Math.min(1.35, orbitStart[1] + deltaY * 0.0045));- });-- const endDrag = () => {- dragging = false;- };- canvas.addEventListener('pointerup', endDrag);- canvas.addEventListener('pointercancel', endDrag);-- const resizeObserver = new ResizeObserver(() => {- renderer.resize();- });- resizeObserver.observe(canvas);-- const frameDefaults = sceneDescription.frame ?? {};- const baseEffects = frameDefaults.effects ?? {};-- function renderFrame(time) {- renderer.render({- ...frameDefaults,- eye: eyeFromOrbit(current),- target: current.target,- fov: current.fov,- exposure: current.exposure,- time,- inspection: current.inspection,- environment: {- ...(sceneDescription.renderer?.environment ?? {}),- map: activeMap,- },- effects: {- ...baseEffects,- ambientOcclusion: 0.55,- ambientOcclusionRadius: 4.5,- },- });- }-- function tick(now) {- rafId = 0;- const deltaSeconds = Math.min(0.05, Math.max(0.001, (now - lastNow) / 1000));- lastNow = now;- simTime += deltaSeconds;-- const blend = 1 - Math.exp(-deltaSeconds * 5.2);- if (!dragging) target.yaw += deltaSeconds * 0.018;-- current.yaw += (target.yaw - current.yaw) * blend;- current.pitch += (target.pitch - current.pitch) * blend;- current.distance += (target.distance - current.distance) * blend;- for (let axis = 0; axis < 3; axis++) {- current.target[axis] += (target.target[axis] - current.target[axis]) * blend;- }- current.fov += (target.fov - current.fov) * blend;- current.exposure += (target.exposure - current.exposure) * blend;- current.inspection = target.inspection;-- renderFrame(simTime);- scheduleTick();- }-- // Stop drawing while the hero is off screen or the tab is hidden, so the GPU idles while people read.- function scheduleTick() {- if (rafId || !heroVisible || document.hidden) return;- rafId = requestAnimationFrame(tick);- }-- const visibilityObserver = new IntersectionObserver(entries => {- heroVisible = entries.some(entry => entry.isIntersecting);- lastNow = performance.now();- scheduleTick();- });- visibilityObserver.observe(frame);- const onVisibilityChange = () => {- lastNow = performance.now();- scheduleTick();- };- document.addEventListener('visibilitychange', onVisibilityChange);-- renderer.resize();- // One synchronous frame before going live, so the canvas never fades in empty.- renderFrame(0);- frame.dataset.live = 'true';- frame.classList.add('is-live-3d');- scheduleTick();-- window.__heroWorkbench = { renderer, applyPresetUI, loadFullWorld, complete: true };- window.addEventListener('pagehide', () => {- clearInterval(autoCycle);- if (rafId) cancelAnimationFrame(rafId);- resizeObserver.disconnect();- visibilityObserver.disconnect();- document.removeEventListener('visibilitychange', onVisibilityChange);- renderer.dispose();- });-}diff --git a/src/home-effects.js b/src/home-effects.jsdeleted file mode 100644index a92cd59d..00000000--- a/src/home-effects.js+++ /dev/null@@ -1,7 +0,0 @@-import './pointer-light.js';-import { startDitherField } from './dither-field.js';--startDitherField({ anchor: '.hero-frame', cover: '.hero' });--import { mountHeroAgentWorkbench } from './home-agent-hero.js';-mountHeroAgentWorkbench();diff --git a/src/site.css b/src/site.cssindex ef244b17..eb761b2b 100644--- a/src/site.css+++ b/src/site.css@@ -21,14 +21,12 @@--focus: #ffb38a;--error: #ffb4ab;--invert-border: #ffffff26;- --dither-ink: #ff9a62;--syntax-keyword: #c9a8ff;--syntax-string: #8fe3c0;--syntax-number: #ffb877;--syntax-flag: #ffc98f;--syntax-name: #8cc8ff;--syntax-comment: #8a83a3;- --dither-strength: 2.2;transition: --glow .9s ease-out;}@media (prefers-reduced-motion: reduce) {@@ -122,20 +120,6 @@ body.site::before {background: radial-gradient(closest-side, #ffffff1a, transparent);}-/* The dithered grain behind the hero (src/dither-field.js). */-.dither {- position: absolute;- top: 0;- left: 0;- right: 0;- z-index: -1;- overflow: hidden;- pointer-events: none;- -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);- mask-image: linear-gradient(to bottom, #000 55%, transparent);-}-.dither canvas { display: block; image-rendering: pixelated; }-/* Buttons: pill shaped, a hairline ring, one light primary. */.site button {display: inline-flex;@@ -211,61 +195,7 @@ body.site::before {body.site > main { flex: 1; width: var(--page); margin-inline: auto; padding-block: 20px 80px; display: grid; gap: 76px; }body.site > main > section { scroll-margin-top: 96px; }-/* Hero: the featured scene in a frame, the words on its lower left over a dark scrim. */-.site .hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 12px; }-.site .hero-frame, .site .hero .hero-copy { grid-area: 1 / 1; }-.site .hero-frame {- position: relative;- aspect-ratio: 16 / 9;- min-height: 100%;- overflow: hidden;- border-radius: 24px;- background: var(--surface);- box-shadow: 0 0 0 1px #ffffff1f, 0 40px 140px -40px color-mix(in srgb, var(--glow) 70%, transparent);-}-.site .hero-shot { position: absolute; inset: 0; display: block; }-.site .hero-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }-.site .hero-frame::after {- content: '';- position: absolute;- inset: 0;- pointer-events: none;- background:- linear-gradient(to top, #09070ff2 0%, #09070fe0 34%, #09070f8c 58%, transparent 84%),- linear-gradient(to right, #09070fb3, transparent 70%);-}-.site .hero-caption {- position: absolute;- z-index: 1;- top: 16px;- right: 16px;- max-width: calc(100% - 32px);- margin: 0;- padding: 8px 14px;- border-radius: 999px;- background: #0d0a16a6;- color: #fff;- font-size: 13px;- line-height: 1.4;- box-shadow: inset 0 0 0 1px #ffffff26;- user-select: none;- pointer-events: none;- -webkit-backdrop-filter: blur(14px) saturate(1.4);- backdrop-filter: blur(14px) saturate(1.4);-}-.site .hero .hero-copy {- position: relative;- z-index: 1;- align-self: end;- justify-self: start;- display: grid;- gap: 20px;- max-width: 44rem;- padding: clamp(22px, 4vw, 48px);- pointer-events: none;-}-.site .hero h1 { font-size: clamp(34px, 5.2vw, 62px); text-shadow: 0 2px 24px #09070f99; }-.site .hero .lede { max-width: 36rem; color: var(--text); font-size: clamp(17px, 1.9vw, 20px); }+/* Hero: the world loop (src/hero-lab/loop/loop.css) owns the layout; these are its two buttons. */.site .hero-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; }.site .home-install { margin-top: 0; }@@ -382,12 +312,6 @@ body.site > main > section { scroll-margin-top: 96px; }.site .code-section, .site .agents { grid-template-columns: 1fr; gap: 28px; }}@media (max-width: 820px) {- .site .hero { gap: 20px; }- .site .hero-frame { min-height: 0; }- .site .hero-frame::after { background: linear-gradient(to top, #09070f66, transparent 40%); }- .site .hero .hero-copy { grid-area: 2 / 1; padding: 0; max-width: none; }- .site .hero h1 { text-shadow: none; }- .site .hero .lede { color: var(--muted); }.site .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }.site .example { grid-column: span 1; }.site .example.is-lead { grid-column: span 2; grid-row: span 1; min-height: 0; aspect-ratio: 4 / 3; }@@ -404,8 +328,6 @@ body.site > main > section { scroll-margin-top: 96px; }/* On a phone the cards are too small to carry a chip: the label goes back under the piece. */@media (max-width: 600px) {.site .navigation { border-radius: 20px; }- .site .hero-frame { aspect-ratio: 4 / 3; border-radius: 20px; }- .site .hero-caption { top: 10px; right: 10px; left: 10px; max-width: none; font-size: 12px; border-radius: 14px; }.site .gallery { grid-template-columns: 1fr; }.site .example, .site .example.is-lead { grid-column: auto; aspect-ratio: auto; }.site .example.is-lead .work-media { position: relative; height: auto; aspect-ratio: 4 / 3; }@@ -419,66 +341,7 @@ body.site > main > section { scroll-margin-top: 96px; }.site .site-nav-cta-label { display: none; }}-/* Agent workbench & benchmark styles */-.site .hero-viewport {- position: absolute;- inset: 0;- width: 100%;- height: 100%;- display: block;- opacity: 0;- transition: opacity .35s ease;- cursor: grab;-}-.site .hero-viewport:active { cursor: grabbing; }-.site .hero-frame[data-live="true"] .hero-viewport { opacity: 1; }-.site .hero-frame[data-live="true"] .hero-shot { opacity: 0; pointer-events: none; transition: opacity .35s ease; }--.site .hero-prompt {- position: absolute;- z-index: 2;- right: 22px;- bottom: 22px;- width: min(370px, calc(100% - 44px));- display: grid;- gap: 8px;- padding: 10px 12px;- border-radius: 14px;- background: #0d0a16cc;- box-shadow: inset 0 0 0 1px #ffffff24, 0 18px 44px #00000066;- -webkit-backdrop-filter: blur(16px) saturate(1.4);- backdrop-filter: blur(16px) saturate(1.4);-}-.site .hero-prompt-tabs {- display: flex;- flex-wrap: wrap;- gap: 2px;-}-.site .hero-prompt-tabs button {- min-height: 28px;- padding: 4px 9px;- border-radius: 8px;- background: transparent;- color: var(--muted);- font-size: 12px;- font-weight: 500;- white-space: nowrap;- user-select: none;-}-.site .hero-prompt-tabs button:hover { color: var(--text); }-.site .hero-prompt-tabs button[aria-pressed="true"] {- background: #ffffff14;- color: var(--text);-}-.site .hero-prompt-text {- margin: 0;- padding: 2px 4px;- color: #f1edff;- font-family: var(--mono);- font-size: 12px;- line-height: 1.45;-}-+/* Agent benchmark styles */.site .agent-size-bars {display: grid;gap: 8px;@@ -513,39 +376,3 @@ body.site > main > section { scroll-margin-top: 96px; }.site .size-bar-fill.is-other {background: #ffffff36;}--@media (max-width: 1120px) {- .site .hero .hero-copy { max-width: 32rem; }- .site .hero-prompt { width: min(340px, calc(100% - 32px)); }-}-@media (max-width: 960px) {- .site .hero-prompt {- position: relative;- right: auto;- bottom: auto;- width: 100%;- border-radius: 0 0 20px 20px;- background: #0d0a16f2;- }- .site .hero-frame {- display: flex;- flex-direction: column;- aspect-ratio: auto;- }- .site .hero-viewport, .site .hero-shot {- position: relative;- aspect-ratio: 16 / 10;- height: auto;- }- .site .hero-frame[data-live="true"] .hero-shot {- display: none;- }- .site .hero-frame::after { display: none; }- .site .hero .hero-copy {- grid-area: 2 / 1;- padding: 20px 0 0;- max-width: none;- }-}-.site .hero-frame:not([data-live="true"]) .hero-prompt { display: none; }-.site .hero-frame:not([data-live="true"]) .hero-viewport { display: none; }