File size: 55,456 Bytes
9c67f50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
/* aemon design system: the shell, type, layout containers and shared components. Loaded after style.css, so these
   are the authoritative definitions; page-specific blocks follow at the end. Tokens live at the top of style.css. */

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { background: var(--page); color: var(--ink); font-size: var(--t3); line-height: 1.55; letter-spacing: -.004em; -webkit-font-smoothing: antialiased; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.display, .pg-title { font-family: var(--serif); font-weight: 600; letter-spacing: -.018em; line-height: 1.12; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: var(--t2); }
.grow { flex: 1; }
.clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.kicker { font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.kicker.accent { color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }

/* ---------- Shell: one sidebar for the whole workspace ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100dvh; }
.shell > main { grid-column: 2; min-width: 0; max-width: none; margin: 0; padding: 0; }
.side { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 0; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  padding: 18px 12px 14px; background: var(--sunken); border-right: 1px solid var(--border); z-index: 20; scrollbar-width: thin; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 2px; }
.side-brand .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
.wordmark { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.wm-name { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.tagline { font-family: var(--serif); font-style: italic; font-size: 11.5px; color: var(--muted); line-height: 1.3; white-space: normal; overflow: visible; }
.side-new { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: var(--sh-1); transition: filter .15s var(--ease), transform .15s var(--ease); }
.side-new:hover { filter: brightness(1.08); }
.side-new:active { transform: translateY(1px); }
.side-new.active { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.snav { display: flex; flex-direction: column; gap: 1px; }
.snav a, .sbtn { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  background: none; border: 0; cursor: pointer; font-family: inherit; text-align: left; transition: background .12s, color .12s; }
.snav a svg, .sbtn svg { color: var(--muted); flex-shrink: 0; }
.snav a:hover, .sbtn:hover { background: var(--hover); color: var(--ink); }
.snav a.active { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border), var(--sh-1); }
.snav a.active svg { color: var(--accent); }
.side-group { display: flex; flex-direction: column; gap: 4px; }
.side-label { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 0 10px; margin: 0 0 2px; }
.side-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.side-recent a { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 13px; min-width: 0; }
.side-recent a:hover { background: var(--hover); color: var(--ink); }
.side-recent a.active { background: var(--accent-wash); color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--faint); }
.dot.s-done { background: var(--good); } .dot.s-partial { background: var(--warn); } .dot.s-running { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.side-running { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 9px 10px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  background: var(--accent-wash); color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; min-width: 0; }
.side-running > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.side-running .pulse { margin-top: 5px; }
.side-foot { display: flex; flex-direction: column; gap: 1px; padding-top: 10px; border-top: 1px solid var(--border); }
.side-foot-row { display: flex; gap: 2px; } .side-foot-row .sbtn:first-child { flex: 1; }
.sbtn.icon-only { padding: 7px 9px; }
.mbar, .side-scrim { display: none; }

/* Company switcher, inside the sidebar */
.side .ws-switcher { position: relative; }
.side .ws-current { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--raised);
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; box-shadow: var(--sh-1); text-align: left; }
.side .ws-current:hover { border-color: var(--border-strong); }
.side .ws-current .ws-chev { margin-left: auto; color: var(--muted); font-size: 11px; }
.side .ws-mark { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--on-accent); background: var(--accent); flex-shrink: 0; }
.side .ws-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; list-style: none; margin: 0; padding: 6px; background: var(--raised); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--sh-3); animation: rise .14s var(--ease); }
.side .ws-menu button, .side .ws-menu-foot a { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 7px; background: none; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.side .ws-menu button:hover, .side .ws-menu-foot a:hover { background: var(--hover); }
.side .ws-menu button span { flex: 1; text-align: left; }
.side .ws-menu-label { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 4px 8px 6px; }
.side .ws-menu-foot { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
.side .ws-menu-foot a { color: var(--ink-2); font-size: 13px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .shell > main { grid-column: 1; }
  .mbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 25; padding: 8px 12px; background: color-mix(in srgb, var(--page) 88%, transparent);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
  .mbar .brandline { display: flex; align-items: center; gap: 8px; flex: 1; font-family: var(--serif); font-size: 18px; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .2s var(--ease); box-shadow: var(--sh-3); }
  .menu-open .side { transform: none; }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(0, 0, 0, .45); border: 0; }
}

/* ---------- Page containers ---------- */
.pg { max-width: 1320px; margin: 0 auto; padding: 36px 40px 96px; display: flex; flex-direction: column; gap: 28px; }
.pg.narrow { max-width: 920px; }
.pg.read { max-width: 760px; }
@media (max-width: 900px) { .pg { padding: 20px 16px 72px; gap: 22px; } }
.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pg-head > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pg-title { font-size: var(--t7); margin: 0; }
.pg-sub { color: var(--ink-2); font-size: var(--t4); line-height: 1.55; max-width: 64ch; margin: 0; }
@media (max-width: 900px) { .pg-title { font-size: 30px; } .pg-sub { font-size: var(--t3); } }
.sec { display: flex; flex-direction: column; gap: 14px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head h2 { font-size: var(--t4); font-weight: 650; letter-spacing: -.01em; margin: 0; }
.sec-head .display { font-size: var(--t5); }
.sec-head a { font-size: var(--t2); font-weight: 550; text-decoration: none; }

/* ---------- Components ---------- */
.button, a.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border-strong); background: var(--raised); color: var(--ink);
  border-radius: 8px; padding: 7px 13px; font: inherit; font-size: 14px; font-weight: 550; line-height: 1.2; cursor: pointer; text-decoration: none; box-shadow: var(--sh-1);
  transition: background .12s, border-color .12s, filter .12s, transform .12s; white-space: nowrap; }
