cy0307 commited on
Commit
62ab69d
·
verified ·
1 Parent(s): 9c997d7

Sync interactive 3D hero

Browse files
design-qa.md CHANGED
@@ -6,6 +6,7 @@
6
  - Stack figure refresh: `/Users/chaoyue/.codex/generated_images/019ed02c-a15f-7881-aab3-49ff394627b4/exec-0e105db4-a098-48f5-b3f1-301d07cb21f6.png`
7
  - Runtime map: `/Users/chaoyue/.codex/generated_images/019ed02c-a15f-7881-aab3-49ff394627b4/exec-8abdd5c7-4c6a-4406-bd07-47dfbc6f1721.png`
8
  - Maturity model: `/Users/chaoyue/.codex/generated_images/019ed02c-a15f-7881-aab3-49ff394627b4/exec-ed3a252d-15d6-4836-84cb-21ce313f10bb.png`
 
9
  - Local prototype: repository `docs/` build served during QA
10
  - Reference comparison: `/private/tmp/loop-design-comparison.png`
11
 
@@ -19,6 +20,10 @@
19
  - Runtime map: desktop and mobile; the mobile figure scrolls within a 358 px frame while the page remains 390 px wide.
20
  - Maturity model: desktop and mobile; levels 00-02 are visible initially and the remaining levels are horizontally inspectable.
21
  - Social preview: 1280 x 640, exact resource, pattern, and contract counts.
 
 
 
 
22
 
23
  ## Comparison History
24
 
@@ -29,6 +34,9 @@
29
  5. Compared the original stack figure and the ChatGPT Image revision side by side. The revision replaces empty overlapping outlines with four populated plates, aligned leader lines, a one-run bracket, and an explicit recurring-work governance badge. OCR and browser checks confirmed the required copy, 1666 x 944 dimensions, and error-free rendering.
30
  6. Audited the live README and site for visual gaps. Added coordinated runtime-selection and maturity-progression figures only where the existing presentation was text-only; retained the hero, cover, social preview, stack, contract, and lifecycle assets unchanged.
31
  7. The responsive pass found the citation block widening the entire page to 618 px at a 390 px viewport. Setting footer grid children to `min-width: 0` restored a 390 px document width while preserving horizontal scrolling inside the four wide diagrams.
 
 
 
32
 
33
  ## Findings
34
 
@@ -48,6 +56,9 @@
48
  - Desktop runtime map: `/private/tmp/awesome-loop-runtime-desktop.png`
49
  - Mobile runtime map: `/private/tmp/awesome-loop-runtime-mobile.png`
50
  - Mobile maturity model: `/private/tmp/awesome-loop-maturity-mobile.png`
 
 
 
51
  - Social preview: `/Users/chaoyue/Library/CloudStorage/Dropbox/Loop Engineering/awesome-loop-engineering/assets/social-preview.png`
52
 
53
  final result: passed
 
6
  - Stack figure refresh: `/Users/chaoyue/.codex/generated_images/019ed02c-a15f-7881-aab3-49ff394627b4/exec-0e105db4-a098-48f5-b3f1-301d07cb21f6.png`
7
  - Runtime map: `/Users/chaoyue/.codex/generated_images/019ed02c-a15f-7881-aab3-49ff394627b4/exec-8abdd5c7-4c6a-4406-bd07-47dfbc6f1721.png`
8
  - Maturity model: `/Users/chaoyue/.codex/generated_images/019ed02c-a15f-7881-aab3-49ff394627b4/exec-ed3a252d-15d6-4836-84cb-21ce313f10bb.png`
9
+ - Interactive hero: Three.js `0.185.1`, vendored under `docs/assets/vendor/three/` with its MIT license.
10
  - Local prototype: repository `docs/` build served during QA
11
  - Reference comparison: `/private/tmp/loop-design-comparison.png`
12
 
 
20
  - Runtime map: desktop and mobile; the mobile figure scrolls within a 358 px frame while the page remains 390 px wide.
