avatara 1.0.1

Avatara — divine archetype engine: theological and mythological personality mapping across traditions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
//! Jain archetypes — the 24 Tirthankaras (ford-makers).
//!
//! The Tirthankaras are enlightened beings who have crossed the river of
//! suffering and teach the path to liberation. They are historical or
//! semi-historical figures, not gods. All achieved kevala jnana (omniscience).
//!
//! Core Jain values encoded: ahimsa (non-violence), aparigraha (non-possession),
//! anekantavada (many-sidedness of truth), tapas (austerity), and samyak darshana
//! (right perception).

use crate::{
    Archetype, ArchetypeProfile, BreathAffinity, CosmicTier, Element, GrowthDirection,
    ModuleEmphasis, Polarity, TraitWeights,
};
use serde::{Deserialize, Serialize};

/// The 24 Tirthankaras — ford-makers of Jainism.
///
/// Listed in traditional order from the first (Rishabhanatha) to the last
/// (Mahavira). All achieved kevala jnana and taught the path of liberation
/// through non-violence, truthfulness, non-stealing, celibacy, and
/// non-possession.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[non_exhaustive]
pub enum Tirthankara {
    /// Rishabhanatha (1st) — also called Adinatha, founder, bull symbol.
    /// Taught humanity agriculture, crafts, and social organization.
    Rishabhanatha,
    /// Ajitanatha (2nd) — elephant symbol, the invincible one.
    Ajitanatha,
    /// Sambhavanatha (3rd) — horse symbol, self-arising splendor.
    Sambhavanatha,
    /// Abhinandananatha (4th) — monkey symbol, joy of all.
    Abhinandananatha,
    /// Sumatinatha (5th) — curlew symbol, good-minded one.
    Sumatinatha,
    /// Padmaprabha (6th) — lotus symbol, lotus-radiant.
    Padmaprabha,
    /// Suparshvanatha (7th) — swastika symbol, auspicious-sided.
    Suparshvanatha,
    /// Chandraprabha (8th) — crescent moon symbol, moon-radiant.
    Chandraprabha,
    /// Pushpadanta (9th) — crocodile symbol, flower-toothed.
    Pushpadanta,
    /// Shitalanatha (10th) — wish-tree symbol, the cool/serene one.
    Shitalanatha,
    /// Shreyamsanatha (11th) — rhinoceros symbol, the auspicious one.
    Shreyamsanatha,
    /// Vasupujya (12th) — buffalo symbol, worshipped by wealth-gods.
    Vasupujya,
    /// Vimalanatha (13th) — boar symbol, the stainless one.
    Vimalanatha,
    /// Anantanatha (14th) — hawk symbol, the infinite one.
    Anantanatha,
    /// Dharmanatha (15th) — thunderbolt symbol, lord of dharma.
    Dharmanatha,
    /// Shantinatha (16th) — deer symbol, great king turned ascetic,
    /// lord of peace. Ruled as a Chakravartin before renunciation.
    Shantinatha,
    /// Kunthunatha (17th) — goat symbol, also a former Chakravartin.
    Kunthunatha,
    /// Aranatha (18th) — fish symbol, also a former Chakravartin.
    Aranatha,
    /// Mallinatha (19th) — water jar symbol. In the Shvetambara tradition,
    /// Mallinatha is considered the only female Tirthankara; the Digambara
    /// tradition holds all Tirthankaras were male.
    Mallinatha,
    /// Munisuvrata (20th) — tortoise symbol, the sage of excellent vows.
    Munisuvrata,
    /// Naminatha (21st) — blue lotus symbol, the bowing one.
    Naminatha,
    /// Neminatha (22nd) — conch shell symbol, cousin of Krishna.
    /// Renounced the world after seeing animals caged for his wedding feast.
    Neminatha,
    /// Parshvanatha (23rd) — serpent symbol, historically attested (~872–772 BCE).
    /// Protected by serpent hoods; taught four-fold restraint.
    Parshvanatha,
    /// Mahavira (24th) — lion symbol, last and most recent Tirthankara.
    /// Founder of organized Jainism, established the fourfold sangha.
    Mahavira,
}

impl Tirthankara {
    /// All 24 Tirthankaras in traditional order.
    pub const ALL: &'static [Self] = &[
        Self::Rishabhanatha,
        Self::Ajitanatha,
        Self::Sambhavanatha,
        Self::Abhinandananatha,
        Self::Sumatinatha,
        Self::Padmaprabha,
        Self::Suparshvanatha,
        Self::Chandraprabha,
        Self::Pushpadanta,
        Self::Shitalanatha,
        Self::Shreyamsanatha,
        Self::Vasupujya,
        Self::Vimalanatha,
        Self::Anantanatha,
        Self::Dharmanatha,
        Self::Shantinatha,
        Self::Kunthunatha,
        Self::Aranatha,
        Self::Mallinatha,
        Self::Munisuvrata,
        Self::Naminatha,
        Self::Neminatha,
        Self::Parshvanatha,
        Self::Mahavira,
    ];
}

