@atomic-ui/blocks 0.13.2 → 0.15.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 (83) hide show
  1. package/README.md +15 -15
  2. package/custom-elements.json +2961 -9573
  3. package/dist/{chunk-B6I3GVJ5.js → chunk-3G3NP4UC.js} +9 -4
  4. package/dist/chunk-3G3NP4UC.js.map +1 -0
  5. package/dist/{chunk-H262HKSL.js → chunk-7OFH762N.js} +53 -23
  6. package/dist/chunk-7OFH762N.js.map +1 -0
  7. package/dist/{chunk-WTVF3JRL.js → chunk-GDATDR2Q.js} +24 -7
  8. package/dist/chunk-GDATDR2Q.js.map +1 -0
  9. package/dist/chunk-GQ2I44OU.js +226 -0
  10. package/dist/chunk-GQ2I44OU.js.map +1 -0
  11. package/dist/chunk-HISF6RYK.js +199 -0
  12. package/dist/chunk-HISF6RYK.js.map +1 -0
  13. package/dist/{chunk-53V2GY6L.js → chunk-LJGOTYDJ.js} +76 -69
  14. package/dist/chunk-LJGOTYDJ.js.map +1 -0
  15. package/dist/{chunk-WIVKJL64.js → chunk-OBBPBN4S.js} +73 -164
  16. package/dist/chunk-OBBPBN4S.js.map +1 -0
  17. package/dist/chunk-OHXEZPBB.js +109 -0
  18. package/dist/chunk-OHXEZPBB.js.map +1 -0
  19. package/dist/{chunk-FNGN2F6Y.js → chunk-VOONXP5H.js} +30 -59
  20. package/dist/chunk-VOONXP5H.js.map +1 -0
  21. package/dist/chunk-XSKGWT2D.js +84 -0
  22. package/dist/chunk-XSKGWT2D.js.map +1 -0
  23. package/dist/components/changelog.d.ts +0 -288
  24. package/dist/components/changelog.js +3 -12
  25. package/dist/components/estimator.js +1 -1
  26. package/dist/components/g2-case.d.ts +8 -1
  27. package/dist/components/g2-case.js +1 -1
  28. package/dist/components/g2-site.d.ts +49 -41
  29. package/dist/components/g2-site.js +1 -3
  30. package/dist/components/journey.d.ts +13 -2
  31. package/dist/components/journey.js +1 -1
  32. package/dist/components/marketing.d.ts +0 -283
  33. package/dist/components/marketing.js +3 -13
  34. package/dist/components/organisms.d.ts +0 -489
  35. package/dist/components/organisms.js +3 -19
  36. package/dist/components/selling.d.ts +0 -255
  37. package/dist/components/selling.js +3 -15
  38. package/dist/components/site.d.ts +8 -53
  39. package/dist/components/site.js +3 -5
  40. package/dist/components/studio.d.ts +42 -98
  41. package/dist/components/studio.js +1 -3
  42. package/dist/index.d.ts +9 -13
  43. package/dist/index.js +25 -103
  44. package/dist/index.js.map +1 -1
  45. package/dist/standalone/atomic-ui-blocks.js +832 -1622
  46. package/dist/standalone/atomic-ui-blocks.js.map +4 -4
  47. package/dist/standalone/index.html +18 -26
  48. package/package.json +3 -3
  49. package/specimen/index.html +18 -26
  50. package/dist/chunk-53V2GY6L.js.map +0 -1
  51. package/dist/chunk-B6I3GVJ5.js.map +0 -1
  52. package/dist/chunk-FNGN2F6Y.js.map +0 -1
  53. package/dist/chunk-H262HKSL.js.map +0 -1
  54. package/dist/chunk-IT2NA25D.js +0 -571
  55. package/dist/chunk-IT2NA25D.js.map +0 -1
  56. package/dist/chunk-MMADM6OW.js +0 -782
  57. package/dist/chunk-MMADM6OW.js.map +0 -1
  58. package/dist/chunk-NHWD2LUR.js +0 -255
  59. package/dist/chunk-NHWD2LUR.js.map +0 -1
  60. package/dist/chunk-R7SSIE2E.js +0 -362
  61. package/dist/chunk-R7SSIE2E.js.map +0 -1
  62. package/dist/chunk-WIVKJL64.js.map +0 -1
  63. package/dist/chunk-WTVF3JRL.js.map +0 -1
  64. package/dist/chunk-XB6FD4SF.js +0 -438
  65. package/dist/chunk-XB6FD4SF.js.map +0 -1
  66. package/dist/chunk-YXMXLVK7.js +0 -230
  67. package/dist/chunk-YXMXLVK7.js.map +0 -1
  68. package/dist/chunk-ZD75GU6J.js +0 -75
  69. package/dist/chunk-ZD75GU6J.js.map +0 -1
  70. package/dist/chunk-ZODL5HD4.js +0 -535
  71. package/dist/chunk-ZODL5HD4.js.map +0 -1
  72. package/dist/components/card-grid.d.ts +0 -72
  73. package/dist/components/card-grid.js +0 -7
  74. package/dist/components/card-grid.js.map +0 -1
  75. package/dist/components/property.d.ts +0 -389
  76. package/dist/components/property.js +0 -17
  77. package/dist/components/property.js.map +0 -1
  78. package/dist/components/scene.d.ts +0 -138
  79. package/dist/components/scene.js +0 -7
  80. package/dist/components/scene.js.map +0 -1
  81. package/dist/components/scrubber.d.ts +0 -86
  82. package/dist/components/scrubber.js +0 -7
  83. package/dist/components/scrubber.js.map +0 -1
