File size: 41,756 Bytes
91a3dbe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Human Agent Interface</title>
    <meta
      name="description"
      content="Human Agent Interface turns messy AI work into a safe, scoped, agent-ready next action."
    >
    <meta property="og:title" content="Human Agent Interface">
    <meta
      property="og:description"
      content="The next interface is not graphical. It is agentic."
    >
    <meta property="og:type" content="website">
    <style>
      :root {
        color-scheme: dark;
        --ink: #f7f1df;
        --muted: #b7ad97;
        --dim: #756d5e;
        --void: #090a08;
        --panel: rgba(247, 241, 223, 0.065);
        --panel-strong: rgba(247, 241, 223, 0.13);
        --line: rgba(247, 241, 223, 0.18);
        --line-soft: rgba(247, 241, 223, 0.1);
        --signal: #a7ff4f;
        --copper: #ff9f5f;
        --red: #ff4d4d;
        --cyan: #7dd8ff;
        --max: 1160px;
      }

      * {
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        margin: 0;
        min-width: 320px;
        color: var(--ink);
        background:
          radial-gradient(circle at 20% 10%, rgba(167, 255, 79, 0.12), transparent 26rem),
          radial-gradient(circle at 80% 18%, rgba(255, 159, 95, 0.1), transparent 22rem),
          linear-gradient(180deg, #090a08 0%, #11100d 48%, #070806 100%);
        font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
        line-height: 1.5;
        overflow-x: hidden;
      }

      body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 5;
        opacity: 0.32;
        background-image:
          linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
        background-size: 72px 72px;
        mask-image: linear-gradient(180deg, black, transparent 72%);
      }

      a {
        color: inherit;
      }

      .site-shell {
        position: relative;
        z-index: 1;
      }

      .hero {
        position: relative;
        min-height: 100svh;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        overflow: hidden;
        padding: 32px clamp(18px, 4vw, 56px) 48px;
      }

      .hero-canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0.74;
      }

      .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
          linear-gradient(90deg, rgba(9, 10, 8, 0.88) 0%, rgba(9, 10, 8, 0.6) 52%, rgba(9, 10, 8, 0.18) 100%),
          linear-gradient(180deg, rgba(9, 10, 8, 0.18) 0%, rgba(9, 10, 8, 0.92) 100%);
      }

      .nav {
        position: absolute;
        inset: 0 0 auto;
        z-index: 12;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 24px clamp(18px, 4vw, 56px);
      }

      .nav-actions {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: flex-end;
      }

      .nav-link {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
        color: var(--muted);
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.72rem;
        text-decoration: none;
        text-transform: uppercase;
        border: 1px solid transparent;
        transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
      }

      .nav-link:hover,
      .nav-link:focus-visible {
        color: var(--ink);
        border-color: var(--line-soft);
        background: rgba(247, 241, 223, 0.045);
      }

      .brand {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.82rem;
        text-transform: uppercase;
        color: var(--muted);
      }

      .brand-mark {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        background: rgba(247, 241, 223, 0.04);
        color: var(--signal);
      }

      .nav-cta {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 18px;
        border: 1px solid rgba(167, 255, 79, 0.44);
        background: rgba(167, 255, 79, 0.09);
        color: var(--ink);
        text-decoration: none;
        font-size: 0.86rem;
        font-weight: 700;
        transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
      }

      .nav-cta:hover,
      .nav-cta:focus-visible {
        transform: translateY(-2px);
        background: rgba(167, 255, 79, 0.16);
        border-color: rgba(167, 255, 79, 0.8);
      }

      .mobile-samuel-link {
        display: none;
      }

      .hero-inner {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: var(--max);
        min-width: 0;
        margin: 0 auto;
        padding-top: 72px;
      }

      .lineage {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 700px;
        margin-bottom: clamp(36px, 6vw, 78px);
      }

      .epoch {
        min-height: 92px;
        padding: 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border: 1px solid var(--line-soft);
        background: rgba(9, 10, 8, 0.54);
        backdrop-filter: blur(12px);
      }

      .epoch strong {
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(1.6rem, 4vw, 3.1rem);
        line-height: 0.86;
        font-weight: 500;
      }

      .epoch span {
        color: var(--dim);
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.7rem;
        text-transform: uppercase;
      }

      .epoch.is-current {
        border-color: rgba(167, 255, 79, 0.72);
        background:
          linear-gradient(135deg, rgba(167, 255, 79, 0.18), rgba(125, 216, 255, 0.06)),
          rgba(9, 10, 8, 0.7);
        box-shadow: 0 0 46px rgba(167, 255, 79, 0.14);
      }

      .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 18px;
        color: var(--signal);
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.76rem;
        text-transform: uppercase;
      }

      .eyebrow::before {
        content: "";
        width: 44px;
        height: 1px;
        background: var(--signal);
      }

      h1 {
        width: 100%;
        max-width: 1040px;
        margin: 0;
        font-family: Georgia, "Times New Roman", serif;
        font-weight: 500;
        font-size: clamp(3rem, 7.6vw, 7.2rem);
        line-height: 0.94;
        letter-spacing: 0;
        overflow-wrap: break-word;
      }

      .hero-copy {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.48fr);
        gap: clamp(24px, 6vw, 96px);
        align-items: end;
        margin-top: clamp(28px, 5vw, 56px);
      }

      .lead {
        max-width: 720px;
        margin: 0;
        color: var(--muted);
        font-size: clamp(1.12rem, 2vw, 1.62rem);
        min-width: 0;
      }

      .mobile-break {
        display: none;
      }

      .desktop-break {
        display: block;
      }

      .lead strong {
        color: var(--ink);
        font-weight: 700;
      }

      .hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-start;
      }

      .button {
        min-height: 52px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 0 22px;
        border: 1px solid var(--line);
        background: var(--panel);
        color: var(--ink);
        text-decoration: none;
        font-weight: 800;
        transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
      }

      .button.primary {
        border-color: rgba(167, 255, 79, 0.68);
        background: var(--signal);
        color: #11150d;
      }

      .button:hover,
      .button:focus-visible {
        transform: translateY(-2px);
        border-color: rgba(247, 241, 223, 0.42);
        background: var(--panel-strong);
      }

      .button.primary:hover,
      .button.primary:focus-visible {
        border-color: var(--signal);
        background: #c4ff86;
      }

      .section {
        padding: clamp(70px, 10vw, 150px) clamp(18px, 4vw, 56px);
      }

      .section-inner {
        width: 100%;
        max-width: var(--max);
        margin: 0 auto;
      }

      .split {
        display: grid;
        grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.58fr);
        gap: clamp(28px, 6vw, 90px);
        align-items: start;
      }

      h2 {
        margin: 0;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(2.4rem, 6vw, 5.8rem);
        line-height: 0.98;
        font-weight: 500;
        letter-spacing: 0;
      }

      .kicker {
        margin: 0 0 16px;
        color: var(--copper);
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.78rem;
        text-transform: uppercase;
      }

      .body-copy {
        margin: 0;
        color: var(--muted);
        font-size: clamp(1.02rem, 1.7vw, 1.28rem);
      }

      .body-copy + .body-copy {
        margin-top: 20px;
      }

      .fit-call {
        border-block: 1px solid var(--line-soft);
        background:
          linear-gradient(180deg, rgba(167, 255, 79, 0.055), rgba(247, 241, 223, 0.015)),
          #0b0c09;
      }

      .fit-call-grid {
        display: grid;
        grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.52fr);
        gap: clamp(28px, 6vw, 90px);
        align-items: start;
      }

      .fit-hook {
        max-width: 680px;
      }

      .intake-list {
        display: grid;
        gap: 10px;
        margin-top: 30px;
        counter-reset: intake;
      }

      .intake-question {
        min-height: 92px;
        display: grid;
        grid-template-columns: 44px 1fr;
        gap: 14px;
        padding: 16px;
        border: 1px solid var(--line-soft);
        background: rgba(247, 241, 223, 0.045);
        counter-increment: intake;
      }

      .intake-question::before {
        content: "0" counter(intake);
        color: var(--signal);
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.78rem;
      }

      .intake-question strong {
        display: block;
        color: var(--ink);
        font-size: 1.02rem;
      }

      .intake-question span {
        display: block;
        margin-top: 6px;
        color: var(--muted);
        font-size: 0.95rem;
      }

      .pilot-note {
        margin-top: 22px;
        padding: 16px 0 0 16px;
        border-left: 2px solid rgba(167, 255, 79, 0.62);
        color: var(--muted);
        font-size: 1rem;
      }

      .output-panel {
        padding: clamp(22px, 4vw, 30px);
        border: 1px solid var(--line);
        background:
          linear-gradient(135deg, rgba(247, 241, 223, 0.08), rgba(247, 241, 223, 0.025)),
          rgba(9, 10, 8, 0.58);
      }

      .output-panel h3 {
        margin: 18px 0 14px;
        color: var(--ink);
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(2rem, 4vw, 3.45rem);
        line-height: 0.98;
        font-weight: 500;
      }

      .output-panel p {
        margin: 0;
        color: var(--muted);
        font-size: 1rem;
      }

      .output-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 24px 0 0;
        padding: 0;
        list-style: none;
      }

      .output-list li {
        min-height: 46px;
        display: flex;
        align-items: center;
        padding: 10px 12px;
        border: 1px solid var(--line-soft);
        color: var(--ink);
        background: rgba(247, 241, 223, 0.04);
        font-size: 0.94rem;
      }

      .trust-bridge {
        margin-top: 22px;
        padding-top: 18px;
        border-top: 1px solid var(--line);
      }

      .fit-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 24px;
      }

      .quote-rail {
        display: grid;
        gap: 12px;
      }

      .quote-tile {
        min-height: 112px;
        padding: 20px;
        display: grid;
        align-content: space-between;
        gap: 18px;
        border-left: 2px solid var(--line);
        background: linear-gradient(90deg, rgba(247, 241, 223, 0.08), rgba(247, 241, 223, 0.025));
      }

      .quote-tile strong {
        display: block;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(1.3rem, 2.7vw, 2.25rem);
        line-height: 1;
        font-weight: 500;
      }

      .quote-tile span {
        color: var(--dim);
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.72rem;
        text-transform: uppercase;
      }

      .quote-tile:nth-child(2) {
        border-left-color: var(--red);
      }

      .quote-tile:nth-child(3) {
        border-left-color: var(--signal);
      }

      .conversion {
        background:
          linear-gradient(180deg, rgba(247, 241, 223, 0.04), rgba(247, 241, 223, 0.01)),
          #0c0d0a;
        border-block: 1px solid var(--line-soft);
      }

      .conversion-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 36px;
      }

      .state {
        min-height: 360px;
        padding: clamp(20px, 4vw, 34px);
        border: 1px solid var(--line-soft);
        background: rgba(247, 241, 223, 0.045);
        position: relative;
        overflow: hidden;
      }

      .state::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.26;
        background-image: linear-gradient(135deg, transparent 0 46%, currentColor 47% 48%, transparent 49% 100%);
        background-size: 34px 34px;
      }

      .state.before {
        color: rgba(255, 77, 77, 0.8);
      }

      .state.after {
        color: rgba(167, 255, 79, 0.74);
      }

      .state-content {
        position: relative;
        z-index: 1;
      }

      .state-label {
        color: var(--dim);
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.78rem;
        text-transform: uppercase;
      }

      .state h3 {
        margin: 18px 0 26px;
        color: var(--ink);
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(2rem, 4.2vw, 4.2rem);
        line-height: 0.98;
        font-weight: 500;
      }

      .state ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 12px;
        color: var(--muted);
        font-size: 1rem;
      }

      .state li {
        display: grid;
        grid-template-columns: 18px 1fr;
        gap: 10px;
        align-items: start;
      }

      .state li::before {
        content: "";
        width: 9px;
        height: 9px;
        margin-top: 8px;
        background: currentColor;
      }

      .method-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
        margin-top: 46px;
      }

      .step {
        min-height: 210px;
        padding: 18px;
        border: 1px solid var(--line-soft);
        background: rgba(247, 241, 223, 0.04);
      }

      .step span {
        color: var(--signal);
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.75rem;
      }

      .step h3 {
        margin: 54px 0 12px;
        color: var(--ink);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.55rem;
        line-height: 1.05;
        font-weight: 500;
      }

      .step p {
        margin: 0;
        color: var(--muted);
        font-size: 0.95rem;
      }

      .wide-statement {
        padding: clamp(70px, 10vw, 140px) clamp(18px, 4vw, 56px);
        background: var(--ink);
        color: #10110d;
      }

      .wide-statement .section-inner {
        display: grid;
        grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.42fr);
        gap: clamp(26px, 5vw, 72px);
        align-items: end;
      }

      .wide-statement p {
        margin: 0;
        color: rgba(16, 17, 13, 0.72);
        font-size: clamp(1rem, 1.7vw, 1.32rem);
      }

      .tool-line {
        margin: 0;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(2.5rem, 7vw, 6.8rem);
        line-height: 0.96;
        font-weight: 500;
        letter-spacing: 0;
      }

      .authority-teaser {
        border-block: 1px solid var(--line-soft);
        background:
          linear-gradient(180deg, rgba(247, 241, 223, 0.035), rgba(247, 241, 223, 0.01)),
          #0d0e0b;
      }

      .authority-grid {
        display: grid;
        grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.58fr);
        gap: clamp(28px, 6vw, 90px);
        align-items: end;
      }

      .authority-panel {
        padding: 24px;
        border-left: 1px solid var(--line);
        background: linear-gradient(90deg, rgba(247, 241, 223, 0.07), transparent);
      }

      .authority-panel span {
        display: block;
        margin-bottom: 14px;
        color: var(--signal);
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.72rem;
        text-transform: uppercase;
      }

      .authority-panel p {
        margin: 0 0 22px;
        color: var(--muted);
        font-size: 1.05rem;
      }

      .contact {
        min-height: 72svh;
        display: grid;
        align-items: center;
      }

      .contact-panel {
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.52fr);
        gap: clamp(24px, 6vw, 88px);
        align-items: center;
      }

      .contact-note {
        border-top: 1px solid var(--line);
        padding-top: 22px;
      }

      .contact-note p {
        margin: 0;
        color: var(--muted);
        font-size: 1.05rem;
      }

      footer {
        padding: 28px clamp(18px, 4vw, 56px);
        color: var(--dim);
        font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
        font-size: 0.72rem;
        text-transform: uppercase;
        border-top: 1px solid var(--line-soft);
      }

      footer .section-inner {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: wrap;
      }

      .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 700ms ease, transform 700ms ease;
      }

      .js .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
      }

      @media (max-width: 900px) {
        .hero {
          min-height: auto;
          padding-top: 116px;
        }

        .hero-copy,
        .split,
        .fit-call-grid,
        .authority-grid,
        .wide-statement .section-inner,
        .contact-panel {
          grid-template-columns: 1fr;
        }

        .conversion-grid {
          grid-template-columns: 1fr;
        }

        .method-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }

      @media (max-width: 620px) {
        .hero {
          width: 100vw;
          padding-left: 20px;
          padding-right: 20px;
        }

        .nav {
          padding-top: 18px;
          width: 100vw;
          left: 0;
          right: auto;
          padding-left: 20px;
          padding-right: 20px;
        }

        .brand span:not(.brand-mark) {
          display: none;
        }

        .nav-cta {
          display: none;
        }

        .nav-actions {
          display: inline-flex;
          gap: 8px;
          max-width: calc(100vw - 92px);
        }

        .desktop-nav-link {
          display: none;
        }

        .nav-link {
          min-height: 36px;
          padding: 0 10px;
          font-size: 0.62rem;
        }

        .mobile-samuel-link {
          min-height: 36px;
          display: inline-flex;
          align-items: center;
          justify-content: center;
          margin-left: auto;
          padding: 0 10px;
          border: 1px solid var(--line-soft);
          color: var(--muted);
          font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
          font-size: 0.62rem;
          text-decoration: none;
          text-transform: uppercase;
        }

        .hero-inner,
        .lineage,
        h1,
        .hero-copy,
        .lead {
          width: 350px;
          max-width: calc(100vw - 40px);
        }

        .hero-inner {
          margin-left: 0;
          margin-right: 0;
          padding-top: 0;
        }

        .lineage {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          margin-bottom: 24px;
        }

        .epoch {
          min-height: 68px;
        }

        h1 {
          font-size: clamp(2.35rem, 11.5vw, 3.1rem);
          line-height: 0.98;
        }

        .lead {
          font-size: 1rem;
        }

        .mobile-break {
          display: block;
        }

        .desktop-break {
          display: inline;
        }

        .method-grid {
          grid-template-columns: 1fr;
        }

        .step {
          min-height: 170px;
        }

        .step h3 {
          margin-top: 30px;
        }

        .button {
          width: 100%;
        }

        .intake-question,
        .output-list {
          grid-template-columns: 1fr;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          animation-duration: 0.001ms !important;
          animation-iteration-count: 1 !important;
          scroll-behavior: auto !important;
          transition-duration: 0.001ms !important;
        }
      }
    </style>
  </head>
  <body>
    <main class="site-shell">
      <section class="hero" aria-labelledby="hero-title">
        <canvas class="hero-canvas" id="agentField" aria-hidden="true"></canvas>
        <nav class="nav" aria-label="Main navigation">
          <a class="brand" href="#top" aria-label="Human Agent Interface home">
            <span class="brand-mark">HAI</span>
            <span>Human Agent Interface</span>
          </a>
          <a class="mobile-samuel-link" href="./samuel/">Samuel's work</a>
          <div class="nav-actions">
            <a class="nav-link desktop-nav-link" href="./product/">Products</a>
            <a class="nav-link desktop-nav-link" href="./tripwire-map/">Tripwire-Map</a>
            <a class="nav-link desktop-nav-link" href="./fit/">Human Fit</a>
            <a class="nav-link desktop-nav-link" href="./what_it_is/">Where HAI comes from</a>
            <a class="nav-link" href="./samuel/">Samuel's work</a>
            <a
              class="nav-cta"
              href="mailto:samuel@human-agent-interface.com?subject=20%20min%20HAI%20fit%20call&amp;body=Hi%20Samuel%2C%0D%0A%0D%0AI%20want%20to%20book%20a%2020%20min%20HAI%20fit%20call.%0D%0A%0D%0A1.%20What%20agent%20workflow%20is%20creating%20confusion%3F%0D%0A%0D%0A2.%20Where%20do%20I%20lose%20control%2C%20overview%2C%20or%20trust%3F%0D%0A%0D%0A3.%20What%20would%20be%20useful%20after%204%20hours%3F%0D%0A%0D%0APreferred%20time%20windows%3A"
            >Book fit call</a>
          </div>
        </nav>

        <div class="hero-inner" id="top">
          <div class="lineage reveal" aria-label="Interface evolution">
            <div class="epoch">
              <strong>CLI</strong>
              <span>commands</span>
            </div>
            <div class="epoch">
              <strong>TUI</strong>
              <span>terminal</span>
            </div>
            <div class="epoch">
              <strong>GUI</strong>
              <span>screens</span>
            </div>
            <div class="epoch is-current">
              <strong>HAI</strong>
              <span>agency</span>
            </div>
          </div>

          <p class="eyebrow reveal">For people stuck inside agent threads</p>
          <h1 class="reveal" id="hero-title">
            AI work should create momentum.
            <span class="desktop-break"></span>
            For most people, it creates confusion.
          </h1>

          <div class="hero-copy">
            <p class="lead reveal">
              <strong>HAI</strong> turns messy AI work into a safe, scoped,
              agent-ready next action.
            </p>
            <div class="hero-actions reveal">
              <a
                class="button primary"
                href="mailto:samuel@human-agent-interface.com?subject=20%20min%20HAI%20fit%20call&amp;body=Hi%20Samuel%2C%0D%0A%0D%0AI%20want%20to%20book%20a%2020%20min%20HAI%20fit%20call.%0D%0A%0D%0A1.%20What%20agent%20workflow%20is%20creating%20confusion%3F%0D%0A%0D%0A2.%20Where%20do%20I%20lose%20control%2C%20overview%2C%20or%20trust%3F%0D%0A%0D%0A3.%20What%20would%20be%20useful%20after%204%20hours%3F%0D%0A%0D%0APreferred%20time%20windows%3A"
              >Book 20 min HAI fit call</a>
              <a class="button" href="./product/">See products</a>
              <a class="button" href="./fit/">Human Fit</a>
              <a class="button" href="./what_it_is/">Where HAI comes from</a>
              <a class="button" href="./samuel/">Samuel's work</a>
            </div>
          </div>
        </div>
      </section>

      <section class="section" aria-labelledby="confusion-title">
        <div class="section-inner split">
          <div>
            <p class="kicker reveal">The customer pain</p>
            <h2 class="reveal" id="confusion-title">AI work creates more confusion than momentum.</h2>
          </div>
          <div>
            <p class="body-copy reveal">
              You start with an idea, open three chats, ask for a plan, launch an agent,
              paste context into another tool, then lose the thread. The output is not
              wrong. It is just not owned.
            </p>
            <p class="body-copy reveal">
              HAI exists for that moment: when the human state is messy, the agents are
              loud, and the next responsible action is not obvious.
            </p>
          </div>
        </div>
      </section>

      <section class="section fit-call" id="fit-call" aria-labelledby="fit-call-title">
        <div class="section-inner fit-call-grid">
          <div class="fit-hook">
            <p class="kicker reveal">20 min HAI fit call</p>
            <h2 class="reveal" id="fit-call-title">Where do you lose control in your agent workflow?</h2>
            <p class="body-copy reveal">
              Bring one real workflow, not a transformation plan. The call is for finding
              whether HAI can turn your current agent mess into a bounded 4h audit.
            </p>

            <div class="intake-list reveal" aria-label="Mini intake questions">
              <div class="intake-question">
                <div>
                  <strong>What agent workflow is creating confusion?</strong>
                  <span>Which chats, tools, agents, handoffs, or projects are involved?</span>
                </div>
              </div>
              <div class="intake-question">
                <div>
                  <strong>Where do you lose control, overview, or trust?</strong>
                  <span>Name the point where output keeps growing but ownership gets weaker.</span>
                </div>
              </div>
              <div class="intake-question">
                <div>
                  <strong>What would be useful after 4 hours?</strong>
                  <span>A clearer setup, a stop rule, a verifier path, or one next action packet.</span>
                </div>
              </div>
            </div>

            <p class="pilot-note reveal">
              Pilot status: testing HAI with the first 5-10 real workflows. One workflow,
              one owner packet, one follow-up.
            </p>
          </div>

          <aside class="output-panel reveal" aria-label="4 hour audit output">
            <span class="state-label">Visible output</span>
            <h3>What you get after the 4h audit.</h3>
            <p>
              A compact owner packet shaped by practical depth: Samuel has already seen
              how agent workflows drift into overload, weak ownership, and false done signals.
            </p>
            <ul class="output-list">
              <li>Workflow diagnosis</li>
              <li>3 friction points</li>
              <li>3 immediate changes</li>
              <li>Human gates</li>
              <li>Verification rule</li>
              <li>Next Action Packet</li>
            </ul>
            <p class="trust-bridge">
              The trust bridge is simple: he has already been where your problem can go.
              The value is learning where your agent system breaks, who owns the decision,
              and how the next step becomes checkable.
            </p>
            <div class="fit-actions">
              <a
                class="button primary"
                href="mailto:samuel@human-agent-interface.com?subject=20%20min%20HAI%20fit%20call&amp;body=Hi%20Samuel%2C%0D%0A%0D%0AI%20want%20to%20book%20a%2020%20min%20HAI%20fit%20call.%0D%0A%0D%0A1.%20What%20agent%20workflow%20is%20creating%20confusion%3F%0D%0A%0D%0A2.%20Where%20do%20I%20lose%20control%2C%20overview%2C%20or%20trust%3F%0D%0A%0D%0A3.%20What%20would%20be%20useful%20after%204%20hours%3F%0D%0A%0D%0APreferred%20time%20windows%3A"
              >Book 20 min HAI fit call</a>
              <a class="button" href="./product/">See the 4h setup</a>
            </div>
          </aside>
        </div>
      </section>

      <section class="wide-statement" aria-label="Human tool statement">
        <div class="section-inner">
          <p class="tool-line reveal">Humans are tool-using animals. Agents are the most powerful tool we have ever built.</p>
          <p class="reveal">
            Voice, text, drawing, terminal, IDE, browser, or background process are only
            surfaces. The real interface is how the human directs, scopes, verifies, and
            stays aligned with a system that can act.
          </p>
        </div>
      </section>

      <section class="section authority-teaser" aria-labelledby="authority-title">
        <div class="section-inner authority-grid">
          <div>
            <p class="kicker reveal">Why trust this work</p>
            <h2 class="reveal" id="authority-title">Samuel has already lived where agent work breaks.</h2>
            <p class="body-copy reveal">
              He has already seen the later-stage version of the problem clients feel early:
              more agents, more output, more dashboards, and less human ownership.
            </p>
          </div>
          <aside class="authority-panel reveal" aria-label="Samuel trust layer">
            <span>Proof of depth</span>
            <p>
              The artifact trail matters because it shows repeated contact with the same failure
              path: Sidecar, HAI, harnesses, control surfaces, Luis handoffs, and failed
              control-tower attempts turned into stricter workflow rules.
            </p>
            <a class="button" href="./samuel/">See Samuel's work</a>
          </aside>
        </div>
      </section>

      <section class="section conversion" id="conversion" aria-labelledby="conversion-title">
        <div class="section-inner">
          <p class="kicker reveal">The product unit is a conversion</p>
          <h2 class="reveal" id="conversion-title">From scattered agent work to one concrete packet.</h2>
          <div class="conversion-grid">
            <article class="state before reveal">
              <div class="state-content">
                <span class="state-label">Before HAI</span>
                <h3>Messy human state</h3>
                <ul>
                  <li>An idea with no shape.</li>
                  <li>A stuck project with unclear ownership.</li>
                  <li>Too many agent threads competing for attention.</li>
                  <li>No trusted next step.</li>
                </ul>
              </div>
            </article>
            <article class="state after reveal">
              <div class="state-content">
                <span class="state-label">After HAI</span>
                <h3>Agent-ready next action</h3>
                <ul>
                  <li>The problem type is named.</li>
                  <li>Human decisions stay with the human.</li>
                  <li>Agent work is bounded and verifiable.</li>
                  <li>The next packet of work is concrete.</li>
                </ul>
              </div>
            </article>
          </div>
        </div>
      </section>

      <section class="section" aria-labelledby="category-title">
        <div class="section-inner split">
          <div>
            <p class="kicker reveal">The interface shift</p>
            <h2 class="reveal" id="category-title">GUI gave us control over screens. HAI gives us control over agency.</h2>
          </div>
          <div class="quote-rail">
            <div class="quote-tile reveal">
              <span>CLI</span>
              <strong>Tell the machine what to run.</strong>
            </div>
            <div class="quote-tile reveal">
              <span>GUI</span>
              <strong>Point at what the software exposes.</strong>
            </div>
            <div class="quote-tile reveal">
              <span>HAI</span>
              <strong>Shape what an agent should do next.</strong>
            </div>
          </div>
        </div>
      </section>

      <section class="section" aria-labelledby="method-title">
        <div class="section-inner">
          <p class="kicker reveal">The minimum loop</p>
          <h2 class="reveal" id="method-title">A human-owned path into agentic work.</h2>
          <div class="method-grid" aria-label="HAI method">
            <article class="step reveal">
              <span>01</span>
              <h3>Intake</h3>
              <p>Capture the messy state without pretending it is already a task.</p>
            </article>
            <article class="step reveal">
              <span>02</span>
              <h3>Classify</h3>
              <p>Name what this is: decision, research, build, repair, or human-only.</p>
            </article>
            <article class="step reveal">
              <span>03</span>
              <h3>Separate</h3>
              <p>Keep judgment, risk, and irreversible choices with the human.</p>
            </article>
            <article class="step reveal">
              <span>04</span>
              <h3>Scope</h3>
              <p>Bound the agent work so it can be executed and checked.</p>
            </article>
            <article class="step reveal">
              <span>05</span>
              <h3>Packet</h3>
              <p>Produce the next concrete action the agent can actually take.</p>
            </article>
          </div>
        </div>
      </section>

      <section class="section contact" id="contact" aria-labelledby="contact-title">
        <div class="section-inner contact-panel">
          <div>
            <p class="kicker reveal">20 min HAI fit call</p>
            <h2 class="reveal" id="contact-title">Bring one workflow where control breaks.</h2>
          </div>
          <div class="contact-note reveal">
            <p>
              Show me one agent workflow that currently creates confusion. Leave with
              the next concrete packet of work: what this is, what an agent should do,
              what you must decide yourself, and what happens next.
            </p>
            <p style="margin-top: 24px;">
              <a
                class="button primary"
                href="mailto:samuel@human-agent-interface.com?subject=20%20min%20HAI%20fit%20call&amp;body=Hi%20Samuel%2C%0D%0A%0D%0AI%20want%20to%20book%20a%2020%20min%20HAI%20fit%20call.%0D%0A%0D%0A1.%20What%20agent%20workflow%20is%20creating%20confusion%3F%0D%0A%0D%0A2.%20Where%20do%20I%20lose%20control%2C%20overview%2C%20or%20trust%3F%0D%0A%0D%0A3.%20What%20would%20be%20useful%20after%204%20hours%3F%0D%0A%0D%0APreferred%20time%20windows%3A"
              >Book 20 min HAI fit call</a>
            </p>
          </div>
        </div>
      </section>
    </main>

    <footer>
      <div class="section-inner">
        <span>Human Agent Interface</span>
        <span>CLI -> TUI -> GUI -> HAI</span>
      </div>
    </footer>

    <script>
      document.documentElement.classList.add("js");

      const canvas = document.getElementById("agentField");
      const ctx = canvas.getContext("2d");
      const media = window.matchMedia("(prefers-reduced-motion: reduce)");
      let width = 0;
      let height = 0;
      let ratio = 1;
      let particles = [];
      let pointer = { x: 0.72, y: 0.38 };

      function resize() {
        ratio = Math.min(window.devicePixelRatio || 1, 2);
        width = canvas.clientWidth;
        height = canvas.clientHeight;
        canvas.width = Math.floor(width * ratio);
        canvas.height = Math.floor(height * ratio);
        ctx.setTransform(ratio, 0, 0, ratio, 0, 0);

        const count = Math.max(38, Math.min(86, Math.floor(width / 18)));
        particles = Array.from({ length: count }, (_, index) => ({
          x: (index * 193) % Math.max(width, 1),
          y: (index * 317) % Math.max(height, 1),
          vx: ((index % 7) - 3) * 0.08,
          vy: (((index * 3) % 9) - 4) * 0.06,
          r: 1.4 + (index % 4) * 0.65
        }));
      }

      function drawGrid(time) {
        ctx.clearRect(0, 0, width, height);
        ctx.globalAlpha = 1;
        ctx.fillStyle = "#090a08";
        ctx.fillRect(0, 0, width, height);

        const spacing = Math.max(54, Math.min(92, width / 14));
        ctx.lineWidth = 1;
        for (let x = -spacing; x < width + spacing; x += spacing) {
          const wave = Math.sin(time * 0.0004 + x * 0.01) * 16;
          ctx.strokeStyle = "rgba(247, 241, 223, 0.055)";
          ctx.beginPath();
          ctx.moveTo(x + wave, 0);
          ctx.lineTo(x - wave * 0.4, height);
          ctx.stroke();
        }
        for (let y = -spacing; y < height + spacing; y += spacing) {
          ctx.strokeStyle = "rgba(247, 241, 223, 0.045)";
          ctx.beginPath();
          ctx.moveTo(0, y);
          ctx.lineTo(width, y + Math.sin(time * 0.0005 + y * 0.01) * 18);
          ctx.stroke();
        }
      }

      function drawParticles(time) {
        const focusX = pointer.x * width;
        const focusY = pointer.y * height;

        for (const point of particles) {
          point.x += media.matches ? 0 : point.vx;
          point.y += media.matches ? 0 : point.vy;

          if (point.x < -20) point.x = width + 20;
          if (point.x > width + 20) point.x = -20;
          if (point.y < -20) point.y = height + 20;
          if (point.y > height + 20) point.y = -20;

          const dx = point.x - focusX;
          const dy = point.y - focusY;
          const distance = Math.sqrt(dx * dx + dy * dy);

          if (distance < 190) {
            ctx.strokeStyle = `rgba(167, 255, 79, ${0.2 * (1 - distance / 190)})`;
            ctx.beginPath();
            ctx.moveTo(focusX, focusY);
            ctx.lineTo(point.x, point.y);
            ctx.stroke();
          }

          ctx.fillStyle = distance < 190 ? "rgba(167, 255, 79, 0.86)" : "rgba(247, 241, 223, 0.28)";
          ctx.beginPath();
          ctx.arc(point.x, point.y, point.r, 0, Math.PI * 2);
          ctx.fill();
        }

        const pulse = 12 + Math.sin(time * 0.003) * 4;
        ctx.strokeStyle = "rgba(167, 255, 79, 0.64)";
        ctx.lineWidth = 1;
        ctx.beginPath();
        ctx.arc(focusX, focusY, pulse, 0, Math.PI * 2);
        ctx.stroke();
        ctx.fillStyle = "rgba(167, 255, 79, 0.18)";
        ctx.beginPath();
        ctx.arc(focusX, focusY, pulse * 2.6, 0, Math.PI * 2);
        ctx.fill();
      }

      function frame(time) {
        drawGrid(time);
        drawParticles(time);
        if (!media.matches) requestAnimationFrame(frame);
      }

      window.addEventListener("resize", resize);
      window.addEventListener("pointermove", (event) => {
        pointer = {
          x: event.clientX / Math.max(window.innerWidth, 1),
          y: event.clientY / Math.max(window.innerHeight, 1)
        };
      });

      const observer = new IntersectionObserver((entries) => {
        for (const entry of entries) {
          if (entry.isIntersecting) entry.target.classList.add("is-visible");
        }
      }, { threshold: 0.14 });

      document.querySelectorAll(".reveal").forEach((element) => observer.observe(element));
      resize();
      requestAnimationFrame(frame);
    </script>
  </body>
</html>