@jossuealcala/madre 1.1.2 → 1.1.4

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 (166) hide show
  1. package/CHANGELOG.en.md +40 -1
  2. package/CHANGELOG.md +40 -1
  3. package/README.en.md +3 -3
  4. package/README.md +3 -3
  5. package/SECURITY.md +11 -6
  6. package/TRADEMARKS.md +6 -2
  7. package/bin/madre.mjs +76 -11
  8. package/docs/REFERENCE.md +16 -10
  9. package/docs/SDK.md +36 -9
  10. package/docs/en/REFERENCE.md +12 -8
  11. package/docs/en/SDK.md +34 -8
  12. package/docs/en/training/README.md +1 -1
  13. package/docs/sdk/connector-module.mjs +1 -1
  14. package/docs/sdk/hello-module.mjs +39 -4
  15. package/docs/training/README.md +1 -1
  16. package/docs/training/train.sh +3 -0
  17. package/habilidades/explicamelo-facil/HABILIDAD.md +19 -0
  18. package/habilidades/hojas-de-calculo/HABILIDAD.md +18 -0
  19. package/habilidades/mensajes-a-clientes/HABILIDAD.md +19 -0
  20. package/habilidades/publicaciones-para-redes/HABILIDAD.md +19 -0
  21. package/habilidades/resumen-y-pendientes/HABILIDAD.md +18 -0
  22. package/habilidades/tu-pagina-paso-a-paso/HABILIDAD.md +19 -0
  23. package/package.json +7 -4
  24. package/public/activity.js +66 -22
  25. package/public/app.js +4947 -894
  26. package/public/assets/brand/OFL-SpaceGrotesk.txt +93 -0
  27. package/public/assets/brand/SpaceGrotesk-latin-ext.woff2 +0 -0
  28. package/public/assets/brand/SpaceGrotesk-latin.woff2 +0 -0
  29. package/public/assets/brand/madre-app-180.png +0 -0
  30. package/public/assets/brand/madre-app-192.png +0 -0
  31. package/public/assets/brand/madre-app-512.png +0 -0
  32. package/public/assets/brand/madre-app.svg +1 -1
  33. package/public/assets/brand/madre-favicon.svg +1 -1
  34. package/public/attribution.js +29 -19
  35. package/public/auto-open.js +102 -0
  36. package/public/brands.js +36 -19
  37. package/public/changes.js +63 -0
  38. package/public/en.js +1085 -102
  39. package/public/es.js +2940 -1656
  40. package/public/i18n.js +11 -0
  41. package/public/index.html +31 -27
  42. package/public/loader.js +322 -117
  43. package/public/macroverso.js +57 -355
  44. package/public/manual-content.js +69 -9
  45. package/public/manual.js +21 -6
  46. package/public/market-view.js +298 -84
  47. package/public/market.js +25 -2
  48. package/public/mcp-catalog.js +7 -2
  49. package/public/missions.js +169 -0
  50. package/public/news-scenes.js +292 -0
  51. package/public/nostromo-engine.js +935 -654
  52. package/public/notices.js +78 -0
  53. package/public/notifications.js +119 -0
  54. package/public/power.js +1 -1
  55. package/public/provider-marks.js +170 -0
  56. package/public/provider-pick.js +147 -0
  57. package/public/resay.js +4 -0
  58. package/public/review-ask.js +16 -13
  59. package/public/routing.js +29 -3
  60. package/public/salas-mac.css +467 -47
  61. package/public/salas-mac.html +8 -5
  62. package/public/salas-mac.js +805 -109
  63. package/public/salas.css +2 -2
  64. package/public/salas.html +2 -2
  65. package/public/salas.js +1 -1
  66. package/public/starters.js +128 -0
  67. package/public/styles.css +3036 -340
  68. package/public/subscription.js +303 -0
  69. package/public/terms-field.js +170 -0
  70. package/public/terms.js +117 -19
  71. package/public/tips.js +158 -0
  72. package/public/tour-chapters.js +88 -88
  73. package/public/tour.js +364 -46
  74. package/public/troubleshooting.js +313 -27
  75. package/public/welcome-scene.js +446 -0
  76. package/public/welcome.js +827 -282
  77. package/src/adapters/claude.mjs +2 -1
  78. package/src/adapters/codex.mjs +2 -1
  79. package/src/adapters/cursor.mjs +9 -6
  80. package/src/adapters/gemini-rest.mjs +236 -0
  81. package/src/adapters/gemini.mjs +13 -7
  82. package/src/adapters/grok.mjs +290 -0
  83. package/src/adapters/madre.mjs +71 -23
  84. package/src/adapters/opencode.mjs +15 -2
  85. package/src/adapters/process.mjs +14 -3
  86. package/src/adapters/steps.mjs +176 -0
  87. package/src/app-invite.mjs +90 -0
  88. package/src/auth-probe.mjs +32 -0
  89. package/src/billing-key.mjs +8 -0
  90. package/src/billing.mjs +317 -0
  91. package/src/bridge/policy.mjs +1 -1
  92. package/src/capabilities.mjs +46 -10
  93. package/src/chats.mjs +44 -2
  94. package/src/checkpoint.mjs +119 -1
  95. package/src/codex-route.mjs +113 -0
  96. package/src/commands.mjs +5 -2
  97. package/src/credentials.mjs +46 -8
  98. package/src/dataset.mjs +18 -7
  99. package/src/directives.mjs +1 -0
  100. package/src/event-store.mjs +25 -2
  101. package/src/extensions.mjs +5 -1
  102. package/src/ficha.mjs +158 -0
  103. package/src/files.mjs +36 -2
  104. package/src/image-studio.mjs +13 -3
  105. package/src/install-metrics.mjs +9 -3
  106. package/src/lease.mjs +6 -1
  107. package/src/looks.mjs +4 -1
  108. package/src/market-check.mjs +1 -1
  109. package/src/market-remote.mjs +135 -1
  110. package/src/mcp/image-server.mjs +59 -90
  111. package/src/mcp/memory-server.mjs +10 -0
  112. package/src/memory-tools.mjs +3 -0
  113. package/src/memory.mjs +29 -4
  114. package/src/models.mjs +21 -3
  115. package/src/modules/ahp.mjs +10 -4
  116. package/src/modules/bishop-exam.mjs +41 -12
  117. package/src/modules/bishop.mjs +2 -2
  118. package/src/modules/choices.mjs +12 -10
  119. package/src/modules/fetch-alone.mjs +7 -0
  120. package/src/modules/github.mjs +6 -2
  121. package/src/modules/helpers.mjs +23 -5
  122. package/src/modules/image-providers.mjs +281 -0
  123. package/src/modules/image-studio.mjs +106 -39
  124. package/src/modules/index.mjs +61 -12
  125. package/src/modules/intents-observe.mjs +3 -1
  126. package/src/modules/isolated.mjs +160 -0
  127. package/src/modules/ollama.mjs +35 -6
  128. package/src/modules/playwright.mjs +78 -20
  129. package/src/modules/reminders.mjs +42 -2
  130. package/src/modules/ripley.mjs +2 -1
  131. package/src/modules/run-alone.mjs +122 -0
  132. package/src/modules/runs.mjs +11 -8
  133. package/src/modules/sdk.mjs +10 -3
  134. package/src/notices-key.mjs +8 -0
  135. package/src/notices.mjs +185 -0
  136. package/src/ollama.mjs +57 -15
  137. package/src/opencode-health.mjs +1 -1
  138. package/src/outbound.mjs +124 -13
  139. package/src/quota-sources.mjs +148 -3
  140. package/src/review-ask.mjs +55 -31
  141. package/src/room/archivist.mjs +30 -5
  142. package/src/room/busy.mjs +16 -0
  143. package/src/room/changes.mjs +79 -0
  144. package/src/room/control.mjs +36 -6
  145. package/src/room/economy.mjs +1 -1
  146. package/src/room/guard.mjs +39 -2
  147. package/src/room/prompt.mjs +49 -6
  148. package/src/room/vectors.mjs +7 -1
  149. package/src/room.mjs +181 -49
  150. package/src/router.mjs +1 -1
  151. package/src/runs.mjs +39 -0
  152. package/src/runtime-detection.mjs +46 -6
  153. package/src/salas.mjs +181 -18
  154. package/src/server.mjs +1101 -118
  155. package/src/service.mjs +116 -0
  156. package/src/setup-trouble.mjs +20 -1
  157. package/src/setup.mjs +1 -1
  158. package/src/skill-check.mjs +269 -0
  159. package/src/skills-import.mjs +128 -0
  160. package/src/skills.mjs +502 -0
  161. package/src/terms.mjs +23 -5
  162. package/src/tour.mjs +31 -5
  163. package/src/updates.mjs +47 -4
  164. package/src/web-preview.mjs +181 -0
  165. package/src/whats-new.mjs +121 -1
  166. package/src/rumbo.mjs +0 -337