.button:hover:not(:disabled) { border-color: color-mix(in srgb, var(--ink) 28%, transparent); background: color-mix(in srgb, var(--raised) 92%, var(--ink)); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button.primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.08); border-color: var(--accent); }
.button.ghost { background: none; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.button.ghost:hover:not(:disabled) { background: var(--hover); color: var(--ink); border-color: transparent; }
.button.small { padding: 5px 10px; font-size: 13px; }
.button.big, .button.large { padding: 10px 18px; font-size: 15px; border-radius: 10px; }
.button.icon-only { padding: 6px 8px; }
.button.danger { background: var(--bad); border-color: var(--bad); color: #fff; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--sh-1); }
.panel.pad { padding: 22px 24px; }
.panel.hover { transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.panel.hover:hover { border-color: var(--border-strong); box-shadow: var(--sh-2); transform: translateY(-1px); }

.field { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); min-width: 0; transition: border-color .12s, box-shadow .12s; }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; padding: 8px 0; }

.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--sunken); border: 1px solid var(--border); }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 550; padding: 5px 11px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"], .seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--raised); color: var(--ink); box-shadow: var(--sh-1), inset 0 0 0 1px var(--border); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--sunken); color: var(--ink-2); font-size: 12px; font-weight: 550; white-space: nowrap; line-height: 1.5; }
.chip.accent { color: var(--accent-ink); background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.chip.good { color: var(--good); background: var(--good-wash); border-color: color-mix(in srgb, var(--good) 25%, transparent); }
.chip.warn { color: var(--warn); background: var(--warn-wash); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.chip.bad { color: var(--bad); background: var(--bad-wash); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.chip.sim { color: var(--simulated); background: color-mix(in srgb, var(--simulated) 10%, transparent); border-color: color-mix(in srgb, var(--simulated) 28%, transparent); }

.kstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.kstat { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border); }
.kstat:first-child { border-left: 0; }
.kstat b { font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kstat span { font-size: 13px; color: var(--muted); }

.empty-box { border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 28px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-box b { color: var(--ink); font-size: var(--t4); }

.skel { border-radius: var(--radius); background: linear-gradient(90deg, var(--sunken) 0%, var(--hover) 50%, var(--sunken) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.shell > main > section { animation: fade .18s var(--ease); }

.toast { box-shadow: var(--sh-3); border-radius: var(--radius-lg); }
#error { box-shadow: var(--sh-3); }

/* ---------- Company hero (Home and the company profile) ---------- */
.chero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 36px; align-items: center; }
.chero-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.chero-id { display: flex; align-items: center; gap: 14px; }
.chero-id .kicker { color: var(--brand, var(--accent-ink)); }
.chero-name { font-size: 52px; margin: 4px 0 0; }
.chero-legal { margin: -6px 0 0; }
.chero-lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 54ch; margin: 0; }
.chero-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chero-chips a.chip { text-decoration: none; color: var(--ink-2); } .chero-chips a.chip:hover { color: var(--ink); border-color: var(--border-strong); }
.chero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.chero-media { position: relative; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chero-media img, .chero-pattern { width: 100%; aspect-ratio: 16 / 10; max-height: 330px; object-fit: cover; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--sh-2); display: block; background: var(--sunken); }
.chero-pattern { background: radial-gradient(120% 90% at 80% 10%, color-mix(in srgb, var(--brand, var(--accent)) 35%, transparent), transparent 60%), var(--raised); }
.chero-tag { position: absolute; left: 12px; top: 12px; backdrop-filter: blur(6px); background: color-mix(in srgb, var(--page) 70%, transparent); }
.chero-media figcaption .credits { margin: 0; font-size: 11.5px; color: var(--faint); line-height: 1.45; }
.chero-media figcaption .credits a { color: var(--muted); }
.model-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.model-pill .dot { background: var(--faint); } .model-pill.ok .dot { background: var(--good); box-shadow: 0 0 0 3px var(--good-wash); } .model-pill.off .dot { background: var(--bad); }
@media (max-width: 1080px) { .chero { grid-template-columns: 1fr; gap: 22px; } .chero-media { order: -1; } .chero-media img, .chero-pattern { max-height: 220px; aspect-ratio: 21 / 9; } }
@media (max-width: 600px) { .chero-name { font-size: 36px; } .chero-lede { font-size: 16px; } .chero-actions .button.big { width: 100%; } }

/* ---------- Home ---------- */
.running-strip { display: flex; align-items: center; gap: 14px; border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); background: var(--accent-wash); }
.running-strip > div { display: flex; flex-direction: column; min-width: 0; flex: 1; } .running-strip a { color: var(--ink); text-decoration: none; }
.kstat-date { font-size: 19px !important; padding-top: 5px; }
.home2-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.home2-side { display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 1080px) { .home2-grid { grid-template-columns: 1fr; } }
.inv-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.inv-row2 { position: relative; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.inv-row2:hover { border-color: var(--border-strong); box-shadow: var(--sh-2); transform: translateY(-1px); }
.inv-hit { position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.inv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-links { position: relative; z-index: 1; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.inv-row2:hover .inv-links, .inv-row2:focus-within .inv-links { opacity: 1; }
@media (hover: none) { .inv-links { opacity: 1; } }
.inv-q2 { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.inv-prev { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.q-card { width: 100%; display: flex; align-items: center; gap: 14px; justify-content: space-between; text-align: left; padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--raised), var(--surface)); color: var(--ink); font: inherit; font-family: var(--serif); font-size: 16px; line-height: 1.4; cursor: pointer;
  transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.q-card svg { color: var(--muted); flex-shrink: 0; transition: transform .15s var(--ease), color .15s; }
.q-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--sh-2); transform: translateY(-1px); }
.q-card:hover svg { color: var(--accent); transform: translateX(2px); }
.trust ul { margin: 10px 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.trust li { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; padding-left: 14px; border-left: 2px solid var(--border-strong); }
.trust li b { color: var(--ink); font-weight: 600; display: block; }
.trust a { text-decoration: none; }

/* ---------- Investigate: one focused question ---------- */
.inv-page { min-width: 0; }
.inv-page:not(.open) { max-width: 980px; margin: 0 auto; padding: 56px 40px 96px; }
.inv-page.open { max-width: 1440px; margin: 0 auto; padding: 28px 36px 96px; }
@media (max-width: 900px) { .inv-page:not(.open), .inv-page.open { padding: 20px 16px 72px; } }
.setup { display: flex; flex-direction: column; gap: 30px; }
.setup-head { display: flex; flex-direction: column; gap: 12px; }
.setup-title { font-size: 44px; margin: 0; }
@media (max-width: 600px) { .setup-title { font-size: 30px; } }
.ask { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); box-shadow: var(--sh-2);
  transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.ask:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), var(--sh-2); }
.ask-ctx { display: flex; gap: 8px; align-items: center; padding: 16px 20px 0; }
.ask textarea { border: 0; outline: 0; resize: none; background: none; color: var(--ink); font-family: var(--serif); font-size: 22px; line-height: 1.45; padding: 10px 20px 8px; min-height: 108px; width: 100%; }
.ask textarea::placeholder { color: var(--faint); }
.ask-scenario { padding: 12px 20px 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ask-scenario p:first-of-type { font-family: var(--serif); font-size: 20px; margin: 0; line-height: 1.4; }
.ask-scenario p { margin: 0; }
.ask-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 16px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--sunken) 55%, var(--surface)); flex-wrap: wrap; }
.ask-bar .attach-row, .ask-bar > div:first-child { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ask-opt.on { background: var(--hover); color: var(--ink); }
.ask-line { margin: 0; padding: 8px 18px 12px; background: color-mix(in srgb, var(--sunken) 55%, var(--surface)); }
.ask-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; padding: 18px 20px 20px; border-top: 1px solid var(--border); animation: rise .15s var(--ease); }
@media (max-width: 760px) { .ask-options { grid-template-columns: 1fr; } }
.opt { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; min-width: 0; }
.opt-label { font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.opt-help { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.opt .row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip.tiny { font-size: 10.5px; padding: 0 6px; margin-left: 4px; }
.ask .notice { margin: 0 16px 14px; }
.tpl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tpl { width: 100%; height: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 15px 16px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.45; cursor: pointer; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.tpl svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.tpl:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.tpl.on { border-color: var(--accent); background: var(--accent-wash); }
.tpl.sim svg { color: var(--simulated); } .tpl.sim.on { border-color: var(--simulated); background: color-mix(in srgb, var(--simulated) 9%, transparent); }
.scen { border: 1px solid var(--border); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--simulated) 3%, var(--surface)); }
.scen summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; }
.scen summary::-webkit-details-marker { display: none; }
.scen summary > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.scen summary::after { content: '›'; color: var(--muted); font-size: 20px; transition: transform .15s; }
.scen[open] summary::after { transform: rotate(90deg); }
.scen .tpl-grid { padding: 0 16px 16px; }
.how-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; counter-reset: s; }
.how-strip li { background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); counter-increment: s; }
.how-strip li b { color: var(--ink); font-size: 15px; } .how-strip li b::before { content: counter(s) '  '; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .how-strip { grid-template-columns: 1fr; } }

