@bwui/css 0.0.0-stage → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3593 @@
1
+ /* brickwork.marketing kit CSS (1.2.0, ADR-055, BR-BW-MKT-*): the marketing
2
+ * shell + the eight marketing components. Clean-room, hand-authored CSS over
3
+ * the --bw-* token layer only (BR-BW-MKT-003): no Tailwind utility classes,
4
+ * no reference-kit markup or structure. Logical CSS properties throughout
5
+ * (BR-BW-TOK-005), so RTL is handled by the `dir` attribute alone. Nothing
6
+ * here needs JavaScript (BR-BW-HTMX-001/BR-BW-MKT's no-JS floor): the
7
+ * marketing shell's header nav is plain links, and every component is
8
+ * static markup. Every animation composes the shared motion tokens and sits
9
+ * under the global prefers-reduced-motion floor already declared in
10
+ * index.css (BR-BW-TOK-009).
11
+ *
12
+ * Section rhythm: every direct section-level element uses
13
+ * --bw-component-section-gap-marketing (6rem) for its own block spacing,
14
+ * the marketing-scoped counterpart of the app shell's
15
+ * --bw-density-section-gap, so marketing pages read as generous, distinct
16
+ * blocks rather than a dense workspace (BR-BW-MKT-002 beautiful-by-default;
17
+ * raised from 4rem in icvoss/django-brickwork#510).
18
+ */
19
+
20
+ /* --- Marketing shell -------------------------------------------------------- */
21
+
22
+ .bw-marketing {
23
+ display: flex;
24
+ flex-direction: column;
25
+ min-height: 100vh;
26
+ }
27
+
28
+ /* --- Overlay mode (ADR-105, icvoss/django-brickwork#565) --------------------
29
+ * Opt-in via .bw-site-header--overlay on the marketing shell. Marketing-
30
+ * shell-only: docs must not use overlay. Default sticky solid header above
31
+ * is unchanged. Overlay is fixed so the first content band can paint under
32
+ * the chrome; package-owned clearance padding (below) keeps copy readable.
33
+ * No-JS floor: opaque surface + theme ink. Transparency / context ink only
34
+ * after data-bw-overlay-ready (marketing-overlay.js).
35
+ */
36
+ .bw-site-header--overlay {
37
+ position: fixed;
38
+ inset-inline: 0;
39
+ inset-block-start: 0;
40
+ inline-size: 100%;
41
+ }
42
+
43
+ /* Clearance on the marketing root (inherits to content), not on the header:
44
+ * custom properties do not cross to siblings. Value = logo row + header
45
+ * inner block padding so copy clears the fixed chrome. Local cascade vars
46
+ * always carry a fallback so they are not mistaken for tokens.css emits
47
+ * (test_frontend_css_only_references_emitted_token_names). */
48
+ .bw-marketing:has(> .bw-site-header--overlay) {
49
+ --bw-marketing-header-clearance: calc(
50
+ var(--bw-component-logo-height) + (var(--bw-space-3) * 2) + var(--bw-space-2)
51
+ );
52
+ }
53
+
54
+ .bw-marketing:has(> .bw-site-header--overlay) .bw-marketing__content > .bw-hero:first-child {
55
+ padding-block-start: calc(
56
+ var(
57
+ --bw-marketing-header-clearance,
58
+ calc(var(--bw-component-logo-height) + (var(--bw-space-3) * 2) + var(--bw-space-2))
59
+ ) + var(--bw-space-10)
60
+ );
61
+ }
62
+
63
+ .bw-marketing:has(> .bw-site-header--overlay)
64
+ .bw-marketing__content
65
+ > *:first-child:not(.bw-hero) {
66
+ /* Clearance replaces #111's margin for overlay: the header is out of flow,
67
+ * so padding (not margin against a sticky sibling) clears the fixed chrome.
68
+ * Selector mirrors #111 so the hero still opts out. */
69
+ margin-block-start: 0;
70
+ padding-block-start: calc(
71
+ var(
72
+ --bw-marketing-header-clearance,
73
+ calc(var(--bw-component-logo-height) + (var(--bw-space-3) * 2) + var(--bw-space-2))
74
+ ) + var(--bw-component-section-gap-marketing)
75
+ );
76
+ }
77
+
78
+ /* Enhanced: transparent until scrolled; ink follows panel context. */
79
+ .bw-site-header--overlay[data-bw-overlay-ready]:not([data-bw-scrolled="true"]) {
80
+ background: transparent;
81
+ border-block-end-color: transparent;
82
+ box-shadow: none;
83
+ }
84
+
85
+ .bw-site-header--overlay[data-bw-overlay-ready][data-bw-nav-context="dark"] {
86
+ --bw-overlay-ink: oklch(0.98 0.002 265);
87
+ --bw-overlay-ink-muted: color-mix(in oklab, oklch(0.98 0.002 265) 72%, transparent);
88
+ --bw-overlay-frost: color-mix(in oklab, oklch(0.16 0.02 265) 78%, transparent);
89
+ --bw-overlay-line: oklch(1 0 0 / 0.14);
90
+ }
91
+
92
+ .bw-site-header--overlay[data-bw-overlay-ready][data-bw-nav-context="light"] {
93
+ --bw-overlay-ink: oklch(0.205 0.005 265);
94
+ --bw-overlay-ink-muted: color-mix(in oklab, oklch(0.205 0.005 265) 68%, transparent);
95
+ --bw-overlay-frost: color-mix(in oklab, oklch(1 0 0) 82%, transparent);
96
+ --bw-overlay-line: oklch(0.205 0.005 265 / 0.14);
97
+ }
98
+
99
+ .bw-site-header--overlay[data-bw-overlay-ready][data-bw-scrolled="true"] {
100
+ background: var(--bw-overlay-frost, color-mix(in oklab, oklch(1 0 0) 82%, transparent));
101
+ border-block-end-color: var(--bw-overlay-line, oklch(0.205 0.005 265 / 0.14));
102
+ box-shadow: var(--bw-elevation-1);
103
+ -webkit-backdrop-filter: blur(12px) saturate(140%);
104
+ backdrop-filter: blur(12px) saturate(140%);
105
+ }
106
+
107
+ @media (prefers-reduced-motion: reduce) {
108
+ .bw-site-header--overlay[data-bw-overlay-ready] {
109
+ transition: none;
110
+ }
111
+ .bw-site-header--overlay[data-bw-overlay-ready][data-bw-scrolled="true"] {
112
+ -webkit-backdrop-filter: none;
113
+ backdrop-filter: none;
114
+ }
115
+ }
116
+
117
+ .bw-site-header--overlay[data-bw-overlay-ready] {
118
+ color: var(--bw-overlay-ink, oklch(0.205 0.005 265));
119
+ transition:
120
+ background var(--bw-duration-normal) var(--bw-ease-standard),
121
+ border-color var(--bw-duration-normal) var(--bw-ease-standard),
122
+ box-shadow var(--bw-duration-normal) var(--bw-ease-standard),
123
+ color var(--bw-duration-normal) var(--bw-ease-standard);
124
+ }
125
+
126
+ .bw-site-header--overlay[data-bw-overlay-ready] .bw-site-header__brand-wordmark,
127
+ .bw-site-header--overlay[data-bw-overlay-ready]
128
+ .bw-site-header__nav
129
+ :where(a):not(.bw-btn),
130
+ .bw-site-header--overlay[data-bw-overlay-ready]
131
+ .bw-site-header__actions
132
+ > :where(a):not(.bw-btn) {
133
+ color: var(
134
+ --bw-overlay-ink-muted,
135
+ color-mix(in oklab, oklch(0.205 0.005 265) 68%, transparent)
136
+ );
137
+ }
138
+
139
+ .bw-site-header--overlay[data-bw-overlay-ready]
140
+ .bw-site-header__nav
141
+ :where(a:hover):not(.bw-btn),
142
+ .bw-site-header--overlay[data-bw-overlay-ready]
143
+ .bw-site-header__actions
144
+ > :where(a:hover):not(.bw-btn),
145
+ .bw-site-header--overlay[data-bw-overlay-ready] .bw-site-header__brand-wordmark:hover {
146
+ color: var(--bw-overlay-ink, oklch(0.205 0.005 265));
147
+ }
148
+
149
+ /* Open mobile disclosure under overlay: keep opaque panel readable. */
150
+ .bw-site-header--overlay[data-bw-overlay-ready]
151
+ .bw-mobile-nav-toggle[open]
152
+ ~ .bw-site-header__nav,
153
+ .bw-site-header--overlay[data-bw-overlay-ready]
154
+ .bw-mobile-nav-toggle[open]
155
+ ~ .bw-site-header__nav,
156
+ .bw-site-header--overlay[data-bw-overlay-ready]
157
+ .bw-mobile-nav-toggle[open]
158
+ ~ .bw-site-header__actions {
159
+ background: var(--bw-color-surface);
160
+ color: var(--bw-color-fg);
161
+ }
162
+
163
+ .bw-site-header--overlay[data-bw-overlay-ready]
164
+ .bw-mobile-nav-toggle[open]
165
+ ~ .bw-site-header__nav
166
+ a,
167
+ .bw-site-header--overlay[data-bw-overlay-ready]
168
+ .bw-mobile-nav-toggle[open]
169
+ ~ .bw-site-header__actions
170
+ > a:not(.bw-btn) {
171
+ color: var(--bw-color-fg);
172
+ }
173
+
174
+ /* Wraps below the brand row at narrow widths (icvoss/django-brickwork#125):
175
+ * at 320px the brand mark/wordmark,
176
+ nav and actions cluster together are
177
+ * wider than the content box the gutter leaves,
178
+ and with no flex-wrap the
179
+ * row simply overflows the viewport,
180
+ scrolling the whole PAGE sideways
181
+ * (measured 326px scrollWidth against a 320px viewport,
182
+ actions/button right
183
+ * edge both at 326). flex-wrap alone is not the whole fix: see the
184
+ * min-inline-size: 0 note on __nav and __actions below,
185
+ the same
186
+ * "flex child refuses to shrink" hazard contain: paint solves for the
187
+ * pricing-comparison table,
188
+ but here the fix is letting the row itself wrap
189
+ * rather than clipping paint,
190
+ since this is real inline content,
191
+ not a wide
192
+ * table. Verify at 320px in both themes before calling this closed: a JS
193
+ * test can assert the layout rule,
194
+ not the rendered result. */
195
+ .bw-site-header__brand {
196
+ display: flex;
197
+ flex-wrap: wrap;
198
+ align-items: center;
199
+ gap: var(--bw-space-2) var(--bw-space-6);
200
+ position: relative;
201
+ }
202
+
203
+ /* Brand slot default sizing (#83,
204
+ ADR-054 beautiful-by-default): brand_logo
205
+ * and brand_wordmark are wrapped in brickwork-owned elements (the app
206
+ * shell's brickwork#93 precedent),
207
+ so a mark/lockup dropped into either slot
208
+ * is constrained WITHOUT knowing the consumer's own inner markup or classes.
209
+ * Any img/svg inside a wrapper caps at --bw-component-logo-height with width
210
+ * following the intrinsic ratio,
211
+ so an unconstrained SVG can never render as
212
+ * a banner and push the nav off-screen; the wrappers stay flex: 0 0 auto so
213
+ * the nav and actions clusters keep the remaining width. The img/svg leg is
214
+ * zero-specificity (:where),
215
+ so a one-class consumer rule overrides the cap.
216
+ * An unfilled block leaves an :empty wrapper,
217
+ which takes no space (no
218
+ * phantom header gap). */
219
+ .bw-site-header__brand-mark,
220
+ .bw-site-header__brand-wordmark {
221
+ display: inline-flex;
222
+ align-items: center;
223
+ flex: 0 0 auto;
224
+ }
225
+
226
+ .bw-site-header__brand-mark :where(img, svg),
227
+ .bw-site-header__brand-wordmark :where(img, svg) {
228
+ block-size: var(--bw-component-logo-height);
229
+ inline-size: auto;
230
+ }
231
+
232
+ /* Two-tier target size (icvoss/django-brickwork#208,
233
+ then #242): the primary
234
+ * nav row's links carried no minimum,
235
+ sized to their label's line-height
236
+ * alone (16-18px at 375px). A nav link is a navigational control,
237
+ not
238
+ * inline prose,
239
+ so WCAG 2.5.8's text-run exception does not apply; the AA
240
+ * floor here is min-block-size: 1.5rem (24px),
241
+ unconditional,
242
+ grown via
243
+ * min-block-size rather than padding,
244
+ so display: inline-flex +
245
+ * align-items keeps the label centred on the larger box. #242 adds a
246
+ * second,
247
+ coarse-pointer-only tier below: WCAG 2.5.5/platform-HIG's 44px
248
+ * bar,
249
+ above what the package's AA claim requires,
250
+ applied only where the
251
+ * primary input is imprecise (a fine-pointer desktop click never sees the
252
+ * larger target,
253
+ so the row's rendered layout does not shift there).
254
+ * :not(.bw-btn) excludes a bw_button a consumer composes into this slot
255
+ * (buttons are #212's own tier,
256
+ sized by .bw-btn's own rule),
257
+ matching the
258
+ * header actions rule below exactly: marketing_nav is documented as "a
259
+ * plain list of links",
260
+ but the exclusion is defensive against a consumer
261
+ * dropping a button in here anyway. */
262
+ .bw-site-header__nav :where(a):not(.bw-btn) {
263
+ display: inline-flex;
264
+ align-items: center;
265
+ min-block-size: 1.5rem;
266
+ color: var(--bw-color-fg-muted);
267
+ font-size: var(--bw-text-label-size);
268
+ font-weight: var(--bw-text-label-weight);
269
+ text-decoration: none;
270
+ transition: var(--bw-transition-colors);
271
+ }
272
+
273
+ @media (pointer: coarse) {
274
+ .bw-site-header__nav :where(a):not(.bw-btn) {
275
+ min-block-size: var(--bw-size-touch-target-min);
276
+ }
277
+ }
278
+
279
+ /* --- Mobile nav toggle (#263) ----------------------------------------------
280
+ * Package-owned collapse for the marketing header. Place
281
+ * .bw-mobile-nav-toggle (see _mobile_nav_toggle.html) as a sibling of
282
+ * .bw-site-header__nav / .bw-site-header__actions via
283
+ * marketing_nav_region. Rules sit AFTER the base __nav/__actions display
284
+ * declarations so sibling combinators win the cascade. Mobile-first; the
285
+ * --breakpoint-lg query (64rem) restores the inline desktop bar and hides
286
+ * the toggle. No JS.
287
+ */
288
+
289
+ .bw-mobile-nav-toggle {
290
+ order: 1;
291
+ margin-inline-start: auto;
292
+ }
293
+
294
+ .bw-mobile-nav-toggle > summary {
295
+ list-style: none;
296
+ }
297
+
298
+ .bw-mobile-nav-toggle > summary::-webkit-details-marker {
299
+ display: none;
300
+ }
301
+
302
+ .bw-mobile-nav-toggle__trigger {
303
+ display: inline-flex;
304
+ align-items: center;
305
+ justify-content: center;
306
+ inline-size: var(--bw-size-touch-target-min);
307
+ block-size: var(--bw-size-touch-target-min);
308
+ border-radius: var(--bw-radius-md);
309
+ color: var(--bw-color-fg);
310
+ cursor: pointer;
311
+ transition: var(--bw-transition-colors);
312
+ }
313
+
314
+ .bw-mobile-nav-toggle__trigger:hover {
315
+ background: var(--bw-color-surface-marketing-tint);
316
+ }
317
+
318
+ .bw-mobile-nav-toggle__trigger:focus-visible {
319
+ outline: 2px solid var(--bw-color-accent);
320
+ outline-offset: 2px;
321
+ }
322
+
323
+ .bw-mobile-nav-toggle__icon {
324
+ display: block;
325
+ }
326
+
327
+ /* Two-class / compound selectors beat the single-class .bw-icon
328
+ * {display:inline-block} base (icvoss/django-brickwork#519): without the
329
+ * extra specificity,
330
+ the later icon rule restored the close glyph in the
331
+ * closed state so the trigger painted hamburger and cross together. */
332
+ .bw-mobile-nav-toggle:not([open]) .bw-mobile-nav-toggle__icon--close {
333
+ display: none;
334
+ }
335
+
336
+ .bw-mobile-nav-toggle[open] .bw-mobile-nav-toggle__icon--open {
337
+ display: none;
338
+ }
339
+
340
+ .bw-mobile-nav-toggle[open] .bw-mobile-nav-toggle__icon--close {
341
+ display: block;
342
+ }
343
+
344
+ .bw-mobile-nav-toggle ~ .bw-site-header__nav,
345
+ .bw-mobile-nav-toggle ~ .bw-site-header__actions {
346
+ display: none;
347
+ order: 2;
348
+ inline-size: 100%;
349
+ }
350
+
351
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__nav,
352
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__actions {
353
+ display: flex;
354
+ flex-direction: column;
355
+ align-items: stretch;
356
+ gap: var(--bw-space-1);
357
+ }
358
+
359
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__nav {
360
+ padding-block-start: var(--bw-space-4);
361
+ border-block-start: var(--bw-size-border-hairline) solid var(--bw-color-border);
362
+ margin-block-start: var(--bw-space-3);
363
+ }
364
+
365
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__actions {
366
+ padding-block-end: var(--bw-space-2);
367
+ flex-direction: column;
368
+ }
369
+
370
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__nav a {
371
+ display: flex;
372
+ align-items: center;
373
+ min-block-size: var(--bw-size-touch-target-min);
374
+ padding-inline: var(--bw-space-3);
375
+ border-radius: var(--bw-radius-md);
376
+ color: var(--bw-color-fg);
377
+ font-size: var(--bw-font-size-sm);
378
+ font-weight: var(--bw-font-weight-medium);
379
+ text-decoration: none;
380
+ }
381
+
382
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__nav a:hover {
383
+ background: var(--bw-color-surface-raised);
384
+ }
385
+
386
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__nav a:focus-visible,
387
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__actions a:focus-visible,
388
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__actions button:focus-visible {
389
+ outline: 2px solid var(--bw-color-accent);
390
+ outline-offset: 2px;
391
+ }
392
+
393
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__actions > a,
394
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__actions .bw-btn,
395
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__actions .bw-site-header__logout-form {
396
+ inline-size: 100%;
397
+ }
398
+
399
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__actions .bw-btn {
400
+ justify-content: center;
401
+ min-block-size: var(--bw-size-touch-target-min);
402
+ }
403
+
404
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__actions > a:not(.bw-btn) {
405
+ display: flex;
406
+ align-items: center;
407
+ min-block-size: var(--bw-size-touch-target-min);
408
+ padding-inline: var(--bw-space-3);
409
+ border-radius: var(--bw-radius-md);
410
+ color: var(--bw-color-fg);
411
+ font-size: var(--bw-font-size-sm);
412
+ font-weight: var(--bw-font-weight-medium);
413
+ text-decoration: none;
414
+ }
415
+
416
+ .bw-mobile-nav-toggle[open] ~ .bw-site-header__actions > a:not(.bw-btn):hover {
417
+ background: var(--bw-color-surface-raised);
418
+ }
419
+
420
+ @media (width >= --theme(--breakpoint-lg)) {
421
+ .bw-site-header__brand {
422
+ flex-wrap: nowrap;
423
+ }
424
+
425
+ .bw-mobile-nav-toggle {
426
+ display: none;
427
+ }
428
+
429
+ .bw-mobile-nav-toggle ~ .bw-site-header__nav,
430
+ .bw-mobile-nav-toggle ~ .bw-site-header__actions {
431
+ display: flex;
432
+ flex-direction: row;
433
+ align-items: center;
434
+ order: initial;
435
+ inline-size: auto;
436
+ padding: 0;
437
+ border-block-start: none;
438
+ margin-block-start: 0;
439
+ }
440
+ }
441
+
442
+ /* A plain link (e.g. "Sign in") alongside a bw_button in this slot
443
+ * (04-interfaces.md 4d documents exactly this shape): styled the same as the
444
+ * nav link colour,
445
+ never the UA default blue,
446
+ so it clears WCAG AA contrast
447
+ * in both themes (BR-BW-MKT-002). :not(.bw-btn) excludes bw_button's own
448
+ * markup: buttons are #212's own tier,
449
+ sized by .bw-btn's own rule; this
450
+ * rule targets only a bare <a> the consumer places here.
451
+ * Two-tier target size (icvoss/django-brickwork#208,
452
+ then #242): a consumer
453
+ * following this exact documented composition got a sub-floor target
454
+ * (measured 40x21 at 375px) because nothing here set a minimum; the AA
455
+ * floor is min-block-size: 1.5rem (24px),
456
+ unconditional,
457
+ grown via
458
+ * min-block-size rather than padding,
459
+ so inline-flex + centred content
460
+ * keeps the label centred on the larger box. #242 adds a coarse-pointer-only
461
+ * 44px tier below,
462
+ the WCAG 2.5.5/platform-HIG bar; a fine-pointer desktop
463
+ * click never sees it,
464
+ so the slot's layout does not shift there. */
465
+ .bw-site-header__actions > :where(a):not(.bw-btn) {
466
+ display: inline-flex;
467
+ align-items: center;
468
+ min-block-size: 1.5rem;
469
+ color: var(--bw-color-fg-muted);
470
+ font-size: var(--bw-text-label-size);
471
+ font-weight: var(--bw-text-label-weight);
472
+ text-decoration: none;
473
+ transition: var(--bw-transition-colors);
474
+ }
475
+
476
+ @media (pointer: coarse) {
477
+ .bw-site-header__actions > :where(a):not(.bw-btn) {
478
+ min-block-size: var(--bw-size-touch-target-min);
479
+ }
480
+ }
481
+
482
+ .bw-marketing__content {
483
+ flex: 1 1 auto;
484
+ outline: none; /* the skip-link target; focus ring handled by :focus-visible */
485
+ }
486
+
487
+ /* Footer link groups (#500): responsive columns without elevated card chrome.
488
+ * Distinct from .bw-feature-grid > .bw-feature-card (those cards are for
489
+ * feature bands). The shell still ships an empty marketing_footer slot;
490
+ * these classes are the authored-example vocabulary consumers may copy. */
491
+ .bw-marketing-footer__groups {
492
+ display: grid;
493
+ grid-template-columns: 1fr;
494
+ gap: var(--bw-space-6);
495
+ }
496
+
497
+ @media (width >= --theme(--breakpoint-sm)) {
498
+ .bw-marketing-footer__groups {
499
+ grid-template-columns: repeat(2, minmax(0, 1fr));
500
+ }
501
+ }
502
+
503
+ .bw-marketing-footer__group {
504
+ display: flex;
505
+ flex-direction: column;
506
+ gap: var(--bw-space-2);
507
+ align-items: flex-start;
508
+ }
509
+
510
+ .bw-marketing-footer__group-heading {
511
+ margin: 0;
512
+ font-family: var(--bw-text-heading-sm-family);
513
+ font-size: var(--bw-text-heading-sm-size);
514
+ font-weight: var(--bw-text-heading-sm-weight);
515
+ line-height: var(--bw-text-heading-sm-line-height);
516
+ color: var(--bw-color-fg);
517
+ }
518
+
519
+ /* A consumer's marketing_footer block content is arbitrary markup. The shell
520
+ * supplies no default link groups or column arrangement,
521
+ but any plain <a>
522
+ * a consumer authors in the slot is styled like a header-nav link rather than
523
+ * left to the UA default blue (BR-BW-MKT-002).
524
+ * Two-tier target size (icvoss/django-brickwork#208,
525
+ then #242) REVERSES
526
+ * #208's own exemption: #208 explicitly declined to size these links,
527
+ * reasoning that "brickwork does not own the group's layout,
528
+ so a sizing
529
+ * floor is not this package's call to make" (its comment on
530
+ * TAP_TARGET_EXEMPT_SELECTORS in axe.spec.mjs). That rationale no longer
531
+ * holds: this rule already styles colour/decoration for any <a> descendant
532
+ * here regardless of the consumer's own markup,
533
+ which is the same claim of
534
+ * ownership a sizing floor makes,
535
+ so #242 sizes them too rather than
536
+ * leaving the inconsistency in place. min-block-size: 1.5rem (24px,
537
+ * unconditional) grows the box,
538
+ not padding; inline-flex + align-items
539
+ * keeps the label centred on the larger box. #242 adds a coarse-pointer-only
540
+ * 44px tier below,
541
+ the WCAG 2.5.5/platform-HIG bar; a fine-pointer desktop
542
+ * click never sees it,
543
+ so the footer's layout does not shift there.
544
+ * :not(.bw-btn) excludes a bw_button a consumer composes into this slot
545
+ * (buttons are #212's own tier,
546
+ sized by .bw-btn's own rule),
547
+ matching the
548
+ * header actions rule above. */
549
+ .bw-site-footer__inner :where(a):not(.bw-btn) {
550
+ display: inline-flex;
551
+ align-items: center;
552
+ min-block-size: 1.5rem;
553
+ color: var(--bw-color-fg-muted);
554
+ text-decoration: none;
555
+ transition: var(--bw-transition-colors);
556
+ }
557
+
558
+ @media (pointer: coarse) {
559
+ .bw-site-footer__inner :where(a):not(.bw-btn) {
560
+ min-block-size: var(--bw-size-touch-target-min);
561
+ }
562
+ }
563
+
564
+ /* icvoss/django-brickwork#267: collapse the footer landmark when both content
565
+ * slots are empty. The inner markup keeps block output flush so an unfilled
566
+ * marketing_footer leaves the legal wrapper as the sole (empty) child. */
567
+ .bw-site-footer:has(.bw-site-footer__legal:only-child:empty) {
568
+ display: none;
569
+ }
570
+
571
+ /* Legacy rail: every direct child without the section shell still wraps at
572
+ * the marketing measure. Kept so existing component roots (hero,
573
+ pricing,
574
+ * cta,
575
+ …) stay byte-identical. New custom bands use .bw-section /
576
+ * .bw-section__inner below instead of inventing a site *-inner class
577
+ * (icvoss/django-brickwork#667,
578
+ ADR-057 Phase A). */
579
+ .bw-marketing__content > * {
580
+ max-inline-size: var(--bw-component-content-max-width-marketing);
581
+ margin-inline: auto;
582
+ padding-inline: var(--bw-density-page-gutter-inline);
583
+ }
584
+
585
+ .bw-marketing__content > * + * {
586
+ margin-block-start: var(--bw-component-section-gap-marketing);
587
+ }
588
+
589
+ /* --- Section shell (ADR-057 Phase A,
590
+ #667) ----------------------------------
591
+ * Outer .bw-section is full-bleed capable (atmosphere,
592
+ tint,
593
+ inverse).
594
+ * Inner .bw-section__inner is the shared marketing rail (measure + gutter).
595
+ * Rhythm above still applies to .bw-section roots as direct children. */
596
+
597
+ .bw-section {
598
+ display: block;
599
+ }
600
+
601
+ /* Opt out of the legacy per-child rail so the band can run edge to edge
602
+ * of <main>; content measure moves to .bw-section__inner. */
603
+ .bw-marketing__content > .bw-section {
604
+ max-inline-size: none;
605
+ inline-size: 100%;
606
+ padding-inline: 0;
607
+ }
608
+
609
+ .bw-section__inner {
610
+ max-inline-size: var(--bw-component-content-max-width-marketing);
611
+ margin-inline: auto;
612
+ padding-inline: var(--bw-density-page-gutter-inline);
613
+ }
614
+
615
+ /* Shared section intro (#695): overline + heading + lede inside __inner.
616
+ * Class contract: usable from named includes and plain .bw-section markup.
617
+ * Type roles: overline / heading-section / body-lg. Prefer the __intro
618
+ * wrapper when stacking more than one piece; a bare __heading as the first
619
+ * child of __inner still gets bottom rhythm for named bands that use it. */
620
+ .bw-section__intro {
621
+ display: flex;
622
+ flex-direction: column;
623
+ gap: var(--bw-space-3);
624
+ margin-block-end: var(--bw-space-8);
625
+ }
626
+
627
+ .bw-section__overline {
628
+ margin: 0;
629
+ color: var(--bw-color-fg-muted);
630
+ font-family: var(--bw-text-overline-family);
631
+ font-size: var(--bw-text-overline-size);
632
+ font-weight: var(--bw-text-overline-weight);
633
+ line-height: var(--bw-text-overline-line-height);
634
+ letter-spacing: var(--bw-text-overline-tracking);
635
+ text-transform: uppercase;
636
+ }
637
+
638
+ .bw-section__heading {
639
+ margin: 0;
640
+ font-family: var(--bw-text-heading-section-family);
641
+ font-size: var(--bw-text-heading-section-size);
642
+ font-weight: var(--bw-text-heading-section-weight);
643
+ line-height: var(--bw-text-heading-section-line-height);
644
+ letter-spacing: var(--bw-text-heading-section-tracking);
645
+ text-wrap: balance;
646
+ }
647
+
648
+ .bw-section__lede {
649
+ margin: 0;
650
+ color: var(--bw-color-fg-muted);
651
+ font-size: var(--bw-text-body-lg-size);
652
+ font-weight: var(--bw-text-body-lg-weight);
653
+ line-height: var(--bw-text-body-lg-line-height);
654
+ text-wrap: pretty;
655
+ max-inline-size: var(--bw-size-max-width-prose);
656
+ }
657
+
658
+ .bw-section__inner > .bw-section__heading:first-child {
659
+ margin-block-end: var(--bw-space-8);
660
+ }
661
+
662
+ /* width="bleed" (ADR-057 §1a): shared escape,
663
+ also used by .bw-cta--bleed
664
+ * and .bw-cta-bleed so the axis is not CTA-only. Specificity matches the
665
+ * shell child rules when composed under .bw-marketing__content. */
666
+ .bw-section--bleed,
667
+ .bw-marketing__content > .bw-section--bleed,
668
+ .bw-cta--bleed,
669
+ .bw-cta-bleed {
670
+ inline-size: 100vw;
671
+ max-inline-size: 100vw;
672
+ margin-inline: calc(50% - 50vw);
673
+ }
674
+
675
+ .bw-marketing__content > .bw-section--bleed {
676
+ padding-inline: 0;
677
+ }
678
+
679
+ /* band="tint" (ADR-057 §1a): background only; measure stays on __inner. */
680
+ .bw-section--tint {
681
+ background: var(--bw-color-surface-marketing-tint);
682
+ }
683
+
684
+ /* The FIRST section needs its own block-start spacing (#111). The rule above
685
+ * only spaces BETWEEN children,
686
+ so a page whose opening section is not a hero
687
+ * (a page header,
688
+ a feature grid,
689
+ a docs index) rendered flush against the
690
+ * header's hairline,
691
+ and consumers were wrapping their first child in a
692
+ * padding div to compensate. The app shell has no equivalent problem because
693
+ * it owns a page-header slot; the marketing shell has no such slot,
694
+ so the
695
+ * spacing has to come from the content region itself.
696
+ *
697
+ * The hero opts out: it already owns its vertical rhythm via its own
698
+ * padding-block,
699
+ so applying this to it as well would double the space on the
700
+ * canonical landing page. Landed in 2.0.0 because it changes a visual default
701
+ * for any consumer already compensating with their own top padding. */
702
+ .bw-marketing__content > *:first-child:not(.bw-hero) {
703
+ margin-block-start: var(--bw-component-section-gap-marketing);
704
+ }
705
+
706
+ /* --- Hero -------------------------------------------------------------------- */
707
+
708
+ .bw-hero {
709
+ display: flex;
710
+ flex-direction: column;
711
+ gap: var(--bw-space-8);
712
+ /* Extra block-end air so the hero reads as its own act before the next
713
+ * section (icvoss/django-brickwork#510), without fighting the shell's
714
+ * section-gap token on siblings. */
715
+ padding-block: var(--bw-space-10) var(--bw-space-4);
716
+ text-align: start;
717
+ }
718
+
719
+ /* --start is the DOCUMENTED DEFAULT and the template emits it unconditionally
720
+ * via {% firstof align 'start' %}so it needs a real rule (#120 defect class).
721
+ * It restates the .bw-hero base alignment explicitly,
722
+ which also gives
723
+ * align="end" below something symmetrical to sit against. */
724
+ .bw-hero--start {
725
+ align-items: flex-start;
726
+ text-align: start;
727
+ }
728
+
729
+ .bw-hero--end {
730
+ align-items: flex-end;
731
+ text-align: end;
732
+ }
733
+
734
+ .bw-hero--center {
735
+ align-items: center;
736
+ text-align: center;
737
+ }
738
+
739
+ /* width="bleed" (ADR-057 section 1a / #710): the hero has no separate
740
+ * __inner wrapper the way .bw-section does (media_placement="behind" and
741
+ * "beside" both need .bw-hero__copy and .bw-hero__media as DIRECT children
742
+ * for their own display:grid tricks below, and the media_placement axis is
743
+ * documented CSS-only, so this axis cannot add one either). Collapsing the
744
+ * section shell's two-box escape (100vw outer, capped-and-gutter inner)
745
+ * onto the one box .bw-hero already is: inline-size/margin-inline give the
746
+ * same fluid viewport escape as .bw-section--bleed, and padding-inline
747
+ * reproduces .bw-section__inner's cap in a single declaration (the larger
748
+ * of the page gutter or the space needed to keep the content box at
749
+ * --bw-component-content-max-width-marketing). .bw-hero__media already
750
+ * caps at 100% of its container (max-inline-size: 100%, above), and
751
+ * .bw-hero__copy already caps narrower still at the prose measure, so both
752
+ * land on the marketing measure inside this padding without their own
753
+ * change. .bw-stage (position: absolute; inset: 0 relative to the padding
754
+ * edge) ignores this padding and keeps covering the full bleed box.
755
+ * media_placement="behind" applies AFTER this in source order and sets its
756
+ * own `padding` shorthand (not padding-inline alone), which resets this
757
+ * rule's padding-inline back to its own space-16/space-8: bleed then makes
758
+ * the inverse panel itself span the viewport, exactly per the issue, while
759
+ * .bw-hero__copy keeps capping itself at the prose measure inside it. */
760
+ .bw-hero--bleed {
761
+ inline-size: 100vw;
762
+ max-inline-size: 100vw;
763
+ margin-inline: calc(50% - 50vw);
764
+ /* Cap plus gutter, not max(cap, gutter): the rail rule and
765
+ .bw-section__inner are border-box, so their content edge sits at
766
+ (100vw - measure) / 2 + gutter. max() dropped the gutter on wide
767
+ viewports and the bleed hero's copy sat one gutter outside every
768
+ other band (4.3.0 defect, found on the first consumer). */
769
+ padding-inline: calc(
770
+ max(0px, (100vw - var(--bw-component-content-max-width-marketing)) / 2) +
771
+ var(--bw-density-page-gutter-inline)
772
+ );
773
+ }
774
+
775
+ .bw-hero__copy {
776
+ display: flex;
777
+ flex-direction: column;
778
+ gap: var(--bw-space-4);
779
+ /* .bw-hero is a column flex with align-items other than stretch (--start and
780
+ * --end both set it), which sizes this child to its CONTENT rather than to
781
+ * the container. A lede longer than the viewport therefore pushed the whole
782
+ * hero wider than the page and scrolled the document sideways on a phone.
783
+ * 100% caps it at the container's content box, restoring the mobile-first
784
+ * floor (ADR-057 section 1: a section that only works at desktop width is not
785
+ * a shipped section).
786
+ *
787
+ * Found at 375px by the plan's Phase 6 gate 3 while stacking two heroes in
788
+ * one fixture; the shipped marketing pages never tripped it because their
789
+ * ledes happen to be shorter.
790
+ *
791
+ * The measure itself is --bw-component-hero-copy-max-width (defaults to the
792
+ * prose measure). Heading and lede have their own max-width tokens so a
793
+ * brand can widen the display heading without also widening the lede
794
+ * (icvoss/django-brickwork#640): raise the copy (and optionally heading)
795
+ * token, then set --bw-component-hero-lede-max-width to the prose measure
796
+ * or 62ch. */
797
+ max-inline-size: min(var(--bw-component-hero-copy-max-width), 100%);
798
+ }
799
+
800
+ .bw-hero--center .bw-hero__copy {
801
+ margin-inline: auto;
802
+ }
803
+
804
+ .bw-hero__eyebrow {
805
+ margin: 0;
806
+ color: var(--bw-color-accent);
807
+ font-family: var(--bw-text-overline-family);
808
+ font-size: var(--bw-text-overline-size);
809
+ font-weight: var(--bw-text-overline-weight);
810
+ line-height: var(--bw-text-overline-line-height);
811
+ letter-spacing: var(--bw-text-overline-tracking);
812
+ text-transform: uppercase;
813
+ }
814
+
815
+ /* Eyebrow tone (#672): sentence-case muted kicker. Opt-in via
816
+ * eyebrow_tone="sentence"; omitted/"accent" keeps the accent uppercase
817
+ * overline byte-identical. Size and weight stay on the overline role so
818
+ * hierarchy is unchanged; only colour and case shift. */
819
+ .bw-hero__eyebrow--sentence {
820
+ color: var(--bw-color-fg-muted);
821
+ letter-spacing: var(--bw-font-tracking-normal);
822
+ text-transform: none;
823
+ }
824
+
825
+ /* Eyebrow marker (#659): leading accent rule before the overline. Opt-in
826
+ * via eyebrow_marker="rule"; omitted/"none" is byte-identical. Flex + gap
827
+ * only when the modifier is present so default eyebrows keep their
828
+ * previous block layout. The mark colour is its own token (not
829
+ * currentColor) so a brand can paint the rule differently from the
830
+ * eyebrow text. */
831
+ .bw-hero__eyebrow--rule {
832
+ display: flex;
833
+ align-items: center;
834
+ gap: var(--bw-space-3);
835
+ }
836
+
837
+ .bw-hero--center .bw-hero__eyebrow--rule {
838
+ justify-content: center;
839
+ }
840
+
841
+ .bw-hero--end .bw-hero__eyebrow--rule {
842
+ justify-content: flex-end;
843
+ }
844
+
845
+ .bw-hero__eyebrow--rule::before {
846
+ content: "";
847
+ flex: none;
848
+ inline-size: var(--bw-component-hero-eyebrow-marker-inline-size);
849
+ block-size: var(--bw-component-hero-eyebrow-marker-block-size);
850
+ background-color: var(--bw-component-hero-eyebrow-marker-color);
851
+ }
852
+
853
+ .bw-hero__heading {
854
+ margin: 0;
855
+ font-family: var(--bw-text-heading-display-family);
856
+ /* Fluid, capped at the display token. The token is a fixed 3.75rem (60px),
857
+ * at which a single long word ("Documentation") measures 406px and cannot
858
+ * wrap, so it overflowed a 375px viewport and scrolled the whole document
859
+ * sideways. A multi-word heading hid the bug by wrapping between words.
860
+ *
861
+ * clamp() keeps the designed size from ~40rem up and scales down below it,
862
+ * so the mobile-first floor holds for any heading (ADR-057 section 1). The
863
+ * token still sets the ceiling, so a brand retuning the display scale
864
+ * retunes this with it.
865
+ *
866
+ * Found at 375px by the plan's Phase 6 gate 3. */
867
+ font-size: clamp(2.25rem, 8vw, var(--bw-text-heading-display-size));
868
+ font-weight: var(--bw-text-heading-display-weight);
869
+ line-height: var(--bw-text-heading-display-line-height);
870
+ letter-spacing: var(--bw-text-heading-display-tracking);
871
+ /* Last-resort safety net: a single word longer than the viewport (a URL, a
872
+ * long compound) still has no wrap opportunity even at the small end. */
873
+ overflow-wrap: break-word;
874
+ text-wrap: balance;
875
+ /* Fills the copy column at default (100%). Override with the copy column
876
+ * widened when the brand wants a wider heading than the lede (#640). */
877
+ max-inline-size: min(var(--bw-component-hero-heading-max-width), 100%);
878
+ }
879
+
880
+ /* Subheading / positioning line (#672): between heading and lede,
881
+ stronger
882
+ * than the muted lede. Absent slot is byte-identical. */
883
+ .bw-hero__subheading {
884
+ margin: 0;
885
+ color: var(--bw-color-fg);
886
+ font-family: var(--bw-text-heading-lg-family);
887
+ font-size: var(--bw-text-heading-lg-size);
888
+ font-weight: var(--bw-text-heading-lg-weight);
889
+ line-height: var(--bw-text-heading-lg-line-height);
890
+ letter-spacing: var(--bw-text-heading-lg-tracking);
891
+ text-wrap: pretty;
892
+ max-inline-size: min(var(--bw-component-hero-lede-max-width), 100%);
893
+ }
894
+
895
+ .bw-hero__lede {
896
+ margin: 0;
897
+ color: var(--bw-color-fg-muted);
898
+ font-size: var(--bw-text-body-lg-size);
899
+ line-height: var(--bw-text-body-lg-line-height);
900
+ text-wrap: pretty;
901
+ /* Fills the copy column at default (100%). When the copy column is widened
902
+ * for the heading, set --bw-component-hero-lede-max-width to the prose
903
+ * measure or 62ch (#640). */
904
+ max-inline-size: min(var(--bw-component-hero-lede-max-width), 100%);
905
+ }
906
+
907
+ .bw-hero__actions {
908
+ display: flex;
909
+ flex-wrap: wrap;
910
+ align-items: center;
911
+ gap: var(--bw-space-3);
912
+ }
913
+
914
+ /* Actions follow align (#672). --start is the documented default and must
915
+ * left-align the row explicitly (flex default alone left the end case
916
+ * ambiguous and matched a consumer report that start never moved CTAs). */
917
+ .bw-hero--start .bw-hero__actions {
918
+ justify-content: flex-start;
919
+ }
920
+
921
+ .bw-hero--center .bw-hero__actions {
922
+ justify-content: center;
923
+ }
924
+
925
+ .bw-hero--end .bw-hero__actions {
926
+ justify-content: flex-end;
927
+ }
928
+
929
+ /* Quiet meta under the actions (#672). Caption muted; middle-dot seps
930
+ * match article_meta. Absent slot is byte-identical. */
931
+ .bw-hero__meta {
932
+ margin: 0;
933
+ color: var(--bw-color-fg-muted);
934
+ font-size: var(--bw-text-caption-size);
935
+ line-height: var(--bw-text-caption-line-height);
936
+ }
937
+
938
+ .bw-hero__meta-sep {
939
+ margin-inline: var(--bw-space-2);
940
+ }
941
+
942
+ .bw-hero__media {
943
+ max-inline-size: 100%;
944
+ }
945
+
946
+ .bw-hero__media :where(img, svg){
947
+ display: block;
948
+ inline-size: 100%;
949
+ block-size: auto;
950
+ }
951
+
952
+ /* Radius on img only,
953
+ never svg (icvoss/django-brickwork#118). A photograph
954
+ * wants a frame; a diagram or logotype has no frame to round,
955
+ and clipping its
956
+ * corners damages artwork the caller drew deliberately. Scoping here rather
957
+ * than shipping a --bare opt-out modifier fixes every existing SVG caller with
958
+ * no action on their part,
959
+ instead of making each one discover an override for
960
+ * a .bw-* internal (the-wall EXT-013 discourages exactly that). */
961
+ .bw-hero__media img {
962
+ border-radius: var(--bw-radius-lg);
963
+ /* Soft frame so media reads on a white page without a separate card wrap.
964
+ * Dark theme strips the ambient at the end of this file. */
965
+ box-shadow:
966
+ var(--bw-elevation-1),
967
+ 0 4px 14px -4px oklch(0 0 0 / 0.1);
968
+ }
969
+
970
+ /* Decoration (#645): a watermark/stamp behind the copy on the ordinary
971
+ * surface. Present only when the decoration slot has content; absent is
972
+ * byte-identical. Not media-behind: no inverse panel,
973
+ no scrim. */
974
+ .bw-hero:has(> .bw-hero__decoration) {
975
+ position: relative;
976
+ /* Clip a mark that hangs past the trailing edge via a negative inset. */
977
+ overflow: clip;
978
+ }
979
+
980
+ .bw-hero:has(> .bw-hero__decoration) .bw-hero__copy {
981
+ position: relative;
982
+ z-index: 1;
983
+ }
984
+
985
+ .bw-hero__decoration {
986
+ position: absolute;
987
+ z-index: 0;
988
+ inset-block-start: var(--bw-component-hero-decoration-inset);
989
+ /* Hang slightly past the trailing edge (evidence: icvoss.com mark). The
990
+ * inset token is the magnitude; the sign flips for the inline-end edge. */
991
+ inset-inline-end: calc(var(--bw-component-hero-decoration-inset) * -1);
992
+ inline-size: var(--bw-component-hero-decoration-size);
993
+ max-inline-size: 50%;
994
+ opacity: var(--bw-component-hero-decoration-opacity);
995
+ pointer-events: none;
996
+ }
997
+
998
+ .bw-hero__decoration :where(img, svg){
999
+ display: block;
1000
+ inline-size: 100%;
1001
+ block-size: auto;
1002
+ }
1003
+
1004
+ /* Product chrome: framed product surface for marketing media slots (Beat S5).
1005
+ * Clean-room depth argument for hero / feature-row media: a raised panel with
1006
+ * an optional rear layer. Tokens and elevation only; not kit markup. */
1007
+ .bw-product-chrome-stack {
1008
+ position: relative;
1009
+ isolation: isolate;
1010
+ inline-size: 100%;
1011
+ /* Room for the rear panel to peek without clipping the front. */
1012
+ padding-block-start: var(--bw-space-5);
1013
+ padding-inline-end: var(--bw-space-5);
1014
+ }
1015
+
1016
+ .bw-product-chrome {
1017
+ position: relative;
1018
+ z-index: 1;
1019
+ overflow: hidden;
1020
+ inline-size: 100%;
1021
+ border-radius: var(--bw-radius-xl);
1022
+ border: var(--bw-size-border-hairline) solid
1023
+ color-mix(in oklab, var(--bw-color-fg) 12%, var(--bw-color-surface-raised));
1024
+ background: var(--bw-color-surface-raised);
1025
+ box-shadow:
1026
+ var(--bw-elevation-2),
1027
+ 0 8px 28px -10px oklch(0 0 0 / 0.14);
1028
+ }
1029
+
1030
+ .bw-product-chrome--rear {
1031
+ position: absolute;
1032
+ z-index: 0;
1033
+ inset-block-start: 0;
1034
+ inset-inline-end: 0;
1035
+ inline-size: 90%;
1036
+ block-size: 88%;
1037
+ background: var(--bw-color-surface-inverse);
1038
+ border-color: transparent;
1039
+ box-shadow: var(--bw-elevation-1);
1040
+ /* Offset only: no rotate. Decorative depth, not motion. */
1041
+ transform: translate(calc(var(--bw-space-3) * -1), var(--bw-space-3));
1042
+ }
1043
+
1044
+ .bw-product-chrome__bar {
1045
+ display: flex;
1046
+ align-items: center;
1047
+ gap: var(--bw-space-2);
1048
+ min-block-size: var(--bw-size-control-height-sm);
1049
+ padding-inline: var(--bw-space-3);
1050
+ border-block-end: var(--bw-size-border-hairline) solid
1051
+ color-mix(in oklab, var(--bw-color-fg) 10%, transparent);
1052
+ background: var(--bw-color-surface-sunken);
1053
+ }
1054
+
1055
+ .bw-product-chrome__title {
1056
+ margin: 0;
1057
+ color: var(--bw-color-fg-muted);
1058
+ font-family: var(--bw-text-caption-family);
1059
+ font-size: var(--bw-text-caption-size);
1060
+ font-weight: var(--bw-text-caption-weight);
1061
+ line-height: var(--bw-text-caption-line-height);
1062
+ letter-spacing: var(--bw-text-caption-tracking);
1063
+ }
1064
+
1065
+ .bw-product-chrome__stage {
1066
+ padding: var(--bw-space-3);
1067
+ }
1068
+
1069
+ .bw-product-chrome__stage :where(svg) {
1070
+ display: block;
1071
+ inline-size: 100%;
1072
+ block-size: auto;
1073
+ }
1074
+
1075
+ .bw-feature-row__media .bw-product-chrome-stack,
1076
+ .bw-feature-row__media .bw-product-chrome,
1077
+ .bw-hero__media .bw-product-chrome-stack,
1078
+ .bw-hero__media .bw-product-chrome {
1079
+ max-inline-size: 100%;
1080
+ }
1081
+
1082
+ /* --- Hero media placement (ADR-057 section 1a,
1083
+ #118) ------------------------- */
1084
+
1085
+ /* The media_placement axis. "below" is the default and deliberately has NO
1086
+ * modifier class: it is the shipped 2.0.0 layout (.bw-hero is a column flex,
1087
+ * so media follows the copy in normal flow),
1088
+ so an omitted or unrecognised
1089
+ * value renders byte-identically to before this option existed. */
1090
+
1091
+ /* "above": media stacks visually above the copy. Document / tab order stay
1092
+ * copy-then-media (CSS-only axis; ADR-057 section 1a binding rule). */
1093
+ .bw-hero--media-above {
1094
+ flex-direction: column-reverse;
1095
+ }
1096
+
1097
+ /* "behind": media and copy share one grid area,
1098
+ copy on top. */
1099
+ .bw-hero--media-behind {
1100
+ display: grid;
1101
+ position: relative;
1102
+ isolation: isolate;
1103
+ padding: var(--bw-space-16) var(--bw-space-8);
1104
+ border-radius: var(--bw-radius-2xl);
1105
+ overflow: hidden;
1106
+ background-color: var(--bw-color-surface-inverse);
1107
+ color: var(--bw-color-fg-on-inverse);
1108
+ }
1109
+
1110
+ .bw-hero--media-behind > * {
1111
+ grid-area: 1 / 1;
1112
+ }
1113
+
1114
+ .bw-hero--media-behind .bw-hero__copy {
1115
+ z-index: 1;
1116
+ max-inline-size: min(var(--bw-component-hero-copy-max-width), 100%);
1117
+ }
1118
+
1119
+ /* The copy inherits the inverse foreground. The eyebrow keeps its accent role
1120
+ * elsewhere,
1121
+ but accent on an inverse surface is not contrast-checked,
1122
+ so it
1123
+ * takes the inverse foreground here too. */
1124
+ .bw-hero--media-behind .bw-hero__eyebrow,
1125
+ .bw-hero--media-behind .bw-hero__heading,
1126
+ .bw-hero--media-behind .bw-hero__subheading,
1127
+ .bw-hero--media-behind .bw-hero__lede,
1128
+ .bw-hero--media-behind .bw-hero__meta {
1129
+ color: var(--bw-color-fg-on-inverse);
1130
+ }
1131
+
1132
+ /* Sentence-tone eyebrow on inverse still needs on-inverse ink (#672);
1133
+ * the base sentence rule would otherwise reintroduce muted fg. */
1134
+ .bw-hero--media-behind .bw-hero__eyebrow--sentence {
1135
+ color: var(--bw-color-fg-on-inverse);
1136
+ }
1137
+
1138
+ .bw-hero--media-behind .bw-hero__media {
1139
+ position: relative;
1140
+ inline-size: 100%;
1141
+ block-size: 100%;
1142
+ }
1143
+
1144
+ .bw-hero--media-behind .bw-hero__media :where(img, svg){
1145
+ inline-size: 100%;
1146
+ block-size: 100%;
1147
+ object-fit: cover;
1148
+ border-radius: 0;
1149
+ }
1150
+
1151
+ /* The scrim,
1152
+ between the media and the copy.
1153
+ *
1154
+ * UNIFORM,
1155
+ not a gradient. A gradient makes the contrast ratio depend on WHERE
1156
+ * a line of text happens to sit,
1157
+ so the guarantee changes with copy length:
1158
+ * measured against a pale illustration,
1159
+ a 45%-at-the-top gradient put the lede
1160
+ * at 4.25:1,
1161
+ under the 4.5:1 floor of WCAG 1.4.3,
1162
+ while the heading lower down
1163
+ * passed. A flat scrim makes the floor unconditional,
1164
+ which is the only way
1165
+ * this band can promise contrast without knowing what media the caller passed.
1166
+ *
1167
+ * 75% is chosen with headroom,
1168
+ not to the millimetre. Against pure white media
1169
+ * (the worst case) the arithmetic minimum that clears 4.5:1 is 60%,
1170
+ but
1171
+ * surface-inverse resolves to var(--bw-color-fg),
1172
+ which a tenant rebrands: a
1173
+ * lighter brand foreground needs a denser scrim to reach the same ratio,
1174
+ and
1175
+ * 75% keeps the promise across plausible rebrands rather than only the shipped
1176
+ * palette. A uniform scrim also needs no [dir="rtl"] mirroring,
1177
+ which a
1178
+ * directional gradient would. */
1179
+ .bw-hero--media-behind .bw-hero__media::after {
1180
+ content: "";
1181
+ position: absolute;
1182
+ inset: 0;
1183
+ background: color-mix(in oklab, var(--bw-color-surface-inverse) 75%, transparent);
1184
+ }
1185
+
1186
+ /* "beside": a true side-by-side row from 48rem up,
1187
+ single column below it.
1188
+ * Mobile-first,
1189
+ so the narrow case needs no rule (ADR-057 section 1: a section
1190
+ * that only works at desktop width is not a shipped section). */
1191
+ @media (width >= --theme(--breakpoint-md)) {
1192
+ .bw-hero--media-beside {
1193
+ display: grid;
1194
+ grid-template-columns: 1fr 1fr;
1195
+ gap: var(--bw-space-8);
1196
+ }
1197
+
1198
+ .bw-hero--media-beside .bw-hero__copy,
1199
+ .bw-hero--media-beside .bw-hero__media {
1200
+ min-inline-size: 0;
1201
+ }
1202
+
1203
+ .bw-hero--media-beside .bw-hero__media {
1204
+ align-self: center;
1205
+ }
1206
+ }
1207
+
1208
+ /* Media shape (#672): circular portrait. Opt-in via media_shape="circle";
1209
+ * omitted/"default" is byte-identical. Caps the media column so a 100%
1210
+ * width circle cannot dominate the band; square crop + full radius so
1211
+ * the portrait survives under media_placement="beside" without a
1212
+ * consumer override fighting the default img radius. SVG carve-out
1213
+ * matches the default media radius rule (img only). */
1214
+ .bw-hero--media-circle .bw-hero__media {
1215
+ max-inline-size: var(--bw-component-hero-media-circle-size);
1216
+ }
1217
+
1218
+ .bw-hero--media-circle .bw-hero__media img {
1219
+ aspect-ratio: 1;
1220
+ object-fit: cover;
1221
+ border-radius: var(--bw-radius-full);
1222
+ }
1223
+
1224
+ .bw-hero--media-behind.bw-hero--media-circle .bw-hero__media img {
1225
+ /* Circle must win over the behind placement's border-radius: 0. */
1226
+ border-radius: var(--bw-radius-full);
1227
+ }
1228
+
1229
+ /* --- Feature grid ------------------------------------------------------------ */
1230
+
1231
+ .bw-feature-grid-section__intro {
1232
+ max-inline-size: var(--bw-size-max-width-prose);
1233
+ margin-block-end: var(--bw-space-8);
1234
+ }
1235
+
1236
+ .bw-feature-grid-section__heading {
1237
+ margin: 0 0 var(--bw-space-2);
1238
+ font-family: var(--bw-text-heading-section-family);
1239
+ font-size: var(--bw-text-heading-section-size);
1240
+ font-weight: var(--bw-text-heading-section-weight);
1241
+ line-height: var(--bw-text-heading-section-line-height);
1242
+ }
1243
+
1244
+ .bw-feature-grid-section__lede {
1245
+ margin: 0;
1246
+ color: var(--bw-color-fg-muted);
1247
+ font-size: var(--bw-text-body-lg-size);
1248
+ line-height: var(--bw-text-body-lg-line-height);
1249
+ }
1250
+
1251
+ .bw-feature-grid {
1252
+ display: grid;
1253
+ grid-template-columns: repeat(1, 1fr);
1254
+ gap: var(--bw-space-6);
1255
+ }
1256
+
1257
+ /* Bordered gap-less variant (#646): cells share one rule (1px gap over the
1258
+ * border colour,
1259
+ strong outer border,
1260
+ no per-card radius or shadow). The
1261
+ * default gapped cards stay byte-identical when variant is omitted. */
1262
+ .bw-feature-grid--bordered {
1263
+ gap: var(--bw-size-border-hairline);
1264
+ background: var(--bw-color-border);
1265
+ border: var(--bw-size-border-thick) solid var(--bw-color-border-strong);
1266
+ }
1267
+
1268
+ @media (width >= --theme(--breakpoint-sm)) {
1269
+ .bw-feature-grid--2 {
1270
+ grid-template-columns: repeat(2, 1fr);
1271
+ }
1272
+ .bw-feature-grid--3 {
1273
+ grid-template-columns: repeat(2, 1fr);
1274
+ }
1275
+ .bw-feature-grid--4 {
1276
+ grid-template-columns: repeat(2, 1fr);
1277
+ }
1278
+ }
1279
+
1280
+ @media (width >= --theme(--breakpoint-lg)) {
1281
+ .bw-feature-grid--3 {
1282
+ grid-template-columns: repeat(3, 1fr);
1283
+ }
1284
+ .bw-feature-grid--4 {
1285
+ grid-template-columns: repeat(4, 1fr);
1286
+ }
1287
+ }
1288
+
1289
+ /* Feature cards inside a feature grid carry a quiet surface role
1290
+ * (icvoss/django-brickwork#510): hairline + elevation-1,
1291
+ not bare
1292
+ * icon-plus-copy. Scoped to the grid so footer link groups that reuse
1293
+ * .bw-feature-card for stacking do not pick up card chrome. Edge and
1294
+ * ambient mirror the zero-kwargs .bw-card craft so tiles read on white. */
1295
+ .bw-feature-grid > .bw-feature-card {
1296
+ display: flex;
1297
+ flex-direction: column;
1298
+ gap: var(--bw-space-3);
1299
+ padding: var(--bw-space-5);
1300
+ background: var(--bw-color-surface-raised);
1301
+ border: var(--bw-size-border-hairline) solid
1302
+ color-mix(in oklab, var(--bw-color-fg) 12%, var(--bw-color-surface-raised));
1303
+ border-radius: var(--bw-radius-lg);
1304
+ box-shadow:
1305
+ var(--bw-elevation-1),
1306
+ 0 4px 14px -4px oklch(0 0 0 / 0.1);
1307
+ transition: var(--bw-transition-shadow);
1308
+ }
1309
+
1310
+ /* Linked feature-grid cards raise one elevation step on hover/focus,
1311
+ with
1312
+ * the same ambient stack as .bw-card--interactive. */
1313
+ .bw-feature-grid > .bw-feature-card--link:hover,
1314
+ .bw-feature-grid > .bw-feature-card--link:focus-visible {
1315
+ box-shadow:
1316
+ var(--bw-elevation-2),
1317
+ 0 8px 20px -6px oklch(0 0 0 / 0.12);
1318
+ }
1319
+
1320
+ /* Bordered cells sit on surface and drop per-card chrome so the shared
1321
+ * rule reads as one grid,
1322
+ not a stack of cards. Hover shifts surface
1323
+ * rather than raising elevation. */
1324
+ .bw-feature-grid--bordered > .bw-feature-card {
1325
+ background: var(--bw-color-surface);
1326
+ border: 0;
1327
+ border-radius: 0;
1328
+ box-shadow: none;
1329
+ transition: var(--bw-transition-colors);
1330
+ }
1331
+
1332
+ .bw-feature-grid--bordered > .bw-feature-card--link:hover,
1333
+ .bw-feature-grid--bordered > .bw-feature-card--link:focus-visible {
1334
+ background: var(--bw-color-surface-sunken);
1335
+ box-shadow: none;
1336
+ }
1337
+
1338
+ .bw-feature-card {
1339
+ display: flex;
1340
+ flex-direction: column;
1341
+ gap: var(--bw-space-3);
1342
+ }
1343
+
1344
+ .bw-feature-card__badge {
1345
+ align-self: flex-start;
1346
+ font-family: var(--bw-text-overline-family);
1347
+ font-size: var(--bw-text-overline-size);
1348
+ font-weight: var(--bw-text-overline-weight);
1349
+ line-height: var(--bw-text-overline-line-height);
1350
+ letter-spacing: var(--bw-text-overline-tracking);
1351
+ text-transform: uppercase;
1352
+ color: var(--bw-color-accent);
1353
+ border: var(--bw-size-border-hairline) solid var(--bw-color-accent);
1354
+ padding: var(--bw-space-1) var(--bw-space-2);
1355
+ }
1356
+
1357
+ .bw-feature-card__eyebrow {
1358
+ margin: 0;
1359
+ color: var(--bw-color-fg-muted);
1360
+ font-family: var(--bw-text-overline-family);
1361
+ font-size: var(--bw-text-overline-size);
1362
+ font-weight: var(--bw-text-overline-weight);
1363
+ line-height: var(--bw-text-overline-line-height);
1364
+ letter-spacing: var(--bw-text-overline-tracking);
1365
+ text-transform: uppercase;
1366
+ }
1367
+
1368
+ .bw-feature-card__icon {
1369
+ color: var(--bw-color-accent);
1370
+ }
1371
+
1372
+ .bw-feature-card__heading {
1373
+ margin: 0;
1374
+ font-family: var(--bw-text-heading-sm-family);
1375
+ font-size: var(--bw-text-heading-sm-size);
1376
+ font-weight: var(--bw-text-heading-sm-weight);
1377
+ line-height: var(--bw-text-heading-sm-line-height);
1378
+ }
1379
+
1380
+ .bw-feature-card__body {
1381
+ margin: 0;
1382
+ color: var(--bw-color-fg-muted);
1383
+ font-size: var(--bw-text-body-md-size);
1384
+ line-height: var(--bw-text-body-md-line-height);
1385
+ }
1386
+
1387
+ /* Meta and CTA sit on a shared baseline at the foot of the card when the
1388
+ * body lengths differ across a row (#641). When both are present,
1389
+ meta
1390
+ * takes the auto push and CTA follows under the card gap. */
1391
+ .bw-feature-card__meta,
1392
+ .bw-feature-card__cta {
1393
+ margin-block-start: auto;
1394
+ }
1395
+
1396
+ .bw-feature-card__meta + .bw-feature-card__cta {
1397
+ margin-block-start: 0;
1398
+ }
1399
+
1400
+ .bw-feature-card__meta {
1401
+ color: var(--bw-color-fg-muted);
1402
+ font-size: var(--bw-text-caption-size);
1403
+ line-height: var(--bw-text-caption-line-height);
1404
+ }
1405
+
1406
+ .bw-feature-card__cta {
1407
+ color: var(--bw-color-accent);
1408
+ font-family: var(--bw-text-overline-family);
1409
+ font-size: var(--bw-text-overline-size);
1410
+ font-weight: var(--bw-text-overline-weight);
1411
+ line-height: var(--bw-text-overline-line-height);
1412
+ letter-spacing: var(--bw-text-overline-tracking);
1413
+ text-transform: uppercase;
1414
+ }
1415
+
1416
+ /* Pending (#641): reduced emphasis via the muted opacity token. Without a
1417
+ * url the card is already non-interactive; with a url it stays a link. */
1418
+ .bw-feature-card--pending {
1419
+ opacity: var(--bw-opacity-muted);
1420
+ }
1421
+
1422
+ .bw-feature-grid--bordered > .bw-feature-card--pending:hover,
1423
+ .bw-feature-grid--bordered > .bw-feature-card--pending:focus-visible {
1424
+ background: var(--bw-color-surface);
1425
+ }
1426
+
1427
+ /* Linked feature card (#99): the whole card is an anchor (a.bw-card's
1428
+ * contract: content keeps its own ink,
1429
+ no underline smears across the card;
1430
+ * the focus ring comes from the global :focus-visible rule). Inside a feature
1431
+ * grid the card also carries the quiet surface chrome above; the hover
1432
+ * affordance remains the marketing kit's link ink treatment on the heading
1433
+ * (accent ink with the standard colour transition). Colour is reinforcement
1434
+ * only; the pointer cursor and focus ring carry the interactivity signal. */
1435
+ .bw-feature-card--link {
1436
+ color: inherit;
1437
+ text-decoration: none;
1438
+ }
1439
+
1440
+ .bw-feature-card--link .bw-feature-card__heading {
1441
+ transition: var(--bw-transition-colors);
1442
+ }
1443
+
1444
+ .bw-feature-card--link:hover .bw-feature-card__heading,
1445
+ .bw-feature-card--link:focus-visible .bw-feature-card__heading {
1446
+ color: var(--bw-color-accent);
1447
+ }
1448
+
1449
+ /* --- Pricing ------------------------------------------------------------------ */
1450
+
1451
+ .bw-pricing-table-section__intro {
1452
+ max-inline-size: var(--bw-size-max-width-prose);
1453
+ margin-block-end: var(--bw-space-6);
1454
+ text-align: center;
1455
+ margin-inline: auto;
1456
+ }
1457
+
1458
+ .bw-pricing-table-section__heading {
1459
+ margin: 0 0 var(--bw-space-2);
1460
+ font-family: var(--bw-text-heading-section-family);
1461
+ font-size: var(--bw-text-heading-section-size);
1462
+ font-weight: var(--bw-text-heading-section-weight);
1463
+ line-height: var(--bw-text-heading-section-line-height);
1464
+ }
1465
+
1466
+ .bw-pricing-table-section__lede {
1467
+ margin: 0;
1468
+ color: var(--bw-color-fg-muted);
1469
+ font-size: var(--bw-text-body-lg-size);
1470
+ line-height: var(--bw-text-body-lg-line-height);
1471
+ }
1472
+
1473
+ .bw-pricing-table {
1474
+ display: grid;
1475
+ grid-template-columns: repeat(1, 1fr);
1476
+ gap: var(--bw-space-6);
1477
+ align-items: stretch;
1478
+ }
1479
+
1480
+ @media (width >= --theme(--breakpoint-md)) {
1481
+ .bw-pricing-table {
1482
+ grid-template-columns: repeat(2, 1fr);
1483
+ }
1484
+ }
1485
+
1486
+ @media (width >= --theme(--breakpoint-lg)) {
1487
+ .bw-pricing-table {
1488
+ grid-template-columns: repeat(3, 1fr);
1489
+ }
1490
+ }
1491
+
1492
+ .bw-pricing-table--single {
1493
+ max-inline-size: 24rem;
1494
+ margin-inline: auto;
1495
+ }
1496
+
1497
+ .bw-pricing-table__note {
1498
+ margin: var(--bw-space-4) 0 0;
1499
+ text-align: center;
1500
+ color: var(--bw-color-fg-muted);
1501
+ font-size: var(--bw-text-caption-size);
1502
+ line-height: var(--bw-text-caption-line-height);
1503
+ }
1504
+
1505
+ .bw-pricing-tier {
1506
+ position: relative;
1507
+ display: flex;
1508
+ flex-direction: column;
1509
+ gap: var(--bw-space-4);
1510
+ background: var(--bw-color-surface);
1511
+ /* Edge and ambient match zero-kwargs .bw-card so tiers read on white. */
1512
+ border: var(--bw-size-border-hairline) solid
1513
+ color-mix(in oklab, var(--bw-color-fg) 12%, var(--bw-color-surface));
1514
+ border-radius: var(--bw-radius-lg);
1515
+ box-shadow:
1516
+ var(--bw-elevation-1),
1517
+ 0 4px 14px -4px oklch(0 0 0 / 0.1);
1518
+ padding: var(--bw-space-6);
1519
+ }
1520
+
1521
+ /* The recommended tier (04-interfaces.md 4d): raised elevation plus an
1522
+ * accent border,
1523
+ never colour alone to signal "recommended" (the badge
1524
+ * text itself carries that meaning; the border/elevation are reinforcement). */
1525
+ .bw-pricing-tier--highlighted {
1526
+ border-color: var(--bw-color-accent);
1527
+ box-shadow:
1528
+ var(--bw-elevation-3),
1529
+ 0 12px 28px -8px oklch(0 0 0 / 0.14);
1530
+ }
1531
+
1532
+ .bw-pricing-tier__badge {
1533
+ position: absolute;
1534
+ inset-block-start: calc(var(--bw-space-4) * -1);
1535
+ inset-inline-start: var(--bw-space-6);
1536
+ }
1537
+
1538
+ .bw-pricing-tier__name {
1539
+ margin: 0;
1540
+ font-family: var(--bw-text-heading-sm-family);
1541
+ font-size: var(--bw-text-heading-sm-size);
1542
+ font-weight: var(--bw-text-heading-sm-weight);
1543
+ line-height: var(--bw-text-heading-sm-line-height);
1544
+ }
1545
+
1546
+ .bw-pricing-tier__description {
1547
+ margin: 0;
1548
+ color: var(--bw-color-fg-muted);
1549
+ font-size: var(--bw-text-body-sm-size);
1550
+ line-height: var(--bw-text-body-sm-line-height);
1551
+ }
1552
+
1553
+ .bw-pricing-tier__price {
1554
+ display: flex;
1555
+ align-items: baseline;
1556
+ gap: var(--bw-space-1);
1557
+ margin: 0;
1558
+ }
1559
+
1560
+ .bw-pricing-tier__price-value {
1561
+ font-size: var(--bw-font-size-3xl);
1562
+ font-weight: var(--bw-font-weight-bold);
1563
+ line-height: var(--bw-font-line-height-tight);
1564
+ font-variant-numeric: tabular-nums;
1565
+ }
1566
+
1567
+ .bw-pricing-tier__price-period {
1568
+ color: var(--bw-color-fg-muted);
1569
+ font-size: var(--bw-text-body-sm-size);
1570
+ }
1571
+
1572
+ .bw-pricing-tier__features {
1573
+ display: flex;
1574
+ flex-direction: column;
1575
+ gap: var(--bw-space-2);
1576
+ margin: 0;
1577
+ padding: 0;
1578
+ list-style: none;
1579
+ flex: 1 1 auto;
1580
+ }
1581
+
1582
+ .bw-pricing-tier__feature {
1583
+ display: flex;
1584
+ align-items: flex-start;
1585
+ gap: var(--bw-space-2);
1586
+ font-size: var(--bw-text-body-sm-size);
1587
+ line-height: var(--bw-text-body-sm-line-height);
1588
+ }
1589
+
1590
+ .bw-pricing-tier__feature-icon {
1591
+ color: var(--bw-color-success);
1592
+ flex-shrink: 0;
1593
+ margin-block-start: 0.15em;
1594
+ }
1595
+
1596
+ .bw-pricing-tier__cta {
1597
+ margin-block-start: auto;
1598
+ padding-block-start: var(--bw-space-2);
1599
+ }
1600
+
1601
+ .bw-pricing-tier__cta .bw-btn {
1602
+ inline-size: 100%;
1603
+ }
1604
+
1605
+ /* --- CTA band ------------------------------------------------------------------ */
1606
+
1607
+ .bw-cta {
1608
+ padding-block: var(--bw-space-8);
1609
+ border-radius: var(--bw-radius-xl);
1610
+ text-align: center;
1611
+ }
1612
+
1613
+ /* Tinted band background: the subtle marketing surface token,
1614
+ contrast-checked
1615
+ * in both themes (BR-BW-MKT-002). Edge and ambient so the tint reads on white
1616
+ * without relying on fill alone; bleed keeps radius 0 via .bw-cta--bleed. */
1617
+ .bw-cta--tint {
1618
+ background: var(--bw-color-surface-marketing-tint);
1619
+ border: var(--bw-size-border-hairline) solid
1620
+ color-mix(in oklab, var(--bw-color-fg) 12%, var(--bw-color-surface-marketing-tint));
1621
+ box-shadow:
1622
+ var(--bw-elevation-1),
1623
+ 0 4px 14px -4px oklch(0 0 0 / 0.1);
1624
+ padding-inline: var(--bw-space-8);
1625
+ }
1626
+
1627
+ /* width="bleed" CTA extras on top of the shared .bw-section--bleed /
1628
+ * .bw-cta--bleed escape (#667). Declared AFTER .bw-cta--tint so a tinted
1629
+ * full-bleed band takes THIS rule's inline gutter rather than tint's
1630
+ * --bw-space-8 (specificity-tie / source-order,
1631
+ ADR-057 §1a). CTA keeps
1632
+ * gutter on the outer because its __inner is the prose measure,
1633
+ not the
1634
+ * marketing rail; custom bands using .bw-section put gutter on __inner. */
1635
+ .bw-cta--bleed {
1636
+ padding-inline: var(--bw-density-page-gutter-inline);
1637
+ border-radius: 0;
1638
+ }
1639
+
1640
+ .bw-cta__inner {
1641
+ display: flex;
1642
+ flex-direction: column;
1643
+ align-items: center;
1644
+ gap: var(--bw-space-4);
1645
+ max-inline-size: var(--bw-size-max-width-prose);
1646
+ margin-inline: auto;
1647
+ }
1648
+
1649
+ .bw-cta__heading {
1650
+ margin: 0;
1651
+ font-family: var(--bw-text-heading-section-family);
1652
+ font-size: var(--bw-text-heading-section-size);
1653
+ font-weight: var(--bw-text-heading-section-weight);
1654
+ line-height: var(--bw-text-heading-section-line-height);
1655
+ text-wrap: balance;
1656
+ }
1657
+
1658
+ .bw-cta__body {
1659
+ margin: 0;
1660
+ color: var(--bw-color-fg-muted);
1661
+ font-size: var(--bw-text-body-lg-size);
1662
+ line-height: var(--bw-text-body-lg-line-height);
1663
+ text-wrap: pretty;
1664
+ }
1665
+
1666
+ .bw-cta__actions {
1667
+ display: flex;
1668
+ flex-wrap: wrap;
1669
+ justify-content: center;
1670
+ gap: var(--bw-space-3);
1671
+ }
1672
+
1673
+ /* align="start" (#697): quiet contact-foot stack. Centre remains the
1674
+ * default (no modifier). Pair with band="plain" for a soft left close. */
1675
+ .bw-cta--align-start {
1676
+ text-align: start;
1677
+ }
1678
+
1679
+ .bw-cta--align-start .bw-cta__inner {
1680
+ align-items: flex-start;
1681
+ margin-inline: 0;
1682
+ }
1683
+
1684
+ .bw-cta--align-start .bw-cta__actions {
1685
+ justify-content: flex-start;
1686
+ }
1687
+
1688
+ /* --- Testimonial ---------------------------------------------------------------- */
1689
+
1690
+ /* No blanket `margin: 0` on the root (#86): that reset ties with the shell's
1691
+ * `.bw-marketing__content > * + *` section-gap rule on specificity and,
1692
+ being
1693
+ * later in source order,
1694
+ wins the tie,
1695
+ permanently zeroing the section gap
1696
+ * above any composed testimonial (the stat-band/testimonial collision). The
1697
+ * UA <figure> block margins are neutralised at ZERO specificity instead,
1698
+ so
1699
+ * the shell's section rhythm always wins when the testimonial is composed as
1700
+ * a marketing section,
1701
+ and a one-class consumer override still wins here. */
1702
+ :where(.bw-testimonial) {
1703
+ margin-block: 0;
1704
+ }
1705
+
1706
+ .bw-testimonial {
1707
+ display: flex;
1708
+ flex-direction: column;
1709
+ gap: var(--bw-space-6);
1710
+ background: var(--bw-color-surface);
1711
+ /* Edge and ambient match zero-kwargs .bw-card so quotes read on white. */
1712
+ border: var(--bw-size-border-hairline) solid
1713
+ color-mix(in oklab, var(--bw-color-fg) 12%, var(--bw-color-surface));
1714
+ border-radius: var(--bw-radius-lg);
1715
+ box-shadow:
1716
+ var(--bw-elevation-1),
1717
+ 0 4px 14px -4px oklch(0 0 0 / 0.1);
1718
+ padding: var(--bw-space-8);
1719
+ max-inline-size: var(--bw-size-max-width-prose);
1720
+ margin-inline: auto;
1721
+ }
1722
+
1723
+ .bw-testimonial__quote {
1724
+ margin: 0;
1725
+ font-family: var(--bw-text-heading-sm-family);
1726
+ font-size: var(--bw-text-heading-sm-size);
1727
+ font-weight: var(--bw-font-weight-medium);
1728
+ line-height: var(--bw-text-heading-lg-line-height);
1729
+ text-wrap: pretty;
1730
+ }
1731
+
1732
+ .bw-testimonial__quote p {
1733
+ margin: 0;
1734
+ }
1735
+
1736
+ .bw-testimonial__quote p::before {
1737
+ content: "\201C";
1738
+ }
1739
+
1740
+ .bw-testimonial__quote p::after {
1741
+ content: "\201D";
1742
+ }
1743
+
1744
+ .bw-testimonial__attribution {
1745
+ display: flex;
1746
+ align-items: center;
1747
+ gap: var(--bw-space-3);
1748
+ }
1749
+
1750
+ .bw-testimonial__avatar {
1751
+ inline-size: var(--bw-space-10);
1752
+ block-size: var(--bw-space-10);
1753
+ border-radius: var(--bw-radius-full);
1754
+ object-fit: cover;
1755
+ flex-shrink: 0;
1756
+ }
1757
+
1758
+ .bw-testimonial__attribution-text {
1759
+ display: flex;
1760
+ flex-direction: column;
1761
+ }
1762
+
1763
+ .bw-testimonial__author {
1764
+ font-weight: var(--bw-font-weight-semibold);
1765
+ }
1766
+
1767
+ .bw-testimonial__role {
1768
+ color: var(--bw-color-fg-muted);
1769
+ font-size: var(--bw-text-caption-size);
1770
+ }
1771
+
1772
+ .bw-testimonial__logo {
1773
+ margin-inline-start: auto;
1774
+ }
1775
+
1776
+ .bw-testimonial__logo :where(img, svg){
1777
+ block-size: var(--bw-space-6);
1778
+ inline-size: auto;
1779
+ }
1780
+
1781
+ /* --- Logo cloud ------------------------------------------------------------------ */
1782
+
1783
+ .bw-logo-cloud {
1784
+ display: flex;
1785
+ flex-direction: column;
1786
+ align-items: center;
1787
+ gap: var(--bw-space-6);
1788
+ text-align: center;
1789
+ }
1790
+
1791
+ .bw-logo-cloud__heading {
1792
+ margin: 0;
1793
+ color: var(--bw-color-fg-muted);
1794
+ font-family: var(--bw-text-overline-family);
1795
+ font-size: var(--bw-text-caption-size);
1796
+ font-weight: var(--bw-text-overline-weight);
1797
+ letter-spacing: var(--bw-text-overline-tracking);
1798
+ text-transform: uppercase;
1799
+ }
1800
+
1801
+ .bw-logo-cloud__grid {
1802
+ display: flex;
1803
+ flex-wrap: wrap;
1804
+ justify-content: center;
1805
+ align-items: center;
1806
+ gap: var(--bw-space-8);
1807
+ }
1808
+
1809
+ .bw-logo-cloud__logo {
1810
+ block-size: var(--bw-space-8);
1811
+ inline-size: auto;
1812
+ object-fit: contain;
1813
+ }
1814
+
1815
+ /* Purely decorative (never the sole signal of anything); colour-on-hover,
1816
+ so
1817
+ * a greyscale logo is still perfectly legible without the effect. */
1818
+ .bw-logo-cloud--greyscale .bw-logo-cloud__logo {
1819
+ filter: grayscale(100%);
1820
+ opacity: var(--bw-opacity-muted);
1821
+ transition: var(--bw-transition-colors);
1822
+ }
1823
+
1824
+ .bw-logo-cloud--greyscale .bw-logo-cloud__logo:hover {
1825
+ filter: grayscale(0%);
1826
+ opacity: 1;
1827
+ }
1828
+
1829
+ @media (prefers-reduced-motion: reduce) {
1830
+ .bw-logo-cloud--greyscale .bw-logo-cloud__logo {
1831
+ transition: none;
1832
+ }
1833
+ }
1834
+
1835
+ /* --- Stat band --------------------------------------------------------------------- */
1836
+
1837
+ /* Soft band surface so stats read as a distinct act between features and
1838
+ * testimonial (icvoss/django-brickwork#510),
1839
+ using the marketing tint token
1840
+ * already contrast-checked for CTA bands. Edge and a light ambient keep the
1841
+ * band from dissolving into a white page. */
1842
+ .bw-stat-band-section {
1843
+ text-align: center;
1844
+ padding-block: var(--bw-space-10);
1845
+ padding-inline: var(--bw-space-6);
1846
+ background: var(--bw-color-surface-marketing-tint);
1847
+ border: var(--bw-size-border-hairline) solid
1848
+ color-mix(in oklab, var(--bw-color-fg) 12%, var(--bw-color-surface-marketing-tint));
1849
+ border-radius: var(--bw-radius-xl);
1850
+ box-shadow:
1851
+ var(--bw-elevation-1),
1852
+ 0 4px 14px -4px oklch(0 0 0 / 0.1);
1853
+ }
1854
+
1855
+ /* align="start" (#673): airy proof-band layout. The default (omitted /
1856
+ * "center") emits no modifier and stays the centred KPI layout above. */
1857
+ .bw-stat-band-section--align-start {
1858
+ text-align: start;
1859
+ }
1860
+
1861
+ .bw-stat-band-section__heading {
1862
+ margin: 0 0 var(--bw-space-6);
1863
+ font-family: var(--bw-text-heading-section-family);
1864
+ font-size: var(--bw-text-heading-section-size);
1865
+ font-weight: var(--bw-text-heading-section-weight);
1866
+ line-height: var(--bw-text-heading-section-line-height);
1867
+ }
1868
+
1869
+ /* Display-scale band,
1870
+ distinct from patterns/dashboard.html's dense KPI grid
1871
+ * (bw-stat-grid): fewer,
1872
+ larger tiles read as a marketing statement,
1873
+ so the
1874
+ * band uses a wider auto-fit floor and centres its tiles (composes
1875
+ * _stat.html's own tile shape unchanged,
1876
+ BR-BW-MKT-004). */
1877
+ .bw-stat-band {
1878
+ display: grid;
1879
+ grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
1880
+ gap: var(--bw-space-6);
1881
+ justify-items: center;
1882
+ }
1883
+
1884
+ .bw-stat-band-section--align-start .bw-stat-band {
1885
+ justify-items: start;
1886
+ }
1887
+
1888
+ /* Tile craft is scoped to the marketing band only; global .bw-stat is
1889
+ * unchanged in this pass (Phase A.3). */
1890
+ .bw-stat-band .bw-stat {
1891
+ text-align: center;
1892
+ align-items: center;
1893
+ inline-size: 100%;
1894
+ max-inline-size: 20rem;
1895
+ border: var(--bw-size-border-hairline) solid
1896
+ color-mix(in oklab, var(--bw-color-fg) 12%, var(--bw-color-surface));
1897
+ box-shadow:
1898
+ var(--bw-elevation-1),
1899
+ 0 4px 14px -4px oklch(0 0 0 / 0.1);
1900
+ }
1901
+
1902
+ .bw-stat-band-section--align-start .bw-stat-band .bw-stat {
1903
+ text-align: start;
1904
+ align-items: flex-start;
1905
+ }
1906
+
1907
+ /* chrome="plain" (#694): strip the marketing band's re-applied card edge
1908
+ * so proof figures stay bare when the tile itself opts out of chrome. */
1909
+ .bw-stat-band .bw-stat--chrome-plain {
1910
+ border: none;
1911
+ box-shadow: none;
1912
+ background: transparent;
1913
+ padding: 0;
1914
+ max-inline-size: none;
1915
+ }
1916
+
1917
+ /* --- FAQ ------------------------------------------------------------------------------ */
1918
+
1919
+ .bw-faq-section {
1920
+ max-inline-size: var(--bw-size-max-width-prose);
1921
+ margin-inline: auto;
1922
+ }
1923
+
1924
+ .bw-faq-section__heading {
1925
+ margin: 0 0 var(--bw-space-4);
1926
+ font-size: var(--bw-text-heading-section-size);
1927
+ font-weight: var(--bw-text-heading-section-weight);
1928
+ line-height: var(--bw-text-heading-section-line-height);
1929
+ text-align: center;
1930
+ }
1931
+
1932
+ .bw-faq-section__list {
1933
+ display: flex;
1934
+ flex-direction: column;
1935
+ }
1936
+
1937
+ /* Features / simple list --------------------------------------------------- */
1938
+
1939
+ .bw-feature-list-section {
1940
+ display: flex;
1941
+ flex-direction: column;
1942
+ }
1943
+
1944
+ .bw-feature-list-section__heading {
1945
+ margin: 0 0 var(--bw-space-6);
1946
+ font-size: var(--bw-text-heading-section-size);
1947
+ font-weight: var(--bw-text-heading-section-weight);
1948
+ line-height: var(--bw-text-heading-section-line-height);
1949
+ letter-spacing: var(--bw-text-heading-section-tracking);
1950
+ }
1951
+
1952
+ .bw-feature-list {
1953
+ display: grid;
1954
+ grid-template-columns: 1fr;
1955
+ gap: var(--bw-space-3);
1956
+ margin: 0;
1957
+ /* The list markup stays a <ul> for its semantics; the bullets go because the
1958
+ * tick icon is the marker. */
1959
+ padding: 0;
1960
+ list-style: none;
1961
+ }
1962
+
1963
+ .bw-feature-list__item {
1964
+ display: flex;
1965
+ align-items: flex-start;
1966
+ gap: var(--bw-space-3);
1967
+ font-size: var(--bw-text-body-md-size);
1968
+ line-height: var(--bw-text-body-md-line-height);
1969
+ }
1970
+
1971
+ .bw-feature-list__marker {
1972
+ color: var(--bw-color-success);
1973
+ /* Optical alignment: the tick centres on the first LINE of a wrapping item
1974
+ * rather than on the item box, which would drift down as the text wraps. */
1975
+ margin-block-start: 0.15em;
1976
+ }
1977
+
1978
+ @media (width >= --theme(--breakpoint-sm)) {
1979
+ .bw-feature-list {
1980
+ grid-template-columns: 1fr 1fr;
1981
+ gap: var(--bw-space-4) var(--bw-space-8);
1982
+ }
1983
+ }
1984
+
1985
+ /* Features / alternating rows ---------------------------------------------- */
1986
+
1987
+ .bw-feature-rows {
1988
+ display: flex;
1989
+ flex-direction: column;
1990
+ gap: var(--bw-space-12);
1991
+ }
1992
+
1993
+ .bw-feature-rows__heading {
1994
+ margin: 0;
1995
+ font-size: var(--bw-text-heading-section-size);
1996
+ font-weight: var(--bw-text-heading-section-weight);
1997
+ line-height: var(--bw-text-heading-section-line-height);
1998
+ letter-spacing: var(--bw-text-heading-section-tracking);
1999
+ text-wrap: balance;
2000
+ }
2001
+
2002
+ .bw-feature-row {
2003
+ display: grid;
2004
+ grid-template-columns: 1fr;
2005
+ gap: var(--bw-space-6);
2006
+ align-items: center;
2007
+ /* Grid items default to min-width: auto (content min-size). Full-page
2008
+ specimens inside media (min-inline-size ~64rem) would otherwise expand
2009
+ the page and fail mobile sideways-scroll gates. */
2010
+ min-inline-size: 0;
2011
+ }
2012
+
2013
+ .bw-feature-row__copy {
2014
+ display: flex;
2015
+ flex-direction: column;
2016
+ gap: var(--bw-space-3);
2017
+ max-inline-size: var(--bw-size-max-width-prose);
2018
+ min-inline-size: 0;
2019
+ }
2020
+
2021
+ .bw-feature-row__title {
2022
+ margin: 0;
2023
+ font-size: var(--bw-text-heading-lg-size);
2024
+ font-weight: var(--bw-text-heading-lg-weight);
2025
+ line-height: var(--bw-text-heading-lg-line-height);
2026
+ }
2027
+
2028
+ .bw-feature-row__body {
2029
+ margin: 0;
2030
+ color: var(--bw-color-fg-muted);
2031
+ line-height: var(--bw-text-body-lg-line-height);
2032
+ text-wrap: pretty;
2033
+ }
2034
+
2035
+ .bw-feature-row__media {
2036
+ min-inline-size: 0;
2037
+ max-inline-size: 100%;
2038
+ overflow: auto;
2039
+ }
2040
+
2041
+ .bw-feature-row__media :where(img, svg){
2042
+ display: block;
2043
+ inline-size: 100%;
2044
+ block-size: auto;
2045
+ border-radius: var(--bw-radius-lg);
2046
+ }
2047
+
2048
+ @media (width >= --theme(--breakpoint-md)) {
2049
+ .bw-feature-row {
2050
+ grid-template-columns: 1fr 1fr;
2051
+ gap: var(--bw-space-12);
2052
+ }
2053
+
2054
+ /* The zig-zag. Applied ONLY at this breakpoint and above, and done with grid
2055
+ * placement rather than by reordering the markup, so the DOM order (copy,
2056
+ * then media) is the reading and tab order on every row. Below this width
2057
+ * every row stacks copy-first, because a media-first stack would drop a
2058
+ * picture between a heading and its own paragraph. */
2059
+ .bw-feature-row:nth-child(even) .bw-feature-row__copy {
2060
+ grid-column: 2;
2061
+ grid-row: 1;
2062
+ }
2063
+
2064
+ .bw-feature-row:nth-child(even) .bw-feature-row__media {
2065
+ grid-column: 1;
2066
+ grid-row: 1;
2067
+ }
2068
+ }
2069
+
2070
+ /* CTA / split -------------------------------------------------------------- */
2071
+
2072
+ .bw-cta-split {
2073
+ display: flex;
2074
+ flex-direction: column;
2075
+ align-items: flex-start;
2076
+ gap: var(--bw-space-6);
2077
+ padding: var(--bw-space-8);
2078
+ border: var(--bw-size-border-hairline) solid var(--bw-color-border);
2079
+ border-radius: var(--bw-radius-xl);
2080
+ background: var(--bw-color-surface-sunken);
2081
+ }
2082
+
2083
+ .bw-cta-split__copy {
2084
+ display: flex;
2085
+ flex-direction: column;
2086
+ gap: var(--bw-space-2);
2087
+ max-inline-size: var(--bw-size-max-width-prose);
2088
+ }
2089
+
2090
+ .bw-cta-split__heading {
2091
+ margin: 0;
2092
+ font-size: var(--bw-text-heading-lg-size);
2093
+ font-weight: var(--bw-text-heading-lg-weight);
2094
+ line-height: var(--bw-text-heading-lg-line-height);
2095
+ }
2096
+
2097
+ .bw-cta-split__body {
2098
+ margin: 0;
2099
+ color: var(--bw-color-fg-muted);
2100
+ text-wrap: pretty;
2101
+ }
2102
+
2103
+ .bw-cta-split__actions {
2104
+ flex-shrink: 0;
2105
+ }
2106
+
2107
+ @media (width >= --theme(--breakpoint-md)) {
2108
+ .bw-cta-split {
2109
+ flex-direction: row;
2110
+ align-items: center;
2111
+ justify-content: space-between;
2112
+ gap: var(--bw-space-8);
2113
+ }
2114
+ }
2115
+
2116
+ /* CTA / full-bleed --------------------------------------------------------- */
2117
+
2118
+ /* Escape size/margin come from the shared .bw-section--bleed / .bw-cta-bleed
2119
+ * rule (#667). This block keeps the inverse band treatment and its own
2120
+ * gutter (prose __inner,
2121
+ same shape as .bw-cta--bleed). */
2122
+ .bw-cta-bleed {
2123
+ padding-block: var(--bw-space-16);
2124
+ /* Its own gutter: having escaped the shell's, the copy would otherwise touch
2125
+ * the viewport edge on a phone. */
2126
+ padding-inline: var(--bw-density-page-gutter-inline);
2127
+ background: var(--bw-color-surface-inverse);
2128
+ color: var(--bw-color-fg-on-inverse);
2129
+ }
2130
+
2131
+ .bw-cta-bleed__inner {
2132
+ display: flex;
2133
+ flex-direction: column;
2134
+ align-items: center;
2135
+ gap: var(--bw-space-4);
2136
+ max-inline-size: var(--bw-size-max-width-prose);
2137
+ margin-inline: auto;
2138
+ text-align: center;
2139
+ }
2140
+
2141
+ .bw-cta-bleed__heading {
2142
+ margin: 0;
2143
+ color: var(--bw-color-fg-on-inverse);
2144
+ font-family: var(--bw-text-heading-display-family);
2145
+ font-size: clamp(1.75rem, 6vw, var(--bw-font-size-3xl));
2146
+ overflow-wrap: break-word;
2147
+ font-weight: var(--bw-text-heading-display-weight);
2148
+ line-height: var(--bw-text-heading-display-line-height);
2149
+ letter-spacing: var(--bw-text-heading-display-tracking);
2150
+ text-wrap: balance;
2151
+ }
2152
+
2153
+ .bw-cta-bleed__body {
2154
+ margin: 0;
2155
+ color: var(--bw-color-fg-on-inverse);
2156
+ opacity: 0.9;
2157
+ font-size: var(--bw-text-body-lg-size);
2158
+ text-wrap: pretty;
2159
+ }
2160
+
2161
+ .bw-cta-bleed__actions {
2162
+ display: flex;
2163
+ flex-wrap: wrap;
2164
+ align-items: center;
2165
+ justify-content: center;
2166
+ gap: var(--bw-space-5);
2167
+ margin-block-start: var(--bw-space-2);
2168
+ }
2169
+
2170
+ /* The quiet second action. A plain link rather than a secondary button: the
2171
+ * secondary button's border colour is tuned for the page surface and reads as
2172
+ * a smudge on the inverse band. Underlined,
2173
+ so it is not colour-only. */
2174
+ .bw-cta-bleed__link {
2175
+ color: var(--bw-color-fg-on-inverse);
2176
+ text-decoration: underline;
2177
+ text-underline-offset: 0.2em;
2178
+ font-weight: var(--bw-font-weight-medium);
2179
+ }
2180
+
2181
+ /* Content / media and text ------------------------------------------------- */
2182
+
2183
+ .bw-media-text {
2184
+ display: grid;
2185
+ grid-template-columns: 1fr;
2186
+ gap: var(--bw-space-8);
2187
+ align-items: center;
2188
+ }
2189
+
2190
+ .bw-media-text__figure {
2191
+ margin: 0;
2192
+ display: flex;
2193
+ flex-direction: column;
2194
+ gap: var(--bw-space-2);
2195
+ }
2196
+
2197
+ .bw-media-text__figure :where(img, svg){
2198
+ display: block;
2199
+ inline-size: 100%;
2200
+ block-size: auto;
2201
+ border-radius: var(--bw-radius-lg);
2202
+ }
2203
+
2204
+ .bw-media-text__figure :where(figcaption) {
2205
+ color: var(--bw-color-fg-muted);
2206
+ font-size: var(--bw-text-caption-size);
2207
+ line-height: var(--bw-text-caption-line-height);
2208
+ }
2209
+
2210
+ @media (width >= --theme(--breakpoint-md)) {
2211
+ .bw-media-text {
2212
+ grid-template-columns: 1fr 1fr;
2213
+ gap: var(--bw-space-12);
2214
+ }
2215
+ }
2216
+
2217
+ /* Content / prose section -------------------------------------------------- */
2218
+
2219
+ .bw-content-section > .bw-prose {
2220
+ margin-inline: auto;
2221
+ }
2222
+
2223
+ /* --- Pricing / single plan ---------------------------------------------------- */
2224
+
2225
+ /* The one-plan shape: no table,
2226
+ because there is nothing to compare. The card
2227
+ * is capped at prose width and centred so it does not stretch into a banner on
2228
+ * a wide viewport. */
2229
+ .bw-single-plan__intro {
2230
+ max-inline-size: var(--bw-size-max-width-prose);
2231
+ margin-inline: auto;
2232
+ margin-block-end: var(--bw-space-8);
2233
+ text-align: center;
2234
+ }
2235
+
2236
+ .bw-single-plan__heading {
2237
+ margin: 0;
2238
+ font-size: var(--bw-text-heading-section-size);
2239
+ font-weight: var(--bw-text-heading-section-weight);
2240
+ line-height: var(--bw-text-heading-section-line-height);
2241
+ letter-spacing: var(--bw-text-heading-section-tracking);
2242
+ }
2243
+
2244
+ .bw-single-plan__lede {
2245
+ margin: var(--bw-space-3) 0 0;
2246
+ color: var(--bw-color-fg-muted);
2247
+ text-wrap: pretty;
2248
+ }
2249
+
2250
+ .bw-single-plan__card {
2251
+ max-inline-size: 26rem;
2252
+ margin-inline: auto;
2253
+ }
2254
+
2255
+ /* The "what is included" list sits under the card rather than inside it,
2256
+ so the
2257
+ * card stays a price and an action while the list can run two-up on a wide
2258
+ * screen (the base .bw-feature-list already does that at 48rem). */
2259
+ .bw-single-plan__includes {
2260
+ max-inline-size: var(--bw-size-max-width-prose);
2261
+ margin-block-start: var(--bw-space-8);
2262
+ margin-inline: auto;
2263
+ }
2264
+
2265
+ .bw-single-plan__note {
2266
+ margin: var(--bw-space-6) 0 0;
2267
+ color: var(--bw-color-fg-muted);
2268
+ font-size: var(--bw-text-body-sm-size);
2269
+ text-align: center;
2270
+ }
2271
+
2272
+ /* Pricing / comparison table CSS lives in components.css as
2273
+ * .bw-comparison-table* (icvoss/django-brickwork#626),
2274
+ with
2275
+ * .bw-pricing-comparison* kept as aliases for hand-authored markup.
2276
+ */
2277
+
2278
+ /* --- FAQ / two column ----------------------------------------------------------- */
2279
+
2280
+ .bw-faq-columns__heading {
2281
+ margin: 0 0 var(--bw-space-8);
2282
+ font-size: var(--bw-text-heading-section-size);
2283
+ font-weight: var(--bw-text-heading-section-weight);
2284
+ line-height: var(--bw-text-heading-section-line-height);
2285
+ letter-spacing: var(--bw-text-heading-section-tracking);
2286
+ }
2287
+
2288
+ /* One column on a phone,
2289
+ two from 48rem. Each column is its own exclusive
2290
+ * <details> group in the markup,
2291
+ so opening a question on the right cannot
2292
+ * close one off-screen on the left. */
2293
+ .bw-faq-columns__grid {
2294
+ display: grid;
2295
+ grid-template-columns: 1fr;
2296
+ gap: var(--bw-space-4) var(--bw-space-8);
2297
+ align-items: start;
2298
+ }
2299
+
2300
+ @media (width >= --theme(--breakpoint-md)) {
2301
+ .bw-faq-columns__grid {
2302
+ grid-template-columns: 1fr 1fr;
2303
+ }
2304
+ }
2305
+
2306
+ .bw-faq-columns__column {
2307
+ display: grid;
2308
+ gap: var(--bw-space-4);
2309
+ align-content: start;
2310
+ }
2311
+
2312
+ /* --- Testimonial / quote grid ---------------------------------------------------- */
2313
+
2314
+ .bw-testimonial-grid-section__heading {
2315
+ margin: 0 0 var(--bw-space-8);
2316
+ font-size: var(--bw-text-heading-section-size);
2317
+ font-weight: var(--bw-text-heading-section-weight);
2318
+ line-height: var(--bw-text-heading-section-line-height);
2319
+ letter-spacing: var(--bw-text-heading-section-tracking);
2320
+ }
2321
+
2322
+ .bw-testimonial-grid {
2323
+ display: grid;
2324
+ grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
2325
+ gap: var(--bw-space-6);
2326
+ align-items: start;
2327
+ }
2328
+
2329
+ /* .bw-testimonial caps itself at prose width and centres,
2330
+ which is right for a
2331
+ * lone quote and wrong inside a grid track: it would leave gaps between the
2332
+ * cards. The track is the constraint here. */
2333
+ .bw-testimonial-grid .bw-testimonial {
2334
+ max-inline-size: none;
2335
+ margin-inline: 0;
2336
+ block-size: 100%;
2337
+ }
2338
+
2339
+ /* --- Testimonial / logo and quote ------------------------------------------------ */
2340
+
2341
+ .bw-testimonial-logo {
2342
+ display: flex;
2343
+ flex-direction: column;
2344
+ align-items: center;
2345
+ gap: var(--bw-space-6);
2346
+ }
2347
+
2348
+ /* The mark carries a viewBox and no intrinsic width,
2349
+ so the cap lives here.
2350
+ * currentColor in the SVG resolves through this rule's inherited ink,
2351
+ which is
2352
+ * what lets one file work in both themes. */
2353
+ .bw-testimonial-logo__mark {
2354
+ color: var(--bw-color-fg-muted);
2355
+ inline-size: 100%;
2356
+ max-inline-size: 10rem;
2357
+ }
2358
+
2359
+ .bw-testimonial-logo__mark svg {
2360
+ inline-size: 100%;
2361
+ block-size: auto;
2362
+ }
2363
+
2364
+ /* --- Stats / card row ------------------------------------------------------------ */
2365
+
2366
+ .bw-stat-cards-section__heading {
2367
+ margin: 0 0 var(--bw-space-8);
2368
+ font-size: var(--bw-text-heading-section-size);
2369
+ font-weight: var(--bw-text-heading-section-weight);
2370
+ line-height: var(--bw-text-heading-section-line-height);
2371
+ letter-spacing: var(--bw-text-heading-section-tracking);
2372
+ }
2373
+
2374
+ .bw-stat-cards {
2375
+ display: grid;
2376
+ grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
2377
+ gap: var(--bw-space-6);
2378
+ }
2379
+
2380
+ /* The card treatment the bare .bw-stat-band deliberately does not carry: this
2381
+ * variant exists for pages with no other card content,
2382
+ where a naked number
2383
+ * band reads as unfinished. */
2384
+ .bw-stat-card {
2385
+ display: flex;
2386
+ flex-direction: column;
2387
+ gap: var(--bw-space-2);
2388
+ padding: var(--bw-space-8);
2389
+ border: var(--bw-size-border-hairline) solid var(--bw-color-border);
2390
+ border-radius: var(--bw-radius-lg);
2391
+ background: var(--bw-color-surface-raised);
2392
+ box-shadow: var(--bw-elevation-1);
2393
+ }
2394
+
2395
+ .bw-stat-card__value {
2396
+ margin: 0;
2397
+ font-size: var(--bw-text-heading-xl-size);
2398
+ font-weight: var(--bw-text-heading-xl-weight);
2399
+ line-height: var(--bw-text-heading-xl-line-height);
2400
+ /* Lining figures so a column of numbers aligns on the digit, not the glyph. */
2401
+ font-variant-numeric: tabular-nums;
2402
+ }
2403
+
2404
+ .bw-stat-card__label {
2405
+ margin: 0;
2406
+ color: var(--bw-color-fg);
2407
+ text-wrap: pretty;
2408
+ }
2409
+
2410
+ /* Pushed to the bottom so the notes sit on one baseline across a row whose
2411
+ * labels wrap to different heights. */
2412
+ .bw-stat-card__note {
2413
+ margin: 0;
2414
+ margin-block-start: auto;
2415
+ padding-block-start: var(--bw-space-2);
2416
+ color: var(--bw-color-fg-muted);
2417
+ font-size: var(--bw-text-caption-size);
2418
+ }
2419
+
2420
+ /* --- Listing ------------------------------------------------------------------ */
2421
+
2422
+ /* The three listing variants (card grid,
2423
+ media list,
2424
+ compact table) share this
2425
+ * section wrapper and NOTHING else: the shared thing between them turned out
2426
+ * to be the entry contract,
2427
+ not the layout,
2428
+ which is why no grid component was
2429
+ * promoted out of them. See the comment in examples/sections/listing/
2430
+ * media-list.html for that reasoning in full. */
2431
+ .bw-listing-section__intro {
2432
+ max-inline-size: var(--bw-size-max-width-prose);
2433
+ margin-block-end: var(--bw-space-6);
2434
+ }
2435
+
2436
+ .bw-listing-section__heading {
2437
+ margin: 0;
2438
+ font-size: var(--bw-text-heading-section-size);
2439
+ font-weight: var(--bw-text-heading-section-weight);
2440
+ line-height: var(--bw-text-heading-section-line-height);
2441
+ }
2442
+
2443
+ .bw-listing-section__lede {
2444
+ margin: var(--bw-space-2) 0 0;
2445
+ color: var(--bw-color-fg-muted);
2446
+ text-wrap: pretty;
2447
+ }
2448
+
2449
+ /* Listing / card grid ------------------------------------------------------ */
2450
+
2451
+ /* The same auto-fit idiom as .bw-stat-grid and .bw-stat-band,
2452
+ with a wider
2453
+ * floor: a card carrying a title and a summary paragraph stops reading as a
2454
+ * card below about 18rem. min() keeps a single column on viewports narrower
2455
+ * than one card,
2456
+ which is what makes this mobile-first with no breakpoint. */
2457
+ .bw-listing-grid {
2458
+ display: grid;
2459
+ grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
2460
+ gap: var(--bw-space-6);
2461
+ }
2462
+
2463
+ /* The whole card is an anchor,
2464
+ so it follows a.bw-card's contract exactly as
2465
+ * .bw-feature-card--link does: content keeps its own ink,
2466
+ no underline smears
2467
+ * across the card,
2468
+ and the focus ring comes from the global :focus-visible
2469
+ * rule. Unlike the chrome-less feature card this one has a surface,
2470
+ so the
2471
+ * hover affordance is the elevation raise (shadow only,
2472
+ never a transform,
2473
+ * per MOT-010). */
2474
+ .bw-listing-card {
2475
+ display: flex;
2476
+ flex-direction: column;
2477
+ align-items: flex-start;
2478
+ gap: var(--bw-space-2);
2479
+ padding: var(--bw-space-6);
2480
+ border: var(--bw-size-border-hairline) solid var(--bw-color-border);
2481
+ border-radius: var(--bw-radius-lg);
2482
+ background: var(--bw-color-surface-raised);
2483
+ box-shadow: var(--bw-elevation-1);
2484
+ color: inherit;
2485
+ text-decoration: none;
2486
+ transition: var(--bw-transition-shadow);
2487
+ }
2488
+
2489
+ .bw-listing-card:hover,
2490
+ .bw-listing-card:focus-visible {
2491
+ box-shadow: var(--bw-elevation-2);
2492
+ }
2493
+
2494
+ .bw-listing-card__tag {
2495
+ font-size: var(--bw-text-overline-size);
2496
+ font-weight: var(--bw-text-overline-weight);
2497
+ line-height: var(--bw-text-overline-line-height);
2498
+ letter-spacing: var(--bw-text-overline-tracking);
2499
+ text-transform: uppercase;
2500
+ color: var(--bw-color-accent);
2501
+ }
2502
+
2503
+ .bw-listing-card__title {
2504
+ margin: 0;
2505
+ font-family: var(--bw-text-heading-sm-family);
2506
+ font-size: var(--bw-text-heading-sm-size);
2507
+ font-weight: var(--bw-text-heading-sm-weight);
2508
+ line-height: var(--bw-text-heading-sm-line-height);
2509
+ transition: var(--bw-transition-colors);
2510
+ }
2511
+
2512
+ .bw-listing-card:hover .bw-listing-card__title,
2513
+ .bw-listing-card:focus-visible .bw-listing-card__title {
2514
+ color: var(--bw-color-accent);
2515
+ }
2516
+
2517
+ .bw-listing-card__summary {
2518
+ margin: 0;
2519
+ color: var(--bw-color-fg-muted);
2520
+ font-size: var(--bw-text-body-md-size);
2521
+ line-height: var(--bw-text-body-md-line-height);
2522
+ text-wrap: pretty;
2523
+ }
2524
+
2525
+ /* Pushed to the bottom so meta lines sit on one baseline across a row of
2526
+ * cards whose summaries differ in length. */
2527
+ .bw-listing-card__meta {
2528
+ margin-block-start: auto;
2529
+ padding-block-start: var(--bw-space-2);
2530
+ color: var(--bw-color-fg-muted);
2531
+ font-size: var(--bw-text-caption-size);
2532
+ }
2533
+
2534
+ /* Listing / media list ----------------------------------------------------- */
2535
+
2536
+ .bw-listing-list {
2537
+ display: grid;
2538
+ gap: var(--bw-space-8);
2539
+ margin: 0;
2540
+ padding: 0;
2541
+ list-style: none;
2542
+ }
2543
+
2544
+ /* Stacked on a phone (image first,
2545
+ matching the reading order),
2546
+ a media row
2547
+ * from 40rem up. The image column is fixed rather than fractional so a short
2548
+ * entry and a long one present the same thumbnail size. */
2549
+ .bw-listing-list__item {
2550
+ display: grid;
2551
+ gap: var(--bw-space-4);
2552
+ align-items: start;
2553
+ }
2554
+
2555
+ /* 12rem,
2556
+ not wider: at a 3:2 ratio the thumbnail sets the row height,
2557
+ and a
2558
+ * wider column leaves a two-line summary floating in dead space beside it. */
2559
+ @media (width >= --theme(--breakpoint-sm)) {
2560
+ .bw-listing-list__item {
2561
+ grid-template-columns: 12rem 1fr;
2562
+ gap: var(--bw-space-6);
2563
+ }
2564
+ }
2565
+
2566
+ /* Sized for either shape: the shipped placeholder is an inline <svg>,
2567
+ and the
2568
+ * documented swap is an <img>. object-fit only bites on the img,
2569
+ and the
2570
+ * aspect-ratio keeps the row height stable across both so swapping one for the
2571
+ * other does not reflow the list. */
2572
+ .bw-listing-list__media {
2573
+ inline-size: 100%;
2574
+ block-size: auto;
2575
+ aspect-ratio: 3 / 2;
2576
+ object-fit: cover;
2577
+ border-radius: var(--bw-radius-lg);
2578
+ }
2579
+
2580
+ .bw-listing-list__body {
2581
+ display: flex;
2582
+ flex-direction: column;
2583
+ gap: var(--bw-space-2);
2584
+ align-items: flex-start;
2585
+ }
2586
+
2587
+ .bw-listing-list__title {
2588
+ margin: 0;
2589
+ font-family: var(--bw-text-heading-sm-family);
2590
+ font-size: var(--bw-text-heading-sm-size);
2591
+ font-weight: var(--bw-text-heading-sm-weight);
2592
+ line-height: var(--bw-text-heading-sm-line-height);
2593
+ }
2594
+
2595
+ /* Only the title is the link here,
2596
+ not the whole row: the row is wide enough
2597
+ * that a full-row target would swallow the surrounding whitespace.
2598
+ * min-block-size (icvoss/django-brickwork#316): the heading-sm line-height
2599
+ * alone renders at 17px,
2600
+ 7px under the WCAG 2.5.8 24px floor,
2601
+ since this is
2602
+ * a text-run link (line-height),
2603
+ not a fixed-shape control. display: block
2604
+ * is safe because the link is the sole content of its own <h3> in the
2605
+ * shipped markup (media-list.html),
2606
+ so there is no sibling inline content
2607
+ * on the same line to disturb; the same min-block-size: 1.5rem pattern as
2608
+ * .bw-data-table__row-link (#208). */
2609
+ .bw-listing-list__link {
2610
+ display: block;
2611
+ min-block-size: 1.5rem;
2612
+ color: inherit;
2613
+ text-decoration: none;
2614
+ transition: var(--bw-transition-colors);
2615
+ }
2616
+
2617
+ .bw-listing-list__link:hover,
2618
+ .bw-listing-list__link:focus-visible {
2619
+ color: var(--bw-color-accent);
2620
+ text-decoration: underline;
2621
+ }
2622
+
2623
+ .bw-listing-list__summary {
2624
+ margin: 0;
2625
+ color: var(--bw-color-fg-muted);
2626
+ text-wrap: pretty;
2627
+ }
2628
+
2629
+ .bw-listing-list__meta {
2630
+ color: var(--bw-color-fg-muted);
2631
+ font-size: var(--bw-text-caption-size);
2632
+ }
2633
+
2634
+ /* Listing / compact table -------------------------------------------------- */
2635
+
2636
+ /* A table cannot reflow into one column without ceasing to be a table,
2637
+ so it
2638
+ * scrolls inside its own container rather than pushing the page sideways on a
2639
+ * phone. The container is focusable in the markup (tabindex="0") because a
2640
+ * scroll region reachable only by mouse or touch is unusable by keyboard; the
2641
+ * focus ring comes free from the global :focus-visible rule,
2642
+ whose selector
2643
+ * already includes [tabindex]. */
2644
+ .bw-listing-table__scroll {
2645
+ overflow-x: auto;
2646
+ /* See the note on .bw-comparison-table__scroll: overflow-x alone does not
2647
+ * clip a wide table's paint, so the page scrolls sideways instead of the
2648
+ * container. This table's columns happen to be narrow enough not to trip the
2649
+ * mobile gate today, which makes it a latent version of the same defect
2650
+ * rather than a different case: one longer document title would surface it. */
2651
+ contain: paint;
2652
+ border: var(--bw-size-border-hairline) solid var(--bw-color-border);
2653
+ border-radius: var(--bw-radius-lg);
2654
+ }
2655
+
2656
+ .bw-listing-table {
2657
+ inline-size: 100%;
2658
+ border-collapse: collapse;
2659
+ font-size: var(--bw-text-body-md-size);
2660
+ }
2661
+
2662
+ /* Visible on purpose: the caption names the table for everyone,
2663
+ not only for
2664
+ * a screen reader. */
2665
+ .bw-listing-table__caption {
2666
+ padding: var(--bw-space-4) var(--bw-space-4) 0;
2667
+ color: var(--bw-color-fg-muted);
2668
+ font-size: var(--bw-text-body-sm-size);
2669
+ text-align: start;
2670
+ caption-side: top;
2671
+ }
2672
+
2673
+ .bw-listing-table th,
2674
+ .bw-listing-table td {
2675
+ padding: var(--bw-space-3) var(--bw-space-4);
2676
+ text-align: start;
2677
+ vertical-align: top;
2678
+ border-block-end: var(--bw-size-border-hairline) solid var(--bw-color-border);
2679
+ }
2680
+
2681
+ .bw-listing-table thead th {
2682
+ color: var(--bw-color-fg-muted);
2683
+ font-size: var(--bw-text-label-size);
2684
+ font-weight: var(--bw-text-label-weight);
2685
+ white-space: nowrap;
2686
+ }
2687
+
2688
+ /* The row header carries the entry title,
2689
+ so it stays at body weight rather
2690
+ * than inheriting the thead treatment. */
2691
+ .bw-listing-table tbody th {
2692
+ font-weight: var(--bw-text-body-md-weight);
2693
+ }
2694
+
2695
+ .bw-listing-table tbody tr:last-child th,
2696
+ .bw-listing-table tbody tr:last-child td {
2697
+ border-block-end: none;
2698
+ }
2699
+
2700
+ .bw-listing-table__link {
2701
+ color: var(--bw-color-accent);
2702
+ text-decoration: none;
2703
+ }
2704
+
2705
+ .bw-listing-table__link:hover,
2706
+ .bw-listing-table__link:focus-visible {
2707
+ text-decoration: underline;
2708
+ }
2709
+
2710
+ /* --- Dark-theme resets for light-only marketing ambient (beautiful defaults) -- */
2711
+
2712
+ /* Soft ambient under elevation-* is a LIGHT-theme treatment so marketing
2713
+ * surfaces read on white canvas; dark elevation tokens already carry their
2714
+ * own depth,
2715
+ so dark surfaces return to the plain elevation ramp here.
2716
+ * Mirrors the card ambient reset at the end of components.css. */
2717
+ [data-theme="dark"] .bw-feature-grid > .bw-feature-card,
2718
+ [data-theme="dark"] .bw-pricing-tier,
2719
+ [data-theme="dark"] .bw-testimonial,
2720
+ [data-theme="dark"] .bw-cta--tint,
2721
+ [data-theme="dark"] .bw-stat-band-section,
2722
+ [data-theme="dark"] .bw-stat-band .bw-stat,
2723
+ [data-theme="dark"] .bw-hero__media img,
2724
+ [data-theme="dark"] .bw-portrait__image img,
2725
+ [data-theme="dark"] .bw-product-chrome,
2726
+ [data-theme="dark"] .bw-site-header {
2727
+ box-shadow: var(--bw-elevation-1);
2728
+ }
2729
+ [data-theme="dark"] .bw-stat-band .bw-stat--chrome-plain {
2730
+ box-shadow: none;
2731
+ }
2732
+ [data-theme="dark"] .bw-product-chrome--rear {
2733
+ box-shadow: var(--bw-elevation-1);
2734
+ }
2735
+ [data-theme="dark"] .bw-feature-grid > .bw-feature-card--link:hover,
2736
+ [data-theme="dark"] .bw-feature-grid > .bw-feature-card--link:focus-visible {
2737
+ box-shadow: var(--bw-elevation-2);
2738
+ }
2739
+ /* Bordered cells deliberately carry no elevation; keep that on dark too. */
2740
+ [data-theme="dark"] .bw-feature-grid--bordered > .bw-feature-card,
2741
+ [data-theme="dark"] .bw-feature-grid--bordered > .bw-feature-card--link:hover,
2742
+ [data-theme="dark"] .bw-feature-grid--bordered > .bw-feature-card--link:focus-visible {
2743
+ box-shadow: none;
2744
+ }
2745
+ [data-theme="dark"] .bw-pricing-tier--highlighted {
2746
+ box-shadow: var(--bw-elevation-3);
2747
+ }
2748
+
2749
+ /* --- Portrait (#116): person-presentation marketing band -------------------
2750
+ * Constrained 3:4 image at real size; align places the image start/end from
2751
+ * md up. Document order stays copy then image (reading/tab order unchanged).
2752
+ */
2753
+ .bw-portrait {
2754
+ display: flex;
2755
+ flex-direction: column;
2756
+ gap: var(--bw-space-6);
2757
+ margin-block: var(--bw-component-section-gap-marketing);
2758
+ }
2759
+
2760
+ .bw-portrait__copy {
2761
+ display: flex;
2762
+ flex-direction: column;
2763
+ gap: var(--bw-space-3);
2764
+ min-inline-size: 0;
2765
+ }
2766
+
2767
+ .bw-portrait__name {
2768
+ margin: 0;
2769
+ font-family: var(--bw-font-family-display);
2770
+ font-size: var(--bw-font-size-3xl);
2771
+ font-weight: var(--bw-font-weight-semibold);
2772
+ color: var(--bw-color-fg);
2773
+ line-height: var(--bw-font-line-height-tight);
2774
+ letter-spacing: -0.02em;
2775
+ }
2776
+
2777
+ .bw-portrait__role {
2778
+ margin: 0;
2779
+ font-family: var(--bw-font-family-sans);
2780
+ font-size: var(--bw-font-size-lg);
2781
+ color: var(--bw-color-fg-muted);
2782
+ line-height: var(--bw-font-line-height-relaxed);
2783
+ }
2784
+
2785
+ .bw-portrait__body {
2786
+ margin: 0;
2787
+ max-inline-size: var(--bw-size-max-width-prose);
2788
+ font-family: var(--bw-font-family-sans);
2789
+ font-size: var(--bw-text-body-md-size);
2790
+ color: var(--bw-color-fg);
2791
+ line-height: var(--bw-font-line-height-relaxed);
2792
+ }
2793
+
2794
+ .bw-portrait__actions {
2795
+ display: flex;
2796
+ flex-wrap: wrap;
2797
+ gap: var(--bw-space-3);
2798
+ margin-block-start: var(--bw-space-2);
2799
+ }
2800
+
2801
+ .bw-portrait__image {
2802
+ min-inline-size: 0;
2803
+ max-inline-size: 22rem;
2804
+ }
2805
+
2806
+ .bw-portrait__image :where(img, svg){
2807
+ display: block;
2808
+ inline-size: 100%;
2809
+ block-size: auto;
2810
+ }
2811
+
2812
+ .bw-portrait__image img {
2813
+ aspect-ratio: 3 / 4;
2814
+ object-fit: cover;
2815
+ border-radius: var(--bw-radius-lg);
2816
+ box-shadow:
2817
+ var(--bw-elevation-1),
2818
+ 0 4px 14px -4px oklch(0 0 0 / 0.1);
2819
+ }
2820
+
2821
+ @media (width >= --theme(--breakpoint-md)) {
2822
+ .bw-portrait {
2823
+ display: grid;
2824
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
2825
+ gap: var(--bw-space-8);
2826
+ align-items: center;
2827
+ }
2828
+
2829
+ .bw-portrait--align-start {
2830
+ grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
2831
+ }
2832
+
2833
+ .bw-portrait--align-start .bw-portrait__image {
2834
+ grid-column: 1;
2835
+ grid-row: 1;
2836
+ max-inline-size: none;
2837
+ }
2838
+
2839
+ .bw-portrait--align-start .bw-portrait__copy {
2840
+ grid-column: 2;
2841
+ grid-row: 1;
2842
+ }
2843
+
2844
+ .bw-portrait--align-end {
2845
+ grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
2846
+ }
2847
+
2848
+ .bw-portrait--align-end .bw-portrait__copy {
2849
+ grid-column: 1;
2850
+ grid-row: 1;
2851
+ }
2852
+
2853
+ .bw-portrait--align-end .bw-portrait__image {
2854
+ grid-column: 2;
2855
+ grid-row: 1;
2856
+ max-inline-size: none;
2857
+ }
2858
+ }
2859
+
2860
+ /* --- Bio (#116): compact person strip --------------------------------------
2861
+ * Article-foot / short about. Square image; name is not an h2 so it does not
2862
+ * inject a heading into an article outline.
2863
+ */
2864
+ .bw-bio {
2865
+ display: flex;
2866
+ flex-wrap: wrap;
2867
+ align-items: flex-start;
2868
+ gap: var(--bw-space-4);
2869
+ margin-block: var(--bw-component-section-gap-marketing);
2870
+ padding-block: var(--bw-space-4);
2871
+ border-block-start: var(--bw-size-border-hairline) solid var(--bw-color-border);
2872
+ }
2873
+
2874
+ .bw-bio__image {
2875
+ flex-shrink: 0;
2876
+ inline-size: var(--bw-space-16);
2877
+ }
2878
+
2879
+ .bw-bio__image :where(img, svg){
2880
+ display: block;
2881
+ inline-size: 100%;
2882
+ block-size: auto;
2883
+ }
2884
+
2885
+ .bw-bio__image img {
2886
+ aspect-ratio: 1;
2887
+ object-fit: cover;
2888
+ border-radius: var(--bw-radius-lg);
2889
+ }
2890
+
2891
+ .bw-bio__copy {
2892
+ display: flex;
2893
+ flex-direction: column;
2894
+ gap: var(--bw-space-1);
2895
+ min-inline-size: 0;
2896
+ flex: 1 1 12rem;
2897
+ }
2898
+
2899
+ .bw-bio__name {
2900
+ margin: 0;
2901
+ font-family: var(--bw-font-family-sans);
2902
+ font-size: var(--bw-text-body-md-size);
2903
+ font-weight: var(--bw-font-weight-semibold);
2904
+ color: var(--bw-color-fg);
2905
+ line-height: var(--bw-font-line-height-tight);
2906
+ }
2907
+
2908
+ .bw-bio__role {
2909
+ margin: 0;
2910
+ font-family: var(--bw-font-family-sans);
2911
+ font-size: var(--bw-text-caption-size);
2912
+ color: var(--bw-color-fg-muted);
2913
+ }
2914
+
2915
+ .bw-bio__body {
2916
+ margin: 0;
2917
+ margin-block-start: var(--bw-space-1);
2918
+ max-inline-size: var(--bw-size-max-width-prose);
2919
+ font-family: var(--bw-font-family-sans);
2920
+ font-size: var(--bw-text-body-sm-size);
2921
+ color: var(--bw-color-fg);
2922
+ line-height: var(--bw-font-line-height-relaxed);
2923
+ }
2924
+
2925
+ .bw-bio__profile {
2926
+ margin: 0;
2927
+ margin-block-start: var(--bw-space-2);
2928
+ }
2929
+
2930
+ .bw-bio__profile-link {
2931
+ display: inline-flex;
2932
+ align-items: center;
2933
+ /* 24x24 tap-target floor (WCAG 2.5.8 / axe.spec.mjs tap sweep), same text-run
2934
+ * pattern as .bw-listing-list__link. */
2935
+ min-block-size: 1.5rem;
2936
+ font-family: var(--bw-font-family-sans);
2937
+ font-size: var(--bw-text-body-sm-size);
2938
+ font-weight: var(--bw-font-weight-medium);
2939
+ color: var(--bw-color-accent);
2940
+ text-decoration: underline;
2941
+ text-underline-offset: 0.15em;
2942
+ }
2943
+
2944
+ .bw-bio__profile-link:hover {
2945
+ color: var(--bw-color-accent-hover);
2946
+ }
2947
+
2948
+ /* --- Proof collage (#572,
2949
+ ADR-108 reusable marketing proof primitive) ------
2950
+ * Kit collage or page-as-proof stage. Tiles compose _preview_frame.html for
2951
+ * the surface guard. Not gallery chrome and not product-chrome.
2952
+ */
2953
+ .bw-proof-collage {
2954
+ display: flex;
2955
+ flex-direction: column;
2956
+ gap: var(--bw-space-6);
2957
+ margin-block: var(--bw-component-section-gap-marketing);
2958
+ }
2959
+
2960
+ .bw-proof-collage__intro {
2961
+ display: flex;
2962
+ flex-direction: column;
2963
+ gap: var(--bw-space-3);
2964
+ max-inline-size: var(--bw-size-max-width-prose);
2965
+ }
2966
+
2967
+ .bw-proof-collage__heading {
2968
+ margin: 0;
2969
+ font-family: var(--bw-font-family-display);
2970
+ font-size: var(--bw-font-size-3xl);
2971
+ font-weight: var(--bw-font-weight-semibold);
2972
+ color: var(--bw-color-fg);
2973
+ line-height: var(--bw-font-line-height-tight);
2974
+ letter-spacing: -0.02em;
2975
+ }
2976
+
2977
+ .bw-proof-collage__lede {
2978
+ margin: 0;
2979
+ font-family: var(--bw-font-family-sans);
2980
+ font-size: var(--bw-font-size-lg);
2981
+ color: var(--bw-color-fg-muted);
2982
+ line-height: var(--bw-font-line-height-relaxed);
2983
+ }
2984
+
2985
+ .bw-proof-collage__grid {
2986
+ display: grid;
2987
+ gap: var(--bw-space-4);
2988
+ align-items: start;
2989
+ }
2990
+
2991
+ .bw-proof-collage--collage .bw-proof-collage__grid {
2992
+ grid-template-columns: 1fr;
2993
+ }
2994
+
2995
+ @media (width >= --theme(--breakpoint-sm)) {
2996
+ .bw-proof-collage--collage .bw-proof-collage__grid {
2997
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2998
+ }
2999
+ }
3000
+
3001
+ @media (width >= --theme(--breakpoint-lg)) {
3002
+ .bw-proof-collage--collage .bw-proof-collage__grid {
3003
+ grid-template-columns: 1.15fr 1fr 0.95fr;
3004
+ }
3005
+ }
3006
+
3007
+ .bw-proof-collage--page .bw-proof-collage__grid {
3008
+ grid-template-columns: minmax(0, 1fr);
3009
+ max-inline-size: var(--bw-component-content-max-width-marketing);
3010
+ margin-inline: auto;
3011
+ }
3012
+
3013
+ .bw-proof-collage__tile {
3014
+ display: flex;
3015
+ flex-direction: column;
3016
+ gap: var(--bw-space-2);
3017
+ min-inline-size: 0;
3018
+ }
3019
+
3020
+ .bw-proof-collage__label {
3021
+ margin: 0;
3022
+ font-family: var(--bw-font-family-mono);
3023
+ font-size: var(--bw-font-size-xs);
3024
+ color: var(--bw-color-fg-muted);
3025
+ letter-spacing: 0.02em;
3026
+ }
3027
+
3028
+ /* Directory / numbered index (#647) ---------------------------------------- */
3029
+
3030
+ .bw-directory-section {
3031
+ display: flex;
3032
+ flex-direction: column;
3033
+ }
3034
+
3035
+ .bw-directory-section__intro {
3036
+ max-inline-size: var(--bw-size-max-width-prose);
3037
+ margin-block-end: var(--bw-space-6);
3038
+ }
3039
+
3040
+ .bw-directory-section__heading {
3041
+ margin: 0;
3042
+ font-size: var(--bw-text-heading-section-size);
3043
+ font-weight: var(--bw-text-heading-section-weight);
3044
+ line-height: var(--bw-text-heading-section-line-height);
3045
+ letter-spacing: var(--bw-text-heading-section-tracking);
3046
+ }
3047
+
3048
+ .bw-directory-section__lede {
3049
+ margin: var(--bw-space-2) 0 0;
3050
+ color: var(--bw-color-fg-muted);
3051
+ text-wrap: pretty;
3052
+ }
3053
+
3054
+ .bw-directory {
3055
+ display: flex;
3056
+ flex-direction: column;
3057
+ margin: 0;
3058
+ padding: 0;
3059
+ list-style: none;
3060
+ }
3061
+
3062
+ .bw-directory__item {
3063
+ display: grid;
3064
+ grid-template-columns: auto 1fr;
3065
+ column-gap: var(--bw-space-4);
3066
+ row-gap: var(--bw-space-3);
3067
+ align-items: start;
3068
+ padding-block: var(--bw-space-5);
3069
+ border-block-end: var(--bw-size-border-hairline) solid var(--bw-color-border);
3070
+ }
3071
+
3072
+ .bw-directory__item:first-child {
3073
+ border-block-start: var(--bw-size-border-hairline) solid var(--bw-color-border);
3074
+ }
3075
+
3076
+ .bw-directory__item--mark {
3077
+ grid-template-columns: auto auto 1fr;
3078
+ }
3079
+
3080
+ /* Overline role for the numeral (issue: typography is out of scope beyond
3081
+ * that role). tabular-nums keeps 01/10 aligned in a column. */
3082
+ .bw-directory__number {
3083
+ font-family: var(--bw-text-overline-family);
3084
+ font-size: var(--bw-text-overline-size);
3085
+ font-weight: var(--bw-text-overline-weight);
3086
+ line-height: var(--bw-text-overline-line-height);
3087
+ letter-spacing: var(--bw-text-overline-tracking);
3088
+ text-transform: uppercase;
3089
+ color: var(--bw-color-fg-muted);
3090
+ font-variant-numeric: tabular-nums;
3091
+ margin-block-start: 0.35em;
3092
+ }
3093
+
3094
+ .bw-directory__mark {
3095
+ display: flex;
3096
+ align-items: center;
3097
+ justify-content: center;
3098
+ inline-size: 2.5rem;
3099
+ block-size: 2.5rem;
3100
+ color: var(--bw-color-accent);
3101
+ }
3102
+
3103
+ .bw-directory__icon {
3104
+ display: block;
3105
+ flex-shrink: 0;
3106
+ }
3107
+
3108
+ .bw-directory__mark :where(img, svg){
3109
+ display: block;
3110
+ max-inline-size: 100%;
3111
+ max-block-size: 100%;
3112
+ object-fit: contain;
3113
+ }
3114
+
3115
+ .bw-directory__main {
3116
+ display: flex;
3117
+ flex-direction: column;
3118
+ gap: var(--bw-space-2);
3119
+ min-inline-size: 0;
3120
+ }
3121
+
3122
+ .bw-directory__title {
3123
+ margin: 0;
3124
+ font-family: var(--bw-text-heading-sm-family);
3125
+ font-size: var(--bw-text-heading-sm-size);
3126
+ font-weight: var(--bw-text-heading-sm-weight);
3127
+ line-height: var(--bw-text-heading-sm-line-height);
3128
+ }
3129
+
3130
+ /* Title-only link (media-list pattern): full-row anchors would swallow the
3131
+ * meta column. min-block-size meets the WCAG 2.5.8 24px floor. */
3132
+ .bw-directory__link {
3133
+ display: block;
3134
+ min-block-size: 1.5rem;
3135
+ color: inherit;
3136
+ text-decoration: none;
3137
+ transition: var(--bw-transition-colors);
3138
+ }
3139
+
3140
+ .bw-directory__link:hover,
3141
+ .bw-directory__link:focus-visible {
3142
+ color: var(--bw-color-accent);
3143
+ text-decoration: underline;
3144
+ }
3145
+
3146
+ .bw-directory__body {
3147
+ margin: 0;
3148
+ color: var(--bw-color-fg-muted);
3149
+ font-size: var(--bw-text-body-md-size);
3150
+ line-height: var(--bw-text-body-md-line-height);
3151
+ text-wrap: pretty;
3152
+ }
3153
+
3154
+ .bw-directory__meta {
3155
+ display: flex;
3156
+ flex-direction: column;
3157
+ gap: var(--bw-space-1);
3158
+ align-items: flex-start;
3159
+ grid-column: 1 / -1;
3160
+ color: var(--bw-color-fg-muted);
3161
+ font-size: var(--bw-text-caption-size);
3162
+ line-height: var(--bw-text-caption-line-height);
3163
+ }
3164
+
3165
+ .bw-directory__version {
3166
+ font-variant-numeric: tabular-nums;
3167
+ color: var(--bw-color-fg);
3168
+ font-weight: var(--bw-font-weight-medium);
3169
+ }
3170
+
3171
+ .bw-directory__status {
3172
+ color: var(--bw-color-fg-muted);
3173
+ }
3174
+
3175
+ .bw-directory__install {
3176
+ font-family: var(--bw-font-family-mono);
3177
+ font-size: inherit;
3178
+ color: var(--bw-color-fg-muted);
3179
+ }
3180
+
3181
+ @media (width >= --theme(--breakpoint-md)) {
3182
+ .bw-directory__item {
3183
+ grid-template-columns: 3rem 1fr;
3184
+ column-gap: var(--bw-space-6);
3185
+ align-items: center;
3186
+ }
3187
+
3188
+ .bw-directory__item--mark {
3189
+ grid-template-columns: 3rem auto 1fr;
3190
+ }
3191
+
3192
+ .bw-directory__item--meta {
3193
+ grid-template-columns: 3rem 1fr minmax(10rem, 14rem);
3194
+ }
3195
+
3196
+ .bw-directory__item--mark.bw-directory__item--meta {
3197
+ grid-template-columns: 3rem auto 1fr minmax(10rem, 14rem);
3198
+ }
3199
+
3200
+ .bw-directory__meta {
3201
+ grid-column: auto;
3202
+ align-items: flex-end;
3203
+ text-align: end;
3204
+ }
3205
+ }
3206
+
3207
+ /* --- Case / result list (#674): ruled work records,
3208
+ not cards -------------
3209
+ * Figure | name + note,
3210
+ hairline rows. Sibling of directory (ruled index)
3211
+ * and feature grid (cards): this is the checkable case list personal and
3212
+ * consulting presence pages need under a figures band.
3213
+ */
3214
+
3215
+ .bw-case-list-section__intro {
3216
+ max-inline-size: var(--bw-size-max-width-prose);
3217
+ margin-block-end: var(--bw-space-6);
3218
+ }
3219
+
3220
+ .bw-case-list-section__heading {
3221
+ margin: 0;
3222
+ font-family: var(--bw-text-heading-section-family);
3223
+ font-size: var(--bw-text-heading-section-size);
3224
+ font-weight: var(--bw-text-heading-section-weight);
3225
+ line-height: var(--bw-text-heading-section-line-height);
3226
+ letter-spacing: var(--bw-text-heading-section-tracking);
3227
+ }
3228
+
3229
+ .bw-case-list {
3230
+ display: flex;
3231
+ flex-direction: column;
3232
+ margin: 0;
3233
+ padding: 0;
3234
+ list-style: none;
3235
+ }
3236
+
3237
+ .bw-case-list__item {
3238
+ border-block-end: var(--bw-size-border-hairline) solid var(--bw-color-border);
3239
+ }
3240
+
3241
+ .bw-case-list__item:first-child {
3242
+ border-block-start: var(--bw-size-border-hairline) solid var(--bw-color-border);
3243
+ }
3244
+
3245
+ /* The row is the interactive unit when linked: one tab stop,
3246
+ content keeps
3247
+ * its own ink,
3248
+ focus ring from the global :focus-visible rule. */
3249
+ .bw-case-list__row {
3250
+ display: grid;
3251
+ gap: var(--bw-space-2);
3252
+ align-items: start;
3253
+ padding-block: var(--bw-space-5);
3254
+ color: inherit;
3255
+ text-decoration: none;
3256
+ }
3257
+
3258
+ .bw-case-list__item--result > .bw-case-list__row {
3259
+ gap: var(--bw-space-4);
3260
+ }
3261
+
3262
+ @media (width >= --theme(--breakpoint-sm)) {
3263
+ .bw-case-list__item--result > .bw-case-list__row {
3264
+ grid-template-columns: minmax(4.5rem, 7rem) 1fr;
3265
+ column-gap: var(--bw-space-6);
3266
+ align-items: baseline;
3267
+ }
3268
+ }
3269
+
3270
+ .bw-case-list__result {
3271
+ font-family: var(--bw-text-heading-sm-family);
3272
+ font-size: var(--bw-text-heading-sm-size);
3273
+ font-weight: var(--bw-text-heading-sm-weight);
3274
+ line-height: var(--bw-text-heading-sm-line-height);
3275
+ font-variant-numeric: tabular-nums;
3276
+ color: var(--bw-color-fg);
3277
+ }
3278
+
3279
+ .bw-case-list__main {
3280
+ display: flex;
3281
+ flex-direction: column;
3282
+ gap: var(--bw-space-1);
3283
+ min-inline-size: 0;
3284
+ }
3285
+
3286
+ .bw-case-list__heading {
3287
+ margin: 0;
3288
+ font-family: var(--bw-text-heading-sm-family);
3289
+ font-size: var(--bw-text-heading-sm-size);
3290
+ font-weight: var(--bw-text-heading-sm-weight);
3291
+ line-height: var(--bw-text-heading-sm-line-height);
3292
+ }
3293
+
3294
+ .bw-case-list__row--link .bw-case-list__heading {
3295
+ transition: var(--bw-transition-colors);
3296
+ }
3297
+
3298
+ .bw-case-list__row--link:hover .bw-case-list__heading,
3299
+ .bw-case-list__row--link:focus-visible .bw-case-list__heading {
3300
+ color: var(--bw-color-accent);
3301
+ }
3302
+
3303
+ .bw-case-list__body {
3304
+ margin: 0;
3305
+ color: var(--bw-color-fg-muted);
3306
+ font-size: var(--bw-text-body-md-size);
3307
+ line-height: var(--bw-text-body-md-line-height);
3308
+ text-wrap: pretty;
3309
+ }
3310
+
3311
+ /* Methods / quiet columns (#675) -------------------------------------------
3312
+ * Reading layout for method pages: no card surface,
3313
+ no whole-column hit
3314
+ * target. Underline text link only. Sibling of feature-grid (product tiles)
3315
+ * and directory (numbered index),
3316
+ not a variant of either. */
3317
+
3318
+ .bw-methods-section {
3319
+ display: flex;
3320
+ flex-direction: column;
3321
+ }
3322
+
3323
+ .bw-methods-section__heading {
3324
+ margin: 0 0 var(--bw-space-8);
3325
+ font-family: var(--bw-text-heading-section-family);
3326
+ font-size: var(--bw-text-heading-section-size);
3327
+ font-weight: var(--bw-text-heading-section-weight);
3328
+ line-height: var(--bw-text-heading-section-line-height);
3329
+ letter-spacing: var(--bw-text-heading-section-tracking);
3330
+ }
3331
+
3332
+ .bw-methods {
3333
+ display: grid;
3334
+ grid-template-columns: 1fr;
3335
+ gap: var(--bw-space-8) var(--bw-space-12);
3336
+ }
3337
+
3338
+ @media (width >= --theme(--breakpoint-sm)) {
3339
+ .bw-methods {
3340
+ grid-template-columns: 1fr 1fr;
3341
+ }
3342
+ }
3343
+
3344
+ .bw-methods__item {
3345
+ margin: 0;
3346
+ padding: 0;
3347
+ border: 0;
3348
+ background: transparent;
3349
+ box-shadow: none;
3350
+ display: flex;
3351
+ flex-direction: column;
3352
+ gap: var(--bw-space-2);
3353
+ }
3354
+
3355
+ .bw-methods__name {
3356
+ margin: 0;
3357
+ font-family: var(--bw-text-heading-sm-family);
3358
+ font-size: var(--bw-text-heading-sm-size);
3359
+ font-weight: var(--bw-text-heading-sm-weight);
3360
+ line-height: var(--bw-text-heading-sm-line-height);
3361
+ }
3362
+
3363
+ .bw-methods__stages {
3364
+ margin: 0;
3365
+ color: var(--bw-color-fg-muted);
3366
+ font-size: var(--bw-text-body-sm-size);
3367
+ line-height: var(--bw-text-body-sm-line-height);
3368
+ }
3369
+
3370
+ .bw-methods__body {
3371
+ margin: 0;
3372
+ max-inline-size: 32ch;
3373
+ color: var(--bw-color-fg-muted);
3374
+ font-size: var(--bw-text-body-md-size);
3375
+ line-height: var(--bw-text-body-md-line-height);
3376
+ text-wrap: pretty;
3377
+ }
3378
+
3379
+ /* Underline text link (not a whole-column anchor). min-block-size meets the
3380
+ * WCAG 2.5.8 24px floor,
3381
+ same pattern as .bw-bio__profile-link. */
3382
+ .bw-methods__link {
3383
+ display: inline-block;
3384
+ align-self: flex-start;
3385
+ margin-block-start: var(--bw-space-3);
3386
+ min-block-size: 1.5rem;
3387
+ font-weight: var(--bw-font-weight-semibold);
3388
+ color: var(--bw-color-fg);
3389
+ text-decoration: none;
3390
+ border-block-end: var(--bw-size-border-hairline) solid
3391
+ color-mix(in oklab, var(--bw-color-fg) 55%, transparent);
3392
+ transition: var(--bw-transition-colors);
3393
+ }
3394
+
3395
+ .bw-methods__link:hover,
3396
+ .bw-methods__link:focus-visible {
3397
+ border-block-end-color: var(--bw-color-fg);
3398
+ }
3399
+
3400
+ /* Outcomes / quiet columns (#696) ------------------------------------------
3401
+ * Equal columns of outcome copy (heading + body), optional section foot
3402
+ * text link. Sibling of methods (#675): no stages, no per-column CTA, no
3403
+ * card chrome. */
3404
+
3405
+ .bw-outcomes-section {
3406
+ display: flex;
3407
+ flex-direction: column;
3408
+ }
3409
+
3410
+ .bw-outcomes {
3411
+ display: grid;
3412
+ grid-template-columns: 1fr;
3413
+ gap: var(--bw-space-8) var(--bw-space-12);
3414
+ }
3415
+
3416
+ @media (width >= --theme(--breakpoint-sm)) {
3417
+ .bw-outcomes {
3418
+ grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
3419
+ }
3420
+ }
3421
+
3422
+ .bw-outcomes__item {
3423
+ margin: 0;
3424
+ padding: 0;
3425
+ border: 0;
3426
+ background: transparent;
3427
+ box-shadow: none;
3428
+ display: flex;
3429
+ flex-direction: column;
3430
+ gap: var(--bw-space-2);
3431
+ }
3432
+
3433
+ .bw-outcomes__name {
3434
+ margin: 0;
3435
+ font-family: var(--bw-text-heading-sm-family);
3436
+ font-size: var(--bw-text-heading-sm-size);
3437
+ font-weight: var(--bw-text-heading-sm-weight);
3438
+ line-height: var(--bw-text-heading-sm-line-height);
3439
+ }
3440
+
3441
+ .bw-outcomes__body {
3442
+ margin: 0;
3443
+ max-inline-size: 32ch;
3444
+ color: var(--bw-color-fg-muted);
3445
+ font-size: var(--bw-text-body-md-size);
3446
+ line-height: var(--bw-text-body-md-line-height);
3447
+ text-wrap: pretty;
3448
+ }
3449
+
3450
+ .bw-outcomes-section__foot {
3451
+ margin: var(--bw-space-8) 0 0;
3452
+ }
3453
+
3454
+ /* Underline text link at section level (not a button row). */
3455
+ .bw-outcomes-section__link {
3456
+ display: inline-block;
3457
+ min-block-size: 1.5rem;
3458
+ font-weight: var(--bw-font-weight-semibold);
3459
+ color: var(--bw-color-fg);
3460
+ text-decoration: none;
3461
+ border-block-end: var(--bw-size-border-hairline) solid
3462
+ color-mix(in oklab, var(--bw-color-fg) 55%, transparent);
3463
+ transition: var(--bw-transition-colors);
3464
+ }
3465
+
3466
+ .bw-outcomes-section__link:hover,
3467
+ .bw-outcomes-section__link:focus-visible {
3468
+ border-block-end-color: var(--bw-color-fg);
3469
+ }
3470
+
3471
+ /* Soft-stage atmosphere (BR-BW-MKT-007, #570). Opt-in wash-and-grid
3472
+ behind first-band copy. Extra markup only when atmosphere="soft-stage".
3473
+ Colour is only --bw-color-stage-*; not a synonym for media_placement
3474
+ "behind".
3475
+
3476
+ Stacking is isolation, not child-lifting. The root gets its own stacking
3477
+ context (position: relative; isolation: isolate) and .bw-stage sits at
3478
+ z-index: -1 inside it. In an isolated context a negative z-index child
3479
+ paints after the root's own background and before every in-flow or
3480
+ z-index: 0/auto descendant, so .bw-stage always sits behind the band's
3481
+ real content without promoting any named child to its own layer. Lifting
3482
+ .bw-hero__copy / .bw-hero__media / .bw-hero__decoration to z-index: 1
3483
+ (the earlier approach) instead gave .bw-hero__media a stacking context
3484
+ under media_placement="behind", where it already carries position:
3485
+ relative with no z-index of its own (relying on document order to stay
3486
+ under .bw-hero__copy at z-index: 1): the promoted, DOM-later media then
3487
+ painted over the copy and its scrim, and separately overrode
3488
+ .bw-hero__decoration's own position: absolute; z-index: 0. Isolation
3489
+ leaves every existing hero/section descendant's position and z-index
3490
+ untouched, so every media_placement value keeps its current stacking. */
3491
+ .bw-hero--atmosphere-soft-stage,
3492
+ .bw-section--atmosphere-soft-stage {
3493
+ position: relative;
3494
+ isolation: isolate;
3495
+ }
3496
+
3497
+ .bw-stage {
3498
+ position: absolute;
3499
+ inset: 0;
3500
+ z-index: -1;
3501
+ pointer-events: none;
3502
+ background-image:
3503
+ linear-gradient(180deg, var(--bw-color-stage-wash) 0%, transparent 62%),
3504
+ linear-gradient(var(--bw-color-stage-grid) var(--bw-size-border-hairline), transparent var(--bw-size-border-hairline)),
3505
+ linear-gradient(90deg, var(--bw-color-stage-grid) var(--bw-size-border-hairline), transparent var(--bw-size-border-hairline));
3506
+ background-size:
3507
+ 100% 100%,
3508
+ var(--bw-space-8) var(--bw-space-8),
3509
+ var(--bw-space-8) var(--bw-space-8);
3510
+ mask-image: linear-gradient(180deg, black 0%, transparent 88%);
3511
+ }
3512
+
3513
+ /* Product shot (BR-BW-MKT-008, #571). Elevation wrap for stills in
3514
+ hero / feature media slots. Distinct from .bw-preview-frame (ILL-026).
3515
+ Reuses the existing product-chrome elevation language. */
3516
+ .bw-product-shot {
3517
+ margin: 0;
3518
+ inline-size: 100%;
3519
+ max-inline-size: 100%;
3520
+ overflow: hidden;
3521
+ border-radius: var(--bw-radius-xl);
3522
+ border: var(--bw-size-border-hairline) solid
3523
+ color-mix(in oklab, var(--bw-color-fg) 12%, var(--bw-color-surface-raised));
3524
+ background: var(--bw-color-surface-raised);
3525
+ /* The ambient literal matches .bw-product-chrome's own box-shadow above
3526
+ (same elevation precedent, not an untokenised one-off). */
3527
+ box-shadow:
3528
+ var(--bw-elevation-2),
3529
+ 0 8px 28px -10px oklch(0 0 0 / 0.14);
3530
+ }
3531
+
3532
+ .bw-product-shot__media > :where(img, video, iframe, svg) {
3533
+ display: block;
3534
+ inline-size: 100%;
3535
+ block-size: auto;
3536
+ }
3537
+
3538
+ .bw-product-shot--window-light .bw-product-shot__window {
3539
+ display: flex;
3540
+ align-items: center;
3541
+ gap: var(--bw-space-2);
3542
+ min-block-size: var(--bw-size-control-height-sm);
3543
+ padding-inline: var(--bw-space-3);
3544
+ background: var(--bw-color-surface-sunken);
3545
+ border-block-end: var(--bw-size-border-hairline) solid
3546
+ color-mix(in oklab, var(--bw-color-fg) 10%, transparent);
3547
+ }
3548
+
3549
+ .bw-product-shot__dot {
3550
+ inline-size: var(--bw-space-1-5);
3551
+ block-size: var(--bw-space-1-5);
3552
+ border-radius: var(--bw-radius-full);
3553
+ background: var(--bw-color-fg-muted);
3554
+ }
3555
+
3556
+ .bw-feature-row__media .bw-product-shot,
3557
+ .bw-hero__media .bw-product-shot {
3558
+ max-inline-size: 100%;
3559
+ }
3560
+
3561
+ /* CSS-only reveal (BR-BW-MKT-009). Resting state is the visible layout;
3562
+ motion is an enhancement gated to no-preference. Never set opacity 0
3563
+ at rest. Reduced-motion floor is MOT-003 (!important). */
3564
+ @keyframes bw-reveal-enter {
3565
+ from {
3566
+ opacity: 0.92;
3567
+ transform: translateY(var(--bw-space-2));
3568
+ }
3569
+
3570
+ to {
3571
+ opacity: 1;
3572
+ transform: none;
3573
+ }
3574
+ }
3575
+
3576
+ @media (prefers-reduced-motion: no-preference) {
3577
+ .bw-hero--reveal-enter,
3578
+ .bw-section--reveal-enter {
3579
+ animation: bw-reveal-enter var(--bw-duration-slow) var(--bw-ease-out) both;
3580
+ }
3581
+ }
3582
+
3583
+ @media (prefers-reduced-motion: reduce) {
3584
+ .bw-hero--reveal-enter,
3585
+ .bw-section--reveal-enter {
3586
+ animation: none !important;
3587
+ transform: none !important;
3588
+ }
3589
+ }
3590
+
3591
+ /* end of reveal block: test_reveal_css_references_only_motion_tokens_for_timing
3592
+ bounds its scan to this sentinel so a future append does not widen it. */
3593
+