21
  - Maturity model: desktop and mobile; levels 00-02 are visible initially and the remaining levels are horizontally inspectable.
22
  - Social preview: 1280 x 640, exact resource, pattern, and contract counts.
23
+ - Interactive hero, desktop: 1280 x 720, one ready WebGL canvas, 478 px hero, no horizontal overflow, and the next section visible in the first viewport.
24
+ - Interactive hero, mobile: 390 x 844, one ready WebGL canvas, 571 px hero, no horizontal overflow, and the next section visible in the first viewport.
25
+ - Interactive hero motion: the frame counter advanced by 47 frames during a 450 ms pointer-parallax check.
26
+ - Interactive hero efficiency: the frame counter advanced by zero during a 700 ms offscreen check at the Resources section.
27
 
28
  ## Comparison History
29
 
 
34
  5. Compared the original stack figure and the ChatGPT Image revision side by side. The revision replaces empty overlapping outlines with four populated plates, aligned leader lines, a one-run bracket, and an explicit recurring-work governance badge. OCR and browser checks confirmed the required copy, 1666 x 944 dimensions, and error-free rendering.
35
  6. Audited the live README and site for visual gaps. Added coordinated runtime-selection and maturity-progression figures only where the existing presentation was text-only; retained the hero, cover, social preview, stack, contract, and lifecycle assets unchanged.
36
  7. The responsive pass found the citation block widening the entire page to 618 px at a 390 px viewport. Setting footer grid children to `min-width: 0` restored a 390 px document width while preserving horizontal scrolling inside the four wide diagrams.
37
+ 8. Compared the published static hero and the Three.js-enhanced hero at the same 1280 x 720 viewport. The enhancement keeps the existing identity, copy, actions, spacing, and section transition while adding a restrained evidence orbit, control-plane stack, verification gate, and six lifecycle nodes behind the content.
38
+ 9. Moved the control-plane stack and verification gate outward after the first 3D pass so they frame the copy rather than crossing its reading path. Rechecked desktop and mobile rendering after the adjustment.
39
+ 10. Verified progressive enhancement behavior: the semantic hero remains complete without WebGL, forced-colors and print hide the scene, reduced-motion renders a static frame, and the animation stops when the hero leaves the viewport.
40
 
41
  ## Findings
42
 
 
56
  - Desktop runtime map: `/private/tmp/awesome-loop-runtime-desktop.png`
57
  - Mobile runtime map: `/private/tmp/awesome-loop-runtime-mobile.png`
58
  - Mobile maturity model: `/private/tmp/awesome-loop-maturity-mobile.png`
59
+ - Three.js desktop hero: `/private/tmp/awesome-loop-hero-three-desktop-final.png`
60
+ - Three.js mobile hero: `/private/tmp/awesome-loop-hero-three-mobile-final.png`
61
+ - Three.js pointer-motion frame: `/private/tmp/awesome-loop-hero-three-motion-final.png`
62
  - Social preview: `/Users/chaoyue/Library/CloudStorage/Dropbox/Loop Engineering/awesome-loop-engineering/assets/social-preview.png`
63
 
64
  final result: passed