/* ---------- Investigations library ---------- */
.ilib-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1000px) { .ilib-body { grid-template-columns: 1fr; } .ilib-cols { flex-direction: row !important; flex-wrap: wrap; } .ilib-label, .ilib-hint { width: 100%; } }
.ilib-cols { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px; }
.ilib-cols > button { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.ilib-cols > button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ilib-cols > button b { font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.ilib-cols > button svg { color: var(--muted); }
.ilib-cols > button:hover { background: var(--hover); color: var(--ink); }
.ilib-cols > button[aria-current="true"] { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.ilib-cols > button[aria-current="true"] svg { color: var(--accent); }
.ilib-label { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-right: 2px; }
.ilib-hint { padding: 0 10px; margin: 0; }
.ilib-name input { width: 100%; border: 1px solid var(--accent); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; padding: 6px 10px; outline: 0; }
.ilib-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ilib-project { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ilib-project h2 { font-size: 24px; margin: 2px 0 0; }
.ilib-project .row { display: flex; gap: 6px; flex-wrap: wrap; }
.ilib-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ilib-search { flex: 1 1 280px; max-width: 420px; }
.ilib-list, .ilib-cards { list-style: none; margin: 0; padding: 0; }
.ilib-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.ilib-list .ilib-item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--border); transition: background .12s; }
.ilib-list .ilib-item:first-child { border-top: 0; }
.ilib-list .ilib-item:hover { background: var(--hover); }
.ilib-item.sel { background: var(--accent-wash) !important; }
.ilib-pick, .ilib-acts { position: relative; z-index: 1; }
.ilib-pick input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.ilib-q { margin: 0; font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.35; display: flex; gap: 6px; align-items: baseline; }
.ilib-q svg { color: var(--accent); flex-shrink: 0; }
.ilib-prev { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ilib-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 300px; }
.ilib-acts { display: flex; gap: 2px; align-items: center; }
.ilib-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ilib-cards .ilib-item { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.ilib-cards .ilib-item:hover { border-color: var(--border-strong); box-shadow: var(--sh-2); transform: translateY(-1px); }
.ilib-cards .ilib-pick { position: absolute; top: 14px; right: 14px; }
.ilib-cards .ilib-q { font-family: var(--serif); font-size: 18px; padding-right: 26px; }
.ilib-cards .ilib-prev { -webkit-line-clamp: 3; }
.ilib-cards .ilib-meta { justify-content: flex-start; max-width: none; order: -1; }
.ilib-cards .ilib-acts { margin-top: auto; }
@media (max-width: 760px) { .ilib-list .ilib-item { grid-template-columns: 24px minmax(0, 1fr); } .ilib-list .ilib-meta, .ilib-list .ilib-acts { grid-column: 2; justify-content: flex-start; } }
.rmenu { position: relative; }
.rmenu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 210px; padding: 5px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--raised); box-shadow: var(--sh-3); display: flex; flex-direction: column; animation: rise .12s var(--ease); }
.rmenu-pop button { display: flex; gap: 9px; align-items: center; padding: 7px 9px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; }
.rmenu-pop button:hover { background: var(--hover); }
.rmenu-pop button.danger { color: var(--bad); }
.compare-bar { position: fixed; left: calc(var(--side-w) + 50%); transform: translateX(calc(-50% - var(--side-w) / 2)); bottom: 22px; z-index: 30; display: flex; gap: 10px; align-items: center;
  padding: 10px 12px 10px 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--raised); box-shadow: var(--sh-3); font-size: 14px; animation: rise .15s var(--ease); }