package/public/loader.js CHANGED
@@ -9,10 +9,15 @@
9
9
  // start and the end are known, `creep` moves the bar on its own towards a ceiling it never passes,
10
10
  // slower the closer it gets, and the end fills it.
11
11
 
12
- // MADRE's logo as the brandbook draws it (salas-mac.html, .brand-logo): the beat, then the word. Shared
13
- // by the windows that wear it in their head — the welcome, the chapters (2026-10-28).
14
- export const MADRE_LOGO = '<svg class="brand-logo" viewBox="-4.8 -4.8 377.1 49.6" aria-hidden="true"><g fill="none" stroke-linecap="round" stroke-linejoin="round"><g class="pulse" transform="translate(0 0) scale(2.5) translate(0 -2)"><path class="beat" d="M1 10H16L20 10L23.5 2L28 18L32 10L35 10L37 6L39 10H52" stroke-width="1.92" pathLength="100"/><circle class="beat-dot" cx="60" cy="10" r="3" stroke="none"/></g><g class="word" transform="translate(193.5 7)" stroke-width="4.8"><path d="M0 26V0L14 14.3L28 0V26"/><path transform="translate(36.5 0)" d="M0 26V7.8A7.8 7.8 0 0 1 7.8 0H17.2A7.8 7.8 0 0 1 25 7.8V26M0 15.6H25"/><path transform="translate(71.5 0)" d="M0 0H16A12 12 0 0 1 28 12V14A12 12 0 0 1 16 26H0Z"/><path transform="translate(110.5 0)" d="M0 26V0H20.85A7.15 7.15 0 0 1 28 7.15V7.15A7.15 7.15 0 0 1 20.85 14.3H0M15.12 14.3L28 26"/><path transform="translate(146 0)" d="M28 0H0V26H28M0 13H21"/></g></g></svg>';
15
- export const LOADER_MARK = '<svg viewBox="-2 -1 66 22" aria-hidden="true"><path class="madre-loader-trace" d="M1 10H16L20 10L23.5 2L28 18L32 10L35 10L37 6L39 10H52" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path class="madre-loader-beat" d="M1 10H16L20 10L23.5 2L28 18L32 10L35 10L37 6L39 10H52" pathLength="100" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><circle class="madre-loader-dot" cx="60" cy="10" r="3" fill="currentColor"/></svg>';
12
+ // MADRE's logo (2026-11-13, the author's rebranding): the M of one stroke, its dot beside it and not
13
+ // touching it, and «madre» in Space Grotesk bold (styles.css). The classes are the old pulse's (.pulse,
14
+ // .beat, .beat-dot, .word) so every drawing and state that styled it still does. Shared by the windows
15
+ // that wear it in their head — the welcome, the chapters, the license.
16
+ import { t } from './i18n.js';
17
+ import { BRANDS } from './brands.js';
18
+
19
+ export const MADRE_LOGO = '<svg class="brand-logo" viewBox="12 17.5 281.5 74" aria-hidden="true"><g class="pulse" fill="none" stroke-linecap="round" stroke-linejoin="round"><path class="beat" d="M20 82V42C20 21 41 21 46 39L50 52L54 39C59 21 80 21 80 42V60" stroke-width="14.5" pathLength="100"/><circle class="beat-dot" cx="80" cy="81" r="9.5" stroke="none"/></g><text class="word" x="116.7" y="71.4" font-size="62" letter-spacing="-2.17">madre</text></svg>';
20
+ export const LOADER_MARK = '<svg viewBox="10 16 82 76" aria-hidden="true"><path class="madre-loader-trace" d="M20 82V42C20 21 41 21 46 39L50 52L54 39C59 21 80 21 80 42V60" fill="none" stroke="currentColor" stroke-width="14.5" stroke-linecap="round" stroke-linejoin="round"/><path class="madre-loader-beat" d="M20 82V42C20 21 41 21 46 39L50 52L54 39C59 21 80 21 80 42V60" pathLength="100" fill="none" stroke="currentColor" stroke-width="14.5" stroke-linecap="round" stroke-linejoin="round"/><circle class="madre-loader-dot" cx="80" cy="81" r="9.5" fill="currentColor"/></svg>';
16
21
 