docs/assets/loop-hero-scene.js ADDED
@@ -0,0 +1,312 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import * as THREE from './vendor/three/three.module.min.js';
2
+
3
+ const container = document.querySelector('[data-loop-scene]');
4
+ const hero = container?.closest('.hero');
5
+
6
+ if (container && hero) {
7
+ const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');
8
+ const palette = [0x155eef, 0x08a9c4, 0x0c9b68, 0x7055d9];
9
+ let renderer;
10
+
11
+ try {
12
+ renderer = new THREE.WebGLRenderer({
13
+ alpha: true,
14
+ antialias: true,
15
+ powerPreference: 'high-performance',
16
+ });
17
+ } catch (error) {
18
+ container.dataset.sceneState = 'fallback';
19
+ }
20
+
21
+ if (renderer) {
22
+ renderer.setClearColor(0x000000, 0);
23
+ renderer.outputColorSpace = THREE.SRGBColorSpace;
24
+ renderer.domElement.setAttribute('aria-hidden', 'true');
25
+ renderer.domElement.dataset.loopSceneCanvas = 'true';
26
+ container.appendChild(renderer.domElement);
27
+
28
+ const scene = new THREE.Scene();
29
+ const camera = new THREE.PerspectiveCamera(32, 1, 0.1, 50);
30
+ camera.position.set(0, 0, 10);
31
+
32
+ const root = new THREE.Group();
33
+ scene.add(root);
34
+
35
+ const orbitMaterial = new THREE.MeshBasicMaterial({
36
+ color: palette[0],
37
+ transparent: true,
38
+ opacity: 0.2,
39
+ depthWrite: false,
40
+ });
41
+ const orbit = new THREE.Mesh(
42
+ new THREE.TorusGeometry(4.2, 0.014, 8, 180),
43
+ orbitMaterial,
44
+ );
45
+ orbit.scale.y = 0.54;
46
+ orbit.rotation.set(0.08, 0.12, -0.04);
47
+ root.add(orbit);
48
+
49
+ const evidenceOrbit = new THREE.Mesh(
50
+ new THREE.TorusGeometry(3.55, 0.009, 6, 160),
51
+ new THREE.MeshBasicMaterial({
52
+ color: palette[1],
53
+ transparent: true,
54
+ opacity: 0.14,
55
+ depthWrite: false,
56
+ }),
57
+ );
58
+ evidenceOrbit.scale.y = 0.48;
59
+ evidenceOrbit.rotation.set(-0.06, -0.08, 0.2);
60
+ root.add(evidenceOrbit);
61
+
62
+ const plateGroup = new THREE.Group();
63
+ plateGroup.position.set(-4.35, -0.12, 0.08);
64
+ root.add(plateGroup);
65
+
66
+ function makePlate(index) {
67
+ const shape = new THREE.Shape();
68
+ const points = [];
69
+ for (let pointIndex = 0; pointIndex < 6; pointIndex += 1) {
70
+ const angle = Math.PI / 6 + pointIndex * Math.PI / 3;
71
+ points.push(new THREE.Vector2(Math.cos(angle) * 0.9, Math.sin(angle) * 0.54));
72
+ }
73
+ shape.moveTo(points[0].x, points[0].y);
74
+ points.slice(1).forEach((point) => shape.lineTo(point.x, point.y));
75
+ shape.closePath();
76
+
77
+ const group = new THREE.Group();
78
+ const fill = new THREE.Mesh(
79
+ new THREE.ShapeGeometry(shape),
80
+ new THREE.MeshBasicMaterial({
81
+ color: palette[index],
82
+ transparent: true,
83
+ opacity: 0.055,
84
+ side: THREE.DoubleSide,
85
+ depthWrite: false,
86
+ }),
87
+ );
88
+ group.add(fill);
89
+
90
+ const outlinePoints = points.map((point) => new THREE.Vector3(point.x, point.y, 0.01));
91
+ outlinePoints.push(outlinePoints[0].clone());
92
+ const outline = new THREE.Line(
93
+ new THREE.BufferGeometry().setFromPoints(outlinePoints),
94
+ new THREE.LineBasicMaterial({
95
+ color: palette[index],
96
+ transparent: true,
97
+ opacity: 0.34,
98
+ }),
99
+ );
100
+ group.add(outline);
101
+
102
+ const status = new THREE.Mesh(
103
+ new THREE.RingGeometry(0.07, 0.105, 24),
104
+ new THREE.MeshBasicMaterial({
105
+ color: palette[index],
106
+ transparent: true,
107
+ opacity: 0.42,
108
+ side: THREE.DoubleSide,
109
+ depthWrite: false,
110
+ }),
111
+ );
112
+ status.position.z = 0.02;
113
+ group.add(status);
114
+
115
+ group.position.set(index * 0.09, (index - 1.5) * 0.27, index * 0.055);
116
+ return group;
117
+ }
118
+
119
+ for (let index = 0; index < 4; index += 1) {
120
+ plateGroup.add(makePlate(index));
121
+ }
122
+
123
+ const gateGroup = new THREE.Group();
124
+ gateGroup.position.set(4.35, -0.08, 0.1);
125
+ root.add(gateGroup);
126
+
127
+ const gatePlate = makePlate(2);
128
+ gatePlate.scale.setScalar(0.9);
129
+ gateGroup.add(gatePlate);
130
+
131
+ [0.58, 0.42].forEach((radius, index) => {
132
+ const ring = new THREE.Mesh(
133
+ new THREE.TorusGeometry(radius, 0.012, 8, 96),
134
+ new THREE.MeshBasicMaterial({
135
+ color: index === 0 ? palette[2] : palette[1],
136
+ transparent: true,
137
+ opacity: index === 0 ? 0.28 : 0.2,
138
+ depthWrite: false,
139
+ }),
140
+ );
141
+ ring.scale.y = 0.72;
142
+ ring.position.z = 0.08 + index * 0.02;
143
+ gateGroup.add(ring);
144
+ });
145
+
146
+ const check = new THREE.Line(
147
+ new THREE.BufferGeometry().setFromPoints([
148
+ new THREE.Vector3(-0.22, 0.01, 0.13),
149
+ new THREE.Vector3(-0.05, -0.16, 0.13),
150
+ new THREE.Vector3(0.28, 0.2, 0.13),
151
+ ]),
152
+ new THREE.LineBasicMaterial({
153
+ color: palette[2],
154
+ transparent: true,
155
+ opacity: 0.56,
156
+ }),
157
+ );
158
+ gateGroup.add(check);
159
+
160
+ const nodeGeometry = new THREE.SphereGeometry(0.075, 20, 14);
161
+ const lifecycleNodes = palette.concat([palette[1], palette[0]]).map((color, index) => {
162
+ const node = new THREE.Mesh(
163
+ nodeGeometry,
164
+ new THREE.MeshBasicMaterial({
165
+ color,
166
+ transparent: true,
167
+ opacity: index === 5 ? 0.78 : 0.56,
168
+ depthWrite: false,
169
+ }),
170
+ );
171
+ root.add(node);
172
+ return node;
173
+ });
174
+
175
+ function positionNodes(time) {
176
+ lifecycleNodes.forEach((node, index) => {
177
+ const angle = index / lifecycleNodes.length * Math.PI * 2 + time * 0.16;
178
+ node.position.set(
179
+ Math.cos(angle) * 4.15,
180
+ Math.sin(angle) * 2.2,
181
+ 0.26 + Math.sin(angle * 2) * 0.12,
182
+ );
183
+ const pulse = index === 5 ? 1 + Math.sin(time * 1.4) * 0.16 : 1;
184
+ node.scale.setScalar(pulse);
185
+ });
186
+ }
187
+
188
+ let frameCount = 0;
189
+ let animationFrame = 0;
190
+ let visible = true;
191
+ let targetRotationX = 0;
192
+ let targetRotationY = 0;
193
+
194
+ function render(time = 0) {
195
+ const seconds = time * 0.001;
196
+ positionNodes(seconds);
197
+ root.rotation.x += (targetRotationX - root.rotation.x) * 0.045;
198
+ root.rotation.y += (targetRotationY - root.rotation.y) * 0.045;
199
+ root.rotation.z = Math.sin(seconds * 0.18) * 0.012;
200
+ plateGroup.position.y = -0.12 + Math.sin(seconds * 0.42) * 0.045;
201
+ gateGroup.rotation.z = Math.sin(seconds * 0.34) * 0.025;
202
+ renderer.render(scene, camera);
203
+ frameCount += 1;
204
+ container.dataset.sceneFrames = String(frameCount);
205
+ if (!container.dataset.sceneReady) {
206
+ container.dataset.sceneReady = 'true';
207
+ }
208
+ }
209
+
210
+ function animate(time) {
211
+ animationFrame = 0;
212
+ if (!visible || document.hidden || reducedMotion.matches) return;
213
+ render(time);
214
+ animationFrame = window.requestAnimationFrame(animate);
215
+ }
216
+
217
+ function startAnimation() {
218
+ if (!animationFrame && visible && !document.hidden && !reducedMotion.matches) {
219
+ animationFrame = window.requestAnimationFrame(animate);
220
+ }
221
+ }
222
+
223
+ function stopAnimation() {
224
+ if (animationFrame) {
225
+ window.cancelAnimationFrame(animationFrame);
226
+ animationFrame = 0;
227
+ }
228
+ }
229
+
230
+ function resize() {
231
+ const width = Math.max(container.clientWidth, 1);
232
+ const height = Math.max(container.clientHeight, 1);
233
+ const mobile = width < 640;
234
+ renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 1.5));
235
+ renderer.setSize(width, height, false);
236
+ camera.aspect = width / height;
237
+ camera.position.z = mobile ? 11.6 : 10;
238
+ camera.updateProjectionMatrix();
239
+ root.scale.setScalar(mobile ? 0.78 : 1);
240
+ render(performance.now());
241
+ }
242
+
243
+ function updatePointer(event) {
244
+ const bounds = hero.getBoundingClientRect();
245
+ const x = (event.clientX - bounds.left) / bounds.width * 2 - 1;
246
+ const y = (event.clientY - bounds.top) / bounds.height * 2 - 1;
247
+ targetRotationY = x * 0.075;
248
+ targetRotationX = -y * 0.04;
249
+ }
250
+
251
+ function resetPointer() {
252
+ targetRotationX = 0;
253
+ targetRotationY = 0;
254
+ }
255
+
256
+ const resizeObserver = new ResizeObserver(resize);
257
+ resizeObserver.observe(container);
258
+
259
+ const visibilityObserver = new IntersectionObserver((entries) => {
260
+ visible = entries[0]?.isIntersecting ?? true;
261
+ if (visible) startAnimation();
262
+ else stopAnimation();
263
+ }, { threshold: 0.02 });
264
+ visibilityObserver.observe(hero);
265
+
266
+ document.addEventListener('visibilitychange', () => {
267
+ if (document.hidden) stopAnimation();
268
+ else startAnimation();
269
+ });
270
+
271
+ reducedMotion.addEventListener('change', () => {
272
+ if (reducedMotion.matches) {
273
+ stopAnimation();
274
+ resetPointer();
275
+ render(performance.now());
276
+ } else {
277
+ startAnimation();
278
+ }
279
+ });
280
+
281
+ if (!reducedMotion.matches) {
282
+ hero.addEventListener('pointermove', updatePointer, { passive: true });
283
+ hero.addEventListener('pointerleave', resetPointer, { passive: true });
284
+ }
285
+
286
+ window.__loopSceneDiagnostics = () => {
287
+ const gl = renderer.getContext();
288
+ const width = renderer.domElement.width;
289
+ const height = renderer.domElement.height;
290
+ const pixels = new Uint8Array(width * height * 4);
291
+ gl.readPixels(0, 0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, pixels);
292
+ let sampled = 0;
293
+ let painted = 0;
294
+ for (let index = 3; index < pixels.length; index += 64) {
295
+ sampled += 1;
296
+ if (pixels[index] > 0) painted += 1;
297
+ }
298
+ return {
299
+ frameCount,
300
+ height,
301
+ painted,
302
+ paintedRatio: sampled ? painted / sampled : 0,
303
+ reducedMotion: reducedMotion.matches,
304
+ sampled,
305
+ width,
306
+ };
307
+ };
308
+
309
+ resize();
310
+ startAnimation();
311
+ }
312
+ }
docs/assets/vendor/three/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The MIT License
2
+
3
+ Copyright © 2010-2026 three.js authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
docs/assets/vendor/three/three.core.min.js ADDED
The diff for this file is too large to render. See raw diff
 