@media (max-width: 900px) { .compare-bar { left: 50%; transform: translateX(-50%); width: calc(100% - 24px); border-radius: var(--radius-lg); flex-wrap: wrap; } }
.nowrap { white-space: nowrap; }

/* ---------- Compare ---------- */
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 900px) { .cmp-grid { grid-template-columns: 1fr; } }
.cmp-col { display: flex; flex-direction: column; gap: 12px; }
.cmp-col .row { display: flex; gap: 6px; }
.cmp-q { font-size: 24px; margin: 0; }
.cmp-dl { margin: 6px 0 0; display: flex; flex-direction: column; }
.cmp-dl > div { padding: 12px 0; border-top: 1px solid var(--border); }
.cmp-dl dt { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cmp-dl dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- One investigation: header and its three views ---------- */
.ihead { display: flex; flex-direction: column; gap: 8px; }
.ihead-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ihead-back { color: var(--muted); text-decoration: none; font-weight: 550; } .ihead-back:hover { color: var(--ink); }
.ihead-q { font-size: 26px; margin: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.itabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
.itabs a, .itabs button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 550;
  text-decoration: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .12s, border-color .12s; }
.itabs a:hover, .itabs button:hover { color: var(--ink); }
.itabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.itabs [aria-selected="true"] svg { color: var(--accent); }
.itab-n { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--sunken); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; margin-left: 2px; }

