@keystone-sites/marketing-design-system 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/AGENTS.md +163 -0
  2. package/README.md +85 -0
  3. package/assets/media/brand/ks-lockup.svg +13 -0
  4. package/assets/media/brand/ks-logomark.svg +4 -0
  5. package/assets/media/brand/ks-wordmark-inline.svg +13 -0
  6. package/assets/media/brand/ks-wordmark.svg +11 -0
  7. package/assets/media/fonts/gt-standard-standard-vf.woff2 +0 -0
  8. package/assets/media/fonts/pp-kyoto-variable-upright-vf.woff2 +0 -0
  9. package/base.css +111 -0
  10. package/css-vars.d.ts +10 -0
  11. package/grid/engine.css +368 -0
  12. package/grid/field-hash.ts +31 -0
  13. package/grid/field.tsx +48 -0
  14. package/grid/gates.cjs +34 -0
  15. package/grid/region.tsx +97 -0
  16. package/icons.tsx +1224 -0
  17. package/index.css +77 -0
  18. package/lib/autoplay-gate.ts +88 -0
  19. package/lib/focus-trap.ts +42 -0
  20. package/lib/grader.ts +131 -0
  21. package/lib/legal-data.ts +1 -0
  22. package/lib/legal.ts +41 -0
  23. package/lib/noise.tsx +114 -0
  24. package/lib/render-boundary.tsx +27 -0
  25. package/lib/scroll-lock.ts +25 -0
  26. package/lib/swipe.ts +124 -0
  27. package/lib/use-active-section.ts +43 -0
  28. package/lib/use-count-up.ts +26 -0
  29. package/lib/use-grader-search.ts +118 -0
  30. package/lib/use-video-carousel.ts +271 -0
  31. package/media.ts +558 -0
  32. package/package.json +201 -0
  33. package/primitives/button-inline.css +52 -0
  34. package/primitives/button-inline.tsx +38 -0
  35. package/primitives/buttons.css +449 -0
  36. package/primitives/buttons.tsx +263 -0
  37. package/primitives/case-study-button.css +71 -0
  38. package/primitives/case-study-button.tsx +28 -0
  39. package/primitives/case-study-card.css +318 -0
  40. package/primitives/case-study-card.tsx +116 -0
  41. package/primitives/closer-row.css +14 -0
  42. package/primitives/closer-row.tsx +22 -0
  43. package/primitives/cta-row.css +41 -0
  44. package/primitives/cta-row.tsx +39 -0
  45. package/primitives/disclosure.css +210 -0
  46. package/primitives/disclosure.tsx +144 -0
  47. package/primitives/faq-question.css +220 -0
  48. package/primitives/faq-question.tsx +55 -0
  49. package/primitives/field.css +225 -0
  50. package/primitives/field.tsx +266 -0
  51. package/primitives/footer-item.css +72 -0
  52. package/primitives/footer-item.tsx +42 -0
  53. package/primitives/grader-menu.tsx +84 -0
  54. package/primitives/grader.css +302 -0
  55. package/primitives/grader.tsx +284 -0
  56. package/primitives/modal.css +151 -0
  57. package/primitives/modal.tsx +90 -0
  58. package/primitives/notice.css +39 -0
  59. package/primitives/notice.tsx +56 -0
  60. package/primitives/persona-card.css +374 -0
  61. package/primitives/persona-card.tsx +74 -0
  62. package/primitives/picture.css +11 -0
  63. package/primitives/picture.tsx +41 -0
  64. package/primitives/plan-card.css +378 -0
  65. package/primitives/plan-card.tsx +91 -0
  66. package/primitives/prose.css +118 -0
  67. package/primitives/prose.tsx +170 -0
  68. package/primitives/ramps.css +84 -0
  69. package/primitives/slider.css +179 -0
  70. package/primitives/slider.tsx +69 -0
  71. package/primitives/slug.css +87 -0
  72. package/primitives/slug.tsx +37 -0
  73. package/primitives/status.css +298 -0
  74. package/primitives/status.tsx +222 -0
  75. package/primitives/strip.css +40 -0
  76. package/primitives/surface.css +78 -0
  77. package/primitives/surface.tsx +95 -0
  78. package/primitives/table.css +226 -0
  79. package/primitives/table.tsx +122 -0
  80. package/primitives/tabs.css +85 -0
  81. package/primitives/tabs.tsx +122 -0
  82. package/primitives/text.css +110 -0
  83. package/primitives/toc.css +65 -0
  84. package/primitives/toc.tsx +42 -0
  85. package/rules/design-system.md +154 -0
  86. package/rules/grid-and-layout.md +166 -0
  87. package/scripts/generate-exports.mjs +61 -0
  88. package/scripts/generate-type-css.mjs +130 -0
  89. package/sections/faq-island.tsx +102 -0
  90. package/sections/faq.css +213 -0
  91. package/sections/faq.tsx +46 -0
  92. package/sections/footer-nav.tsx +95 -0
  93. package/sections/footer-signature.css +183 -0
  94. package/sections/footer-signature.tsx +114 -0
  95. package/sections/footer.css +735 -0
  96. package/sections/footer.tsx +283 -0
  97. package/sections/gallery-overlay.css +213 -0
  98. package/sections/gallery-overlay.tsx +267 -0
  99. package/sections/landing-benefits.css +59 -0
  100. package/sections/landing-benefits.tsx +81 -0
  101. package/sections/landing-closer.css +23 -0
  102. package/sections/landing-closer.tsx +26 -0
  103. package/sections/landing-hero.css +80 -0
  104. package/sections/landing-hero.tsx +69 -0
  105. package/sections/landing-quote.css +19 -0
  106. package/sections/landing-quote.tsx +30 -0
  107. package/sections/landing-sample.ts +66 -0
  108. package/sections/landing.css +45 -0
  109. package/sections/landing.tsx +69 -0
  110. package/sections/load-orchestrator.tsx +43 -0
  111. package/sections/load.css +138 -0
  112. package/sections/nav-desktop.css +530 -0
  113. package/sections/nav-desktop.tsx +155 -0
  114. package/sections/nav-mobile.css +571 -0
  115. package/sections/nav-mobile.tsx +222 -0
  116. package/sections/nav.css +126 -0
  117. package/sections/nav.tsx +394 -0
  118. package/sections/site-chat-data.ts +16 -0
  119. package/sections/site-chat-open.tsx +25 -0
  120. package/sections/site-chat.tsx +67 -0
  121. package/site-links.ts +36 -0
  122. package/site.ts +2 -0
  123. package/themes/inverted.css +139 -0
  124. package/tokens/fonts.css +38 -0
  125. package/tokens/motion.css +125 -0
  126. package/tokens/primitives.css +163 -0
  127. package/tokens/semantic.css +153 -0
  128. package/tokens/type-styles.json +145 -0
  129. package/tokens/type.css +1548 -0
  130. package/widgets.css +78 -0
