@jaimevalasek/aioson 1.30.0 → 1.30.2

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.
Files changed (93) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/docs/design-previews/cognitive-core-ui-auth.html +95 -0
  3. package/docs/design-previews/cognitive-core-ui-kanban.html +231 -0
  4. package/docs/design-previews/cognitive-core-ui-list-detail.html +174 -0
  5. package/docs/design-previews/cognitive-core-ui-preview.css +1315 -0
  6. package/docs/design-previews/cognitive-core-ui-settings.html +142 -0
  7. package/docs/design-previews/cognitive-core-ui-website.html +190 -1009
  8. package/docs/design-previews/cognitive-core-ui.html +281 -463
  9. package/docs/design-previews/index.html +83 -31
  10. package/package.json +1 -1
  11. package/src/constants.js +578 -514
  12. package/template/.aioson/docs/integrations/dashboard-app-form-publish-mapping.md +183 -0
  13. package/template/.aioson/docs/play/README.md +74 -0
  14. package/template/.aioson/docs/play/agent-usage-guide.md +112 -0
  15. package/template/.aioson/docs/play/app-compatibility-guide.md +117 -0
  16. package/template/.aioson/docs/play/auth-services-and-testing.md +235 -0
  17. package/template/.aioson/docs/play/llm-data-and-bindings.md +238 -0
  18. package/template/.aioson/docs/play/manifest-and-runtime.md +267 -0
  19. package/template/.aioson/docs/play/source-map.md +104 -0
  20. package/template/.aioson/skills/design/aurora-command-ui/SKILL.md +266 -243
  21. package/template/.aioson/skills/design/aurora-command-ui/references/art-direction.md +293 -293
  22. package/template/.aioson/skills/design/aurora-command-ui/references/components.md +827 -827
  23. package/template/.aioson/skills/design/aurora-command-ui/references/dashboards.md +250 -250
  24. package/template/.aioson/skills/design/aurora-command-ui/references/design-tokens.md +585 -585
  25. package/template/.aioson/skills/design/aurora-command-ui/references/motion.md +365 -365
  26. package/template/.aioson/skills/design/aurora-command-ui/references/patterns.md +485 -482
  27. package/template/.aioson/skills/design/aurora-command-ui/references/websites.md +386 -387
  28. package/template/.aioson/skills/design/bold-editorial-ui/SKILL.md +228 -205
  29. package/template/.aioson/skills/design/bold-editorial-ui/references/art-direction.md +338 -338
  30. package/template/.aioson/skills/design/bold-editorial-ui/references/components.md +977 -977
  31. package/template/.aioson/skills/design/bold-editorial-ui/references/dashboards.md +218 -218
  32. package/template/.aioson/skills/design/bold-editorial-ui/references/design-tokens.md +326 -326
  33. package/template/.aioson/skills/design/bold-editorial-ui/references/motion.md +461 -461
  34. package/template/.aioson/skills/design/bold-editorial-ui/references/patterns.md +293 -293
  35. package/template/.aioson/skills/design/bold-editorial-ui/references/websites.md +352 -352
  36. package/template/.aioson/skills/design/clean-saas-ui/SKILL.md +233 -210
  37. package/template/.aioson/skills/design/clean-saas-ui/references/art-direction.md +319 -319
  38. package/template/.aioson/skills/design/clean-saas-ui/references/components.md +365 -365
  39. package/template/.aioson/skills/design/clean-saas-ui/references/dashboards.md +196 -196
  40. package/template/.aioson/skills/design/clean-saas-ui/references/design-tokens.md +244 -244
  41. package/template/.aioson/skills/design/clean-saas-ui/references/motion.md +235 -235
  42. package/template/.aioson/skills/design/clean-saas-ui/references/patterns.md +215 -215
  43. package/template/.aioson/skills/design/clean-saas-ui/references/websites.md +295 -295
  44. package/template/.aioson/skills/design/cognitive-core-ui/SKILL.md +239 -203
  45. package/template/.aioson/skills/design/cognitive-core-ui/references/art-direction.md +339 -339
  46. package/template/.aioson/skills/design/cognitive-core-ui/references/components.md +417 -407
  47. package/template/.aioson/skills/design/cognitive-core-ui/references/dashboards.md +289 -272
  48. package/template/.aioson/skills/design/cognitive-core-ui/references/design-tokens.md +525 -524
  49. package/template/.aioson/skills/design/cognitive-core-ui/references/motion.md +279 -279
  50. package/template/.aioson/skills/design/cognitive-core-ui/references/patterns.md +355 -289
  51. package/template/.aioson/skills/design/cognitive-core-ui/references/websites.md +443 -437
  52. package/template/.aioson/skills/design/glassmorphism-ui/SKILL.md +245 -222
  53. package/template/.aioson/skills/design/glassmorphism-ui/references/art-direction.md +159 -159
  54. package/template/.aioson/skills/design/glassmorphism-ui/references/components.md +498 -498
  55. package/template/.aioson/skills/design/glassmorphism-ui/references/dashboards.md +236 -236
  56. package/template/.aioson/skills/design/glassmorphism-ui/references/design-tokens.md +274 -274
  57. package/template/.aioson/skills/design/glassmorphism-ui/references/motion.md +355 -355
  58. package/template/.aioson/skills/design/glassmorphism-ui/references/patterns.md +198 -198
  59. package/template/.aioson/skills/design/glassmorphism-ui/references/websites.md +307 -307
  60. package/template/.aioson/skills/design/interface-design/SKILL.md +68 -47
  61. package/template/.aioson/skills/design/interface-design/references/components-and-states.md +105 -105
  62. package/template/.aioson/skills/design/interface-design/references/design-directions.md +101 -101
  63. package/template/.aioson/skills/design/interface-design/references/handoff-and-quality.md +92 -71
  64. package/template/.aioson/skills/design/interface-design/references/intent-and-domain.md +74 -74
  65. package/template/.aioson/skills/design/interface-design/references/tokens-and-depth.md +173 -173
  66. package/template/.aioson/skills/design/neo-brutalist-ui/SKILL.md +236 -213
  67. package/template/.aioson/skills/design/neo-brutalist-ui/references/art-direction.md +228 -228
  68. package/template/.aioson/skills/design/neo-brutalist-ui/references/components.md +855 -855
  69. package/template/.aioson/skills/design/neo-brutalist-ui/references/dashboards.md +334 -334
  70. package/template/.aioson/skills/design/neo-brutalist-ui/references/design-tokens.md +342 -342
  71. package/template/.aioson/skills/design/neo-brutalist-ui/references/motion.md +286 -286
  72. package/template/.aioson/skills/design/neo-brutalist-ui/references/patterns.md +458 -458
  73. package/template/.aioson/skills/design/neo-brutalist-ui/references/websites.md +723 -723
  74. package/template/.aioson/skills/design/premium-command-center-ui/SKILL.md +83 -62
  75. package/template/.aioson/skills/design/premium-command-center-ui/references/operations.md +74 -74
  76. package/template/.aioson/skills/design/premium-command-center-ui/references/patterns.md +116 -116
  77. package/template/.aioson/skills/design/premium-command-center-ui/references/validation.md +47 -47
  78. package/template/.aioson/skills/design/premium-command-center-ui/references/visual-system.md +215 -215
  79. package/template/.aioson/skills/design/pt.squarespace.com/.skill-meta.json +31 -31
  80. package/template/.aioson/skills/design/pt.squarespace.com/SKILL.md +94 -66
  81. package/template/.aioson/skills/design/pt.squarespace.com/references/components.md +366 -366
  82. package/template/.aioson/skills/design/pt.squarespace.com/references/design-tokens.md +150 -150
  83. package/template/.aioson/skills/design/pt.squarespace.com/references/motion.md +270 -270
  84. package/template/.aioson/skills/design/pt.squarespace.com/references/patterns.md +189 -189
  85. package/template/.aioson/skills/design/pt.squarespace.com/references/websites.md +161 -161
  86. package/template/.aioson/skills/design/warm-craft-ui/SKILL.md +232 -209
  87. package/template/.aioson/skills/design/warm-craft-ui/references/art-direction.md +324 -324
  88. package/template/.aioson/skills/design/warm-craft-ui/references/components.md +508 -508
  89. package/template/.aioson/skills/design/warm-craft-ui/references/dashboards.md +223 -223
  90. package/template/.aioson/skills/design/warm-craft-ui/references/design-tokens.md +374 -374
  91. package/template/.aioson/skills/design/warm-craft-ui/references/motion.md +356 -356
  92. package/template/.aioson/skills/design/warm-craft-ui/references/patterns.md +288 -288
  93. package/template/.aioson/skills/design/warm-craft-ui/references/websites.md +289 -289