/* ---------- Reasoning map view: the whole workspace below the header ---------- */
.mapv { height: 100dvh; display: flex; flex-direction: column; gap: 12px; padding: 20px 28px 20px; min-width: 0; }
@media (max-width: 900px) { .mapv { height: calc(100dvh - 53px); padding: 12px 12px 12px; } .ihead-q { font-size: 20px; } }
.mapv .rmap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.mapv .rcanvas, .mapv .rtimeline, .mapv .routline { flex: 1; min-height: 0; height: auto; }
.mapv .rtimeline, .mapv .routline { overflow: auto; }
.mapv .rnote { display: none; }
.mapv > .rcanvas.skel { flex: 1; }
.rbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rsearch { flex: 0 1 300px; }
.rsearch input { padding: 6px 0; font-size: 13px; }
.rlevel { font-size: 12px; color: var(--faint); white-space: nowrap; }
.rzoomg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; background: var(--raised); box-shadow: var(--sh-1); }
.rzoomg button { border: 0; background: none; color: var(--ink); font: inherit; font-size: 13px; font-weight: 550; padding: 5px 11px; cursor: pointer; border-left: 1px solid var(--border); }
.rzoomg button:first-child { border-left: 0; } .rzoomg button:hover { background: var(--hover); }
.button.on { background: var(--accent-wash); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.rpop { position: relative; }
.rpop-panel { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 8px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--raised); box-shadow: var(--sh-3);
  display: flex; flex-direction: column; gap: 2px; animation: rise .12s var(--ease); }
