Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
1118 lines (1046 loc) · 73.2 KB
/
Copy pathindex.html
File metadata and controls
1118 lines (1046 loc) · 73.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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Ruslan Karymov — AI Enablement & Automation Lead · Creative, marketing and business operations</title>
<meta name="description" content="Production lines with a human approval gate. Built, deployed, handed over.">
<style>
@font-face{font-family:'Bricolage';font-style:normal;font-display:swap;font-weight:200 800;src:url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations')}
@font-face{font-family:'Instrument';font-style:normal;font-display:swap;font-weight:400 700;src:url(fonts/instrument-sans-latin-wght-normal.woff2) format('woff2-variations')}
@font-face{font-family:'JBMono';font-style:normal;font-display:swap;font-weight:100 800;src:url(fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2-variations')}
:root{
--bg:#07080b; --surface:#0c0e13; --surface2:#11141b; --line:#252b36; --line2:#323a4a;
--text:#f2f5fa; --muted:#c2ccdb; --dim:#96a1b3;
--accent:#5b9dff; --gate:#f0883e; --ok:#3ddc97;
--display:'Bricolage',ui-sans-serif,system-ui,sans-serif;
--body:'Instrument',ui-sans-serif,system-ui,sans-serif;
--mono:'JBMono',ui-monospace,SFMono-Regular,Menlo,monospace;
--r:16px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{background:var(--bg);color:var(--text);font-family:var(--body);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:hidden}
.wrap{width:min(1240px,92vw);margin:0 auto}
.mono{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim)}
h1,h2{font-family:var(--display);font-weight:600;letter-spacing:-.035em;line-height:1.02}
h3{font-family:var(--display);font-weight:600;letter-spacing:-.025em;line-height:1.16}
a{color:inherit;text-decoration:none}
/* ---------- reveal ---------- */
.rv{opacity:0;transform:translateY(14px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1)}
.rv.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
.rv{opacity:1;transform:none}
*{transition:none!important}
.float,.marq .row,.term .cur{animation:none!important}
svg.dsh rect.bar.on{width:72px}
#cv path,.flowpanel .flow path{animation:none!important;stroke-dashoffset:0!important}
#cv g{animation:none!important;opacity:1!important}
}
/* ---------- nav ---------- */
nav{position:fixed;top:0;left:0;right:0;z-index:50;backdrop-filter:blur(14px);background:rgba(7,8,11,.72);border-bottom:1px solid transparent;transition:border-color .3s}
nav.stuck{border-color:var(--line)}
nav .in{display:flex;align-items:center;justify-content:space-between;height:62px}
nav .brandmark{display:flex;align-items:center;gap:10px;font-family:var(--mono);font-size:12px;letter-spacing:.1em;color:var(--muted)}
nav .dot{width:8px;height:8px;border-radius:50%;background:var(--ok);box-shadow:0 0 12px var(--ok)}
nav ul{display:flex;gap:26px;list-style:none;font-size:13px;color:var(--muted)}
nav ul a:hover{color:var(--text)}
@media(max-width:880px){
nav ul{gap:0;overflow-x:auto;flex:1;-webkit-overflow-scrolling:touch;scrollbar-width:none;mask-image:linear-gradient(90deg,#000 88%,transparent)}
nav ul::-webkit-scrollbar{display:none}
nav ul li{flex:none}
nav ul a{padding:8px 4px;display:inline-block;padding:8px 10px;display:block}
nav .brandmark span.nm{display:none}
}
/* ---------- hero ---------- */
.hero{position:relative;min-height:96vh;display:flex;align-items:center;padding:120px 0 140px;overflow:hidden}
.hero svg.canvas{position:absolute;inset:0;width:100%;height:100%;opacity:.55}
#dust{position:absolute;inset:0;width:100%;height:100%;opacity:.5;pointer-events:none}
@keyframes __unused_run{0%{left:0;opacity:0}12%{opacity:1}88%{opacity:1}100%{left:100%;opacity:0}}
.hero .glow{position:absolute;width:820px;height:820px;right:-160px;top:-180px;background:radial-gradient(circle,rgba(91,157,255,.14),transparent 62%);filter:blur(30px);pointer-events:none}
.hero h1{font-size:clamp(40px,6.2vw,88px);max-width:17ch;position:relative}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero .sub{margin-top:26px;max-width:62ch;color:#ccd5e2;font-size:clamp(15px,1.25vw,18px);position:relative}
.hero .cta{display:flex;gap:12px;margin-top:34px;flex-wrap:wrap;position:relative}
.btn{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 18px;border-radius:999px;font-size:14px;font-weight:500;border:1px solid var(--line2);color:var(--text);transition:.25s}
.btn.primary{background:var(--text);color:#07080b;border-color:var(--text)}
.btn:hover{transform:translateY(-1px);border-color:var(--accent)}
.btn.primary:hover{background:#fff}
/* terminal line */
.term{margin-top:44px;position:relative;font-family:var(--mono);font-size:13px;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 16px;max-width:840px;overflow:hidden;white-space:nowrap}
@media(max-width:900px){.term{white-space:normal;word-break:break-word}}
@media(max-width:620px){.term{font-size:11.5px}}
.term .p{color:var(--dim)}
.term .ok{color:var(--ok)}
.term.tl{max-width:none;margin:36px 0 0;font-size:12.5px;background:linear-gradient(180deg,#0c0e13,#090b10)}
.term.tl .o{margin-left:14px}
.term.tl.done .cur{display:none}
@media(max-width:620px){.term.tl{font-size:11px}}
.term .cur{display:inline-block;width:7px;height:14px;background:var(--accent);vertical-align:-2px;animation:blink 1.1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
/* ---------- section shell ---------- */
section.band{padding:clamp(88px,11vh,132px) 0}
.shead{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:34px;align-items:end;margin-bottom:40px}
@media(max-width:900px){.shead{grid-template-columns:1fr}}
.shead h2{font-size:clamp(28px,3.6vw,50px)}
.shead p{color:#a8b3c5;max-width:52ch;font-size:15px}
.rule{height:1px;background:linear-gradient(90deg,var(--line2),transparent);margin-bottom:34px}
/* ---------- product cards ---------- */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
@media(max-width:900px){.grid,.grid.five{grid-template-columns:1fr}}
.pcard{position:relative;border:1px solid var(--line);border-radius:var(--r);background:linear-gradient(180deg,var(--surface2),var(--surface));overflow:hidden;transition:border-color .35s,transform .35s}
.pcard::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(320px circle at var(--mx,50%) var(--my,0%),rgba(91,157,255,.10),transparent 60%);opacity:0;transition:opacity .4s}
.pcard:hover{border-color:var(--line2);transform:translateY(-2px)}
.pcard:hover::after{opacity:1}
/* window chrome — the one frame every screenshot wears */
.win{margin:16px 16px 0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#05060a}
.win .bar{display:flex;align-items:center;gap:8px;padding:9px 12px;background:var(--surface2);border-bottom:1px solid var(--line)}
.win .bar i{width:9px;height:9px;border-radius:50%;background:#2a3140;display:block}
.win .bar span{font-family:var(--mono);font-size:10.5px;color:var(--dim);margin-left:8px;letter-spacing:.06em}
.win .shot{aspect-ratio:16/10;overflow:hidden;background:#05060a;position:relative}
.win .shot::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(7,8,11,.30));pointer-events:none}
.win .shot img{width:100%;height:100%;object-fit:cover;object-position:50% 12%;filter:saturate(1.02) contrast(1.02);transition:filter .5s,transform .8s cubic-bezier(.2,.7,.2,1)}
.pcard:hover .win .shot img{filter:saturate(1.08) contrast(1.05);transform:scale(1.015)}
.pcard.wide .win .shot{aspect-ratio:21/9}
.pcard.wide .win .shot img{object-position:62% 46%}
.pcard.wide .pbody p{max-width:78ch}
.pbody{padding:20px 22px 24px}
.pbody h3{font-size:24px;margin-bottom:10px}
.pbody p{color:#b0bbcb;font-size:15px}
.tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}
.tag{font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);border:1px solid var(--line);border-radius:999px;padding:5px 9px}
.plinks{display:flex;gap:16px;margin-top:16px;font-size:13px}
.plinks a{display:inline-block;padding:6px 0;color:var(--accent);border-bottom:1px solid transparent;transition:.2s}
.plinks a:hover{border-color:var(--accent)}
.metric{position:absolute;top:58px;right:26px;z-index:2;font-family:var(--mono);font-size:11px;color:var(--text);background:rgba(7,8,11,.78);border:1px solid var(--line2);border-radius:999px;padding:6px 12px;backdrop-filter:blur(6px)}
/* ---------- campaign card ---------- */
.camp{border:1px solid var(--line);border-radius:var(--r);background:linear-gradient(180deg,var(--surface2),var(--surface));overflow:hidden}
.camp .top{padding:34px 34px 26px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:34px}
.camp .top>*{min-width:0}
@media(max-width:900px){.camp .top{grid-template-columns:1fr}}
.camp h3{font-size:clamp(24px,2.6vw,34px);margin-bottom:14px}
.camp p{color:#b0bbcb;font-size:15px}
.nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-self:start;min-width:0}
@media(max-width:620px){.nums{grid-template-columns:1fr}}
.num{border:1px solid var(--line);border-radius:12px;padding:16px 14px;background:var(--surface)}
.num b{display:block;font-family:var(--display);font-size:30px;letter-spacing:-.03em;line-height:1}
.num b i{font-style:normal;color:var(--accent);font-size:.6em}
.num span{display:block;color:var(--dim);font-size:12px;margin-top:8px;line-height:1.35}
.marq{overflow:hidden;border-top:1px solid var(--line);padding:16px 0;mask-image:linear-gradient(90deg,transparent,#000 72px,#000 calc(100% - 72px),transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 72px,#000 calc(100% - 72px),transparent)}
.marq .row{display:flex;gap:10px;width:max-content;animation:mq 56s linear infinite}
.marq .row.b{animation-duration:72s;animation-direction:reverse}
.marq.hm{border-top:0;padding:0;margin:12px 0 30px;display:grid;gap:9px}
.marq.hm .chip{font-size:13.5px;padding:7px 14px}
.marq.hm .chip small{font-size:9.5px}
.marq:hover .row{animation-play-state:paused}
@keyframes mq{to{transform:translateX(-50%)}}
.chip{display:flex;align-items:center;gap:9px;white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:9px 16px;background:var(--surface);font-family:var(--display);font-weight:600;font-size:15px;color:var(--text)}
.chip small{font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--dim);font-weight:400}
.stage.wide{aspect-ratio:auto;height:clamp(215px,20vw,310px);max-height:none;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;background:radial-gradient(120% 140% at 50% 0%,#0a0d13,#07080b);-webkit-mask-image:linear-gradient(90deg,transparent,#000 26px,#000 calc(100% - 26px),transparent);mask-image:linear-gradient(90deg,transparent,#000 26px,#000 calc(100% - 26px),transparent)}
/* ---------- career graph ---------- */
.graph .cols{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(12px,1.6vw,24px);align-items:stretch;margin:0 calc(-1 * max(0px, min(4.5vw, (100vw - 100%)/2 - 24px)))}
.gnode{position:relative;z-index:3;border:1px solid var(--line2);border-radius:11px;background:rgba(17,20,27,.96);box-shadow:0 10px 30px rgba(0,0,0,.45);overflow:visible;display:flex;flex-direction:column}
.gnode .ntitle{display:grid;grid-template-columns:minmax(0,1fr);align-items:baseline;align-content:start;gap:5px;padding:14px 15px;min-height:78px;border-radius:10px 10px 0 0;background:linear-gradient(180deg,#141a24,#10141c);border-bottom:1px solid var(--line)}
.gnode .ntitle span{font-family:var(--display);font-size:clamp(13.5px,1.15vw,16px);font-weight:600;letter-spacing:-.01em;color:var(--text);line-height:1.15}
.gnode .ntitle em{font-family:var(--mono);font-style:normal;font-size:clamp(9.5px,.78vw,11px);letter-spacing:.1em;color:#96a1b3;white-space:nowrap;justify-self:start}
.gnode.now{border-color:var(--accent);box-shadow:0 0 0 1px rgba(91,157,255,.22),0 16px 44px rgba(91,157,255,.12)}
.gnode.now .ntitle{background:linear-gradient(180deg,#152134,#101826)}
.gnode.now .ntitle span{color:var(--text)}
.graph{position:relative;padding:14px 0 28px}
@media(max-width:1000px){.graph{padding-bottom:16px}}
.graph svg.links{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:4}
.graph svg.links path{pointer-events:none}
.paused *,.paused *::before,.paused *::after{animation-play-state:paused!important}
.paused .float{animation-play-state:paused!important}
.gnode::before,.gnode::after{content:'';position:absolute;top:50%;width:7px;height:7px;border-radius:50%;background:#0b0d12;border:1.5px solid var(--line2);transform:translateY(-50%);z-index:3}
.gnode::before{left:-4px}.gnode::after{right:-4px}
.gnode.now::before{border-color:var(--accent)}
.nrow{border-top:1px solid var(--line);padding:12px 15px;font-size:clamp(12px,1vw,13.5px);color:#b0bbcb;line-height:1.4;position:relative}
.nrow b{color:var(--ok);font-weight:600}
.nrow:first-of-type{border-top:0}
@media(max-width:1000px){.graph .cols{grid-template-columns:1fr 1fr;margin:0}.graph svg.links{display:none}}
@media(max-width:640px){.graph .cols{grid-template-columns:1fr}}
/* ---------- floating framed assets ---------- */
.stage{position:relative;margin:-4px -4px 18px;aspect-ratio:16/11;min-height:210px;max-height:340px;border:1px solid var(--line);border-radius:12px;background:radial-gradient(120% 120% at 20% 0%,#0a0d13,#06070b);overflow:hidden}
.stage svg.fx{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
.stage svg.fx path{fill:none;stroke-width:1;stroke-dasharray:2.5 4.5;stroke-linecap:round;opacity:.75;animation:dashcrawl 14s linear infinite}
@keyframes dashcrawl{to{stroke-dashoffset:-140}}
.float{position:absolute;z-index:2;border-radius:9px;overflow:hidden;background:#05060a;box-shadow:0 0 0 3px #07080b,0 14px 32px rgba(0,0,0,.66);will-change:transform}
.float img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 32%;filter:saturate(1.06)}
.float.b{border:1px solid var(--accent)}
.float.g{border:1px solid var(--ok)}
.float.o{border:1px solid var(--gate)}
.float.inv img{filter:invert(1) hue-rotate(180deg) saturate(1.15) brightness(.92) contrast(1.05)}
.float.hot img{filter:brightness(.76) contrast(1.06) saturate(1.02)}
.float.tag{display:flex;align-items:center;justify-content:center;padding:10px;background:linear-gradient(180deg,#11141b,#0a0d13)}
.float.tag figcaption{text-align:center}
.float.tag b{display:block;font-family:var(--display);font-size:clamp(19px,2.2vw,32px);font-weight:700;letter-spacing:-.03em;line-height:1;color:var(--text)}
.float.tag span{display:block;margin-top:8px;font-family:var(--mono);font-size:9.5px;line-height:1.35;letter-spacing:.08em;text-transform:uppercase;color:#a6b1c3}
.float.tag.b b{color:var(--accent)}.float.tag.g b{color:var(--ok)}.float.tag.o b{color:var(--gate)}
/* egov: the artefact is a data model, so the data model is what runs here */
.stage.dm{max-height:430px}
.stage .dmx{position:absolute;left:0;top:8px;width:100%;z-index:2}
.stage .dsh{position:absolute;right:1.5%;width:51%;z-index:2}
.stage .pic{position:absolute;left:1.5%;width:44%;z-index:2;border:1px solid var(--accent);border-radius:9px;overflow:hidden;background:#05060a;box-shadow:0 0 0 3px #07080b,0 14px 32px rgba(0,0,0,.66);animation:pindrift 17s ease-in-out infinite}
.stage .pic img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 40%;filter:brightness(.8) contrast(1.05)}
@keyframes pindrift{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(9px,-7px,0)}}
@media(prefers-reduced-motion:reduce){.stage .pic{animation:none}}
@media(max-width:700px){.stage .pic,.stage .dsh{display:none}}
.dsh .pane{fill:#0b0e15;stroke:var(--line2);stroke-width:1}
.dsh .hd{font-family:var(--mono);font-size:8.4px;letter-spacing:.14em;fill:#96a1b3;text-transform:uppercase}
.dsh .kpi{font-family:var(--display);font-size:30px;font-weight:700;letter-spacing:-.03em;fill:var(--ok)}
.dsh .bar{fill:#2b3547}.dsh .bar.on{fill:var(--ok);opacity:.85}
.dsh .tick{stroke:#1b2230;stroke-width:.6}
.dsh .sm{font-family:var(--mono);font-size:8px;letter-spacing:.06em;fill:#a6b1c3}
.dsh .sm.foot{font-size:7px;fill:#96a1b3}
.dmx .blk{fill:#0b0e15;stroke:var(--line2);stroke-width:1}
.dmx .hd{font-family:var(--mono);font-size:7.6px;letter-spacing:.14em;fill:#96a1b3;text-transform:uppercase}
.dmx .row{fill:#2b3547}
.dmx .row.dup{fill:#5a3a22}
.dmx .row.uni{fill:#1f3f5f}
.dmx .row.key{fill:#1c4a38}
.dmx .lnk{fill:none;stroke-width:.8;stroke-dasharray:2 3;opacity:.7;animation:dashcrawl 11s linear infinite}
.dmx .mark{font-family:var(--mono);font-size:8px;letter-spacing:.1em;fill:var(--ok)}
@media(prefers-reduced-motion:reduce){.stage svg.fx path,.dmx .lnk{animation:none}}
@media(max-width:1000px){.stage{max-height:420px}}
/* ---------- spec cards (deployed / automation) ---------- */
.specs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
@media(max-width:1000px){.specs{grid-template-columns:1fr}}
.spec{position:relative;border:1px solid var(--line);border-radius:var(--r);background:linear-gradient(180deg,var(--surface2),var(--surface));padding:24px 24px 26px;transition:border-color .35s,transform .35s;display:flex;flex-direction:column;min-width:0}
.spec:hover{border-color:var(--line2);transform:translateY(-2px)}
.spec .flowpanel{margin:-4px 0 20px;border:1px solid var(--line);border-radius:12px;background:radial-gradient(120% 120% at 20% 0%,#0a0d13,#06070b);padding:14px;display:flex;align-items:center;gap:14px;min-height:108px}
.stage .flowpanel{position:absolute;left:50%;transform:translateX(-50%);width:calc(100% - 20px);max-width:460px;bottom:8px;margin:0;border:0;border-radius:10px;background:none;backdrop-filter:none;min-height:0;padding:8px 10px}
.spec .flowpanel svg{flex:1;min-width:0;width:100%;height:auto;overflow:visible}
.spec .who{font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--dim)}
.spec h3{font-size:24px;margin:10px 0 16px}
.spec dl{display:grid;grid-template-columns:auto 1fr;gap:7px 12px;font-size:14px}
.spec dt{font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#a6b1c3;padding-top:4px}
.spec dd{color:#ccd5e2}
.spec dd b{color:var(--text);font-weight:600}
.spec .out{margin-top:auto;padding-top:16px;border-top:1px solid var(--line);font-family:var(--mono);font-size:12px;color:var(--ok);display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px}
.spec .out .go{margin-left:auto;color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(91,157,255,.4);display:inline-block;padding:6px 0}
.spec .out .go:hover{border-bottom-color:var(--accent)}
.specs.four{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1000px){.specs.four{grid-template-columns:1fr}}
@media(max-width:700px){.specs.four{grid-template-columns:1fr}}
.spec.lean{padding:20px 22px 22px}
.spec.lean h3{font-size:21px;margin:8px 0 16px}
.spec.lean dl{font-size:13px}
.grid.five{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:900px){.grid.five{grid-template-columns:1fr}}
.pcard.wide{grid-column:span 2}
@media(max-width:900px){.pcard.wide{grid-column:span 1}}
.flowpanel .lb{font-family:var(--mono);font-size:8px;fill:#a6b1c3;letter-spacing:.06em;text-anchor:middle}
.flowpanel .lb.c{font-size:7px}
.flowpanel .flow path{stroke:#232b3a;stroke-width:1.3;fill:none;stroke-dasharray:60;stroke-dashoffset:60;animation:draw 1.1s .3s forwards}
.flowpanel .flow rect{fill:#0c0e13;stroke:#2a3346;stroke-width:1.2}
.flowpanel .flow rect.gate{stroke:var(--gate)}
.flowpanel .flow rect.exit{stroke:var(--ok)}
@keyframes draw{to{stroke-dashoffset:0}}
.clinks{display:flex;flex-wrap:wrap;align-items:center;gap:10px;align-self:center}
.btn.big{height:54px;font-size:16px;padding:0 26px}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:5px}
.skip{position:absolute;left:-9999px;top:0;z-index:99;background:var(--surface2);color:var(--text);border:1px solid var(--accent);border-radius:8px;padding:10px 16px;font-family:var(--mono);font-size:12px}
.skip:focus{left:16px;top:16px}
footer{padding:60px 0 80px;color:var(--dim);font-size:13px;border-top:1px solid var(--line);margin-top:40px}
</style>
<noscript><style>.rv{opacity:1!important;transform:none!important}</style></noscript>
</head>
<body>
<a class="skip" href="#deployed">Skip to the work</a>
<nav id="nav"><div class="wrap in">
<div class="brandmark"><span class="dot"></span> <span class="nm">RUSLAN KARYMOV</span></div>
<ul>
<li><a href="#graph">Path</a></li>
<li><a href="#deployed">Deployed</a></li>
<li><a href="#products">Products</a></li>
<li><a href="#automation">Automation</a></li>
<li><a href="#campaigns">Campaigns</a></li>
<li><a href="#hire">Hire</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<a class="btn" href="mailto:karusrus@gmail.com">Email me</a>
</div></nav>
<header class="hero">
<div class="glow"></div>
<canvas id="dust" aria-hidden="true"></canvas>
<svg class="canvas" id="cv" aria-hidden="true" preserveAspectRatio="xMidYMid slice"></svg>
<div class="wrap">
<div class="mono rv">AI Enablement & Automation Lead · Creative, marketing and business operations</div>
<h1 class="rv" style="margin-top:18px">Production lines with a <em>human gate</em>, handed over working.</h1>
<p class="sub rv">I take an operation that already runs — creative, marketing, business — and put AI inside it where it pays: a pipeline, an approval gate a named person signs, a ledger an auditor can read. Eleven years inside a regulated fintech, then delivery for EU institutions. Based in Bulgaria, EU work rights, no sponsorship needed.</p>
<div class="cta rv">
<a class="btn primary" href="#products">See what it looks like</a>
<a class="btn" href="#deployed">See three systems in production</a>
<a class="btn" href="#hire">Three ways to start →</a>
</div>
<div class="term rv" id="term"><span class="p">$</span> <span id="tt"></span><span class="cur"></span></div>
<div class="mono rv" style="margin-top:12px;font-size:10px;color:#96a1b3">demo instance · client deployments stay under NDA</div>
<div class="mono rv" style="margin-top:34px;font-size:10px;letter-spacing:.14em;color:#96a1b3">WORKED ON, FOR</div> <div class="marq hm rv" aria-label="Brands and institutions this work was done for"><div class="row" id="mq1"></div><div class="row b" id="mq2"></div></div>
</div>
</header>
<section class="band" id="graph">
<div class="wrap">
<div class="shead rv">
<div>
<div class="mono">How it connects</div>
<h2 style="margin-top:12px">Every stage output is an input of the next. My career path.</h2>
</div>
</div>
<div class="rule rv"></div>
<div class="graph rv" id="graph-wrap">
<svg class="links" id="glinks" role="img" aria-label="Career path: each stage output feeds the next stage"></svg>
<div class="cols">
<div class="gnode" id="g0">
<div class="ntitle"><span>IT Systems & Technologies</span><em>graduated</em></div>
<div class="nrow" id="o0a"><b>Master's level</b> — five-year specialist programme, UrFU</div>
<div class="nrow" id="o0b"><b>Licensed Chief Engineer (ГИП)</b> — the signature a project ships under</div>
</div>
<div class="gnode" id="g1">
<div class="ntitle"><span>Chief engineer</span><em>2007 — 2011</em></div>
<div class="nrow" id="o1a"><b>50 engineers</b> led — a vague goal broken into a delivery structure</div>
<div class="nrow" id="o1b"><b>TRIZ · FEA · SCADA</b> — contradictions named, not argued; −17% cost</div>
</div>
<div class="gnode" id="g2">
<div class="ntitle"><span>Design lead · fintech</span><em>2011 — 2022</em></div>
<div class="nrow" id="o2a"><b>23 markets</b> weekly, ~20 people steered without authority</div>
<div class="nrow" id="o2b"><b>Figma API · BambooHR · Polygon</b> — the first pipelines</div>
</div>
<div class="gnode" id="g3">
<div class="ntitle"><span>Creative performance</span><em>2023 — 2024</em></div>
<div class="nrow" id="o3a"><b>300 creatives a day</b> generated where one was made by hand</div>
<div class="nrow" id="o3b"><b>SQL picks the winner</b> — the decision leaves the room</div>
</div>
<div class="gnode" id="g4">
<div class="ntitle"><span>EU institutional delivery</span><em>2023 — 2025</em></div>
<div class="nrow" id="o4a"><b>Governance as a condition</b> of funding, not a report</div>
<div class="nrow" id="o4b"><b>Committees</b> — 20–30 experts into one decision</div>
</div>
<div class="gnode now" id="g5">
<div class="ntitle"><span>Independent — AI implementation</span><em>2025 — now</em></div>
<div class="nrow" id="o5a"><b>Transparency Kit</b> — gate, ledger, registry</div>
<div class="nrow" id="o5b"><b>Two production pipelines on client stacks</b> in 2025 — names under NDA</div>
</div>
</div>
</div>
<div class="term tl rv" data-cmd="check handovers --all" data-out="PASS · 6 stages · nothing dropped on the way"></div>
</div>
</section>
<section class="band" id="deployed">
<div class="wrap">
<div class="shead rv">
<div>
<div class="mono">Deployed at the client</div>
<h2 style="margin-top:12px">Three systems other people run without me.</h2>
</div>
</div>
<div class="rule rv"></div>
<div class="specs">
<article class="spec rv">
<div class="who">Twigeo · for Swimply</div>
<h3>Generative ad production</h3>
<div class="stage"><figure class="float b" data-ar="1"><img loading="lazy" decoding="async" src="assets/a-swimply-post.jpg" alt="Generated feed creative for Swimply"></figure><figure class="float b" data-ar="0.561"><img loading="lazy" decoding="async" src="assets/a-swimply-story.jpg" alt="Generated story creative for Swimply"></figure><figure class="float g" data-ar="2.25"><img loading="lazy" decoding="async" src="assets/a-swimply-cta.jpg" alt="Story call to action, composed from the listing"></figure><figure class="float tag o" data-ar="1.5"><figcaption><b>300</b><span>creatives a day</span></figcaption></figure><div class="flowpanel" data-flow="brief,Bannerbear API,variants,TikTok · Meta" data-gate=""></div></div>
<dl>
<dt>Was</dt><dd>One creative a day, assembled by hand.</dd>
<dt>Built</dt><dd>A pipeline on the <b>Bannerbear API</b>: live listings composed into brand templates, shipped to TikTok, Meta, X and Google Ads.</dd>
<dt>Runs</dt><dd>The agency's media buyers, on their own accounts.</dd>
</dl>
<div class="out">~300 creatives a day · ROAS +50–70%</div>
</article>
<article class="spec rv">
<div class="who">Exness</div>
<h3>Hiring offers issued on-chain</h3>
<div class="stage"><figure class="float b" data-ar="0.706"><img loading="lazy" decoding="async" src="assets/a-offer-doc.jpg" alt="Job offer generated from BambooHR, merge fields visible"></figure><figure class="float o" data-ar="0.777"><img loading="lazy" decoding="async" src="assets/a-nft-cert.jpg" alt="The accepted offer as a certificate"></figure><figure class="float g" data-ar="0.606"><img loading="lazy" decoding="async" src="assets/a-nft-card1.jpg" alt="Certificate front, issued to the candidate"></figure><figure class="float b" data-ar="0.545"><img loading="lazy" decoding="async" src="assets/a-nft-phone.jpg" alt="The candidate verifies the certificate on a phone"></figure><div class="flowpanel" data-flow="request,generate,approve,mint" data-gate="2"></div></div>
<dl>
<dt>Was</dt><dd>Every offer assembled and sent by hand, design in the loop each time.</dd>
<dt>Built</dt><dd><b>BambooHR REST API</b> into generated personalised interactive PDF offers, extended to non-transferable <b>NFT certificates on Polygon</b> the candidate verifies for themselves.</dd>
<dt>Runs</dt><dd>The HR team, end to end, without design.</dd>
</dl>
<div class="out">100+ offers issued · each one verifiable on-chain</div>
</article>
<article class="spec rv">
<div class="who">Horizon Europe · via GDSI</div>
<h3>Delivery under EU programme rules</h3>
<div class="stage"><figure class="float b hot" data-ar="1.493"><img loading="lazy" decoding="async" src="assets/a-gdsi-hub.jpg" alt="Delegation data hub"></figure><figure class="float o hot" data-ar="1.984"><img loading="lazy" decoding="async" src="assets/a-gdsi-plan.jpg" alt="Programme content architecture, redrawn"></figure><figure class="float g hot" data-ar="1.242"><img loading="lazy" decoding="async" src="assets/a-gdsi-conf.jpg" alt="Programme event material for an EU delegation"></figure><figure class="float b hot" data-ar="1"><img loading="lazy" decoding="async" src="assets/a-gdsi-youth.jpg" alt="Programme campaign material for an EU delegation"></figure><div class="flowpanel wp"></div></div>
<dl>
<dt>Was</dt><dd>Twenty to thirty experts of input per document, and a committee with an afternoon to decide.</dd>
<dt>Built</dt><dd>The <b>organisational and technical pipeline</b> behind the analysis: how material moves, who decides and on what, delivered under the programme's ethics and data-governance rules.</dd>
<dt>Runs</dt><dd>The GDSI project team, under Horizon Europe rules. My role: AI Expert, subcontracted.</dd>
</dl>
<div class="out">Ethics-by-Design as part of the deliverable</div>
</article>
</div>
<div class="term tl rv" data-cmd="status --where=client" data-out="active (running) · owner: the client’s team · since handover"></div>
</div>
</section>
<section class="band" id="products">
<div class="wrap">
<div class="shead rv">
<div>
<div class="mono">Products</div>
<h2 style="margin-top:12px">Tools I built and shipped.</h2>
</div>
</div>
<div class="rule rv"></div>
<div class="grid five">
<article class="pcard wide rv">
<div class="metric">v1.4 · open source · same accuracy as the CPU</div>
<div class="win">
<div class="bar"><i></i><i></i><i></i><span>llama.cpp · Snapdragon 7 Gen 4 NPU · integer HMX</span></div>
<div class="shot"><img loading="lazy" decoding="async" src="assets/w-npu.jpg" alt="The reasoning trace from the NPU case: a step card reading 172 tokens per second with the same perplexity as the CPU, next to a gauge whose history shows a fake 437 t/s spike, a drop to zero and a climb past the CPU line"></div>
</div>
<div class="pbody">
<h3>A phone NPU that "couldn't" run LLMs, running them</h3>
<p>On Snapdragon 7 Gen 4 the NPU returned garbage in llama.cpp: its matrix unit has no FP16 and the software assumed it did. I reframed the bug as the opportunity and, working with an AI coding agent, moved the math to integers. Prompt processing is now 3.3× faster than the CPU and 2.3× faster than the GPU, with the same accuracy (perplexity) as the CPU. A copy optimization I co-authored is merged into llama.cpp, and an ARM kernel into PrismML; the main fix is in review upstream. A 21-chip map shows which Snapdragons need it. The case page shows the reasoning step by step, dead ends included.</p>
<div class="tags"><span class="tag">llama.cpp</span><span class="tag">Hexagon NPU</span><span class="tag">On-device AI</span><span class="tag">Performance</span><span class="tag">AI pair work</span></div>
<div class="plinks"><a href="npu/">Case →</a><a href="https://github.com/karusrus/npu-enablement">Repository →</a></div>
</div>
</article>
<article class="pcard wide rv">
<div class="metric">Art. 50 · ledger verified</div>
<div class="win">
<div class="bar"><i></i><i></i><i></i><span>n8n · AI Act gate · active</span></div>
<div class="shot"><img loading="lazy" decoding="async" src="assets/w-aiact-line.jpg" alt="A production line in n8n: the AI Act gate, a human approval step and the publish node marked as the exit"></div>
</div>
<div class="pbody">
<h3>AI Act Transparency Kit</h3>
<p>An n8n module for the deployer side of Article 50: classification, burnt-in label, a human gate a named person signs, and an append-only hash-chained ledger in Postgres. The auditor's page is behind header auth and verifies the chain on every render.</p>
<div class="tags"><span class="tag">n8n</span><span class="tag">Postgres</span><span class="tag">ffmpeg</span><span class="tag">EU AI Act</span></div>
<div class="plinks"><a href="https://karusrus.github.io/transparency-kit/">Case →</a><a href="https://github.com/karusrus/transparency-kit">Repository →</a></div>
</div>
</article>
<article class="pcard wide rv">
<div class="metric">19/19 cited · 0 invented · 8/9 traps refused</div>
<div class="win">
<div class="bar"><i></i><i></i><i></i><span>vault-rag — cite or refuse</span></div>
<div class="shot"><img loading="lazy" decoding="async" src="assets/w-vaultrag.jpg" alt="A local RAG answering a question in Russian with three note ids as sources, then refusing a question the notes do not answer"></div>
</div>
<div class="pbody">
<h3>vault-rag — local RAG that cites or refuses</h3>
<p>Ask a folder of markdown notes a question and every claim comes back with the id of the note it came from, or a plain NOT_IN_NOTES. Hybrid BM25 and bge-m3 retrieval fused by RRF, an evidence gate that stops off-topic questions before any model runs, and a check that every citation was in the context actually sent. Measured on 28 questions with traps: 19 of 19 answered with the right note cited, no invented citations, 8 of 9 traps refused. The one miss is written up, not hidden.</p>
<div class="tags"><span class="tag">RAG</span><span class="tag">bge-m3</span><span class="tag">Ollama</span><span class="tag">Evaluation</span><span class="tag">Offline</span></div>
<div class="plinks"><a href="https://github.com/karusrus/vault-rag">Repository →</a></div>
</div>
</article>
<article class="pcard rv">
<div class="metric">MIT · one HTML file</div>
<div class="win">
<div class="bar"><i></i><i></i><i></i><span>pipeline-map — import n8n</span></div>
<div class="shot"><img loading="lazy" decoding="async" src="assets/w-pipeline-overview.jpg" alt="Pipeline Map"></div>
</div>
<div class="pbody">
<h3>Pipeline Map</h3>
<p>A node canvas for pitching a system before it exists: drag, rewire, animate the flow, fly between camera views. It imports a live n8n instance, so the diagram in the meeting is generated from the workflow, not drawn to look like one.</p>
<div class="tags"><span class="tag">Canvas</span><span class="tag">n8n import</span><span class="tag">Presales</span></div>
<div class="plinks"><a href="https://karusrus.github.io/pipeline-map/">Open the canvas →</a><a href="https://github.com/karusrus/pipeline-map">Repository →</a></div>
</div>
</article>
<article class="pcard rv">
<div class="metric">1,202 CVs · 77 ms · offline</div>
<div class="win">
<div class="bar"><i></i><i></i><i></i><span>resume-lab — 1,202 CVs, nothing leaves the machine</span></div>
<div class="shot"><img loading="lazy" decoding="async" src="assets/w-resumelab-dark.jpg" alt="The CV archive drawn as islands: 1,202 CVs in 19 clusters, all offline"></div>
</div>
<div class="pbody">
<h3>Privacy-first local-LLM CV evaluation</h3>
<p>A consultancy staffs tenders from an archive nobody can read. This turns it into islands you can see, then answers a requirement list in plain language or straight from the terms of reference — every requirement backed by a quote from the CV, re-read by a second model. Vectors on the machine, no data leaving the building.</p>
<div class="tags"><span class="tag">bge-m3</span><span class="tag">llama.cpp</span><span class="tag">cosmos.gl</span><span class="tag">Offline</span></div>
<div class="plinks"><span style="color:#96a1b3;font-size:13px">Walkthrough on request · demo data is an open dataset, not client data</span></div>
</div>
</article>
<article class="pcard rv">
<div class="metric">1,000 iterations · 70/30</div>
<div class="win">
<div class="bar"><i></i><i></i><i></i><span>rc-scanner — live signal</span></div>
<div class="shot"><img loading="lazy" decoding="async" src="assets/scanner-grid-dark.jpg" alt="Solana scanner"></div>
</div>
<div class="pbody">
<h3>Solana DEX Signal Scanner</h3>
<p>A live tool scoring tokens in real time on buy pressure and volume velocity, zero dependencies against the GeckoTerminal API. The signal is built on 300 early-bird wallets and validated by bootstrapping over a thousand iterations.</p>
<div class="tags"><span class="tag">Python</span><span class="tag">Helius · BitQuery</span><span class="tag">Validation</span></div>
<div class="plinks"><a href="https://karusrus.github.io/rc-scanner">Open the tool →</a><a href="https://github.com/karusrus/solana-trading-analytics">Analytics →</a></div>
</div>
</article>
<article class="pcard rv">
<div class="metric">Impact / effort matrix</div>
<div class="win">
<div class="bar"><i></i><i></i><i></i><span>dextools — dashboard audit</span></div>
<div class="shot"><img loading="lazy" decoding="async" src="assets/dextools.jpg" alt="DexTools audit"></div>
</div>
<div class="pbody">
<h3>DexTools dashboard audit</h3>
<p>An independent read of how a DeFi analytics platform presents data: signal-to-noise, information hierarchy, what the first view has to answer. Delivered as an authored walkthrough ordered by impact against effort, not as a list of opinions.</p>
<div class="tags"><span class="tag">Audit</span><span class="tag">Information hierarchy</span><span class="tag">Web3</span></div>
<div class="plinks"><span style="color:#96a1b3;font-size:13px">Delivered as an authored video walkthrough</span></div>
</div>
</article>
</div>
<div class="term tl rv" data-cmd="git clone && ./run" data-out="6 builds · 3 open source · 4 you can open right now"></div>
</div>
</section>
<section class="band" id="automation">
<div class="wrap">
<div class="shead rv">
<div>
<div class="mono">Process automation</div>
<h2 style="margin-top:12px">Before it was called AI.</h2>
</div>
<p>The same work, older tools. A process nobody wanted to do by hand, turned into something that runs.</p>
</div>
<div class="rule rv"></div>
<div class="specs four">
<article class="spec lean rv">
<div class="who">Government of Kazakhstan · 2010 · parallel to the engineering practice</div>
<h3>egov.kz — a state on one data model</h3>
<div class="stage dm"><svg class="dmx" role="img" aria-label="Fields from incompatible ministry forms collapsing into one shared dictionary"></svg><figure class="pic"><img loading="lazy" decoding="async" src="assets/a-egov-rating.jpg" alt="The Tableau dashboard built for the programme: the E-Government Development Index by country and year"></figure><svg class="dsh" role="img" aria-label="Unique fields before and after the shared dictionary: forty per cent fewer"></svg><div class="flowpanel" data-flow="8000 forms,dictionary,taxonomy,platform" data-gate=""></div></div>
<dl>
<dt>Scope</dt><dd><b>8,000+ government forms</b> from incompatible ministries, a team of eight analysts across four countries.</dd>
<dt>Built</dt><dd>The data dictionary, taxonomy, master data model and quality rules the national platform runs on.</dd>
</dl>
<div class="out">−40% unique fields across 8,000+ forms (2010) · the platform is still live</div>
</article>
<article class="spec lean rv">
<div class="who">UECHM · Katur Invest</div>
<h3>Engineering optimisation and SCADA control</h3>
<div class="stage"><figure class="float b" data-ar="1.292"><img loading="lazy" decoding="async" src="assets/a-eng-cfd.jpg" alt="Gas flow simulation inside the shaft furnace"></figure><figure class="float g hot" data-ar="1.552"><img loading="lazy" decoding="async" src="assets/a-eng-scada.jpg" alt="SCADA screen: gas parameters on the shaft furnace"></figure><figure class="float o inv" data-ar="0.581"><img loading="lazy" decoding="async" src="assets/a-eng-vessel.jpg" alt="Vessel drawing from the reconstruction proposal"></figure><figure class="float b inv" data-ar="1.061"><img loading="lazy" decoding="async" src="assets/a-eng-math.jpg" alt="Heat transfer equations behind the model"></figure><div class="flowpanel" data-flow="sensors,model,scale settings,SCADA" data-gate="2"></div></div>
<dl>
<dt>Scope</dt><dd>Licensed chief engineer, a <b>50-person</b> design-engineering team.</dd>
<dt>Built</dt><dd>The simulation model decisions were argued from (ANSYS, MATLAB, TRIZ), then reconstruction proposals, scale settings and supervisory control through <b>SCADA</b> — the operator reads and steers the process from one screen.</dd>
</dl>
<div class="out">−17%+ production cost, verified by the client</div>
</article>
<article class="spec lean rv">
<div class="who">Curvature · GDSI · Exness · DexTools</div>
<h3>Decision material for committees</h3>
<div class="stage"><figure class="float b hot" data-ar="1.526"><img loading="lazy" decoding="async" src="assets/a-doc-gdsi.jpg" alt="Strategic communication plan for an EU delegation"></figure><figure class="float g hot" data-ar="1.406"><img loading="lazy" decoding="async" src="assets/a-doc-exness.jpg" alt="Partner brochure: the numbers a decision is argued from"></figure><figure class="float o" data-ar="2.054"><img loading="lazy" decoding="async" src="assets/a-doc-dextools.jpg" alt="DexTools dashboard audit, reviewed screen by screen"></figure><figure class="float tag b" data-ar="1.15"><figcaption><b>20–30</b><span>experts → one document</span></figcaption></figure><div class="flowpanel" data-flow="30 experts,structure,review,decision" data-gate="2"></div></div>
<dl>
<dt>Scope</dt><dd>Boards, CIOs and EU evaluation committees: ten minutes, no context, a decision to make.</dd>
<dt>Built</dt><dd>A repeatable way to turn <b>20–30 experts of input</b> into one document that answers in the order it is asked: 100+ page tenders, executive dashboards, authored video walkthroughs ordered by impact against effort.</dd>
</dl>
<div class="out">~1 month per cycle · 4 institutions served</div>
</article>
<article class="spec lean rv">
<div class="who">Exness · 23 markets</div>
<h3>Localisation without the manual step</h3>
<div class="stage"><figure class="float b" data-ar="1"><img loading="lazy" decoding="async" src="assets/a-loc-vi.jpg" alt="The same campaign in Vietnamese"></figure><figure class="float g hot" data-ar="1"><img loading="lazy" decoding="async" src="assets/a-loc-ko.jpg" alt="The same campaign in Korean"></figure><figure class="float o" data-ar="1"><img loading="lazy" decoding="async" src="assets/a-loc-ar.jpg" alt="The same campaign in Arabic"></figure><figure class="float b" data-ar="1"><img loading="lazy" decoding="async" src="assets/a-loc-es.jpg" alt="The same campaign in Spanish"></figure><figure class="float g hot" data-ar="1.6"><img loading="lazy" decoding="async" src="assets/a-loc-funnel.jpg" alt="Multilingual UTM tracking across the funnel"></figure><div class="flowpanel" data-flow="brief,Figma API,23 locales,publish" data-gate=""></div></div>
<dl>
<dt>Scope</dt><dd>A weekly pipeline of about twenty people — design, motion, copy, translation, analytics — run as a functional lead.</dd>
<dt>Built</dt><dd><b>Figma API and Airtable</b> production, 23 languages through CrowdIn, multilingual UTM tracking, custom style models so identity reproduces instead of drifting.</dd>
</dl>
<div class="out">A day of manual work → an hour</div>
</article>
</div>
<div class="term tl rv" data-cmd="diff --stat before/ after/" data-out="8,000 forms: −40% fields · a day → an hour · cost −17%"></div>
</div>
</section>
<section class="band" id="campaigns">
<div class="wrap">
<div class="shead rv">
<div>
<div class="mono">Campaign optimisation & creative automation</div>
<h2 style="margin-top:12px">The names are the easy part.</h2>
</div>
</div>
<div class="rule rv"></div>
<div class="camp rv">
<div class="top">
<div>
<h3>The line behind the logos.</h3>
<p>Every one of these arrived with an approval chain, a rights holder and a deadline. What made the work repeatable was not taste. Brief to variants to localisation to upload, the manual step removed through the Figma API, the winning variant picked by SQL rather than by opinion, the result measured in CPA and conversion.</p>
</div>
<div class="nums">
<div class="num"><b>500<i>+</i></b><span>assets a week, 23 markets</span></div>
<div class="num"><b>25<i>%</i></b><span>CPA reduction, automated selection</span></div>
<div class="num"><b>300<i>/day</i></b><span>generated creatives vs one by hand</span></div>
</div>
</div>
<div class="marq"><div class="row" id="mq"></div></div>
<div class="stage wide"><figure class="float b" data-ar="1"><img loading="lazy" decoding="async" src="assets/c-real-madrid.jpg" alt="Real Madrid CF co-branding, localised for Exness"></figure><figure class="float o" data-ar="1.78"><img loading="lazy" decoding="async" src="assets/c-uniswap.jpg" alt="Uniswap cross-chain launch creative"></figure><figure class="float g" data-ar="1"><img loading="lazy" decoding="async" src="assets/c-duolingo.jpg" alt="Duolingo course launch creative"></figure><figure class="float b" data-ar="1.9"><img loading="lazy" decoding="async" src="assets/c-cisco.jpg" alt="Curvature co-branding with Cisco"></figure><figure class="float g" data-ar="1.33"><img loading="lazy" decoding="async" src="assets/c-wwf.jpg" alt="WWF calendar for Exness"></figure></div>
</div>
<div class="term tl rv" data-cmd="select winner from variants order by cpa" data-out="500+ assets a week · 23 markets · CPA −25%"></div>
</div>
</section>
<section class="band" id="hire">
<div class="wrap">
<div class="shead rv">
<div><div class="mono">Work with me</div><h2 style="margin-top:12px">Three ways to start.</h2></div>
<p>Bulgarian residence, EU work rights, no sponsorship needed. Remote from the EU, contract or employment, English or Russian.</p>
</div>
<div class="rule rv"></div>
<div class="specs">
<article class="spec rv">
<div class="who">01 · two weeks</div>
<h3>Pilot on your stack</h3>
<dl><dt>You get</dt><dd>One process automated end to end on your own tools, with the approval gate and the log, plus a map of the line you can present internally.</dd>
<dt>Proof</dt><dd>Before and after in hours, cost per unit and error rate.</dd></dl>
<div class="out">from €4,500 <a class="go" href="mailto:karusrus@gmail.com?subject=Pilot%20on%20our%20stack">Start a pilot →</a></div>
</article>
<article class="spec rv">
<div class="who">02 · ongoing</div>
<h3>Implementation lead</h3>
<dl><dt>You get</dt><dd>Fractional or full-time. I run the rollout: use cases, pilots, adoption, governance, and the handover documentation that survives my absence.</dd>
<dt>Proof</dt><dd>Adoption measured, not assumed.</dd></dl>
<div class="out">monthly rate on request <a class="go" href="mailto:karusrus@gmail.com?subject=Implementation%20lead">Ask for the rate →</a></div>
</article>
<article class="spec rv">
<div class="who">03 · 48 hours</div>
<h3>AI Act readiness read</h3>
<dl><dt>You get</dt><dd>Where synthetic media leaves your organisation without disclosure, which lines have no human gate, and what Article 50 asks of you as a deployer.</dd>
<dt>Proof</dt><dd>One page, findings ordered by exposure.</dd></dl>
<div class="out">free <a class="go" href="mailto:karusrus@gmail.com?subject=AI%20Act%20readiness%20read">Book the read →</a></div>
</article>
</div>
<div class="term tl rv" data-cmd="./start --pilot --stack=yours" data-out="one process · one gate · one log · then it is yours"></div>
</div>
</section>
<section class="band" id="contact">
<div class="wrap">
<div class="shead rv" style="margin-bottom:0">
<div>
<div class="mono">Contact</div>
<h2 style="margin-top:12px;max-width:16ch">Send me the process that hurts.</h2>
</div>
<p class="clinks">
<a class="btn primary big" href="mailto:karusrus@gmail.com?subject=A%20process%20that%20hurts">karusrus@gmail.com</a>
<a class="btn" href="CV_Ruslan_Karymov.pdf">CV, PDF</a>
<a class="btn" href="https://www.linkedin.com/in/ruslankarymov/">LinkedIn</a>
<a class="btn" href="https://github.com/karusrus">GitHub</a>
</p>
</div>
</div>
</section>
<footer><div class="wrap">Varna, Bulgaria — remote worldwide · Earlier design work: <a href="https://www.behance.net/karusrus" style="color:var(--muted);border-bottom:1px solid var(--line2)">Behance</a></div></footer>
<script>
/* reveal */
const io=new IntersectionObserver(es=>es.forEach(e=>{if(e.isIntersecting){e.target.classList.add('in');io.unobserve(e.target)}}),{threshold:.12});
document.querySelectorAll('.rv').forEach((el,i)=>{el.style.transitionDelay=(i%4)*60+'ms';io.observe(el)});
/* nav border */
addEventListener('scroll',()=>document.getElementById('nav').classList.toggle('stuck',scrollY>10));
/* pointer glow on cards */
document.querySelectorAll('.pcard').forEach(c=>c.addEventListener('pointermove',e=>{
const r=c.getBoundingClientRect();
c.style.setProperty('--mx',(e.clientX-r.left)+'px');
c.style.setProperty('--my',(e.clientY-r.top)+'px');
}));
/* ---------- dust: slow particle field, cheap and quiet ---------- */
(function(){
const c=document.getElementById('dust'); if(!c) return;
if(matchMedia('(prefers-reduced-motion: reduce)').matches) return;
const x=c.getContext('2d'); let w,h,dpr,P=[];
const rs=()=>{dpr=Math.min(devicePixelRatio||1,2);w=c.clientWidth;h=c.clientHeight;c.width=w*dpr;c.height=h*dpr;x.setTransform(dpr,0,0,dpr,0,0);
P=Array.from({length:Math.min(55,Math.round(w*h/26000))},()=>({x:Math.random()*w,y:Math.random()*h,
vx:(Math.random()-.5)*.14,vy:(Math.random()-.5)*.14,r:Math.random()*1.5+.4,a:Math.random()*.5+.15}))};
rs(); let dr; addEventListener('resize',()=>{clearTimeout(dr);dr=setTimeout(rs,140)});
window.__dustOn=true;
let raf=null;
const stop=()=>{ if(raf){cancelAnimationFrame(raf);raf=null} };
const start=()=>{ if(!raf) raf=requestAnimationFrame(loop) };
window.__dustStart=start; window.__dustStop=stop;
function loop(){
raf=requestAnimationFrame(loop);
x.clearRect(0,0,w,h);
for(const p of P){
p.x+=p.vx; p.y+=p.vy;
if(p.x<0)p.x=w; if(p.x>w)p.x=0; if(p.y<0)p.y=h; if(p.y>h)p.y=0;
x.beginPath(); x.arc(p.x,p.y,p.r,0,6.283);
x.fillStyle=`rgba(139,157,200,${p.a})`; x.fill();
}
}
start();
})();
/* hero node canvas: nodes, edges drawn once, a packet travelling the path */
(function(){
const svg=document.getElementById('cv');
const W=1600,H=900; svg.setAttribute('viewBox',`0 0 ${W} ${H}`);
const N=[[180,250],[430,170],[430,360],[700,265],[960,175],[960,370],[1230,270],[1420,430],[700,560],[960,560]];
const E=[[0,1],[0,2],[1,3],[2,3],[3,4],[3,5],[4,6],[5,6],[6,7],[3,8],[8,9],[9,5]];
const ns='http://www.w3.org/2000/svg';
E.forEach(([a,b],i)=>{
const p=document.createElementNS(ns,'path');
const [x1,y1]=N[a],[x2,y2]=N[b], mx=(x1+x2)/2;
p.setAttribute('d',`M${x1} ${y1} C${mx} ${y1}, ${mx} ${y2}, ${x2} ${y2}`);
p.setAttribute('fill','none'); p.setAttribute('stroke','#1e2634'); p.setAttribute('stroke-width','1.4');
p.style.strokeDasharray='1400'; p.style.strokeDashoffset='1400';
p.style.animation=`draw 1.5s ${0.25+i*0.09}s cubic-bezier(.2,.7,.2,1) forwards`;
svg.appendChild(p);
if(i%4===1){
const pk=document.createElementNS(ns,'circle');
pk.setAttribute('r','3.2'); pk.setAttribute('fill','#5b9dff');
const am=document.createElementNS(ns,'animateMotion');
am.setAttribute('dur',(5+i*0.5)+'s'); am.setAttribute('repeatCount','indefinite');
am.setAttribute('begin',(1.6+i*0.35)+'s'); am.setAttribute('path',p.getAttribute('d'));
pk.appendChild(am); svg.appendChild(pk);
}
});
N.forEach(([x,y],i)=>{
const g=document.createElementNS(ns,'g'); g.style.opacity='0';
g.style.animation=`pop .6s ${0.2+i*0.08}s cubic-bezier(.2,.7,.2,1) forwards`;
const r=document.createElementNS(ns,'rect');
r.setAttribute('x',x-26); r.setAttribute('y',y-13); r.setAttribute('width',52); r.setAttribute('height',26);
r.setAttribute('rx',7); r.setAttribute('fill','#0c0e13'); r.setAttribute('stroke', i===6?'#f0883e':'#232b3a');
const d=document.createElementNS(ns,'circle');
d.setAttribute('cx',x-13); d.setAttribute('cy',y); d.setAttribute('r',3);
d.setAttribute('fill', i===6?'#f0883e':(i===9?'#3ddc97':'#38415280'));
g.appendChild(r); g.appendChild(d); svg.appendChild(g);
});
const st=document.createElementNS(ns,'style');
st.textContent='@keyframes draw{to{stroke-dashoffset:0}}@keyframes pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}';
svg.appendChild(st);
})();
/* ---------- career graph: wires in the pipeline-map language ---------- */
(function(){
const wrap=document.getElementById('graph-wrap'); if(!wrap) return;
const svg=document.getElementById('glinks'); const NS='http://www.w3.org/2000/svg';
const id=x=>document.getElementById(x);
const C={stage:'#5b9dff', craft:'#3ddc97', gov:'#f0883e'};
// from, to, kind, colour
const L=[
['g0','g1','stage',''],['g1','g2','stage',''],['g2','g3','stage',''],['g3','g4','stage',''],['g4','g5','stage','']
];
function draw(){
const W=wrap.clientWidth,H=wrap.clientHeight;
svg.setAttribute('viewBox',`0 0 ${W} ${H}`);
const box=wrap.getBoundingClientRect();
const R=e=>{const r=e.getBoundingClientRect();return {x:r.left-box.left,y:r.top-box.top,w:r.width,h:r.height}};
const nodes=[...wrap.querySelectorAll('.gnode')].map(R);
const rowBottom = Math.max(...nodes.map(n=>n.y+n.h));
const colW = nodes.length>1 ? (nodes[1].x - nodes[0].x) : 240;
let lanes=0; const laneOf={};
const lane = i => (laneOf[i] !== undefined ? laneOf[i] : (laneOf[i]=lanes++));
let out='';
L.forEach(([a,b,kind,label],i)=>{
const A=id(a),B=id(b); if(!A||!B) return;
const ra=R(A),rb=R(B), col=C[kind];
const x1=ra.x+ra.w, y1=ra.y+ra.h/2, x2=rb.x, y2=rb.y+rb.h/2;
const main=kind==='stage';
const span=x2-x1;
const under = span > colW*0.9; // reaches past the neighbour → travel below the row
let d, ymid;
if(under){
const yv = rowBottom + 26 + lane(i)*30;
ymid = yv;
d=`M${x1} ${y1} C${x1+40} ${y1}, ${x1+40} ${yv}, ${x1+70} ${yv} L${x2-70} ${yv} C${x2-40} ${yv}, ${x2-40} ${y2}, ${x2} ${y2}`;
} else {
const dx=Math.max(28,span*0.6);
ymid=(y1+y2)/2;
d=`M${x1} ${y1} C${x1+dx} ${y1}, ${x2-dx} ${y2}, ${x2} ${y2}`;
}
const dur = main?3.4:5;
out += `<path id="w${i}" d="${d}" fill="none" stroke="${col}" stroke-width="${main?1.25:1}" opacity="${main?.45:.3}"/>`;
// на коротком стыке две точки сливаются в неподвижную капсулу — там хватает одной
const short = Math.abs(x2-x1) < 40;
const dots = (main && !short) ? 2 : 1;
for(let k=0;k<dots;k++){
out += `<g><circle r="${main?5:4}" fill="${col}" opacity=".14"/><circle r="${main?2.8:2.2}" fill="${col}"/>`
+ `<animateMotion dur="${dur}s" begin="${(-k*dur/dots).toFixed(2)}s" repeatCount="indefinite"><mpath href="#w${i}"/></animateMotion></g>`;
}
});
svg.innerHTML = out;
}
let t=null, lastW=0;
const schedule=()=>{ clearTimeout(t); t=setTimeout(()=>{ const w=wrap.clientWidth; if(w===lastW) return; lastW=w; draw(); }, 120); };
const ro=new ResizeObserver(schedule); ro.observe(wrap);
addEventListener('load',schedule);
if(document.fonts&&document.fonts.ready) document.fonts.ready.then(()=>{lastW=0;schedule()});
[60,320].forEach(ms=>setTimeout(()=>{lastW=0;schedule()},ms));
})();
/* ---------- pause heavy motion when offscreen ---------- */
(function(){
const still = matchMedia('(prefers-reduced-motion: reduce)').matches;
const smil = el => [...el.querySelectorAll('svg')].concat(el.tagName==='svg'?[el]:[]);
const io=new IntersectionObserver(es=>es.forEach(e=>{
const off = !e.isIntersecting;
e.target.classList.toggle('paused', off);
smil(e.target).forEach(sv=>{ try{ off||still ? sv.pauseAnimations() : sv.unpauseAnimations(); }catch(_){} });
}),{rootMargin:'120px'});
document.querySelectorAll('.hero,.stage,#graph-wrap,.marq').forEach(el=>io.observe(el));
if(still) document.querySelectorAll('svg').forEach(sv=>{ try{ sv.pauseAnimations() }catch(_){} });
// dust stops when the hero scrolls away
const hero=document.querySelector('.hero');
if(hero){const io2=new IntersectionObserver(es=>{ es[0].isIntersecting ? (window.__dustStart&&window.__dustStart()) : (window.__dustStop&&window.__dustStop()) },{threshold:0});io2.observe(hero)}
})();
/* ---------- flow panels: drawn from data, alive ---------- */
(function(){
const NS='http://www.w3.org/2000/svg';
const el=(n,a)=>{const e=document.createElementNS(NS,n);for(const k in a)e.setAttribute(k,a[k]);return e;};
document.querySelectorAll('.flowpanel').forEach(panel=>{
const W=300,H=78;
const svg=el('svg',{viewBox:`0 0 ${W} ${H}`,class:'fl',role:'img'});
const g=el('g',{class:'flow'});
if(panel.classList.contains('wp')){
// GDSI: work-package structure, redrawn generically — no numbers, no partner wording
const cells=[['coord',6,10],['framework',84,10],['tech',176,10],['capacity',6,44],['impact',84,44],['uptake',176,44]];
const w=[62,78,72,62,78,72];
cells.forEach(([t,x,y],i)=>{
g.appendChild(el('rect',{x,y,width:w[i],height:24,rx:7,class:i===2?'gate':(i===5?'exit':'')}));
const tx=el('text',{x:x+w[i]/2,y:y+15,class:'lb c'}); tx.textContent=t; g.appendChild(tx);
});
[['M68 22 H84'],['M162 22 H176'],['M68 56 H84'],['M162 56 H176'],['M37 34 V44'],['M123 34 V44'],['M212 34 V44']]
.forEach(([d],i)=>{const p=el('path',{d});p.style.animationDelay=(.25+i*.07)+'s';g.appendChild(p)});
} else {
const labels=(panel.dataset.flow||'').split(',');
const gate=panel.dataset.gate===''?-1:parseInt(panel.dataset.gate,10);
const n=labels.length, pad=8, bw=(W-pad*2-(n-1)*24)/n;
const paths=[];
labels.forEach((t,i)=>{
const x=pad+i*(bw+24);
g.appendChild(el('rect',{x,y:26,width:bw,height:26,rx:7,class:i===gate?'gate':(i===n-1?'exit':'')}));
const s=t.length>15?t.slice(0,14)+'…':t;
const half=s.length*2.85; // половина ширины строки в единицах viewBox
const cx=Math.min(Math.max(x+bw/2,half+2),W-half-2);
const tx=el('text',{x:cx,y:68,class:'lb'});
tx.textContent=s; g.appendChild(tx);
if(i<n-1){const d=`M${x+bw} 39 H${x+bw+24}`;const pa=el('path',{d});pa.style.animationDelay=(.25+i*.12)+'s';g.appendChild(pa);paths.push(d)}
});
// one packet travelling the whole line, over and over
const full=`M${pad+bw} 39 H${W-pad-bw}`;
const dot=el('circle',{r:2.6,fill:'#5b9dff',opacity:'.9',cx:pad+bw,cy:39});
const am=el('animateMotion',{dur:'4.5s',repeatCount:'indefinite',begin:(1.2+Math.random()).toFixed(1)+'s',path:full});
dot.appendChild(am); g.appendChild(dot);
}
const lbl=(panel.dataset.flow||'').split(',').filter(Boolean).join(' → ');
svg.setAttribute('aria-label', lbl?('Pipeline: '+lbl):'Work package structure');
svg.appendChild(g); panel.appendChild(svg);
});
})();
/* ---------- egov: the data model, drawn ---------- */
(function(){
const NS='http://www.w3.org/2000/svg';
const mk=(n,a)=>{const e=document.createElementNS(NS,n);for(const k in a)e.setAttribute(k,a[k]);return e;};
document.querySelectorAll('svg.dmx').forEach(svg=>{
svg.setAttribute('viewBox','0 0 300 126');
svg.setAttribute('preserveAspectRatio','xMidYMid meet');
const g=mk('g',{});
// left: three ministries, each with its own form fields
const src=[['ministry A',2],['ministry B',38],['ministry C',74]];
const rows=[]; // {x2,y,kind}
src.forEach(([name,y],m)=>{
g.appendChild(mk('rect',{class:'blk',x:6,y,width:84,height:30,rx:5}));
const t=mk('text',{class:'hd',x:12,y:y+9}); t.textContent=name; g.appendChild(t);
[0,1,2].forEach(k=>{
const ry=y+14+k*6, dup=(m+k)%3!==0;
g.appendChild(mk('rect',{class:'row '+(dup?'dup':'uni'),x:12,y:ry,width:dup?46:62,height:3.4,rx:1.7}));
rows.push({y:ry+1.7,dup,i:m*3+k});
});
});
// right: one dictionary every form now reads from
g.appendChild(mk('rect',{class:'blk',x:206,y:14,width:88,height:76,rx:5}));
const dh=mk('text',{class:'hd',x:213,y:26}); dh.textContent='dictionary'; g.appendChild(dh);
const keys=[36,50,64,78];
keys.forEach((y,k)=>{
g.appendChild(mk('rect',{class:'row key',x:213,y,width:k===3?50:74,height:4,rx:2}));
});
// nine fields, four surviving keys: the duplicates land on the same row
const map=[0,1,2, 0,1,3, 2,0,1];
rows.forEach((r,i)=>{
const ky=keys[map[i]]+2, x1=r.dup?58:74, x2=206, mx=104+i*10;
const p=mk('path',{class:'lnk',stroke:r.dup?'#f0883e':'#5b9dff',
d:`M${x1} ${r.y} H${mx} V${ky} H${x2}`});
p.style.animationDelay=(i*.35)+'s';
g.appendChild(p);
});
const m=mk('text',{class:'mark',x:206,y:104}); m.textContent='9 fields → 4'; g.appendChild(m);
const l=mk('text',{class:'hd',x:6,y:120}); l.textContent='incompatible forms'; g.appendChild(l);
svg.appendChild(g);
});
})();
/* ---------- egov: the number, on its own panel ---------- */
(function(){
const NS='http://www.w3.org/2000/svg';
const mk=(n,a)=>{const e=document.createElementNS(NS,n);for(const k in a)e.setAttribute(k,a[k]);return e;};
const tx=(x,y,c,s)=>{const t=mk('text',{x,y,class:c});t.textContent=s;return t};
document.querySelectorAll('svg.dsh').forEach(svg=>{
svg.setAttribute('viewBox','0 0 260 100');
svg.setAttribute('preserveAspectRatio','xMidYMid meet');
const g=mk('g',{});
g.appendChild(mk('rect',{class:'pane',x:1,y:1,width:258,height:98,rx:6}));
g.appendChild(tx(14,20,'hd','unique fields'));
g.appendChild(tx(12,56,'kpi','−40%'));
g.appendChild(mk('line',{class:'tick',x1:112,y1:12,x2:112,y2:88}));
g.appendChild(tx(126,26,'sm','before · per ministry'));
g.appendChild(mk('rect',{class:'bar',x:126,y:32,width:120,height:8,rx:4}));
g.appendChild(tx(126,60,'sm','after · one dictionary'));
const b=mk('rect',{class:'bar on',x:126,y:66,width:120,height:8,rx:4});
b.appendChild(mk('animate',{attributeName:'width',from:'120',to:'72',dur:'1.4s',begin:'0.6s',fill:'freeze'}));
g.appendChild(b);
g.appendChild(tx(14,78,'sm foot','8,000+ forms · 8 analysts'));
g.appendChild(tx(14,90,'sm foot','4 countries · 2010'));
svg.appendChild(g);
});
})();
/* ---------- egov: три графика делят полосу над конвейером ---------- */
(function(){
const st=document.querySelector('.stage.dm'); if(!st) return;
const dmx=st.querySelector('.dmx'), dsh=st.querySelector('.dsh'), pic=st.querySelector('.pic');
if(!dmx) return;
const fit=()=>{
const sr=st.getBoundingClientRect();
const ink=st.querySelector('.flowpanel svg rect');
const band=(ink?ink.getBoundingClientRect().top-sr.top:sr.height*.72)-12;
const top=8, gap=12, wide=!!dsh&&getComputedStyle(dsh).display!=='none';
const rowH=wide?Math.max(76,(band-top-gap)*0.42):0;
const dmxH=Math.max(90,band-top-(wide?gap+rowH:0));
dmx.style.height=dmxH+'px';
if(wide) [pic,dsh].forEach(el=>{ el.style.top=(top+dmxH+gap)+'px'; el.style.height=rowH+'px' });
};
fit();
addEventListener('load',fit);
let t; addEventListener('resize',()=>{clearTimeout(t);t=setTimeout(fit,140)});
if(document.fonts&&document.fonts.ready) document.fonts.ready.then(fit);
[...st.querySelectorAll('img')].forEach(im=>im.complete||im.addEventListener('load',fit,{once:true}));
})();
/* ---------- floating assets: placed from data, drifting, wired to each other ---------- */
(function(){
const NS='http://www.w3.org/2000/svg';
const mk=(n,a)=>{const e=document.createElementNS(NS,n);for(const k in a)e.setAttribute(k,a[k]);return e;};
const COL={b:'#5b9dff',g:'#3ddc97',o:'#f0883e'};
const still=matchMedia('(prefers-reduced-motion:reduce)');
const S=[];
document.querySelectorAll('.stage').forEach(st=>{
const fl=[...st.querySelectorAll('.float')];
if(!fl.length) return;
const svg=mk('svg',{class:'fx','aria-hidden':'true'});
st.insertBefore(svg,st.firstChild);
const items=fl.map((el,i)=>{
// из разметки берём только пропорцию: высота у всех одна, её считает measure
const k=el.classList.contains('g')?'g':el.classList.contains('o')?'o':'b';
return {el,ar:Math.max(.5,Math.min(1.9,parseFloat(el.dataset.ar)||1.4)),col:COL[k],
ax:9+(i*5)%9, ay:7+(i*4)%7,
sx:.00022+((i*7)%5)*.000034, sy:.00017+((i*5)%4)*.000038, ph:i*2.1};
});
const segs=[];
for(let i=0;i<items.length-1;i++)
segs.push({p:svg.appendChild(mk('path',{stroke:items[i].col})),a:items[i],b:items[i+1]});
const tail=svg.appendChild(mk('path',{stroke:items[items.length-1].col}));
const dots=items.map(it=>svg.appendChild(mk('circle',{r:1.9,fill:it.col,opacity:.85})));
S.push({st,svg,items,segs,tail,dots,w:0,h:0,py:0,vis:false});
});
if(!S.length) return;
// рамки перекрываются, поэтому провод идёт не между ними, а по шине под рядом:
// вниз из нижней грани, по шине, и вверх в нижнюю грань следующей
function bus(x1,y1,x2,y2,lane){
const s=Math.sign(x2-x1)||1, r=Math.min(7,Math.abs(x2-x1)/2);
if(r<2) return `M${x1} ${y1} V${lane} V${y2}`;
return `M${x1} ${y1} V${lane-r} Q${x1} ${lane} ${x1+r*s} ${lane}`
+ ` H${x2-r*s} Q${x2} ${lane} ${x2} ${lane-r} V${y2}`;
}
function measure(s){
const r=s.st.getBoundingClientRect(); s.w=r.width; s.h=r.height;
// низ полосы — по первой нарисованной рамке конвейера, а не по коробке svg:
// сверху у неё пустое поле, и ассеты наезжали бы на схему
const ps=s.st.querySelector('.flowpanel svg'),
ink=(ps&&ps.querySelector('rect'))||ps;