neon_glow 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -277,6 +277,28 @@
277
277
  0 0 var(--ng-glow-blur) rgba(var(--ng-primary-rgb), calc(var(--ng-glow-opacity) * 0.2));
278
278
  }
279
279
 
280
+ /* Cherenkov form tint: lightly wash form controls in the palette's
281
+ primary hue so they feel "seen through water" rather than generic
282
+ dark rectangles. Covers both Tailwind/plain HTML forms (.ng-input,
283
+ textarea) and Bootstrap forms (.form-control, .form-select).
284
+ Default state only; focus uses the normal strong Cherenkov blue. */
285
+ .neon-cherenkov .ng-input,
286
+ .neon-cherenkov .ng-select,
287
+ .neon-cherenkov textarea,
288
+ .neon-cherenkov .form-control,
289
+ .neon-cherenkov .form-select {
290
+ border-color: rgba(var(--ng-primary-rgb), 0.55);
291
+ box-shadow:
292
+ inset 0 0 14px rgba(var(--ng-primary-rgb), 0.12),
293
+ 0 0 0 1px rgba(var(--ng-primary-rgb), 0.15);
294
+ }
295
+
296
+ .neon-cherenkov .ng-input::placeholder,
297
+ .neon-cherenkov textarea::placeholder,
298
+ .neon-cherenkov .form-control::placeholder {
299
+ color: rgba(var(--ng-primary-rgb), 0.55);
300
+ }
301
+
280
302
  /* ============================================================
281
303
  NEON BADGES / PILLS
282
304
  ============================================================ */
@@ -384,11 +406,16 @@
384
406
  }
385
407
 
386
408
  .ng-table tbody tr {
387
- transition: background-color var(--ng-transition);
409
+ transition:
410
+ background-color var(--ng-transition),
411
+ box-shadow var(--ng-transition-glow);
388
412
  }
389
413
 
390
414
  .ng-table tbody tr:hover {
391
- background-color: var(--ng-surface);
415
+ background-color: rgba(var(--ng-primary-rgb), 0.06);
416
+ box-shadow:
417
+ inset 3px 0 0 var(--ng-primary),
418
+ inset 0 0 var(--ng-glow-spread) rgba(var(--ng-primary-rgb), calc(var(--ng-glow-opacity) * 0.15));
392
419
  }
393
420
 