@@ -0,0 +1,199 @@
1
+ // packages/blocks/src/components/changelog.ts
2
+ import { css, html, nothing, svg } from "lit";
3
+ import { ImpaktElement, visuallyHidden, fontSize, fontWeight, space, spaceAround, t, token, toneOf } from "@atomic-ui/ui";
4
+ function revealOnView(el, onShow) {
5
+ const show = () => {
6
+ el.setAttribute("shown", "");
7
+ onShow?.();
8
+ };
9
+ if (typeof IntersectionObserver !== "function") {
10
+ show();
11
+ return () => void 0;
12
+ }
13
+ const io = new IntersectionObserver(
14
+ (entries) => {
15
+ if (entries.some((e) => e.isIntersecting)) {
16
+ show();
17
+ io.disconnect();
18
+ }
19
+ },
20
+ { threshold: 0.25 }
21
+ );
22
+ io.observe(el);
23
+ return () => io.disconnect();
24
+ }
25
+ var mono = css`.mono { font-family: ${t.fontMono}; font-size: ${fontSize("xs")}; letter-spacing: 0.04em; }`;
26
+ var heading = (level, text, cls) => {
27
+ const l = Math.min(Math.max(level || 3, 2), 6);
28
+ switch (l) {
29
+ case 2:
30
+ return html`<h2 class=${cls}>${text}</h2>`;
31
+ case 4:
32
+ return html`<h4 class=${cls}>${text}</h4>`;
33
+ case 5:
34
+ return html`<h5 class=${cls}>${text}</h5>`;
35
+ case 6:
36
+ return html`<h6 class=${cls}>${text}</h6>`;
37
+ default:
38
+ return html`<h3 class=${cls}>${text}</h3>`;
39
+ }
40
+ };
41
+ var words = css`
42
+ .h { margin: 0; color: var(--impakt-heading, ${t.textHeading}); font-family: ${t.fontHeading}; font-weight: ${fontWeight("bold")}; letter-spacing: ${t.trackingTight}; text-wrap: balance; }
43
+ .body { margin: 0; color: inherit; opacity: 0.8; text-wrap: pretty; }
44
+ .meta { margin: 0; color: inherit; opacity: 0.72; text-transform: uppercase; }
45
+ .sr-only { ${visuallyHidden} }
46
+ `;
47
+ var ImpaktBranchList = class extends ImpaktElement {
48
+ constructor() {
49
+ super();
50
+ this.unwatch = () => void 0;
51
+ this.items = [];
52
+ this.trunk = "";
53
+ this.look = "tones";
54
+ this.current = -1;
55
+ this.currentText = "";
56
+ this.headingLevel = 3;
57
+ this.spaceAbove = "none";
58
+ this.spaceBelow = "none";
59
+ }
60
+ static {
61
+ this.properties = {
62
+ items: { type: Array },
63
+ trunk: { type: String },
64
+ look: { type: String, reflect: true },
65
+ current: { type: Number },
66
+ currentText: { type: String, attribute: "current-text" },
67
+ headingLevel: { type: Number, attribute: "heading-level" },
68
+ spaceAbove: { type: String, reflect: true, attribute: "space-above" },
69
+ spaceBelow: { type: String, reflect: true, attribute: "space-below" }
70
+ };
71
+ }
72
+ static {
73
+ this.styles = [
74
+ ...ImpaktElement.styles,
75
+ spaceAround,
76
+ mono,
77
+ words,
78
+ css`
79
+ :host { display: block; container-type: inline-size; --trunk: color-mix(in srgb, currentColor 70%, transparent); }
80
+ ul { list-style: none; margin: 0; padding: 0; position: relative; }
81
+ ul::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 11px; inline-size: 3px; border-radius: 3px; background: var(--trunk); }
82
+ li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); padding-block: ${space(6)}; }
83
+ .graph { position: relative; }
84
+ .graph svg { position: absolute; inset-block-start: -${space(6)}; inset-inline-start: 0; inline-size: 96px; block-size: calc(100% + ${space(12)}); overflow: visible; }
85
+ .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: ${space(4)} ${space(10)}; align-items: start; }
86
+ .path { margin: 0 0 ${space(2)}; opacity: 0.72; }
87
+ .h { font-size: ${fontSize("3xl")}; line-height: 1.05; }
88
+ .h a { color: inherit; text-decoration: none; }
89
+ .h a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
90
+ .h a:focus-visible { outline: none; box-shadow: ${t.focusShadow}; border-radius: ${t.radiusSm}; }
91
+ .detail { display: flex; flex-direction: column; gap: ${space(3)}; padding-block-start: ${space(1)}; }
92
+ .tags { margin: 0; opacity: 0.7; text-transform: uppercase; }
93
+ .end { position: relative; display: flex; align-items: center; gap: ${space(3)}; padding-block-start: ${space(4)}; }
94
+ .end::before { content: ''; inline-size: 16px; block-size: 16px; margin-inline-start: 5px; border-radius: 50%; background: currentColor; }
95
+ @container (max-width: 44rem) {
96
+ li { grid-template-columns: 56px minmax(0, 1fr); }
97
+ .graph svg { inline-size: 56px; }
98
+ .row { grid-template-columns: minmax(0, 1fr); }
99
+ .h { font-size: ${fontSize("2xl")}; }
100
+ }
101
+ /*
102
+ * The mono look, as the Branches component (12:683) draws it: rows 120px apart, a 1.5px trunk at 10px, and
103
+ * each branch a fixed S-curve out to 60px by 28px down, straight to 78 and back by 110, so its shape does not
104
+ * change with the row's height. The path and heading sit on the left and the line and tags in a 490px column
105
+ * on the right, level with the path; a hairline closes each row 114px down. On a phone (14:989) the trunk is
106
+ * at 8px, the branch reaches 40px and the words stack in one column.
107
+ */
108
+ :host([look='mono']) { --trunk: currentColor; }
109
+ :host([look='mono']) ul::before { inset-inline-start: 10px; inline-size: 1.5px; border-radius: 0; }
110
+ :host([look='mono']) li { grid-template-columns: 86px minmax(0, 1fr); padding-block: 24px 5px; }
111
+ :host([look='mono']) .graph svg { inset-block-start: -24px; inline-size: 96px; block-size: 110px; }
112
+ :host([look='mono']) .graph svg path { stroke-width: 1.5; }
113
+ :host([look='mono']) .ring { position: absolute; inset-inline-start: 55px; inset-block-start: 20px; inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1px solid currentColor; background: ${t.surfaceCard}; }
114
+ :host([look='mono']) .ring.current { background: ${token("color.accent.default", "#ffd43b")}; }
115
+ :host([look='mono']) .text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 490px); grid-template-areas: 'path detail' 'h detail'; grid-template-rows: auto 1fr; column-gap: ${space(10)}; align-content: start; padding-block-end: 20px; border-block-end: ${t.borderThin} solid ${t.rule}; }
116
+ :host([look='mono']) .row { display: contents; }
117
+ :host([look='mono']) .path { grid-area: path; margin: 0 0 4.6px; font-size: 0.6875rem; line-height: 1.4; letter-spacing: ${t.trackingWide}; text-transform: uppercase; opacity: 1; color: ${t.textMuted}; }
118
+ :host([look='mono']) .h { grid-area: h; margin: 0; font-size: 2rem; line-height: 1.1; font-weight: ${fontWeight("semibold")}; letter-spacing: -0.03em; }
119
+ :host([look='mono']) .detail { grid-area: detail; gap: 8px; padding: 0; }
120
+ :host([look='mono']) .body { margin: 0; font-size: 1rem; line-height: 1.45; color: ${t.textMuted}; opacity: 1; }
121
+ :host([look='mono']) .tags { font-size: 0.6875rem; line-height: 1.4; letter-spacing: ${t.trackingWide}; opacity: 1; color: ${t.textMuted}; }
122
+ /* The main line's label sits 14px under the last rule and the block ends 17px under it, 520px for four rows (12:716). */
123
+ :host([look='mono']) .end { gap: 0; margin: 0; padding-block: 8px 17px; font-size: 0.6875rem; line-height: 1.4; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }
124
+ /* The trunk runs on, unbroken, into its end dot, which sits on the trunk; the words line up with the rows' words. */
125
+ :host([look='mono']) .end::before { flex: none; inline-size: 10px; block-size: 10px; margin-inline: 5.75px calc(86px - 15.75px); background: ${t.text}; }
126
+ :host([look='mono']) .end::after { content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 10px; inline-size: 1.5px; block-size: 15.7px; background: var(--trunk); }
127
+ :host([look='mono']) li:last-child .graph svg { block-size: 110px; }
128
+ @container (max-width: 44rem) {
129
+ /* Set on the list, since a container query cannot restyle the container itself. */
130
+ :host([look='mono']) ul::before { inset-inline-start: 8px; }
131
+ :host([look='mono']) li { grid-template-columns: 60px minmax(0, 1fr); padding-block: 18px 5px; }
132
+ :host([look='mono']) .graph svg { inset-block-start: -18px; inline-size: 60px; block-size: 132px; }
133
+ :host([look='mono']) .ring { inset-inline-start: 35px; inset-block-start: 38px; }
134
+ /* On a phone the rows are 150px apart whatever their words, as they are 120px apart on a wide screen (14:989). */
135
+ :host([look='mono']) .text { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'path' 'h' 'detail'; box-sizing: border-box; min-block-size: 127px; padding-block-end: 12px; }
136
+ :host([look='mono']) .h { font-size: 1.5rem; line-height: 1.15; }
137
+ :host([look='mono']) .detail { margin-block-start: 6px; }
138
+ :host([look='mono']) .body { font-size: 0.875rem; line-height: 1.43; }
139
+ :host([look='mono']) .tags { display: none; }
140
+ :host([look='mono']) .end { padding-block-end: 13px; }
141
+ :host([look='mono']) .end::before { margin-inline: 3.75px calc(60px - 13.75px); }
142
+ :host([look='mono']) .end::after { inset-inline-start: 8px; }
143
+ }
144
+ :host([look='mono']) .graph .narrow { display: none; }
145
+ @container (max-width: 44rem) { :host([look='mono']) .graph .wide { display: none; } :host([look='mono']) .graph .narrow { display: inline; } }
146
+ @media (forced-colors: active) { :host([look='mono']) .ring.current { background: Highlight; } }
147
+ /* Branch draw: each branch opens down from the trunk, 120 ms after the one above, then its dot pops. */
148
+ @media (prefers-reduced-motion: no-preference) {
149
+ .graph svg { clip-path: inset(0 0 100% 0); transition: clip-path 700ms cubic-bezier(.25, 1, .5, 1) calc(var(--i, 0) * 120ms); }
150
+ .graph circle, .ring { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 200ms ease-out calc(var(--i, 0) * 120ms + 500ms); }
151
+ :host([shown]) .graph svg { clip-path: inset(0); }
152
+ :host([shown]) .graph circle, :host([shown]) .ring { transform: scale(1); }
153
+ }
154
+ `
155
+ ];
156
+ }
157
+ connectedCallback() {
158
+ super.connectedCallback();
159
+ this.unwatch = revealOnView(this);
160
+ }
161
+ disconnectedCallback() {
162
+ super.disconnectedCallback();
163
+ this.unwatch();
164
+ }
165
+ render() {
166
+ const mono2 = this.look === "mono";
167
+ const branch = (colour) => mono2 ? svg`<svg aria-hidden="true" focusable="false">
168
+ <path class="wide" d="M10.75 0C10.75 16 60.75 6 60.75 28V78C60.75 100 10.75 92 10.75 110" fill="none" stroke=${colour} />
169
+ <path class="narrow" d="M8.75 0C8.75 16 40.75 6 40.75 28V104C40.75 126 8.75 118 8.75 132" fill="none" stroke=${colour} />
170
+ </svg>` : svg`<svg viewBox="0 0 96 200" preserveAspectRatio="none" aria-hidden="true" focusable="false">
171
+ <path d="M12 0 C12 40 60 30 60 70 L60 120 C60 160 12 160 12 200" fill="none" stroke=${colour} stroke-width="3" vector-effect="non-scaling-stroke" />
172
+ <circle cx="60" cy="86" r="8" fill=${colour} />
173
+ </svg>`;
174
+ return html`<ul part="list">${(this.items ?? []).map((item, i) => {
175
+ const current = i === this.current;
176
+ const words2 = html`${item.heading}${current && this.currentText ? html`<span class="sr-only"> (${this.currentText})</span>` : nothing}`;
177
+ return html`<li part="item" style=${`--i:${i}`}>
178
+ <div class="graph">${branch(mono2 ? "currentColor" : toneOf(item.tone, i))}${mono2 ? html`<span class=${current ? "ring current" : "ring"} aria-hidden="true"></span>` : nothing}</div>
179
+ <div class="text">
180
+ ${item.path ? html`<p class="path mono">${item.path}</p>` : nothing}
181
+ <div class="row">
182
+ ${heading(this.headingLevel, item.href ? html`<a href=${item.href}>${words2}</a>` : words2, "h")}
183
+ <div class="detail">
184
+ ${item.text ? html`<p class="body">${item.text}</p>` : nothing}
185
+ ${item.tags?.length ? html`<p class="tags mono">${item.tags.join(" \xB7 ")}</p>` : nothing}
186
+ </div>
187
+ </div>
188
+ </div>
189
+ </li>`;
190
+ })}</ul>
191
+ ${this.trunk ? html`<p class="end mono" part="trunk">${this.trunk}</p>` : nothing}`;
192
+ }
193
+ };
194
+ customElements.define("impakt-branch-list", ImpaktBranchList);
195
+
196
+ export {
197
+ ImpaktBranchList
198
+ };
199
+ //# sourceMappingURL=chunk-HISF6RYK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/changelog.ts"],"sourcesContent":["/**\n * Blocks that tell how software was made, in the language software is made\n * in: a release with what it added and removed, services as branches that\n * merge into one product, checks that passed, and a project drawn as a commit\n * graph. They came from building the Impakt site's Commit design in Strata, and\n * they are written for any studio, agency or product team that wants to show\n * its work this way.\n *\n * Every colour is a brand token. A lane's colour is a tone (brand, accent or\n * a status colour), never a hex value, so a partner's brand restyles them.\n */\n\nimport { css, html, nothing, svg, type TemplateResult } from 'lit';\nimport { ImpaktElement, visuallyHidden, fontSize, fontWeight, space, spaceAround, t, token, toneOf, type Tone } from '@atomic-ui/ui';\n\n// The tones (`Tone`, `toneOf`) are shared with `impakt-chip`, so they live in @atomic-ui/ui.\n\n/**\n * Marks an element `shown` once a quarter of it is on screen, so it can draw\n * itself in (the Commit motion spec's branch draw, graph draw and checks run).\n * Where nothing can watch, it is shown at once; what draws in is decided by\n * CSS under `prefers-reduced-motion: no-preference`, so reduced motion never waits.\n */\nfunction revealOnView(el: HTMLElement, onShow?: () => void): () => void {\n const show = () => {\n el.setAttribute('shown', '');\n onShow?.();\n };\n if (typeof IntersectionObserver !== 'function') {\n show();\n return () => undefined;\n }\n const io = new IntersectionObserver(\n (entries) => {\n if (entries.some((e) => e.isIntersecting)) {\n show();\n io.disconnect();\n }\n },\n { threshold: 0.25 },\n );\n io.observe(el);\n return () => io.disconnect();\n}\n\n/** Code-like labels: a branch name, a version, a hash. The brand has no code face, so the system's is used. */\nconst mono = css`.mono { font-family: ${t.fontMono}; font-size: ${fontSize('xs')}; letter-spacing: 0.04em; }`;\n\nconst heading = (level: number, text: string | TemplateResult, cls: string): TemplateResult => {\n const l = Math.min(Math.max(level || 3, 2), 6);\n switch (l) {\n case 2:\n return html`<h2 class=${cls}>${text}</h2>`;\n case 4:\n return html`<h4 class=${cls}>${text}</h4>`;\n case 5:\n return html`<h5 class=${cls}>${text}</h5>`;\n case 6:\n return html`<h6 class=${cls}>${text}</h6>`;\n default:\n return html`<h3 class=${cls}>${text}</h3>`;\n }\n};\n\nconst words = css`\n .h { margin: 0; color: var(--impakt-heading, ${t.textHeading}); font-family: ${t.fontHeading}; font-weight: ${fontWeight('bold')}; letter-spacing: ${t.trackingTight}; text-wrap: balance; }\n .body { margin: 0; color: inherit; opacity: 0.8; text-wrap: pretty; }\n .meta { margin: 0; color: inherit; opacity: 0.72; text-transform: uppercase; }\n .sr-only { ${visuallyHidden} }\n`;\n\n// ── Release card ─────────────────────────────────────────────────────────\n\n/** One line of what a release changed. */\nexport interface DiffLine {\n id?: string;\n /** Added, taken away, or kept as it was. */\n change: 'added' | 'removed' | 'same';\n text: string;\n}\n\n// ── Branch list ──────────────────────────────────────────────────────────\n\n/** One branch: a service, a team, a line of work. */\nexport interface Branch {\n id?: string;\n /** A short code-like name, such as \"feature/mobile-apps\". */\n path?: string;\n heading: string;\n text?: string;\n /** A few words below the text, such as the tools it uses. */\n tags?: string[];\n tone?: Tone;\n /** Where the heading links to, such as the service's own page. */\n href?: string;\n}\n\n/**\n * Several lines of work that come together into one: each item branches off a\n * main line on the left and merges back into it, and the line ends in what\n * they make together.\n *\n * The lines are drawn; the items are a list with headings, so a screen reader\n * reads the work, not the drawing.\n *\n * `look=\"mono\"` draws it in thin ink lines with no chart colours: hollow\n * rings for the branches, one filled with the accent for the `current` item,\n * a hairline under each row, the paths in monospace capitals, and the main\n * line ending in a small ink dot beside the `trunk` words. The tags are left\n * out on a phone in that look. Which item is current is also said in words to\n * a screen reader, so it never rests on the colour alone (1.4.1).\n *\n * @category content\n * @icon git-merge\n */\nexport class ImpaktBranchList extends ImpaktElement {\n static properties = {\n items: { type: Array },\n trunk: { type: String },\n look: { type: String, reflect: true },\n current: { type: Number },\n currentText: { type: String, attribute: 'current-text' },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare items: Branch[];\n /** What the main line ends in, such as \"main ← one team owns the result\". */\n declare trunk: string;\n /** `tones` draws each branch in a chart colour. `mono` draws thin ink lines with hollow rings, as the Noire site does. */\n declare look: 'tones' | 'mono';\n /** The index of the item to mark as current, from 0: its ring is filled with the accent. -1 for none. */\n declare current: number;\n /** What a screen reader hears after the current item's heading, such as \"current\". Set it with `current`, so the mark is not colour alone. */\n declare currentText: string;\n declare headingLevel: 2 | 3 | 4;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.items = [];\n this.trunk = '';\n this.look = 'tones';\n this.current = -1;\n this.currentText = '';\n this.headingLevel = 3;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [\n ...ImpaktElement.styles,\n spaceAround,\n mono,\n words,\n css`\n :host { display: block; container-type: inline-size; --trunk: color-mix(in srgb, currentColor 70%, transparent); }\n ul { list-style: none; margin: 0; padding: 0; position: relative; }\n ul::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 11px; inline-size: 3px; border-radius: 3px; background: var(--trunk); }\n li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); padding-block: ${space(6)}; }\n .graph { position: relative; }\n .graph svg { position: absolute; inset-block-start: -${space(6)}; inset-inline-start: 0; inline-size: 96px; block-size: calc(100% + ${space(12)}); overflow: visible; }\n .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: ${space(4)} ${space(10)}; align-items: start; }\n .path { margin: 0 0 ${space(2)}; opacity: 0.72; }\n .h { font-size: ${fontSize('3xl')}; line-height: 1.05; }\n .h a { color: inherit; text-decoration: none; }\n .h a:hover { text-decoration: underline; text-underline-offset: 0.15em; }\n .h a:focus-visible { outline: none; box-shadow: ${t.focusShadow}; border-radius: ${t.radiusSm}; }\n .detail { display: flex; flex-direction: column; gap: ${space(3)}; padding-block-start: ${space(1)}; }\n .tags { margin: 0; opacity: 0.7; text-transform: uppercase; }\n .end { position: relative; display: flex; align-items: center; gap: ${space(3)}; padding-block-start: ${space(4)}; }\n .end::before { content: ''; inline-size: 16px; block-size: 16px; margin-inline-start: 5px; border-radius: 50%; background: currentColor; }\n @container (max-width: 44rem) {\n li { grid-template-columns: 56px minmax(0, 1fr); }\n .graph svg { inline-size: 56px; }\n .row { grid-template-columns: minmax(0, 1fr); }\n .h { font-size: ${fontSize('2xl')}; }\n }\n /*\n * The mono look, as the Branches component (12:683) draws it: rows 120px apart, a 1.5px trunk at 10px, and\n * each branch a fixed S-curve out to 60px by 28px down, straight to 78 and back by 110, so its shape does not\n * change with the row's height. The path and heading sit on the left and the line and tags in a 490px column\n * on the right, level with the path; a hairline closes each row 114px down. On a phone (14:989) the trunk is\n * at 8px, the branch reaches 40px and the words stack in one column.\n */\n :host([look='mono']) { --trunk: currentColor; }\n :host([look='mono']) ul::before { inset-inline-start: 10px; inline-size: 1.5px; border-radius: 0; }\n :host([look='mono']) li { grid-template-columns: 86px minmax(0, 1fr); padding-block: 24px 5px; }\n :host([look='mono']) .graph svg { inset-block-start: -24px; inline-size: 96px; block-size: 110px; }\n :host([look='mono']) .graph svg path { stroke-width: 1.5; }\n :host([look='mono']) .ring { position: absolute; inset-inline-start: 55px; inset-block-start: 20px; inline-size: 10px; block-size: 10px; box-sizing: border-box; border-radius: 50%; border: 1px solid currentColor; background: ${t.surfaceCard}; }\n :host([look='mono']) .ring.current { background: ${token('color.accent.default', '#ffd43b')}; }\n :host([look='mono']) .text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 490px); grid-template-areas: 'path detail' 'h detail'; grid-template-rows: auto 1fr; column-gap: ${space(10)}; align-content: start; padding-block-end: 20px; border-block-end: ${t.borderThin} solid ${t.rule}; }\n :host([look='mono']) .row { display: contents; }\n :host([look='mono']) .path { grid-area: path; margin: 0 0 4.6px; font-size: 0.6875rem; line-height: 1.4; letter-spacing: ${t.trackingWide}; text-transform: uppercase; opacity: 1; color: ${t.textMuted}; }\n :host([look='mono']) .h { grid-area: h; margin: 0; font-size: 2rem; line-height: 1.1; font-weight: ${fontWeight('semibold')}; letter-spacing: -0.03em; }\n :host([look='mono']) .detail { grid-area: detail; gap: 8px; padding: 0; }\n :host([look='mono']) .body { margin: 0; font-size: 1rem; line-height: 1.45; color: ${t.textMuted}; opacity: 1; }\n :host([look='mono']) .tags { font-size: 0.6875rem; line-height: 1.4; letter-spacing: ${t.trackingWide}; opacity: 1; color: ${t.textMuted}; }\n /* The main line's label sits 14px under the last rule and the block ends 17px under it, 520px for four rows (12:716). */\n :host([look='mono']) .end { gap: 0; margin: 0; padding-block: 8px 17px; font-size: 0.6875rem; line-height: 1.4; letter-spacing: ${t.trackingWide}; text-transform: uppercase; color: ${t.textMuted}; }\n /* The trunk runs on, unbroken, into its end dot, which sits on the trunk; the words line up with the rows' words. */\n :host([look='mono']) .end::before { flex: none; inline-size: 10px; block-size: 10px; margin-inline: 5.75px calc(86px - 15.75px); background: ${t.text}; }\n :host([look='mono']) .end::after { content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 10px; inline-size: 1.5px; block-size: 15.7px; background: var(--trunk); }\n :host([look='mono']) li:last-child .graph svg { block-size: 110px; }\n @container (max-width: 44rem) {\n /* Set on the list, since a container query cannot restyle the container itself. */\n :host([look='mono']) ul::before { inset-inline-start: 8px; }\n :host([look='mono']) li { grid-template-columns: 60px minmax(0, 1fr); padding-block: 18px 5px; }\n :host([look='mono']) .graph svg { inset-block-start: -18px; inline-size: 60px; block-size: 132px; }\n :host([look='mono']) .ring { inset-inline-start: 35px; inset-block-start: 38px; }\n /* On a phone the rows are 150px apart whatever their words, as they are 120px apart on a wide screen (14:989). */\n :host([look='mono']) .text { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'path' 'h' 'detail'; box-sizing: border-box; min-block-size: 127px; padding-block-end: 12px; }\n :host([look='mono']) .h { font-size: 1.5rem; line-height: 1.15; }\n :host([look='mono']) .detail { margin-block-start: 6px; }\n :host([look='mono']) .body { font-size: 0.875rem; line-height: 1.43; }\n :host([look='mono']) .tags { display: none; }\n :host([look='mono']) .end { padding-block-end: 13px; }\n :host([look='mono']) .end::before { margin-inline: 3.75px calc(60px - 13.75px); }\n :host([look='mono']) .end::after { inset-inline-start: 8px; }\n }\n :host([look='mono']) .graph .narrow { display: none; }\n @container (max-width: 44rem) { :host([look='mono']) .graph .wide { display: none; } :host([look='mono']) .graph .narrow { display: inline; } }\n @media (forced-colors: active) { :host([look='mono']) .ring.current { background: Highlight; } }\n /* Branch draw: each branch opens down from the trunk, 120 ms after the one above, then its dot pops. */\n @media (prefers-reduced-motion: no-preference) {\n .graph svg { clip-path: inset(0 0 100% 0); transition: clip-path 700ms cubic-bezier(.25, 1, .5, 1) calc(var(--i, 0) * 120ms); }\n .graph circle, .ring { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 200ms ease-out calc(var(--i, 0) * 120ms + 500ms); }\n :host([shown]) .graph svg { clip-path: inset(0); }\n :host([shown]) .graph circle, :host([shown]) .ring { transform: scale(1); }\n }\n `,\n ];\n\n private unwatch: () => void = () => undefined;\n connectedCallback(): void {\n super.connectedCallback();\n this.unwatch = revealOnView(this);\n }\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.unwatch();\n }\n\n render(): TemplateResult {\n // Each branch leaves the trunk, swings out to its dot level with the\n // heading, and returns: drawn in a 96-wide box, scaled down on phones.\n // The mono look draws a fixed curve in pixels, one for a wide row and one\n // for a phone, and its rings in HTML, so neither stretches with the row.\n const mono = this.look === 'mono';\n const branch = (colour: string) =>\n mono\n ? svg`<svg aria-hidden=\"true\" focusable=\"false\">\n <path class=\"wide\" d=\"M10.75 0C10.75 16 60.75 6 60.75 28V78C60.75 100 10.75 92 10.75 110\" fill=\"none\" stroke=${colour} />\n <path class=\"narrow\" d=\"M8.75 0C8.75 16 40.75 6 40.75 28V104C40.75 126 8.75 118 8.75 132\" fill=\"none\" stroke=${colour} />\n </svg>`\n : svg`<svg viewBox=\"0 0 96 200\" preserveAspectRatio=\"none\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"M12 0 C12 40 60 30 60 70 L60 120 C60 160 12 160 12 200\" fill=\"none\" stroke=${colour} stroke-width=\"3\" vector-effect=\"non-scaling-stroke\" />\n <circle cx=\"60\" cy=\"86\" r=\"8\" fill=${colour} />\n </svg>`;\n return html`<ul part=\"list\">${(this.items ?? []).map((item, i) => {\n const current = i === this.current;\n const words = html`${item.heading}${current && this.currentText ? html`<span class=\"sr-only\"> (${this.currentText})</span>` : nothing}`;\n return html`<li part=\"item\" style=${`--i:${i}`}>\n <div class=\"graph\">${branch(mono ? 'currentColor' : toneOf(item.tone, i))}${mono ? html`<span class=${current ? 'ring current' : 'ring'} aria-hidden=\"true\"></span>` : nothing}</div>\n <div class=\"text\">\n ${item.path ? html`<p class=\"path mono\">${item.path}</p>` : nothing}\n <div class=\"row\">\n ${heading(this.headingLevel, item.href ? html`<a href=${item.href}>${words}</a>` : words, 'h')}\n <div class=\"detail\">\n ${item.text ? html`<p class=\"body\">${item.text}</p>` : nothing}\n ${item.tags?.length ? html`<p class=\"tags mono\">${item.tags.join(' · ')}</p>` : nothing}\n </div>\n </div>\n </div>\n </li>`;\n })}</ul>\n ${this.trunk ? html`<p class=\"end mono\" part=\"trunk\">${this.trunk}</p>` : nothing}`;\n }\n}\ncustomElements.define('impakt-branch-list', ImpaktBranchList);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impakt-branch-list': ImpaktBranchList;\n }\n}\n"],"mappings":";AAYA,SAAS,KAAK,MAAM,SAAS,WAAgC;AAC7D,SAAS,eAAe,gBAAgB,UAAU,YAAY,OAAO,aAAa,GAAG,OAAO,cAAyB;AAUrH,SAAS,aAAa,IAAiB,QAAiC;AACtE,QAAM,OAAO,MAAM;AACjB,OAAG,aAAa,SAAS,EAAE;AAC3B,aAAS;AAAA,EACX;AACA,MAAI,OAAO,yBAAyB,YAAY;AA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IC,MAAK,SAASA,QAAO,GAAG,CAAC;AAAA;AAAA,gBAE1F,KAAK,OAAO,uBAAuB,KAAK,IAAI,SAAS,OAAO;AAAA,gBAC5D,KAAK,MAAM,SAAS,4BAA4B,KAAK,KAAK,KAAK,UAAO,CAAC,SAAS,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKnG,CAAC,CAAC;AAAA,QACE,KAAK,QAAQ,wCAAwC,KAAK,KAAK,SAAS,OAAO;AAAA,EACrF;AACF;AACA,eAAe,OAAO,sBAAsB,gBAAgB;","names":["mono","words"]}
@@ -14,7 +14,7 @@ import {
14
14
 
15
15
  // packages/blocks/src/components/g2-site.ts
16
16
  import { css, html, nothing } from "lit";
17
- import { ImpaktElement, focusRing, fontWeight, say, space, spaceAround, t, token } from "@atomic-ui/ui";
17
+ import { ImpaktElement, R, focusRing, fontWeight, revealAt, revealStyles, say, space, spaceAround, t, token } from "@atomic-ui/ui";
18
18
  var STAGE_WORDS = {
19
19
  note: ["01", "Discover", "Note"],
20
20
  wireframe: ["02", "Design low-fi", "Wireframe"],
@@ -53,7 +53,10 @@ var ImpaktStageTag = class extends ImpaktElement {
53
53
  .phase { color: ${paper}; }
54
54
  .label { color: ${inkMuted}; }
55
55
  @media (forced-colors: active) { .tag { border-color: CanvasText; } .index, .phase, .label { color: CanvasText; } }
56
- `
56
+ /* Labels type in (impkt-web#51): the tag types its words in from the left in 240ms as its section arrives. All of them are in the page from the start. */
57
+ :host([data-motion]) .tag { animation: ik-reveal-type ${R.type} ${R.arrive} ${revealAt(0)} both; }
58
+ `,
59
+ revealStyles
57
60
  ];
58
61
  }
59
62
  render() {
@@ -111,7 +114,8 @@ var ImpaktSectionHead = class extends ImpaktElement {
111
114
  .body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: ${space(10)}; row-gap: ${space(6)}; align-items: end; margin-block-start: ${space(6)}; }
112
115
  .heading { margin: 0; font-family: ${t.fontHeading}; font-weight: ${fontWeight("semibold")}; color: var(--impakt-color-text-heading, ${t.text}); text-wrap: balance; overflow-wrap: anywhere; }
113
116
  :host([size='m']) .heading { font-size: clamp(2.25rem, 1.2rem + 4cqi, 3.25rem); line-height: 1; letter-spacing: -0.04em; max-inline-size: 11.5em; }
114
- :host([size='l']) .heading { font-size: clamp(2.5rem, 1.2rem + 5cqi, 4rem); line-height: 1; letter-spacing: -0.04em; max-inline-size: 11.5em; }
117
+ /* Display L sets a section title 680px wide at 64px, with a side lead or without (21:1080, 20:1160, 34:644). */
118
+ :host([size='l']) .heading { font-size: clamp(2.5rem, 1.2rem + 5cqi, 4rem); line-height: 1; letter-spacing: -0.04em; max-inline-size: 10.625em; }
115
119
  /* Display XL: 120px on a 1080px column and 52px on a 350px phone column, line height 1 and -5% (9:303, 14:734). */
116
120
  :host([size='xl']) .heading { font-size: clamp(3.25rem, 1.2128rem + 9.315cqi, 7.5rem); line-height: var(--impakt-type-display-xl-line-height, 1); letter-spacing: var(--impakt-type-display-xl-tracking, -0.05em); }
117
121
  /* The lead in G2 Body M, 16px at 1.45, 24px under the heading and at most 480px wide (9:385). */
@@ -124,12 +128,21 @@ var ImpaktSectionHead = class extends ImpaktElement {
124
128
  ::slotted([slot='aside']) { display: block; max-inline-size: 100%; }
125
129
  @container (max-width: 47.99rem) {
126
130
  /* On a phone the heading is 20px under the label row and the lead 16px under the heading (14:984, 14:804). */
127
- .body { grid-template-columns: minmax(0, 1fr); margin-block-start: ${space(5)}; }
131
+ .body { grid-template-columns: minmax(0, 1fr); row-gap: 0; margin-block-start: ${space(5)}; }
132
+ /* A row with a stage tag in it keeps 24px under it, as the 53px label row of 15:1058 does. */
133
+ .top.tagged + .body { margin-block-start: ${space(6)}; }
134
+ /* Display L in a narrow column is the brand's phone size: Impakt sets Mobile Display L, 36px on 1.04 (92:2191, 90:1297, 94:2538); another brand keeps the fluid size. */
135
+ :host([size='l']) .heading { font-size: ${token("section-head.l.phone-size", "clamp(2.5rem, 1.2rem + 5cqi, 4rem)")}; line-height: ${token("section-head.l.phone-line-height", "1")}; }
128
136
  .main .lead { margin-block-start: ${space(4)}; }
129
- .side { justify-items: stretch; }
130
- .side .lead { inline-size: auto; }
137
+ /* The side column takes room only for what it shows: a side lead 16px under the heading (14:986), an aside 24px under what is above it. An empty one, or an aside hidden on a phone, leaves no gap (15:1017, 15:1039, 15:940). */
138
+ .side { justify-items: stretch; gap: 0; }
139
+ .side .lead { inline-size: auto; max-inline-size: none; margin-block-start: ${space(4)}; }
140
+ ::slotted([slot='aside']) { margin-block-start: ${space(6)}; }
131
141
  }
132
- `
142
+ /* Labels type in (impkt-web#51): the mono label types in as the section arrives. The heading and the lead, which are read, never move. */
143
+ :host([data-motion]) .label { animation: ik-reveal-type ${R.type} ${R.arrive} ${revealAt(0)} both; }
144
+ `,
145
+ revealStyles
133
146
  ];
134
147
  }
135
148
  render() {
@@ -170,12 +183,16 @@ var ImpaktServiceCard = class extends ImpaktElement {
170
183
  href: { type: String },
171
184
  linkText: { type: String, attribute: "link-text" },
172
185
  headingLevel: { type: Number, attribute: "heading-level" },
173
- featured: { type: Boolean, reflect: true }
186
+ featured: { type: Boolean, reflect: true },
187
+ size: { type: String, reflect: true },
188
+ look: { type: String, reflect: true }
174
189
  };
175
190
  }
176
191
  constructor() {
177
192
  super();
178
193
  this.featured = false;
194
+ this.size = "default";
195
+ this.look = "card";
179
196
  this.number = "";
180
197
  this.heading = "";
181
198
  this.text = "";
@@ -189,26 +206,45 @@ var ImpaktServiceCard = class extends ImpaktElement {
189
206
  ...ImpaktElement.styles,
190
207
  css`
191
208
  :host { display: block; block-size: 100%; }
192
- article { position: relative; box-sizing: border-box; block-size: 100%; min-block-size: 330px; display: flex; flex-direction: column; justify-content: space-between; gap: ${space(6)}; padding: ${space(6)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; transition: background-color 140ms ease-out, color 140ms ease-out; }
209
+ article { position: relative; isolation: isolate; box-sizing: border-box; block-size: 100%; min-block-size: 330px; display: flex; flex-direction: column; justify-content: space-between; gap: ${space(6)}; padding: ${space(6)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; transition: color ${R.wipeDuration} ${R.wipeEasing}, border-color ${R.wipeDuration} ${R.wipeEasing}; }
210
+ /* The ink a card turns to, a layer of its own: a brand that derives the reveal set fades it in whole, as before; Impakt wipes it in from the left in 180ms (impkt-web#51). */
211
+ article::before { content: ''; position: absolute; inset: 0; z-index: -1; background: ${ink}; opacity: calc(1 - ${R.wipeFrom}); transform: scaleX(${R.wipeFrom}); transform-origin: left center; transition: transform ${R.wipeDuration} ${R.wipeEasing}, opacity ${R.wipeDuration} ${R.wipeEasing}; pointer-events: none; }
212
+ article:has(a):hover::before, article:focus-within::before { opacity: 1; transform: none; }
213
+ .go { display: inline-block; transition: translate ${R.arrowDuration} ${R.arrowEasing}; }
214
+ article:has(a):hover .go, article:focus-within .go { translate: ${R.arrowDistance} 0; }
215
+ /* Drop (impkt-web#51): the card drops 12px into place as its row is reached, after the one before it, and the line under it settles. */
216
+ :host([data-motion]) article { animation: ik-reveal-drop ${R.drop} ${R.arrive} ${revealAt(0)} both, ik-reveal-settle ${R.drop} ${R.arrive} ${revealAt(0)} both; }
193
217
  .top { display: flex; align-items: center; justify-content: space-between; }
194
218
  /* The Service card component (8:358): the number in G2 Mono M, 13px with no tracking; the name, line, tags and link 10px apart. */
195
219
  .number { font-family: ${t.fontMono}; font-size: 0.8125rem; line-height: 1.5; letter-spacing: 0; }
196
220
  .dot { inline-size: 10px; block-size: 10px; border-radius: 50%; background: currentColor; }
197
221
  .foot { display: grid; gap: ${space(2.5)}; }
198
- .heading { margin: 0; font-family: ${t.fontHeading}; font-size: 1.5rem; font-weight: ${fontWeight("semibold")}; line-height: 1.15; letter-spacing: -0.025em; }
222
+ /* The frame sets whole-pixel lines (8:344): the name 28px at 24, the line 20px at 14 and the tags 15px at 11. */
223
+ .heading { margin: 0; font-family: ${t.fontHeading}; font-size: 1.5rem; font-weight: ${fontWeight("semibold")}; line-height: 1.75rem; letter-spacing: -0.025em; }
199
224
  .heading a { color: inherit; text-decoration: none; }
200
225
  .heading a::after { content: ''; position: absolute; inset: 0; }
201
226
  .heading a:focus-visible { outline: none; }
202
227
  .heading a:focus-visible::after { box-shadow: ${t.focusShadow}; }
203
- .text { margin: 0; font-size: 0.875rem; line-height: 1.4; color: ${t.textMuted}; }
204
- .tags { margin: 0; ${monoLabel}; font-weight: ${fontWeight("medium")}; color: ${t.textMuted}; }
228
+ .text { margin: 0; font-size: 0.875rem; line-height: 1.25rem; color: ${t.textMuted}; }
229
+ .tags { margin: 0; ${monoLabel}; line-height: 0.9375rem; font-weight: ${fontWeight("medium")}; color: ${t.textMuted}; }
205
230
  .more { ${monoLabel}; font-weight: ${fontWeight("medium")}; }
206
- article:has(a):hover, article:focus-within, :host([featured]) article { background: ${ink}; color: ${paper}; border-color: ${ink}; }
231
+ article:has(a):hover, article:focus-within { color: ${paper}; border-color: ${ink}; }
232
+ :host([featured]) article { background: ${ink}; color: ${paper}; border-color: ${ink}; }
207
233
  article:has(a):hover :is(.text, .tags), article:focus-within :is(.text, .tags), :host([featured]) :is(.text, .tags) { color: ${inkMuted}; }
208
234
  article:has(a):hover :is(.dot, .more), article:focus-within :is(.dot, .more), :host([featured]) :is(.dot, .more) { color: ${accentOnInk}; }
209
235
  @media (max-width: 47.99rem) { article { min-block-size: 0; justify-content: flex-start; } }
210
- @media (forced-colors: active) { article { border-color: CanvasText; } .dot { background: CanvasText; } }
211
- `
236
+ /* Compact (90:1141, 96:2454): as tall as its words, the name straight under the number; on a phone 28px under it (90:1335, 96:2557). */
237
+ :host([size='compact']) article { min-block-size: 0; justify-content: flex-start; gap: 0; }
238
+ @media (max-width: 47.99rem) { :host([size='compact']) article { gap: ${space(7)}; } }
239
+ /* Tile (92:1978, 94:1785): as tall as its words, 24px in, every line 10px apart; the number in G2 Mono S, 11px medium capitals on 1.4 in the muted colour, with no dot. On a phone 20px in (92:2240, 94:2065). */
240
+ :host([look='tile']) article { min-block-size: 0; justify-content: flex-start; gap: ${space(2.5)}; padding: ${space(6)}; }
241
+ :host([look='tile']) .number { ${monoLabel}; font-weight: ${fontWeight("medium")}; color: ${t.textMuted}; }
242
+ :host([look='tile']) article:has(a):hover .number, :host([look='tile']) article:focus-within .number, :host([look='tile'][featured]) .number { color: ${inkMuted}; }
243
+ @media (max-width: 47.99rem) { :host([look='tile']) article { gap: ${space(2.5)}; padding: ${space(5)}; } }
244
+ @media (prefers-reduced-motion: reduce) { article, article::before, .go { transition: none; } }
245
+ @media (forced-colors: active) { article { border-color: CanvasText; } .dot { background: CanvasText; } article::before { display: none; } }
246
+ `,
247
+ revealStyles
212
248
  ];
213
249
  }
214
250
  render() {
@@ -216,7 +252,7 @@ var ImpaktServiceCard = class extends ImpaktElement {
216
252
  return html`<article part="card">
217
253
  <div class="top" aria-hidden="true">
218
254
  <span class="number" part="number">${this.number}</span>
219
- <span class="dot" part="dot"></span>
255
+ ${this.look === "tile" ? nothing : html`<span class="dot" part="dot"></span>`}
220
256
  </div>
221
257
  <div class="foot">
222
258
  <div class="heading" part="heading" role="heading" aria-level=${level}>
@@ -224,7 +260,7 @@ var ImpaktServiceCard = class extends ImpaktElement {
224
260
  </div>
225
261
  ${this.text ? html`<p class="text" part="text">${this.text}</p>` : nothing}
226
262
  ${this.tags ? html`<p class="tags" part="tags">${this.tags}</p>` : nothing}
227
- ${this.href && this.linkText ? html`<span class="more" part="more" aria-hidden="true">${this.linkText} →</span>` : nothing}
263
+ ${this.href && this.linkText ? html`<span class="more" part="more" aria-hidden="true">${this.linkText} <span class="go">→</span></span>` : nothing}
228
264
  </div>
229
265
  </article>`;
230
266
  }
@@ -268,42 +304,6 @@ var ImpaktCursor = class extends ImpaktElement {
268
304
  </span>`;
269
305
  }
270
306
  };
271
- var ImpaktHandNote = class extends ImpaktElement {
272
- static {
273
- this.properties = {
274
- text: { type: String },
275
- arrow: { type: String, reflect: true },
276
- decorative: { type: Boolean, reflect: true }
277
- };
278
- }
279
- constructor() {
280
- super();
281
- this.text = "";
282
- this.arrow = "none";
283
- this.decorative = false;
284
- }
285
- static {
286
- this.styles = [
287
- ...ImpaktElement.styles,
288
- css`
289
- :host { display: inline-block; max-inline-size: 18rem; }
290
- .note { display: inline-flex; align-items: center; gap: ${space(2)}; }
291
- :host(:is([arrow='down'], [arrow='up'])) .note { flex-direction: column; align-items: flex-start; }
292
- :host(:is([arrow='left'], [arrow='up'])) svg { order: -1; }
293
- p { margin: 0; font-family: var(--impakt-font-family-hand, ${t.fontBody}); font-size: 1.25rem; line-height: 1.2; color: ${t.textMuted}; }
294
- svg { flex: none; color: ${t.textMuted}; }
295
- :host([arrow='left']) svg { transform: scaleX(-1); }
296
- :host([arrow='down']) svg { transform: rotate(90deg); }
297
- :host([arrow='up']) svg { transform: rotate(-90deg); }
298
- @media (forced-colors: active) { p, svg { color: CanvasText; } }
299
- `
300
- ];
301
- }
302
- render() {
303
- const arrow = this.arrow && this.arrow !== "none" ? html`<svg viewBox="0 0 40 24" width="40" height="24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M2 16c8-10 20-12 34-6M30 4l6 6-7 4" /></svg>` : nothing;
304
- return html`<div class="note" part="note" aria-hidden=${this.decorative ? "true" : nothing}><p part="text"><slot>${this.text}</slot></p>${arrow}</div>`;
305
- }
306
- };
307
307
  var ImpaktFacts = class extends ImpaktElement {
308
308
  static {
309
309
  this.properties = {
@@ -317,7 +317,7 @@ var ImpaktFacts = class extends ImpaktElement {
317
317
  super();
318
318
  this.items = [];
319
319
  this.layout = "columns";
320
- this.size = "md";
320
+ this.size = "sm";
321
321
  this.label = "";
322
322
  }
323
323
  static {
@@ -326,18 +326,22 @@ var ImpaktFacts = class extends ImpaktElement {
326
326
  focusRing,
327
327
  css`
328
328
  :host { display: block; color: ${t.text}; }
329
- dl { margin: 0; display: grid; gap: ${space(5)}; }
329
+ /* Stacked, as the contact page's direct line (20:1163): 28px apart, each value 8px under its label. */
330
+ dl { margin: 0; display: grid; gap: 28px; }
331
+ /* In columns (21:1336, 34:627): each under an ink rule, the label 14px under it and the value 8px under the label, so a row of one line is 61px. */
330
332
  :host([layout='columns']) dl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); column-gap: ${space(5)}; row-gap: ${space(6)}; }
331
- :host([layout='columns']) .fact { border-block-start: 1px solid ${t.text}; padding-block-start: ${space(4)}; }
333
+ :host([layout='columns']) .fact { border-block-start: 1px solid ${t.text}; padding-block-start: 14px; }
332
334
  dt { ${monoLabel}; color: ${t.textMuted}; }
333
335
  dd { margin: ${space(2)} 0 0; font-family: ${t.fontBody}; line-height: 1.3; overflow-wrap: anywhere; }
334
- :host([layout='columns']) dd { margin-block-start: ${space(3)}; }
335
- .sm { font-size: 1rem; }
336
+ .sm { font-size: 1rem; line-height: 1.45; }
336
337
  .md { font-size: 1.125rem; }
337
338
  .lg { font-size: 1.5rem; letter-spacing: -0.01em; }
338
339
  .xl { font-size: clamp(1.5rem, 1rem + 2vw, 2rem); letter-spacing: -0.02em; }
339
340
  a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
340
341
  a:hover { text-decoration-thickness: 2px; }
342
+ /* Stacked, a value that is a link stands alone, so it is not underlined until it is pointed at or focused (20:1163). */
343
+ :host([layout='stacked']) a { text-decoration: none; }
344
+ :host([layout='stacked']) a:is(:hover, :focus-visible) { text-decoration: underline; text-decoration-thickness: 2px; }
341
345
  @media (forced-colors: active) { :host([layout='columns']) .fact { border-color: CanvasText; } }
342
346
  `
343
347
  ];
@@ -360,7 +364,8 @@ var ImpaktNumberedList = class extends ImpaktElement {
360
364
  items: { type: Array },
361
365
  start: { type: Number },
362
366
  headingLevel: { type: Number, attribute: "heading-level" },
363
- label: { type: String }
367
+ label: { type: String },
368
+ split: { type: String, reflect: true }
364
369
  };
365
370
  }
366
371
  constructor() {
@@ -369,6 +374,7 @@ var ImpaktNumberedList = class extends ImpaktElement {
369
374
  this.start = 1;
370
375
  this.headingLevel = 3;
371
376
  this.label = "";
377
+ this.split = "heading";
372
378
  }
373
379
  static {
374
380
  this.styles = [
@@ -376,10 +382,12 @@ var ImpaktNumberedList = class extends ImpaktElement {
376
382
  css`
377
383
  :host { display: block; container-type: inline-size; color: ${t.text}; }
378
384
  ol { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid ${t.text}; }
385
+ /* The Item of 21:1389 and 34:714: 24px above and below, the number in G2 Mono M, the heading in Display S at 1.1 and the text in Body M, so a row of one line is 84px. */
379
386
  li { display: grid; grid-template-columns: 60px minmax(0, 520fr) minmax(0, 420fr); column-gap: ${space(10)}; align-items: center; padding-block: ${space(6)}; border-block-end: 1px solid ${t.rule}; }
380
- .n { font-family: ${t.fontMono}; font-size: 0.75rem; letter-spacing: 0.06em; color: ${t.textMuted}; }
381
- .heading { margin: 0; font-family: ${t.fontHeading}; font-size: clamp(1.5rem, 1rem + 2cqi, 2rem); font-weight: ${fontWeight("semibold")}; line-height: 1.15; letter-spacing: -0.025em; }
382
- .text { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: ${t.textMuted}; }
387
+ :host([split='text']) li { grid-template-columns: 60px minmax(0, 460fr) minmax(0, 480fr); }
388
+ .n { font-family: ${t.fontMono}; font-size: var(--impakt-type-mono-m-size, 0.8125rem); line-height: var(--impakt-type-mono-m-line-height, 1.5); color: ${t.textMuted}; }
389
+ .heading { margin: 0; font-family: ${t.fontHeading}; font-size: clamp(1.5rem, 1rem + 2cqi, 2rem); font-weight: ${fontWeight("semibold")}; line-height: 1.1; letter-spacing: -0.03em; }
390
+ .text { margin: 0; font-size: 1rem; line-height: 1.45; color: ${t.textMuted}; }
383
391
  @container (max-width: 47.99rem) {
384
392
  li { grid-template-columns: minmax(0, 1fr); row-gap: ${space(2)}; }
385
393
  }
@@ -466,13 +474,14 @@ var ImpaktOfficeCard = class extends ImpaktElement {
466
474
  ...ImpaktElement.styles,
467
475
  css`
468
476
  :host { display: block; block-size: 100%; container-type: inline-size; }
469
- article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: ${space(2)}; padding: ${space(8)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; }
477
+ /* The office of 21:1201: 32px inside and its parts 12px apart, the region in Label L (16px on 1.2) and the line in Body M (16px on 1.45). */
478
+ article { box-sizing: border-box; block-size: 100%; display: grid; align-content: start; gap: 12px; padding: ${space(8)}; background: ${t.surfaceCard}; color: ${t.text}; border: 1px solid ${t.text}; }
470
479
  .top { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: center; gap: ${space(2)}; }
471
480
  .hours { margin: 0; ${monoLabel}; color: ${t.textMuted}; }
472
481
  .tag { margin: 0; padding: 3px 6px; ${monoLabel}; font-weight: ${fontWeight("medium")}; background: ${accent}; color: ${accentOn}; }
473
- .name { margin: ${space(2)} 0 0; font-family: ${t.fontHeading}; font-size: clamp(2.5rem, 1rem + 10cqi, 4rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.04em; overflow-wrap: anywhere; }
474
- .region { margin: ${space(2)} 0 0; font-size: 1rem; line-height: 1.4; }
475
- .text { margin: ${space(2)} 0 0; font-size: 0.9375rem; line-height: 1.5; color: ${t.textMuted}; }
482
+ .name { margin: 0; font-family: ${t.fontHeading}; font-size: clamp(2.5rem, 1rem + 10cqi, 4rem); font-weight: ${fontWeight("semibold")}; line-height: 1; letter-spacing: -0.04em; overflow-wrap: anywhere; }
483
+ .region { margin: 0; font-size: 1rem; line-height: 1.2; }
484
+ .text { margin: 0; font-size: 1rem; line-height: 1.45; color: ${t.textMuted}; }
476
485
  @container (max-width: 22rem) { article { padding: ${space(5)}; } }
477
486
  @media (forced-colors: active) { article { border-color: CanvasText; } .tag { border: 1px solid CanvasText; } }
478
487
  `
@@ -492,7 +501,6 @@ customElements.define("impakt-stage-tag", ImpaktStageTag);
492
501
  customElements.define("impakt-section-head", ImpaktSectionHead);
493
502
  customElements.define("impakt-service-card", ImpaktServiceCard);
494
503
  customElements.define("impakt-cursor", ImpaktCursor);
495
- customElements.define("impakt-hand-note", ImpaktHandNote);
496
504
  customElements.define("impakt-facts", ImpaktFacts);
497
505
  customElements.define("impakt-numbered-list", ImpaktNumberedList);
498
506
  customElements.define("impakt-column-list", ImpaktColumnList);
@@ -504,10 +512,9 @@ export {
504
512
  ImpaktSectionHead,
505
513
  ImpaktServiceCard,
506
514
  ImpaktCursor,
507
- ImpaktHandNote,
508
515
  ImpaktFacts,
509
516
  ImpaktNumberedList,
510
517
  ImpaktColumnList,
511
518
  ImpaktOfficeCard
512
519
  };
513
- //# sourceMappingURL=chunk-53V2GY6L.js.map
520
+ //# sourceMappingURL=chunk-LJGOTYDJ.js.map