docs/assets/vendor/three/three.module.min.js ADDED
The diff for this file is too large to render. See raw diff
 
docs/index.html CHANGED
@@ -129,7 +129,10 @@
129
 
130
  main { overflow: hidden; }
131
  section { padding: 86px 0; border-top: 1px solid var(--line); }
132
- .hero { padding: 64px 0 52px; border-top: 0; text-align: center; }
 
 
 
133
  .mental-model { padding: 40px 0 52px; }
134
  .section-label {
135
  margin: 0 0 12px;
@@ -287,6 +290,7 @@
287
  .tagline { font-size: 1.22rem; }
288
  .lead { font-size: 1rem; }
289
  .mental-model { padding-top: 30px; }
 
290
  .principles, .link-grid, .pattern-grid, .resource-links, .footer-grid { grid-template-columns: 1fr; }
291
  .principle + .principle, .card + .card, .pattern + .pattern { padding-left: 0; }
292
  .pattern { min-height: 88px; }
@@ -300,8 +304,11 @@
300
  html { scroll-behavior: auto; }
301
  .pattern { transition: none; }
302
  }
 
 
 
303
  @media print {
304
- header.site, .menu-btn, .actions, .copy, .pattern-filter { display: none; }
305
  body, footer { background: #fff; }
306
  section { padding: 24pt 0; break-inside: avoid; }
307
  .wrap { width: 100%; }
@@ -425,6 +432,7 @@
425
 
426
  <main id="main" tabindex="-1">
427
  <section class="hero" id="top">
 
428
  <div class="wrap">
429
  <p class="section-label hero-kicker">The field guide for recurring AI-agent systems</p>
430
  <h1>Awesome Loop Engineering</h1>
@@ -765,5 +773,6 @@
765
  });
