-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
746 lines (671 loc) · 24.9 KB
/
index.html
File metadata and controls
746 lines (671 loc) · 24.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VoxWeb</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Inter:wght@200;300;400&display=swap" rel="stylesheet">
<style>
:root {
--cream: #f8f3e9;
--blush: #e8c4b8;
--lavender: #c4c0d8;
--dusty-rose: #d4a9a0;
--pale-gold: #e0d5c1;
--mist-blue: #bcc8d6;
--sage: #c5cec0;
--text-primary: #3a3533;
--text-secondary: #6b615c;
--text-tertiary: #9a8e88;
--shadow-soft: 0 2px 40px rgba(60, 50, 45, 0.06);
--shadow-glow: 0 0 80px rgba(180, 160, 200, 0.25);
--transition-slow: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
--transition-medium: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
scroll-behavior: smooth;
height: 100%;
}
body {
font-family: 'Cormorant Garamond', 'EB Garamond', 'Georgia', serif;
background: linear-gradient(165deg,
#f6efe6 0%, #f2e8dd 8%, #efe4d8 16%, #f1e6df 24%,
#eee0d9 32%, #f3e9e2 40%, #ece0db 48%, #f0e5e0 56%,
#ede2d8 64%, #f4ebe2 72%, #efe3da 80%, #f2e9e1 88%, #f5ede5 100%);
background-attachment: fixed;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-primary);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-x: hidden;
position: relative;
cursor: default;
user-select: none;
-webkit-user-select: none;
}
/* —— Ambient orbs — impressionist light blobs —— */
.ambient-layer {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
overflow: hidden;
}
.orb {
position: absolute;
border-radius: 50%;
filter: blur(90px);
opacity: 0;
animation: orbBreathe var(--duration) ease-in-out infinite;
animation-delay: var(--delay);
will-change: transform, opacity;
}
.orb--lavender {
width: 420px;
height: 420px;
background: radial-gradient(circle, rgba(190, 175, 210, 0.35) 0%, rgba(190, 175, 210, 0) 70%);
top: -8%;
left: 10%;
--duration: 14s;
--delay: 0s;
}
.orb--rose {
width: 380px;
height: 380px;
background: radial-gradient(circle, rgba(215, 170, 155, 0.3) 0%, rgba(215, 170, 155, 0) 70%);
top: 35%;
right: -5%;
--duration: 16s;
--delay: 3s;
}
.orb--gold {
width: 350px;
height: 350px;
background: radial-gradient(circle, rgba(225, 205, 175, 0.32) 0%, rgba(225, 205, 175, 0) 70%);
bottom: -6%;
left: 25%;
--duration: 18s;
--delay: 6s;
}
.orb--mist {
width: 300px;
height: 300px;
background: radial-gradient(circle, rgba(185, 198, 210, 0.28) 0%, rgba(185, 198, 210, 0) 70%);
top: 10%;
right: 20%;
--duration: 15s;
--delay: 1s;
}
.orb--blush {
width: 280px;
height: 280px;
background: radial-gradient(circle, rgba(232, 196, 184, 0.28) 0%, rgba(232, 196, 184, 0) 70%);
bottom: 20%;
left: 55%;
--duration: 17s;
--delay: 8s;
}
@keyframes orbBreathe {
0%,
100% {
opacity: 0.55;
transform: translate(0, 0) scale(1);
}
25% {
opacity: 0.8;
transform: translate(30px, -25px) scale(1.12);
}
50% {
opacity: 0.5;
transform: translate(-15px, 20px) scale(0.94);
}
75% {
opacity: 0.75;
transform: translate(20px, 10px) scale(1.08);
}
}
/* —— Floating particles —— */
.particles-container {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 1;
}
.particle {
position: absolute;
border-radius: 50%;
background: var(--particle-color);
opacity: 0;
animation: floatUp var(--float-duration) linear infinite;
animation-delay: var(--float-delay);
width: var(--size);
height: var(--size);
left: var(--x);
bottom: -20px;
filter: blur(var(--blur));
will-change: transform, opacity;
}
@keyframes floatUp {
0% {
opacity: 0;
transform: translateY(0) translateX(0) scale(0.4);
}
8% {
opacity: var(--peak-opacity);
}
35% {
opacity: var(--peak-opacity);
transform: translateY(-35vh) translateX(var(--drift)) scale(1);
}
70% {
opacity: calc(var(--peak-opacity) * 0.5);
}
100% {
opacity: 0;
transform: translateY(-105vh) translateX(calc(var(--drift) * 1.8)) scale(0.2);
}
}
/* —— Main card —— */
.main-container {
position: relative;
z-index: 10;
width: min(720px, 92vw);
padding: clamp(40px, 8vw, 80px) clamp(28px, 6vw, 64px);
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
background: rgba(252, 249, 244, 0.55);
backdrop-filter: blur(18px) saturate(1.3);
-webkit-backdrop-filter: blur(18px) saturate(1.3);
border-radius: 2px;
box-shadow:
var(--shadow-soft),
var(--shadow-glow),
inset 0 1px 0 rgba(255, 255, 255, 0.5),
inset 0 -1px 0 rgba(180, 160, 150, 0.08);
border: 1px solid rgba(210, 195, 180, 0.2);
animation: cardEnter 1.6s cubic-bezier(0.22, 0.1, 0.12, 1) forwards;
}
@keyframes cardEnter {
0% {
opacity: 0;
transform: translateY(36px) scale(0.96);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}
/* —— Decorative rule —— */
.ornament-rule {
display: flex;
align-items: center;
gap: 16px;
margin: 0 auto 36px;
opacity: 0;
animation: fadeSlideIn 1s 0.4s cubic-bezier(0.22, 0.1, 0.12, 1) forwards;
}
.ornament-rule .line {
flex: 1;
height: 1px;
background: linear-gradient(to right, transparent, rgba(160, 140, 130, 0.35), transparent);
min-width: 50px;
}
.ornament-rule .dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: rgba(170, 145, 130, 0.5);
flex-shrink: 0;
box-shadow: 0 0 12px rgba(170, 145, 130, 0.3);
}
@keyframes fadeSlideIn {
0% {
opacity: 0;
transform: translateY(12px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
/* —— Typography —— */
.supratitle {
font-family: 'Inter', 'Cormorant Garamond', sans-serif;
font-weight: 200;
font-size: clamp(0.65rem, 1.2vw, 0.75rem);
letter-spacing: 0.35em;
text-transform: uppercase;
color: var(--text-tertiary);
margin-bottom: 22px;
opacity: 0;
animation: fadeSlideIn 1s 0.55s cubic-bezier(0.22, 0.1, 0.12, 1) forwards;
word-spacing: 0.3em;
}
.title {
font-family: 'Cormorant Garamond', 'EB Garamond', serif;
font-weight: 400;
font-size: clamp(2.8rem, 6.5vw, 4.6rem);
line-height: 1.08;
letter-spacing: 0.015em;
color: var(--text-primary);
margin-bottom: 8px;
opacity: 0;
animation: fadeSlideIn 1s 0.7s cubic-bezier(0.22, 0.1, 0.12, 1) forwards;
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}
.title .italic {
font-style: italic;
font-weight: 300;
color: #5a4e48;
letter-spacing: 0.03em;
}
.subtitle {
font-family: 'Cormorant Garamond', serif;
font-weight: 300;
font-style: italic;
font-size: clamp(1rem, 2.2vw, 1.35rem);
letter-spacing: 0.06em;
color: var(--text-secondary);
margin-bottom: 36px;
opacity: 0;
animation: fadeSlideIn 1s 0.85s cubic-bezier(0.22, 0.1, 0.12, 1) forwards;
}
.verse-block {
margin: 8px 0 36px;
opacity: 0;
animation: fadeSlideIn 1s 1s cubic-bezier(0.22, 0.1, 0.12, 1) forwards;
}
.verse-block p {
font-family: 'Cormorant Garamond', serif;
font-weight: 300;
font-size: clamp(1rem, 2vw, 1.2rem);
line-height: 1.9;
letter-spacing: 0.025em;
color: #5c524c;
margin: 0;
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}
.verse-block p+p {
margin-top: 6px;
}
.verse-block .em-dash {
color: #b8a89a;
margin: 0 4px;
font-weight: 200;
}
/* —— Start button —— */
.start-button-wrapper {
margin: 24px 0 32px;
opacity: 0;
animation: fadeSlideIn 1s 1.08s cubic-bezier(0.22, 0.1, 0.12, 1) forwards;
}
.start-button {
display: inline-block;
padding: 16px 42px;
font-family: 'Inter', 'Cormorant Garamond', sans-serif;
font-weight: 300;
font-size: 0.9rem;
letter-spacing: 0.28em;
text-transform: uppercase;
color: #5c4f48;
background: rgba(245, 240, 235, 0.65);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
border: 1px solid rgba(180, 160, 145, 0.35);
border-radius: 2px;
text-decoration: none;
transition: all 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
box-shadow: 0 2px 12px rgba(140, 120, 100, 0.08);
position: relative;
overflow: hidden;
cursor: pointer;
}
.start-button::after {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(circle at center, rgba(210, 185, 160, 0.3) 0%, transparent 70%);
opacity: 0;
transition: opacity 0.45s ease;
pointer-events: none;
}
.start-button:hover {
color: #3c332e;
border-color: rgba(155, 135, 120, 0.55);
background: rgba(250, 245, 238, 0.75);
box-shadow: 0 4px 22px rgba(130, 110, 90, 0.18);
transform: translateY(-1px);
}
.start-button:hover::after {
opacity: 1;
}
.start-button:active {
transform: translateY(0);
transition: all 0.1s ease;
box-shadow: 0 1px 6px rgba(120, 100, 80, 0.12);
}
/* —— Bottom accent —— */
.bottom-accent {
display: flex;
align-items: center;
gap: 10px;
margin-top: 12px;
opacity: 0;
animation: fadeSlideIn 1s 1.15s cubic-bezier(0.22, 0.1, 0.12, 1) forwards;
}
.bottom-accent .mini-dot {
width: 3px;
height: 3px;
border-radius: 50%;
background: rgba(160, 140, 125, 0.45);
flex-shrink: 0;
}
.bottom-accent .thin-line {
width: 32px;
height: 1px;
background: rgba(160, 140, 125, 0.3);
flex-shrink: 0;
}
/* —— Quote attribution —— */
.attribution {
font-family: 'Inter', sans-serif;
font-weight: 200;
font-size: 0.7rem;
letter-spacing: 0.25em;
text-transform: uppercase;
color: #b0a39a;
margin-top: 40px;
opacity: 0;
animation: fadeSlideIn 1s 1.3s cubic-bezier(0.22, 0.1, 0.12, 1) forwards;
}
/* —— Cursor glow —— */
.cursor-glow {
position: fixed;
pointer-events: none;
z-index: 100;
width: 180px;
height: 180px;
border-radius: 50%;
background: radial-gradient(circle, rgba(220, 200, 180, 0.18) 0%, rgba(220, 200, 180, 0) 70%);
transform: translate(-50%, -50%);
transition: opacity 0.4s ease;
opacity: 0;
will-change: left, top, opacity;
}
body:hover .cursor-glow {
opacity: 1;
}
/* —— Responsive —— */
@media (max-width: 600px) {
.main-container {
width: 94vw;
padding: 36px 24px;
border-radius: 1px;
}
.orb {
filter: blur(60px);
}
.orb--lavender {
width: 240px;
height: 240px;
top: -10%;
left: -15%;
}
.orb--rose {
width: 200px;
height: 200px;
top: 40%;
right: -20%;
}
.orb--gold {
width: 180px;
height: 180px;
bottom: -10%;
left: 15%;
}
.orb--mist {
width: 160px;
height: 160px;
top: 5%;
right: 10%;
}
.orb--blush {
width: 140px;
height: 140px;
bottom: 15%;
left: 60%;
}
.cursor-glow {
display: none;
}
.start-button {
padding: 14px 32px;
font-size: 0.8rem;
letter-spacing: 0.22em;
}
}
</style>
<!--
浏览器能力前置检测(landing 轻量版)。
与 start.html 中的同步检测一致;不在此阻止跳转,而是把"Start"按钮置为不可用并提示。
最终拦截仍在 start.html 中完成(document.write + window.stop 阻止 wasm 加载)。
-->
<script>
(function () {
if (new URLSearchParams(location.search).get('force') === '1') return;
var checks = {
wasm: function () {
return typeof WebAssembly === 'object'
&& typeof WebAssembly.instantiate === 'function';
},
webgpu: function () { return 'gpu' in navigator; },
opfs: function () {
return !!(navigator.storage
&& typeof navigator.storage.getDirectory === 'function');
},
webrtc: function () {
return typeof RTCPeerConnection === 'function'
&& 'createDataChannel' in RTCPeerConnection.prototype;
},
websocket: function () { return typeof WebSocket === 'function'; },
pointerlock: function () { return 'requestPointerLock' in HTMLElement.prototype; }
};
var required = ['wasm', 'webgpu', 'opfs', 'webrtc', 'websocket', 'pointerlock'];
var missing = required.filter(function (k) { return !checks[k](); });
// 检测移动设备:Android / iOS 手机和平板
// 现代 Android Chrome 虽通过所有 API 检测,但游戏无触屏控件,不适用于移动端
var ua = navigator.userAgent || '';
var isMobile = /Mobi|Android|iPhone|iPad|iPod/i.test(ua)
|| (navigator.maxTouchPoints > 2 && /Macintosh/i.test(ua));
// 全部满足 + 非移动设备 → 不干预 UI
if (!missing.length && !isMobile) return;
// 仅 WebRTC 缺失 + 非移动设备(单机仍可玩)→ 不干预 UI
if (!isMobile && missing.length === 1 && missing[0] === 'webrtc') return;
document.addEventListener('DOMContentLoaded', function () {
var btn = document.querySelector('.start-button');
if (!btn) return;
btn.textContent = 'Unsupported Browser';
btn.title = isMobile ? '移动设备暂不支持' : '缺失:' + missing.join(', ');
btn.style.opacity = '0.55';
btn.style.cursor = 'not-allowed';
btn.addEventListener('click', function (e) {
e.preventDefault();
if (isMobile && !missing.length) {
alert(
'VoxWeb 暂不支持移动端浏览器。\n\n' +
'游戏需要键盘和鼠标操作,触屏控件尚未实现。\n' +
'请使用桌面 Chrome / Edge 113+ 打开本页面。'
);
} else {
var lines = [];
if (isMobile) lines.push('移动设备(触屏操作未支持)');
lines = lines.concat(missing);
alert(
'您的浏览器缺少 VoxWeb 所需能力:\n ' + lines.join(', ') +
'\n\n推荐 Chrome / Edge 113+、Firefox 115+(WebGPU 需 nightly)、Safari 17+。' +
'\n仅供开发调试可访问 /start?force=1 跳过检测。'
);
}
});
});
})();
</script>
</head>
<body>
<!-- Ambient light orbs -->
<div class="ambient-layer" aria-hidden="true">
<div class="orb orb--lavender"></div>
<div class="orb orb--rose"></div>
<div class="orb orb--gold"></div>
<div class="orb orb--mist"></div>
<div class="orb orb--blush"></div>
</div>
<!-- Floating particles -->
<div class="particles-container" id="particlesContainer" aria-hidden="true"></div>
<!-- Cursor glow -->
<div class="cursor-glow" id="cursorGlow" aria-hidden="true"></div>
<!-- Main content -->
<main class="main-container">
<div class="ornament-rule">
<span class="line"></span>
<span class="dot"></span>
<span class="line"></span>
</div>
<p class="supratitle">An Impression</p>
<h1 class="title">
Light<span class="italic">fall</span>  on  Still Water
</h1>
<p class="subtitle">the afternoon dissolves into color</p>
<div class="verse-block">
<p>
Somewhere between the lavender hour<span class="em-dash">—</span><br>
and the slow unwinding of the sun,<br>
the world forgets its edges.
</p>
<p>
A breath of gold across the water<span class="em-dash">—</span><br>
a ripple that was never really there.
</p>
</div>
<!-- Start button added here -->
<div class="start-button-wrapper">
<a href="/start" class="start-button">Start</a>
</div>
<div class="bottom-accent">
<span class="thin-line"></span>
<span class="mini-dot"></span>
<span class="thin-line"></span>
</div>
<p class="attribution">after the manner of Claude Monet</p>
</main>
<script>
(function() {
// ── Floating particles ──────────────────────────
const particlesContainer = document.getElementById('particlesContainer');
const particleColors = [
'rgba(210,185,165,0.7)',
'rgba(195,175,190,0.6)',
'rgba(220,200,180,0.65)',
'rgba(185,170,155,0.55)',
'rgba(200,180,195,0.6)',
'rgba(215,195,175,0.6)',
'rgba(190,175,200,0.55)',
];
const particleCount = 28;
for (let i = 0; i < particleCount; i++) {
const particle = document.createElement('div');
particle.classList.add('particle');
const size = Math.random() * 3.5 + 1.5;
const x = Math.random() * 94 + 3;
const duration = Math.random() * 14 + 16;
const delay = Math.random() * 20;
const drift = (Math.random() - 0.5) * 50;
const peakOpacity = Math.random() * 0.35 + 0.3;
const blur = Math.random() * 1.5 + 0.4;
const color = particleColors[Math.floor(Math.random() * particleColors.length)];
particle.style.setProperty('--size', size + 'px');
particle.style.setProperty('--x', x + '%');
particle.style.setProperty('--float-duration', duration + 's');
particle.style.setProperty('--float-delay', delay + 's');
particle.style.setProperty('--drift', drift + 'px');
particle.style.setProperty('--peak-opacity', peakOpacity);
particle.style.setProperty('--blur', blur + 'px');
particle.style.setProperty('--particle-color', color);
particlesContainer.appendChild(particle);
}
// ── Cursor glow follow ─────────────────────────
const cursorGlow = document.getElementById('cursorGlow');
let mouseX = -200;
let mouseY = -200;
let currentX = -200;
let currentY = -200;
let isTouchDevice = false;
document.addEventListener('mousemove', function(e) {
mouseX = e.clientX;
mouseY = e.clientY;
isTouchDevice = false;
});
document.addEventListener('touchmove', function(e) {
mouseX = e.touches[0].clientX;
mouseY = e.touches[0].clientY;
isTouchDevice = true;
}, { passive: true });
document.addEventListener('touchstart', function(e) {
mouseX = e.touches[0].clientX;
mouseY = e.touches[0].clientY;
isTouchDevice = true;
}, { passive: true });
document.addEventListener('mouseleave', function() {
mouseX = -300;
mouseY = -300;
});
function animateGlow() {
const lerpFactor = 0.08;
currentX += (mouseX - currentX) * lerpFactor;
currentY += (mouseY - currentY) * lerpFactor;
if (!isTouchDevice && mouseX > -100 && mouseY > -100) {
cursorGlow.style.left = currentX + 'px';
cursorGlow.style.top = currentY + 'px';
cursorGlow.style.opacity = '1';
} else if (isTouchDevice && mouseX > -100) {
cursorGlow.style.left = currentX + 'px';
cursorGlow.style.top = currentY + 'px';
cursorGlow.style.opacity = '0.7';
} else {
cursorGlow.style.opacity = '0';
}
requestAnimationFrame(animateGlow);
}
animateGlow();
// ── Subtle parallax on orbs with scroll (if any) ──
const orbs = document.querySelectorAll('.orb');
let scrollY = 0;
window.addEventListener('scroll', function() {
scrollY = window.scrollY;
}, { passive: true });
function subtleOrbShift() {
const shift = scrollY * 0.015;
orbs.forEach((orb, index) => {
const individualShift = shift * (0.6 + index * 0.2);
orb.style.marginTop = individualShift + 'px';
});
requestAnimationFrame(subtleOrbShift);
}
subtleOrbShift();
})();
</script>
</body>
</html>