-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
712 lines (699 loc) · 21.2 KB
/
index.html
File metadata and controls
712 lines (699 loc) · 21.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<meta name="description" content="Sheldon K. Salmon — AI Reliability Architect. AION Constitutional Stack. Sovereign Trace Protocol. Grant winner and simulator builder.">
<meta property="og:title" content="AionSystem — Sheldon K. Salmon · AI Reliability Architect">
<meta property="og:description" content="AI Certainty Engineering. Sovereign Trace Protocol. Verified Simulators. Built for operators who cannot afford to guess.">
<meta property="og:type" content="website">
<title>AionSystem — Sheldon K. Salmon · AI Reliability Architect</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=Share+Tech+Mono&family=Barlow+Condensed:ital,wght@0,300;0,400;0,600;0,700;0,900;1,300&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=JetBrains+Mono:wght@300;400;500;700&display=swap" rel="stylesheet">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--bg:#08090b;
--surface:#0e1117;
--panel:#141920;
--border:#1e2730;
--amber:#f0a500;
--amber-d:#b07800;
--amber-l:#ffc947;
--gold:#D4AF37;
--text:#c4d4de;
--muted:#4e5f6a;
--dim:#2a3540;
--red:#ff4d4d;
--cyan:#00d4ff;
--edu:#4ade80;
--quantum:#ce93d8;
--mono:'Share Tech Mono',monospace;
--sans:'Barlow Condensed',sans-serif;
--serif:'Crimson Pro',Georgia,serif;
--jmono:'JetBrains Mono',monospace;
--ease:cubic-bezier(0.16,1,0.3,1);
--font-size-base: clamp(16px, 1vw + 8px, 20px);
--font-size-h1: clamp(48px, 8vw + 16px, 96px);
--font-size-h2: clamp(28px, 4vw + 8px, 44px);
}
body {
background: var(--bg);
color: var(--text);
font-family: var(--sans);
font-size: var(--font-size-base);
line-height: 1.5;
overflow-x: hidden;
}
body::before {
content: '';
position: fixed;
inset: 0;
background-image: linear-gradient(rgba(240,165,0,0.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(240,165,0,0.025) 1px, transparent 1px);
background-size: 48px 48px;
pointer-events: none;
z-index: 0;
}
body::after {
content: '';
position: fixed;
inset: 0;
background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px);
pointer-events: none;
z-index: 0;
}
/* Focus styles for keyboard navigation */
:focus-visible {
outline: 2px solid var(--amber);
outline-offset: 2px;
border-radius: 2px;
}
nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 40px;
height: 56px;
background: rgba(8,9,11,0.92);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
}
.nav-logo {
font-family: var(--mono);
font-size: 13px;
letter-spacing: 3px;
color: var(--amber);
text-transform: uppercase;
text-decoration: none;
display: flex;
align-items: center;
gap: 10px;
}
.nav-logo-img {
width: 28px;
height: 28px;
border-radius: 50%;
object-fit: cover;
}
.nav-logo span { color: var(--muted); }
.nav-links {
display: flex;
gap: 32px;
list-style: none;
}
.nav-links a {
font-family: var(--mono);
font-size: 11px;
letter-spacing: 2px;
color: var(--text);
text-decoration: none;
text-transform: uppercase;
border-bottom: 1px solid transparent;
padding-bottom: 2px;
transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
color: var(--amber);
border-bottom-color: var(--amber);
}
.nav-hamburger {
display: none;
flex-direction: column;
justify-content: space-between;
width: 24px;
height: 18px;
background: none;
border: none;
cursor: pointer;
}
.nav-hamburger span {
width: 100%;
height: 2px;
background: var(--amber);
border-radius: 1px;
transition: transform 0.25s ease;
}
.mobile-nav {
display: none;
position: fixed;
top: 56px;
left: 0;
right: 0;
background: rgba(8,9,11,0.98);
backdrop-filter: blur(16px);
border-bottom: 1px solid var(--border);
flex-direction: column;
padding: 8px 0;
z-index: 99;
}
.mobile-nav a {
font-family: var(--mono);
font-size: 12px;
letter-spacing: 2px;
color: var(--text);
text-decoration: none;
text-transform: uppercase;
padding: 14px 28px;
border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--amber); background: rgba(240,165,0,0.04); }
.hero {
position: relative;
z-index: 1;
min-height: 80vh;
display: flex;
flex-direction: column;
justify-content: center;
padding: 80px 40px 60px;
max-width: 1200px;
margin: 0 auto;
}
.hero-logo-wrap {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 28px;
}
.hero-logo-img {
width: 72px;
height: 72px;
border-radius: 50%;
object-fit: cover;
border: 1px solid rgba(212,174,60,0.2);
}
.hero-logo-wordmark {
font-family: var(--mono);
font-size: 13px;
letter-spacing: 4px;
color: var(--amber);
text-transform: uppercase;
}
.hero-logo-wordmark span { color: var(--muted); }
.hero-logo-tagline {
font-family: var(--mono);
font-size: 9px;
letter-spacing: 2px;
color: var(--muted);
text-transform: uppercase;
}
.hero-eyebrow {
font-family: var(--mono);
font-size: 11px;
letter-spacing: 4px;
color: var(--amber);
text-transform: uppercase;
margin-bottom: 20px;
}
.hero-eyebrow::before {
content: '';
display: inline-block;
width: 24px;
height: 1px;
background: var(--amber);
vertical-align: middle;
margin-right: 12px;
}
.hero-name {
font-family: var(--sans);
font-size: var(--font-size-h1);
font-weight: 900;
letter-spacing: -1px;
line-height: 0.92;
color: var(--text);
text-transform: uppercase;
}
.hero-name em {
display: block;
color: var(--amber);
font-style: normal;
}
.hero-title {
margin-top: 24px;
font-family: var(--mono);
font-size: clamp(13px, 1.6vw, 17px);
color: var(--muted);
letter-spacing: 3px;
text-transform: uppercase;
}
.hero-divider {
width: 64px;
height: 2px;
background: var(--amber);
margin: 32px 0;
}
.hero-question {
font-family: var(--serif);
font-size: clamp(1.5rem, 3.8vw, 2.8rem);
font-weight: 300;
font-style: italic;
max-width: 760px;
margin-bottom: 28px;
}
.hero-question em { font-style: normal; color: var(--amber); }
.hero-mission {
font-family: var(--sans);
font-size: clamp(18px, 2.5vw, 24px);
font-weight: 300;
font-style: italic;
max-width: 640px;
line-height: 1.55;
margin-bottom: 32px;
}
.hero-mission strong { font-weight: 700; color: var(--amber-l); }
.hero-ctas {
display: flex;
gap: 16px;
flex-wrap: wrap;
}
.cta-btn {
display: inline-flex;
align-items: center;
gap: 10px;
font-family: var(--mono);
font-size: 11px;
letter-spacing: 2px;
text-transform: uppercase;
text-decoration: none;
padding: 12px 24px;
border: 1px solid var(--amber);
color: var(--amber);
background: transparent;
transition: all 0.2s ease;
}
.cta-btn.primary {
background: var(--amber);
color: #000;
}
.cta-btn:hover {
background: var(--amber);
color: #000;
border-color: var(--amber-l);
}
.submissions-banner {
margin-top: 48px;
background: var(--panel);
border-left: 4px solid var(--amber);
padding: 20px 24px;
border-radius: 12px;
}
.submissions-banner p {
font-family: var(--mono);
font-size: 12px;
color: var(--amber);
margin-bottom: 12px;
}
.submissions-banner .grant-list {
display: flex;
flex-wrap: wrap;
gap: 16px;
margin-bottom: 16px;
}
.submissions-banner .grant-item {
font-family: var(--mono);
font-size: 10px;
background: rgba(240,165,0,0.1);
padding: 4px 12px;
border-radius: 20px;
color: var(--amber-l);
text-decoration: none;
}
.submissions-banner .grant-item:hover {
background: var(--amber);
color: #000;
}
section {
position: relative;
z-index: 1;
padding: 60px 40px;
max-width: 1200px;
margin: 0 auto;
}
.section-header {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 48px;
}
.section-num {
font-family: var(--mono);
font-size: 11px;
color: var(--amber);
letter-spacing: 2px;
}
.section-title {
font-family: var(--sans);
font-size: var(--font-size-h2);
font-weight: 900;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--text);
}
.section-line {
flex: 1;
height: 1px;
background: var(--border);
}
.services-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1px;
background: var(--border);
border: 1px solid var(--border);
}
.service-card {
background: var(--surface);
padding: 32px 28px;
transition: background 0.2s ease;
}
.service-card:hover { background: var(--panel); }
.service-title {
font-family: var(--sans);
font-size: 22px;
font-weight: 700;
letter-spacing: 2px;
color: var(--amber);
margin: 16px 0 12px;
text-transform: uppercase;
}
.service-desc {
font-family: var(--sans);
font-size: 14px;
color: var(--muted);
line-height: 1.6;
margin-bottom: 20px;
}
.service-link {
font-family: var(--mono);
font-size: 10px;
letter-spacing: 2px;
color: var(--amber);
text-decoration: none;
text-transform: uppercase;
}
.work-strip {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 24px;
}
.work-card {
background: var(--surface);
border: 1px solid var(--border);
padding: 24px;
transition: all 0.2s ease;
}
.work-card:hover {
border-color: var(--amber);
transform: translateY(-2px);
}
.work-live-tag {
font-family: var(--mono);
font-size: 9px;
letter-spacing: 1.5px;
text-transform: uppercase;
padding: 3px 8px;
background: rgba(0,230,118,0.1);
color: #00e676;
border: 1px solid #00e676;
display: inline-block;
margin-bottom: 12px;
}
.work-title {
font-family: var(--sans);
font-size: 22px;
font-weight: 700;
text-transform: uppercase;
margin-bottom: 8px;
}
.work-meta {
font-family: var(--mono);
font-size: 10px;
color: var(--muted);
margin-bottom: 16px;
}
.work-link {
font-family: var(--mono);
font-size: 10px;
letter-spacing: 2px;
color: var(--amber);
text-decoration: none;
text-transform: uppercase;
}
.stack-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 24px;
padding: 32px;
}
.stack-table {
width: 100%;
border-collapse: collapse;
font-family: var(--mono);
font-size: 0.75rem;
}
.stack-table th, .stack-table td {
text-align: left;
padding: 12px 8px;
border-bottom: 1px solid var(--border);
}
.stack-table th { color: var(--amber); }
.convergence-badge {
display: inline-block;
padding: 2px 8px;
border-radius: 20px;
font-size: 0.65rem;
font-weight: 600;
background: rgba(0,0,0,0.4);
}
.m-strong { background: #1e4620; color: #4ade80; }
.m-mod { background: #5f3a1a; color: #ffaa33; }
.live { background: #1e3a5f; color: var(--cyan); }
footer {
border-top: 1px solid var(--border);
padding: 40px;
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 16px;
font-family: var(--mono);
font-size: 10px;
color: var(--muted);
}
.footer-links {
display: flex;
gap: 24px;
list-style: none;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--amber); }
@media (max-width: 800px) {
.services-grid { grid-template-columns: 1fr; }
nav { padding: 0 20px; }
.nav-links { display: none; }
.nav-hamburger { display: flex; }
.hero, section { padding: 60px 20px; }
.submissions-banner .grant-list { flex-direction: column; }
}
</style>
</head>
<body>
<nav>
<a href="/" class="nav-logo">
<img src="/assets/aion-logo.jpg" alt="AionSystem logo" class="nav-logo-img">
<span>AION<span>system</span></span>
</a>
<ul class="nav-links">
<li><a href="/simulators/">Simulators</a></li>
<li><a href="/services/">Services</a></li>
<li><a href="/stack/">Stack</a></li>
<li><a href="/certify/">Certify</a></li>
<li><a href="/submissions/">Submissions</a></li>
<li><a href="/about/">About</a></li>
<li><a href="https://www.linkedin.com/in/sheldon-k-salmon-b0901b378" target="_blank">LinkedIn ↗</a></li>
</ul>
<button class="nav-hamburger" id="hamburger" aria-label="Menu"><span></span><span></span><span></span></button>
</nav>
<div class="mobile-nav" id="mobileNav"></div>
<div class="hero">
<div class="hero-logo-wrap">
<img src="/assets/aion-logo.jpg" alt="AionSystem logo" class="hero-logo-img">
<div>
<div class="hero-logo-wordmark">AION<span>system</span></div>
<div class="hero-logo-tagline">AI Certainty Engineering</div>
</div>
</div>
<div class="hero-eyebrow">AI Reliability Architect</div>
<h1 class="hero-name">Sheldon K.<em>Salmon</em></h1>
<p class="hero-title">AI Reliability Architect · AGI Systems Designer · Founder, AionSystem</p>
<div class="hero-divider"></div>
<div class="hero-question">When your AI system is wrong — <em>who finds out?</em></div>
<p class="hero-mission">Building the infrastructure that makes AI systems <strong>provably trustworthy</strong> — failure documentation, epistemic verification, sovereign audit trails.</p>
<div class="hero-ctas">
<a href="/submissions/" class="cta-btn primary">View Grant Portfolio →</a>
<a href="/services/" class="cta-btn">Services & Consulting →</a>
</div>
<!-- SUBMISSIONS SPOTLIGHT (all links point to /submissions/ - ensure that page exists) -->
<div class="submissions-banner">
<p>📋 RECENT GRANT SUBMISSIONS (April 2026)</p>
<div class="grant-list">
<a href="/submissions/#axiom" class="grant-item">AXIOM — NICE (AI reliability)</a>
<a href="/submissions/#pilling-sim" class="grant-item">PILLING-SIM — NICE (textile AI)</a>
<a href="/submissions/#veritas" class="grant-item">VERITAS — UNDP (crisis certification)</a>
<a href="/submissions/#orion" class="grant-item">PROJECT ORION — UNDP (UXO detection)</a>
</div>
<a href="/submissions/" style="font-family:var(--mono); font-size:10px; color:var(--amber);">→ Full submission portfolio</a>
</div>
</div>
<!-- 01 WHAT I BUILD (services + simulators merged) -->
<section>
<div class="section-header"><span class="section-num">// 01</span><h2 class="section-title">What I Build</h2><div class="section-line"></div></div>
<div class="services-grid">
<div class="service-card">
<div class="service-title">Simulation<br>Creation</div>
<div class="service-desc">Physics simulators, engineering tools, educational systems — built in days, not months. Citation-backed, red-teamed, with full audit trails.</div>
<a href="/simulators/" class="service-link">View Simulators →</a>
</div>
<div class="service-card">
<div class="service-title">AI Reliability<br>Audit</div>
<div class="service-desc">Formal verification that AI deployments capture failures immutably and maintain honest epistemic records. STP FROZEN-2.0 compliant.</div>
<a href="/services/ai-audit/" class="service-link">AI Audit Services →</a>
</div>
<div class="service-card">
<div class="service-title">Framework<br>Design</div>
<div class="service-desc">Custom certainty frameworks for your AI system's failure modes. Built on the AION Constitutional Stack.</div>
<a href="/services/framework-design/" class="service-link">Framework Engineering →</a>
</div>
</div>
<div style="margin-top: 40px;">
<div class="work-strip">
<div class="work-card">
<div class="work-live-tag">● Live</div>
<div class="work-title">Roller Coaster Physics</div>
<div class="work-meta">AP curriculum · 10 modules · 3 red team passes</div>
<a href="/simulators/roller-coaster/" class="work-link">Launch →</a>
</div>
<div class="work-card">
<div class="work-live-tag">● Live</div>
<div class="work-title">Project ORION (UXO)</div>
<div class="work-meta">UNDP · Tri-axis gradiometer · Field-tested</div>
<a href="/simulators/Orion/" class="work-link">Launch →</a>
</div>
<div class="work-card">
<div class="work-live-tag">● Live</div>
<div class="work-title">Math Worksheet Builder</div>
<div class="work-meta">Grades 3–8 · 9 problem types · Evidence-based</div>
<a href="/simulators/math-worksheet-builder/" class="work-link">Launch →</a>
</div>
<div class="work-card">
<div class="work-live-tag">● Live</div>
<div class="work-title">VERITAS (Damage Cert)</div>
<div class="work-meta">UNDP submission · DCI scoring · STP seals</div>
<a href="https://aionsystem.github.io/VERITAS" class="work-link" target="_blank" rel="noopener">Launch →</a>
</div>
</div>
<div style="text-align:center; margin-top:24px;"><a href="/simulators/" class="cta-btn">All Simulators →</a></div>
</div>
</section>
<!-- 02 AION STACK (shortened) -->
<section>
<div class="section-header"><span class="section-num">// 02</span><h2 class="section-title">AION Certainty Stack</h2><div class="section-line"></div></div>
<div class="stack-card">
<div class="stack-table-wrapper" style="overflow-x:auto;">
<table class="stack-table">
<thead><tr><th>Framework</th><th>Version</th><th>Function</th><th>Convergence</th></tr></thead>
<tbody>
<tr><td>FSVE</td><td>v3.6</td><td>6‑dimension certainty scoring</td><td><span class="convergence-badge m-mod">M-MODERATE</span></td></tr>
<tr><td>LAV</td><td>v1.5</td><td>Linguistic anchor validation (45 anchors)</td><td><span class="convergence-badge m-strong">M-STRONG</span></td></tr>
<tr><td>STP</td><td>v2.0</td><td>SHA-256 bound audit trail (PyPI)</td><td><span class="convergence-badge live">LIVE</span></td></tr>
<tr><td>VERITAS</td><td>v1.0</td><td>Damage certification engine</td><td><span class="convergence-badge live">LIVE</span></td></tr>
<tr><td>EIGHT LAWS</td><td>v1.0</td><td>Constitutional sovereignty stack</td><td><span class="convergence-badge m-mod">CONSTITUTIONAL</span></td></tr>
</tbody>
</table>
</div>
<div style="margin-top:24px;"><a href="/stack/" class="service-link">Full stack documentation →</a></div>
</div>
</section>
<!-- 03 CONNECT -->
<section>
<div class="section-header"><span class="section-num">// 03</span><h2 class="section-title">Connect</h2><div class="section-line"></div></div>
<div style="display: flex; flex-wrap: wrap; gap: 40px;">
<div><strong>Contact</strong><br><a href="mailto:aionsystem@outlook.com" style="color:var(--amber);">aionsystem@outlook.com</a></div>
<div><strong>GitHub</strong><br><a href="https://github.com/AionSystem" style="color:var(--amber);" target="_blank" rel="noopener">github.com/AionSystem</a></div>
<div><strong>LinkedIn</strong><br><a href="https://www.linkedin.com/in/sheldon-k-salmon-b0901b378" style="color:var(--amber);" target="_blank" rel="noopener">Sheldon K. Salmon</a></div>
<div><strong>ORCID</strong><br><a href="https://orcid.org/0009-0005-8057-5115" style="color:var(--amber);" target="_blank" rel="noopener">0009-0005-8057-5115</a></div>
</div>
</section>
<footer>
<div>AionSystem · Sheldon K. Salmon · AI Reliability Architect · © <span id="copyright-year"></span></div>
<ul class="footer-links">
<li><a href="/simulators/">Simulators</a></li>
<li><a href="/services/">Services</a></li>
<li><a href="/stack/">Stack</a></li>
<li><a href="/submissions/">Submissions</a></li>
<li><a href="https://github.com/AionSystem" target="_blank" rel="noopener">GitHub ↗</a></li>
</ul>
</footer>
<script>
// Mobile navigation
(function() {
const hamburger = document.getElementById('hamburger');
const mobileNav = document.getElementById('mobileNav');
if (!hamburger || !mobileNav) return;
// Clone nav links into mobile menu
const navLinks = document.querySelectorAll('.nav-links a');
mobileNav.innerHTML = '';
navLinks.forEach(link => {
const clone = link.cloneNode(true);
// Remove any active class from clone (will re-apply based on URL)
clone.classList.remove('active');
mobileNav.appendChild(clone);
});
// Set active class based on current path
const currentPath = window.location.pathname;
const allLinks = document.querySelectorAll('.nav-links a, .mobile-nav a');
allLinks.forEach(link => {
const href = link.getAttribute('href');
if (href && href !== '/' && href !== '#') {
if (currentPath === href || (href !== '/' && currentPath.startsWith(href))) {
link.classList.add('active');
}
} else if (href === '/' && currentPath === '/') {
link.classList.add('active');
}
});
// Toggle mobile menu
hamburger.addEventListener('click', () => {
const isOpen = mobileNav.classList.contains('open');
if (isOpen) {
mobileNav.classList.remove('open');
hamburger.classList.remove('open');
} else {
mobileNav.classList.add('open');
hamburger.classList.add('open');
}
});
// Close mobile nav when a link is clicked
mobileNav.addEventListener('click', (e) => {
if (e.target.tagName === 'A') {
mobileNav.classList.remove('open');
hamburger.classList.remove('open');
}
});
// Dynamic copyright year
const yearSpan = document.getElementById('copyright-year');
if (yearSpan) {
yearSpan.textContent = new Date().getFullYear();
}
})();
</script>
</body>
</html>