.rpop-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.rpop-row:hover { background: var(--hover); }
.rpop-row input { accent-color: var(--accent); }
.rpop-row .ln { width: 22px; flex-shrink: 0; }
.rpop-panel > .button { margin-top: 4px; align-self: flex-start; }
.rcanvas { border-radius: var(--radius-lg); border: 1px solid var(--border); background-color: var(--sunken); }
@media (max-width: 760px) { .rlevel, .rbar .button.small:last-child { display: none; } .rsearch { flex: 1 1 100%; order: 5; } }
/* Overview cards: larger type than before, so the fitted map reads without zooming */
.rnode:not(.lv0):not(.lv2) .rnode-title { font-size: 15px; line-height: 1.35; }
.rnode:not(.lv0):not(.lv2) .rnode-sub { font-size: 13px; line-height: 1.4; }
.rnode:not(.lv0):not(.lv2) .rnode-kind { font-size: 10.5px; }
.rnode:not(.lv0):not(.lv2) .rnode-tally { font-size: 12px; }
.r-question:not(.lv0):not(.lv2) .rnode-title, .r-recommendation:not(.lv0):not(.lv2) .rnode-title { font-size: 16px; -webkit-line-clamp: 4; }
.r-hypothesis:not(.lv0):not(.lv2) .rnode-title { -webkit-line-clamp: 3; }
.r-group:not(.lv0):not(.lv2) .rnode-title { font-size: 13.5px; }
.lvdots { display: inline-flex; gap: 3px; margin-right: 7px; vertical-align: middle; }
.lvdots i { width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); }
.lvdots.l0 i:nth-child(1), .lvdots.l1 i:nth-child(-n+2), .lvdots.l2 i { background: var(--accent); }
.rsearch { flex: 0 1 260px; }
/* Dark theme: the question and the recommendation stay prominent without turning into white blocks */
:root[data-theme="dark"] .r-question .rnode-body, :root[data-theme="dark"] .r-recommendation .rnode-body {
  background: linear-gradient(180deg, #1c2236, #161b2a); color: var(--ink); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
:root[data-theme="dark"] .r-question .rnode-kind, :root[data-theme="dark"] .r-recommendation .rnode-kind { color: var(--accent-ink); }
:root[data-theme="dark"] .r-question .rnode-sub, :root[data-theme="dark"] .r-question .rd-text, :root[data-theme="dark"] .r-recommendation .rd-text { color: var(--ink-2); }
:root[data-theme="dark"] .r-question .rd-label, :root[data-theme="dark"] .r-recommendation .rd-label { color: var(--muted); }
:root[data-theme="dark"] .r-recommendation .rnode-body { border-color: color-mix(in srgb, var(--good) 45%, transparent); background: linear-gradient(180deg, #17261f, #131c18); }
:root[data-theme="dark"] .r-recommendation .rnode-kind { color: var(--good); }
.mapv, .shell > main { width: 100%; }
.rbar { flex-wrap: nowrap; }
.rsearch { flex: 0 1 240px; min-width: 140px; }
@media (max-width: 1500px) { .rgo span { display: none; } }
@media (max-width: 1100px) { .rbar { flex-wrap: wrap; } }

/* ---------- Report: executive deliverable ---------- */
.result.report { display: flex; flex-direction: column; gap: 18px; max-width: none; }
.result-head.ihead .ihead-q { font-size: 32px; -webkit-line-clamp: 3; }
.result-head .result-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.result-head .result-actions .status-chip { border-radius: 999px; }
.rp-conclusion { font-size: 23px !important; line-height: 1.45 !important; max-width: 60ch; }
/* Why / uncertain / next: stacked rows with the label beside, never three narrow columns */
.rp-three { display: flex !important; flex-direction: column; gap: 0 !important; border-top: 1px solid var(--border); }
.rp-three > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.rp-three > div > h3 { margin: 2px 0 0; font-size: 11.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rp-three > div > :not(h3) { grid-column: 2; }
@media (max-width: 700px) { .rp-three > div { grid-template-columns: 1fr; gap: 4px; } .rp-three > div > :not(h3) { grid-column: 1; } .result-head.ihead .ihead-q { font-size: 24px; } }
.rp-aside { position: sticky; top: 20px; }

/* ---------- Methodology ---------- */
.proc { display: flex; flex-direction: column; gap: 14px; }
.proc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; position: relative; }
.proc-steps::before { content: ''; position: absolute; left: 4%; right: 4%; top: 27px; height: 2px; background: var(--border); z-index: 0; }
.proc-steps button { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 6px 12px; border: 0; background: none; color: var(--ink-2); font: inherit; cursor: pointer; text-align: center; border-radius: var(--radius); }
.proc-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--border-strong); color: var(--muted); transition: all .15s var(--ease); box-shadow: 0 0 0 5px var(--page); }
.proc-t { display: flex; flex-direction: column; gap: 1px; font-size: 13px; line-height: 1.3; }
.proc-t b { font-weight: 600; color: var(--ink-2); }
.proc-steps button:hover .proc-n { border-color: var(--accent); color: var(--accent); }
.proc-steps button[aria-selected="true"] .proc-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.08); }
.proc-steps button[aria-selected="true"] .proc-t b { color: var(--ink); }
.proc-panel { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; animation: rise .18s var(--ease); }
.proc-main { display: flex; flex-direction: column; gap: 10px; }
.proc-main h2 { font-size: 30px; margin: 0; }
.proc-lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 62ch; }
.proc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 6px; }
.proc-cols h3, .proc-ex h3 { font-size: 11.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.proc-cols p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.proc-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.proc-tools code { font-size: 12.5px; padding: 3px 8px; border-radius: 6px; background: var(--sunken); border: 1px solid var(--border); color: var(--accent-ink); }
.proc-ex { border-left: 1px solid var(--border); padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.proc-ex-text { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink); margin: 0; }
.proc-ex a { text-decoration: none; color: var(--muted); } .proc-ex a:hover { color: var(--accent-ink); }
.proc-nav { display: flex; justify-content: space-between; }
@media (max-width: 1000px) {
  .proc-steps { grid-template-columns: repeat(7, 120px); overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .proc-steps::before { right: auto; width: 820px; }
  .proc-panel, .proc-cols { grid-template-columns: 1fr; } .proc-ex { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
}
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tech-grid article { display: flex; flex-direction: column; gap: 8px; }
.tech-grid article svg { color: var(--accent); }
.tech-grid h3 { margin: 0; font-size: 16px; }
.tech-grid p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.res { display: flex; flex-direction: column; gap: 8px; }
.res p { margin: 0; }
.res-big { font-family: var(--serif); font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.res.warnish { border-color: color-mix(in srgb, var(--warn) 30%, var(--border)); background: color-mix(in srgb, var(--warn) 4%, var(--surface)); }
.res-list { margin: 4px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.res-list b { color: var(--ink); }
.links-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.link-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); position: relative; height: 100%; }
.link-card svg { position: absolute; right: 18px; top: 20px; color: var(--muted); }
.link-card b { font-weight: 600; padding-right: 24px; }

/* ---------- About: five sections, one narrative ---------- */
.ab { max-width: 1200px; margin: 0 auto; padding: 72px 56px 120px; display: flex; flex-direction: column; gap: 120px; }
@media (max-width: 1100px) { .ab { padding: 48px 36px 96px; gap: 96px; } }
@media (max-width: 700px) { .ab { padding: 28px 18px 72px; gap: 72px; } }
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.ab-eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.ab-eyebrow i { font-style: normal; color: var(--faint); margin: 0 6px; }
.ab-h1 { font-size: 60px; line-height: 1.04; letter-spacing: -.028em; margin: 18px 0 0; max-width: 15ch; }
.ab-h2 { font-size: 38px; line-height: 1.1; letter-spacing: -.022em; margin: 0; }
@media (max-width: 700px) { .ab-h1 { font-size: 40px; } .ab-h2 { font-size: 29px; } }
.ab-lede { font-size: 18px; line-height: 1.62; color: var(--ink-2); max-width: 52ch; margin: 22px 0 0; }
.ab-sub { font-size: 14px; color: var(--muted); margin: 14px 0 0; max-width: 52ch; }
.ab-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.ab-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 14.5px; transition: color .15s, gap .15s var(--ease); }
.ab-link:hover { color: var(--accent-ink); gap: 9px; }
.ab-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; max-width: 720px; }
.ab-subhead { font-size: 16.5px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 60ch; }

/* Hero */
.ab-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; }
@media (max-width: 1100px) { .ab-hero { grid-template-columns: 1fr; gap: 40px; } .ab-hero .dia { max-width: 560px; } }
.dia { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.dia svg { width: 100%; height: auto; display: block; }
.dia-bg { stroke: var(--border); fill-opacity: 1; }
.dia-dotgrid { fill: var(--border-strong); }
.dia-line { fill: none; stroke: var(--border-strong); stroke-width: 1.4; stroke-dasharray: 340; stroke-dashoffset: 340; animation: dia-draw 1.1s var(--ease) forwards; }
.dia-line.thin { stroke-width: 1.1; }
.dia-line.hot { stroke: var(--accent); stroke-width: 1.6; }
.dia-line.faint { stroke-dasharray: 3 5; animation: dia-fade .8s var(--ease) forwards; opacity: 0; stroke-dashoffset: 0; }
@keyframes dia-draw { to { stroke-dashoffset: 0; } }
@keyframes dia-fade { to { opacity: .7; } }
.dia-node rect { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1; }
.dia-node text, .dia-ev text { font-family: Inter, system-ui, sans-serif; font-size: 12.5px; font-weight: 550; fill: var(--ink-2); text-anchor: middle; }
.dia-node.q rect { fill: var(--raised); stroke: color-mix(in srgb, var(--accent) 55%, transparent); }
.dia-node.q text { font-family: var(--serif); font-size: 14px; font-weight: 600; fill: var(--ink); }
.dia-node.h.fav rect { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.dia-node.h.fav text { fill: var(--ink); }
.dia-node.h.weak { opacity: .6; }
.dia-node.t rect { fill: color-mix(in srgb, var(--accent) 16%, var(--surface)); stroke: var(--accent); }
.dia-node.t text { fill: var(--ink); font-weight: 650; }
.dia-ev circle { fill: var(--surface); stroke-width: 1.2; }
.dia-ev text { font-size: 14px; font-weight: 700; }
.dia-ev.sp circle { stroke: var(--support); } .dia-ev.sp text { fill: var(--support); }
.dia-ev.sn circle { stroke: var(--against); } .dia-ev.sn text { fill: var(--against); }
.dia-ev.sz circle { stroke: var(--neutral); stroke-dasharray: 2 3; } .dia-ev.sz text { fill: var(--neutral); }
.dia-node, .dia-ev { animation: fade .5s var(--ease) both; }
.dia-ev { animation-delay: .5s; } .dia-node.t { animation-delay: .9s; }
.dia-cap { font-family: var(--serif); font-style: italic; font-size: 12px; fill: var(--faint); }
.dia figcaption { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--muted); padding-left: 4px; flex-wrap: wrap; }
.dia .lg { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid; font-weight: 700; font-size: 11px; margin-right: -8px; }
.dia .lg.p { color: var(--support); } .dia .lg.n { color: var(--against); } .dia .lg.z { color: var(--neutral); border-style: dashed; }

/* How it thinks: three steps on a fine line */
.ab-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; border-top: 1px solid var(--border); }
.ab-steps li { padding: 34px 32px 8px 0; display: flex; flex-direction: column; gap: 10px; position: relative; }
.ab-steps li + li { padding-left: 32px; border-left: 1px solid var(--border); }
.ab-steps li::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--page); }
.ab-steps li + li::before { left: -4px; }
.ab-glyph { width: 64px; height: 40px; fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; transition: stroke .2s; }
.ab-glyph .p { stroke: var(--support); } .ab-glyph .n { stroke: var(--against); } .ab-glyph .faint { stroke-dasharray: 2 4; }
.ab-steps li:hover .ab-glyph { stroke: var(--accent); }
.ab-num { font-size: 12px; font-weight: 650; letter-spacing: .12em; color: var(--accent-ink); font-variant-numeric: tabular-nums; margin-top: 8px; }
.ab-steps h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.ab-steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 34ch; }
@media (max-width: 800px) {
  .ab-steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--border); margin-left: 4px; }
  .ab-steps li, .ab-steps li + li { padding: 4px 0 34px 28px; border-left: 0; }
  .ab-steps li::before, .ab-steps li + li::before { top: 8px; left: -4px; }
}