766
  });
767
  </script>
 
768
  </body>
769
  </html>
 
129
 
130
  main { overflow: hidden; }
131
  section { padding: 86px 0; border-top: 1px solid var(--line); }
132
+ .hero { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 52px; border-top: 0; text-align: center; }
133
+ .hero .wrap { position: relative; z-index: 1; }
134
+ .hero-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
135
+ .hero-scene canvas { display: block; width: 100%; height: 100%; opacity: 0.88; }
136
  .mental-model { padding: 40px 0 52px; }
137
  .section-label {
138
  margin: 0 0 12px;
 
290
  .tagline { font-size: 1.22rem; }
291
  .lead { font-size: 1rem; }
292
  .mental-model { padding-top: 30px; }
293
+ .hero-scene canvas { opacity: 0.68; }
294
  .principles, .link-grid, .pattern-grid, .resource-links, .footer-grid { grid-template-columns: 1fr; }
295
  .principle + .principle, .card + .card, .pattern + .pattern { padding-left: 0; }
296
  .pattern { min-height: 88px; }
 
304
  html { scroll-behavior: auto; }
305
  .pattern { transition: none; }
306
  }
307
+ @media (forced-colors: active) {
308
+ .hero-scene { display: none; }
309
+ }
310
  @media print {
311
+ header.site, .menu-btn, .actions, .copy, .pattern-filter, .hero-scene { display: none; }
312
  body, footer { background: #fff; }
313
  section { padding: 24pt 0; break-inside: avoid; }
314
  .wrap { width: 100%; }
 
432
 
433
  <main id="main" tabindex="-1">
434
  <section class="hero" id="top">
435
+ <div class="hero-scene" data-loop-scene aria-hidden="true"></div>
436
  <div class="wrap">
437
  <p class="section-label hero-kicker">The field guide for recurring AI-agent systems</p>
438
  <h1>Awesome Loop Engineering</h1>
 
773
  });
774
  });
775
  </script>
776
+ <script type="module" src="assets/loop-hero-scene.js"></script>
777
  </body>
778
  </html>