@@ -1,286 +1,286 @@
1
- # Motion — Neo-Brutalist UI
2
-
3
- Neo-brutalist motion is mechanical, not fluid. Like physical switches and buttons, not flowing water.
4
-
5
- ---
6
-
7
- ## Principles
8
-
9
- 1. **Mechanical**: movements are mechanical, not organic. Things snap into place, not glide.
10
- 2. **Instant feedback**: transitions are short and direct. User clicks → thing happens. No delay, no anticipation.
11
- 3. **Push mechanic**: the fundamental interaction — shadow disappears + translate equal to shadow offset. This is physical and satisfying.
12
- 4. **No spring curves**: easing is minimal. `linear` or basic `ease`. No bouncy `cubic-bezier`. That's glassmorphism/editorial territory.
13
- 5. **Zero blur motion**: no blur-in, no blur-out, no lens-style motion blur. Consistency with the no-blur principle.
14
-
15
- ---
16
-
17
- ## Timings
18
-
19
- The fastest timings of all design skills. Brutalist doesn't waste time on animation.
20
-
21
- ```css
22
- --transition-push: 60ms linear; /* push mechanic — must feel instant */
23
- --transition-fast: 80ms ease; /* hover, focus state changes */
24
- --transition-base: 120ms ease; /* standard state changes (toggle, checkbox) */
25
- --transition-slow: 200ms ease; /* content changes, entrances */
26
- ```
27
-
28
- ---
29
-
30
- ## Core Mechanic — Push
31
-
32
- The single most important interaction in this skill. Apply to every element that has a hard shadow.
33
-
34
- ```css
35
- /* The brutalist push — applied to buttons, interactive cards, any element with box-shadow */
36
-
37
- .brutalist-pushable {
38
- border: var(--border-thicker);
39
- box-shadow: var(--shadow-md); /* 4px 4px 0 — the resting state */
40
- transition:
41
- box-shadow var(--transition-fast),
42
- transform var(--transition-fast);
43
- }
44
-
45
- .brutalist-pushable:hover {
46
- box-shadow: var(--shadow-lg); /* 6px 6px 0 — grows on hover */
47
- }
48
-
49
- .brutalist-pushable:active {
50
- box-shadow: none; /* shadow completely gone */
51
- transform: translate(4px, 4px); /* translate exactly equal to shadow-md offset */
52
- transition:
53
- box-shadow var(--transition-push),
54
- transform var(--transition-push);
55
- }
56
- ```
57
-
58
- Offset table — translate must match the resting shadow:
59
-
60
- | Resting shadow | Active translate |
61
- |---|---|
62
- | `--shadow-sm` (2px 2px) | `translate(2px, 2px)` |
63
- | `--shadow-md` (4px 4px) | `translate(4px, 4px)` |
64
- | `--shadow-lg` (6px 6px) | `translate(6px, 6px)` |
65
- | `--shadow-xl` (8px 8px) | `translate(8px, 8px)` |
66
-
67
- Elements that get the push mechanic: all buttons, interactive cards, card-links, any element with `box-shadow`.
68
-
69
- ---
70
-
71
- ## Entrance Animations
72
-
73
- ### Snap In (default)
74
- No movement — just appear. This is brutalist: things exist, they don't float in.
75
-
76
- ```css
77
- @keyframes snap-in {
78
- from { opacity: 0; }
79
- to { opacity: 1; }
80
- }
81
-
82
- .enter-snap {
83
- animation: snap-in 150ms linear forwards;
84
- }
85
- ```
86
-
87
- ### Slide Down
88
- For dropdowns and menus — minimal vertical movement.
89
-
90
- ```css
91
- @keyframes slide-down {
92
- from {
93
- opacity: 0;
94
- transform: translateY(-10px);
95
- }
96
- to {
97
- opacity: 1;
98
- transform: translateY(0);
99
- }
100
- }
101
-
102
- .enter-slide-down {
103
- animation: slide-down 200ms ease forwards;
104
- }
105
- ```
106
-
107
- ### Pop
108
- For modals and tooltips — scale from slightly smaller.
109
-
110
- ```css
111
- @keyframes pop {
112
- from {
113
- opacity: 0;
114
- transform: scale(0.92);
115
- }
116
- to {
117
- opacity: 1;
118
- transform: scale(1);
119
- }
120
- }
121
-
122
- .enter-pop {
123
- animation: pop 150ms ease forwards;
124
- }
125
- ```
126
-
127
- ### Typewriter (decorative, use sparingly)
128
- For code blocks and terminal-feel elements only.
129
-
130
- ```css
131
- /* Implementation via JavaScript character-by-character reveal */
132
- /* CSS: set initial text to empty, add characters via JS at 30ms intervals */
133
- /* Only for hero code blocks or onboarding terminal demos — never for body text */
134
- ```
135
-
136
- ---
137
-
138
- ## Stagger
139
-
140
- Very fast — barely perceptible. The entrance is about structure, not spectacle.
141
-
142
- ```css
143
- /* 30ms per item — faster than all other skills */
144
- .stagger-1 { animation-delay: 0ms; }
145
- .stagger-2 { animation-delay: 30ms; }
146
- .stagger-3 { animation-delay: 60ms; }
147
- .stagger-4 { animation-delay: 90ms; }
148
- ```
149
-
150
- Rules:
151
- - Maximum 4 items in a stagger sequence
152
- - Use `snap-in` as the animation (opacity only — no translate)
153
- - Do not stagger on content inside tables
154
- - Stagger on: card grids, feature lists, stat cards on initial page load
155
-
156
- ---
157
-
158
- ## Hover States
159
-
160
- ```css
161
- /* Cards */
162
- .card:hover {
163
- box-shadow: var(--shadow-lg); /* shadow grows: 4px → 6px */
164
- transition: box-shadow 80ms ease;
165
- }
166
-
167
- /* Buttons: same shadow growth */
168
- .btn-primary:hover {
169
- box-shadow: var(--shadow-lg);
170
- }
171
-
172
- /* Table rows */
173
- .table tbody tr:hover {
174
- background: var(--bg-elevated);
175
- transition: background 60ms ease;
176
- }
177
-
178
- /* Nav links: underline reveal */
179
- .nav-link:hover {
180
- text-decoration: underline;
181
- text-decoration-thickness: 2px;
182
- text-underline-offset: 4px;
183
- /* Instant — no animation needed */
184
- }
185
-
186
- /* Images: NO hover transition */
187
- /* Brutalist images don't do smooth zoom or overlay on hover */
188
- ```
189
-
190
- ---
191
-
192
- ## Scroll Animations
193
-
194
- Minimal. Apps: none by default. Websites: opacity only on viewport entry.
195
-
196
- ### For websites (IntersectionObserver)
197
-
198
- ```js
199
- const observer = new IntersectionObserver(
200
- (entries) => {
201
- entries.forEach(entry => {
202
- if (entry.isIntersecting) {
203
- entry.target.classList.add('visible');
204
- observer.unobserve(entry.target); // only once
205
- }
206
- });
207
- },
208
- { threshold: 0.15 }
209
- );
210
-
211
- document.querySelectorAll('[data-animate]').forEach(el => observer.observe(el));
212
- ```
213
-
214
- ```css
215
- [data-animate] {
216
- opacity: 0;
217
- transition: opacity 200ms ease;
218
- }
219
-
220
- [data-animate].visible {
221
- opacity: 1;
222
- }
223
- ```
224
-
225
- No `translateY`, no scale — **opacity only**. Brutalist content doesn't slide in.
226
-
227
- ### Marquee (continuous)
228
-
229
- Only the `.marquee` component. CSS animation, never applied to anything else.
230
-
231
- ```css
232
- @keyframes marquee {
233
- from { transform: translateX(0); }
234
- to { transform: translateX(-50%); }
235
- }
236
- ```
237
-
238
- ---
239
-
240
- ## Page Transitions
241
-
242
- ```css
243
- /* App content area: near-instant */
244
- .content-area--transitioning {
245
- animation: snap-in 100ms linear;
246
- }
247
-
248
- /* Modal: pop entrance */
249
- .modal { animation: pop 150ms ease; }
250
-
251
- /* Backdrop: instant */
252
- .modal-backdrop { animation: snap-in 80ms linear; }
253
-
254
- /* Tabs: instant — no fade, just swap */
255
- .tab-content[hidden] { display: none; } /* direct hide — no transition */
256
- ```
257
-
258
- ---
259
-
260
- ## Reduced Motion
261
-
262
- ```css
263
- @media (prefers-reduced-motion: reduce) {
264
- /* Remove all animations */
265
- *,
266
- *::before,
267
- *::after {
268
- animation-duration: 0.01ms !important;
269
- animation-iteration-count: 1 !important;
270
- transition-duration: 0.01ms !important;
271
- }
272
-
273
- /* EXCEPTION: Push mechanic is maintained */
274
- /* It's nearly instant at 60ms, and is tactile feedback — not decoration */
275
- .brutalist-pushable:active {
276
- transition-duration: 60ms !important;
277
- }
278
-
279
- /* Marquee: stop */
280
- .marquee__track {
281
- animation: none !important;
282
- }
283
- }
284
- ```
285
-
286
- The push mechanic (`60ms linear`) is preserved under reduced motion because it's functionally equivalent to instant feedback — it confirms the press, not decorates it.
1
+ # Motion — Neo-Brutalist UI
2
+
3
+ Neo-brutalist motion is mechanical, not fluid. Like physical switches and buttons, not flowing water.
4
+
5
+ ---
6
+
7
+ ## Principles
8
+
9
+ 1. **Mechanical**: movements are mechanical, not organic. Things snap into place, not glide.
10
+ 2. **Instant feedback**: transitions are short and direct. User clicks → thing happens. No delay, no anticipation.
11
+ 3. **Push mechanic**: the fundamental interaction — shadow disappears + translate equal to shadow offset. This is physical and satisfying.
12
+ 4. **No spring curves**: easing is minimal. `linear` or basic `ease`. No bouncy `cubic-bezier`. That's glassmorphism/editorial territory.
13
+ 5. **Zero blur motion**: no blur-in, no blur-out, no lens-style motion blur. Consistency with the no-blur principle.
14
+
15
+ ---
16
+
17
+ ## Timings
18
+
19
+ The fastest timings of all design skills. Brutalist doesn't waste time on animation.
20
+
21
+ ```css
22
+ --transition-push: 60ms linear; /* push mechanic — must feel instant */
23
+ --transition-fast: 80ms ease; /* hover, focus state changes */
24
+ --transition-base: 120ms ease; /* standard state changes (toggle, checkbox) */
25
+ --transition-slow: 200ms ease; /* content changes, entrances */
26
+ ```
27
+
28
+ ---
29
+
30
+ ## Core Mechanic — Push
31
+
32
+ The single most important interaction in this skill. Apply to every element that has a hard shadow.
33
+
34
+ ```css
35
+ /* The brutalist push — applied to buttons, interactive cards, any element with box-shadow */
36
+
37
+ .brutalist-pushable {
38
+ border: var(--border-thicker);
39
+ box-shadow: var(--shadow-md); /* 4px 4px 0 — the resting state */
40
+ transition:
41
+ box-shadow var(--transition-fast),
42
+ transform var(--transition-fast);
43
+ }
44
+
45
+ .brutalist-pushable:hover {
46
+ box-shadow: var(--shadow-lg); /* 6px 6px 0 — grows on hover */
47
+ }
48
+
49
+ .brutalist-pushable:active {
50
+ box-shadow: none; /* shadow completely gone */
51
+ transform: translate(4px, 4px); /* translate exactly equal to shadow-md offset */
52
+ transition:
53
+ box-shadow var(--transition-push),
54
+ transform var(--transition-push);
55
+ }
56
+ ```
57
+
58
+ Offset table — translate must match the resting shadow:
59
+
60
+ | Resting shadow | Active translate |
61
+ |---|---|
62
+ | `--shadow-sm` (2px 2px) | `translate(2px, 2px)` |
63
+ | `--shadow-md` (4px 4px) | `translate(4px, 4px)` |
64
+ | `--shadow-lg` (6px 6px) | `translate(6px, 6px)` |
65
+ | `--shadow-xl` (8px 8px) | `translate(8px, 8px)` |
66
+
67
+ Elements that get the push mechanic: all buttons, interactive cards, card-links, any element with `box-shadow`.
68
+
69
+ ---
70
+
71
+ ## Entrance Animations
72
+
73
+ ### Snap In (default)
74
+ No movement — just appear. This is brutalist: things exist, they don't float in.
75
+
76
+ ```css
77
+ @keyframes snap-in {
78
+ from { opacity: 0; }
79
+ to { opacity: 1; }
80
+ }
81
+
82
+ .enter-snap {
83
+ animation: snap-in 150ms linear forwards;
84
+ }
85
+ ```
86
+
87
+ ### Slide Down
88
+ For dropdowns and menus — minimal vertical movement.
89
+
90
+ ```css
91
+ @keyframes slide-down {
92
+ from {
93
+ opacity: 0;
94
+ transform: translateY(-10px);
95
+ }
96
+ to {
97
+ opacity: 1;
98
+ transform: translateY(0);
99
+ }
100
+ }
101
+
102
+ .enter-slide-down {
103
+ animation: slide-down 200ms ease forwards;
104
+ }
105
+ ```
106
+
107
+ ### Pop
108
+ For modals and tooltips — scale from slightly smaller.
109
+
110
+ ```css
111
+ @keyframes pop {
112
+ from {
113
+ opacity: 0;
114
+ transform: scale(0.92);
115
+ }
116
+ to {
117
+ opacity: 1;
118
+ transform: scale(1);
119
+ }
120
+ }
121
+
122
+ .enter-pop {
123
+ animation: pop 150ms ease forwards;
124
+ }
125
+ ```
126
+
127
+ ### Typewriter (decorative, use sparingly)
128
+ For code blocks and terminal-feel elements only.
129
+
130
+ ```css
131
+ /* Implementation via JavaScript character-by-character reveal */
132
+ /* CSS: set initial text to empty, add characters via JS at 30ms intervals */
133
+ /* Only for hero code blocks or onboarding terminal demos — never for body text */
134
+ ```
135
+
136
+ ---
137
+
138
+ ## Stagger
139
+
140
+ Very fast — barely perceptible. The entrance is about structure, not spectacle.
141
+
142
+ ```css
143
+ /* 30ms per item — faster than all other skills */
144
+ .stagger-1 { animation-delay: 0ms; }
145
+ .stagger-2 { animation-delay: 30ms; }
146
+ .stagger-3 { animation-delay: 60ms; }
147
+ .stagger-4 { animation-delay: 90ms; }
148
+ ```
149
+
150
+ Rules:
151
+ - Maximum 4 items in a stagger sequence
152
+ - Use `snap-in` as the animation (opacity only — no translate)
153
+ - Do not stagger on content inside tables
154
+ - Stagger on: card grids, feature lists, stat cards on initial page load
155
+
156
+ ---
157
+
158
+ ## Hover States
159
+
160
+ ```css
161
+ /* Cards */
162
+ .card:hover {
163
+ box-shadow: var(--shadow-lg); /* shadow grows: 4px → 6px */
164
+ transition: box-shadow 80ms ease;
165
+ }
166
+
167
+ /* Buttons: same shadow growth */
168
+ .btn-primary:hover {
169
+ box-shadow: var(--shadow-lg);
170
+ }
171
+
172
+ /* Table rows */
173
+ .table tbody tr:hover {
174
+ background: var(--bg-elevated);
175
+ transition: background 60ms ease;
176
+ }
177
+
178
+ /* Nav links: underline reveal */
179
+ .nav-link:hover {
180
+ text-decoration: underline;
181
+ text-decoration-thickness: 2px;
182
+ text-underline-offset: 4px;
183
+ /* Instant — no animation needed */
184
+ }
185
+
186
+ /* Images: NO hover transition */
187
+ /* Brutalist images don't do smooth zoom or overlay on hover */
188
+ ```
189
+
190
+ ---
191
+
192
+ ## Scroll Animations
193
+
194
+ Minimal. Apps: none by default. Websites: opacity only on viewport entry.
195
+
196
+ ### For websites (IntersectionObserver)
197
+
198
+ ```js
199
+ const observer = new IntersectionObserver(
200
+ (entries) => {
201
+ entries.forEach(entry => {
202
+ if (entry.isIntersecting) {
203
+ entry.target.classList.add('visible');
204
+ observer.unobserve(entry.target); // only once
205
+ }
206
+ });
207
+ },
208
+ { threshold: 0.15 }
209
+ );
210
+
211
+ document.querySelectorAll('[data-animate]').forEach(el => observer.observe(el));
212
+ ```
213
+
214
+ ```css
215
+ [data-animate] {
216
+ opacity: 0;
217
+ transition: opacity 200ms ease;
218
+ }
219
+
220
+ [data-animate].visible {
221
+ opacity: 1;
222
+ }
223
+ ```
224
+
225
+ No `translateY`, no scale — **opacity only**. Brutalist content doesn't slide in.
226
+
227
+ ### Marquee (continuous)
228
+
229
+ Only the `.marquee` component. CSS animation, never applied to anything else.
230
+
231
+ ```css
232
+ @keyframes marquee {
233
+ from { transform: translateX(0); }
234
+ to { transform: translateX(-50%); }
235
+ }
236
+ ```
237
+
238
+ ---
239
+
240
+ ## Page Transitions
241
+
242
+ ```css
243
+ /* App content area: near-instant */
244
+ .content-area--transitioning {
245
+ animation: snap-in 100ms linear;
246
+ }
247
+
248
+ /* Modal: pop entrance */
249
+ .modal { animation: pop 150ms ease; }
250
+
251
+ /* Backdrop: instant */
252
+ .modal-backdrop { animation: snap-in 80ms linear; }
253
+
254
+ /* Tabs: instant — no fade, just swap */
255
+ .tab-content[hidden] { display: none; } /* direct hide — no transition */
256
+ ```
257
+
258
+ ---
259
+
260
+ ## Reduced Motion
261
+
262
+ ```css
263
+ @media (prefers-reduced-motion: reduce) {
264
+ /* Remove all animations */
265
+ *,
266
+ *::before,
267
+ *::after {
268
+ animation-duration: 0.01ms !important;
269
+ animation-iteration-count: 1 !important;
270
+ transition-duration: 0.01ms !important;
271
+ }
272
+
273
+ /* EXCEPTION: Push mechanic is maintained */
274
+ /* It's nearly instant at 60ms, and is tactile feedback — not decoration */
275
+ .brutalist-pushable:active {
276
+ transition-duration: 60ms !important;
277
+ }
278
+
279
+ /* Marquee: stop */
280
+ .marquee__track {
281
+ animation: none !important;
282
+ }
283
+ }
284
+ ```
285
+
286
+ The push mechanic (`60ms linear`) is preserved under reduced motion because it's functionally equivalent to instant feedback — it confirms the press, not decorates it.