394
421
  /* ============================================================
@@ -543,14 +570,8 @@
543
570
  }
544
571
 
545
572
  @keyframes ng-gradient-rotate {
546
- 0% { --ng-gradient-angle: 0deg; }
547
- 100% { --ng-gradient-angle: 360deg; }
548
- }
549
-
550
- @property --ng-gradient-angle {
551
- syntax: "<angle>";
552
- initial-value: 135deg;
553
- inherits: false;
573
+ 0% { transform: rotate(0deg); }
574
+ 100% { transform: rotate(360deg); }
554
575
  }
555
576
 
556
577
  .ng-animate-pulse {
@@ -558,7 +579,34 @@
558
579
  }
559
580
 
560
581
  .ng-animate-gradient {
561
- animation: ng-gradient-rotate 4s linear infinite;
582
+ animation: ng-glow-cycle 6s ease-in-out infinite;
583
+ }
584
+
585
+ @keyframes ng-glow-cycle {
586
+ 0%, 100% {
587
+ border-color: var(--ng-primary);
588
+ box-shadow:
589
+ 0 0 var(--ng-glow-blur) rgba(var(--ng-primary-rgb), var(--ng-glow-opacity)),
590
+ 0 0 calc(var(--ng-glow-blur) * 2) rgba(var(--ng-primary-rgb), calc(var(--ng-glow-opacity) * 0.3));
591
+ }
592
+ 25% {
593
+ border-color: var(--ng-secondary);
594
+ box-shadow:
595
+ 0 0 var(--ng-glow-blur) rgba(var(--ng-secondary-rgb), var(--ng-glow-opacity)),
596
+ 0 0 calc(var(--ng-glow-blur) * 2) rgba(var(--ng-secondary-rgb), calc(var(--ng-glow-opacity) * 0.3));
597
+ }
598
+ 50% {
599
+ border-color: var(--ng-accent);
600
+ box-shadow:
601
+ 0 0 var(--ng-glow-blur) rgba(var(--ng-accent-rgb), var(--ng-glow-opacity)),
602
+ 0 0 calc(var(--ng-glow-blur) * 2) rgba(var(--ng-accent-rgb), calc(var(--ng-glow-opacity) * 0.3));
603
+ }
604
+ 75% {
605
+ border-color: var(--ng-info);
606
+ box-shadow:
607
+ 0 0 var(--ng-glow-blur) rgba(var(--ng-info-rgb), var(--ng-glow-opacity)),
608
+ 0 0 calc(var(--ng-glow-blur) * 2) rgba(var(--ng-info-rgb), calc(var(--ng-glow-opacity) * 0.3));
609
+ }
562
610
  }
563
611
 
564
612
  @media (prefers-reduced-motion: reduce) {
@@ -616,3 +664,954 @@
616
664
  );
617
665
  opacity: 0.5;
618
666
  }
667
+
668
+ /* ============================================================
669
+ HARDWARE-THEME HEADING GLOW
670
+ The three Hardware palettes (VFD, Cherenkov, Nixie) represent
671
+ real physical light sources. Headings inside these palettes
672
+ should feel like *they are emitting light*, not just "text in
673
+ a theme color." Each palette gets its own glow character to
674
+ match its physical referent:
675
+ - VFD: calibrated instrument readout, moderate phosphor glow
676
+ - Cherenkov: volumetric underwater bloom, soft large-radius
677
+ - Nixie: layered parallax with mercury-violet fringe
678
+ ============================================================ */
679
+
680
+ .neon-vfd h1,
681
+ .neon-vfd h2,
682
+ .neon-vfd h3,
683
+ .neon-vfd .h1,
684
+ .neon-vfd .h2,
685
+ .neon-vfd .h3,
686
+ .neon-vfd .h4,
687
+ .neon-vfd .h5,
688
+ .neon-vfd .display-1,
689
+ .neon-vfd .display-2,
690
+ .neon-vfd .display-3,
691
+ .neon-vfd .display-4,
692
+ .neon-vfd .display-5,
693
+ .neon-vfd .display-6,
694
+ .neon-vfd .ng-display,
695
+ .neon-vfd .ng-hero {
696
+ text-shadow:
697
+ 0 0 2px rgba(var(--ng-primary-rgb), 0.85),
698
+ 0 0 6px rgba(var(--ng-primary-rgb), 0.55),
699
+ 0 0 14px rgba(var(--ng-primary-rgb), 0.30);
700
+ }
701
+
702
+ .neon-cherenkov h1,
703
+ .neon-cherenkov h2,
704
+ .neon-cherenkov h3,
705
+ .neon-cherenkov .h1,
706
+ .neon-cherenkov .h2,
707
+ .neon-cherenkov .h3,
708
+ .neon-cherenkov .h4,
709
+ .neon-cherenkov .h5,
710
+ .neon-cherenkov .display-1,
711
+ .neon-cherenkov .display-2,
712
+ .neon-cherenkov .display-3,
713
+ .neon-cherenkov .display-4,
714
+ .neon-cherenkov .display-5,
715
+ .neon-cherenkov .display-6,
716
+ .neon-cherenkov .ng-display,
717
+ .neon-cherenkov .ng-hero {
718
+ text-shadow:
719
+ 0 0 4px rgba(var(--ng-primary-rgb), 0.70),
720
+ 0 0 14px rgba(var(--ng-primary-rgb), 0.45),
721
+ 0 0 32px rgba(var(--ng-primary-rgb), 0.25),
722
+ 0 0 64px rgba(var(--ng-primary-rgb), 0.12);
723
+ }
724
+
725
+ .neon-nixie h1,
726
+ .neon-nixie h2,
727
+ .neon-nixie h3,
728
+ .neon-nixie .h1,
729
+ .neon-nixie .h2,
730
+ .neon-nixie .h3,
731
+ .neon-nixie .h4,
732
+ .neon-nixie .h5,
733
+ .neon-nixie .display-1,
734
+ .neon-nixie .display-2,
735
+ .neon-nixie .display-3,
736
+ .neon-nixie .display-4,
737
+ .neon-nixie .display-5,
738
+ .neon-nixie .display-6,
739
+ .neon-nixie .ng-display,
740
+ .neon-nixie .ng-hero {
741
+ text-shadow:
742
+ 0 0 2px rgba(var(--ng-primary-rgb), 0.85),
743
+ 0 0 8px rgba(var(--ng-primary-rgb), 0.55),
744
+ 0 0 20px rgba(var(--ng-primary-rgb), 0.30),
745
+ 2px 3px 28px rgba(var(--ng-primary-rgb), 0.20),
746
+ 0 6px 10px rgba(var(--ng-nixie-mercury-rgb), 0.65),
747
+ 0 14px 24px rgba(var(--ng-nixie-mercury-rgb), 0.35);
748
+ }
749
+
750
+ /* ============================================================
751
+ TYPOGRAPHY APPLICATION
752
+ Headings and display elements get --ng-font-display.
753
+ Subheads and accent elements get --ng-font-display-alt (which
754
+ defaults to --ng-font-display unless a theme overrides it).
755
+ Body text gets --ng-font-body. Code gets --ng-font-mono.
756
+ ============================================================ */
757
+
758
+ .ng-card h1,
759
+ .ng-hero,
760
+ .ng-display {
761
+ font-family: var(--ng-font-display);
762
+ }
763
+
764
+ .ng-card h2,
765
+ .ng-card h3,
766
+ .ng-accent {
767
+ font-family: var(--ng-font-display-alt);
768
+ }
769
+
770
+ .ng-card p,
771
+ .neon-glow-body {
772
+ font-family: var(--ng-font-body);
773
+ }
774
+
775
+ .ng-code,
776
+ pre,
777
+ code,
778
+ kbd,
779
+ samp {
780
+ font-family: var(--ng-font-mono);
781
+ }
782
+
783
+ /* ============================================================
784
+ NIXIE WIRE-GRID FRAME
785
+ The signature Nixie visual: thin vertical cathode wires and
786
+ horizontal support brackets behind the glowing digit. Recreates
787
+ the cathode stack visible through the glass of a lit Nixie tube.
788
+
789
+ Two entry points share the same visual effect:
790
+ 1. .ng-nixie-digit utility class for manual application to
791
+ any element
792
+ 2. Auto-application to .ng-card h1/h2 (and Bootstrap .h1/.h2/
793
+ .display-4/.display-5) inside .neon-nixie, so consumers
794
+ get the effect on card headings without having to opt in
795
+
796
+ Technique: repeating-linear-gradient for vertical wires, single
797
+ borders for horizontal brackets, z-index: -1 to sit behind the
798
+ parent's text. Pure CSS, no external assets.
799
+ ============================================================ */
800
+
801
+ /* --- Nixie tube cell (shared base for .ng-nixie-digit and .ng-nixie-char) ---
802
+ Both classes produce one "tube cell" per element, containing a
803
+ left bracket, interior wires, right bracket, and top/bottom chassis
804
+ borders. They differ in padding/margin only:
805
+ - .ng-nixie-digit: manually applied to individual digits (e.g. the
806
+ Nixie Numerals demo row). Scoped to .neon-nixie so other palettes
807
+ don't show wire mesh on elements using this class.
808
+ - .ng-nixie-char: auto-applied by theme_switcher_controller.js to
809
+ wrap each non-space character of .ng-card headings when Nixie is
810
+ active. Spaces remain as plain text nodes so they don't get a
811
+ mesh cell — producing the visible "gap between tubes" effect.
812
+ Both are deactivated entirely when the palette isn't Nixie. */
813
+
814
+ .neon-nixie .ng-nixie-digit {
815
+ position: relative;
816
+ isolation: isolate;
817
+ display: inline-block;
818
+ padding: 0.1em 0.2em;
819
+ /* Match the heading font so numerals in the Nixie demo row have the
820
+ same built-in-underline "connector wire" character as H1/H2 text.
821
+ Without this, numerals drift to B612 Mono (inherited from Nixie's
822
+ --ng-font-body/display tokens) and lose the wire-connector look. */
823
+ font-family: 'Montserrat Underline', 'Courier New', monospace;
824
+ }
825
+
826
+ .neon-nixie .ng-nixie-char {
827
+ position: relative;
828
+ isolation: isolate;
829
+ display: inline-block;
830
+ padding: 0.15em 0;
831
+ margin: 0 0.06em;
832
+ }
833
+
834
+ .neon-nixie .ng-nixie-digit::before,
835
+ .neon-nixie .ng-nixie-char::before {
836
+ content: "";
837
+ position: absolute;
838
+ inset: 0;
839
+ background-image: linear-gradient(
840
+ to right,
841
+ rgba(var(--ng-primary-rgb), 0.45) 0,
842
+ rgba(var(--ng-primary-rgb), 0.45) 1px,
843
+ transparent 1px,
844
+ transparent calc(25% - 0.5px),
845
+ rgba(var(--ng-primary-rgb), 0.18) calc(25% - 0.5px),
846
+ rgba(var(--ng-primary-rgb), 0.18) calc(25% + 0.5px),
847
+ transparent calc(25% + 0.5px),
848
+ transparent calc(50% - 0.5px),
849
+ rgba(var(--ng-primary-rgb), 0.18) calc(50% - 0.5px),
850
+ rgba(var(--ng-primary-rgb), 0.18) calc(50% + 0.5px),
851
+ transparent calc(50% + 0.5px),
852
+ transparent calc(75% - 0.5px),
853
+ rgba(var(--ng-primary-rgb), 0.18) calc(75% - 0.5px),
854
+ rgba(var(--ng-primary-rgb), 0.18) calc(75% + 0.5px),
855
+ transparent calc(75% + 0.5px),
856
+ transparent calc(100% - 1px),
857
+ rgba(var(--ng-primary-rgb), 0.45) calc(100% - 1px),
858
+ rgba(var(--ng-primary-rgb), 0.45) 100%
859
+ );
860
+ border-top: 1px solid rgba(var(--ng-primary-rgb), 0.40);
861
+ border-bottom: 1px solid rgba(var(--ng-primary-rgb), 0.40);
862
+ pointer-events: none;
863
+ z-index: -1;
864
+ }
865
+
866
+ /* --- Nixie-only display control ---
867
+ Hide elements unless the Nixie palette is active. Used to scope
868
+ Nixie-specific demo/reference content (like the Numerals row) so
869
+ it doesn't appear on palettes where the concept doesn't translate. */
870
+ .ng-nixie-only {
871
+ display: none;
872
+ }
873
+
874
+ .neon-nixie .ng-nixie-only {
875
+ display: block;
876
+ }
877
+
878
+ /* --- Nixie heading font: Montserrat Underline (signature, Phase 2) ---
879
+ Nixie-specific override for H1/H2 headings inside Nixie cards.
880
+ Montserrat Underline has an underline stroke built into each
881
+ character's glyph; combined with the per-character wire-grid
882
+ wrapping it produces a PCB-trace-between-tube-bases visual — a
883
+ specific "neon sign with a rail running through it" register that
884
+ is the Nixie-only signature.
885
+ Scoped narrowly to H1/H2/.display-4/.display-5 — H3 and below keep
886
+ B612 Mono for readability. Separately, .ng-neon-tube (the universal
887
+ tube affordance from Phase 2.5) uses Megrim as its default on all
888
+ other palettes, so Montserrat Underline is now a Nixie signature
889
+ rather than being cross-palette. */
890
+ .neon-nixie .ng-card h1,
891
+ .neon-nixie .ng-card h2,
892
+ .neon-nixie .ng-card .h1,
893
+ .neon-nixie .ng-card .h2,
894
+ .neon-nixie .ng-card .display-4,
895
+ .neon-nixie .ng-card .display-5 {
896
+ font-family: 'Montserrat Underline', 'Courier New', monospace;
897
+ }
898
+
899
+ /* ============================================================
900
+ HARDWARE CHROME (Phase 4)
901
+
902
+ Palette-agnostic instrument-panel utility classes. These are pure
903
+ visual primitives — they don't care which palette is active. They
904
+ are auto-applied inside the .neon-vfd context so activating VFD
905
+ makes cards look like a real 1970s-80s Pioneer stereo readout.
906
+ Users on any palette can also apply them manually.
907
+
908
+ VFD is the only palette whose physical referent lived inside
909
+ bezeled hardware (audio components, synthesizer displays, cash
910
+ register readouts). Nixie tubes were individual glass envelopes;
911
+ Cherenkov is a phenomenon with no device. Auto-application is
912
+ deliberately VFD-only.
913
+ ============================================================ */
914
+
915
+ /* --- .ng-instrument-frame ---
916
+ Hard-edged rectangular bezel with recessed inset shadow. The core
917
+ transform: soft card → instrument panel window. */
918
+ .ng-instrument-frame {
919
+ border: 2px solid var(--ng-border);
920
+ border-radius: 0;
921
+ box-shadow:
922
+ inset 0 0 0 1px var(--ng-border-subtle),
923
+ inset 0 2px 8px rgba(0,0,0,0.6),
924
+ inset 0 -2px 8px rgba(0,0,0,0.4);
925
+ padding: 1rem 1.25rem;
926
+ background: var(--ng-surface);
927
+ }
928
+
929
+ /* --- .ng-chamfer ---
930
+ 45° chamfered corners via clip-path. The era's closest
931
+ approximation to rounded corners. */
932
+ .ng-chamfer {
933
+ clip-path: polygon(
934
+ 0.5rem 0, calc(100% - 0.5rem) 0,
935
+ 100% 0.5rem, 100% calc(100% - 0.5rem),
936
+ calc(100% - 0.5rem) 100%, 0.5rem 100%,
937
+ 0 calc(100% - 0.5rem), 0 0.5rem
938
+ );
939
+ }
940
+
941
+ /* --- .ng-vfd-separator ---
942
+ Hairline horizontal rule with hard edges. Divides display regions
943
+ on an instrument panel. */
944
+ .ng-vfd-separator {
945
+ height: 1px;
946
+ background: linear-gradient(
947
+ to right,
948
+ transparent 0%,
949
+ var(--ng-border) 10%,
950
+ var(--ng-border) 90%,
951
+ transparent 100%
952
+ );
953
+ margin: 0.75rem 0;
954
+ }
955
+
956
+ /* --- .ng-vfd-label ---
957
+ Tiny all-caps hairline label for functional zones. The "TREBLE",
958
+ "BASS", "VOL" labels silk-screened onto real audio components. */
959
+ .ng-vfd-label {
960
+ font-family: var(--ng-font-mono);
961
+ font-size: 0.625rem;
962
+ text-transform: uppercase;
963
+ letter-spacing: 0.2em;
964
+ color: var(--ng-text-muted);
965
+ font-weight: 400;
966
+ }
967
+
968
+ /* --- .ng-vu-segment ---
969
+ Trapezoidal fan-out segment for VU meter style indicators. Each
970
+ segment is slightly wider at the bottom, creating a fan when
971
+ multiple are laid out horizontally. */
972
+ .ng-vu-segment {
973
+ clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%);
974
+ background: var(--ng-primary);
975
+ box-shadow: 0 0 var(--ng-glow-blur) rgba(var(--ng-primary-rgb), var(--ng-glow-opacity));
976
+ }
977
+
978
+ /* --- VFD auto-application ---
979
+ When VFD is active, all .ng-card elements automatically receive
980
+ instrument-frame treatment. The consumer adds zero classes — just
981
+ switching the palette chrome-ifies everything.
982
+ Optional: set data-vfd-label="DISPLAY" (or any string) on an
983
+ .ng-card to render a tiny mono label in the top-left corner via
984
+ ::before. If the attribute is absent, no label renders. */
985
+ .neon-vfd .ng-card {
986
+ position: relative;
987
+ border: 2px solid var(--ng-border);
988
+ border-radius: 0;
989
+ box-shadow:
990
+ inset 0 0 0 1px var(--ng-border-subtle),
991
+ inset 0 2px 8px rgba(0,0,0,0.6),
992
+ inset 0 -2px 8px rgba(0,0,0,0.4),
993
+ 0 0 var(--ng-glow-blur) rgba(var(--ng-primary-rgb), calc(var(--ng-glow-opacity) * 0.3));
994
+ }
995
+
996
+ /* Suppress the border-glow pseudo-elements under VFD. The instrument
997
+ frame replaces the soft gradient glow, and we need ::before free
998
+ for data-vfd-label content. Without this, .ng-border-glow's
999
+ ::before (gradient border) stomps the label — CSS only allows one
1000
+ ::before per element. */
1001
+ .neon-vfd .ng-border-glow::before,
1002
+ .neon-vfd .ng-border-glow::after {
1003
+ display: none;
1004
+ }
1005
+
1006
+ /* The label rule must fully reset properties inherited from the
1007
+ lower-specificity .ng-border-glow::before rule: z-index (-1 puts
1008
+ the pseudo behind the card), background (gradient), opacity (0.7),
1009
+ inset (-1px stretches it full-bleed). Without these resets the
1010
+ label text renders but is invisible behind the card content. */
1011
+ .neon-vfd .ng-card[data-vfd-label]::before {
1012
+ display: block;
1013
+ content: attr(data-vfd-label);
1014
+ position: absolute;
1015
+ top: 0.5rem;
1016
+ left: 0.75rem;
1017
+ right: auto;
1018
+ bottom: auto;
1019
+ z-index: 1;
1020
+ background: none;
1021
+ opacity: 1;
1022
+ border-radius: 0;
1023
+ font-family: var(--ng-font-mono);
1024
+ font-size: 0.625rem;
1025
+ text-transform: uppercase;
1026
+ letter-spacing: 0.2em;
1027
+ color: var(--ng-text-muted);
1028
+ font-weight: 400;
1029
+ pointer-events: none;
1030
+ }
1031
+
1032
+ /* ============================================================
1033
+ RETROWAVE CHROME (Phase 5a)
1034
+
1035
+ 80s synthwave album-cover geometry. Four palette-agnostic utilities
1036
+ that compose the visual vocabulary of a gatefold inner sleeve:
1037
+ chrome-outlined headlines, CRT scanline overlay, perspective grid
1038
+ floor, and horizon-split gradient.
1039
+
1040
+ The utilities use palette tokens (--ng-primary-rgb, --ng-secondary-rgb)
1041
+ so they produce palette-colored output on any palette, but they're
1042
+ designed for Retrowave's magenta + cyan. Auto-application inside
1043
+ .neon-retrowave applies chrome text and scanlines; grid and horizon
1044
+ are opt-in full-background elements.
1045
+ ============================================================ */
1046
+
1047
+ /* --- .ng-retrowave-chrome ---
1048
+ Metallic text-shadow stack creating a chrome outline effect on
1049
+ display text. Multiple hard-edged shadow layers simulate metallic
1050
+ reflection: white highlight top-left, dark shadow bottom-right,
1051
+ colored reflections (cyan top, magenta bottom) from the palette's
1052
+ primary and secondary. The last layers add soft neon bloom.
1053
+ The hard 0-blur layers are what give it the metallic sharpness;
1054
+ real 80s chrome lettering was screen-printed with hard reflective
1055
+ edges, not soft gradients. */
1056
+ .ng-retrowave-chrome {
1057
+ text-shadow:
1058
+ -1px -1px 0 rgba(255, 255, 255, 0.8),
1059
+ 1px 1px 0 rgba(0, 0, 0, 0.6),
1060
+ 0 -2px 0 rgba(var(--ng-secondary-rgb), 0.7),
1061
+ 0 2px 0 rgba(var(--ng-primary-rgb), 0.7),
1062
+ -2px 0 4px rgba(var(--ng-secondary-rgb), 0.4),
1063
+ 2px 0 4px rgba(var(--ng-primary-rgb), 0.4),
1064
+ 0 0 12px rgba(var(--ng-primary-rgb), 0.3);
1065
+ }
1066
+
1067
+ /* --- .ng-retrowave-scanlines ---
1068
+ CRT scanline overlay via background-image layer. 2px clear lines
1069
+ alternating with 1px dark lines at very low opacity (0.1) so the
1070
+ texture reads as CRT without hurting text readability.
1071
+ Uses background-image (not ::after) to avoid pseudo-element
1072
+ collisions with .ng-border-glow — the gradient border + bloom is
1073
+ part of the Retrowave aesthetic and must NOT be suppressed. */
1074
+ .ng-retrowave-scanlines {
1075
+ background-image: repeating-linear-gradient(
1076
+ to bottom,
1077
+ transparent 0px,
1078
+ transparent 2px,
1079
+ rgba(0, 0, 0, 0.1) 2px,
1080
+ rgba(0, 0, 0, 0.1) 3px
1081
+ );
1082
+ }
1083
+
1084
+ /* --- .ng-retrowave-grid ---
1085
+ Perspective grid floor vanishing to a horizon. Pure CSS: a flat
1086
+ grid pattern on a ::before pseudo-element, tilted into perspective
1087
+ via CSS transform. The grid occupies the bottom 60% of the element,
1088
+ leaving the top as dark sky.
1089
+ Opt-in — apply to the element that should be the floor. Typically
1090
+ a full-width container or page background section. */
1091
+ .ng-retrowave-grid {
1092
+ position: relative;
1093
+ overflow: hidden;
1094
+ }
1095
+
1096
+ .ng-retrowave-grid::before {
1097
+ content: "";
1098
+ position: absolute;
1099
+ left: -50%;
1100
+ right: -50%;
1101
+ bottom: 0;
1102
+ height: 70%;
1103
+ background:
1104
+ repeating-linear-gradient(
1105
+ 90deg,
1106
+ rgba(var(--ng-primary-rgb), 0.35) 0px,
1107
+ rgba(var(--ng-primary-rgb), 0.35) 1px,
1108
+ transparent 1px,
1109
+ transparent 60px
1110
+ ),
1111
+ repeating-linear-gradient(
1112
+ 0deg,
1113
+ rgba(var(--ng-primary-rgb), 0.35) 0px,
1114
+ rgba(var(--ng-primary-rgb), 0.35) 1px,
1115
+ transparent 1px,
1116
+ transparent 40px
1117
+ );
1118
+ transform: perspective(400px) rotateX(55deg);
1119
+ transform-origin: center bottom;
1120
+ pointer-events: none;
1121
+ }
1122
+
1123
+ /* --- .ng-retrowave-horizon ---
1124
+ Hard-edged horizon-split gradient with the classic sun-setting-
1125
+ into-grid look. Dark purple sky above, bright sun band at the
1126
+ horizon, fade to deep ground below. Uses palette colors via tokens
1127
+ for the sun glow so it adapts to non-Retrowave palettes if someone
1128
+ applies it manually. */
1129
+ .ng-retrowave-horizon {
1130
+ background: linear-gradient(
1131
+ to bottom,
1132
+ #1a0033 0%,
1133
+ #2a0050 35%,
1134
+ rgba(var(--ng-primary-rgb), 0.6) 46%,
1135
+ rgba(var(--ng-primary-rgb), 0.9) 49%,
1136
+ rgba(var(--ng-accent-rgb), 0.8) 50%,
1137
+ rgba(var(--ng-primary-rgb), 0.9) 51%,
1138
+ rgba(var(--ng-primary-rgb), 0.6) 54%,
1139
+ #0d0018 65%,
1140
+ #0a0010 100%
1141
+ );
1142
+ }
1143
+
1144
+ /* --- Retrowave-only display control ---
1145
+ Same pattern as .ng-nixie-only — hides demo/reference content
1146
+ unless the Retrowave palette is active. */
1147
+ .ng-retrowave-only {
1148
+ display: none;
1149
+ }
1150
+
1151
+ .neon-retrowave .ng-retrowave-only {
1152
+ display: block;
1153
+ }
1154
+
1155
+ /* --- Retrowave auto-application ---
1156
+ When Retrowave is active:
1157
+ - Card headings get the chrome text effect automatically.
1158
+ - Cards get the CRT scanline overlay as a background-image layer.
1159
+ Uses background-image (not ::after) so .ng-border-glow's pseudo-
1160
+ elements are preserved — the gradient border + bloom is PART of
1161
+ the Retrowave aesthetic and should NOT be suppressed. The scanline
1162
+ gradient layers on top of background-color because .ng-card sets
1163
+ background-color (not the background shorthand). */
1164
+ .neon-retrowave .ng-card {
1165
+ background-image: repeating-linear-gradient(
1166
+ to bottom,
1167
+ transparent 0px,
1168
+ transparent 2px,
1169
+ rgba(0, 0, 0, 0.1) 2px,
1170
+ rgba(0, 0, 0, 0.1) 3px
1171
+ );
1172
+ }
1173
+
1174
+ .neon-retrowave .ng-card h1,
1175
+ .neon-retrowave .ng-card h2,
1176
+ .neon-retrowave .ng-card .h1,
1177
+ .neon-retrowave .ng-card .h2,
1178
+ .neon-retrowave .ng-card h3 {
1179
+ text-shadow:
1180
+ -1px -1px 0 rgba(255, 255, 255, 0.8),
1181
+ 1px 1px 0 rgba(0, 0, 0, 0.6),
1182
+ 0 -2px 0 rgba(var(--ng-secondary-rgb), 0.7),
1183
+ 0 2px 0 rgba(var(--ng-primary-rgb), 0.7),
1184
+ -2px 0 4px rgba(var(--ng-secondary-rgb), 0.4),
1185
+ 2px 0 4px rgba(var(--ng-primary-rgb), 0.4),
1186
+ 0 0 12px rgba(var(--ng-primary-rgb), 0.3);
1187
+ }
1188
+
1189
+ /* ============================================================
1190
+ CYBERPUNK CHROME (Phase 5b)
1191
+
1192
+ "Partially corrupted holographic interface." These interfaces
1193
+ were engineered to be corporate-clean and precise. What we see is
1194
+ the degradation — holographic projector aging, signal interference,
1195
+ framebuffer bad sectors. Every utility starts from engineered
1196
+ geometry and introduces corruption.
1197
+
1198
+ No pseudo-elements used (Gotcha #8 — ng-border-glow uses both).
1199
+ Panel = clip-path on the element itself. Glitch = text-shadow +
1200
+ keyframe animation. All palette-agnostic via tokens.
1201
+ ============================================================ */
1202
+
1203
+ /* --- .ng-cyberpunk-panel ---
1204
+ Asymmetric clip-path: top-right heavily notched (1.5rem), bottom-
1205
+ right lightly notched (0.5rem), left side square. Reads as
1206
+ "manufactured rectangular, rendering distorted on one side." The
1207
+ asymmetry is the tell — a working system would clip symmetrically;
1208
+ this one has a render error on the right edge.
1209
+ ng-border-glow pseudo-elements clip to this shape, so the glow
1210
+ conforms to the panel frame. Intentional: a holographic panel's
1211
+ glow follows its own frame. */
1212
+ .ng-cyberpunk-panel {
1213
+ clip-path: polygon(
1214
+ 0 0,
1215
+ calc(100% - 1.5rem) 0,
1216
+ 100% 1.5rem,
1217
+ 100% calc(100% - 0.5rem),
1218
+ calc(100% - 0.5rem) 100%,
1219
+ 0 100%
1220
+ );
1221
+ }
1222
+
1223
+ /* --- .ng-cyberpunk-glitch ---
1224
+ RGB channel-split text-shadow. The display still shows the right
1225
+ content but the color channels have drifted apart — like a
1226
+ projector with misaligned optics. Red shifts left, cyan shifts
1227
+ right. Offset amount tuneable via --ng-glitch-offset.
1228
+ On hover: a jittery flicker animation (steps(1) = instant
1229
+ transitions, glitches SNAP not ease). At rest: no effect, because
1230
+ a constant glitch is exhausting to look at (per spec).
1231
+ Reduced-motion fallback: static offset, no animation. */
1232
+ .ng-cyberpunk-glitch {
1233
+ --ng-glitch-offset: 2px;
1234
+ transition: text-shadow 0.05s;
1235
+ }
1236
+
1237
+ .ng-cyberpunk-glitch:hover {
1238
+ animation: ng-cyberpunk-glitch-flicker 0.4s steps(1) infinite;
1239
+ }
1240
+
1241
+ @keyframes ng-cyberpunk-glitch-flicker {
1242
+ 0%, 100% {
1243
+ text-shadow:
1244
+ calc(var(--ng-glitch-offset) * -1) 0 rgba(255, 0, 0, 0.7),
1245
+ var(--ng-glitch-offset) 0 rgba(0, 255, 255, 0.7);
1246
+ }
1247
+ 25% {
1248
+ text-shadow:
1249
+ calc(var(--ng-glitch-offset) * -1.5) 1px rgba(255, 0, 0, 0.9),
1250
+ calc(var(--ng-glitch-offset) * 0.5) -1px rgba(0, 255, 255, 0.5);
1251
+ }
1252
+ 50% {
1253
+ text-shadow:
1254
+ calc(var(--ng-glitch-offset) * -0.5) -1px rgba(255, 0, 0, 0.5),
1255
+ calc(var(--ng-glitch-offset) * 1.5) 0 rgba(0, 255, 255, 0.9);
1256
+ }
1257
+ 75% {
1258
+ text-shadow:
1259
+ calc(var(--ng-glitch-offset) * -1) 1px rgba(255, 0, 0, 0.8),
1260
+ var(--ng-glitch-offset) -1px rgba(0, 255, 255, 0.6);
1261
+ }
1262
+ }
1263
+
1264
+ @media (prefers-reduced-motion: reduce) {
1265
+ .ng-cyberpunk-glitch:hover {
1266
+ animation: none;
1267
+ text-shadow:
1268
+ calc(var(--ng-glitch-offset) * -1) 0 rgba(255, 0, 0, 0.7),
1269
+ var(--ng-glitch-offset) 0 rgba(0, 255, 255, 0.7);
1270
+ }
1271
+ }
1272
+
1273
+ /* --- .ng-cyberpunk-shear ---
1274
+ Small skewX tilt implying a holographic projection that's not
1275
+ quite perpendicular to the viewer. Barely perceptible. Opt-in
1276
+ because skewing shifts the bounding box and can surprise layouts. */
1277
+ .ng-cyberpunk-shear {
1278
+ transform: skewX(-1deg);
1279
+ }
1280
+
1281
+ /* --- .ng-cyberpunk-label ---
1282
+ Tiny HUD annotation: system diagnostic text the UI is exposing
1283
+ because the interface layer has partially failed. Uses the
1284
+ display-alt font (Rubik Glitch under Cyberpunk) so the labels
1285
+ carry the same corruption aesthetic as headlines. */
1286
+ .ng-cyberpunk-label {
1287
+ font-family: var(--ng-font-display-alt);
1288
+ font-size: 0.6rem;
1289
+ text-transform: uppercase;
1290
+ letter-spacing: 0.15em;
1291
+ color: rgb(var(--ng-primary-rgb));
1292
+ opacity: 0.6;
1293
+ font-weight: 400;
1294
+ }
1295
+
1296
+ /* --- Cyberpunk-only display control --- */
1297
+ .ng-cyberpunk-only {
1298
+ display: none;
1299
+ }
1300
+
1301
+ .neon-cyberpunk .ng-cyberpunk-only {
1302
+ display: block;
1303
+ }
1304
+
1305
+ /* --- Cyberpunk auto-application ---
1306
+ Cards gain asymmetric panel clip-path + holographic internal glow.
1307
+ Headings gain the glitch effect on hover.
1308
+
1309
+ IMPORTANT: clip-path creates a stacking context, which has two
1310
+ consequences for ng-border-glow:
1311
+ 1. The ::before gradient (z-index: -1) gets trapped INSIDE the
1312
+ card's stacking context and paints as a visible gradient fill
1313
+ over the card background → illegible text.
1314
+ 2. The ::after blur glow (inset: -2px, extends past card edge)
1315
+ gets clipped away → no visible border glow.
1316
+
1317
+ Fix: suppress border-glow pseudo-elements under Cyberpunk and
1318
+ replace with an INSET glow. This fits the referent better anyway:
1319
+ holograms don't bleed light outward from frame edges (that's what
1320
+ neon does). A holographic panel glows INWARD — the projection
1321
+ surface is self-illuminated. The inset box-shadow survives inside
1322
+ the clip region because it paints within the element's border box. */
1323
+ .neon-cyberpunk .ng-border-glow::before,
1324
+ .neon-cyberpunk .ng-border-glow::after {
1325
+ display: none;
1326
+ }
1327
+
1328
+ .neon-cyberpunk .ng-card {
1329
+ clip-path: polygon(
1330
+ 0 0,
1331
+ calc(100% - 1.5rem) 0,
1332
+ 100% 1.5rem,
1333
+ 100% calc(100% - 0.5rem),
1334
+ calc(100% - 0.5rem) 100%,
1335
+ 0 100%
1336
+ );
1337
+ border: 1px solid rgba(var(--ng-primary-rgb), 0.35);
1338
+ box-shadow:
1339
+ inset 0 0 30px rgba(var(--ng-primary-rgb), 0.08),
1340
+ inset 0 0 6px rgba(var(--ng-primary-rgb), 0.2);
1341
+ }
1342
+
1343
+ .neon-cyberpunk .ng-card h1,
1344
+ .neon-cyberpunk .ng-card h2,
1345
+ .neon-cyberpunk .ng-card .h1,
1346
+ .neon-cyberpunk .ng-card .h2,
1347
+ .neon-cyberpunk .ng-card h3 {
1348
+ --ng-glitch-offset: 2px;
1349
+ }
1350
+
1351
+ .neon-cyberpunk .ng-card h1:hover,
1352
+ .neon-cyberpunk .ng-card h2:hover,
1353
+ .neon-cyberpunk .ng-card .h1:hover,
1354
+ .neon-cyberpunk .ng-card .h2:hover,
1355
+ .neon-cyberpunk .ng-card h3:hover {
1356
+ animation: ng-cyberpunk-glitch-flicker 0.4s steps(1) infinite;
1357
+ }
1358
+
1359
+ @media (prefers-reduced-motion: reduce) {
1360
+ .neon-cyberpunk .ng-card h1:hover,
1361
+ .neon-cyberpunk .ng-card h2:hover,
1362
+ .neon-cyberpunk .ng-card .h1:hover,
1363
+ .neon-cyberpunk .ng-card .h2:hover,
1364
+ .neon-cyberpunk .ng-card h3:hover {
1365
+ animation: none;
1366
+ text-shadow:
1367
+ -2px 0 rgba(255, 0, 0, 0.7),
1368
+ 2px 0 rgba(0, 255, 255, 0.7);
1369
+ }
1370
+ }
1371
+
1372
+ /* ============================================================
1373
+ GRUNGE CHROME (Phase 5c)
1374
+
1375
+ 90s zine culture. Photocopied flyers stapled to telephone poles,
1376
+ cut-and-paste layouts, Xerox halation, ink-bleed on cheap paper.
1377
+ The central design tension: CSS produces clean geometry by default,
1378
+ so every deliberate choice must introduce IMPRECISION — non-round
1379
+ rotation angles, hand-drawn SVG paths instead of polygons, noise
1380
+ overlays, asymmetric values. The line between "deliberately rough"
1381
+ and "broken" is thin; these utilities live on the right side of it.
1382
+
1383
+ No pseudo-elements used (Gotcha #8). Transform creates a stacking
1384
+ context which would trap ng-border-glow's ::before inside the
1385
+ card (same failure mode as Cyberpunk), so border-glow is
1386
+ suppressed under Grunge and replaced with a hard-edged paper-on-
1387
+ wall offset shadow. Grunge cards aren't lit from within — they're
1388
+ paper objects in dim rooms.
1389
+ ============================================================ */
1390
+
1391
+ /* --- .ng-grunge-noise ---
1392
+ Procedural noise texture via inlined SVG feTurbulence filter.
1393
+ Low baseFrequency = coarser grain; numOctaves=2 adds visual depth.
1394
+ Applied as background-image layer (NOT pseudo-element) so it
1395
+ composes with any existing background-color. Low opacity keeps
1396
+ the noise readable as texture without eroding text legibility. */
1397
+ .ng-grunge-noise {
1398
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.5 0 0 0 0 0.35 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
1399
+ background-size: 200px 200px;
1400
+ background-repeat: repeat;
1401
+ }
1402
+
1403
+ /* --- .ng-grunge-rotate ---
1404
+ Custom-property-driven rotation. Default 0deg so the utility is
1405
+ inert until an angle is set. Non-round angle values preserve the
1406
+ handmade feel — humans stapling flyers don't align to integers. */
1407
+ .ng-grunge-rotate {
1408
+ --ng-grunge-angle: 0deg;
1409
+ transform: rotate(var(--ng-grunge-angle));
1410
+ }
1411
+
1412
+ /* --- .ng-grunge-torn ---
1413
+ SVG mask with an irregular hand-drawn bottom edge. Opt-in because
1414
+ tearing every card would be visual noise. CSS clip-path polygons
1415
+ look too regular for torn paper; SVG path nodes allow varying
1416
+ tooth sizes and asymmetric spacing. The mask covers the full top
1417
+ of the element and tears the bottom ~8% with irregular teeth. */
1418
+ .ng-grunge-torn {
1419
+ -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 100 100'><path d='M 0,0 L 100,0 L 100,94 L 96,98 L 92,93 L 87,99 L 83,92 L 79,97 L 74,93 L 70,99 L 65,94 L 61,98 L 57,92 L 52,97 L 48,93 L 43,99 L 38,94 L 34,98 L 29,93 L 25,97 L 20,92 L 16,99 L 11,94 L 7,98 L 3,93 L 0,97 Z' fill='black'/></svg>");
1420
+ mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 100 100'><path d='M 0,0 L 100,0 L 100,94 L 96,98 L 92,93 L 87,99 L 83,92 L 79,97 L 74,93 L 70,99 L 65,94 L 61,98 L 57,92 L 52,97 L 48,93 L 43,99 L 38,94 L 34,98 L 29,93 L 25,97 L 20,92 L 16,99 L 11,94 L 7,98 L 3,93 L 0,97 Z' fill='black'/></svg>");
1421
+ -webkit-mask-size: 100% 100%;
1422
+ mask-size: 100% 100%;
1423
+ -webkit-mask-repeat: no-repeat;
1424
+ mask-repeat: no-repeat;
1425
+ }
1426
+
1427
+ /* --- .ng-grunge-stamp ---
1428
+ Rubber-stamped text on paper. Rough border, rotation, ink-uneven
1429
+ via noise overlay. Inline-block so it wraps just the text and
1430
+ reads as a label, not a container. */
1431
+ .ng-grunge-stamp {
1432
+ display: inline-block;
1433
+ padding: 0.35rem 0.85rem;
1434
+ border: 2px solid rgba(var(--ng-primary-rgb), 0.7);
1435
+ color: rgba(var(--ng-primary-rgb), 0.85);
1436
+ font-weight: 700;
1437
+ text-transform: uppercase;
1438
+ letter-spacing: 0.12em;
1439
+ transform: rotate(-1.7deg);
1440
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/></svg>");
1441
+ background-size: 100px 100px;
1442
+ }
1443
+
1444
+ /* --- Grunge-only display control --- */
1445
+ .ng-grunge-only {
1446
+ display: none;
1447
+ }
1448
+
1449
+ .neon-grunge .ng-grunge-only {
1450
+ display: block;
1451
+ }
1452
+
1453
+ /* --- Grunge auto-application ---
1454
+ Suppress border-glow (transform stacking context traps ::before
1455
+ as a visible gradient fill — same failure as Cyberpunk). Replace
1456
+ with hard-edged paper-on-wall offset shadow. Cards get noise
1457
+ overlay automatically. Rotation cycles four non-round angles via
1458
+ nth-child so a grid of cards reads as "wall of flyers, none
1459
+ quite straight, no two adjacent the same angle."
1460
+
1461
+ Four-cycle pattern (4n+1/+2/+3/+0) with irrational-looking degrees:
1462
+ 1st: -1.2deg
1463
+ 2nd: 0.7deg
1464
+ 3rd: -0.5deg
1465
+ 4th: 1.5deg
1466
+ The cycle never places two adjacent cards at the same angle,
1467
+ which reads as handmade rather than alternating-pattern. */
1468
+ .neon-grunge .ng-border-glow::before,
1469
+ .neon-grunge .ng-border-glow::after {
1470
+ display: none;
1471
+ }
1472
+
1473
+ .neon-grunge .ng-card {
1474
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.5 0 0 0 0 0.35 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
1475
+ background-size: 200px 200px;
1476
+ background-repeat: repeat;
1477
+ border: 1px solid rgba(var(--ng-primary-rgb), 0.3);
1478
+ box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.5);
1479
+ }
1480
+
1481
+ .neon-grunge .ng-card:nth-child(4n+1) { transform: rotate(-1.2deg); }
1482
+ .neon-grunge .ng-card:nth-child(4n+2) { transform: rotate( 0.7deg); }
1483
+ .neon-grunge .ng-card:nth-child(4n+3) { transform: rotate(-0.5deg); }
1484
+ .neon-grunge .ng-card:nth-child(4n) { transform: rotate( 1.5deg); }
1485
+
1486
+ /* --- Grunge marginalia: annotation without content ---
1487
+ Sparse pen-mark accents sprinkled across the card grid. The
1488
+ gesture of annotation without any actual annotation — someone
1489
+ scrawled on this but didn't mean it. Generational-irony texture:
1490
+ the shape of caring, untethered from care.
1491
+
1492
+ Two marks, applied via nth-child so they hit ~1 in 3 cards,
1493
+ alternating color, never adjacent:
1494
+ - Red scribbled cross-out (wavy sharpie stroke, top-right)
1495
+ - Green incomplete hand-drawn circle (pen-arc, bottom-left)
1496
+
1497
+ Both are composed with the existing noise + card-background via
1498
+ the multi-layer background shorthand. SVG paths use hardcoded
1499
+ Grunge palette rgb values (90,138,74 olive + 168,50,50 dirty red)
1500
+ because CSS custom properties don't resolve inside data-URI
1501
+ background-images. If the Grunge palette ever re-tunes success/
1502
+ danger, update these hardcoded values too.
1503
+
1504
+ These are scoped to .neon-grunge, so re-tuning affects Grunge only. */
1505
+ .neon-grunge .ng-card:nth-child(6n+3),
1506
+ .neon-grunge .ng-card[data-grunge-mark="scribble"] {
1507
+ background-image:
1508
+ url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'><path d='M 5 15 Q 15 22 25 12 Q 35 26 45 14 Q 52 25 55 18' stroke='rgba(168,50,50,0.55)' stroke-width='2.5' fill='none' stroke-linecap='round'/><path d='M 8 28 Q 18 20 28 30 Q 38 22 48 32' stroke='rgba(168,50,50,0.45)' stroke-width='2' fill='none' stroke-linecap='round'/></svg>"),
1509
+ url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.5 0 0 0 0 0.35 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
1510
+ background-position: calc(100% - 1rem) 1rem, 0 0;
1511
+ background-size: 3rem 2rem, 200px 200px;
1512
+ background-repeat: no-repeat, repeat;
1513
+ }
1514
+
1515
+ .neon-grunge .ng-card:nth-child(6n+5) {
1516
+ background-image:
1517
+ url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'><path d='M 38 10 Q 50 20 48 32 Q 42 46 28 46 Q 12 44 8 30 Q 7 18 18 12' stroke='rgba(90,138,74,0.6)' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>"),
1518
+ url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.5 0 0 0 0 0.35 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
1519
+ background-position: 1rem calc(100% - 1rem), 0 0;
1520
+ background-size: 2.5rem 2.5rem, 200px 200px;
1521
+ background-repeat: no-repeat, repeat;
1522
+ }
1523
+
1524
+ /* Opt-in circle uses a different corner than the nth-child auto-apply.
1525
+ Reason: the auto-apply lives on content-heavy homepage cards where
1526
+ the bottom-left corner is empty whitespace. Kitchen-sink cards like
1527
+ Forms and Buttons have interactive controls clustered in that exact
1528
+ corner (submit buttons, first button in a group), which swallows the
1529
+ mark entirely. Bottom-RIGHT is reliably empty on both card types. */
1530
+ .neon-grunge .ng-card[data-grunge-mark="circle"] {
1531
+ background-image:
1532
+ url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'><path d='M 38 10 Q 50 20 48 32 Q 42 46 28 46 Q 12 44 8 30 Q 7 18 18 12' stroke='rgba(90,138,74,0.6)' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>"),
1533
+ url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.5 0 0 0 0 0.35 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
1534
+ background-position: calc(100% - 1rem) calc(100% - 1rem), 0 0;
1535
+ background-size: 2.5rem 2.5rem, 200px 200px;
1536
+ background-repeat: no-repeat, repeat;
1537
+ }
1538
+
1539
+ /* Explicit opt-out — wins over nth-child accents. Used when an
1540
+ nth-child position happens to place an accent somewhere that
1541
+ crosses the line from "incidental residue" into "visible pattern."
1542
+ Sometimes three marks in sequence breaks the whatever-feel even
1543
+ if each individual mark is right. */
1544
+ .neon-grunge .ng-card[data-grunge-mark="none"] {
1545
+ background-image:
1546
+ url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.5 0 0 0 0 0.35 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
1547
+ background-position: 0 0;
1548
+ background-size: 200px 200px;
1549
+ background-repeat: repeat;
1550
+ }
1551
+
1552
+ /* ============================================================
1553
+ NEON TUBE AFFORDANCE (Phase 2.5, re-pointed Phase 3)
1554
+
1555
+ .ng-neon-tube — palette-agnostic utility that makes any element
1556
+ read as literal neon signage. Megrim is a constructivist display
1557
+ face whose thin geometric letterforms ARE tubes: each letter is
1558
+ constructed from single-line strokes the way actual neon signs are
1559
+ physically constructed (lengths of glass tubing bent into letter
1560
+ shapes). That is the most literal "this is a neon tube" register
1561
+ possible as typography.
1562
+
1563
+ Color comes from --ng-primary-rgb, so the same utility produces a
1564
+ distinct visual register for each of the 12 palettes:
1565
+ - Retrowave: hot magenta/cyan tube letters
1566
+ - Cyberpunk: toxic green tube letters with data-corrupt glow
1567
+ - Cinematic: amber Blade Runner title-card tube
1568
+ - Cherenkov: deep blue tubes with pool-of-water Overdrive bloom
1569
+ - Nixie: same Megrim tube letters — Nixie's wire-grid and
1570
+ Montserrat Underline treatment stay on palette-
1571
+ native scopes (.ng-card h1/h2, .ng-nixie-digit)
1572
+ and do NOT apply to .ng-neon-tube
1573
+
1574
+ Phase 2 (Nixie's original H1/H2 experiment) used Montserrat
1575
+ Underline. Phase 2.5 promoted Montserrat Underline to be the
1576
+ universal tube font across all palettes AND applied Nixie's
1577
+ wire-grid character-wrap to the tube when Nixie was active. Both
1578
+ were propagation rather than design — a universal utility can't
1579
+ behave differently for one palette. Phase 3 replaces the font
1580
+ with Megrim universally and scopes the wire-grid wrap to Nixie's
1581
+ own card-heading selectors only. Universal utilities are universal.
1582
+
1583
+ Text-shadow produces a soft outer glow so the tube reads as
1584
+ illuminated, not just shaped. Intensity-responsive via tokens.
1585
+ ============================================================ */
1586
+
1587
+ /* Doubled class on the selector is a specificity hack (0,2,0) that
1588
+ deliberately beats palette-specific heading rules like
1589
+ .neon-cherenkov h1 (0,1,1) and .neon-nixie h1 (0,1,1). Without
1590
+ this, the palette-specific hardcoded text-shadows win and the
1591
+ tube's intensity-responsive glow never applies — the hero stops
1592
+ responding to the intensity dropdown. The doubled selector is
1593
+ visually identical to .ng-neon-tube; only specificity differs. */
1594
+ .ng-neon-tube.ng-neon-tube {
1595
+ font-family: 'Megrim', 'Courier New', monospace;
1596
+ color: rgb(var(--ng-primary-rgb));
1597
+ /* Four-layer glow tied to the intensity system: blur radius and
1598
+ opacity both come from intensity tokens (--ng-glow-text-blur and
1599
+ --ng-glow-opacity), so switching intensity re-reads through.
1600
+ Overdrive on Cherenkov produces the "glow-through-water" bloom
1601
+ the palette was designed for — the 4x outer halo spreads ~110px
1602
+ of soft blue past the text on Overdrive, retreats to ~16px on
1603
+ Subtle. Extra wide outer layer (4x blur, 0.25x opacity) is what
1604
+ gives the luminous-pool character; a three-layer version reads
1605
+ as "halo around solid letters" rather than "gas lit inside a
1606
+ tube." */
1607
+ text-shadow:
1608
+ 0 0 calc(var(--ng-glow-text-blur) * 0.5) rgba(var(--ng-primary-rgb), var(--ng-glow-opacity)),
1609
+ 0 0 var(--ng-glow-text-blur) rgba(var(--ng-primary-rgb), calc(var(--ng-glow-opacity) * 0.70)),
1610
+ 0 0 calc(var(--ng-glow-text-blur) * 2.5) rgba(var(--ng-primary-rgb), calc(var(--ng-glow-opacity) * 0.40)),
1611
+ 0 0 calc(var(--ng-glow-text-blur) * 4) rgba(var(--ng-primary-rgb), calc(var(--ng-glow-opacity) * 0.25));
1612
+ }
1613
+
1614
+ /* Note: .ng-neon-tube is NOT character-wrapped by the controller,
1615
+ on any palette. The per-character wire-grid belongs to Nixie's own
1616
+ card-heading scope and the .ng-nixie-digit demo utility, not to
1617
+ the palette-agnostic tube. See Gotcha #7 in CLAUDE.md. */