17
22
  const clamp = (value) => Math.max(0, Math.min(1, Number(value) || 0));
18
23
 
@@ -93,23 +98,97 @@ const make = (tag, className, text = null) => {
93
98
  if (text !== null) node.textContent = text;
94
99
  return node;
95
100
  };
96
- // THE OPENING (2026-10-28): before the first step, what MADRE is, said without words. The AIs a
97
- // person already uses come in as points of light, each in its own color, find each other with fine
98
- // lines and come together on one line that becomes MADRE's pulse: the beat, then the name. About five
99
- // seconds; a click or any key goes straight to the welcome, and a computer that asked for less motion
100
- // goes there without it. Drawn on a canvas, the points; the logo is MADRE's own drawing (loader.js),
101
- // moved by hand so the line passes each point at the moment it takes it in.
102
- const INTRO_HUES = {
103
- dark: ['#7fe3b6', '#f2a37c', '#93acff', '#ecece6', '#c8b5ff'],
104
- light: ['#1d9a68', '#cf6c40', '#4864d2', '#575a52', '#7a5ed2'],
101
+ // THE OPENING (2026-10-28; told as a story since 2026-11-11, the author: «it is beautiful, but it does
102
+ // not say what MADRE does — a reveal so clear that the person understands MADRE without thinking»).
103
+ // Four short beats, each with one line of words under the picture:
104
+ // 1 · YOUR AIs — the AIs a person already uses come in as points of light, each in its own colour and
105
+ // with its name, each drifting on its own.
106
+ // 2 · YOUR PROJECTS — three of the person's things appear below them (a shop, the invoices, a
107
+ // website); fine threads go from the AIs to them and small sparks travel along: work being done.
108
+ // 3 · ONE MEMORY — everything comes together: the AIs onto one line that becomes MADRE's pulse, the
109
+ // projects into its dot, which beats once: what they did is kept.
110
+ // 4 · MADRE — the name, and in one line what it is.
111
+ // About eight seconds; a click or any key goes straight to the welcome, and a computer that asked for
112
+ // less motion goes there without it. The picture is drawn on a canvas; the logo is MADRE's own
113
+ // drawing, moved by hand so the line passes each point at the moment it takes it in. MADRE's own style
114
+ // (brand kit): the phosphor is the only colour that means MADRE, nothing spins or glows like neon.
115
+ // The AIs MADRE works with, by their owners' official marks (brands.js, Lobe Icons, unaltered), in
116
+ // the order they stand: ChatGPT's Codex, Claude, Gemini, Grok, OpenCode and Cursor.
117
+ const INTRO_AGENTS = ['codex', 'claude', 'gemini', 'grok', 'opencode', 'cursor'];
118
+ // THE OPENING AS A MIX (2026-11-13, the author chose «Mezcla» among three sketches): each AI is a colour
119
+ // on its own, a soft field drifting apart from the others; they come together and blend into one calm
120
+ // field in MADRE's emerald, and out of it the M is written and its dot lands. Nothing else on the
121
+ // stage: no badges, no threads, no sparks. About seven seconds, two lines of words.
122
+ // Grander since the same day (the author: «impactful; people must see this is professional software
123
+ // that will help them do many things»): the colours fill the stage and come in as a vortex, their meeting
124
+ // is one emerald flash and a wave across the stage, the M comes large and settles as it is written, a
125
+ // light runs along it, the dot lands with its own ring, and under the name what it is for goes by.
126
+ // And, as the rebranding drew it (2026-11-13, claude-personal), the M is born as a heart: where the
127
+ // colours meet a point appears, two strokes leave it and draw a heart, the heart beats once and becomes
128
+ // the M, and then the M's own dot lands, beating twice.
129
+ const INTRO = {
130
+ near: 500, merged: 2900, field: 2500, fielded: 3600, impact: 2900,
131
+ seed: 2700, draw: 3000, drawn: 3750, heart: 3800, morph: 4200, morphed: 4850,
132
+ dot: 4850, sheen: 5150, word: 5400, hold: 11300, out: 650,
133
+ // One sentence at a time, on one line, each in step with the picture (2026-11-13, the author: only
134
+ // sentences that change, in the same place, saying what MADRE is).
135
+ story: [300, 2900, 5400, 7500, 9400],
136
+ };
137
+ // The heart and the M as two halves from the same point, each three curves, so one becomes the other.
138
+ // A classic heart, round lobes and sides (2026-11-13: the first one touched the logo's box at its left
139
+ // lobe and its top, and the box cut it flat there; see INTRO_VIEW).
140
+ const HEART_R = [[50, 33], [52.6, 28.6, 57.4, 24.5, 64, 24.5], [73.5, 24.5, 81, 32, 81, 41.6], [81, 54, 66, 67, 50, 81.4]];
141
+ const HEART_L = [[50, 33], [47.4, 28.6, 42.6, 24.5, 36, 24.5], [26.5, 24.5, 19, 32, 19, 41.6], [19, 54, 34, 67, 50, 81.4]];
142
+ const M_R = [[50, 52], [51.3, 47.7, 52.7, 43.3, 54, 39], [59, 21, 80, 21, 80, 42], [80, 48, 80, 54, 80, 60]];
143
+ const M_L = [[50, 52], [48.7, 47.7, 47.3, 43.3, 46, 39], [41, 21, 20, 21, 20, 42], [20, 55.3, 20, 68.7, 20, 82]];
144
+ const halfPath = (a, b, k) => {
145
+ const at = a.map((point, i) => point.map((value, j) => value + (b[i][j] - value) * k));
146
+ return `M${at[0].join(' ')}C${at[1].join(' ')}C${at[2].join(' ')}C${at[3].join(' ')}`;
105
147
  };
106
- const INTRO = { appear: 250, lines: 900, gather: 2300, gathered: 3300, draw: 2650, drawn: 3600, beat: 3550, word: 3850, hold: 5700, out: 650 };
107
- // The pulse is drawn at the centre, alone; when the name comes it glides left to make room for it.
108
- // The share of the logo's width between the pulse's centre and the whole logo's (loader.js viewBox).
109
- const PULSE_OFF_CENTRE = (183.75 - 80) / 377.1;
148
+ const easeIn = (x) => x * x * x;
110
149
  const easeInOut = (x) => (x < 0.5 ? 4 * x * x * x : 1 - ((-2 * x + 2) ** 3) / 2);
111
150
  const easeOut = (x) => 1 - (1 - x) ** 3;
151
+ const easeExpo = (x) => (x >= 1 ? 1 : 1 - 2 ** (-10 * x));
112
152
  const span = (now, from, to) => Math.max(0, Math.min(1, (now - from) / (to - from)));
153
+ // The opening's logo drawing has room all round (2026-11-13): MADRE_LOGO's own box ends where the M's
154
+ // stroke ends, and the heart, wider and taller than the M and swelling as it beats, was cut at its two
155
+ // lobes. The same centre (152.75, 54.5), the same size on the stage (the mark grows with the box).
156
+ const INTRO_VIEW = { x: 0, y: 5.5, w: 305.5, h: 98 };
157
+ const LOGO_VIEW_W = 281.5;
158
+ const VIEW_CENTRE = INTRO_VIEW.x + INTRO_VIEW.w / 2;
159
+ // The M's own centre (its stroke from 12.75 to 87.25, the dot to 89.5) and the heart's (50), each alone
160
+ // at the stage's centre.
161
+ const M_CENTRE = 51.1;
162
+
163
+ // A window that opens does not open with its × lit (2026-11-10). With nothing marked `autofocus`, the
164
+ // browser gives the first key the focus, and in most windows that is the ×: it opened red, as if
165
+ // pointed at (Connections, Add project…). When the focus lands on a ×, the window takes it itself;
166
+ // Tab still reaches the × first, and a window whose first control is a field keeps it there. Here
167
+ // because Home and the project both load this file.
168
+ const CLOSE_KEYS = '.x-close, .surface-mode.close';
169
+ {
170
+ const Dialog = globalThis.HTMLDialogElement;
171
+ const open = Dialog?.prototype?.showModal;
172
+ if (open && !Dialog.prototype.showModal.madreQuiet) {
173
+ Dialog.prototype.showModal = function showModal(...args) {
174
+ const done = open.apply(this, args);
175
+ const now = globalThis.document?.activeElement;
176
+ // Not only the ×: any key the browser lit on its own (2026-11-10, «Copy all» in what the project
177
+ // sends opened marked). A field keeps the focus; a key the page focuses itself after this does too.
178
+ if (now && now !== this && this.contains(now) && (now.matches?.(CLOSE_KEYS) || (!now.matches?.('input, textarea, select, [contenteditable="true"]') && !now.hasAttribute?.('autofocus')))) {
179
+ if (!this.hasAttribute('tabindex')) this.tabIndex = -1;
180
+ this.focus({ preventScroll: true });
181
+ }
182
+ return done;
183
+ };
184
+ Dialog.prototype.showModal.madreQuiet = true;
185
+ }
186
+ // A file picker put away with «Cancel» says `cancel`, and that event climbs to the window it sits
187
+ // in, which took it as its own and closed (2026-11-10: Modules shut when the Finder was cancelled).
188
+ globalThis.document?.addEventListener?.('cancel', (event) => {
189
+ if (event.target?.matches?.('input[type="file"]')) event.stopPropagation();
190
+ }, true);
191
+ }
113
192
 
114
193
  // The page is ready (2026-10-30): the ground put over it before its first frame (index.html,
115
194
  // salas-mac.html) fades out, the way a page arriving from another one does. Under an opening, it
@@ -126,28 +205,93 @@ export function bootDone() {
126
205
  let openingDone = false;
127
206
  export const openingPlayed = () => openingDone;
128
207
 
129
- export function playOpening(dialog, { skipLabel = 'Skip' } = {}) {
208
+ export function playOpening(dialog, { skipLabel = 'Skip', from = null } = {}) {
130
209
  if (globalThis.matchMedia?.('(prefers-reduced-motion: reduce)').matches) return Promise.resolve(false);
131
210
  openingDone = true;
132
211
  return new Promise((resolve) => {
133
212
  const light = document.documentElement.dataset.scheme === 'light';
134
- const hues = INTRO_HUES[light ? 'light' : 'dark'];
135
- // Only the picture is hidden from a screen reader: «Skip» inside it stays a key it can reach.
213
+ const brand = light ? '#10b981' : '#34d399'; // the logo's dot
214
+ // Two lines: what you have now, then what MADRE does with it.
215
+ // What MADRE is, one sentence at a time, each replacing the one before in the same place.
216
+ const lines = [
217
+ // What MADRE does, said plainly (2026-11-13, the author: «easier to understand»).
218
+ t('Claude, ChatGPT, Gemini… each one in its own app.'),
219
+ t('MADRE brings them into one chat.'),
220
+ t('You ask, and they work on your files.'),
221
+ t('And it remembers what they decide.'),
222
+ t('Your AIs, together.'),
223
+ ];
224
+ // Only the picture is hidden from a screen reader: the words and «Skip» stay for it.
136
225
  const stage = make('div', 'wl-intro');
137
226
  const sky = make('canvas', 'wl-intro-sky');
138
227
  sky.setAttribute('aria-hidden', 'true');
139
228
  const mark = make('div', 'wl-intro-mark');
140
229
  mark.setAttribute('aria-hidden', 'true');
141
230
  mark.innerHTML = MADRE_LOGO.replace('class="brand-logo"', 'class="wl-intro-logo"'); // trusted: our own SVG string
231
+ mark.querySelector('svg').setAttribute('viewBox', `${INTRO_VIEW.x} ${INTRO_VIEW.y} ${INTRO_VIEW.w} ${INTRO_VIEW.h}`);
232
+ mark.style.width = `calc(min(440px, 66vw) * ${(INTRO_VIEW.w / LOGO_VIEW_W).toFixed(5)})`;
233
+ const story = make('div', 'wl-intro-story');
234
+ story.setAttribute('aria-live', 'polite');
235
+ // Two lines on top of each other: the new one comes into focus as the one before leaves.
236
+ const shown = [make('p', 'wl-intro-line'), make('p', 'wl-intro-line')];
237
+ story.append(...shown);
238
+ let front = 0;
142
239
  const skip = make('button', 'wl-intro-skip', skipLabel);
143
240
  skip.type = 'button';
144
241
  skip.addEventListener('click', () => end(true));
145
- stage.append(sky, mark, skip);
242
+ stage.append(sky, mark, story, skip);
243
+ // Coming from the smoke of «Before you start», the stage does not fade in: it is already there.
244
+ const smoke = Array.isArray(from) && from.length === INTRO_AGENTS.length ? from : null;
245
+ if (smoke) stage.classList.add('continues');
146
246
  dialog.append(stage);
147
247
  dialog.classList.add('intro');
148
248
  const beat = mark.querySelector('.beat');
149
249
  const dot = mark.querySelector('.beat-dot');
150
250
  const word = mark.querySelector('.word');
251
+ beat.style.strokeDasharray = '100 200';
252
+ beat.style.strokeDashoffset = '100';
253
+ // A light that runs along the M once it is written: the same stroke, painted by a moving band.
254
+ const ns = 'http://www.w3.org/2000/svg';
255
+ const defs = document.createElementNS(ns, 'defs');
256
+ const band = document.createElementNS(ns, 'linearGradient');
257
+ band.id = 'wl-sheen';
258
+ band.setAttribute('gradientUnits', 'userSpaceOnUse');
259
+ band.setAttribute('y1', '0');
260
+ band.setAttribute('y2', '0');
261
+ for (const [offset, alpha] of [[0, 0], [0.5, light ? 0.55 : 0.75], [1, 0]]) {
262
+ const stop = document.createElementNS(ns, 'stop');
263
+ stop.setAttribute('offset', String(offset));
264
+ stop.setAttribute('stop-color', light ? '#ffffff' : '#ffffff');
265
+ stop.setAttribute('stop-opacity', String(alpha));
266
+ band.append(stop);
267
+ }
268
+ defs.append(band);
269
+ mark.querySelector('svg').prepend(defs);
270
+ const sheen = beat.cloneNode();
271
+ sheen.removeAttribute('class');
272
+ sheen.setAttribute('stroke', 'url(#wl-sheen)');
273
+ sheen.style.strokeDasharray = '';
274
+ sheen.style.opacity = '0';
275
+ beat.after(sheen);
276
+ // The heart: two halves from the point in the middle, drawn over the M's place; the M's own stroke
277
+ // shows once the heart has become it.
278
+ const halves = ['l', 'r'].map((side) => {
279
+ const half = document.createElementNS(ns, 'path');
280
+ half.setAttribute('class', `half half-${side}`);
281
+ half.setAttribute('pathLength', '100');
282
+ half.setAttribute('stroke-width', beat.getAttribute('stroke-width') || '14.5');
283
+ half.style.strokeDasharray = '100 300';
284
+ half.style.opacity = '0';
285
+ beat.before(half);
286
+ return half;
287
+ });
288
+ const seed = document.createElementNS(ns, 'circle');
289
+ seed.setAttribute('class', 'seed');
290
+ seed.setAttribute('cx', '50');
291
+ seed.setAttribute('cy', '36');
292
+ seed.setAttribute('r', '0');
293
+ beat.parentNode.append(seed);
294
+ beat.style.opacity = '0';
151
295
  const pen = sky.getContext('2d');
152
296
  let width = 0;
153
297
  let height = 0;
@@ -160,126 +304,187 @@ export function playOpening(dialog, { skipLabel = 'Skip' } = {}) {
160
304
  pen.setTransform(ratio, 0, 0, ratio, 0, 0);
161
305
  };
162
306
  fit();
163
- // Where on the pulse each AI lands, as a share of its line: before the rise, the peak, the
164
- // valley, the small step and the end.
165
- const lands = [0.06, 0.4, 0.55, 0.74, 0.96];
166
- const length = beat.getTotalLength();
167
- const landing = () => lands.map((share) => {
168
- const point = beat.getPointAtLength(share * length);
169
- const matrix = beat.getScreenCTM();
170
- const box = stage.getBoundingClientRect();
171
- return { x: matrix.a * point.x + matrix.c * point.y + matrix.e - box.left, y: matrix.b * point.x + matrix.d * point.y + matrix.f - box.top };
172
- });
173
- // The five AIs, each at its own depth on a slow orbit, and a fine dust that gives the dark depth.
174
- const agents = hues.map((hue, index) => ({ hue, angle: (index / hues.length) * Math.PI * 2 + 0.35 * Math.sin(index * 2.1), reach: 0.62 + 0.38 * ((index * 37) % 5) / 4, depth: 0.75 + ((index * 3) % 5) * 0.1 }));
175
- const dust = Array.from({ length: 46 }, (_, index) => ({ x: ((index * 73) % 97) / 97, y: ((index * 41) % 89) / 89, r: 0.4 + ((index * 7) % 5) * 0.18, a: 0.05 + ((index * 11) % 7) * 0.016, drift: 0.004 + ((index * 5) % 9) * 0.0012 }));
176
- const edges = [];
177
- for (let a = 0; a < agents.length; a += 1) for (let b = a + 1; b < agents.length; b += 1) edges.push([a, b]);
178
- const ink = (hex, alpha) => {
307
+ const rgba = (hex, alpha) => {
179
308
  const value = Number.parseInt(hex.slice(1), 16);
180
- return `rgba(${(value >> 16) & 255}, ${(value >> 8) & 255}, ${value & 255}, ${alpha})`;
309
+ return `rgba(${(value >> 16) & 255}, ${(value >> 8) & 255}, ${value & 255}, ${Math.max(0, Math.min(1, alpha))})`;
310
+ };
311
+ // Each AI's own colour (brands.js), as a field of light; the grey ones (Grok, Cursor) quieter, so
312
+ // the mix stays a mix of colours and not a wash of grey.
313
+ const fields = INTRO_AGENTS.map((id, index) => {
314
+ const hue = light ? BRANDS[id].colorLight : BRANDS[id].color;
315
+ const value = Number.parseInt(hue.slice(1), 16);
316
+ const r = (value >> 16) & 255;
317
+ const g = (value >> 8) & 255;
318
+ const b = value & 255;
319
+ const grey = Math.max(r, g, b) - Math.min(r, g, b) < 24;
320
+ return { hue, weight: grey ? 0.45 : 1, angle: (index / INTRO_AGENTS.length) * Math.PI * 2 - Math.PI / 2, phase: index * 1.3 };
321
+ });
322
+ // A colour on its way to another (both #rrggbb).
323
+ const mix = (from, to, k) => {
324
+ const a = Number.parseInt(from.slice(1), 16);
325
+ const b = Number.parseInt(to.slice(1), 16);
326
+ const channel = (shift) => Math.round(((a >> shift) & 255) + ((((b >> shift) & 255) - ((a >> shift) & 255)) * k));
327
+ return `#${((channel(16) << 16) | (channel(8) << 8) | channel(0)).toString(16).padStart(6, '0')}`;
328
+ };
329
+ const glow = (x, y, radius, hue, alpha) => {
330
+ if (alpha <= 0.002 || radius <= 0) return;
331
+ const fill = pen.createRadialGradient(x, y, 0, x, y, radius);
332
+ fill.addColorStop(0, rgba(hue, alpha));
333
+ fill.addColorStop(0.55, rgba(hue, alpha * 0.45));
334
+ fill.addColorStop(1, rgba(hue, 0));
335
+ pen.fillStyle = fill;
336
+ pen.beginPath();
337
+ pen.arc(x, y, radius, 0, Math.PI * 2);
338
+ pen.fill();
339
+ };
340
+ // Where the mark stands: the M alone at the centre, then the whole logo as the name comes in —
341
+ // centred by what is drawn (the M's left edge to the name's last letter), not by its box: the name
342
+ // runs a little past the box, and centred by the box the logo sat to the right of the words under it.
343
+ let inkCentre = null;
344
+ const centreOfInk = () => {
345
+ if (inkCentre !== null) return inkCentre;
346
+ try {
347
+ const box = word.getBBox();
348
+ if (box.width > 0) inkCentre = (12.75 + box.x + box.width) / 2;
349
+ } catch { /* not laid out yet */ }
350
+ return inkCentre ?? VIEW_CENTRE;
181
351
  };
182
- // Where the mark stands: the pulse alone at the centre, then the whole logo as the name comes in.
183
352
  const place = (time) => {
184
353
  const settle = easeInOut(span(time, INTRO.word - 300, INTRO.word + 900));
185
- const scale = 1.035 - 0.035 * easeOut(span(time, INTRO.gathered, INTRO.word + 900));
186
- mark.style.transform = `translate(calc(-50% + ${(PULSE_OFF_CENTRE * mark.clientWidth * (1 - settle)).toFixed(2)}px), -50%) scale(${scale.toFixed(4)})`;
354
+ const near = 0.24 * (1 - easeOut(span(time, INTRO.draw - 200, INTRO.word + 700)));
355
+ // The scale grows the drawing about the box's centre, so the shift grows with it: the heart and
356
+ // the M stay on the stage's centre line, the same line as the words under them.
357
+ const unit = (mark.clientWidth / INTRO_VIEW.w) * (1 + near);
358
+ const heartOrM = 50 + (M_CENTRE - 50) * span(time, INTRO.morph, INTRO.morphed);
359
+ const alone = (VIEW_CENTRE - heartOrM) * unit;
360
+ const whole = (VIEW_CENTRE - centreOfInk()) * unit;
361
+ mark.style.transform = `translate(calc(-50% + ${(whole + (alone - whole) * (1 - settle)).toFixed(2)}px), -50%) scale(${(1 + near).toFixed(4)})`;
187
362
  };
188
363
  place(0);
189
- let targets = landing();
364
+ // The M's centre on the stage, where the colours meet.
365
+ const centre = () => {
366
+ const box = beat.getBoundingClientRect();
367
+ const stageBox = stage.getBoundingClientRect();
368
+ return { x: box.left + box.width / 2 - stageBox.left, y: box.top + box.height / 2 - stageBox.top };
369
+ };
370
+ let meet = centre();
190
371
  let started = 0;
191
372
  let frame = 0;
192
373
  let done = false;
193
- const onResize = () => { fit(); targets = landing(); };
374
+ let line = -1;
375
+ const onResize = () => { fit(); meet = centre(); };
194
376
  globalThis.addEventListener('resize', onResize);
195
377
 
196
378
  function paint(now) {
197
379
  if (!started) started = now;
198
380
  const time = now - started;
199
381
  pen.clearRect(0, 0, width, height);
200
- const cx = width / 2;
201
- const cy = height * 0.48;
202
- const radius = Math.min(width, height) * 0.2;
203
- const gather = easeInOut(span(time, INTRO.gather, INTRO.gathered));
204
- const drawn = easeOut(span(time, INTRO.draw, INTRO.drawn));
205
382
  place(time);
206
- if (time < INTRO.drawn) targets = landing();
207
- // The dust drifts up, and goes when the AIs come together.
208
- const dustFade = 1 - span(time, INTRO.gather, INTRO.gather + 700);
209
- for (const speck of dust) {
210
- const y = ((speck.y - time * speck.drift * 0.001) % 1 + 1) % 1;
211
- pen.fillStyle = light ? `rgba(20, 24, 20, ${speck.a * 0.8 * dustFade})` : `rgba(235, 240, 230, ${speck.a * dustFade})`;
212
- pen.beginPath();
213
- pen.arc(speck.x * width, y * height, speck.r, 0, Math.PI * 2);
214
- pen.fill();
383
+ if (time < INTRO.word) meet = centre();
384
+ // The words under the picture: one line per moment, each coming in as the one before goes.
385
+ const at = INTRO.story.filter((from) => time >= from).length - 1;
386
+ if (at !== line) {
387
+ line = at;
388
+ const said = lines[at] ?? '';
389
+ const leaving = shown[front];
390
+ front = 1 - front;
391
+ const coming = shown[front];
392
+ leaving.classList.remove('in');
393
+ leaving.classList.add('out');
394
+ coming.classList.remove('out', 'in');
395
+ coming.replaceChildren(make('span', 'wl-intro-strong', said));
396
+ coming.classList.toggle('last', at === lines.length - 1);
397
+ void coming.offsetWidth;
398
+ coming.classList.add('in');
215
399
  }
216
- // Where each AI is: on its orbit, turning slowly, until it glides to its place on the pulse.
217
- const turn = time * 0.00011;
218
- const at = agents.map((agent, index) => {
219
- const angle = agent.angle + turn * agent.depth;
220
- const free = { x: cx + Math.cos(angle) * radius * agent.reach * 1.35, y: cy + Math.sin(angle) * radius * agent.reach * 0.82 };
221
- const target = targets[index];
222
- return { x: free.x + (target.x - free.x) * gather, y: free.y + (target.y - free.y) * gather };
223
- });
224
- // The lines between them: drawn one after another, gone as they come together.
225
- const linesFade = 1 - span(time, INTRO.gather, INTRO.gather + 500);
226
- edges.forEach(([a, b], index) => {
227
- const grow = easeOut(span(time, INTRO.lines + index * 70, INTRO.lines + index * 70 + 700));
228
- if (!grow || !linesFade) return;
229
- const from = at[a];
230
- const to = at[b];
231
- const gradient = pen.createLinearGradient(from.x, from.y, to.x, to.y);
232
- gradient.addColorStop(0, ink(agents[a].hue, (light ? 0.3 : 0.22) * linesFade));
233
- gradient.addColorStop(1, ink(agents[b].hue, (light ? 0.3 : 0.22) * linesFade));
234
- pen.strokeStyle = gradient;
235
- pen.lineWidth = 0.8;
400
+ // THE MIX: the fields drift apart, slowly turning; then they come in and blend over the M.
401
+ const reach = Math.min(width, height);
402
+ const appear = smoke ? 1 : easeOut(span(time, 0, 600));
403
+ // From the smoke: each sphere starts where it floated, as faint as it was, and condenses.
404
+ const takeUp = smoke ? easeInOut(span(time, 0, 1700)) : 1;
405
+ const together = easeInOut(span(time, INTRO.near, INTRO.merged));
406
+ const field = easeInOut(span(time, INTRO.field, INTRO.fielded));
407
+ // Screen on dark and plain paint on light: stacked, the colours stay colours and never go grey.
408
+ pen.globalCompositeOperation = light ? 'source-over' : 'screen';
409
+ const tint = easeInOut(span(time, INTRO.near + 900, INTRO.impact + 300));
410
+ // They come in as a vortex: the closer they are, the faster they turn.
411
+ const spin = time * 0.00009 + 2.6 * easeIn(together);
412
+ for (const one of fields) {
413
+ const turn = one.angle + spin;
414
+ // Apart, they fill the whole stage; together, they ring the M closely, not on one point.
415
+ const apart = reach * (0.44 * (1 - together) + 0.12);
416
+ const x = meet.x + Math.cos(turn) * apart * 1.4 + Math.sin(time * 0.0004 + one.phase) * reach * 0.025;
417
+ const y = meet.y + Math.sin(turn) * apart * 0.82 + Math.cos(time * 0.00033 + one.phase) * reach * 0.025;
418
+ const radius = reach * (0.42 + 0.02 * together);
419
+ // As they blend, each one turns into MADRE's colour: the mix is the green of the dot.
420
+ // On light, the field quiets more once it is MADRE's colour: the black M must stand out on it.
421
+ const alpha = (light ? 0.34 : 0.46) * (one.weight + (1 - one.weight) * tint) * appear * (1 - (light ? 0.6 : 0.35) * field);
422
+ const was = smoke?.[fields.indexOf(one)];
423
+ if (was && takeUp < 1) glow(was.x + (x - was.x) * takeUp, was.y + (y - was.y) * takeUp, was.r + (radius - was.r) * takeUp, mix(one.hue, brand, tint), was.alpha + (alpha - was.alpha) * takeUp);
424
+ else glow(x, y, radius, mix(one.hue, brand, tint), alpha);
425
+ }
426
+ glow(meet.x, meet.y, reach * (0.3 + 0.12 * field), brand, (light ? 0.07 : 0.16) * field);
427
+ // THE MEETING: one emerald flash over the whole stage, and a wave that crosses it.
428
+ const flash = span(time, INTRO.impact, INTRO.impact + 1300);
429
+ if (flash > 0 && flash < 1) {
430
+ const spread = Math.max(width, height) * (0.25 + 0.75 * easeOut(flash));
431
+ glow(meet.x, meet.y, spread, brand, (light ? 0.22 : 0.32) * Math.sin(Math.PI * Math.min(1, flash * 1.6)) * (1 - flash));
432
+ }
433
+ pen.globalCompositeOperation = 'source-over';
434
+ const wave = span(time, INTRO.impact + 60, INTRO.impact + 1700);
435
+ if (wave > 0 && wave < 1) {
436
+ pen.strokeStyle = rgba(brand, (light ? 0.35 : 0.45) * (1 - easeOut(wave)));
437
+ pen.lineWidth = 1.5 + 1.5 * (1 - wave);
236
438
  pen.beginPath();
237
- pen.moveTo(from.x, from.y);
238
- pen.lineTo(from.x + (to.x - from.x) * grow, from.y + (to.y - from.y) * grow);
439
+ pen.arc(meet.x, meet.y, 20 + easeOut(wave) * Math.hypot(width, height) * 0.55, 0, Math.PI * 2);
239
440
  pen.stroke();
441
+ }
442
+ // Out of the field: the point, the heart drawn from it, its beat, the heart becoming the M.
443
+ const seedIn = easeOut(span(time, INTRO.seed, INTRO.seed + 350));
444
+ const seedOut = span(time, INTRO.draw + 80, INTRO.draw + 360);
445
+ seed.setAttribute('r', String(Math.max(0, 8 * seedIn * (1 - seedOut) * (1 + 0.2 * Math.sin(time * 0.012) * (1 - seedOut)))));
446
+ const drawn = easeInOut(span(time, INTRO.draw, INTRO.drawn));
447
+ const morph = easeInOut(span(time, INTRO.morph, INTRO.morphed));
448
+ const beatAt = span(time, INTRO.heart, INTRO.heart + 380);
449
+ const swell = beatAt > 0 && beatAt < 1 ? 1 + 0.07 * Math.sin(beatAt * Math.PI) : 1;
450
+ const whole = time >= INTRO.morphed;
451
+ halves.forEach((half, index) => {
452
+ half.setAttribute('d', index ? halfPath(HEART_R, M_R, morph) : halfPath(HEART_L, M_L, morph));
453
+ half.style.strokeDashoffset = String(100 - 100 * drawn);
454
+ half.style.opacity = drawn > 0.004 && !whole ? '1' : '0';
455
+ half.setAttribute('transform', `translate(50 60) scale(${swell.toFixed(4)}) translate(-50 -60)`);
240
456
  });
241
- // The AIs: each comes in on its own, and goes into the line when the line reaches it.
242
- agents.forEach((agent, index) => {
243
- const shown = easeOut(span(time, INTRO.appear + index * 160, INTRO.appear + index * 160 + 600));
244
- const taken = drawn >= lands[index] ? span(time, INTRO.draw + lands[index] * (INTRO.drawn - INTRO.draw) * 0.7, INTRO.draw + lands[index] * (INTRO.drawn - INTRO.draw) * 0.7 + 260) : 0;
245
- const alpha = shown * (1 - taken);
246
- if (!alpha) return;
247
- const { x, y } = at[index];
248
- const size = (2.8 - 0.8 * gather) * (1 + 0.5 * taken);
249
- if (!light) {
250
- const glow = pen.createRadialGradient(x, y, 0, x, y, size * 9);
251
- glow.addColorStop(0, ink(agent.hue, 0.42 * alpha));
252
- glow.addColorStop(1, ink(agent.hue, 0));
253
- pen.fillStyle = glow;
254
- pen.beginPath();
255
- pen.arc(x, y, size * 9, 0, Math.PI * 2);
256
- pen.fill();
257
- }
258
- pen.fillStyle = ink(agent.hue, alpha);
259
- pen.beginPath();
260
- pen.arc(x, y, size, 0, Math.PI * 2);
261
- pen.fill();
262
- });
263
- // The pulse draws itself through them; then the beat, with one ring, and the name.
264
- beat.style.strokeDashoffset = String(100 - 100 * drawn);
265
- const beatIn = easeOut(span(time, INTRO.beat, INTRO.beat + 420));
266
- dot.style.opacity = String(beatIn);
267
- dot.style.transform = `scale(${0.4 + 0.6 * beatIn})`;
268
- const ring = span(time, INTRO.beat + 60, INTRO.beat + 1000);
457
+ beat.style.opacity = whole ? '1' : '0';
458
+ beat.style.strokeDashoffset = '0';
459
+ // Then the M's dot lands, beating twice like a heart.
460
+ const dotIn = easeOut(span(time, INTRO.dot, INTRO.dot + 380));
461
+ const lub = (x) => 1 + 0.3 * Math.exp(-((x / 70) ** 2)) + 0.17 * Math.exp(-(((x - 220) / 70) ** 2));
462
+ dot.style.opacity = String(dotIn);
463
+ // And it keeps beating while the words go on (2026-11-13, the author: «the dot must keep beating»),
464
+ // the same double beat every 2.6 s, a little softer after the first.
465
+ const since = time - INTRO.dot - 260;
466
+ const throb = since < 2600 ? lub(since) : 1 + 0.75 * (lub(since % 2600) - 1);
467
+ dot.style.transform = `scale(${(dotIn * throb).toFixed(4)})`;
468
+ // The light along the M, once, left to right.
469
+ const run = span(time, INTRO.sheen, INTRO.sheen + 900);
470
+ sheen.style.opacity = run > 0 && run < 1 ? '1' : '0';
471
+ band.setAttribute('x1', String(-30 + 150 * easeInOut(run)));
472
+ band.setAttribute('x2', String(10 + 150 * easeInOut(run)));
473
+ // The dot lands with a ring of its own.
474
+ const ring = span(time, INTRO.dot + 120, INTRO.dot + 1100);
269
475
  if (ring > 0 && ring < 1) {
270
476
  const box = dot.getBoundingClientRect();
271
477
  const stageBox = stage.getBoundingClientRect();
272
- const rx = box.left + box.width / 2 - stageBox.left;
273
- const ry = box.top + box.height / 2 - stageBox.top;
274
- pen.strokeStyle = ink(light ? '#2f8a1c' : '#9bff66', 0.42 * (1 - easeOut(ring)));
275
- pen.lineWidth = 1.2;
478
+ pen.strokeStyle = rgba(brand, 0.6 * (1 - easeOut(ring)));
479
+ pen.lineWidth = 1.5;
276
480
  pen.beginPath();
277
- pen.arc(rx, ry, box.width / 2 + easeOut(ring) * 46, 0, Math.PI * 2);
481
+ pen.arc(box.left + box.width / 2 - stageBox.left, box.top + box.height / 2 - stageBox.top, box.width / 2 + easeOut(ring) * 46, 0, Math.PI * 2);
278
482
  pen.stroke();
279
483
  }
280
- const wordIn = easeOut(span(time, INTRO.word, INTRO.word + 800));
281
- word.style.opacity = String(wordIn);
282
- word.style.transform = `translate(${193.5 + 10 * (1 - wordIn)}px, 7px)`;
484
+ const wordIn = easeExpo(span(time, INTRO.word, INTRO.word + 1200));
485
+ word.style.opacity = String(Math.min(1, wordIn * 1.4));
486
+ word.style.transform = `translateX(${(18 * (1 - wordIn)).toFixed(2)}px)`;
487
+ word.style.filter = wordIn < 1 ? `blur(${(4 * (1 - wordIn)).toFixed(2)}px)` : '';
283
488
  if (time >= INTRO.hold) return end(false);
284
489
  frame = requestAnimationFrame(paint);
285
490
  }
@@ -312,7 +517,7 @@ export function playOpening(dialog, { skipLabel = 'Skip' } = {}) {
312
517
  }
313
518
 
314
519
  // A PROJECT OPENS AGAIN (2026-10-28): its own opening, shorter than the welcome's and not the same — the
315
- // pulse is traced in one stroke, its dot beats once with a ring, and where the welcome writes MADRE the
520
+ // M is traced in one stroke (the pulse until the rebranding, 2026-11-13), its dot beats once with a ring, and where the welcome writes MADRE the
316
521
  // project writes its own name; then everything comes closer and fades, and the room is under it. About
317
522
  // a second and a half; a click or any key goes straight on, and less motion skips it (app.js).
318
523
  export function playProjectOpening(dialog, { name = '', skipLabel = 'Skip' } = {}) {
@@ -322,7 +527,7 @@ export function playProjectOpening(dialog, { name = '', skipLabel = 'Skip' } = {
322
527
  const mark = make('div', 'po-mark');
323
528
  mark.setAttribute('aria-hidden', 'true');
324
529
  const pulse = make('span', 'po-pulse');
325
- pulse.innerHTML = '<svg viewBox="-2 -12 76 44" aria-hidden="true"><path class="po-beat" d="M1 10H16L20 10L23.5 2L28 18L32 10L35 10L37 6L39 10H52" pathLength="100" fill="none" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round"/><circle class="po-ring" cx="60" cy="10" r="3" fill="none" stroke-width="1"/><circle class="po-dot" cx="60" cy="10" r="3"/></svg>'; // trusted: our own SVG string
530
+ pulse.innerHTML = '<svg viewBox="8 13 86 82" aria-hidden="true"><path class="po-beat" d="M20 82V42C20 21 41 21 46 39L50 52L54 39C59 21 80 21 80 42V60" pathLength="100" fill="none" stroke-width="14.5" stroke-linecap="round" stroke-linejoin="round"/><circle class="po-ring" cx="80" cy="81" r="9.5" fill="none" stroke-width="2"/><circle class="po-dot" cx="80" cy="81" r="9.5"/></svg>'; // trusted: our own SVG string
326
531
  mark.append(pulse, make('span', 'po-name', name));
327
532
  const skip = make('button', 'wl-intro-skip', skipLabel);
328
533
  skip.type = 'button';