/* What makes it different: one featured panel, three principles */
.ab-diff { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1000px) { .ab-diff { grid-template-columns: 1fr; } }
.ab-feature { padding: 36px 38px; border-radius: 16px; border: 1px solid var(--border); background:
  radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), var(--surface); display: flex; flex-direction: column; gap: 14px; }
.ab-feature h3 { font-size: 30px; line-height: 1.15; margin: 4px 0 6px; letter-spacing: -.018em; max-width: 24ch; }
.ab-feature p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 60ch; }
.ab-rules { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.ab-rules span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); padding: 6px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--page); }
.ab-rules svg { color: var(--support); }
.ab-note { font-size: 13.5px !important; color: var(--muted) !important; border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto !important; }
.ab-principles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.ab-principles li { display: flex; align-items: center; gap: 16px; padding: 24px 26px; border-top: 1px solid var(--border); flex: 1; transition: background .2s; }
.ab-principles li:first-child { border-top: 0; }
.ab-principles li:hover { background: var(--hover); }
.ab-pi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); background: var(--accent-wash); }
.ab-principles h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.ab-principles p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* Closing */
.ab-close { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 72px 32px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%); }
.ab-close h2 { font-size: 40px; line-height: 1.15; letter-spacing: -.022em; margin: 0; max-width: 22ch; }
.ab-close p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); max-width: 60ch; }
.ab-close .button { margin-top: 8px; }
@media (max-width: 700px) { .ab-close { padding: 48px 8px; } .ab-close h2 { font-size: 28px; } }
@media (max-width: 700px) { .ab-feature { padding: 24px 22px; } .ab-feature h3 { font-size: 25px; } .ab-principles li { padding: 18px 18px; } }