@@ -0,0 +1,571 @@
1
+ /* Mobile navigation (below rd1): the fixed bar, the full-screen menu
2
+ panel, accordion rows, and chips. Shared constants live in nav.css. */
3
+
4
+ /* The mobile nav lives below rd1; 768 is its last designed anchor, so
5
+ rd1 and rd2 restate the 768 sizes. */
6
+ /* Pointer-initiated closes return focus without showing a keyboard ring. */
7
+ .knav-mtoggle[data-quiet-focus]:focus-visible {
8
+ box-shadow: none;
9
+ }
10
+
11
+ @container (--below-rd1) {
12
+ /* Lift the page stacking context while the mobile menu is open so
13
+ body-level widget portals stay behind the modal navigation surface. */
14
+ .page:has(.knav-m[data-open]) {
15
+ z-index: calc(var(--z-portal) + 2);
16
+ }
17
+ }
18
+
19
+ .knav-mbar {
20
+ position: fixed;
21
+ top: 0;
22
+ right: calc(var(--t) - 1px);
23
+ z-index: var(--z-nav);
24
+ display: flex;
25
+ align-items: center;
26
+ background: var(--color-bg-200);
27
+ transition: background-color var(--icon-swap-dur) var(--motion-drawer-ease-open);
28
+ }
29
+ .knav-m[data-open] .knav-mbar {
30
+ background: var(--color-bg-300);
31
+ }
32
+
33
+ .knav-mtoggle {
34
+ appearance: none;
35
+ border: 0;
36
+ margin: var(--space-none);
37
+ padding: var(--space-none);
38
+ display: grid;
39
+ place-items: center;
40
+ width: var(--knav-bar-h);
41
+ height: var(--knav-bar-h);
42
+ background: var(--color-bg-200);
43
+ cursor: pointer;
44
+ color: var(--color-text-400);
45
+ touch-action: manipulation;
46
+ transition: background-color var(--icon-swap-dur) var(--motion-drawer-ease-open);
47
+ }
48
+
49
+ /* Crossfade the stacked menu and close glyphs. */
50
+ .knav-glyphstack {
51
+ display: grid;
52
+ place-items: center;
53
+ }
54
+ .knav-glyphstack svg {
55
+ grid-area: 1 / 1;
56
+ transition:
57
+ opacity var(--icon-swap-dur) var(--motion-drawer-ease-open),
58
+ filter var(--icon-swap-dur) var(--motion-drawer-ease-open),
59
+ scale var(--icon-swap-dur) var(--motion-drawer-ease-open);
60
+ }
61
+ .knav-glyph-x {
62
+ opacity: 0;
63
+ filter: blur(var(--icon-swap-blur));
64
+ scale: var(--icon-swap-start-scale);
65
+ }
66
+ .knav-m[data-open] .knav-glyph-menu {
67
+ opacity: 0;
68
+ filter: blur(var(--icon-swap-blur));
69
+ scale: var(--icon-swap-start-scale);
70
+ }
71
+ .knav-m[data-open] .knav-glyph-x {
72
+ opacity: 1;
73
+ filter: blur(0);
74
+ scale: 1;
75
+ }
76
+
77
+ .knav-m[data-open] .knav-logo,
78
+ .knav-m[data-open] .knav-plogo,
79
+ .knav-m[data-open] .knav-mtoggle {
80
+ background: var(--color-bg-300);
81
+ }
82
+ .knav-m[data-open] .knav-mvr {
83
+ background: var(--color-border-100);
84
+ }
85
+
86
+ .knav-catch {
87
+ display: none;
88
+ position: fixed;
89
+ inset: 0;
90
+ z-index: calc(var(--z-nav) - 1);
91
+ }
92
+ .knav-m[data-open] .knav-catch {
93
+ display: block;
94
+ }
95
+
96
+ .knav-m::after {
97
+ content: "";
98
+ position: fixed;
99
+ top: 0;
100
+ left: 0;
101
+ width: 100%;
102
+ height: 1px;
103
+ background: var(--color-border-050);
104
+ z-index: calc(var(--z-nav) + 1);
105
+ pointer-events: none;
106
+ opacity: 0;
107
+ transition: opacity var(--icon-swap-dur) var(--motion-drawer-ease-open);
108
+ }
109
+ .knav-m[data-open]::after {
110
+ opacity: 1;
111
+ }
112
+
113
+ .knav-panel {
114
+ display: block;
115
+ position: fixed;
116
+ top: 0;
117
+ left: 0;
118
+ z-index: var(--z-nav);
119
+ box-sizing: border-box;
120
+ width: calc(var(--t) * 11 + 1px);
121
+ height: 0;
122
+ background: var(--color-bg-200);
123
+ border: 1px solid var(--color-border-050);
124
+ border-top: 0;
125
+ box-shadow: var(--shadow-hard-square-md-0);
126
+ overflow-x: hidden;
127
+ overflow-y: auto;
128
+ overscroll-behavior: contain;
129
+ /* vertical pan only — the 1px rail overhang must never be draggable */
130
+ touch-action: pan-y;
131
+ /* no scrollbar track: it would flash during the draw-down (height
132
+ transiently shorter than content) and shove the rail lattice off
133
+ its ticks; touch/wheel scrolling still works on overflow */
134
+ scrollbar-width: none;
135
+ visibility: hidden;
136
+ transition:
137
+ height var(--motion-drawer-duration) var(--motion-drawer-ease),
138
+ visibility 0s linear var(--motion-drawer-duration);
139
+ }
140
+ .knav-panel::-webkit-scrollbar {
141
+ display: none;
142
+ }
143
+ .knav-panel:focus {
144
+ outline: none;
145
+ }
146
+ .knav-m[data-open] .knav-panel {
147
+ height: 100dvh;
148
+ visibility: visible;
149
+ box-shadow: var(--shadow-hard-square-md);
150
+ /* Grow the shadow after the panel finishes opening. */
151
+ transition:
152
+ height var(--motion-drawer-duration) var(--motion-drawer-ease-open),
153
+ box-shadow var(--motion-drawer-shadow-duration) var(--motion-drawer-ease)
154
+ var(--motion-drawer-duration);
155
+ }
156
+
157
+ /* content is static under the moving clip edge: the inner column keeps
158
+ the full viewport height regardless of the panel's animated height.
159
+ The −1 margin anchors measurements to the outer edge of the border. */
160
+ .knav-pin {
161
+ position: relative;
162
+ display: flex;
163
+ flex-direction: column;
164
+ align-items: flex-start;
165
+ /* the panel's interior is 100dvh minus its bottom border — an exact
166
+ fit, so nothing scrolls unless content genuinely overflows */
167
+ min-height: calc(100dvh - 1px);
168
+ margin-left: -1px;
169
+ width: calc(100% + 1px);
170
+ }
171
+
172
+ .knav-ptop {
173
+ position: relative;
174
+ flex: none;
175
+ width: 100%;
176
+ height: calc(var(--t) * 3);
177
+ }
178
+ .knav-wordmark {
179
+ position: absolute;
180
+ left: var(--space-3xl);
181
+ top: 28px;
182
+ display: block;
183
+ }
184
+ .knav-wmark {
185
+ display: block;
186
+ width: calc(var(--wA) * 70 + var(--wB) * 87);
187
+ height: calc(var(--wA) * 16 + var(--wB) * 20);
188
+ background: var(--color-text-200);
189
+ -webkit-mask: url("/media/brand/ks-wordmark.svg") center / contain no-repeat;
190
+ mask: url("/media/brand/ks-wordmark.svg") center / contain no-repeat;
191
+ }
192
+ /* the open-state rail, right edge flush with the panel's right edge;
193
+ fully painted like the closed rail */
194
+ .knav-prailtop {
195
+ position: absolute;
196
+ top: 0;
197
+ right: -1px;
198
+ display: flex;
199
+ align-items: center;
200
+ background: var(--color-bg-200);
201
+ transition: background-color var(--icon-swap-dur) var(--motion-drawer-ease-open);
202
+ }
203
+ .knav-m[data-open] .knav-prailtop {
204
+ background: var(--color-bg-300);
205
+ }
206
+ .knav-plogo {
207
+ display: grid;
208
+ place-items: center;
209
+ flex: none;
210
+ width: var(--knav-bar-h);
211
+ height: var(--knav-bar-h);
212
+ background: var(--color-bg-200);
213
+ transition: background-color var(--icon-swap-dur) var(--motion-drawer-ease-open);
214
+ }
215
+
216
+ .knav-list {
217
+ list-style: none;
218
+ margin: var(--space-none);
219
+ padding: var(--space-none);
220
+ position: relative;
221
+ width: calc(var(--t) * 10 + 1px);
222
+ isolation: isolate;
223
+ flex: none;
224
+ /* above the rail ornament, so an open box's shadow paints over the
225
+ rail cells instead of resolving behind them */
226
+ z-index: 1;
227
+ }
228
+ /* Descending z-order lets an open row shadow cover the next row. */
229
+ .knav-slot:nth-child(1) { z-index: 5; }
230
+ .knav-slot:nth-child(2) { z-index: 4; }
231
+ .knav-slot:nth-child(3) { z-index: 3; }
232
+ .knav-slot:nth-child(4) { z-index: 2; }
233
+ .knav-slot:nth-child(5) { z-index: 1; }
234
+
235
+ .knav-slot {
236
+ position: relative;
237
+ height: calc(var(--t) * 2 + 1px);
238
+ }
239
+ .knav-slot + .knav-slot {
240
+ margin-top: -1px;
241
+ }
242
+
243
+ /* Keep label geometry stable while a drawer opens. */
244
+ .knav-row {
245
+ box-sizing: border-box;
246
+ appearance: none;
247
+ margin: var(--space-none);
248
+ display: flex;
249
+ align-items: flex-start;
250
+ justify-content: space-between;
251
+ width: 100%;
252
+ padding: calc(var(--t) - 19px) var(--space-2xl) 0;
253
+ background: none;
254
+ border: 0;
255
+ text-decoration: none;
256
+ text-align: left;
257
+ cursor: pointer;
258
+ touch-action: manipulation;
259
+ }
260
+ a.knav-row {
261
+ height: calc(var(--t) * 2 + 1px);
262
+ border: 1px solid var(--color-border-050);
263
+ }
264
+ .knav-rlabel {
265
+ padding-left: var(--space-2xs);
266
+ --fs-rm: var(--ts-display-sans-2xs-light-fs);
267
+ --fs-rs: var(--ts-display-sans-2xs-light-fs);
268
+ --fs-rt: var(--ts-display-sans-2xs-light-fs);
269
+ --fs-rd1: var(--ts-display-sans-2xs-light-fs);
270
+ --fs-rd2: var(--ts-display-sans-xs-light-fs);
271
+ --lh-rm: var(--ts-display-sans-2xs-light-lh);
272
+ --lh-rs: var(--ts-display-sans-2xs-light-lh);
273
+ --lh-rt: var(--ts-display-sans-2xs-light-lh);
274
+ --lh-rd1: var(--ts-display-sans-2xs-light-lh);
275
+ --lh-rd2: var(--ts-display-sans-xs-light-lh);
276
+ --fs-rs-to: var(--ts-display-sans-xs-light-fs);
277
+ --lh-rs-to: var(--ts-display-sans-xs-light-lh);
278
+ color: var(--color-text-200);
279
+ white-space: nowrap;
280
+ }
281
+ .knav-rchev {
282
+ flex: none;
283
+ /* centered on the label's line box: (36 − 16) / 2 */
284
+ margin-top: 10px;
285
+ color: var(--color-text-500);
286
+ transition: rotate var(--motion-drawer-duration) var(--motion-drawer-ease);
287
+ }
288
+ .knav-gslot[data-open] .knav-rchev {
289
+ rotate: 180deg;
290
+ transition: rotate var(--motion-drawer-duration) var(--motion-drawer-ease-open);
291
+ }
292
+
293
+ /* The slot controls push-down distance while the box expands to its content. */
294
+
295
+ .knav-gslot {
296
+ --_g: var(--g-rm);
297
+ --_bt: var(--bt-rm);
298
+ transition: height var(--motion-drawer-duration) var(--motion-drawer-ease);
299
+ }
300
+ .knav-gslot[data-open] {
301
+ height: calc(var(--t) * var(--_g) + 1px);
302
+ transition: height var(--motion-drawer-duration) var(--motion-drawer-ease-open);
303
+ }
304
+
305
+ .knav-gbox {
306
+ box-sizing: border-box;
307
+ display: grid;
308
+ grid-template-rows: auto 0fr;
309
+ align-items: stretch;
310
+ min-height: calc(var(--t) * 2 + 1px);
311
+ border: 1px solid var(--color-border-050);
312
+ background: var(--color-bg-200);
313
+ overflow: clip;
314
+ box-shadow: var(--shadow-hard-square-md-0);
315
+ transition:
316
+ grid-template-rows var(--motion-drawer-duration) var(--motion-drawer-ease),
317
+ min-height var(--motion-drawer-duration) var(--motion-drawer-ease);
318
+ }
319
+ .knav-gslot[data-open] .knav-gbox {
320
+ grid-template-rows: auto 1fr;
321
+ /* The box may be shorter than its push-down group. */
322
+ min-height: calc(var(--t) * var(--_bt) + 1px);
323
+ box-shadow: var(--shadow-hard-square-md);
324
+ transition:
325
+ grid-template-rows var(--motion-drawer-duration) var(--motion-drawer-ease-open),
326
+ min-height var(--motion-drawer-duration) var(--motion-drawer-ease-open),
327
+ box-shadow var(--motion-drawer-shadow-duration) var(--motion-drawer-ease)
328
+ var(--motion-drawer-duration);
329
+ }
330
+
331
+ .knav-gtrigger {
332
+ padding-bottom: 0;
333
+ }
334
+
335
+ /* Closed chip lists leave the accessibility tree. */
336
+ .knav-chips {
337
+ min-height: 0;
338
+ overflow: clip;
339
+ visibility: hidden;
340
+ pointer-events: none;
341
+ transition: visibility 0s linear var(--motion-drawer-duration);
342
+ }
343
+ .knav-gslot[data-open] .knav-chips {
344
+ visibility: visible;
345
+ pointer-events: auto;
346
+ transition: none;
347
+ }
348
+ .knav-chipsin {
349
+ display: flex;
350
+ flex-wrap: wrap;
351
+ align-content: flex-start;
352
+ gap: var(--space-md);
353
+ padding: var(--space-3xl) var(--space-2xl) var(--space-xl);
354
+ }
355
+
356
+ .knav-chip {
357
+ display: inline-flex;
358
+ align-items: center;
359
+ gap: var(--space-md);
360
+ padding: var(--space-sm) var(--space-lg);
361
+ border-radius: var(--radius-full);
362
+ background: var(--color-bg-000);
363
+ text-decoration: none;
364
+ color: var(--color-text-200);
365
+ white-space: nowrap;
366
+ --fs-rm: var(--ts-text-sm-regular-fs);
367
+ --fs-rs: var(--ts-text-xl-light-fs);
368
+ --fs-rt: var(--ts-text-xl-light-fs);
369
+ --fs-rd1: var(--ts-text-xl-light-fs);
370
+ --fs-rd2: var(--ts-text-2xl-light-fs);
371
+ --lh-rm: var(--ts-text-sm-regular-lh);
372
+ --lh-rs: var(--ts-text-xl-light-lh);
373
+ --lh-rt: var(--ts-text-xl-light-lh);
374
+ --lh-rd1: var(--ts-text-xl-light-lh);
375
+ --lh-rd2: var(--ts-text-2xl-light-lh);
376
+ --fs-rm-to: var(--ts-text-xl-regular-fs);
377
+ --lh-rm-to: var(--ts-text-xl-regular-lh);
378
+ --fs-rs-to: var(--ts-text-2xl-light-fs);
379
+ --lh-rs-to: var(--ts-text-2xl-light-lh);
380
+ }
381
+ .knav-chipdot {
382
+ flex: none;
383
+ width: 6px;
384
+ height: 6px;
385
+ background: var(--_eng);
386
+ }
387
+
388
+ .knav-rchip {
389
+ display: inline-flex;
390
+ align-items: center;
391
+ gap: var(--space-sm);
392
+ padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--knav-rchip-pl);
393
+ border-radius: var(--radius-full);
394
+ background: var(--_chipbg);
395
+ text-decoration: none;
396
+ color: var(--_label);
397
+ white-space: nowrap;
398
+ --fs-rm: var(--ts-text-sm-regular-fs);
399
+ --fs-rs: var(--ts-text-xl-light-fs);
400
+ --fs-rt: var(--ts-text-xl-light-fs);
401
+ --fs-rd1: var(--ts-text-xl-light-fs);
402
+ --fs-rd2: var(--ts-text-2xl-light-fs);
403
+ --lh-rm: var(--ts-text-sm-regular-lh);
404
+ --lh-rs: var(--ts-text-xl-light-lh);
405
+ --lh-rt: var(--ts-text-xl-light-lh);
406
+ --lh-rd1: var(--ts-text-xl-light-lh);
407
+ --lh-rd2: var(--ts-text-2xl-light-lh);
408
+ --fs-rm-to: var(--ts-text-xl-regular-fs);
409
+ --lh-rm-to: var(--ts-text-xl-regular-lh);
410
+ --fs-rs-to: var(--ts-text-2xl-light-fs);
411
+ --lh-rs-to: var(--ts-text-2xl-light-lh);
412
+ }
413
+ /* The icon uses independent ink from its label. */
414
+ .knav-rchipicon {
415
+ flex: none;
416
+ width: 16px;
417
+ height: 16px;
418
+ color: var(--_icon);
419
+ }
420
+ .knav-rchip[data-card="blog"] {
421
+ --_chipbg: var(--color-text-500);
422
+ --_label: var(--color-bg-300);
423
+ --_icon: var(--color-text-100);
424
+ }
425
+ .knav-rchip[data-card="grader"] {
426
+ --_chipbg: var(--color-brown-300);
427
+ --_label: var(--color-brown-700);
428
+ --_icon: var(--color-brown-600);
429
+ }
430
+ .knav-rchip[data-card="podcast"] {
431
+ --_chipbg: var(--color-yellow-400);
432
+ --_label: var(--color-yellow-700);
433
+ --_icon: var(--color-yellow-600);
434
+ }
435
+ /* Our Work chips (1038:15838, 1038:15844): both icons keep intrinsic
436
+ two-tone fills, so neither sets --_icon; the gallery chip re-inks
437
+ IconWebsite through its --website-a/b hooks. */
438
+ .knav-rchip[data-card="case-studies"] {
439
+ --_chipbg: var(--color-bg-400);
440
+ --_label: var(--color-text-200);
441
+ }
442
+ .knav-rchip[data-card="gallery"] {
443
+ --_chipbg: var(--color-teal-250);
444
+ --_label: var(--color-teal-700);
445
+ --website-a: var(--color-teal-550);
446
+ --website-b: var(--color-teal-700);
447
+ }
448
+
449
+ .knav-prail {
450
+ position: absolute;
451
+ top: calc(var(--t) * 3);
452
+ bottom: 0;
453
+ right: -1px;
454
+ width: calc(var(--t) + 1px);
455
+ display: flex;
456
+ flex-direction: column;
457
+ overflow: clip;
458
+ }
459
+ .knav-pcell {
460
+ box-sizing: border-box;
461
+ flex: none;
462
+ width: 100%;
463
+ height: calc(var(--t) + 1px);
464
+ border: 1px solid var(--color-border-050);
465
+ }
466
+ .knav-pcell + .knav-pcell {
467
+ margin-top: -1px;
468
+ }
469
+ .knav-pcell:nth-child(4),
470
+ .knav-pcell:nth-child(11) {
471
+ border-radius: var(--radius-full);
472
+ }
473
+
474
+ .knav-pbtns {
475
+ display: flex;
476
+ align-items: center;
477
+ gap: var(--space-3xl);
478
+ align-self: flex-start;
479
+ margin: auto var(--space-none) var(--space-4xl) var(--space-3xl);
480
+ padding-top: var(--space-3xl);
481
+ }
482
+
483
+ /* ================= mobile band overrides (rs, rt) ================= */
484
+
485
+ @container (--rs) {
486
+ .knav-panel {
487
+ box-shadow: var(--shadow-hard-square-0);
488
+ }
489
+ .knav-m[data-open] .knav-panel {
490
+ box-shadow: var(--shadow-hard-square);
491
+ }
492
+ .knav-ptop {
493
+ height: calc(var(--t) * 2);
494
+ }
495
+ .knav-wordmark {
496
+ top: var(--space-3xl);
497
+ }
498
+ .knav-wmark {
499
+ width: 87px;
500
+ height: 20px;
501
+ }
502
+ .knav-prail {
503
+ top: calc(var(--t) * 2);
504
+ }
505
+ .knav-pcell:nth-child(4) {
506
+ border-radius: var(--radius-none);
507
+ }
508
+ .knav-pcell:nth-child(5) {
509
+ border-radius: var(--radius-full);
510
+ }
511
+ .knav-gslot {
512
+ --_g: var(--g-rs);
513
+ --_bt: var(--bt-rs);
514
+ }
515
+ .knav-chipsin {
516
+ gap: var(--space-lg);
517
+ /* Keep engine chips wrapping three per row. */
518
+ max-width: calc(var(--wA) * 440 + var(--wB) * 496);
519
+ }
520
+ .knav-chip,
521
+ .knav-rchip {
522
+ --font: var(--ts-text-xl-light-font);
523
+ --ls: var(--ts-text-xl-light-ls);
524
+ --opsz: var(--ts-text-xl-light-opsz);
525
+ }
526
+ }
527
+
528
+ @container (--rt) {
529
+ .knav-gslot {
530
+ --_g: var(--g-rt);
531
+ --_bt: var(--bt-rt);
532
+ }
533
+ /* row label holds 32/38 across rt; label pad becomes 45 (t − 20) */
534
+ .knav-row {
535
+ padding-top: calc(var(--t) - 20px);
536
+ }
537
+ .knav-rlabel {
538
+ --font: var(--ts-display-sans-xs-light-font);
539
+ --ls: var(--ts-display-sans-xs-light-ls);
540
+ --opsz: var(--ts-display-sans-xs-light-opsz);
541
+ }
542
+ .knav-rchev {
543
+ width: 20px;
544
+ height: 20px;
545
+ /* (38 − 20) / 2 */
546
+ margin-top: 9px;
547
+ }
548
+ .knav-chipsin {
549
+ gap: var(--space-xl);
550
+ max-width: 496px;
551
+ }
552
+ .knav-chip,
553
+ .knav-rchip {
554
+ --font: var(--ts-text-2xl-light-font);
555
+ --ls: var(--ts-text-2xl-light-ls);
556
+ --opsz: var(--ts-text-2xl-light-opsz);
557
+ }
558
+ .knav-chipdot {
559
+ width: 8px;
560
+ height: 8px;
561
+ }
562
+ .knav-rchip {
563
+ gap: var(--space-md);
564
+ padding-left: var(--space-lg);
565
+ padding-right: var(--space-xl);
566
+ }
567
+ .knav-rchipicon {
568
+ width: 20px;
569
+ height: 20px;
570
+ }
571
+ }