Repository navigation
Expand file tree
/
Copy pathextracurriculars.html
More file actions
659 lines (611 loc) · 29.5 KB
/
Copy pathextracurriculars.html
File metadata and controls
659 lines (611 loc) · 29.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Extracurriculars — Shabnam Hakimi</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=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<style>
/* ── PAGE ── */
.page-header {
padding: 9.8rem 2.5rem 4rem;
border-bottom: 1px solid var(--blue-G);
max-width: 820px;
}
/* project-list top padding grid-aligned: 16px */
.project-list { padding-top: 16px; }
.page-eyebrow.s-mint { --hl-rgb: 119 255 228; --hl-a: 0.65; }
.page-title { font-family: var(--sans); font-size: clamp(2rem,5vw,3.5rem); font-weight: 300; color: var(--ink); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1rem; }
.page-desc { font-size: 0.68rem; color: var(--ink-dim); max-width: 480px; line-height: 1.9; }
/* ── FILTER TABS ── */
.page-index {
padding: 16px 2.5rem;
display: flex; gap: 2rem; align-items: center;
border-bottom: 1px solid var(--blue-G);
}
.page-index a {
font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.22em;
text-transform: uppercase; color: var(--ink-blue);
text-decoration: none; transition: color 0.2s;
padding: 0.2rem 0;
}
.page-index a > .hl {
display: inline;
/* inline + clone, not inline-block: the band is one linear-gradient over
the element box, so on a label that wraps, inline-block stretched a
single gradient across BOTH lines and the colour landed in the gap
between them. Cloning the box decoration gives each line fragment its
own gradient, i.e. a highlighter stroke per line. */
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
padding: 0 6px;
margin-left: -6px;
background-image: linear-gradient(
transparent 22%,
rgb(var(--hl-rgb, 26 44 107) / var(--hl-a, 0)) 22%,
rgb(var(--hl-rgb, 26 44 107) / var(--hl-a, 0)) 92%,
transparent 92%
);
transition: --hl-a 0.2s;
}
.page-index a.s-helio { --hl-rgb: 201 119 255; --hl-a: 0.55; }
.page-index a.s-slate { --hl-rgb: 119 119 255; --hl-a: 0.65; }
.page-index a.s-cheese { --hl-rgb: 255 174 119; --hl-a: 0.65; }
.page-index-sep { color: var(--ink-dim); font-size: 0.68rem; }
/* ── PROJECT LIST ── */
.project-list {
padding: 0 2.5rem 6rem;
max-width: 1100px;
}
/* ── PROJECT ITEM ── */
.project-item {
display: grid;
grid-template-columns: 80px 1fr;
gap: 1.5rem;
padding: 2.5rem 0;
border-bottom: 1px solid var(--blue-G);
/* item height multiples vary but border tracks with content */
opacity: 0; transform: translateY(20px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.project-item.visible { opacity: 1; transform: translateY(0); }
.project-meta { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 0.2rem; }
.project-year { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--ink-dim); }
.project-type { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; }
.project-body { display: flex; flex-direction: column; gap: 0.6rem; }
.project-title { font-family: var(--sans); font-size: 1.05rem; font-weight: 400; color: var(--ink); line-height: 1.2; }
.project-title a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.project-title a:hover { border-color: var(--ink-dim); }
.project-desc { font-size: 0.7rem; color: var(--ink-dim); line-height: 1.85; max-width: 560px; }
.project-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.2rem; }
.project-tag { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-blue); border: 1px solid rgba(26,44,107,0.2); padding: 0.15rem 0.45rem; }
.project-link { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-blue); text-decoration: none; border-bottom: 1px solid rgba(26,44,107,0.55); padding-bottom: 0.1rem; display: inline-block; margin-top: 0.3rem; transition: border-color 0.2s; }
.project-link:hover { border-color: var(--ink-blue); }
/* Highlighter accent on featured projects */
.project-item.featured .project-title {
background: linear-gradient(transparent 40%, rgba(255,255,119,0.5) 40%, rgba(255,255,119,0.5) 67%, transparent 67%);
display: inline;
}
/* ── SECTION DIVIDER ── */
.section-divider {
padding: 16px 0 8px;
margin-top: 48px;
font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase;
color: var(--ink-blue);
border-top: 1.5px solid var(--ink-blue);
scroll-margin-top: 96px;
text-align: left;
}
.section-divider > .hl {
display: inline;
/* inline + clone, not inline-block: the band is one linear-gradient over
the element box, so on a label that wraps, inline-block stretched a
single gradient across BOTH lines and the colour landed in the gap
between them. Cloning the box decoration gives each line fragment its
own gradient, i.e. a highlighter stroke per line. */
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
padding: 0 6px;
margin-left: -6px;
background-image: linear-gradient(
transparent 22%,
rgb(var(--hl-rgb, 26 44 107) / var(--hl-a, 0)) 22%,
rgb(var(--hl-rgb, 26 44 107) / var(--hl-a, 0)) 92%,
transparent 92%
);
}
.section-divider.s-slate { --hl-rgb: 119 119 255; --hl-a: 0.65; }
.section-divider.s-helio { --hl-rgb: 201 119 255; --hl-a: 0.55; }
.section-divider.s-violet { --hl-rgb: 255 119 228; --hl-a: 0.55; }
.section-divider.s-red { --hl-rgb: 255 119 146; --hl-a: 0.55; }
.section-divider.s-cheese { --hl-rgb: 255 174 119; --hl-a: 0.65; }
.section-divider.s-yellow { --hl-rgb: 255 255 119; --hl-a: 0.75; }
.section-divider.s-mint { --hl-rgb: 119 255 228; --hl-a: 0.65; }
/* ── UNDER CONSTRUCTION (temporary) ───────────────────────────── */
.under-construction {
padding: 4rem 0 6rem;
display: flex; flex-direction: column; align-items: center;
text-align: center;
}
.uc-sign {
image-rendering: pixelated;
image-rendering: crisp-edges;
margin-bottom: 1.5rem;
animation: uc-sway 4.5s ease-in-out infinite;
transform-origin: 50% 100%;
}
.uc-sign .uc-bang { animation: uc-blink 1.4s steps(1) infinite; }
@keyframes uc-sway {
0%, 100% { transform: rotate(-2deg); }
50% { transform: rotate( 2deg); }
}
@keyframes uc-blink {
0%, 70% { opacity: 1; }
72%, 90% { opacity: 0.25; }
}
.uc-tape {
background: repeating-linear-gradient(
-45deg,
#FFFF77 0 14px,
#1a2c6b 14px 28px
);
padding: 6px;
width: clamp(280px, 70%, 520px);
margin-bottom: 1.8rem;
}
.uc-tape span {
display: block;
background: var(--paper);
padding: 0.7rem 1rem;
font-family: var(--mono);
font-size: 0.75rem;
letter-spacing: 0.42em;
font-weight: 700;
color: var(--ink-blue);
text-align: center;
}
.uc-msg {
font-size: 0.75rem;
color: var(--ink-dim);
max-width: 460px;
line-height: 1.9;
}
.uc-msg a {
color: var(--ink-blue);
text-decoration: none;
border-bottom: 1px solid rgba(26,44,107,0.55);
}
.uc-msg a:hover { border-color: var(--ink-blue); }
/* ── FOOTER ── */
footer { position: relative; z-index: 10; }
@media (max-width: 700px) {
nav { padding: 1rem 1.5rem; }
.page-header, .project-list, .filter-bar { padding-left: 1.5rem; padding-right: 1.5rem; }
.project-item { grid-template-columns: 1fr; gap: 0.5rem; }
.project-meta { flex-direction: row; gap: 1rem; }
body, a, button { cursor: auto; }
.cursor { display: none; }
}
</style>
</head>
<body>
<div class="cursor" id="cursor">+</div>
<nav>
<a href="index.html" class="nav-logo">
<span class="nav-logo-hl" id="nav-logo-hl"></span>
<span class="nav-logo-text">SH</span>
</a>
<ul class="nav-links" id="nav-links">
<li><a href="index.html#about">About</a></li>
<li><a href="index.html#research">Research</a>
<div class="nav-sub-links"><a href="graph.html">Graph</a><a href="projects.html">Projects</a><a href="cv.html">CV</a></div>
</li>
<li><a href="extracurriculars.html" class="active">Extracurriculars</a></li>
<li><a href="index.html#contact">Contact</a></li>
</ul>
<button class="nav-toggle" id="nav-toggle" aria-label="Toggle menu" aria-expanded="false" aria-controls="nav-links">
<span></span><span></span><span></span>
</button>
</nav>
<div class="page-header">
<p class="page-eyebrow s-mint"><span class="hl">Extracurriculars</span></p>
<h1 class="page-title">Personal & Side Projects</h1>
<p class="page-desc">Creative and technical work made outside the lab — experiments, tools, and things built out of curiosity or compulsion.</p>
</div>
<!-- Page index (Creative · Side projects · Writing) hidden while page is under construction -->
<!--
<div class="page-index">
<a href="#section-creative" class="s-helio"><span class="hl">Creative</span></a>
<span class="page-index-sep">·</span>
<a href="#section-side-project" class="s-slate"><span class="hl">Side projects</span></a>
<span class="page-index-sep">·</span>
<a href="#section-writing" class="s-cheese"><span class="hl">Writing</span></a>
</div>
-->
<div class="project-list">
<!-- ╔════════════════════════════════════════════════════╗ -->
<!-- ║ Pixel-art "Under Construction" banner. When real ║ -->
<!-- ║ content lands, delete this <div> and uncomment ║ -->
<!-- ║ the templates preserved below. ║ -->
<!-- ╚════════════════════════════════════════════════════╝ -->
<div class="under-construction" role="status" aria-label="Page under construction">
<svg class="uc-sign" viewBox="0 0 24 24" width="180" height="180" aria-hidden="true">
<g shape-rendering="crispEdges">
<rect x="11" y="2" width="2" height="1" fill="#1a2c6b"/>
<rect x="10" y="3" width="4" height="1" fill="#1a2c6b"/>
<rect x="9" y="4" width="2" height="1" fill="#1a2c6b"/>
<rect x="13" y="4" width="2" height="1" fill="#1a2c6b"/>
<rect x="8" y="5" width="2" height="1" fill="#1a2c6b"/>
<rect x="14" y="5" width="2" height="1" fill="#1a2c6b"/>
<rect x="7" y="6" width="2" height="1" fill="#1a2c6b"/>
<rect x="15" y="6" width="2" height="1" fill="#1a2c6b"/>
<rect x="6" y="7" width="2" height="1" fill="#1a2c6b"/>
<rect x="16" y="7" width="2" height="1" fill="#1a2c6b"/>
<rect x="5" y="8" width="2" height="1" fill="#1a2c6b"/>
<rect x="17" y="8" width="2" height="1" fill="#1a2c6b"/>
<rect x="4" y="9" width="2" height="1" fill="#1a2c6b"/>
<rect x="18" y="9" width="2" height="1" fill="#1a2c6b"/>
<rect x="3" y="10" width="2" height="1" fill="#1a2c6b"/>
<rect x="19" y="10" width="2" height="1" fill="#1a2c6b"/>
<rect x="2" y="11" width="2" height="1" fill="#1a2c6b"/>
<rect x="20" y="11" width="2" height="1" fill="#1a2c6b"/>
<rect x="3" y="12" width="2" height="1" fill="#1a2c6b"/>
<rect x="19" y="12" width="2" height="1" fill="#1a2c6b"/>
<rect x="4" y="13" width="2" height="1" fill="#1a2c6b"/>
<rect x="18" y="13" width="2" height="1" fill="#1a2c6b"/>
<rect x="5" y="14" width="2" height="1" fill="#1a2c6b"/>
<rect x="17" y="14" width="2" height="1" fill="#1a2c6b"/>
<rect x="6" y="15" width="2" height="1" fill="#1a2c6b"/>
<rect x="16" y="15" width="2" height="1" fill="#1a2c6b"/>
<rect x="7" y="16" width="2" height="1" fill="#1a2c6b"/>
<rect x="15" y="16" width="2" height="1" fill="#1a2c6b"/>
<rect x="8" y="17" width="2" height="1" fill="#1a2c6b"/>
<rect x="14" y="17" width="2" height="1" fill="#1a2c6b"/>
<rect x="9" y="18" width="2" height="1" fill="#1a2c6b"/>
<rect x="13" y="18" width="2" height="1" fill="#1a2c6b"/>
<rect x="10" y="19" width="4" height="1" fill="#1a2c6b"/>
<rect x="11" y="20" width="2" height="1" fill="#1a2c6b"/>
<rect x="11" y="4" width="2" height="1" fill="#FFFF77"/>
<rect x="10" y="5" width="4" height="1" fill="#FFFF77"/>
<rect x="9" y="6" width="6" height="1" fill="#FFFF77"/>
<rect x="8" y="7" width="8" height="1" fill="#FFFF77"/>
<rect x="7" y="8" width="10" height="1" fill="#FFFF77"/>
<rect x="6" y="9" width="12" height="1" fill="#FFFF77"/>
<rect x="5" y="10" width="14" height="1" fill="#FFFF77"/>
<rect x="4" y="11" width="16" height="1" fill="#FFFF77"/>
<rect x="5" y="12" width="14" height="1" fill="#FFFF77"/>
<rect x="6" y="13" width="12" height="1" fill="#FFFF77"/>
<rect x="7" y="14" width="10" height="1" fill="#FFFF77"/>
<rect x="8" y="15" width="8" height="1" fill="#FFFF77"/>
<rect x="9" y="16" width="6" height="1" fill="#FFFF77"/>
<rect x="10" y="17" width="4" height="1" fill="#FFFF77"/>
<rect x="11" y="18" width="2" height="1" fill="#FFFF77"/>
<rect class="uc-bang" x="11" y="7" width="2" height="6" fill="#1a2c6b"/>
<rect class="uc-bang" x="11" y="14" width="2" height="2" fill="#1a2c6b"/>
</g>
</svg>
<div class="uc-tape" aria-hidden="true">
<span>UNDER CONSTRUCTION</span>
</div>
<p class="uc-msg">
Content for this page is in progress. In the meantime, the
<a href="/graph">research graph</a> and <a href="/cv">CV</a> are live,
and there's a short <a href="/about-this-site">colophon</a> if you're
curious how this site was built.
</p>
</div>
<!-- ─── DRAFT CONTENT (placeholder, 2026-05-16) ───────────────────────
Generated as a starting point — review every line before publishing.
PREVIEW: remove the `hidden` attribute on the wrapper below.
PUBLISH: delete the .under-construction div above, AND
remove `hidden` below, AND
uncomment the .page-index block earlier in this file.
──────────────────────────────────────────────────────────────────── -->
<div class="page-drafts" hidden>
<div class="page-index" style="border-bottom:1px solid var(--blue-G); margin-bottom: 1rem;">
<a href="#section-creative" class="s-helio"><span class="hl">Creative</span></a>
<span class="page-index-sep">·</span>
<a href="#section-side-project" class="s-slate"><span class="hl">Side projects</span></a>
<span class="page-index-sep">·</span>
<a href="#section-writing" class="s-cheese"><span class="hl">Writing</span></a>
</div>
<!-- ── CREATIVE ────────────────────────────────────────────────── -->
<div class="section-divider s-helio" id="section-creative"><span class="hl">Creative</span></div>
<div class="project-item visible" data-type="creative">
<div class="project-meta">
<span class="project-year">2026</span>
<span class="project-type" style="color:var(--h-helio);">Generative art</span>
</div>
<div class="project-body">
<div class="project-title">Eulerian Graph Doodles</div>
<p class="project-desc">The animated background traces you might be looking at right now. Each is an Eulerian path through a small planar graph, cycled through the highlighter palette on a slow timer. Built into the site itself.</p>
<div class="project-tags">
<span class="project-tag">generative art</span>
<span class="project-tag">canvas</span>
<span class="project-tag">self-coded</span>
</div>
</div>
</div>
<div class="project-item visible" data-type="creative">
<div class="project-meta">
<span class="project-year">— </span>
<span class="project-type" style="color:var(--h-helio);">Placeholder</span>
</div>
<div class="project-body">
<div class="project-title"><em>[draft slot — drawing, music, recipes, photography…]</em></div>
<p class="project-desc">A second creative entry to balance the section. Suggested categories: a long-running drawing practice, a music or sound project, photography, or a recipe / cooking series.</p>
<div class="project-tags">
<span class="project-tag">tag</span>
</div>
</div>
</div>
<!-- ── SIDE PROJECTS ───────────────────────────────────────────── -->
<div class="section-divider s-slate" id="section-side-project"><span class="hl">Side projects</span></div>
<div class="project-item visible" data-type="side-project">
<div class="project-meta">
<span class="project-year">2026</span>
<span class="project-type" style="color:var(--h-slate);">Side project</span>
</div>
<div class="project-body">
<div class="project-title">shabnamhakimi.com</div>
<p class="project-desc">This website. Hand-written HTML and CSS, no framework, no build step. Graph-paper background, a crosshair cursor, and a highlighter palette tied to eight research clusters. The colophon goes into more detail.</p>
<div class="project-tags">
<span class="project-tag">HTML/CSS</span>
<span class="project-tag">static site</span>
<span class="project-tag">personal</span>
</div>
<a href="about-this-site.html" class="project-link">Colophon →</a>
</div>
</div>
<div class="project-item visible" data-type="side-project">
<div class="project-meta">
<span class="project-year">2026–</span>
<span class="project-type" style="color:var(--h-slate);">Side project</span>
</div>
<div class="project-body">
<div class="project-title"><em>[draft slot — a parked or in-flight side project]</em></div>
<p class="project-desc">A second side-project entry. Candidates from the parked-projects notes: cloud-storage cleanup, the personal research-corpus database, or any of the small data utilities living in <code>data/</code> here.</p>
<div class="project-tags">
<span class="project-tag">tag</span>
</div>
</div>
</div>
<!-- ── WRITING ─────────────────────────────────────────────────── -->
<div class="section-divider s-cheese" id="section-writing"><span class="hl">Writing</span></div>
<div class="project-item visible" data-type="writing">
<div class="project-meta">
<span class="project-year">— </span>
<span class="project-type" style="color:var(--h-cheese);">Essay</span>
</div>
<div class="project-body">
<div class="project-title"><em>[draft slot — first piece of writing]</em></div>
<p class="project-desc">An essay, a Substack post, a journal entry, or a piece of writing that doesn't fit elsewhere. Replace with title, venue, and a one-paragraph hook.</p>
<div class="project-tags">
<span class="project-tag">tag</span>
</div>
<a href="#" class="project-link">Read →</a>
</div>
</div>
<div class="project-item visible" data-type="writing">
<div class="project-meta">
<span class="project-year">— </span>
<span class="project-type" style="color:var(--h-cheese);">Note</span>
</div>
<div class="project-body">
<div class="project-title"><em>[draft slot — second piece of writing]</em></div>
<p class="project-desc">A shorter note, talk, or interview. Same fill-in pattern as above.</p>
<div class="project-tags">
<span class="project-tag">tag</span>
</div>
</div>
</div>
</div>
</div>
</div>
<footer>
<p>Shabnam Hakimi, Ph.D. — Researcher & Synthesist</p>
<p><a href="about-this-site.html">Colophon</a> · MMXXVI</p>
</footer>
<script>
// Scroll-to-section navigation
document.querySelectorAll('.filter-btn').forEach(btn => {
btn.addEventListener('click', () => {
document.querySelectorAll('.filter-btn').forEach(b => b.classList.remove('active'));
btn.classList.add('active');
const filter = btn.dataset.filter;
if (filter === 'all') {
window.scrollTo({ top: 0, behavior: 'smooth' });
} else {
const target = document.getElementById('section-' + filter);
if (target) {
const offset = target.getBoundingClientRect().top + window.scrollY - 100;
window.scrollTo({ top: offset, behavior: 'smooth' });
}
}
});
});
// Scroll reveal
const obs = new IntersectionObserver(
entries => entries.forEach(e => { if (e.isIntersecting) { e.target.classList.add('visible'); obs.unobserve(e.target); } }),
{ threshold: 0.08 }
);
document.querySelectorAll('.reveal').forEach(el => obs.observe(el));
// Cursor
(function() {
const cursor = document.getElementById('cursor');
let mx = 0, my = 0;
document.addEventListener('mousemove', e => { mx = e.clientX; my = e.clientY; cursor.style.left = mx+'px'; cursor.style.top = my+'px'; });
document.querySelectorAll('a, button').forEach(el => {
el.addEventListener('mouseenter', () => { cursor.style.transform='translate(-50%,-50%) scale(1.9)'; cursor.style.color='var(--ink-blue)'; });
el.addEventListener('mouseleave', () => { cursor.style.transform='translate(-50%,-50%) scale(1)'; cursor.style.color='var(--ink)'; });
});
// ── LOGO HIGHLIGHT CYCLE ──
(function() {
const COLORS = ['#FFFF77','#7777FF','#C977FF','#FF77E4','#FF7792','#FFAE77'];
let idx = 0, hovered = false, lastSwap = 0;
const hl = document.getElementById('nav-logo-hl');
const logo = document.querySelector('.nav-logo');
if (!hl || !logo) return;
hl.style.backgroundColor = COLORS[0];
logo.addEventListener('mouseenter', () => hovered = true);
logo.addEventListener('mouseleave', () => hovered = false);
function tick(ts) {
if (ts - lastSwap > (hovered ? 600 : 3000)) {
idx = (idx + 1) % COLORS.length;
hl.style.backgroundColor = COLORS[idx];
lastSwap = ts;
}
requestAnimationFrame(tick);
}
requestAnimationFrame(tick);
})();
})();
// ── GRID SNAP — align structural borders to 16px graph paper grid ──
(function() {
const CELL = 16; // must match CSS background-size minor grid
function snap() {
// Elements whose top border should land on a grid line
// We nudge padding-top so the border offset from page top = multiple of CELL
const targets = [
...document.querySelectorAll('.year-heading, .section-divider, .page-index, .page-header'),
];
targets.forEach(el => {
// Reset any previous nudge
el.style.paddingTop = '';
const rect = el.getBoundingClientRect();
const absTop = rect.top + window.scrollY;
const rem = absTop % CELL;
if (rem > 0.5) {
const nudge = CELL - rem;
const current = parseFloat(getComputedStyle(el).paddingTop) || 0;
el.style.paddingTop = (current + nudge) + 'px';
}
});
}
// Run after layout settles
window.addEventListener('load', snap);
window.addEventListener('resize', snap);
// Also run after fonts load (affects layout)
if (document.fonts) document.fonts.ready.then(snap);
})();
// ── EULERIAN DOODLES ─────────────────────────────────────────────
const DOODLES_ENABLED = true; // set to false to disable
(function() {
if (!DOODLES_ENABLED) return;
const HUES = ['#7777FF','#C977FF','#FF77E4','#FF7792','#FFAE77','#FFFF77'];
const GRAPHS = [
{n:7,nodes:[{x:.5,y:.1},{x:.85,y:.3},{x:.85,y:.7},{x:.5,y:.9},{x:.15,y:.7},{x:.15,y:.3},{x:.5,y:.5}],edges:[[0,1],[1,2],[2,3],[3,4],[4,5],[5,0],[0,6],[1,6],[2,6],[3,6],[4,6],[5,6]]},
{n:4,nodes:[{x:.5,y:.12},{x:.88,y:.75},{x:.12,y:.75},{x:.5,y:.5}],edges:[[0,1],[0,2],[0,3],[1,2],[1,3],[2,3]]},
{n:8,nodes:[{x:.1,y:.1},{x:.9,y:.1},{x:.9,y:.9},{x:.1,y:.9},{x:.3,y:.3},{x:.7,y:.3},{x:.7,y:.7},{x:.3,y:.7}],edges:[[0,1],[1,2],[2,3],[3,0],[4,5],[5,6],[6,7],[7,4],[0,4],[1,5],[2,6],[3,7]]},
{n:7,nodes:[{x:.5,y:.5},{x:.5,y:.08},{x:.85,y:.72},{x:.15,y:.72},{x:.85,y:.28},{x:.15,y:.28},{x:.5,y:.92}],edges:[[0,1],[0,2],[0,3],[0,4],[0,5],[0,6],[1,4],[4,2],[2,6],[6,3],[3,5],[5,1]]},
{n:6,nodes:[{x:.15,y:.2},{x:.85,y:.2},{x:.15,y:.5},{x:.85,y:.5},{x:.15,y:.8},{x:.85,y:.8}],edges:[[0,1],[2,3],[4,5],[0,2],[2,4],[1,3],[3,5],[0,3],[1,2],[2,5],[3,4]]},
{n:9,nodes:[{x:.15,y:.15},{x:.5,y:.15},{x:.85,y:.15},{x:.15,y:.5},{x:.5,y:.5},{x:.85,y:.5},{x:.15,y:.85},{x:.5,y:.85},{x:.85,y:.85}],edges:[[0,1],[1,2],[3,4],[4,5],[6,7],[7,8],[0,3],[3,6],[1,4],[4,7],[2,5],[5,8],[0,4],[4,8],[2,4],[4,6]]},
{n:6,nodes:[{x:.5,y:.1},{x:.85,y:.3},{x:.85,y:.7},{x:.5,y:.9},{x:.15,y:.7},{x:.15,y:.3}],edges:[[0,1],[1,2],[2,3],[3,4],[4,5],[5,0],[0,2],[1,3],[2,4],[3,5],[4,0],[5,1]]},
{n:7,nodes:[{x:.5,y:.1},{x:.9,y:.8},{x:.1,y:.8},{x:.5,y:.55},{x:.72,y:.2},{x:.28,y:.2},{x:.5,y:.85}],edges:[[0,1],[1,2],[2,0],[3,4],[4,5],[5,3],[0,4],[0,5],[1,3],[1,5],[2,3],[2,4]]},
{n:8,nodes:[{x:.5,y:.5},{x:.2,y:.2},{x:.5,y:.1},{x:.8,y:.2},{x:.2,y:.8},{x:.5,y:.9},{x:.8,y:.8},{x:.5,y:.5}],edges:[[0,1],[1,2],[2,3],[3,0],[0,4],[4,5],[5,6],[6,0],[1,3],[4,6]]},
{n:9,nodes:[{x:.5,y:.5},{x:.5,y:.1},{x:.9,y:.5},{x:.5,y:.9},{x:.1,y:.5},{x:.72,y:.28},{x:.72,y:.72},{x:.28,y:.72},{x:.28,y:.28}],edges:[[0,1],[0,2],[0,3],[0,4],[1,5],[5,2],[2,6],[6,3],[3,7],[7,4],[4,8],[8,1],[1,2],[2,3],[3,4],[4,1]]},
{n:6,nodes:[{x:.15,y:.2},{x:.85,y:.2},{x:.15,y:.5},{x:.85,y:.5},{x:.15,y:.8},{x:.85,y:.8}],edges:[[0,1],[2,3],[4,5],[0,2],[2,4],[1,3],[3,5],[0,3],[1,2],[2,5],[3,4]]},
{n:8,nodes:[{x:.1,y:.1},{x:.9,y:.1},{x:.9,y:.9},{x:.1,y:.9},{x:.3,y:.3},{x:.7,y:.3},{x:.7,y:.7},{x:.3,y:.7}],edges:[[0,1],[1,2],[2,3],[3,0],[4,5],[5,6],[6,7],[7,4],[0,4],[1,5],[2,6],[3,7]]},
];
function eulerPath(n, edges) {
const adj = Array.from({length:n}, ()=>[]);
const used = new Array(edges.length).fill(false);
edges.forEach(([a,b],i) => { adj[a].push({to:b,i}); adj[b].push({to:a,i}); });
const ptr = new Array(n).fill(0), stack = [0], path = [];
while(stack.length) {
const v = stack[stack.length-1]; let found = false;
while(ptr[v] < adj[v].length) { const {to,i} = adj[v][ptr[v]++]; if(!used[i]){used[i]=true;stack.push(to);found=true;break;} }
if(!found) path.push(stack.pop());
}
return path.reverse();
}
// Create canvas
const cv = document.createElement('canvas');
cv.style.cssText = 'position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:0;';
document.body.insertBefore(cv, document.body.firstChild);
const COUNT = 5;
const SIZE = 160;
const OP = 0.15;
function mkD(i) {
const gi = (i * 2) % GRAPHS.length;
const g = GRAPHS[gi];
// Spread positions: vary x and y so they scatter across the page
const xFrac = 0.1 + (((i * 0.618) % 1) * 0.8); // golden ratio spacing
const yFrac = 0.1 + (i / COUNT) * 0.8;
return { xFrac, yFrac, g, path: eulerPath(g.n, g.edges),
pt:0, sT: i*1.7, ph:'draw', fa:1, segs:[], ci:i, gi };
}
let doodles = Array.from({length:COUNT}, (_,i) => mkD(i));
let W=0, H=0, t0=null;
function resize() {
W = window.innerWidth; H = document.body.scrollHeight || window.innerHeight;
cv.width = W; cv.height = H;
}
resize();
window.addEventListener('resize', resize);
function step(d, dt) {
if(d.ph==='draw') {
d.sT += dt*2.2;
while(d.sT>=1 && d.pt<d.path.length-1) {
d.sT-=1; d.segs.push({a:d.g.nodes[d.path[d.pt]], b:d.g.nodes[d.path[d.pt+1]]}); d.pt++;
}
if(d.pt >= d.path.length-1) { d.ph='hold'; d.sT=0; }
} else if(d.ph==='hold') {
d.sT+=dt; if(d.sT>2) { d.ph='fade'; d.sT=0; d.fa=1; }
} else {
d.fa -= dt*0.5;
if(d.fa<=0) {
d.ci++; d.gi=(d.gi+1)%GRAPHS.length; d.g=GRAPHS[d.gi];
d.path=eulerPath(d.g.n,d.g.edges); d.segs=[]; d.pt=0; d.sT=0; d.ph='draw'; d.fa=1;
}
}
}
function draw(ctx, d) {
const col = HUES[d.ci % HUES.length];
const a = (d.ph==='fade' ? d.fa : 1) * OP;
const cx = d.xFrac * W;
const cy = d.yFrac * H;
ctx.save();
ctx.globalAlpha = a;
ctx.strokeStyle = col; ctx.lineWidth = 2; ctx.lineCap='round'; ctx.lineJoin='round';
ctx.beginPath();
d.segs.forEach(({a,b}) => {
ctx.moveTo(cx+(a.x-.5)*SIZE, cy+(a.y-.5)*SIZE);
ctx.lineTo(cx+(b.x-.5)*SIZE, cy+(b.y-.5)*SIZE);
});
ctx.stroke();
ctx.restore();
}
function tick(ts) {
requestAnimationFrame(tick);
if(!t0) t0=ts;
const dt = Math.min((ts-t0)/1000, 0.05); t0=ts;
const ctx = cv.getContext('2d');
ctx.clearRect(0,0,W,H);
doodles.forEach(d => { step(d,dt); draw(ctx,d); });
}
requestAnimationFrame(tick);
})();
</script>
<script>
(function(){
var nav = document.querySelector('nav');
var toggle = document.getElementById('nav-toggle');
if (!nav || !toggle) return;
toggle.addEventListener('click', function(){
var open = nav.classList.toggle('nav-open');
toggle.setAttribute('aria-expanded', open ? 'true' : 'false');
});
nav.querySelectorAll('.nav-links a').forEach(function(a){
a.addEventListener('click', function(){
nav.classList.remove('nav-open');
toggle.setAttribute('aria-expanded', 'false');
});
});
})();
</script>
</body>
</html>