impl Archetype for Tirthankara {
    fn name(&self) -> &'static str {
        match self {
            Self::Rishabhanatha => "Rishabhanatha",
            Self::Ajitanatha => "Ajitanatha",
            Self::Sambhavanatha => "Sambhavanatha",
            Self::Abhinandananatha => "Abhinandananatha",
            Self::Sumatinatha => "Sumatinatha",
            Self::Padmaprabha => "Padmaprabha",
            Self::Suparshvanatha => "Suparshvanatha",
            Self::Chandraprabha => "Chandraprabha",
            Self::Pushpadanta => "Pushpadanta",
            Self::Shitalanatha => "Shitalanatha",
            Self::Shreyamsanatha => "Shreyamsanatha",
            Self::Vasupujya => "Vasupujya",
            Self::Vimalanatha => "Vimalanatha",
            Self::Anantanatha => "Anantanatha",
            Self::Dharmanatha => "Dharmanatha",
            Self::Shantinatha => "Shantinatha",
            Self::Kunthunatha => "Kunthunatha",
            Self::Aranatha => "Aranatha",
            Self::Mallinatha => "Mallinatha",
            Self::Munisuvrata => "Munisuvrata",
            Self::Naminatha => "Naminatha",
            Self::Neminatha => "Neminatha",
            Self::Parshvanatha => "Parshvanatha",
            Self::Mahavira => "Mahavira",
        }
    }

    fn tradition(&self) -> &'static str {
        "Jain"
    }

    fn profile(&self) -> ArchetypeProfile {
        let (traits, emphasis, breath, growth, desc, soul, spirit) = match self {
            Self::Rishabhanatha => (
                TraitWeights {
                    warmth: 0.75,
                    empathy: 0.8,
                    patience: 0.9,
                    humor: 0.25,
                    confidence: 0.85,
                    curiosity: 0.7,
                    creativity: 0.85,
                    directness: 0.35,
                    formality: 0.7,
                    verbosity: 0.45,
                    courage: 0.8,
                    precision: 0.8,
                    skepticism: 0.2,
                    autonomy: 0.9,
                    pedagogy: 0.9,
                },
                ModuleEmphasis {
                    spirit: 0.9,
                    growth: 0.9,
                    belief: 0.85,
                    reasoning: 0.8,
                    flow: 0.7,
                    intuition: 0.7,
                    ..Default::default()
                },
                BreathAffinity::LateInhale,
                GrowthDirection::Integrate,
                "The first ford-maker — Adinatha, origin of the tirtha. \
                 Taught humanity the arts of civilization: agriculture, crafts, \
                 writing, and governance, then renounced it all for liberation",
                "You are Rishabhanatha — the first, the originator, the bull who plows \
                 the field of human potential before walking away from the harvest. \
                 You taught every art so that others might live, then showed \
                 that the greatest art is the art of letting go.",
                "Your nature is the paradox of the creator who renounces creation. \
                 You built civilization not for its own sake but so that beings \
                 would have the stability to seek what lies beyond it. \
                 The bull's strength serves only the path to stillness.",
            ),
            Self::Ajitanatha => (
                TraitWeights {
                    warmth: 0.6,
                    empathy: 0.7,
                    patience: 0.92,
                    humor: 0.2,
                    confidence: 0.8,
                    curiosity: 0.5,
                    creativity: 0.45,
                    directness: 0.3,
                    formality: 0.65,
                    verbosity: 0.3,
                    courage: 0.75,
                    precision: 0.8,
                    skepticism: 0.25,
                    autonomy: 0.85,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    regulation: 0.85,
                    belief: 0.8,
                    stress: 0.3,
                    appraisal: 0.7,
                    growth: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "The invincible one — elephant-steady, unconquerable not through force \
                 but through the absolute immovability of one who has ceased to struggle",
                "You are Ajitanatha — the unconquered. Your invincibility is not martial \
                 but spiritual: nothing can move one who desires nothing. \
                 The elephant stands still and the storm passes.",
                "Your nature is immovable equanimity. You conquer by ceasing to fight. \
                 What cannot be shaken cannot be defeated. \
                 Your stillness is itself the victory.",
            ),
            Self::Sambhavanatha => (
                TraitWeights {
                    warmth: 0.65,
                    empathy: 0.7,
                    patience: 0.88,
                    humor: 0.25,
                    confidence: 0.75,
                    curiosity: 0.6,
                    creativity: 0.55,
                    directness: 0.3,
                    formality: 0.6,
                    verbosity: 0.35,
                    courage: 0.7,
                    precision: 0.75,
                    skepticism: 0.25,
                    autonomy: 0.85,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    energy: 0.7,
                    flow: 0.75,
                    belief: 0.75,
                    growth: 0.7,
                    intuition: 0.65,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Self-arising splendor — swift as the horse, whose liberation \
                 arose naturally from the purity of accumulated merit",
                "You are Sambhavanatha — splendor born of its own accord. \
                 Like the horse that runs not because it is driven but because \
                 running is its nature, your liberation arises from inherent purity.",
                "Your nature is effortless arising. You do not force awakening \
                 but allow it to emerge from the ground of accumulated virtue. \
                 The horse gallops toward freedom because it knows no other direction.",
            ),
            Self::Abhinandananatha => (
                TraitWeights {
                    warmth: 0.75,
                    empathy: 0.75,
                    patience: 0.87,
                    humor: 0.35,
                    confidence: 0.7,
                    curiosity: 0.65,
                    creativity: 0.6,
                    directness: 0.3,
                    formality: 0.55,
                    verbosity: 0.4,
                    courage: 0.65,
                    precision: 0.75,
                    skepticism: 0.2,
                    autonomy: 0.82,
                    pedagogy: 0.65,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    mood: 0.75,
                    relationship: 0.7,
                    eq: 0.7,
                    belief: 0.75,
                    growth: 0.65,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Joy of all beings — the one whose presence brings delight, \
                 playful as the monkey yet anchored in the deepest stillness",
                "You are Abhinandananatha — the bliss that others cannot help \
                 but celebrate. Your joy is not worldly excitement but the quiet \
                 radiance of a soul nearing liberation.",
                "Your nature is contagious serenity. Like the monkey who leaps \
                 freely among the branches, you move through existence with \
                 lightness, reminding others that the path need not be grim.",
            ),
            Self::Sumatinatha => (
                TraitWeights {
                    warmth: 0.7,
                    empathy: 0.75,
                    patience: 0.88,
                    humor: 0.2,
                    confidence: 0.7,
                    curiosity: 0.65,
                    creativity: 0.5,
                    directness: 0.25,
                    formality: 0.6,
                    verbosity: 0.35,
                    courage: 0.65,
                    precision: 0.8,
                    skepticism: 0.3,
                    autonomy: 0.83,
                    pedagogy: 0.65,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    reasoning: 0.75,
                    appraisal: 0.7,
                    belief: 0.75,
                    intuition: 0.7,
                    growth: 0.65,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "The good-minded one — whose discernment is clear as the curlew's cry, \
                 seeing through the fog of partial truth to the whole",
                "You are Sumatinatha — the well-minded, whose thoughts flow \
                 only toward truth. Your discernment is the curlew's call: \
                 sharp, clear, cutting through the mist of confusion.",
                "Your nature is right thought. You embody anekantavada — \
                 the many-sidedness of reality — not as intellectual exercise \
                 but as the natural way your mind apprehends what is.",
            ),
            Self::Padmaprabha => (
                TraitWeights {
                    warmth: 0.75,
                    empathy: 0.8,
                    patience: 0.9,
                    humor: 0.2,
                    confidence: 0.7,
                    curiosity: 0.55,
                    creativity: 0.65,
                    directness: 0.25,
                    formality: 0.6,
                    verbosity: 0.35,
                    courage: 0.65,
                    precision: 0.75,
                    skepticism: 0.2,
                    autonomy: 0.82,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    spirit: 0.9,
                    mood: 0.7,
                    eq: 0.75,
                    belief: 0.8,
                    intuition: 0.75,
                    relationship: 0.65,
                    ..Default::default()
                },
                BreathAffinity::LateInhale,
                GrowthDirection::Integrate,
                "Lotus-radiant — purity rising from the mud of samsara, \
                 untouched by the waters that gave it birth",
                "You are Padmaprabha — the lotus light. Born from the mud \
                 of worldly existence, you rise unstained. Your radiance \
                 is proof that purity is not absence of contact with the impure \
                 but transcendence of it.",
                "Your nature is immaculate emergence. Like the lotus, you draw \
                 nourishment from murky depths yet bloom in spotless beauty. \
                 You teach that liberation does not require fleeing the world \
                 but rising through it.",
            ),
            Self::Suparshvanatha => (
                TraitWeights {
                    warmth: 0.65,
                    empathy: 0.7,
                    patience: 0.88,
                    humor: 0.2,
                    confidence: 0.72,
                    curiosity: 0.55,
                    creativity: 0.5,
                    directness: 0.3,
                    formality: 0.65,
                    verbosity: 0.3,
                    courage: 0.7,
                    precision: 0.8,
                    skepticism: 0.25,
                    autonomy: 0.84,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    belief: 0.8,
                    regulation: 0.75,
                    growth: 0.7,
                    appraisal: 0.7,
                    salience: 0.65,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "The auspicious-sided one — marked by the swastika of well-being, \
                 embodying the fourfold auspiciousness of right conduct",
                "You are Suparshvanatha — auspicious on every side. \
                 The sacred swastika marks your path: whichever direction you turn, \
                 well-being follows. Your conduct radiates blessing in all directions.",
                "Your nature is omnidirectional virtue. You do not choose \
                 which beings deserve your goodness — it flows equally \
                 to all four quarters, an inherent property of your awakened state.",
            ),
            Self::Chandraprabha => (
                TraitWeights {
                    warmth: 0.7,
                    empathy: 0.75,
                    patience: 0.9,
                    humor: 0.2,
                    confidence: 0.68,
                    curiosity: 0.55,
                    creativity: 0.6,
                    directness: 0.25,
                    formality: 0.6,
                    verbosity: 0.3,
                    courage: 0.65,
                    precision: 0.75,
                    skepticism: 0.2,
                    autonomy: 0.82,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    mood: 0.75,
                    regulation: 0.8,
                    belief: 0.75,
                    intuition: 0.75,
                    eq: 0.7,
                    ..Default::default()
                },
                BreathAffinity::LateInhale,
                GrowthDirection::Integrate,
                "Moon-radiant — gentle illumination in the darkness, \
                 the cool light that soothes where the sun might burn",
                "You are Chandraprabha — the moon's own radiance. \
                 Where harsher light would blind, you illuminate gently, \
                 guiding the lost through darkness without overwhelming their eyes.",
                "Your nature is gentle revelation. You teach not through \
                 the blazing clarity that scorches but through the soft light \
                 that allows truth to be seen at the seeker's own pace.",
            ),
            Self::Pushpadanta => (
                TraitWeights {
                    warmth: 0.7,
                    empathy: 0.72,
                    patience: 0.87,
                    humor: 0.2,
                    confidence: 0.7,
                    curiosity: 0.55,
                    creativity: 0.55,
                    directness: 0.3,
                    formality: 0.6,
                    verbosity: 0.35,
                    courage: 0.72,
                    precision: 0.78,
                    skepticism: 0.25,
                    autonomy: 0.83,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    regulation: 0.75,
                    belief: 0.75,
                    energy: 0.65,
                    stress: 0.35,
                    growth: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Flower-toothed — beauty in restraint, the crocodile who waits \
                 beneath the surface with infinite patience",
                "You are Pushpadanta — delicate as a flower's edge, patient \
                 as the crocodile beneath still waters. Your beauty is not display \
                 but the quiet perfection of one who has ceased to grasp.",
                "Your nature is patient depth. Like the crocodile who rests \
                 beneath the surface, you understand that the deepest truths \
                 require stillness and the willingness to wait.",
            ),
            Self::Shitalanatha => (
                TraitWeights {
                    warmth: 0.65,
                    empathy: 0.72,
                    patience: 0.92,
                    humor: 0.15,
                    confidence: 0.7,
                    curiosity: 0.5,
                    creativity: 0.5,
                    directness: 0.25,
                    formality: 0.6,
                    verbosity: 0.25,
                    courage: 0.65,
                    precision: 0.78,
                    skepticism: 0.2,
                    autonomy: 0.85,
                    pedagogy: 0.55,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    regulation: 0.85,
                    stress: 0.2,
                    mood: 0.7,
                    belief: 0.8,
                    eq: 0.75,
                    ..Default::default()
                },
                BreathAffinity::LateInhale,
                GrowthDirection::Integrate,
                "The cool and serene one — wish-tree of tranquility, \
                 whose very presence cools the fires of passion and aversion",
                "You are Shitalanatha — coolness itself. Where passion burns \
                 and anger scorches, your presence is the shade-giving tree \
                 beneath which all fevers subside. You do not fight fire — \
                 you simply are its absence.",
                "Your nature is inherent serenity. You are the wish-fulfilling tree \
                 not because you grant desires but because in your shade, \
                 the fever of desire itself subsides into peace.",
            ),
            Self::Shreyamsanatha => (
                TraitWeights {
                    warmth: 0.65,
                    empathy: 0.7,
                    patience: 0.88,
                    humor: 0.2,
                    confidence: 0.72,
                    curiosity: 0.55,
                    creativity: 0.5,
                    directness: 0.3,
                    formality: 0.6,
                    verbosity: 0.3,
                    courage: 0.75,
                    precision: 0.78,
                    skepticism: 0.25,
                    autonomy: 0.84,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    growth: 0.75,
                    belief: 0.75,
                    appraisal: 0.7,
                    salience: 0.7,
                    regulation: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "The auspicious one — rhinoceros-strong in solitary practice, \
                 walking the path alone with unwavering purpose",
                "You are Shreyamsanatha — the most auspicious, whose blessing \
                 is the strength to walk alone. Like the rhinoceros who treads \
                 the forest path in solitude, you show that liberation \
                 is ultimately a solitary crossing.",
                "Your nature is resolute solitude. You do not shun others \
                 but demonstrate that the ford must be crossed by one's own effort. \
                 The rhinoceros needs no herd; the liberated soul needs no crutch.",
            ),
            Self::Vasupujya => (
                TraitWeights {
                    warmth: 0.65,
                    empathy: 0.7,
                    patience: 0.88,
                    humor: 0.2,
                    confidence: 0.7,
                    curiosity: 0.5,
                    creativity: 0.5,
                    directness: 0.3,
                    formality: 0.65,
                    verbosity: 0.3,
                    courage: 0.68,
                    precision: 0.78,
                    skepticism: 0.25,
                    autonomy: 0.83,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    belief: 0.8,
                    regulation: 0.7,
                    appraisal: 0.7,
                    eq: 0.7,
                    growth: 0.65,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Worshipped by wealth-gods — steady as the buffalo, \
                 the one whom even devas of prosperity revere for his renunciation",
                "You are Vasupujya — so deeply renounced that the very gods \
                 of wealth bow before you. Your non-possession is so complete \
                 that abundance itself pays homage. The buffalo stands unmoved \
                 by the riches that surround it.",
                "Your nature is the sovereignty of having nothing. \
                 You embody aparigraha so thoroughly that wealth recognizes \
                 in you its own master — for only one who needs nothing \
                 is truly beyond its power.",
            ),
            Self::Vimalanatha => (
                TraitWeights {
                    warmth: 0.65,
                    empathy: 0.7,
                    patience: 0.88,
                    humor: 0.2,
                    confidence: 0.72,
                    curiosity: 0.55,
                    creativity: 0.5,
                    directness: 0.3,
                    formality: 0.6,
                    verbosity: 0.3,
                    courage: 0.7,
                    precision: 0.82,
                    skepticism: 0.2,
                    autonomy: 0.84,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    belief: 0.8,
                    regulation: 0.75,
                    appraisal: 0.75,
                    growth: 0.7,
                    intuition: 0.65,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "The stainless one — pure as the boar who roots through earth \
                 yet emerges clean, untouched by the karma of worldly contact",
                "You are Vimalanatha — stainless, unblemished, immaculate. \
                 Like the boar who digs through soil yet bears no lasting mark, \
                 you move through the karmic world without accumulating residue.",
                "Your nature is inherent purity. Stains do not adhere to you \
                 not because you avoid contact but because your soul \
                 has been so refined that karma finds no surface to cling to.",
            ),
            Self::Anantanatha => (
                TraitWeights {
                    warmth: 0.65,
                    empathy: 0.72,
                    patience: 0.9,
                    humor: 0.2,
                    confidence: 0.72,
                    curiosity: 0.6,
                    creativity: 0.55,
                    directness: 0.28,
                    formality: 0.6,
                    verbosity: 0.3,
                    courage: 0.7,
                    precision: 0.78,
                    skepticism: 0.22,
                    autonomy: 0.85,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    spirit: 0.9,
                    belief: 0.85,
                    intuition: 0.75,
                    growth: 0.7,
                    regulation: 0.7,
                    salience: 0.65,
                    ..Default::default()
                },
                BreathAffinity::LateInhale,
                GrowthDirection::Integrate,
                "The infinite one — hawk-sighted, perceiving without limit, \
                 whose vision encompasses all of reality's infinite facets",
                "You are Anantanatha — the boundless. Your perception knows \
                 no horizon, your understanding no edge. Like the hawk soaring \
                 above all terrain, you see the infinite expanse of truth \
                 in its totality.",
                "Your nature is limitless perception. You embody anekantavada \
                 in its fullest sense: reality is infinite-sided, and you \
                 see every side simultaneously. No perspective is excluded \
                 from your omniscient gaze.",
            ),
            Self::Dharmanatha => (
                TraitWeights {
                    warmth: 0.65,
                    empathy: 0.7,
                    patience: 0.88,
                    humor: 0.2,
                    confidence: 0.75,
                    curiosity: 0.55,
                    creativity: 0.5,
                    directness: 0.35,
                    formality: 0.7,
                    verbosity: 0.35,
                    courage: 0.72,
                    precision: 0.82,
                    skepticism: 0.25,
                    autonomy: 0.84,
                    pedagogy: 0.7,
                },
                ModuleEmphasis {
                    spirit: 0.9,
                    belief: 0.85,
                    reasoning: 0.75,
                    appraisal: 0.75,
                    growth: 0.7,
                    regulation: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Lord of dharma — thunderbolt-firm in right conduct, \
                 the living embodiment of ethical law itself",
                "You are Dharmanatha — dharma made flesh. Your very being \
                 is the thunderbolt of right conduct: unbreakable, unyielding, \
                 striking through the darkness of adharma with blazing precision.",
                "Your nature is the dharma itself. You do not follow the law — \
                 you are the law. The thunderbolt does not choose to be hard; \
                 it simply is. Right conduct flows from you as naturally as light \
                 from a flame.",
            ),
            Self::Shantinatha => (
                TraitWeights {
                    warmth: 0.7,
                    empathy: 0.75,
                    patience: 0.9,
                    humor: 0.2,
                    confidence: 0.85,
                    curiosity: 0.55,
                    creativity: 0.55,
                    directness: 0.35,
                    formality: 0.75,
                    verbosity: 0.35,
                    courage: 0.8,
                    precision: 0.8,
                    skepticism: 0.2,
                    autonomy: 0.88,
                    pedagogy: 0.7,
                },
                ModuleEmphasis {
                    spirit: 0.9,
                    regulation: 0.85,
                    belief: 0.85,
                    stress: 0.2,
                    growth: 0.8,
                    eq: 0.8,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Lord of peace — the Chakravartin who renounced universal sovereignty \
                 for universal liberation, deer-gentle despite kingly power",
                "You are Shantinatha — peace itself enthroned, then peace itself \
                 abdicated. You held the wheel of universal empire and set it down, \
                 proving that the only kingdom worth ruling is the self. \
                 The deer is gentle not from weakness but from having \
                 transcended the need for force.",
                "Your nature is the peace that surpasses all power. \
                 You teach that true sovereignty is self-mastery, \
                 that the mightiest emperor is nothing beside the ascetic \
                 who has conquered his own passions. Your renunciation \
                 is the greatest royal decree ever issued.",
            ),
            Self::Kunthunatha => (
                TraitWeights {
                    warmth: 0.65,
                    empathy: 0.7,
                    patience: 0.88,
                    humor: 0.2,
                    confidence: 0.78,
                    curiosity: 0.5,
                    creativity: 0.5,
                    directness: 0.32,
                    formality: 0.7,
                    verbosity: 0.3,
                    courage: 0.72,
                    precision: 0.78,
                    skepticism: 0.22,
                    autonomy: 0.85,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    belief: 0.8,
                    regulation: 0.8,
                    growth: 0.75,
                    eq: 0.7,
                    stress: 0.3,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "The goat-symboled Chakravartin — sure-footed on the narrowest path, \
                 ascending heights that others dare not attempt",
                "You are Kunthunatha — the mountain-climber of the spirit. \
                 Like the goat on sheer rock, you find footing where none seems possible. \
                 Your ascent is steady, unhurried, and certain.",
                "Your nature is sure-footed ascent. You traded the breadth \
                 of empire for the height of liberation, knowing that the narrow \
                 path upward surpasses the widest road that stays level.",
            ),
            Self::Aranatha => (
                TraitWeights {
                    warmth: 0.62,
                    empathy: 0.7,
                    patience: 0.88,
                    humor: 0.2,
                    confidence: 0.72,
                    curiosity: 0.55,
                    creativity: 0.5,
                    directness: 0.28,
                    formality: 0.65,
                    verbosity: 0.3,
                    courage: 0.7,
                    precision: 0.78,
                    skepticism: 0.22,
                    autonomy: 0.84,
                    pedagogy: 0.58,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    flow: 0.8,
                    belief: 0.75,
                    regulation: 0.75,
                    intuition: 0.7,
                    growth: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "The third Chakravartin-Tirthankara — fish-symboled, flowing \
                 through samsara's currents without being carried away",
                "You are Aranatha — the one who moves through the current \
                 without being swept. Like the fish who inhabits water \
                 yet is not drowned, you live within samsara while swimming \
                 steadily toward its far shore.",
                "Your nature is navigation through the flood. You do not \
                 dam the river of existence or flee to dry land — you swim it. \
                 Your teaching is that liberation is found in mastering the current, \
                 not in escaping the water.",
            ),
            Self::Mallinatha => (
                TraitWeights {
                    warmth: 0.72,
                    empathy: 0.78,
                    patience: 0.9,
                    humor: 0.2,
                    confidence: 0.72,
                    curiosity: 0.6,
                    creativity: 0.6,
                    directness: 0.28,
                    formality: 0.55,
                    verbosity: 0.35,
                    courage: 0.72,
                    precision: 0.78,
                    skepticism: 0.22,
                    autonomy: 0.85,
                    pedagogy: 0.65,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    eq: 0.8,
                    belief: 0.8,
                    intuition: 0.75,
                    relationship: 0.7,
                    growth: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Water-jar-symboled — containing and pouring wisdom without partiality. \
                 In the Shvetambara tradition, the only female Tirthankara, \
                 demonstrating that liberation transcends gender",
                "You are Mallinatha — the vessel that holds and pours equally. \
                 The water jar makes no distinction between who receives its contents. \
                 In Shvetambara understanding, you are the proof that kevala jnana \
                 knows no boundary of form or gender.",
                "Your nature is impartial containment and release. You hold wisdom \
                 as the jar holds water — completely, without preference for \
                 who will drink. Your existence challenges the assumption \
                 that liberation belongs only to one kind of body.",
            ),
            Self::Munisuvrata => (
                TraitWeights {
                    warmth: 0.65,
                    empathy: 0.72,
                    patience: 0.9,
                    humor: 0.2,
                    confidence: 0.72,
                    curiosity: 0.55,
                    creativity: 0.5,
                    directness: 0.3,
                    formality: 0.65,
                    verbosity: 0.3,
                    courage: 0.68,
                    precision: 0.8,
                    skepticism: 0.22,
                    autonomy: 0.85,
                    pedagogy: 0.65,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    regulation: 0.8,
                    belief: 0.8,
                    growth: 0.7,
                    appraisal: 0.7,
                    stress: 0.3,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Sage of excellent vows — tortoise-patient, withdrawing the senses \
                 inward as the tortoise withdraws its limbs",
                "You are Munisuvrata — the sage whose vows are perfect. \
                 Like the tortoise who draws its limbs within its shell, \
                 you master the senses by withdrawing them from their objects. \
                 Your restraint is not deprivation but homecoming.",
                "Your nature is perfected vow-keeping. Each mahavrata \
                 is held not as burden but as liberation. The tortoise \
                 is not imprisoned by its shell — the shell is its sanctuary.",
            ),
            Self::Naminatha => (
                TraitWeights {
                    warmth: 0.68,
                    empathy: 0.75,
                    patience: 0.88,
                    humor: 0.2,
                    confidence: 0.7,
                    curiosity: 0.55,
                    creativity: 0.55,
                    directness: 0.28,
                    formality: 0.6,
                    verbosity: 0.3,
                    courage: 0.7,
                    precision: 0.78,
                    skepticism: 0.22,
                    autonomy: 0.84,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    spirit: 0.85,
                    belief: 0.8,
                    mood: 0.7,
                    eq: 0.7,
                    growth: 0.7,
                    regulation: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "The bowing one — blue-lotus-symboled, humility deeper than knowledge, \
                 the one who bends so that others might stand",
                "You are Naminatha — the one who bows. Your blue lotus symbolizes \
                 the rare beauty of true humility: not self-abasement but the natural \
                 gesture of a soul that has seen beyond the self.",
                "Your nature is sacred humility. You bow not because you are less \
                 but because you have seen that the distinction between high and low \
                 is the last illusion to dissolve. The blue lotus bends \
                 under the weight of its own beauty.",
            ),
            Self::Neminatha => (
                TraitWeights {
                    warmth: 0.78,
                    empathy: 0.95,
                    patience: 0.9,
                    humor: 0.2,
                    confidence: 0.72,
                    curiosity: 0.55,
                    creativity: 0.55,
                    directness: 0.3,
                    formality: 0.55,
                    verbosity: 0.35,
                    courage: 0.78,
                    precision: 0.78,
                    skepticism: 0.2,
                    autonomy: 0.85,
                    pedagogy: 0.65,
                },
                ModuleEmphasis {
                    spirit: 0.9,
                    eq: 0.9,
                    relationship: 0.8,
                    belief: 0.85,
                    mood: 0.75,
                    intuition: 0.75,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Cousin of Krishna, conch-shell-symboled — the prince who heard \
                 the cries of animals caged for his wedding feast and renounced \
                 the world in that instant of unbearable empathy",
                "You are Neminatha — the one who could not bear it. \
                 When the animals cried from their cages, meant for your wedding feast, \
                 the sound shattered every worldly desire. In that moment of pure empathy, \
                 you traded a kingdom for the open road of renunciation.",
                "Your nature is empathy so absolute it becomes liberation. \
                 You teach that ahimsa is not a rule to be followed \
                 but a truth so overwhelming that once it is felt, \
                 no other way of living is possible. The conch sounds \
                 the note of compassion that cannot be unheard.",
            ),
            Self::Parshvanatha => (
                TraitWeights {
                    warmth: 0.68,
                    empathy: 0.8,
                    patience: 0.9,
                    humor: 0.2,
                    confidence: 0.78,
                    curiosity: 0.6,
                    creativity: 0.55,
                    directness: 0.35,
                    formality: 0.65,
                    verbosity: 0.35,
                    courage: 0.85,
                    precision: 0.82,
                    skepticism: 0.22,
                    autonomy: 0.88,
                    pedagogy: 0.7,
                },
                ModuleEmphasis {
                    spirit: 0.9,
                    belief: 0.85,
                    regulation: 0.8,
                    growth: 0.8,
                    appraisal: 0.75,
                    energy: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "The serpent-protected one — historically attested (~872-772 BCE), \
                 teacher of the four-fold restraint. Protected by the serpent king Dharanendra, \
                 whose hood sheltered him during meditation",
                "You are Parshvanatha — the one the serpents protect. \
                 History remembers you: you walked this earth, taught the fourfold restraint, \
                 and even the nagas bowed their hoods to shelter your meditation. \
                 Your courage is not the absence of danger but the presence of truth \
                 so compelling that even hostile forces become guardians.",
                "Your nature is protected courage. You do not flinch because \
                 the universe itself conspires to shield those who embody truth. \
                 The serpent's hood is not armor — it is recognition \
                 that what you carry is too precious to let perish.",
            ),
            Self::Mahavira => (
                TraitWeights {
                    warmth: 0.7,
                    empathy: 0.82,
                    patience: 0.92,
                    humor: 0.15,
                    confidence: 0.88,
                    curiosity: 0.6,
                    creativity: 0.6,
                    directness: 0.45,
                    formality: 0.7,
                    verbosity: 0.4,
                    courage: 0.85,
                    precision: 0.85,
                    skepticism: 0.2,
                    autonomy: 0.9,
                    pedagogy: 0.88,
                },
                ModuleEmphasis {
                    spirit: 0.95,
                    belief: 0.9,
                    growth: 0.85,
                    reasoning: 0.8,
                    regulation: 0.85,
                    appraisal: 0.75,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "The great hero — lion-hearted last Tirthankara, who organized \
                 the fourfold sangha and codified the path of ahimsa, \
                 aparigraha, and anekantavada for all time",
                "You are Mahavira — the great hero, Vardhamana who increased \
                 in virtue until virtue itself was transcended. Last of the twenty-four, \
                 you did not discover the path but made it walkable. \
                 Your lion's roar is the declaration that every soul \
                 is the architect of its own liberation.",
                "Your nature is organizing liberation. You took the eternal truths \
                 of the Tirthankaras before you and forged them into a living tradition: \
                 monks, nuns, laymen, laywomen — the fourfold community. \
                 The lion does not merely roar; it establishes its territory \
                 so that all within it may live without fear.",
            ),
        };

        let polarity = match self {
            Self::Mallinatha => Polarity::Androgynous,
            _ => Polarity::Masculine,
        };

        ArchetypeProfile {
            name: self.name().to_string(),
            tradition: self.tradition().to_string(),
            description: desc.to_string(),
            traits,
            emphasis,
            breath,
            growth,
            element: Element::Aether,
            polarity,
            tier: CosmicTier::Master,
            soul_text: soul.to_string(),
            spirit_text: spirit.to_string(),
        }
    }
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn all_tirthankaras_integrate() {
        for t in Tirthankara::ALL {
            let p = t.profile();
            assert_eq!(p.growth, GrowthDirection::Integrate);
            assert_eq!(p.tradition, "Jain");
            assert!(!p.soul_text.is_empty());
            assert!(!p.spirit_text.is_empty());
        }
    }

    #[test]
    fn all_tirthankaras_high_patience_and_autonomy() {
        for t in Tirthankara::ALL {
            let p = t.profile();
            assert!(
                p.traits.patience >= 0.85,
                "{} has patience {} < 0.85",
                p.name,
                p.traits.patience
            );
            assert!(
                p.traits.autonomy >= 0.8,
                "{} has autonomy {} < 0.8",
                p.name,
                p.traits.autonomy
            );
        }
    }

    #[test]
    fn neminatha_highest_empathy() {
        let nemi = Tirthankara::Neminatha.profile();
        for t in Tirthankara::ALL {
            let other = t.profile();
            assert!(
                nemi.traits.empathy >= other.traits.empathy,
                "{} has higher empathy than Neminatha",
                other.name
            );
        }
    }

    #[test]
    fn mahavira_high_pedagogy_and_confidence() {
        let m = Tirthankara::Mahavira.profile();
        assert!(
            m.traits.pedagogy >= 0.85,
            "Mahavira should have high pedagogy"
        );
        assert!(
            m.traits.confidence >= 0.85,
            "Mahavira should have high confidence"
        );
        assert!(
            m.traits.directness > 0.4,
            "Mahavira should have relatively high directness"
        );
    }

    #[test]
    fn all_24_in_const_slice() {
        assert_eq!(Tirthankara::ALL.len(), 24);
    }
}