Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
1415 lines (1205 loc) · 32.3 KB
/
Copy pathstyles.css
File metadata and controls
1415 lines (1205 loc) · 32.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
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
/* layout: one centred 640px column. each section is a row with a
narrow mono label on the left and its content on the right;
on phones the label sits above the content.
palette: drawn from Sunday Objects (one accent, grain, -24deg hatch,
hard press shadows, square corners) on near-neutral graphite and paper
with only a trace of blue-grey. dark is the default; light is
chosen with the toggle. accent: the brand cyan (#00D4FF), deepened on
the light theme so links stay readable. */
:root {
--bg: #131516;
--surface: #1b1f20;
--line: #2c3234;
--text: #eef0ef;
--muted: #b3b9ba;
--faint: #8a9294;
--accent: #00d4ff;
--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .95 0 0 0 0 .95 0 0 0 1.1 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
color-scheme: dark;
--hatch: repeating-linear-gradient(-24deg, var(--line) 0 1px, transparent 1px 5px);
--hatch-ink: repeating-linear-gradient(-24deg, var(--faint) 0 1px, transparent 1px 6px);
--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
--font-display: var(--font-sans);
--font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
--step--2: 11px;
--step--1: 12px;
--step-0: 14px;
--step-1: 26px;
--rail: 96px;
/* the logo's two letters as mask images (loader and footer signature) */
--mask-g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3 10.5 42 27'%3E%3Cpath d='M23.7948 26.022L13.0105 25.9278C13.0105 28.632 12.764 35.1897 8.15852 32.6314C5.43936 31.121 3.39626 26.5334 5.97127 24.0243C9.62426 20.4645 18.9525 21.6467 23.6298 22.0416L23.7188 11.9151C17.1902 9.68615 6.8522 10.8729 4.32785 18.3983C3.40594 21.1465 3.42531 28.527 4.40049 31.251C7.17142 38.9898 18.2142 38.7436 22.3079 32.2474C22.3943 32.1103 22.5299 31.8667 22.6885 31.5706C23.5993 29.8724 23.9833 27.9399 23.7948 26.0224V26.022Z'/%3E%3C/svg%3E");
--mask-u: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='3 10.5 42 27'%3E%3Cpath d='M43.3972 29.4921C44.0223 27.9139 44.3016 26.2198 44.3083 24.5224L44.3184 21.9843V21.975L44.3497 11.9036H41.3888C41.5329 12.4463 41.6775 13.1395 41.7087 13.6916C41.7337 14.1713 41.7557 14.7453 41.7654 15.3882C41.8343 19.2212 41.5519 25.4097 39.758 27.671C38.2461 29.5748 37.0512 27.4077 36.5148 25.9177C35.0155 21.7556 35.0971 16.2353 35.7776 11.9129C35.7806 11.91 35.7806 11.9066 35.7806 11.9036H25.8065C24.743 17.4209 24.8529 23.6281 27.0268 28.866C27.4723 29.9417 28.0429 31.0052 28.7268 31.9744C28.7801 32.056 28.8367 32.1376 28.8993 32.2158C29.0967 32.4981 29.3101 32.7648 29.5358 33.0189C29.6301 33.1317 29.7303 33.2416 29.8338 33.3481C31.3707 34.951 33.3028 35.9075 35.4074 35.9075C36.574 35.9075 37.6907 35.6125 38.7166 35.0765C38.7322 35.0672 38.7478 35.0575 38.7635 35.0482C39.1397 34.8508 39.507 34.6153 39.8549 34.3486C41.3575 33.217 42.5908 31.5278 43.3969 29.4921H43.3972Z'/%3E%3C/svg%3E");
--rule: 2px;
--hair: 1px;
--press: 4px;
--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* light: chosen with the toggle */
:root[data-theme="light"] {
--bg: #fbfbfa;
--surface: #f1f2f0;
--line: #dfe2df;
--text: #151a1b;
--muted: #4a5153;
--faint: #656d70;
--accent: #007a94;
--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .1 0 0 0 0 .1 0 0 0 1.1 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
color-scheme: light;
}
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
background: var(--bg);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
scroll-behavior: smooth;
}
body {
background: var(--bg) var(--grain) fixed;
color: var(--text);
font-family: var(--font-sans);
font-size: var(--step-0);
line-height: 1.6;
}
img {
max-width: 100%;
}
ul {
list-style: none;
}
::selection {
background: var(--accent);
color: var(--bg);
}
strong {
color: var(--text);
font-weight: 500;
}
a {
color: var(--text);
text-decoration: underline;
text-decoration-color: var(--line);
text-decoration-thickness: 1px;
text-underline-offset: 3px;
transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
@media (hover: hover) {
a:hover {
color: var(--accent);
text-decoration-color: var(--accent);
}
}
a:focus-visible {
outline: none;
box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
.page {
max-width: 720px;
margin: 0 auto;
padding-block: 40px 32px;
padding-inline: 20px;
}
/* header */
/* M3 navigation: the header sticks, and condenses once you start reading */
.site-header {
position: sticky;
top: 0;
z-index: 20;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
margin: 0 -20px 112px;
padding: 20px;
background: transparent;
transition:
padding 0.24s ease-out,
background-color 0.24s ease-out,
box-shadow 0.24s ease-out;
}
.site-header.is-condensed {
padding-block: 10px;
/* same grain, pinned to the window, so the header is the page, not a slab */
background: var(--bg) var(--grain) fixed;
box-shadow: 0 1px 0 var(--line);
}
a.logo-link {
display: block;
text-decoration: none;
}
.logo {
display: block;
width: 32px;
height: auto;
color: var(--text);
transform-origin: 0 50%;
transition: transform 0.24s ease-out;
}
.is-condensed .logo {
transform: scale(0.75);
}
/* the marker under the current section's link: a short band of hatch */
.site-nav {
position: relative;
}
.nav-marker {
position: absolute;
left: 0;
bottom: -7px;
width: 0;
height: 3px;
background: repeating-linear-gradient(-24deg, var(--accent) 0 1px, transparent 1px 3px);
opacity: 0;
pointer-events: none;
transition:
transform 0.32s cubic-bezier(0.65, 0, 0.35, 1),
width 0.32s cubic-bezier(0.65, 0, 0.35, 1),
opacity 0.2s ease;
}
.site-nav a[aria-current="true"] {
color: var(--text);
}
/* land below the sticky header when jumping to a section */
main > section[id] {
scroll-margin-top: 72px;
}
.site-nav {
display: flex;
align-items: center;
gap: 20px;
font-family: var(--font-mono);
font-size: var(--step--1);
}
.site-nav a {
color: var(--muted);
text-decoration: none;
}
@media (hover: hover) {
.site-nav a:hover {
color: var(--accent);
}
}
.theme-toggle {
display: inline-flex;
align-items: center;
gap: 8px;
margin-left: 4px;
padding: 4px 0 4px 20px;
border: 0;
border-left: var(--hair) solid var(--line);
background: none;
color: var(--muted);
font: inherit;
letter-spacing: inherit;
text-transform: inherit;
cursor: pointer;
}
@media (hover: hover) {
.theme-toggle:hover {
color: var(--accent);
}
}
.theme-toggle:focus-visible {
outline: none;
box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
/* the label names the mode you'd switch to. it comes from CSS so it is
right before any script runs, and a fixed width keeps the nav still. */
.theme-label {
display: inline-block;
width: 5ch;
}
.theme-label::before {
content: "light";
}
:root[data-theme="light"] .theme-label::before {
content: "dark";
}
/* half paper, half hatch: the two sides of the sheet */
.theme-swatch {
width: 12px;
height: 12px;
border: var(--hair) solid currentColor;
background: linear-gradient(90deg, currentColor 0 50%, transparent 50%), var(--hatch-ink);
background-blend-mode: normal;
}
/* hero */
.hero {
margin-bottom: 96px;
}
.eyebrow {
font-family: var(--font-mono);
font-size: var(--step--1);
color: var(--faint);
margin-bottom: 16px;
}
/* M2 kinetic hero: each word rises out of its own mask, then the line is
pressed tighter and fades as you scroll past it (lab.js sets --hero) */
.kinetic {
--hero: 0;
transform: translateY(calc(var(--hero) * -40px));
opacity: calc(1 - var(--hero) * 0.65);
letter-spacing: calc(-0.02em - var(--hero) * 0.025em) !important;
}
.kinetic .w {
display: inline-block;
overflow: hidden;
vertical-align: top;
padding-bottom: 0.1em;
margin-bottom: -0.1em;
}
.kinetic .w > span {
display: inline-block;
}
.motion .kinetic .w > span {
animation: word-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
animation-delay: calc(0.1s + var(--i) * 45ms);
}
@keyframes word-in {
from { transform: translateY(105%); }
}
h1 {
font-family: var(--font-display);
font-size: var(--step-1);
font-weight: 500;
line-height: 1.25;
letter-spacing: -0.02em;
text-wrap: balance;
max-width: 24ch;
margin-bottom: 16px;
}
.lede {
color: var(--muted);
max-width: 62ch;
}
/* section rows */
.row {
position: relative;
display: grid;
grid-template-columns: var(--rail) minmax(0, 1fr);
gap: 24px;
padding-block: 28px;
border-top: 1px solid var(--line);
}
/* M4 section rows: the divider draws left to right, the label slides in,
then the row's contents rise in a stagger (lab.js adds .is-in and the
per-item delay --d). only when motion is allowed. */
.motion .row {
border-top-color: transparent;
}
.motion .row::before {
content: "";
position: absolute;
top: -1px;
left: 0;
right: 0;
height: 1px;
background: var(--line);
transform: scaleX(0);
transform-origin: 0 50%;
transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.motion .row-label {
opacity: 0;
transform: translateX(-8px);
transition: opacity 0.5s var(--ease) 0.1s, transform 0.5s var(--ease) 0.1s;
}
.motion .reveal {
opacity: 0;
transform: translateY(12px);
transition:
opacity 0.6s var(--ease) var(--d, 0ms),
transform 0.6s var(--ease) var(--d, 0ms),
background-color 0.15s ease;
}
.motion .row.is-in::before {
transform: scaleX(1);
}
.motion .row.is-in .row-label,
.motion .row.is-in .reveal {
opacity: 1;
transform: none;
}
/* M5 projects: each thumbnail prints in with an 8-step pass, just after
its row rises */
.motion .project .project-thumb img {
clip-path: inset(0 100% 0 0);
transition:
opacity 0.15s ease,
clip-path 0.32s steps(8, end) calc(var(--d, 0ms) + 0.2s);
}
.motion .row.is-in .project .project-thumb img {
clip-path: inset(0 0 0 0);
}
.row-label {
font-family: var(--font-mono);
font-size: var(--step--1);
font-weight: 400;
line-height: 1.9;
color: var(--faint);
}
.row-text {
min-width: 0;
}
.row-text p {
color: var(--muted);
}
.row-text p + p {
margin-top: 8px;
}
/* learning: one topic per line, set like a ledger */
.ledger {
display: grid;
margin-top: -4px;
}
.ledger div {
display: grid;
grid-template-columns: 172px minmax(0, 1fr);
gap: 16px;
align-items: baseline;
padding-block: 10px;
border-bottom: var(--hair) solid var(--line);
}
.ledger div:first-child {
padding-top: 4px;
}
.ledger div:last-child {
border-bottom: 0;
padding-bottom: 0;
}
.ledger dt {
font-weight: 500;
color: var(--text);
}
.ledger dd {
color: var(--muted);
}
/* projects */
.projects {
display: grid;
gap: 20px;
margin-top: -16px;
}
.project {
display: grid;
grid-template-columns: 157px minmax(0, 1fr);
align-items: start;
gap: 20px;
padding: 16px;
margin-inline: -16px;
isolation: isolate;
transition: background-color 0.15s ease;
}
.project:has(:focus-visible),
.project.is-pressed {
background: var(--surface);
}
/* thumbnail plate: on hover it lifts off a hatched press shadow */
.project-thumb {
position: relative;
display: block;
align-self: start;
border: var(--hair) solid var(--line);
background: var(--bg);
transition: transform 0.15s var(--ease), border-color 0.15s ease;
}
.project-thumb::before {
content: "";
position: absolute;
inset: calc(var(--hair) * -1);
z-index: -1;
background: var(--hatch-ink);
transition: transform 0.15s var(--ease);
}
.project-thumb img {
display: block;
width: 100%;
height: auto;
aspect-ratio: 16 / 10;
object-fit: cover;
object-position: top;
opacity: 0.88;
transition: opacity 0.15s ease;
}
.project:has(:focus-visible) .project-thumb,
.project.is-pressed .project-thumb {
transform: translate(-2px, -2px);
border-color: var(--faint);
}
.project:has(:focus-visible) .project-thumb::before,
.project.is-pressed .project-thumb::before {
transform: translate(calc(var(--press) + 2px), calc(var(--press) + 2px));
}
.project:has(:focus-visible) .project-thumb img,
.project.is-pressed .project-thumb img {
opacity: 1;
}
/* M9: hover only where a real hover exists, so a tap never sticks */
@media (hover: hover) {
.project:hover {
background: var(--surface);
}
.project:hover .project-thumb {
transform: translate(-2px, -2px);
border-color: var(--faint);
}
.project:hover .project-thumb::before {
transform: translate(calc(var(--press) + 2px), calc(var(--press) + 2px));
}
.project:hover .project-thumb img {
opacity: 1;
}
}
.project-thumb:active {
transform: translate(0, 0);
}
.project-body {
min-width: 0;
}
.project-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 16px;
}
.project h3 {
font-family: var(--font-display);
font-size: var(--step-0);
font-weight: 500;
}
/* two lines at most, so every row (and every preview) is the same height */
.project-body > p:not(.project-meta) {
color: var(--muted);
margin-top: 4px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
overflow: hidden;
}
/* year and tags: one quiet line of facts */
.project-meta {
display: flex;
flex-wrap: wrap;
gap: 0 14px;
margin-top: 8px;
font-family: var(--font-mono);
font-size: var(--step--1);
color: var(--faint);
}
.project-links {
display: flex;
flex: none;
gap: 14px;
font-family: var(--font-mono);
font-size: var(--step--1);
}
.project-links a {
color: var(--muted);
white-space: nowrap;
}
@media (hover: hover) {
.project-links a:hover {
color: var(--accent);
}
}
/* playground: a short film on a plate. it plays muted while it's on
screen and pauses when it leaves; sound and play are yours to switch */
.film {
display: grid;
gap: 16px;
}
.film-frame {
position: relative;
isolation: isolate;
border: var(--hair) solid var(--line);
background: var(--surface);
}
.film-frame::before {
content: "";
position: absolute;
inset: calc(var(--hair) * -1);
z-index: -1;
background: var(--hatch-ink);
transform: translate(var(--press), var(--press));
}
.film-video {
display: block;
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
object-fit: cover;
background: var(--surface);
}
.film-controls {
position: absolute;
left: 12px;
right: 12px;
bottom: 12px;
display: flex;
justify-content: space-between;
gap: 8px;
pointer-events: none;
}
.film-controls button {
pointer-events: auto;
padding: 5px 10px;
border: var(--hair) solid rgba(255, 255, 255, 0.35);
background: rgba(10, 12, 13, 0.62);
color: #fff;
font-family: var(--font-mono);
font-size: var(--step--1);
cursor: pointer;
-webkit-backdrop-filter: blur(6px);
backdrop-filter: blur(6px);
transition: border-color 0.15s ease, background-color 0.15s ease;
}
.film-controls .film-sound.is-on {
border-color: #fff;
}
.film-controls button:focus-visible {
outline: none;
box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
@media (hover: hover) {
.film-controls button:hover {
border-color: #fff;
background: rgba(10, 12, 13, 0.82);
}
}
.film-body h3 {
font-family: var(--font-display);
font-size: var(--step-0);
font-weight: 500;
}
.film-body > p:not(.project-meta) {
margin-top: 4px;
color: var(--muted);
}
@media (pointer: coarse) {
.film-controls button {
min-height: 32px;
padding: 6px 10px;
}
}
/* contact */
.contact-links {
display: flex;
flex-wrap: wrap;
gap: 8px 20px;
margin-top: 12px;
}
/* footer */
.site-footer {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 8px 24px;
margin-top: 8px;
padding-top: 24px;
border-top: 1px solid var(--line);
font-family: var(--font-mono);
font-size: var(--step--1);
color: var(--faint);
}
/* the pen: Sunday Objects' work-in-progress mark. four -24deg strokes laid
one after another, then lifted. it marks everything that is ongoing. */
.pen {
display: inline-block;
width: 14px;
height: 14px;
margin-right: 8px;
vertical-align: -2px;
color: var(--accent);
fill: none;
stroke: currentColor;
stroke-width: 2.4;
stroke-linecap: round;
overflow: visible;
}
.pen path {
stroke-dasharray: 1 2;
stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
.pen path {
stroke-dashoffset: 1.1;
animation: lay 1.8s ease-in-out infinite;
}
.pen path:nth-child(2) { animation-delay: 0.16s; }
.pen path:nth-child(3) { animation-delay: 0.32s; }
.pen path:nth-child(4) { animation-delay: 0.48s; }
}
@keyframes lay {
0% { stroke-dashoffset: 1.1; opacity: 1; }
28% { stroke-dashoffset: 0; }
78% { stroke-dashoffset: 0; opacity: 1; }
92% { stroke-dashoffset: 0; opacity: 0; }
100% { stroke-dashoffset: 1.1; opacity: 0; }
}
/* page loader: once per session. the mark appears as a drifting hatch
sketch; a broad-nib pen inks it in one continuous line, G into U.
then the logo glides into its place in the header and becomes it, while
the sheet fades and the page rises around it. */
.loader {
display: none;
}
.is-loading {
overflow: hidden;
}
.is-loading .loader {
position: fixed;
inset: 0;
z-index: 100;
display: grid;
place-items: center;
color: var(--text);
pointer-events: none;
}
/* the sheet behind the mark fades on its own, so the mark can travel */
.is-loading .loader::before {
content: "";
position: absolute;
inset: 0;
background: var(--bg) var(--grain);
transition: opacity 0.5s ease 0.15s;
}
.is-loaded .loader::before {
opacity: 0;
}
/* the header logo waits for the printed one to arrive */
.is-loading .site-header .logo {
visibility: hidden;
}
.loader-art {
position: relative;
z-index: 1;
width: 112px;
height: 72px;
}
.loader-mark {
position: relative; /* paint above the sheet */
display: block;
overflow: visible;
transform-origin: 0 0;
}
/* the pen: one continuous broad-nib line, G straight into U, with square
ends, so it starts flush against the G's flat top-right terminal and
finishes flat on the U's top. each letter is revealed through its own
mask, both driven by the same timeline, so the pen only ever inks the
letter it is writing. when a letter is finished its line swells a touch
so the ink fills every corner. */
.pen-line {
fill: none;
stroke: #fff;
stroke-width: 13;
stroke-linecap: butt;
stroke-linejoin: round;
stroke-dasharray: 1 2;
stroke-dashoffset: 1;
}
/* timeline: 1.95s from 0.35s. the G's ink is complete at 1.35s, the U's at 2.3s;
each letter swells and drops its sketch at that moment. */
.pen-line-g {
animation:
write-g 1.95s linear 0.35s forwards,
swell 0.16s ease-out 1.35s forwards;
}
.pen-line-u {
animation:
write-u 1.95s linear 0.35s forwards,
swell 0.16s ease-out 2.3s forwards;
}
/* keyframes generated from a measured ink curve: visible ink grows at a
steady pace with soft ends, so the pen is unhurried wherever it lays new
ink and quick where it passes through ink already down. */
@keyframes write-g {
0% { stroke-dashoffset: 1.0000; }
3.12% { stroke-dashoffset: 0.9876; }
6.25% { stroke-dashoffset: 0.9817; }
9.38% { stroke-dashoffset: 0.9775; }
12.5% { stroke-dashoffset: 0.9487; }
15.62% { stroke-dashoffset: 0.9248; }
18.75% { stroke-dashoffset: 0.8975; }
21.88% { stroke-dashoffset: 0.8628; }
25% { stroke-dashoffset: 0.8228; }
28.12% { stroke-dashoffset: 0.7933; }
31.25% { stroke-dashoffset: 0.7631; }
34.38% { stroke-dashoffset: 0.6613; }
37.5% { stroke-dashoffset: 0.6140; }
40.62% { stroke-dashoffset: 0.5822; }
43.75% { stroke-dashoffset: 0.5465; }
46.88% { stroke-dashoffset: 0.5046; }
50% { stroke-dashoffset: 0.4026; }
53.12% { stroke-dashoffset: 0.1352; }
56.25% { stroke-dashoffset: 0.1140; }
59.38% { stroke-dashoffset: 0.0937; }
62.5% { stroke-dashoffset: 0.0731; }
65.62% { stroke-dashoffset: 0.0518; }
68.75% { stroke-dashoffset: 0.0293; }
71.88% { stroke-dashoffset: 0.0078; }
75% { stroke-dashoffset: 0.0000; }
78.12% { stroke-dashoffset: 0.0000; }
81.25% { stroke-dashoffset: 0.0000; }
84.38% { stroke-dashoffset: 0.0000; }
87.5% { stroke-dashoffset: 0.0000; }
90.62% { stroke-dashoffset: 0.0000; }
93.75% { stroke-dashoffset: 0.0000; }
96.88% { stroke-dashoffset: 0.0000; }
100% { stroke-dashoffset: 0.0000; }
}
@keyframes write-u {
0% { stroke-dashoffset: 1.0000; }
3.12% { stroke-dashoffset: 1.0000; }
6.25% { stroke-dashoffset: 1.0000; }
9.38% { stroke-dashoffset: 1.0000; }
12.5% { stroke-dashoffset: 1.0000; }
15.62% { stroke-dashoffset: 1.0000; }
18.75% { stroke-dashoffset: 1.0000; }
21.88% { stroke-dashoffset: 1.0000; }
25% { stroke-dashoffset: 1.0000; }
28.12% { stroke-dashoffset: 1.0000; }
31.25% { stroke-dashoffset: 1.0000; }
34.38% { stroke-dashoffset: 1.0000; }
37.5% { stroke-dashoffset: 1.0000; }
40.62% { stroke-dashoffset: 1.0000; }
43.75% { stroke-dashoffset: 1.0000; }
46.88% { stroke-dashoffset: 1.0000; }
50% { stroke-dashoffset: 1.0000; }
53.12% { stroke-dashoffset: 0.7914; }
56.25% { stroke-dashoffset: 0.7663; }
59.38% { stroke-dashoffset: 0.7420; }
62.5% { stroke-dashoffset: 0.7176; }
65.62% { stroke-dashoffset: 0.6922; }
68.75% { stroke-dashoffset: 0.6654; }
71.88% { stroke-dashoffset: 0.6398; }
75% { stroke-dashoffset: 0.4348; }
78.12% { stroke-dashoffset: 0.3980; }
81.25% { stroke-dashoffset: 0.3548; }
84.38% { stroke-dashoffset: 0.2860; }
87.5% { stroke-dashoffset: 0.2263; }
90.62% { stroke-dashoffset: 0.1782; }
93.75% { stroke-dashoffset: 0.1226; }
96.88% { stroke-dashoffset: 0.0602; }
100% { stroke-dashoffset: 0.0000; }
}
@keyframes swell {
to { stroke-width: 26; }
}
/* under-print: each letter first appears as a drifting -24deg hatch, a
sketch the pen inks over. a letter's sketch leaves the moment that
letter is finished. */
.loader-ghost {
position: absolute;
inset: 0;
opacity: 0;
background:
var(--grain),
repeating-linear-gradient(-24deg, var(--text) 0 1px, transparent 1px 6px);
}
.loader-ghost-g {
-webkit-mask: var(--mask-g) center / contain no-repeat;
mask: var(--mask-g) center / contain no-repeat;
animation:
sketch-in 0.4s ease-out 0.05s forwards,
drift 1.1s linear infinite,
sketch-out 0.2s ease 1.35s forwards;
}
.loader-ghost-u {
-webkit-mask: var(--mask-u) center / contain no-repeat;
mask: var(--mask-u) center / contain no-repeat;
animation:
sketch-in 0.4s ease-out 0.05s forwards,
drift 1.1s linear infinite,
sketch-out 0.2s ease 2.3s forwards;
}
@keyframes sketch-in { to { opacity: 0.6; } }
@keyframes sketch-out { from { opacity: 0.6; } to { opacity: 0; } }
/* one stripe per loop (6px / sin 24deg) so the drift never jumps */
@keyframes drift {
to { background-position: 0 0, 14.752px 0; }
}
/* the header holds still so the logo lands exactly on its spot */
.is-loading .site-header,
.loader-done .site-header {
animation: none;
}
/* the rest of the page waits under the sheet, then rises as it fades */
.is-loading:not(.is-loaded) .eyebrow,
.is-loading:not(.is-loaded) .lede,
.is-loading:not(.is-loaded) .kinetic .w > span {
animation-play-state: paused;
}
/* project preview plate: rides a rail in the right margin and follows
the cursor up and down. built by lab.js on wide screens with a mouse. */
.preview {
position: fixed;
top: 0;
left: 0;
z-index: 10;
width: 280px;
pointer-events: none;
opacity: 0;
transition: opacity 0.18s ease;
}
.preview.is-on {
opacity: 1;
}
.preview::before {
content: "";
position: absolute;
inset: 0;
transform: translate(8px, 8px);
background: var(--hatch-ink);
}
.preview-plate {