/* ---------- Who we are: the two people behind aemon ---------- */
.tm { max-width: 1160px; margin: 0 auto; padding: 88px 56px 120px; display: flex; flex-direction: column; gap: 56px; }
@media (max-width: 1100px) { .tm { padding: 48px 36px 96px; } }
@media (max-width: 700px) { .tm { padding: 28px 18px 72px; gap: 40px; } }
.tm-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.tm-h1 { font-size: 58px; line-height: 1.05; letter-spacing: -.028em; margin: 0; }
@media (max-width: 700px) { .tm-h1 { font-size: 38px; } }
.tm-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1180px) { .tm-people { grid-template-columns: 1fr; max-width: 640px; } }
.tm-person { display: grid; grid-template-columns: 210px minmax(0, 1fr); border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease); min-height: 262px; }
.tm-person:hover { border-color: color-mix(in srgb, var(--accent) 38%, var(--border)); transform: translateY(-3px); }
.tm-portrait { display: block; width: 100%; height: 100%; min-height: 262px; object-fit: cover; object-position: center 30%; border-right: 1px solid var(--border); background: #0c0d16; }
.tm-portrait.mono { position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(70% 60% at 30% 25%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%), var(--raised); }
.tm-portrait.mono svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: color-mix(in srgb, var(--accent) 28%, transparent); stroke-width: .6; }
.tm-portrait.mono b { position: relative; font-family: var(--serif); font-size: 56px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.tm-text { padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 6px; }
.tm-n { font-size: 12px; font-weight: 650; letter-spacing: .12em; color: var(--faint); font-variant-numeric: tabular-nums; margin-bottom: 26px; }
@media (max-width: 480px) { .tm-person { grid-template-columns: 1fr; } .tm-portrait { min-height: 0; height: auto; aspect-ratio: 4 / 3; border-right: 0; border-bottom: 1px solid var(--border); } .tm-portrait.mono { aspect-ratio: 4 / 3; } }
.tm-text h2 { font-size: 30px; margin: 2px 0 2px; letter-spacing: -.018em; }
.tm-text p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.ab-role { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.ab-plinks { display: flex; gap: 14px; margin-top: 10px; }
.ab-plinks a { display: inline-flex; gap: 5px; align-items: center; font-size: 13.5px; font-weight: 550; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .15s; }
.ab-plinks a:hover { color: var(--accent-ink); }
@media (min-width: 901px) { .tm { min-height: 100dvh; justify-content: center; padding-top: 56px; padding-bottom: 80px; } }